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