YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/value.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/common/value.proto
3
4
#include "yb/common/value.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 QLSeqValuePBDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<QLSeqValuePB>
27
      _instance;
28
} _QLSeqValuePB_default_instance_;
29
class QLMapValuePBDefaultTypeInternal {
30
 public:
31
  ::google::protobuf::internal::ExplicitlyConstructed<QLMapValuePB>
32
      _instance;
33
} _QLMapValuePB_default_instance_;
34
class QLValuePBDefaultTypeInternal {
35
 public:
36
  ::google::protobuf::internal::ExplicitlyConstructed<QLValuePB>
37
      _instance;
38
  ::google::protobuf::int32 int8_value_;
39
  ::google::protobuf::int32 int16_value_;
40
  ::google::protobuf::int32 int32_value_;
41
  ::google::protobuf::int64 int64_value_;
42
  float float_value_;
43
  double double_value_;
44
  ::google::protobuf::internal::ArenaStringPtr string_value_;
45
  bool bool_value_;
46
  ::google::protobuf::int64 timestamp_value_;
47
  ::google::protobuf::internal::ArenaStringPtr binary_value_;
48
  ::google::protobuf::internal::ArenaStringPtr inetaddress_value_;
49
  const ::yb::QLMapValuePB* map_value_;
50
  const ::yb::QLSeqValuePB* set_value_;
51
  const ::yb::QLSeqValuePB* list_value_;
52
  ::google::protobuf::internal::ArenaStringPtr decimal_value_;
53
  ::google::protobuf::internal::ArenaStringPtr varint_value_;
54
  const ::yb::QLSeqValuePB* frozen_value_;
55
  ::google::protobuf::internal::ArenaStringPtr uuid_value_;
56
  ::google::protobuf::internal::ArenaStringPtr timeuuid_value_;
57
  ::google::protobuf::internal::ArenaStringPtr jsonb_value_;
58
  ::google::protobuf::uint32 date_value_;
59
  ::google::protobuf::int64 time_value_;
60
  ::google::protobuf::uint32 uint32_value_;
61
  ::google::protobuf::uint64 uint64_value_;
62
  int virtual_value_;
63
  ::google::protobuf::uint32 gin_null_value_;
64
} _QLValuePB_default_instance_;
65
class DatumMessagePBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<DatumMessagePB>
68
      _instance;
69
  ::google::protobuf::int32 datum_int32_;
70
  ::google::protobuf::int64 datum_int64_;
71
  float datum_float_;
72
  double datum_double_;
73
  bool datum_bool_;
74
  ::google::protobuf::internal::ArenaStringPtr datum_string_;
75
  ::google::protobuf::internal::ArenaStringPtr datum_bytes_;
76
  bool datum_missing_;
77
} _DatumMessagePB_default_instance_;
78
}  // namespace yb
79
namespace protobuf_yb_2fcommon_2fvalue_2eproto {
80
17.1k
void InitDefaultsQLMapValuePBImpl() {
81
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
82
83
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
84
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
85
#else
86
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
87
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
88
17.1k
  {
89
17.1k
    void* ptr = &::yb::_QLSeqValuePB_default_instance_;
90
17.1k
    new (ptr) ::yb::QLSeqValuePB();
91
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
92
17.1k
  }
93
17.1k
  {
94
17.1k
    void* ptr = &::yb::_QLMapValuePB_default_instance_;
95
17.1k
    new (ptr) ::yb::QLMapValuePB();
96
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
97
17.1k
  }
98
17.1k
  {
99
17.1k
    void* ptr = &::yb::_QLValuePB_default_instance_;
100
17.1k
    new (ptr) ::yb::QLValuePB();
101
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
102
17.1k
  }
103
17.1k
  ::yb::QLSeqValuePB::InitAsDefaultInstance();
104
17.1k
  ::yb::QLMapValuePB::InitAsDefaultInstance();
105
17.1k
  ::yb::QLValuePB::InitAsDefaultInstance();
106
17.1k
}
107
108
328M
void InitDefaultsQLMapValuePB() {
109
328M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
110
328M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLMapValuePBImpl);
111
328M
}
112
113
13.6k
void InitDefaultsDatumMessagePBImpl() {
114
13.6k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
115
116
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
117
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
118
#else
119
13.6k
  ::google::protobuf::internal::InitProtobufDefaults();
120
13.6k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
121
13.6k
  {
122
13.6k
    void* ptr = &::yb::_DatumMessagePB_default_instance_;
123
13.6k
    new (ptr) ::yb::DatumMessagePB();
124
13.6k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
125
13.6k
  }
126
13.6k
  ::yb::DatumMessagePB::InitAsDefaultInstance();
127
13.6k
}
128
129
101k
void InitDefaultsDatumMessagePB() {
130
101k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
131
101k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatumMessagePBImpl);
132
101k
}
133
134
::google::protobuf::Metadata file_level_metadata[4];
135
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
136
137
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
138
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSeqValuePB, _has_bits_),
139
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSeqValuePB, _internal_metadata_),
140
  ~0u,  // no _extensions_
141
  ~0u,  // no _oneof_case_
142
  ~0u,  // no _weak_field_map_
143
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSeqValuePB, elems_),
144
  ~0u,
145
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLMapValuePB, _has_bits_),
146
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLMapValuePB, _internal_metadata_),
147
  ~0u,  // no _extensions_
148
  ~0u,  // no _oneof_case_
149
  ~0u,  // no _weak_field_map_
150
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLMapValuePB, keys_),
151
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLMapValuePB, values_),
152
  ~0u,
153
  ~0u,
154
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLValuePB, _has_bits_),
155
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLValuePB, _internal_metadata_),
156
  ~0u,  // no _extensions_
157
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLValuePB, _oneof_case_[0]),
158
  ~0u,  // no _weak_field_map_
159
  offsetof(::yb::QLValuePBDefaultTypeInternal, int8_value_),
160
  offsetof(::yb::QLValuePBDefaultTypeInternal, int16_value_),
161
  offsetof(::yb::QLValuePBDefaultTypeInternal, int32_value_),
162
  offsetof(::yb::QLValuePBDefaultTypeInternal, int64_value_),
163
  offsetof(::yb::QLValuePBDefaultTypeInternal, float_value_),
164
  offsetof(::yb::QLValuePBDefaultTypeInternal, double_value_),
165
  offsetof(::yb::QLValuePBDefaultTypeInternal, string_value_),
166
  offsetof(::yb::QLValuePBDefaultTypeInternal, bool_value_),
167
  offsetof(::yb::QLValuePBDefaultTypeInternal, timestamp_value_),
168
  offsetof(::yb::QLValuePBDefaultTypeInternal, binary_value_),
169
  offsetof(::yb::QLValuePBDefaultTypeInternal, inetaddress_value_),
170
  offsetof(::yb::QLValuePBDefaultTypeInternal, map_value_),
171
  offsetof(::yb::QLValuePBDefaultTypeInternal, set_value_),
172
  offsetof(::yb::QLValuePBDefaultTypeInternal, list_value_),
173
  offsetof(::yb::QLValuePBDefaultTypeInternal, decimal_value_),
174
  offsetof(::yb::QLValuePBDefaultTypeInternal, varint_value_),
175
  offsetof(::yb::QLValuePBDefaultTypeInternal, frozen_value_),
176
  offsetof(::yb::QLValuePBDefaultTypeInternal, uuid_value_),
177
  offsetof(::yb::QLValuePBDefaultTypeInternal, timeuuid_value_),
178
  offsetof(::yb::QLValuePBDefaultTypeInternal, jsonb_value_),
179
  offsetof(::yb::QLValuePBDefaultTypeInternal, date_value_),
180
  offsetof(::yb::QLValuePBDefaultTypeInternal, time_value_),
181
  offsetof(::yb::QLValuePBDefaultTypeInternal, uint32_value_),
182
  offsetof(::yb::QLValuePBDefaultTypeInternal, uint64_value_),
183
  offsetof(::yb::QLValuePBDefaultTypeInternal, virtual_value_),
184
  offsetof(::yb::QLValuePBDefaultTypeInternal, gin_null_value_),
185
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLValuePB, value_),
186
  ~0u,
187
  ~0u,
188
  ~0u,
189
  ~0u,
190
  ~0u,
191
  ~0u,
192
  ~0u,
193
  ~0u,
194
  ~0u,
195
  ~0u,
196
  ~0u,
197
  ~0u,
198
  ~0u,
199
  ~0u,
200
  ~0u,
201
  ~0u,
202
  ~0u,
203
  ~0u,
204
  ~0u,
205
  ~0u,
206
  ~0u,
207
  ~0u,
208
  ~0u,
209
  ~0u,
210
  ~0u,
211
  ~0u,
212
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, _has_bits_),
213
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, _internal_metadata_),
214
  ~0u,  // no _extensions_
215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, _oneof_case_[0]),
216
  ~0u,  // no _weak_field_map_
217
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, column_name_),
218
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, column_type_),
219
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_int32_),
220
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_int64_),
221
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_float_),
222
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_double_),
223
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_bool_),
224
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_string_),
225
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_bytes_),
226
  offsetof(::yb::DatumMessagePBDefaultTypeInternal, datum_missing_),
227
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DatumMessagePB, datum_),
228
  0,
229
  1,
230
  ~0u,
231
  ~0u,
232
  ~0u,
233
  ~0u,
234
  ~0u,
235
  ~0u,
236
  ~0u,
237
  ~0u,
238
};
239
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
240
  { 0, 6, sizeof(::yb::QLSeqValuePB)},
241
  { 7, 14, sizeof(::yb::QLMapValuePB)},
242
  { 16, 48, sizeof(::yb::QLValuePB)},
243
  { 74, 90, sizeof(::yb::DatumMessagePB)},
244
};
245
246
static ::google::protobuf::Message const * const file_default_instances[] = {
247
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLSeqValuePB_default_instance_),
248
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLMapValuePB_default_instance_),
249
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLValuePB_default_instance_),
250
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_DatumMessagePB_default_instance_),
251
};
252
253
3.31k
void protobuf_AssignDescriptors() {
254
3.31k
  AddDescriptors();
255
3.31k
  ::google::protobuf::MessageFactory* factory = NULL;
256
3.31k
  AssignDescriptors(
257
3.31k
      "yb/common/value.proto", schemas, file_default_instances, TableStruct::offsets, factory,
258
3.31k
      file_level_metadata, file_level_enum_descriptors, NULL);
259
3.31k
}
260
261
22.5M
void protobuf_AssignDescriptorsOnce() {
262
22.5M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
263
22.5M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
264
22.5M
}
265
266
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
267
0
void protobuf_RegisterTypes(const ::std::string&) {
268
0
  protobuf_AssignDescriptorsOnce();
269
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
270
0
}
271
272
17.1k
void AddDescriptorsImpl() {
273
17.1k
  InitDefaults();
274
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
275
17.1k
      "\n\025yb/common/value.proto\022\002yb\",\n\014QLSeqValu"
276
17.1k
      "ePB\022\034\n\005elems\030\001 \003(\0132\r.yb.QLValuePB\"J\n\014QLM"
277
17.1k
      "apValuePB\022\033\n\004keys\030\001 \003(\0132\r.yb.QLValuePB\022\035"
278
17.1k
      "\n\006values\030\002 \003(\0132\r.yb.QLValuePB\"\331\005\n\tQLValu"
279
17.1k
      "ePB\022\024\n\nint8_value\030\001 \001(\005H\000\022\025\n\013int16_value"
280
17.1k
      "\030\002 \001(\005H\000\022\025\n\013int32_value\030\003 \001(\005H\000\022\025\n\013int64"
281
17.1k
      "_value\030\004 \001(\003H\000\022\025\n\013float_value\030\005 \001(\002H\000\022\026\n"
282
17.1k
      "\014double_value\030\006 \001(\001H\000\022\026\n\014string_value\030\007 "
283
17.1k
      "\001(\014H\000\022\024\n\nbool_value\030\010 \001(\010H\000\022\031\n\017timestamp"
284
17.1k
      "_value\030\t \001(\003H\000\022\026\n\014binary_value\030\n \001(\014H\000\022\033"
285
17.1k
      "\n\021inetaddress_value\030\013 \001(\014H\000\022%\n\tmap_value"
286
17.1k
      "\030\014 \001(\0132\020.yb.QLMapValuePBH\000\022%\n\tset_value\030"
287
17.1k
      "\r \001(\0132\020.yb.QLSeqValuePBH\000\022&\n\nlist_value\030"
288
17.1k
      "\016 \001(\0132\020.yb.QLSeqValuePBH\000\022\027\n\rdecimal_val"
289
17.1k
      "ue\030\017 \001(\014H\000\022\026\n\014varint_value\030\020 \001(\014H\000\022(\n\014fr"
290
17.1k
      "ozen_value\030\021 \001(\0132\020.yb.QLSeqValuePBH\000\022\024\n\n"
291
17.1k
      "uuid_value\030\022 \001(\014H\000\022\030\n\016timeuuid_value\030\023 \001"
292
17.1k
      "(\014H\000\022\025\n\013jsonb_value\030\024 \001(\014H\000\022\024\n\ndate_valu"
293
17.1k
      "e\030\025 \001(\rH\000\022\024\n\ntime_value\030\026 \001(\003H\000\022\026\n\014uint3"
294
17.1k
      "2_value\030\027 \001(\rH\000\022\026\n\014uint64_value\030\030 \001(\004H\000\022"
295
17.1k
      "-\n\rvirtual_value\030\031 \001(\0162\024.yb.QLVirtualVal"
296
17.1k
      "uePBH\000\022\030\n\016gin_null_value\030\032 \001(\rH\000B\007\n\005valu"
297
17.1k
      "e\"\376\001\n\016DatumMessagePB\022\023\n\013column_name\030\001 \001("
298
17.1k
      "\t\022\023\n\013column_type\030\002 \001(\003\022\025\n\013datum_int32\030\003 "
299
17.1k
      "\001(\005H\000\022\025\n\013datum_int64\030\004 \001(\003H\000\022\025\n\013datum_fl"
300
17.1k
      "oat\030\005 \001(\002H\000\022\026\n\014datum_double\030\006 \001(\001H\000\022\024\n\nd"
301
17.1k
      "atum_bool\030\007 \001(\010H\000\022\026\n\014datum_string\030\010 \001(\tH"
302
17.1k
      "\000\022\025\n\013datum_bytes\030\t \001(\014H\000\022\027\n\rdatum_missin"
303
17.1k
      "g\030\n \001(\010H\000B\007\n\005datum*0\n\020QLVirtualValuePB\022\r"
304
17.1k
      "\n\tLIMIT_MAX\020\001\022\r\n\tLIMIT_MIN\020\002*\224\003\n\010DataTyp"
305
17.1k
      "e\022\021\n\014UNKNOWN_DATA\020\347\007\022\023\n\017NULL_VALUE_TYPE\020"
306
17.1k
      "\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT"
307
17.1k
      "64\020\004\022\n\n\006STRING\020\005\022\010\n\004BOOL\020\006\022\t\n\005FLOAT\020\007\022\n\n"
308
17.1k
      "\006DOUBLE\020\010\022\n\n\006BINARY\020\t\022\r\n\tTIMESTAMP\020\n\022\013\n\007"
309
17.1k
      "DECIMAL\020\013\022\n\n\006VARINT\020\014\022\010\n\004INET\020\r\022\010\n\004LIST\020"
310
17.1k
      "\016\022\007\n\003MAP\020\017\022\007\n\003SET\020\020\022\010\n\004UUID\020\021\022\014\n\010TIMEUUI"
311
17.1k
      "D\020\022\022\t\n\005TUPLE\020\023\022\014\n\010TYPEARGS\020\024\022\025\n\021USER_DEF"
312
17.1k
      "INED_TYPE\020\025\022\n\n\006FROZEN\020\026\022\010\n\004DATE\020\027\022\010\n\004TIM"
313
17.1k
      "E\020\030\022\t\n\005JSONB\020\031\022\t\n\005UINT8\020d\022\n\n\006UINT16\020e\022\n\n"
314
17.1k
      "\006UINT32\020f\022\n\n\006UINT64\020g\022\014\n\010GIN_NULL\020h*\273\003\n\n"
315
17.1k
      "QLOperator\022\016\n\nQL_OP_NOOP\020\000\022\r\n\tQL_OP_NOT\020"
316
17.1k
      "\001\022\021\n\rQL_OP_IS_TRUE\020\002\022\022\n\016QL_OP_IS_FALSE\020\003"
317
17.1k
      "\022\r\n\tQL_OP_AND\020\004\022\014\n\010QL_OP_OR\020\005\022\021\n\rQL_OP_I"
318
17.1k
      "S_NULL\020\006\022\025\n\021QL_OP_IS_NOT_NULL\020\007\022\017\n\013QL_OP"
319
17.1k
      "_EQUAL\020\010\022\023\n\017QL_OP_LESS_THAN\020\t\022\031\n\025QL_OP_L"
320
17.1k
      "ESS_THAN_EQUAL\020\n\022\026\n\022QL_OP_GREATER_THAN\020\013"
321
17.1k
      "\022\034\n\030QL_OP_GREATER_THAN_EQUAL\020\014\022\023\n\017QL_OP_"
322
17.1k
      "NOT_EQUAL\020\r\022\016\n\nQL_OP_LIKE\020\016\022\022\n\016QL_OP_NOT"
323
17.1k
      "_LIKE\020\017\022\014\n\010QL_OP_IN\020\020\022\020\n\014QL_OP_NOT_IN\020\021\022"
324
17.1k
      "\021\n\rQL_OP_BETWEEN\020\022\022\025\n\021QL_OP_NOT_BETWEEN\020"
325
17.1k
      "\023\022\020\n\014QL_OP_EXISTS\020\024\022\024\n\020QL_OP_NOT_EXISTS\020"
326
17.1k
      "\025B\010\n\006org.yb"
327
17.1k
  };
328
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
329
17.1k
      descriptor, 2051);
330
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
331
17.1k
    "yb/common/value.proto", &protobuf_RegisterTypes);
332
17.1k
}
333
334
81.7k
void AddDescriptors() {
335
81.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
336
81.7k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
337
81.7k
}
338
// Force AddDescriptors() to be called at dynamic initialization time.
339
struct StaticDescriptorInitializer {
340
17.1k
  StaticDescriptorInitializer() {
341
17.1k
    AddDescriptors();
342
17.1k
  }
343
} static_descriptor_initializer;
344
}  // namespace protobuf_yb_2fcommon_2fvalue_2eproto
345
namespace yb {
346
0
const ::google::protobuf::EnumDescriptor* QLVirtualValuePB_descriptor() {
347
0
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
348
0
  return protobuf_yb_2fcommon_2fvalue_2eproto::file_level_enum_descriptors[0];
349
0
}
350
32
bool QLVirtualValuePB_IsValid(int value) {
351
32
  switch (value) {
352
0
    case 1:
353
32
    case 2:
354
32
      return true;
355
0
    default:
356
0
      return false;
357
32
  }
358
32
}
359
360
0
const ::google::protobuf::EnumDescriptor* DataType_descriptor() {
361
0
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
362
0
  return protobuf_yb_2fcommon_2fvalue_2eproto::file_level_enum_descriptors[1];
363
0
}
364
994M
bool DataType_IsValid(int value) {
365
994M
  switch (value) {
366
0
    case 0:
367
51.3M
    case 1:
368
83.6M
    case 2:
369
136M
    case 3:
370
145M
    case 4:
371
308M
    case 5:
372
393M
    case 6:
373
402M
    case 7:
374
402M
    case 8:
375
617M
    case 9:
376
621M
    case 10:
377
621M
    case 11:
378
621M
    case 12:
379
622M
    case 13:
380
622M
    case 14:
381
623M
    case 15:
382
623M
    case 16:
383
624M
    case 17:
384
624M
    case 18:
385
624M
    case 19:
386
624M
    case 20:
387
624M
    case 21:
388
624M
    case 22:
389
624M
    case 23:
390
624M
    case 24:
391
624M
    case 25:
392
624M
    case 100:
393
624M
    case 101:
394
993M
    case 102:
395
994M
    case 103:
396
994M
    case 104:
397
994M
    case 999:
398
994M
      return true;
399
0
    default:
400
0
      return false;
401
994M
  }
402
994M
}
403
404
0
const ::google::protobuf::EnumDescriptor* QLOperator_descriptor() {
405
0
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
406
0
  return protobuf_yb_2fcommon_2fvalue_2eproto::file_level_enum_descriptors[2];
407
0
}
408
3.12M
bool QLOperator_IsValid(int value) {
409
3.12M
  switch (value) {
410
0
    case 0:
411
0
    case 1:
412
0
    case 2:
413
0
    case 3:
414
120k
    case 4:
415
1.49M
    case 5:
416
1.49M
    case 6:
417
1.49M
    case 7:
418
1.63M
    case 8:
419
1.64M
    case 9:
420
1.64M
    case 10:
421
1.71M
    case 11:
422
1.72M
    case 12:
423
1.75M
    case 13:
424
1.75M
    case 14:
425
1.75M
    case 15:
426
3.12M
    case 16:
427
3.12M
    case 17:
428
3.12M
    case 18:
429
3.12M
    case 19:
430
3.12M
    case 20:
431
3.12M
    case 21:
432
3.12M
      return true;
433
0
    default:
434
0
      return false;
435
3.12M
  }
436
3.12M
}
437
438
439
// ===================================================================
440
441
17.1k
void QLSeqValuePB::InitAsDefaultInstance() {
442
17.1k
}
443
#if !defined(_MSC_VER) || _MSC_VER >= 1900
444
const int QLSeqValuePB::kElemsFieldNumber;
445
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
446
447
QLSeqValuePB::QLSeqValuePB()
448
2.15M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
449
2.13M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
450
2.13M
    ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
451
2.13M
  }
452
2.15M
  SharedCtor();
453
  // @@protoc_insertion_point(constructor:yb.QLSeqValuePB)
454
2.15M
}
455
QLSeqValuePB::QLSeqValuePB(const QLSeqValuePB& from)
456
  : ::google::protobuf::Message(),
457
      _internal_metadata_(NULL),
458
      _has_bits_(from._has_bits_),
459
      _cached_size_(0),
460
819
      elems_(from.elems_) {
461
819
  _internal_metadata_.MergeFrom(from._internal_metadata_);
462
  // @@protoc_insertion_point(copy_constructor:yb.QLSeqValuePB)
463
819
}
464
465
2.15M
void QLSeqValuePB::SharedCtor() {
466
2.15M
  _cached_size_ = 0;
467
2.15M
}
468
469
2.13M
QLSeqValuePB::~QLSeqValuePB() {
470
  // @@protoc_insertion_point(destructor:yb.QLSeqValuePB)
471
2.13M
  SharedDtor();
472
2.13M
}
473
474
2.13M
void QLSeqValuePB::SharedDtor() {
475
2.13M
}
476
477
0
void QLSeqValuePB::SetCachedSize(int size) const {
478
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
479
0
  _cached_size_ = size;
480
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
481
0
}
482
0
const ::google::protobuf::Descriptor* QLSeqValuePB::descriptor() {
483
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
484
0
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
485
0
}
486
487
0
const QLSeqValuePB& QLSeqValuePB::default_instance() {
488
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
489
0
  return *internal_default_instance();
490
0
}
491
492
0
QLSeqValuePB* QLSeqValuePB::New(::google::protobuf::Arena* arena) const {
493
0
  QLSeqValuePB* n = new QLSeqValuePB;
494
0
  if (arena != NULL) {
495
0
    arena->Own(n);
496
0
  }
497
0
  return n;
498
0
}
499
500
0
void QLSeqValuePB::Clear() {
501
// @@protoc_insertion_point(message_clear_start:yb.QLSeqValuePB)
502
0
  ::google::protobuf::uint32 cached_has_bits = 0;
503
  // Prevent compiler warnings about cached_has_bits being unused
504
0
  (void) cached_has_bits;
505
506
0
  elems_.Clear();
507
0
  _has_bits_.Clear();
508
0
  _internal_metadata_.Clear();
509
0
}
510
511
bool QLSeqValuePB::MergePartialFromCodedStream(
512
2.18k
    ::google::protobuf::io::CodedInputStream* input) {
513
5.21k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
514
2.18k
  ::google::protobuf::uint32 tag;
515
  // @@protoc_insertion_point(parse_start:yb.QLSeqValuePB)
516
7.39k
  for (;;) {
517
7.39k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
518
7.39k
    tag = p.first;
519
7.39k
    if (!p.second) goto handle_unusual;
520
5.20k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
521
      // repeated .yb.QLValuePB elems = 1;
522
5.21k
      case 1: {
523
5.21k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
524
5.21k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
525
5.21k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_elems()));
526
0
        } else {
527
0
          goto handle_unusual;
528
0
        }
529
5.21k
        break;
530
2.18k
      }
531
532
0
      default: {
533
2.18k
      handle_unusual:
534
2.18k
        if (tag == 0) {
535
2.18k
          goto success;
536
2.18k
        }
537
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
538
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
539
0
        break;
540
0
      }
541
5.20k
    }
542
5.20k
  }
543
2.18k
success:
544
  // @@protoc_insertion_point(parse_success:yb.QLSeqValuePB)
545
2.18k
  return true;
546
0
failure:
547
  // @@protoc_insertion_point(parse_failure:yb.QLSeqValuePB)
548
0
  return false;
549
2.18k
#undef DO_
550
2.18k
}
551
552
void QLSeqValuePB::SerializeWithCachedSizes(
553
0
    ::google::protobuf::io::CodedOutputStream* output) const {
554
  // @@protoc_insertion_point(serialize_start:yb.QLSeqValuePB)
555
0
  ::google::protobuf::uint32 cached_has_bits = 0;
556
0
  (void) cached_has_bits;
557
558
  // repeated .yb.QLValuePB elems = 1;
559
0
  for (unsigned int i = 0,
560
0
      n = static_cast<unsigned int>(this->elems_size()); i < n; i++) {
561
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
562
0
      1, this->elems(static_cast<int>(i)), output);
563
0
  }
564
565
0
  if (_internal_metadata_.have_unknown_fields()) {
566
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
567
0
        _internal_metadata_.unknown_fields(), output);
568
0
  }
569
  // @@protoc_insertion_point(serialize_end:yb.QLSeqValuePB)
570
0
}
571
572
::google::protobuf::uint8* QLSeqValuePB::InternalSerializeWithCachedSizesToArray(
573
2.19k
    bool deterministic, ::google::protobuf::uint8* target) const {
574
2.19k
  (void)deterministic; // Unused
575
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLSeqValuePB)
576
2.19k
  ::google::protobuf::uint32 cached_has_bits = 0;
577
2.19k
  (void) cached_has_bits;
578
579
  // repeated .yb.QLValuePB elems = 1;
580
2.19k
  for (unsigned int i = 0,
581
7.40k
      n = static_cast<unsigned int>(this->elems_size()); i < n; i++) {
582
5.21k
    target = ::google::protobuf::internal::WireFormatLite::
583
5.21k
      InternalWriteMessageToArray(
584
5.21k
        1, this->elems(static_cast<int>(i)), deterministic, target);
585
5.21k
  }
586
587
2.19k
  if (_internal_metadata_.have_unknown_fields()) {
588
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
589
0
        _internal_metadata_.unknown_fields(), target);
590
0
  }
591
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLSeqValuePB)
592
2.19k
  return target;
593
2.19k
}
594
595
4.38k
size_t QLSeqValuePB::ByteSizeLong() const {
596
// @@protoc_insertion_point(message_byte_size_start:yb.QLSeqValuePB)
597
4.38k
  size_t total_size = 0;
598
599
4.38k
  if (_internal_metadata_.have_unknown_fields()) {
600
0
    total_size +=
601
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
602
0
        _internal_metadata_.unknown_fields());
603
0
  }
604
  // repeated .yb.QLValuePB elems = 1;
605
4.38k
  {
606
4.38k
    unsigned int count = static_cast<unsigned int>(this->elems_size());
607
4.38k
    total_size += 1UL * count;
608
14.8k
    for (unsigned int i = 0; i < count; i++) {
609
10.4k
      total_size +=
610
10.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
611
10.4k
          this->elems(static_cast<int>(i)));
612
10.4k
    }
613
4.38k
  }
614
615
4.38k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
616
4.38k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
617
4.38k
  _cached_size_ = cached_size;
618
4.38k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
619
4.38k
  return total_size;
620
4.38k
}
621
622
0
void QLSeqValuePB::MergeFrom(const ::google::protobuf::Message& from) {
623
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLSeqValuePB)
624
0
  GOOGLE_DCHECK_NE(&from, this);
625
0
  const QLSeqValuePB* source =
626
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLSeqValuePB>(
627
0
          &from);
628
0
  if (source == NULL) {
629
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLSeqValuePB)
630
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
631
0
  } else {
632
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLSeqValuePB)
633
0
    MergeFrom(*source);
634
0
  }
635
0
}
636
637
1.47M
void QLSeqValuePB::MergeFrom(const QLSeqValuePB& from) {
638
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLSeqValuePB)
639
1.47M
  GOOGLE_DCHECK_NE(&from, this);
640
1.47M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
641
1.47M
  ::google::protobuf::uint32 cached_has_bits = 0;
642
1.47M
  (void) cached_has_bits;
643
644
1.47M
  elems_.MergeFrom(from.elems_);
645
1.47M
}
646
647
0
void QLSeqValuePB::CopyFrom(const ::google::protobuf::Message& from) {
648
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLSeqValuePB)
649
0
  if (&from == this) return;
650
0
  Clear();
651
0
  MergeFrom(from);
652
0
}
653
654
0
void QLSeqValuePB::CopyFrom(const QLSeqValuePB& from) {
655
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLSeqValuePB)
656
0
  if (&from == this) return;
657
0
  Clear();
658
0
  MergeFrom(from);
659
0
}
660
661
0
bool QLSeqValuePB::IsInitialized() const {
662
0
  return true;
663
0
}
664
665
0
void QLSeqValuePB::Swap(QLSeqValuePB* other) {
666
0
  if (other == this) return;
667
0
  InternalSwap(other);
668
0
}
669
0
void QLSeqValuePB::InternalSwap(QLSeqValuePB* other) {
670
0
  using std::swap;
671
0
  elems_.InternalSwap(&other->elems_);
672
0
  swap(_has_bits_[0], other->_has_bits_[0]);
673
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
674
0
  swap(_cached_size_, other->_cached_size_);
675
0
}
676
677
2.18k
::google::protobuf::Metadata QLSeqValuePB::GetMetadata() const {
678
2.18k
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
679
2.18k
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
680
2.18k
}
681
682
683
// ===================================================================
684
685
17.1k
void QLMapValuePB::InitAsDefaultInstance() {
686
17.1k
}
687
#if !defined(_MSC_VER) || _MSC_VER >= 1900
688
const int QLMapValuePB::kKeysFieldNumber;
689
const int QLMapValuePB::kValuesFieldNumber;
690
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
691
692
QLMapValuePB::QLMapValuePB()
693
3.04M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
694
3.02M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
695
3.02M
    ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
696
3.02M
  }
697
3.04M
  SharedCtor();
698
  // @@protoc_insertion_point(constructor:yb.QLMapValuePB)
699
3.04M
}
700
QLMapValuePB::QLMapValuePB(const QLMapValuePB& from)
701
  : ::google::protobuf::Message(),
702
      _internal_metadata_(NULL),
703
      _has_bits_(from._has_bits_),
704
      _cached_size_(0),
705
      keys_(from.keys_),
706
185
      values_(from.values_) {
707
185
  _internal_metadata_.MergeFrom(from._internal_metadata_);
708
  // @@protoc_insertion_point(copy_constructor:yb.QLMapValuePB)
709
185
}
710
711
3.04M
void QLMapValuePB::SharedCtor() {
712
3.04M
  _cached_size_ = 0;
713
3.04M
}
714
715
2.96M
QLMapValuePB::~QLMapValuePB() {
716
  // @@protoc_insertion_point(destructor:yb.QLMapValuePB)
717
2.96M
  SharedDtor();
718
2.96M
}
719
720
2.96M
void QLMapValuePB::SharedDtor() {
721
2.96M
}
722
723
0
void QLMapValuePB::SetCachedSize(int size) const {
724
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
725
0
  _cached_size_ = size;
726
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
727
0
}
728
0
const ::google::protobuf::Descriptor* QLMapValuePB::descriptor() {
729
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
730
0
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
731
0
}
732
733
0
const QLMapValuePB& QLMapValuePB::default_instance() {
734
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
735
0
  return *internal_default_instance();
736
0
}
737
738
0
QLMapValuePB* QLMapValuePB::New(::google::protobuf::Arena* arena) const {
739
0
  QLMapValuePB* n = new QLMapValuePB;
740
0
  if (arena != NULL) {
741
0
    arena->Own(n);
742
0
  }
743
0
  return n;
744
0
}
745
746
0
void QLMapValuePB::Clear() {
747
// @@protoc_insertion_point(message_clear_start:yb.QLMapValuePB)
748
0
  ::google::protobuf::uint32 cached_has_bits = 0;
749
  // Prevent compiler warnings about cached_has_bits being unused
750
0
  (void) cached_has_bits;
751
752
0
  keys_.Clear();
753
0
  values_.Clear();
754
0
  _has_bits_.Clear();
755
0
  _internal_metadata_.Clear();
756
0
}
757
758
bool QLMapValuePB::MergePartialFromCodedStream(
759
81
    ::google::protobuf::io::CodedInputStream* input) {
760
288
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
761
81
  ::google::protobuf::uint32 tag;
762
  // @@protoc_insertion_point(parse_start:yb.QLMapValuePB)
763
369
  for (;;) {
764
369
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
765
369
    tag = p.first;
766
369
    if (!p.second) goto handle_unusual;
767
288
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
768
      // repeated .yb.QLValuePB keys = 1;
769
144
      case 1: {
770
144
        if (static_cast< ::google::protobuf::uint8>(tag) ==
771
144
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
772
144
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_keys()));
773
0
        } else {
774
0
          goto handle_unusual;
775
0
        }
776
144
        break;
777
144
      }
778
779
      // repeated .yb.QLValuePB values = 2;
780
144
      case 2: {
781
144
        if (static_cast< ::google::protobuf::uint8>(tag) ==
782
144
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
783
144
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_values()));
784
0
        } else {
785
0
          goto handle_unusual;
786
0
        }
787
144
        break;
788
81
      }
789
790
0
      default: {
791
81
      handle_unusual:
792
81
        if (tag == 0) {
793
81
          goto success;
794
81
        }
795
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
796
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
797
0
        break;
798
0
      }
799
288
    }
800
288
  }
801
81
success:
802
  // @@protoc_insertion_point(parse_success:yb.QLMapValuePB)
803
81
  return true;
804
0
failure:
805
  // @@protoc_insertion_point(parse_failure:yb.QLMapValuePB)
806
0
  return false;
807
81
#undef DO_
808
81
}
809
810
void QLMapValuePB::SerializeWithCachedSizes(
811
0
    ::google::protobuf::io::CodedOutputStream* output) const {
812
  // @@protoc_insertion_point(serialize_start:yb.QLMapValuePB)
813
0
  ::google::protobuf::uint32 cached_has_bits = 0;
814
0
  (void) cached_has_bits;
815
816
  // repeated .yb.QLValuePB keys = 1;
817
0
  for (unsigned int i = 0,
818
0
      n = static_cast<unsigned int>(this->keys_size()); i < n; i++) {
819
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
820
0
      1, this->keys(static_cast<int>(i)), output);
821
0
  }
822
823
  // repeated .yb.QLValuePB values = 2;
824
0
  for (unsigned int i = 0,
825
0
      n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
826
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
827
0
      2, this->values(static_cast<int>(i)), output);
828
0
  }
829
830
0
  if (_internal_metadata_.have_unknown_fields()) {
831
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
832
0
        _internal_metadata_.unknown_fields(), output);
833
0
  }
834
  // @@protoc_insertion_point(serialize_end:yb.QLMapValuePB)
835
0
}
836
837
::google::protobuf::uint8* QLMapValuePB::InternalSerializeWithCachedSizesToArray(
838
81
    bool deterministic, ::google::protobuf::uint8* target) const {
839
81
  (void)deterministic; // Unused
840
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLMapValuePB)
841
81
  ::google::protobuf::uint32 cached_has_bits = 0;
842
81
  (void) cached_has_bits;
843
844
  // repeated .yb.QLValuePB keys = 1;
845
81
  for (unsigned int i = 0,
846
225
      n = static_cast<unsigned int>(this->keys_size()); i < n; i++) {
847
144
    target = ::google::protobuf::internal::WireFormatLite::
848
144
      InternalWriteMessageToArray(
849
144
        1, this->keys(static_cast<int>(i)), deterministic, target);
850
144
  }
851
852
  // repeated .yb.QLValuePB values = 2;
853
81
  for (unsigned int i = 0,
854
225
      n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
855
144
    target = ::google::protobuf::internal::WireFormatLite::
856
144
      InternalWriteMessageToArray(
857
144
        2, this->values(static_cast<int>(i)), deterministic, target);
858
144
  }
859
860
81
  if (_internal_metadata_.have_unknown_fields()) {
861
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
862
0
        _internal_metadata_.unknown_fields(), target);
863
0
  }
864
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLMapValuePB)
865
81
  return target;
866
81
}
867
868
162
size_t QLMapValuePB::ByteSizeLong() const {
869
// @@protoc_insertion_point(message_byte_size_start:yb.QLMapValuePB)
870
162
  size_t total_size = 0;
871
872
162
  if (_internal_metadata_.have_unknown_fields()) {
873
0
    total_size +=
874
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
875
0
        _internal_metadata_.unknown_fields());
876
0
  }
877
  // repeated .yb.QLValuePB keys = 1;
878
162
  {
879
162
    unsigned int count = static_cast<unsigned int>(this->keys_size());
880
162
    total_size += 1UL * count;
881
450
    for (unsigned int i = 0; i < count; i++) {
882
288
      total_size +=
883
288
        ::google::protobuf::internal::WireFormatLite::MessageSize(
884
288
          this->keys(static_cast<int>(i)));
885
288
    }
886
162
  }
887
888
  // repeated .yb.QLValuePB values = 2;
889
162
  {
890
162
    unsigned int count = static_cast<unsigned int>(this->values_size());
891
162
    total_size += 1UL * count;
892
450
    for (unsigned int i = 0; i < count; i++) {
893
288
      total_size +=
894
288
        ::google::protobuf::internal::WireFormatLite::MessageSize(
895
288
          this->values(static_cast<int>(i)));
896
288
    }
897
162
  }
898
899
162
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
900
162
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
901
162
  _cached_size_ = cached_size;
902
162
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
903
162
  return total_size;
904
162
}
905
906
0
void QLMapValuePB::MergeFrom(const ::google::protobuf::Message& from) {
907
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLMapValuePB)
908
0
  GOOGLE_DCHECK_NE(&from, this);
909
0
  const QLMapValuePB* source =
910
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLMapValuePB>(
911
0
          &from);
912
0
  if (source == NULL) {
913
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLMapValuePB)
914
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
915
0
  } else {
916
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLMapValuePB)
917
0
    MergeFrom(*source);
918
0
  }
919
0
}
920
921
2.23M
void QLMapValuePB::MergeFrom(const QLMapValuePB& from) {
922
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLMapValuePB)
923
2.23M
  GOOGLE_DCHECK_NE(&from, this);
924
2.23M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
925
2.23M
  ::google::protobuf::uint32 cached_has_bits = 0;
926
2.23M
  (void) cached_has_bits;
927
928
2.23M
  keys_.MergeFrom(from.keys_);
929
2.23M
  values_.MergeFrom(from.values_);
930
2.23M
}
931
932
0
void QLMapValuePB::CopyFrom(const ::google::protobuf::Message& from) {
933
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLMapValuePB)
934
0
  if (&from == this) return;
935
0
  Clear();
936
0
  MergeFrom(from);
937
0
}
938
939
0
void QLMapValuePB::CopyFrom(const QLMapValuePB& from) {
940
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLMapValuePB)
941
0
  if (&from == this) return;
942
0
  Clear();
943
0
  MergeFrom(from);
944
0
}
945
946
0
bool QLMapValuePB::IsInitialized() const {
947
0
  return true;
948
0
}
949
950
0
void QLMapValuePB::Swap(QLMapValuePB* other) {
951
0
  if (other == this) return;
952
0
  InternalSwap(other);
953
0
}
954
0
void QLMapValuePB::InternalSwap(QLMapValuePB* other) {
955
0
  using std::swap;
956
0
  keys_.InternalSwap(&other->keys_);
957
0
  values_.InternalSwap(&other->values_);
958
0
  swap(_has_bits_[0], other->_has_bits_[0]);
959
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
960
0
  swap(_cached_size_, other->_cached_size_);
961
0
}
962
963
81
::google::protobuf::Metadata QLMapValuePB::GetMetadata() const {
964
81
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
965
81
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
966
81
}
967
968
969
// ===================================================================
970
971
17.1k
void QLValuePB::InitAsDefaultInstance() {
972
17.1k
  ::yb::_QLValuePB_default_instance_.int8_value_ = 0;
973
17.1k
  ::yb::_QLValuePB_default_instance_.int16_value_ = 0;
974
17.1k
  ::yb::_QLValuePB_default_instance_.int32_value_ = 0;
975
17.1k
  ::yb::_QLValuePB_default_instance_.int64_value_ = GOOGLE_LONGLONG(0);
976
17.1k
  ::yb::_QLValuePB_default_instance_.float_value_ = 0;
977
17.1k
  ::yb::_QLValuePB_default_instance_.double_value_ = 0;
978
17.1k
  ::yb::_QLValuePB_default_instance_.string_value_.UnsafeSetDefault(
979
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
980
17.1k
  ::yb::_QLValuePB_default_instance_.bool_value_ = false;
981
17.1k
  ::yb::_QLValuePB_default_instance_.timestamp_value_ = GOOGLE_LONGLONG(0);
982
17.1k
  ::yb::_QLValuePB_default_instance_.binary_value_.UnsafeSetDefault(
983
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
984
17.1k
  ::yb::_QLValuePB_default_instance_.inetaddress_value_.UnsafeSetDefault(
985
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
986
17.1k
  ::yb::_QLValuePB_default_instance_.map_value_ = const_cast< ::yb::QLMapValuePB*>(
987
17.1k
      ::yb::QLMapValuePB::internal_default_instance());
988
17.1k
  ::yb::_QLValuePB_default_instance_.set_value_ = const_cast< ::yb::QLSeqValuePB*>(
989
17.1k
      ::yb::QLSeqValuePB::internal_default_instance());
990
17.1k
  ::yb::_QLValuePB_default_instance_.list_value_ = const_cast< ::yb::QLSeqValuePB*>(
991
17.1k
      ::yb::QLSeqValuePB::internal_default_instance());
992
17.1k
  ::yb::_QLValuePB_default_instance_.decimal_value_.UnsafeSetDefault(
993
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
994
17.1k
  ::yb::_QLValuePB_default_instance_.varint_value_.UnsafeSetDefault(
995
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
996
17.1k
  ::yb::_QLValuePB_default_instance_.frozen_value_ = const_cast< ::yb::QLSeqValuePB*>(
997
17.1k
      ::yb::QLSeqValuePB::internal_default_instance());
998
17.1k
  ::yb::_QLValuePB_default_instance_.uuid_value_.UnsafeSetDefault(
999
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
1000
17.1k
  ::yb::_QLValuePB_default_instance_.timeuuid_value_.UnsafeSetDefault(
1001
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
1002
17.1k
  ::yb::_QLValuePB_default_instance_.jsonb_value_.UnsafeSetDefault(
1003
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
1004
17.1k
  ::yb::_QLValuePB_default_instance_.date_value_ = 0u;
1005
17.1k
  ::yb::_QLValuePB_default_instance_.time_value_ = GOOGLE_LONGLONG(0);
1006
17.1k
  ::yb::_QLValuePB_default_instance_.uint32_value_ = 0u;
1007
17.1k
  ::yb::_QLValuePB_default_instance_.uint64_value_ = GOOGLE_ULONGLONG(0);
1008
17.1k
  ::yb::_QLValuePB_default_instance_.virtual_value_ = 1;
1009
17.1k
  ::yb::_QLValuePB_default_instance_.gin_null_value_ = 0u;
1010
17.1k
}
1011
0
void QLValuePB::set_allocated_map_value(::yb::QLMapValuePB* map_value) {
1012
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1013
0
  clear_value();
1014
0
  if (map_value) {
1015
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1016
0
    if (message_arena != submessage_arena) {
1017
0
      map_value = ::google::protobuf::internal::GetOwnedMessage(
1018
0
          message_arena, map_value, submessage_arena);
1019
0
    }
1020
0
    set_has_map_value();
1021
0
    value_.map_value_ = map_value;
1022
0
  }
1023
  // @@protoc_insertion_point(field_set_allocated:yb.QLValuePB.map_value)
1024
0
}
1025
0
void QLValuePB::set_allocated_set_value(::yb::QLSeqValuePB* set_value) {
1026
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1027
0
  clear_value();
1028
0
  if (set_value) {
1029
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1030
0
    if (message_arena != submessage_arena) {
1031
0
      set_value = ::google::protobuf::internal::GetOwnedMessage(
1032
0
          message_arena, set_value, submessage_arena);
1033
0
    }
1034
0
    set_has_set_value();
1035
0
    value_.set_value_ = set_value;
1036
0
  }
1037
  // @@protoc_insertion_point(field_set_allocated:yb.QLValuePB.set_value)
1038
0
}
1039
0
void QLValuePB::set_allocated_list_value(::yb::QLSeqValuePB* list_value) {
1040
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1041
0
  clear_value();
1042
0
  if (list_value) {
1043
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1044
0
    if (message_arena != submessage_arena) {
1045
0
      list_value = ::google::protobuf::internal::GetOwnedMessage(
1046
0
          message_arena, list_value, submessage_arena);
1047
0
    }
1048
0
    set_has_list_value();
1049
0
    value_.list_value_ = list_value;
1050
0
  }
1051
  // @@protoc_insertion_point(field_set_allocated:yb.QLValuePB.list_value)
1052
0
}
1053
0
void QLValuePB::set_allocated_frozen_value(::yb::QLSeqValuePB* frozen_value) {
1054
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1055
0
  clear_value();
1056
0
  if (frozen_value) {
1057
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1058
0
    if (message_arena != submessage_arena) {
1059
0
      frozen_value = ::google::protobuf::internal::GetOwnedMessage(
1060
0
          message_arena, frozen_value, submessage_arena);
1061
0
    }
1062
0
    set_has_frozen_value();
1063
0
    value_.frozen_value_ = frozen_value;
1064
0
  }
1065
  // @@protoc_insertion_point(field_set_allocated:yb.QLValuePB.frozen_value)
1066
0
}
1067
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1068
const int QLValuePB::kInt8ValueFieldNumber;
1069
const int QLValuePB::kInt16ValueFieldNumber;
1070
const int QLValuePB::kInt32ValueFieldNumber;
1071
const int QLValuePB::kInt64ValueFieldNumber;
1072
const int QLValuePB::kFloatValueFieldNumber;
1073
const int QLValuePB::kDoubleValueFieldNumber;
1074
const int QLValuePB::kStringValueFieldNumber;
1075
const int QLValuePB::kBoolValueFieldNumber;
1076
const int QLValuePB::kTimestampValueFieldNumber;
1077
const int QLValuePB::kBinaryValueFieldNumber;
1078
const int QLValuePB::kInetaddressValueFieldNumber;
1079
const int QLValuePB::kMapValueFieldNumber;
1080
const int QLValuePB::kSetValueFieldNumber;
1081
const int QLValuePB::kListValueFieldNumber;
1082
const int QLValuePB::kDecimalValueFieldNumber;
1083
const int QLValuePB::kVarintValueFieldNumber;
1084
const int QLValuePB::kFrozenValueFieldNumber;
1085
const int QLValuePB::kUuidValueFieldNumber;
1086
const int QLValuePB::kTimeuuidValueFieldNumber;
1087
const int QLValuePB::kJsonbValueFieldNumber;
1088
const int QLValuePB::kDateValueFieldNumber;
1089
const int QLValuePB::kTimeValueFieldNumber;
1090
const int QLValuePB::kUint32ValueFieldNumber;
1091
const int QLValuePB::kUint64ValueFieldNumber;
1092
const int QLValuePB::kVirtualValueFieldNumber;
1093
const int QLValuePB::kGinNullValueFieldNumber;
1094
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1095
1096
QLValuePB::QLValuePB()
1097
323M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1098
323M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1099
323M
    ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
1100
323M
  }
1101
323M
  SharedCtor();
1102
  // @@protoc_insertion_point(constructor:yb.QLValuePB)
1103
323M
}
1104
QLValuePB::QLValuePB(const QLValuePB& from)
1105
  : ::google::protobuf::Message(),
1106
      _internal_metadata_(NULL),
1107
      _has_bits_(from._has_bits_),
1108
67.4M
      _cached_size_(0) {
1109
67.4M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1110
67.4M
  clear_has_value();
1111
67.4M
  switch (from.value_case()) {
1112
323k
    case kInt8Value: {
1113
323k
      set_int8_value(from.int8_value());
1114
323k
      break;
1115
0
    }
1116
38.2k
    case kInt16Value: {
1117
38.2k
      set_int16_value(from.int16_value());
1118
38.2k
      break;
1119
0
    }
1120
6.92M
    case kInt32Value: {
1121
6.92M
      set_int32_value(from.int32_value());
1122
6.92M
      break;
1123
0
    }
1124
796k
    case kInt64Value: {
1125
796k
      set_int64_value(from.int64_value());
1126
796k
      break;
1127
0
    }
1128
317
    case kFloatValue: {
1129
317
      set_float_value(from.float_value());
1130
317
      break;
1131
0
    }
1132
407
    case kDoubleValue: {
1133
407
      set_double_value(from.double_value());
1134
407
      break;
1135
0
    }
1136
38.5M
    case kStringValue: {
1137
38.5M
      set_string_value(from.string_value());
1138
38.5M
      break;
1139
0
    }
1140
486k
    case kBoolValue: {
1141
486k
      set_bool_value(from.bool_value());
1142
486k
      break;
1143
0
    }
1144
143
    case kTimestampValue: {
1145
143
      set_timestamp_value(from.timestamp_value());
1146
143
      break;
1147
0
    }
1148
1.13M
    case kBinaryValue: {
1149
1.13M
      set_binary_value(from.binary_value());
1150
1.13M
      break;
1151
0
    }
1152
233k
    case kInetaddressValue: {
1153
233k
      set_inetaddress_value(from.inetaddress_value());
1154
233k
      break;
1155
0
    }
1156
1.63M
    case kMapValue: {
1157
1.63M
      mutable_map_value()->::yb::QLMapValuePB::MergeFrom(from.map_value());
1158
1.63M
      break;
1159
0
    }
1160
1.07M
    case kSetValue: {
1161
1.07M
      mutable_set_value()->::yb::QLSeqValuePB::MergeFrom(from.set_value());
1162
1.07M
      break;
1163
0
    }
1164
24.9k
    case kListValue: {
1165
24.9k
      mutable_list_value()->::yb::QLSeqValuePB::MergeFrom(from.list_value());
1166
24.9k
      break;
1167
0
    }
1168
4.75k
    case kDecimalValue: {
1169
4.75k
      set_decimal_value(from.decimal_value());
1170
4.75k
      break;
1171
0
    }
1172
4.74k
    case kVarintValue: {
1173
4.74k
      set_varint_value(from.varint_value());
1174
4.74k
      break;
1175
0
    }
1176
529
    case kFrozenValue: {
1177
529
      mutable_frozen_value()->::yb::QLSeqValuePB::MergeFrom(from.frozen_value());
1178
529
      break;
1179
0
    }
1180
1.00M
    case kUuidValue: {
1181
1.00M
      set_uuid_value(from.uuid_value());
1182
1.00M
      break;
1183
0
    }
1184
118
    case kTimeuuidValue: {
1185
118
      set_timeuuid_value(from.timeuuid_value());
1186
118
      break;
1187
0
    }
1188
134
    case kJsonbValue: {
1189
134
      set_jsonb_value(from.jsonb_value());
1190
134
      break;
1191
0
    }
1192
44
    case kDateValue: {
1193
44
      set_date_value(from.date_value());
1194
44
      break;
1195
0
    }
1196
115
    case kTimeValue: {
1197
115
      set_time_value(from.time_value());
1198
115
      break;
1199
0
    }
1200
50.3k
    case kUint32Value: {
1201
50.3k
      set_uint32_value(from.uint32_value());
1202
50.3k
      break;
1203
0
    }
1204
0
    case kUint64Value: {
1205
0
      set_uint64_value(from.uint64_value());
1206
0
      break;
1207
0
    }
1208
0
    case kVirtualValue: {
1209
0
      set_virtual_value(from.virtual_value());
1210
0
      break;
1211
0
    }
1212
0
    case kGinNullValue: {
1213
0
      set_gin_null_value(from.gin_null_value());
1214
0
      break;
1215
0
    }
1216
15.2M
    case VALUE_NOT_SET: {
1217
15.2M
      break;
1218
0
    }
1219
67.4M
  }
1220
  // @@protoc_insertion_point(copy_constructor:yb.QLValuePB)
1221
67.4M
}
1222
1223
323M
void QLValuePB::SharedCtor() {
1224
323M
  _cached_size_ = 0;
1225
323M
  clear_has_value();
1226
323M
}
1227
1228
390M
QLValuePB::~QLValuePB() {
1229
  // @@protoc_insertion_point(destructor:yb.QLValuePB)
1230
390M
  SharedDtor();
1231
390M
}
1232
1233
389M
void QLValuePB::SharedDtor() {
1234
389M
  if (has_value()) {
1235
255M
    clear_value();
1236
255M
  }
1237
389M
}
1238
1239
0
void QLValuePB::SetCachedSize(int size) const {
1240
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1241
0
  _cached_size_ = size;
1242
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1243
0
}
1244
0
const ::google::protobuf::Descriptor* QLValuePB::descriptor() {
1245
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
1246
0
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1247
0
}
1248
1249
0
const QLValuePB& QLValuePB::default_instance() {
1250
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
1251
0
  return *internal_default_instance();
1252
0
}
1253
1254
0
QLValuePB* QLValuePB::New(::google::protobuf::Arena* arena) const {
1255
0
  QLValuePB* n = new QLValuePB;
1256
0
  if (arena != NULL) {
1257
0
    arena->Own(n);
1258
0
  }
1259
0
  return n;
1260
0
}
1261
1262
612M
void QLValuePB::clear_value() {
1263
// @@protoc_insertion_point(one_of_clear_start:yb.QLValuePB)
1264
612M
  switch (value_case()) {
1265
3.20M
    case kInt8Value: {
1266
      // No need to clear
1267
3.20M
      break;
1268
0
    }
1269
1.32M
    case kInt16Value: {
1270
      // No need to clear
1271
1.32M
      break;
1272
0
    }
1273
94.2M
    case kInt32Value: {
1274
      // No need to clear
1275
94.2M
      break;
1276
0
    }
1277
5.14M
    case kInt64Value: {
1278
      // No need to clear
1279
5.14M
      break;
1280
0
    }
1281
228k
    case kFloatValue: {
1282
      // No need to clear
1283
228k
      break;
1284
0
    }
1285
689k
    case kDoubleValue: {
1286
      // No need to clear
1287
689k
      break;
1288
0
    }
1289
109M
    case kStringValue: {
1290
109M
      value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1291
109M
      break;
1292
0
    }
1293
4.37M
    case kBoolValue: {
1294
      // No need to clear
1295
4.37M
      break;
1296
0
    }
1297
4.97M
    case kTimestampValue: {
1298
      // No need to clear
1299
4.97M
      break;
1300
0
    }
1301
30.8M
    case kBinaryValue: {
1302
30.8M
      value_.binary_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1303
30.8M
      break;
1304
0
    }
1305
4.82M
    case kInetaddressValue: {
1306
4.82M
      value_.inetaddress_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1307
4.82M
      break;
1308
0
    }
1309
2.96M
    case kMapValue: {
1310
2.96M
      delete value_.map_value_;
1311
2.96M
      break;
1312
0
    }
1313
2.07M
    case kSetValue: {
1314
2.07M
      delete value_.set_value_;
1315
2.07M
      break;
1316
0
    }
1317
53.4k
    case kListValue: {
1318
53.4k
      delete value_.list_value_;
1319
53.4k
      break;
1320
0
    }
1321
35.9k
    case kDecimalValue: {
1322
35.9k
      value_.decimal_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1323
35.9k
      break;
1324
0
    }
1325
11.9k
    case kVarintValue: {
1326
11.9k
      value_.varint_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1327
11.9k
      break;
1328
0
    }
1329
2.77k
    case kFrozenValue: {
1330
2.77k
      delete value_.frozen_value_;
1331
2.77k
      break;
1332
0
    }
1333
2.74M
    case kUuidValue: {
1334
2.74M
      value_.uuid_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1335
2.74M
      break;
1336
0
    }
1337
1.10k
    case kTimeuuidValue: {
1338
1.10k
      value_.timeuuid_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1339
1.10k
      break;
1340
0
    }
1341
33.4k
    case kJsonbValue: {
1342
33.4k
      value_.jsonb_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1343
33.4k
      break;
1344
0
    }
1345
1.09k
    case kDateValue: {
1346
      // No need to clear
1347
1.09k
      break;
1348
0
    }
1349
1.12k
    case kTimeValue: {
1350
      // No need to clear
1351
1.12k
      break;
1352
0
    }
1353
9.45M
    case kUint32Value: {
1354
      // No need to clear
1355
9.45M
      break;
1356
0
    }
1357
0
    case kUint64Value: {
1358
      // No need to clear
1359
0
      break;
1360
0
    }
1361
24
    case kVirtualValue: {
1362
      // No need to clear
1363
24
      break;
1364
0
    }
1365
425
    case kGinNullValue: {
1366
      // No need to clear
1367
425
      break;
1368
0
    }
1369
337M
    case VALUE_NOT_SET: {
1370
337M
      break;
1371
612M
    }
1372
612M
  }
1373
612M
  _oneof_case_[0] = VALUE_NOT_SET;
1374
612M
}
1375
1376
1377
81.5M
void QLValuePB::Clear() {
1378
// @@protoc_insertion_point(message_clear_start:yb.QLValuePB)
1379
81.5M
  ::google::protobuf::uint32 cached_has_bits = 0;
1380
  // Prevent compiler warnings about cached_has_bits being unused
1381
81.5M
  (void) cached_has_bits;
1382
1383
81.5M
  clear_value();
1384
81.5M
  _has_bits_.Clear();
1385
81.5M
  _internal_metadata_.Clear();
1386
81.5M
}
1387
1388
bool QLValuePB::MergePartialFromCodedStream(
1389
22.3M
    ::google::protobuf::io::CodedInputStream* input) {
1390
21.3M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1391
22.3M
  ::google::protobuf::uint32 tag;
1392
  // @@protoc_insertion_point(parse_start:yb.QLValuePB)
1393
43.6M
  for (;;) {
1394
43.6M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1395
43.6M
    tag = p.first;
1396
43.6M
    if (!p.second) goto handle_unusual;
1397
21.3M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1398
      // optional int32 int8_value = 1;
1399
218k
      case 1: {
1400
218k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1401
218k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1402
218k
          clear_value();
1403
218k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1404
218k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1405
218k
                 input, &value_.int8_value_)));
1406
218k
          set_has_int8_value();
1407
0
        } else {
1408
0
          goto handle_unusual;
1409
0
        }
1410
218k
        break;
1411
218k
      }
1412
1413
      // optional int32 int16_value = 2;
1414
92.0k
      case 2: {
1415
92.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1416
92.0k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1417
92.0k
          clear_value();
1418
92.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1419
92.0k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1420
92.0k
                 input, &value_.int16_value_)));
1421
92.0k
          set_has_int16_value();
1422
0
        } else {
1423
0
          goto handle_unusual;
1424
0
        }
1425
92.0k
        break;
1426
92.0k
      }
1427
1428
      // optional int32 int32_value = 3;
1429
10.2M
      case 3: {
1430
10.2M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1431
10.2M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1432
10.2M
          clear_value();
1433
10.2M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1434
10.2M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1435
10.2M
                 input, &value_.int32_value_)));
1436
10.2M
          set_has_int32_value();
1437
18.4E
        } else {
1438
18.4E
          goto handle_unusual;
1439
18.4E
        }
1440
10.2M
        break;
1441
10.2M
      }
1442
1443
      // optional int64 int64_value = 4;
1444
502k
      case 4: {
1445
502k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1446
502k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1447
502k
          clear_value();
1448
502k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1449
502k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1450
502k
                 input, &value_.int64_value_)));
1451
502k
          set_has_int64_value();
1452
0
        } else {
1453
0
          goto handle_unusual;
1454
0
        }
1455
502k
        break;
1456
502k
      }
1457
1458
      // optional float float_value = 5;
1459
14.6k
      case 5: {
1460
14.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1461
14.6k
            static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
1462
14.6k
          clear_value();
1463
14.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1464
14.6k
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1465
14.6k
                 input, &value_.float_value_)));
1466
14.6k
          set_has_float_value();
1467
0
        } else {
1468
0
          goto handle_unusual;
1469
0
        }
1470
14.6k
        break;
1471
14.6k
      }
1472
1473
      // optional double double_value = 6;
1474
1.80k
      case 6: {
1475
1.80k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1476
1.80k
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
1477
1.80k
          clear_value();
1478
1.80k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1479
1.80k
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1480
1.80k
                 input, &value_.double_value_)));
1481
1.80k
          set_has_double_value();
1482
0
        } else {
1483
0
          goto handle_unusual;
1484
0
        }
1485
1.80k
        break;
1486
1.80k
      }
1487
1488
      // optional bytes string_value = 7;
1489
3.91M
      case 7: {
1490
3.91M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1491
3.91M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1492
3.91M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1493
3.91M
                input, this->mutable_string_value()));
1494
1
        } else {
1495
1
          goto handle_unusual;
1496
1
        }
1497
3.91M
        break;
1498
3.91M
      }
1499
1500
      // optional bool bool_value = 8;
1501
424k
      case 8: {
1502
424k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1503
424k
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
1504
424k
          clear_value();
1505
424k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1506
424k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1507
424k
                 input, &value_.bool_value_)));
1508
424k
          set_has_bool_value();
1509
0
        } else {
1510
0
          goto handle_unusual;
1511
0
        }
1512
424k
        break;
1513
424k
      }
1514
1515
      // optional int64 timestamp_value = 9;
1516
16.8k
      case 9: {
1517
16.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1518
16.8k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
1519
16.8k
          clear_value();
1520
16.8k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1521
16.8k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1522
16.8k
                 input, &value_.timestamp_value_)));
1523
16.8k
          set_has_timestamp_value();
1524
0
        } else {
1525
0
          goto handle_unusual;
1526
0
        }
1527
16.8k
        break;
1528
16.8k
      }
1529
1530
      // optional bytes binary_value = 10;
1531
4.02M
      case 10: {
1532
4.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1533
4.02M
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
1534
4.02M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1535
4.02M
                input, this->mutable_binary_value()));
1536
2
        } else {
1537
2
          goto handle_unusual;
1538
2
        }
1539
4.02M
        break;
1540
4.02M
      }
1541
1542
      // optional bytes inetaddress_value = 11;
1543
272
      case 11: {
1544
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1545
270
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
1546
270
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1547
270
                input, this->mutable_inetaddress_value()));
1548
2
        } else {
1549
2
          goto handle_unusual;
1550
2
        }
1551
270
        break;
1552
270
      }
1553
1554
      // optional .yb.QLMapValuePB map_value = 12;
1555
81
      case 12: {
1556
81
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1557
81
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
1558
81
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1559
81
               input, mutable_map_value()));
1560
0
        } else {
1561
0
          goto handle_unusual;
1562
0
        }
1563
81
        break;
1564
81
      }
1565
1566
      // optional .yb.QLSeqValuePB set_value = 13;
1567
49
      case 13: {
1568
49
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1569
49
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
1570
49
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1571
49
               input, mutable_set_value()));
1572
0
        } else {
1573
0
          goto handle_unusual;
1574
0
        }
1575
49
        break;
1576
49
      }
1577
1578
      // optional .yb.QLSeqValuePB list_value = 14;
1579
1.75k
      case 14: {
1580
1.75k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1581
1.75k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
1582
1.75k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1583
1.75k
               input, mutable_list_value()));
1584
0
        } else {
1585
0
          goto handle_unusual;
1586
0
        }
1587
1.75k
        break;
1588
1.75k
      }
1589
1590
      // optional bytes decimal_value = 15;
1591
8.79k
      case 15: {
1592
8.79k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1593
8.79k
            static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
1594
8.79k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1595
8.79k
                input, this->mutable_decimal_value()));
1596
0
        } else {
1597
0
          goto handle_unusual;
1598
0
        }
1599
8.79k
        break;
1600
8.79k
      }
1601
1602
      // optional bytes varint_value = 16;
1603
1.97k
      case 16: {
1604
1.97k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1605
1.97k
            static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
1606
1.97k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1607
1.97k
                input, this->mutable_varint_value()));
1608
0
        } else {
1609
0
          goto handle_unusual;
1610
0
        }
1611
1.97k
        break;
1612
1.97k
      }
1613
1614
      // optional .yb.QLSeqValuePB frozen_value = 17;
1615
383
      case 17: {
1616
383
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1617
383
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
1618
383
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1619
383
               input, mutable_frozen_value()));
1620
0
        } else {
1621
0
          goto handle_unusual;
1622
0
        }
1623
383
        break;
1624
383
      }
1625
1626
      // optional bytes uuid_value = 18;
1627
548
      case 18: {
1628
548
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1629
548
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
1630
548
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1631
548
                input, this->mutable_uuid_value()));
1632
0
        } else {
1633
0
          goto handle_unusual;
1634
0
        }
1635
548
        break;
1636
548
      }
1637
1638
      // optional bytes timeuuid_value = 19;
1639
199
      case 19: {
1640
199
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1641
199
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
1642
199
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1643
199
                input, this->mutable_timeuuid_value()));
1644
0
        } else {
1645
0
          goto handle_unusual;
1646
0
        }
1647
199
        break;
1648
199
      }
1649
1650
      // optional bytes jsonb_value = 20;
1651
5.12k
      case 20: {
1652
5.12k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1653
5.12k
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
1654
5.12k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1655
5.12k
                input, this->mutable_jsonb_value()));
1656
0
        } else {
1657
0
          goto handle_unusual;
1658
0
        }
1659
5.12k
        break;
1660
5.12k
      }
1661
1662
      // optional uint32 date_value = 21;
1663
356
      case 21: {
1664
356
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1665
356
            static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
1666
356
          clear_value();
1667
356
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1668
356
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1669
356
                 input, &value_.date_value_)));
1670
356
          set_has_date_value();
1671
0
        } else {
1672
0
          goto handle_unusual;
1673
0
        }
1674
356
        break;
1675
356
      }
1676
1677
      // optional int64 time_value = 22;
1678
348
      case 22: {
1679
348
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1680
348
            static_cast< ::google::protobuf::uint8>(176u /* 176 & 0xFF */)) {
1681
348
          clear_value();
1682
348
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1683
348
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1684
348
                 input, &value_.time_value_)));
1685
348
          set_has_time_value();
1686
0
        } else {
1687
0
          goto handle_unusual;
1688
0
        }
1689
348
        break;
1690
348
      }
1691
1692
      // optional uint32 uint32_value = 23;
1693
1.84M
      case 23: {
1694
1.84M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1695
1.84M
            static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
1696
1.84M
          clear_value();
1697
1.84M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1698
1.84M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1699
1.84M
                 input, &value_.uint32_value_)));
1700
1.84M
          set_has_uint32_value();
1701
18.4E
        } else {
1702
18.4E
          goto handle_unusual;
1703
18.4E
        }
1704
1.84M
        break;
1705
1.84M
      }
1706
1707
      // optional uint64 uint64_value = 24;
1708
0
      case 24: {
1709
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1710
0
            static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) {
1711
0
          clear_value();
1712
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1713
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1714
0
                 input, &value_.uint64_value_)));
1715
0
          set_has_uint64_value();
1716
0
        } else {
1717
0
          goto handle_unusual;
1718
0
        }
1719
0
        break;
1720
0
      }
1721
1722
      // optional .yb.QLVirtualValuePB virtual_value = 25;
1723
8
      case 25: {
1724
8
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1725
8
            static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
1726
8
          int value;
1727
8
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1728
8
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1729
8
                 input, &value)));
1730
8
          if (::yb::QLVirtualValuePB_IsValid(value)) {
1731
8
            set_virtual_value(static_cast< ::yb::QLVirtualValuePB >(value));
1732
0
          } else {
1733
0
            mutable_unknown_fields()->AddVarint(
1734
0
                25, static_cast< ::google::protobuf::uint64>(value));
1735
0
          }
1736
0
        } else {
1737
0
          goto handle_unusual;
1738
0
        }
1739
8
        break;
1740
8
      }
1741
1742
      // optional uint32 gin_null_value = 26;
1743
191
      case 26: {
1744
191
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1745
191
            static_cast< ::google::protobuf::uint8>(208u /* 208 & 0xFF */)) {
1746
191
          clear_value();
1747
191
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1748
191
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1749
191
                 input, &value_.gin_null_value_)));
1750
191
          set_has_gin_null_value();
1751
0
        } else {
1752
0
          goto handle_unusual;
1753
0
        }
1754
191
        break;
1755
22.3M
      }
1756
1757
0
      default: {
1758
22.3M
      handle_unusual:
1759
22.3M
        if (tag == 0) {
1760
22.3M
          goto success;
1761
22.3M
        }
1762
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1763
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1764
18.4E
        break;
1765
18.4E
      }
1766
21.3M
    }
1767
21.3M
  }
1768
22.3M
success:
1769
  // @@protoc_insertion_point(parse_success:yb.QLValuePB)
1770
22.3M
  return true;
1771
0
failure:
1772
  // @@protoc_insertion_point(parse_failure:yb.QLValuePB)
1773
0
  return false;
1774
22.3M
#undef DO_
1775
22.3M
}
1776
1777
void QLValuePB::SerializeWithCachedSizes(
1778
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1779
  // @@protoc_insertion_point(serialize_start:yb.QLValuePB)
1780
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1781
0
  (void) cached_has_bits;
1782
1783
0
  switch (value_case()) {
1784
0
    case kInt8Value:
1785
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->int8_value(), output);
1786
0
      break;
1787
0
    case kInt16Value:
1788
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->int16_value(), output);
1789
0
      break;
1790
0
    case kInt32Value:
1791
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->int32_value(), output);
1792
0
      break;
1793
0
    case kInt64Value:
1794
0
      ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->int64_value(), output);
1795
0
      break;
1796
0
    case kFloatValue:
1797
0
      ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->float_value(), output);
1798
0
      break;
1799
0
    case kDoubleValue:
1800
0
      ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
1801
0
      break;
1802
0
    case kStringValue:
1803
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1804
0
        7, this->string_value(), output);
1805
0
      break;
1806
0
    case kBoolValue:
1807
0
      ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->bool_value(), output);
1808
0
      break;
1809
0
    case kTimestampValue:
1810
0
      ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->timestamp_value(), output);
1811
0
      break;
1812
0
    case kBinaryValue:
1813
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1814
0
        10, this->binary_value(), output);
1815
0
      break;
1816
0
    case kInetaddressValue:
1817
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1818
0
        11, this->inetaddress_value(), output);
1819
0
      break;
1820
0
    case kMapValue:
1821
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1822
0
        12, *value_.map_value_, output);
1823
0
      break;
1824
0
    case kSetValue:
1825
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1826
0
        13, *value_.set_value_, output);
1827
0
      break;
1828
0
    case kListValue:
1829
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1830
0
        14, *value_.list_value_, output);
1831
0
      break;
1832
0
    case kDecimalValue:
1833
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1834
0
        15, this->decimal_value(), output);
1835
0
      break;
1836
0
    case kVarintValue:
1837
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1838
0
        16, this->varint_value(), output);
1839
0
      break;
1840
0
    case kFrozenValue:
1841
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1842
0
        17, *value_.frozen_value_, output);
1843
0
      break;
1844
0
    case kUuidValue:
1845
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1846
0
        18, this->uuid_value(), output);
1847
0
      break;
1848
0
    case kTimeuuidValue:
1849
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1850
0
        19, this->timeuuid_value(), output);
1851
0
      break;
1852
0
    case kJsonbValue:
1853
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1854
0
        20, this->jsonb_value(), output);
1855
0
      break;
1856
0
    case kDateValue:
1857
0
      ::google::protobuf::internal::WireFormatLite::WriteUInt32(21, this->date_value(), output);
1858
0
      break;
1859
0
    case kTimeValue:
1860
0
      ::google::protobuf::internal::WireFormatLite::WriteInt64(22, this->time_value(), output);
1861
0
      break;
1862
0
    case kUint32Value:
1863
0
      ::google::protobuf::internal::WireFormatLite::WriteUInt32(23, this->uint32_value(), output);
1864
0
      break;
1865
0
    case kUint64Value:
1866
0
      ::google::protobuf::internal::WireFormatLite::WriteUInt64(24, this->uint64_value(), output);
1867
0
      break;
1868
0
    case kVirtualValue:
1869
0
      ::google::protobuf::internal::WireFormatLite::WriteEnum(
1870
0
        25, this->virtual_value(), output);
1871
0
      break;
1872
0
    case kGinNullValue:
1873
0
      ::google::protobuf::internal::WireFormatLite::WriteUInt32(26, this->gin_null_value(), output);
1874
0
      break;
1875
0
    default: ;
1876
0
  }
1877
0
  if (_internal_metadata_.have_unknown_fields()) {
1878
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1879
0
        _internal_metadata_.unknown_fields(), output);
1880
0
  }
1881
  // @@protoc_insertion_point(serialize_end:yb.QLValuePB)
1882
0
}
1883
1884
::google::protobuf::uint8* QLValuePB::InternalSerializeWithCachedSizesToArray(
1885
28.6M
    bool deterministic, ::google::protobuf::uint8* target) const {
1886
28.6M
  (void)deterministic; // Unused
1887
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLValuePB)
1888
28.6M
  ::google::protobuf::uint32 cached_has_bits = 0;
1889
28.6M
  (void) cached_has_bits;
1890
1891
28.6M
  switch (value_case()) {
1892
463k
    case kInt8Value:
1893
463k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->int8_value(), target);
1894
463k
      break;
1895
319k
    case kInt16Value:
1896
319k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->int16_value(), target);
1897
319k
      break;
1898
12.1M
    case kInt32Value:
1899
12.1M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->int32_value(), target);
1900
12.1M
      break;
1901
1.50M
    case kInt64Value:
1902
1.50M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->int64_value(), target);
1903
1.50M
      break;
1904
14.6k
    case kFloatValue:
1905
14.6k
      target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->float_value(), target);
1906
14.6k
      break;
1907
1.80k
    case kDoubleValue:
1908
1.80k
      target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
1909
1.80k
      break;
1910
6.27M
    case kStringValue:
1911
6.27M
      target =
1912
6.27M
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1913
6.27M
          7, this->string_value(), target);
1914
6.27M
      break;
1915
653k
    case kBoolValue:
1916
653k
      target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->bool_value(), target);
1917
653k
      break;
1918
16.8k
    case kTimestampValue:
1919
16.8k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->timestamp_value(), target);
1920
16.8k
      break;
1921
4.30M
    case kBinaryValue:
1922
4.30M
      target =
1923
4.30M
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1924
4.30M
          10, this->binary_value(), target);
1925
4.30M
      break;
1926
272
    case kInetaddressValue:
1927
272
      target =
1928
272
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1929
272
          11, this->inetaddress_value(), target);
1930
272
      break;
1931
81
    case kMapValue:
1932
81
      target = ::google::protobuf::internal::WireFormatLite::
1933
81
        InternalWriteMessageToArray(
1934
81
          12, *value_.map_value_, deterministic, target);
1935
81
      break;
1936
49
    case kSetValue:
1937
49
      target = ::google::protobuf::internal::WireFormatLite::
1938
49
        InternalWriteMessageToArray(
1939
49
          13, *value_.set_value_, deterministic, target);
1940
49
      break;
1941
1.75k
    case kListValue:
1942
1.75k
      target = ::google::protobuf::internal::WireFormatLite::
1943
1.75k
        InternalWriteMessageToArray(
1944
1.75k
          14, *value_.list_value_, deterministic, target);
1945
1.75k
      break;
1946
8.79k
    case kDecimalValue:
1947
8.79k
      target =
1948
8.79k
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1949
8.79k
          15, this->decimal_value(), target);
1950
8.79k
      break;
1951
2.36k
    case kVarintValue:
1952
2.36k
      target =
1953
2.36k
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1954
2.36k
          16, this->varint_value(), target);
1955
2.36k
      break;
1956
383
    case kFrozenValue:
1957
383
      target = ::google::protobuf::internal::WireFormatLite::
1958
383
        InternalWriteMessageToArray(
1959
383
          17, *value_.frozen_value_, deterministic, target);
1960
383
      break;
1961
548
    case kUuidValue:
1962
548
      target =
1963
548
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1964
548
          18, this->uuid_value(), target);
1965
548
      break;
1966
199
    case kTimeuuidValue:
1967
199
      target =
1968
199
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1969
199
          19, this->timeuuid_value(), target);
1970
199
      break;
1971
5.12k
    case kJsonbValue:
1972
5.12k
      target =
1973
5.12k
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1974
5.12k
          20, this->jsonb_value(), target);
1975
5.12k
      break;
1976
356
    case kDateValue:
1977
356
      target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(21, this->date_value(), target);
1978
356
      break;
1979
348
    case kTimeValue:
1980
348
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(22, this->time_value(), target);
1981
348
      break;
1982
1.84M
    case kUint32Value:
1983
1.84M
      target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(23, this->uint32_value(), target);
1984
1.84M
      break;
1985
0
    case kUint64Value:
1986
0
      target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(24, this->uint64_value(), target);
1987
0
      break;
1988
8
    case kVirtualValue:
1989
8
      target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1990
8
        25, this->virtual_value(), target);
1991
8
      break;
1992
191
    case kGinNullValue:
1993
191
      target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(26, this->gin_null_value(), target);
1994
191
      break;
1995
1.05M
    default: ;
1996
28.6M
  }
1997
28.5M
  if (_internal_metadata_.have_unknown_fields()) {
1998
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1999
0
        _internal_metadata_.unknown_fields(), target);
2000
0
  }
2001
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLValuePB)
2002
28.5M
  return target;
2003
28.6M
}
2004
2005
162M
size_t QLValuePB::ByteSizeLong() const {
2006
// @@protoc_insertion_point(message_byte_size_start:yb.QLValuePB)
2007
162M
  size_t total_size = 0;
2008
2009
162M
  if (_internal_metadata_.have_unknown_fields()) {
2010
0
    total_size +=
2011
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2012
0
        _internal_metadata_.unknown_fields());
2013
0
  }
2014
162M
  switch (value_case()) {
2015
    // optional int32 int8_value = 1;
2016
7.84M
    case kInt8Value: {
2017
7.84M
      total_size += 1 +
2018
7.84M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2019
7.84M
          this->int8_value());
2020
7.84M
      break;
2021
0
    }
2022
    // optional int32 int16_value = 2;
2023
3.21M
    case kInt16Value: {
2024
3.21M
      total_size += 1 +
2025
3.21M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2026
3.21M
          this->int16_value());
2027
3.21M
      break;
2028
0
    }
2029
    // optional int32 int32_value = 3;
2030
37.7M
    case kInt32Value: {
2031
37.7M
      total_size += 1 +
2032
37.7M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2033
37.7M
          this->int32_value());
2034
37.7M
      break;
2035
0
    }
2036
    // optional int64 int64_value = 4;
2037
2.01M
    case kInt64Value: {
2038
2.01M
      total_size += 1 +
2039
2.01M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2040
2.01M
          this->int64_value());
2041
2.01M
      break;
2042
0
    }
2043
    // optional float float_value = 5;
2044
799k
    case kFloatValue: {
2045
799k
      total_size += 1 + 4;
2046
799k
      break;
2047
0
    }
2048
    // optional double double_value = 6;
2049
3.60k
    case kDoubleValue: {
2050
3.60k
      total_size += 1 + 8;
2051
3.60k
      break;
2052
0
    }
2053
    // optional bytes string_value = 7;
2054
17.4M
    case kStringValue: {
2055
17.4M
      total_size += 1 +
2056
17.4M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2057
17.4M
          this->string_value());
2058
17.4M
      break;
2059
0
    }
2060
    // optional bool bool_value = 8;
2061
7.62M
    case kBoolValue: {
2062
7.62M
      total_size += 1 + 1;
2063
7.62M
      break;
2064
0
    }
2065
    // optional int64 timestamp_value = 9;
2066
33.7k
    case kTimestampValue: {
2067
33.7k
      total_size += 1 +
2068
33.7k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2069
33.7k
          this->timestamp_value());
2070
33.7k
      break;
2071
0
    }
2072
    // optional bytes binary_value = 10;
2073
23.8M
    case kBinaryValue: {
2074
23.8M
      total_size += 1 +
2075
23.8M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2076
23.8M
          this->binary_value());
2077
23.8M
      break;
2078
0
    }
2079
    // optional bytes inetaddress_value = 11;
2080
544
    case kInetaddressValue: {
2081
544
      total_size += 1 +
2082
544
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2083
544
          this->inetaddress_value());
2084
544
      break;
2085
0
    }
2086
    // optional .yb.QLMapValuePB map_value = 12;
2087
162
    case kMapValue: {
2088
162
      total_size += 1 +
2089
162
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2090
162
          *value_.map_value_);
2091
162
      break;
2092
0
    }
2093
    // optional .yb.QLSeqValuePB set_value = 13;
2094
98
    case kSetValue: {
2095
98
      total_size += 1 +
2096
98
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2097
98
          *value_.set_value_);
2098
98
      break;
2099
0
    }
2100
    // optional .yb.QLSeqValuePB list_value = 14;
2101
3.51k
    case kListValue: {
2102
3.51k
      total_size += 1 +
2103
3.51k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2104
3.51k
          *value_.list_value_);
2105
3.51k
      break;
2106
0
    }
2107
    // optional bytes decimal_value = 15;
2108
17.5k
    case kDecimalValue: {
2109
17.5k
      total_size += 1 +
2110
17.5k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2111
17.5k
          this->decimal_value());
2112
17.5k
      break;
2113
0
    }
2114
    // optional bytes varint_value = 16;
2115
4.88k
    case kVarintValue: {
2116
4.88k
      total_size += 2 +
2117
4.88k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2118
4.88k
          this->varint_value());
2119
4.88k
      break;
2120
0
    }
2121
    // optional .yb.QLSeqValuePB frozen_value = 17;
2122
766
    case kFrozenValue: {
2123
766
      total_size += 2 +
2124
766
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2125
766
          *value_.frozen_value_);
2126
766
      break;
2127
0
    }
2128
    // optional bytes uuid_value = 18;
2129
1.09k
    case kUuidValue: {
2130
1.09k
      total_size += 2 +
2131
1.09k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2132
1.09k
          this->uuid_value());
2133
1.09k
      break;
2134
0
    }
2135
    // optional bytes timeuuid_value = 19;
2136
398
    case kTimeuuidValue: {
2137
398
      total_size += 2 +
2138
398
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2139
398
          this->timeuuid_value());
2140
398
      break;
2141
0
    }
2142
    // optional bytes jsonb_value = 20;
2143
10.2k
    case kJsonbValue: {
2144
10.2k
      total_size += 2 +
2145
10.2k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2146
10.2k
          this->jsonb_value());
2147
10.2k
      break;
2148
0
    }
2149
    // optional uint32 date_value = 21;
2150
712
    case kDateValue: {
2151
712
      total_size += 2 +
2152
712
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2153
712
          this->date_value());
2154
712
      break;
2155
0
    }
2156
    // optional int64 time_value = 22;
2157
696
    case kTimeValue: {
2158
696
      total_size += 2 +
2159
696
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2160
696
          this->time_value());
2161
696
      break;
2162
0
    }
2163
    // optional uint32 uint32_value = 23;
2164
49.6M
    case kUint32Value: {
2165
49.6M
      total_size += 2 +
2166
49.6M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2167
49.6M
          this->uint32_value());
2168
49.6M
      break;
2169
0
    }
2170
    // optional uint64 uint64_value = 24;
2171
0
    case kUint64Value: {
2172
0
      total_size += 2 +
2173
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
2174
0
          this->uint64_value());
2175
0
      break;
2176
0
    }
2177
    // optional .yb.QLVirtualValuePB virtual_value = 25;
2178
16
    case kVirtualValue: {
2179
16
      total_size += 2 +
2180
16
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->virtual_value());
2181
16
      break;
2182
0
    }
2183
    // optional uint32 gin_null_value = 26;
2184
382
    case kGinNullValue: {
2185
382
      total_size += 2 +
2186
382
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2187
382
          this->gin_null_value());
2188
382
      break;
2189
0
    }
2190
12.0M
    case VALUE_NOT_SET: {
2191
12.0M
      break;
2192
162M
    }
2193
162M
  }
2194
162M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2195
162M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2196
162M
  _cached_size_ = cached_size;
2197
162M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2198
162M
  return total_size;
2199
162M
}
2200
2201
0
void QLValuePB::MergeFrom(const ::google::protobuf::Message& from) {
2202
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLValuePB)
2203
0
  GOOGLE_DCHECK_NE(&from, this);
2204
0
  const QLValuePB* source =
2205
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLValuePB>(
2206
0
          &from);
2207
0
  if (source == NULL) {
2208
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLValuePB)
2209
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2210
0
  } else {
2211
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLValuePB)
2212
0
    MergeFrom(*source);
2213
0
  }
2214
0
}
2215
2216
106M
void QLValuePB::MergeFrom(const QLValuePB& from) {
2217
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLValuePB)
2218
106M
  GOOGLE_DCHECK_NE(&from, this);
2219
106M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2220
106M
  ::google::protobuf::uint32 cached_has_bits = 0;
2221
106M
  (void) cached_has_bits;
2222
2223
106M
  switch (from.value_case()) {
2224
1.61M
    case kInt8Value: {
2225
1.61M
      set_int8_value(from.int8_value());
2226
1.61M
      break;
2227
0
    }
2228
696k
    case kInt16Value: {
2229
696k
      set_int16_value(from.int16_value());
2230
696k
      break;
2231
0
    }
2232
55.4M
    case kInt32Value: {
2233
55.4M
      set_int32_value(from.int32_value());
2234
55.4M
      break;
2235
0
    }
2236
1.91M
    case kInt64Value: {
2237
1.91M
      set_int64_value(from.int64_value());
2238
1.91M
      break;
2239
0
    }
2240
136k
    case kFloatValue: {
2241
136k
      set_float_value(from.float_value());
2242
136k
      break;
2243
0
    }
2244
343k
    case kDoubleValue: {
2245
343k
      set_double_value(from.double_value());
2246
343k
      break;
2247
0
    }
2248
24.6M
    case kStringValue: {
2249
24.6M
      set_string_value(from.string_value());
2250
24.6M
      break;
2251
0
    }
2252
1.19M
    case kBoolValue: {
2253
1.19M
      set_bool_value(from.bool_value());
2254
1.19M
      break;
2255
0
    }
2256
672k
    case kTimestampValue: {
2257
672k
      set_timestamp_value(from.timestamp_value());
2258
672k
      break;
2259
0
    }
2260
4.66M
    case kBinaryValue: {
2261
4.66M
      set_binary_value(from.binary_value());
2262
4.66M
      break;
2263
0
    }
2264
3.25M
    case kInetaddressValue: {
2265
3.25M
      set_inetaddress_value(from.inetaddress_value());
2266
3.25M
      break;
2267
0
    }
2268
594k
    case kMapValue: {
2269
594k
      mutable_map_value()->::yb::QLMapValuePB::MergeFrom(from.map_value());
2270
594k
      break;
2271
0
    }
2272
367k
    case kSetValue: {
2273
367k
      mutable_set_value()->::yb::QLSeqValuePB::MergeFrom(from.set_value());
2274
367k
      break;
2275
0
    }
2276
9.57k
    case kListValue: {
2277
9.57k
      mutable_list_value()->::yb::QLSeqValuePB::MergeFrom(from.list_value());
2278
9.57k
      break;
2279
0
    }
2280
6.03k
    case kDecimalValue: {
2281
6.03k
      set_decimal_value(from.decimal_value());
2282
6.03k
      break;
2283
0
    }
2284
2.41k
    case kVarintValue: {
2285
2.41k
      set_varint_value(from.varint_value());
2286
2.41k
      break;
2287
0
    }
2288
1.06k
    case kFrozenValue: {
2289
1.06k
      mutable_frozen_value()->::yb::QLSeqValuePB::MergeFrom(from.frozen_value());
2290
1.06k
      break;
2291
0
    }
2292
875k
    case kUuidValue: {
2293
875k
      set_uuid_value(from.uuid_value());
2294
875k
      break;
2295
0
    }
2296
258
    case kTimeuuidValue: {
2297
258
      set_timeuuid_value(from.timeuuid_value());
2298
258
      break;
2299
0
    }
2300
6.46k
    case kJsonbValue: {
2301
6.46k
      set_jsonb_value(from.jsonb_value());
2302
6.46k
      break;
2303
0
    }
2304
285
    case kDateValue: {
2305
285
      set_date_value(from.date_value());
2306
285
      break;
2307
0
    }
2308
276
    case kTimeValue: {
2309
276
      set_time_value(from.time_value());
2310
276
      break;
2311
0
    }
2312
4.05M
    case kUint32Value: {
2313
4.05M
      set_uint32_value(from.uint32_value());
2314
4.05M
      break;
2315
0
    }
2316
0
    case kUint64Value: {
2317
0
      set_uint64_value(from.uint64_value());
2318
0
      break;
2319
0
    }
2320
8
    case kVirtualValue: {
2321
8
      set_virtual_value(from.virtual_value());
2322
8
      break;
2323
0
    }
2324
117
    case kGinNullValue: {
2325
117
      set_gin_null_value(from.gin_null_value());
2326
117
      break;
2327
0
    }
2328
6.51M
    case VALUE_NOT_SET: {
2329
6.51M
      break;
2330
0
    }
2331
106M
  }
2332
106M
}
2333
2334
0
void QLValuePB::CopyFrom(const ::google::protobuf::Message& from) {
2335
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLValuePB)
2336
0
  if (&from == this) return;
2337
0
  Clear();
2338
0
  MergeFrom(from);
2339
0
}
2340
2341
55.6M
void QLValuePB::CopyFrom(const QLValuePB& from) {
2342
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLValuePB)
2343
55.6M
  if (&from == this) return;
2344
55.6M
  Clear();
2345
55.6M
  MergeFrom(from);
2346
55.6M
}
2347
2348
6.05M
bool QLValuePB::IsInitialized() const {
2349
6.05M
  return true;
2350
6.05M
}
2351
2352
4.41k
void QLValuePB::Swap(QLValuePB* other) {
2353
4.41k
  if (other == this) return;
2354
4.41k
  InternalSwap(other);
2355
4.41k
}
2356
37.6M
void QLValuePB::InternalSwap(QLValuePB* other) {
2357
37.6M
  using std::swap;
2358
37.6M
  swap(value_, other->value_);
2359
37.6M
  swap(_oneof_case_[0], other->_oneof_case_[0]);
2360
37.6M
  swap(_has_bits_[0], other->_has_bits_[0]);
2361
37.6M
  _internal_metadata_.Swap(&other->_internal_metadata_);
2362
37.6M
  swap(_cached_size_, other->_cached_size_);
2363
37.6M
}
2364
2365
22.5M
::google::protobuf::Metadata QLValuePB::GetMetadata() const {
2366
22.5M
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
2367
22.5M
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
2368
22.5M
}
2369
2370
2371
// ===================================================================
2372
2373
13.6k
void DatumMessagePB::InitAsDefaultInstance() {
2374
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_int32_ = 0;
2375
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_int64_ = GOOGLE_LONGLONG(0);
2376
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_float_ = 0;
2377
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_double_ = 0;
2378
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_bool_ = false;
2379
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_string_.UnsafeSetDefault(
2380
13.6k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
2381
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_bytes_.UnsafeSetDefault(
2382
13.6k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
2383
13.6k
  ::yb::_DatumMessagePB_default_instance_.datum_missing_ = false;
2384
13.6k
}
2385
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2386
const int DatumMessagePB::kColumnNameFieldNumber;
2387
const int DatumMessagePB::kColumnTypeFieldNumber;
2388
const int DatumMessagePB::kDatumInt32FieldNumber;
2389
const int DatumMessagePB::kDatumInt64FieldNumber;
2390
const int DatumMessagePB::kDatumFloatFieldNumber;
2391
const int DatumMessagePB::kDatumDoubleFieldNumber;
2392
const int DatumMessagePB::kDatumBoolFieldNumber;
2393
const int DatumMessagePB::kDatumStringFieldNumber;
2394
const int DatumMessagePB::kDatumBytesFieldNumber;
2395
const int DatumMessagePB::kDatumMissingFieldNumber;
2396
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2397
2398
DatumMessagePB::DatumMessagePB()
2399
92.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2400
78.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2401
78.7k
    ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsDatumMessagePB();
2402
78.7k
  }
2403
92.4k
  SharedCtor();
2404
  // @@protoc_insertion_point(constructor:yb.DatumMessagePB)
2405
92.4k
}
2406
DatumMessagePB::DatumMessagePB(const DatumMessagePB& from)
2407
  : ::google::protobuf::Message(),
2408
      _internal_metadata_(NULL),
2409
      _has_bits_(from._has_bits_),
2410
0
      _cached_size_(0) {
2411
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2412
0
  column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2413
0
  if (from.has_column_name()) {
2414
0
    column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
2415
0
  }
2416
0
  column_type_ = from.column_type_;
2417
0
  clear_has_datum();
2418
0
  switch (from.datum_case()) {
2419
0
    case kDatumInt32: {
2420
0
      set_datum_int32(from.datum_int32());
2421
0
      break;
2422
0
    }
2423
0
    case kDatumInt64: {
2424
0
      set_datum_int64(from.datum_int64());
2425
0
      break;
2426
0
    }
2427
0
    case kDatumFloat: {
2428
0
      set_datum_float(from.datum_float());
2429
0
      break;
2430
0
    }
2431
0
    case kDatumDouble: {
2432
0
      set_datum_double(from.datum_double());
2433
0
      break;
2434
0
    }
2435
0
    case kDatumBool: {
2436
0
      set_datum_bool(from.datum_bool());
2437
0
      break;
2438
0
    }
2439
0
    case kDatumString: {
2440
0
      set_datum_string(from.datum_string());
2441
0
      break;
2442
0
    }
2443
0
    case kDatumBytes: {
2444
0
      set_datum_bytes(from.datum_bytes());
2445
0
      break;
2446
0
    }
2447
0
    case kDatumMissing: {
2448
0
      set_datum_missing(from.datum_missing());
2449
0
      break;
2450
0
    }
2451
0
    case DATUM_NOT_SET: {
2452
0
      break;
2453
0
    }
2454
0
  }
2455
  // @@protoc_insertion_point(copy_constructor:yb.DatumMessagePB)
2456
0
}
2457
2458
92.4k
void DatumMessagePB::SharedCtor() {
2459
92.4k
  _cached_size_ = 0;
2460
92.4k
  column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2461
92.4k
  column_type_ = GOOGLE_LONGLONG(0);
2462
92.4k
  clear_has_datum();
2463
92.4k
}
2464
2465
78.7k
DatumMessagePB::~DatumMessagePB() {
2466
  // @@protoc_insertion_point(destructor:yb.DatumMessagePB)
2467
78.7k
  SharedDtor();
2468
78.7k
}
2469
2470
78.7k
void DatumMessagePB::SharedDtor() {
2471
78.7k
  column_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2472
78.7k
  if (has_datum()) {
2473
39.3k
    clear_datum();
2474
39.3k
  }
2475
78.7k
}
2476
2477
0
void DatumMessagePB::SetCachedSize(int size) const {
2478
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2479
0
  _cached_size_ = size;
2480
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2481
0
}
2482
0
const ::google::protobuf::Descriptor* DatumMessagePB::descriptor() {
2483
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
2484
0
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2485
0
}
2486
2487
0
const DatumMessagePB& DatumMessagePB::default_instance() {
2488
0
  ::protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsDatumMessagePB();
2489
0
  return *internal_default_instance();
2490
0
}
2491
2492
0
DatumMessagePB* DatumMessagePB::New(::google::protobuf::Arena* arena) const {
2493
0
  DatumMessagePB* n = new DatumMessagePB;
2494
0
  if (arena != NULL) {
2495
0
    arena->Own(n);
2496
0
  }
2497
0
  return n;
2498
0
}
2499
2500
79.3k
void DatumMessagePB::clear_datum() {
2501
// @@protoc_insertion_point(one_of_clear_start:yb.DatumMessagePB)
2502
79.3k
  switch (datum_case()) {
2503
39.2k
    case kDatumInt32: {
2504
      // No need to clear
2505
39.2k
      break;
2506
0
    }
2507
0
    case kDatumInt64: {
2508
      // No need to clear
2509
0
      break;
2510
0
    }
2511
0
    case kDatumFloat: {
2512
      // No need to clear
2513
0
      break;
2514
0
    }
2515
10
    case kDatumDouble: {
2516
      // No need to clear
2517
10
      break;
2518
0
    }
2519
5
    case kDatumBool: {
2520
      // No need to clear
2521
5
      break;
2522
0
    }
2523
263
    case kDatumString: {
2524
263
      datum_.datum_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2525
263
      break;
2526
0
    }
2527
0
    case kDatumBytes: {
2528
0
      datum_.datum_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2529
0
      break;
2530
0
    }
2531
0
    case kDatumMissing: {
2532
      // No need to clear
2533
0
      break;
2534
0
    }
2535
39.8k
    case DATUM_NOT_SET: {
2536
39.8k
      break;
2537
79.3k
    }
2538
79.3k
  }
2539
79.3k
  _oneof_case_[0] = DATUM_NOT_SET;
2540
79.3k
}
2541
2542
2543
480
void DatumMessagePB::Clear() {
2544
// @@protoc_insertion_point(message_clear_start:yb.DatumMessagePB)
2545
480
  ::google::protobuf::uint32 cached_has_bits = 0;
2546
  // Prevent compiler warnings about cached_has_bits being unused
2547
480
  (void) cached_has_bits;
2548
2549
480
  cached_has_bits = _has_bits_[0];
2550
480
  if (cached_has_bits & 0x00000001u) {
2551
240
    GOOGLE_DCHECK(!column_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2552
240
    (*column_name_.UnsafeRawStringPointer())->clear();
2553
240
  }
2554
480
  column_type_ = GOOGLE_LONGLONG(0);
2555
480
  clear_datum();
2556
480
  _has_bits_.Clear();
2557
480
  _internal_metadata_.Clear();
2558
480
}
2559
2560
bool DatumMessagePB::MergePartialFromCodedStream(
2561
0
    ::google::protobuf::io::CodedInputStream* input) {
2562
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2563
0
  ::google::protobuf::uint32 tag;
2564
  // @@protoc_insertion_point(parse_start:yb.DatumMessagePB)
2565
0
  for (;;) {
2566
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2567
0
    tag = p.first;
2568
0
    if (!p.second) goto handle_unusual;
2569
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2570
      // optional string column_name = 1;
2571
0
      case 1: {
2572
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2573
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2574
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2575
0
                input, this->mutable_column_name()));
2576
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2577
0
            this->column_name().data(), static_cast<int>(this->column_name().length()),
2578
0
            ::google::protobuf::internal::WireFormat::PARSE,
2579
0
            "yb.DatumMessagePB.column_name");
2580
0
        } else {
2581
0
          goto handle_unusual;
2582
0
        }
2583
0
        break;
2584
0
      }
2585
2586
      // optional int64 column_type = 2;
2587
0
      case 2: {
2588
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2589
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2590
0
          set_has_column_type();
2591
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2592
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2593
0
                 input, &column_type_)));
2594
0
        } else {
2595
0
          goto handle_unusual;
2596
0
        }
2597
0
        break;
2598
0
      }
2599
2600
      // optional int32 datum_int32 = 3;
2601
0
      case 3: {
2602
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2603
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2604
0
          clear_datum();
2605
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2606
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2607
0
                 input, &datum_.datum_int32_)));
2608
0
          set_has_datum_int32();
2609
0
        } else {
2610
0
          goto handle_unusual;
2611
0
        }
2612
0
        break;
2613
0
      }
2614
2615
      // optional int64 datum_int64 = 4;
2616
0
      case 4: {
2617
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2618
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2619
0
          clear_datum();
2620
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2621
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2622
0
                 input, &datum_.datum_int64_)));
2623
0
          set_has_datum_int64();
2624
0
        } else {
2625
0
          goto handle_unusual;
2626
0
        }
2627
0
        break;
2628
0
      }
2629
2630
      // optional float datum_float = 5;
2631
0
      case 5: {
2632
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2633
0
            static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
2634
0
          clear_datum();
2635
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2636
0
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
2637
0
                 input, &datum_.datum_float_)));
2638
0
          set_has_datum_float();
2639
0
        } else {
2640
0
          goto handle_unusual;
2641
0
        }
2642
0
        break;
2643
0
      }
2644
2645
      // optional double datum_double = 6;
2646
0
      case 6: {
2647
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2648
0
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
2649
0
          clear_datum();
2650
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2651
0
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2652
0
                 input, &datum_.datum_double_)));
2653
0
          set_has_datum_double();
2654
0
        } else {
2655
0
          goto handle_unusual;
2656
0
        }
2657
0
        break;
2658
0
      }
2659
2660
      // optional bool datum_bool = 7;
2661
0
      case 7: {
2662
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2663
0
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
2664
0
          clear_datum();
2665
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2666
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2667
0
                 input, &datum_.datum_bool_)));
2668
0
          set_has_datum_bool();
2669
0
        } else {
2670
0
          goto handle_unusual;
2671
0
        }
2672
0
        break;
2673
0
      }
2674
2675
      // optional string datum_string = 8;
2676
0
      case 8: {
2677
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2678
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
2679
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2680
0
                input, this->mutable_datum_string()));
2681
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2682
0
            this->datum_string().data(), static_cast<int>(this->datum_string().length()),
2683
0
            ::google::protobuf::internal::WireFormat::PARSE,
2684
0
            "yb.DatumMessagePB.datum_string");
2685
0
        } else {
2686
0
          goto handle_unusual;
2687
0
        }
2688
0
        break;
2689
0
      }
2690
2691
      // optional bytes datum_bytes = 9;
2692
0
      case 9: {
2693
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2694
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
2695
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2696
0
                input, this->mutable_datum_bytes()));
2697
0
        } else {
2698
0
          goto handle_unusual;
2699
0
        }
2700
0
        break;
2701
0
      }
2702
2703
      // optional bool datum_missing = 10;
2704
0
      case 10: {
2705
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2706
0
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
2707
0
          clear_datum();
2708
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2709
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2710
0
                 input, &datum_.datum_missing_)));
2711
0
          set_has_datum_missing();
2712
0
        } else {
2713
0
          goto handle_unusual;
2714
0
        }
2715
0
        break;
2716
0
      }
2717
2718
0
      default: {
2719
0
      handle_unusual:
2720
0
        if (tag == 0) {
2721
0
          goto success;
2722
0
        }
2723
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2724
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2725
0
        break;
2726
0
      }
2727
0
    }
2728
0
  }
2729
0
success:
2730
  // @@protoc_insertion_point(parse_success:yb.DatumMessagePB)
2731
0
  return true;
2732
0
failure:
2733
  // @@protoc_insertion_point(parse_failure:yb.DatumMessagePB)
2734
0
  return false;
2735
0
#undef DO_
2736
0
}
2737
2738
void DatumMessagePB::SerializeWithCachedSizes(
2739
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2740
  // @@protoc_insertion_point(serialize_start:yb.DatumMessagePB)
2741
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2742
0
  (void) cached_has_bits;
2743
2744
0
  cached_has_bits = _has_bits_[0];
2745
  // optional string column_name = 1;
2746
0
  if (cached_has_bits & 0x00000001u) {
2747
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2748
0
      this->column_name().data(), static_cast<int>(this->column_name().length()),
2749
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2750
0
      "yb.DatumMessagePB.column_name");
2751
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2752
0
      1, this->column_name(), output);
2753
0
  }
2754
2755
  // optional int64 column_type = 2;
2756
0
  if (cached_has_bits & 0x00000002u) {
2757
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->column_type(), output);
2758
0
  }
2759
2760
0
  switch (datum_case()) {
2761
0
    case kDatumInt32:
2762
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->datum_int32(), output);
2763
0
      break;
2764
0
    case kDatumInt64:
2765
0
      ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->datum_int64(), output);
2766
0
      break;
2767
0
    case kDatumFloat:
2768
0
      ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->datum_float(), output);
2769
0
      break;
2770
0
    case kDatumDouble:
2771
0
      ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->datum_double(), output);
2772
0
      break;
2773
0
    case kDatumBool:
2774
0
      ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->datum_bool(), output);
2775
0
      break;
2776
0
    case kDatumString:
2777
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2778
0
        this->datum_string().data(), static_cast<int>(this->datum_string().length()),
2779
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
2780
0
        "yb.DatumMessagePB.datum_string");
2781
0
      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2782
0
        8, this->datum_string(), output);
2783
0
      break;
2784
0
    case kDatumBytes:
2785
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2786
0
        9, this->datum_bytes(), output);
2787
0
      break;
2788
0
    case kDatumMissing:
2789
0
      ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->datum_missing(), output);
2790
0
      break;
2791
0
    default: ;
2792
0
  }
2793
0
  if (_internal_metadata_.have_unknown_fields()) {
2794
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2795
0
        _internal_metadata_.unknown_fields(), output);
2796
0
  }
2797
  // @@protoc_insertion_point(serialize_end:yb.DatumMessagePB)
2798
0
}
2799
2800
::google::protobuf::uint8* DatumMessagePB::InternalSerializeWithCachedSizesToArray(
2801
78.3k
    bool deterministic, ::google::protobuf::uint8* target) const {
2802
78.3k
  (void)deterministic; // Unused
2803
  // @@protoc_insertion_point(serialize_to_array_start:yb.DatumMessagePB)
2804
78.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
2805
78.3k
  (void) cached_has_bits;
2806
2807
78.3k
  cached_has_bits = _has_bits_[0];
2808
  // optional string column_name = 1;
2809
78.3k
  if (cached_has_bits & 0x00000001u) {
2810
39.1k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2811
39.1k
      this->column_name().data(), static_cast<int>(this->column_name().length()),
2812
39.1k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2813
39.1k
      "yb.DatumMessagePB.column_name");
2814
39.1k
    target =
2815
39.1k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2816
39.1k
        1, this->column_name(), target);
2817
39.1k
  }
2818
2819
  // optional int64 column_type = 2;
2820
78.3k
  if (cached_has_bits & 0x00000002u) {
2821
39.1k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->column_type(), target);
2822
39.1k
  }
2823
2824
78.3k
  switch (datum_case()) {
2825
38.9k
    case kDatumInt32:
2826
38.9k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->datum_int32(), target);
2827
38.9k
      break;
2828
0
    case kDatumInt64:
2829
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->datum_int64(), target);
2830
0
      break;
2831
0
    case kDatumFloat:
2832
0
      target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->datum_float(), target);
2833
0
      break;
2834
8
    case kDatumDouble:
2835
8
      target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->datum_double(), target);
2836
8
      break;
2837
4
    case kDatumBool:
2838
4
      target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->datum_bool(), target);
2839
4
      break;
2840
232
    case kDatumString:
2841
232
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2842
232
        this->datum_string().data(), static_cast<int>(this->datum_string().length()),
2843
232
        ::google::protobuf::internal::WireFormat::SERIALIZE,
2844
232
        "yb.DatumMessagePB.datum_string");
2845
232
      target =
2846
232
        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2847
232
          8, this->datum_string(), target);
2848
232
      break;
2849
0
    case kDatumBytes:
2850
0
      target =
2851
0
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2852
0
          9, this->datum_bytes(), target);
2853
0
      break;
2854
0
    case kDatumMissing:
2855
0
      target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->datum_missing(), target);
2856
0
      break;
2857
39.2k
    default: ;
2858
78.3k
  }
2859
78.3k
  if (_internal_metadata_.have_unknown_fields()) {
2860
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2861
0
        _internal_metadata_.unknown_fields(), target);
2862
0
  }
2863
  // @@protoc_insertion_point(serialize_to_array_end:yb.DatumMessagePB)
2864
78.3k
  return target;
2865
78.3k
}
2866
2867
156k
size_t DatumMessagePB::ByteSizeLong() const {
2868
// @@protoc_insertion_point(message_byte_size_start:yb.DatumMessagePB)
2869
156k
  size_t total_size = 0;
2870
2871
156k
  if (_internal_metadata_.have_unknown_fields()) {
2872
0
    total_size +=
2873
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2874
0
        _internal_metadata_.unknown_fields());
2875
0
  }
2876
156k
  if (_has_bits_[0 / 32] & 3u) {
2877
    // optional string column_name = 1;
2878
78.3k
    if (has_column_name()) {
2879
78.3k
      total_size += 1 +
2880
78.3k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2881
78.3k
          this->column_name());
2882
78.3k
    }
2883
2884
    // optional int64 column_type = 2;
2885
78.3k
    if (has_column_type()) {
2886
78.3k
      total_size += 1 +
2887
78.3k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2888
78.3k
          this->column_type());
2889
78.3k
    }
2890
2891
78.3k
  }
2892
156k
  switch (datum_case()) {
2893
    // optional int32 datum_int32 = 3;
2894
77.8k
    case kDatumInt32: {
2895
77.8k
      total_size += 1 +
2896
77.8k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2897
77.8k
          this->datum_int32());
2898
77.8k
      break;
2899
0
    }
2900
    // optional int64 datum_int64 = 4;
2901
0
    case kDatumInt64: {
2902
0
      total_size += 1 +
2903
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2904
0
          this->datum_int64());
2905
0
      break;
2906
0
    }
2907
    // optional float datum_float = 5;
2908
0
    case kDatumFloat: {
2909
0
      total_size += 1 + 4;
2910
0
      break;
2911
0
    }
2912
    // optional double datum_double = 6;
2913
16
    case kDatumDouble: {
2914
16
      total_size += 1 + 8;
2915
16
      break;
2916
0
    }
2917
    // optional bool datum_bool = 7;
2918
8
    case kDatumBool: {
2919
8
      total_size += 1 + 1;
2920
8
      break;
2921
0
    }
2922
    // optional string datum_string = 8;
2923
464
    case kDatumString: {
2924
464
      total_size += 1 +
2925
464
        ::google::protobuf::internal::WireFormatLite::StringSize(
2926
464
          this->datum_string());
2927
464
      break;
2928
0
    }
2929
    // optional bytes datum_bytes = 9;
2930
0
    case kDatumBytes: {
2931
0
      total_size += 1 +
2932
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2933
0
          this->datum_bytes());
2934
0
      break;
2935
0
    }
2936
    // optional bool datum_missing = 10;
2937
0
    case kDatumMissing: {
2938
0
      total_size += 1 + 1;
2939
0
      break;
2940
0
    }
2941
78.4k
    case DATUM_NOT_SET: {
2942
78.4k
      break;
2943
156k
    }
2944
156k
  }
2945
156k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2946
156k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2947
156k
  _cached_size_ = cached_size;
2948
156k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2949
156k
  return total_size;
2950
156k
}
2951
2952
0
void DatumMessagePB::MergeFrom(const ::google::protobuf::Message& from) {
2953
// @@protoc_insertion_point(generalized_merge_from_start:yb.DatumMessagePB)
2954
0
  GOOGLE_DCHECK_NE(&from, this);
2955
0
  const DatumMessagePB* source =
2956
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DatumMessagePB>(
2957
0
          &from);
2958
0
  if (source == NULL) {
2959
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.DatumMessagePB)
2960
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2961
0
  } else {
2962
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.DatumMessagePB)
2963
0
    MergeFrom(*source);
2964
0
  }
2965
0
}
2966
2967
844
void DatumMessagePB::MergeFrom(const DatumMessagePB& from) {
2968
// @@protoc_insertion_point(class_specific_merge_from_start:yb.DatumMessagePB)
2969
844
  GOOGLE_DCHECK_NE(&from, this);
2970
844
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2971
844
  ::google::protobuf::uint32 cached_has_bits = 0;
2972
844
  (void) cached_has_bits;
2973
2974
844
  cached_has_bits = from._has_bits_[0];
2975
844
  if (cached_has_bits & 3u) {
2976
422
    if (cached_has_bits & 0x00000001u) {
2977
422
      set_has_column_name();
2978
422
      column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
2979
422
    }
2980
422
    if (cached_has_bits & 0x00000002u) {
2981
422
      column_type_ = from.column_type_;
2982
422
    }
2983
422
    _has_bits_[0] |= cached_has_bits;
2984
422
  }
2985
844
  switch (from.datum_case()) {
2986
386
    case kDatumInt32: {
2987
386
      set_datum_int32(from.datum_int32());
2988
386
      break;
2989
0
    }
2990
0
    case kDatumInt64: {
2991
0
      set_datum_int64(from.datum_int64());
2992
0
      break;
2993
0
    }
2994
0
    case kDatumFloat: {
2995
0
      set_datum_float(from.datum_float());
2996
0
      break;
2997
0
    }
2998
2
    case kDatumDouble: {
2999
2
      set_datum_double(from.datum_double());
3000
2
      break;
3001
0
    }
3002
1
    case kDatumBool: {
3003
1
      set_datum_bool(from.datum_bool());
3004
1
      break;
3005
0
    }
3006
31
    case kDatumString: {
3007
31
      set_datum_string(from.datum_string());
3008
31
      break;
3009
0
    }
3010
0
    case kDatumBytes: {
3011
0
      set_datum_bytes(from.datum_bytes());
3012
0
      break;
3013
0
    }
3014
0
    case kDatumMissing: {
3015
0
      set_datum_missing(from.datum_missing());
3016
0
      break;
3017
0
    }
3018
424
    case DATUM_NOT_SET: {
3019
424
      break;
3020
0
    }
3021
844
  }
3022
844
}
3023
3024
0
void DatumMessagePB::CopyFrom(const ::google::protobuf::Message& from) {
3025
// @@protoc_insertion_point(generalized_copy_from_start:yb.DatumMessagePB)
3026
0
  if (&from == this) return;
3027
0
  Clear();
3028
0
  MergeFrom(from);
3029
0
}
3030
3031
0
void DatumMessagePB::CopyFrom(const DatumMessagePB& from) {
3032
// @@protoc_insertion_point(class_specific_copy_from_start:yb.DatumMessagePB)
3033
0
  if (&from == this) return;
3034
0
  Clear();
3035
0
  MergeFrom(from);
3036
0
}
3037
3038
0
bool DatumMessagePB::IsInitialized() const {
3039
0
  return true;
3040
0
}
3041
3042
0
void DatumMessagePB::Swap(DatumMessagePB* other) {
3043
0
  if (other == this) return;
3044
0
  InternalSwap(other);
3045
0
}
3046
0
void DatumMessagePB::InternalSwap(DatumMessagePB* other) {
3047
0
  using std::swap;
3048
0
  column_name_.Swap(&other->column_name_);
3049
0
  swap(column_type_, other->column_type_);
3050
0
  swap(datum_, other->datum_);
3051
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
3052
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3053
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3054
0
  swap(_cached_size_, other->_cached_size_);
3055
0
}
3056
3057
0
::google::protobuf::Metadata DatumMessagePB::GetMetadata() const {
3058
0
  protobuf_yb_2fcommon_2fvalue_2eproto::protobuf_AssignDescriptorsOnce();
3059
0
  return ::protobuf_yb_2fcommon_2fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
3060
0
}
3061
3062
3063
// @@protoc_insertion_point(namespace_scope)
3064
}  // namespace yb
3065
3066
// @@protoc_insertion_point(global_scope)