/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/ql_protocol.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/common/ql_protocol.proto |
3 | | |
4 | | #include "yb/common/ql_protocol.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/stubs/once.h> |
11 | | #include <google/protobuf/io/coded_stream.h> |
12 | | #include <google/protobuf/wire_format_lite_inl.h> |
13 | | #include <google/protobuf/descriptor.h> |
14 | | #include <google/protobuf/generated_message_reflection.h> |
15 | | #include <google/protobuf/reflection_ops.h> |
16 | | #include <google/protobuf/wire_format.h> |
17 | | // This is a temporary google only hack |
18 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
19 | | #include "third_party/protobuf/version.h" |
20 | | #endif |
21 | | #include "yb/util/protobuf-annotations.h" |
22 | | // @@protoc_insertion_point(includes) |
23 | | namespace yb { |
24 | | class QLColumnValuePBDefaultTypeInternal { |
25 | | public: |
26 | | ::google::protobuf::internal::ExplicitlyConstructed<QLColumnValuePB> |
27 | | _instance; |
28 | | } _QLColumnValuePB_default_instance_; |
29 | | class QLSelectRowCounterPBDefaultTypeInternal { |
30 | | public: |
31 | | ::google::protobuf::internal::ExplicitlyConstructed<QLSelectRowCounterPB> |
32 | | _instance; |
33 | | } _QLSelectRowCounterPB_default_instance_; |
34 | | class QLPagingStatePBDefaultTypeInternal { |
35 | | public: |
36 | | ::google::protobuf::internal::ExplicitlyConstructed<QLPagingStatePB> |
37 | | _instance; |
38 | | } _QLPagingStatePB_default_instance_; |
39 | | class QLReferencedColumnsPBDefaultTypeInternal { |
40 | | public: |
41 | | ::google::protobuf::internal::ExplicitlyConstructed<QLReferencedColumnsPB> |
42 | | _instance; |
43 | | } _QLReferencedColumnsPB_default_instance_; |
44 | | class QLWriteRequestPBDefaultTypeInternal { |
45 | | public: |
46 | | ::google::protobuf::internal::ExplicitlyConstructed<QLWriteRequestPB> |
47 | | _instance; |
48 | | } _QLWriteRequestPB_default_instance_; |
49 | | class QLRSColDescPBDefaultTypeInternal { |
50 | | public: |
51 | | ::google::protobuf::internal::ExplicitlyConstructed<QLRSColDescPB> |
52 | | _instance; |
53 | | } _QLRSColDescPB_default_instance_; |
54 | | class QLRSRowDescPBDefaultTypeInternal { |
55 | | public: |
56 | | ::google::protobuf::internal::ExplicitlyConstructed<QLRSRowDescPB> |
57 | | _instance; |
58 | | } _QLRSRowDescPB_default_instance_; |
59 | | class QLReadRequestPBDefaultTypeInternal { |
60 | | public: |
61 | | ::google::protobuf::internal::ExplicitlyConstructed<QLReadRequestPB> |
62 | | _instance; |
63 | | } _QLReadRequestPB_default_instance_; |
64 | | class QLResponsePBDefaultTypeInternal { |
65 | | public: |
66 | | ::google::protobuf::internal::ExplicitlyConstructed<QLResponsePB> |
67 | | _instance; |
68 | | } _QLResponsePB_default_instance_; |
69 | | } // namespace yb |
70 | | namespace protobuf_yb_2fcommon_2fql_5fprotocol_2eproto { |
71 | 17.1k | void InitDefaultsQLColumnValuePBImpl() { |
72 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
73 | | |
74 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
75 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
76 | | #else |
77 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
78 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
79 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB(); |
80 | 17.1k | { |
81 | 17.1k | void* ptr = &::yb::_QLColumnValuePB_default_instance_; |
82 | 17.1k | new (ptr) ::yb::QLColumnValuePB(); |
83 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
84 | 17.1k | } |
85 | 17.1k | ::yb::QLColumnValuePB::InitAsDefaultInstance(); |
86 | 17.1k | } |
87 | | |
88 | 8.79M | void InitDefaultsQLColumnValuePB() { |
89 | 8.79M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
90 | 8.79M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLColumnValuePBImpl); |
91 | 8.79M | } |
92 | | |
93 | 17.1k | void InitDefaultsQLSelectRowCounterPBImpl() { |
94 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
95 | | |
96 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
97 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
98 | | #else |
99 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
100 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
101 | 17.1k | { |
102 | 17.1k | void* ptr = &::yb::_QLSelectRowCounterPB_default_instance_; |
103 | 17.1k | new (ptr) ::yb::QLSelectRowCounterPB(); |
104 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
105 | 17.1k | } |
106 | 17.1k | ::yb::QLSelectRowCounterPB::InitAsDefaultInstance(); |
107 | 17.1k | } |
108 | | |
109 | 3.93M | void InitDefaultsQLSelectRowCounterPB() { |
110 | 3.93M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
111 | 3.93M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLSelectRowCounterPBImpl); |
112 | 3.93M | } |
113 | | |
114 | 17.1k | void InitDefaultsQLPagingStatePBImpl() { |
115 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
116 | | |
117 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
118 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
119 | | #else |
120 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
121 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
122 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB(); |
123 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLSelectRowCounterPB(); |
124 | 17.1k | { |
125 | 17.1k | void* ptr = &::yb::_QLPagingStatePB_default_instance_; |
126 | 17.1k | new (ptr) ::yb::QLPagingStatePB(); |
127 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
128 | 17.1k | } |
129 | 17.1k | ::yb::QLPagingStatePB::InitAsDefaultInstance(); |
130 | 17.1k | } |
131 | | |
132 | 11.8M | void InitDefaultsQLPagingStatePB() { |
133 | 11.8M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
134 | 11.8M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLPagingStatePBImpl); |
135 | 11.8M | } |
136 | | |
137 | 17.1k | void InitDefaultsQLReferencedColumnsPBImpl() { |
138 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
139 | | |
140 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
141 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
142 | | #else |
143 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
144 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
145 | 17.1k | { |
146 | 17.1k | void* ptr = &::yb::_QLReferencedColumnsPB_default_instance_; |
147 | 17.1k | new (ptr) ::yb::QLReferencedColumnsPB(); |
148 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
149 | 17.1k | } |
150 | 17.1k | ::yb::QLReferencedColumnsPB::InitAsDefaultInstance(); |
151 | 17.1k | } |
152 | | |
153 | 5.87M | void InitDefaultsQLReferencedColumnsPB() { |
154 | 5.87M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
155 | 5.87M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLReferencedColumnsPBImpl); |
156 | 5.87M | } |
157 | | |
158 | 17.1k | void InitDefaultsQLWriteRequestPBImpl() { |
159 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
160 | | |
161 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
162 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
163 | | #else |
164 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
165 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
166 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB(); |
167 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLColumnValuePB(); |
168 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReferencedColumnsPB(); |
169 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionDataPB(); |
170 | 17.1k | { |
171 | 17.1k | void* ptr = &::yb::_QLWriteRequestPB_default_instance_; |
172 | 17.1k | new (ptr) ::yb::QLWriteRequestPB(); |
173 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
174 | 17.1k | } |
175 | 17.1k | ::yb::QLWriteRequestPB::InitAsDefaultInstance(); |
176 | 17.1k | } |
177 | | |
178 | 5.67M | void InitDefaultsQLWriteRequestPB() { |
179 | 5.67M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
180 | 5.67M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLWriteRequestPBImpl); |
181 | 5.67M | } |
182 | | |
183 | 17.1k | void InitDefaultsQLRSColDescPBImpl() { |
184 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
185 | | |
186 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
187 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
188 | | #else |
189 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
190 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
191 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB(); |
192 | 17.1k | { |
193 | 17.1k | void* ptr = &::yb::_QLRSColDescPB_default_instance_; |
194 | 17.1k | new (ptr) ::yb::QLRSColDescPB(); |
195 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
196 | 17.1k | } |
197 | 17.1k | ::yb::QLRSColDescPB::InitAsDefaultInstance(); |
198 | 17.1k | } |
199 | | |
200 | 15.3M | void InitDefaultsQLRSColDescPB() { |
201 | 15.3M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
202 | 15.3M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLRSColDescPBImpl); |
203 | 15.3M | } |
204 | | |
205 | 17.1k | void InitDefaultsQLRSRowDescPBImpl() { |
206 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
207 | | |
208 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
209 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
210 | | #else |
211 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
212 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
213 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSColDescPB(); |
214 | 17.1k | { |
215 | 17.1k | void* ptr = &::yb::_QLRSRowDescPB_default_instance_; |
216 | 17.1k | new (ptr) ::yb::QLRSRowDescPB(); |
217 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
218 | 17.1k | } |
219 | 17.1k | ::yb::QLRSRowDescPB::InitAsDefaultInstance(); |
220 | 17.1k | } |
221 | | |
222 | 4.25M | void InitDefaultsQLRSRowDescPB() { |
223 | 4.25M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
224 | 4.25M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLRSRowDescPBImpl); |
225 | 4.25M | } |
226 | | |
227 | 17.1k | void InitDefaultsQLReadRequestPBImpl() { |
228 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
229 | | |
230 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
231 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
232 | | #else |
233 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
234 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
235 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB(); |
236 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSRowDescPB(); |
237 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLPagingStatePB(); |
238 | 17.1k | protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB(); |
239 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReferencedColumnsPB(); |
240 | 17.1k | { |
241 | 17.1k | void* ptr = &::yb::_QLReadRequestPB_default_instance_; |
242 | 17.1k | new (ptr) ::yb::QLReadRequestPB(); |
243 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
244 | 17.1k | } |
245 | 17.1k | ::yb::QLReadRequestPB::InitAsDefaultInstance(); |
246 | 17.1k | } |
247 | | |
248 | 4.25M | void InitDefaultsQLReadRequestPB() { |
249 | 4.25M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
250 | 4.25M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLReadRequestPBImpl); |
251 | 4.25M | } |
252 | | |
253 | 17.1k | void InitDefaultsQLResponsePBImpl() { |
254 | 17.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
255 | | |
256 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
257 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
258 | | #else |
259 | 17.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
260 | 17.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
261 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColumnSchemaPB(); |
262 | 17.1k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLPagingStatePB(); |
263 | 17.1k | protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionResultPB(); |
264 | 17.1k | { |
265 | 17.1k | void* ptr = &::yb::_QLResponsePB_default_instance_; |
266 | 17.1k | new (ptr) ::yb::QLResponsePB(); |
267 | 17.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
268 | 17.1k | } |
269 | 17.1k | ::yb::QLResponsePB::InitAsDefaultInstance(); |
270 | 17.1k | } |
271 | | |
272 | 24.4M | void InitDefaultsQLResponsePB() { |
273 | 24.4M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
274 | 24.4M | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLResponsePBImpl); |
275 | 24.4M | } |
276 | | |
277 | | ::google::protobuf::Metadata file_level_metadata[9]; |
278 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2]; |
279 | | |
280 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
281 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, _has_bits_), |
282 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, _internal_metadata_), |
283 | | ~0u, // no _extensions_ |
284 | | ~0u, // no _oneof_case_ |
285 | | ~0u, // no _weak_field_map_ |
286 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, column_id_), |
287 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, subscript_args_), |
288 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, json_args_), |
289 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLColumnValuePB, expr_), |
290 | | 1, |
291 | | ~0u, |
292 | | ~0u, |
293 | | 0, |
294 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, _has_bits_), |
295 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, _internal_metadata_), |
296 | | ~0u, // no _extensions_ |
297 | | ~0u, // no _oneof_case_ |
298 | | ~0u, // no _weak_field_map_ |
299 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, select_limit_), |
300 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, select_offset_), |
301 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, read_count_), |
302 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSelectRowCounterPB, skip_count_), |
303 | | 2, |
304 | | 3, |
305 | | 0, |
306 | | 1, |
307 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, _has_bits_), |
308 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, _internal_metadata_), |
309 | | ~0u, // no _extensions_ |
310 | | ~0u, // no _oneof_case_ |
311 | | ~0u, // no _weak_field_map_ |
312 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, table_id_), |
313 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, next_partition_key_), |
314 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, next_row_key_), |
315 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, total_num_rows_read_), |
316 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, next_partition_index_), |
317 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, total_rows_skipped_), |
318 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, original_request_id_), |
319 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, read_time_), |
320 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLPagingStatePB, row_counter_), |
321 | | 0, |
322 | | 1, |
323 | | 2, |
324 | | 5, |
325 | | 6, |
326 | | 7, |
327 | | 8, |
328 | | 3, |
329 | | 4, |
330 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReferencedColumnsPB, _has_bits_), |
331 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReferencedColumnsPB, _internal_metadata_), |
332 | | ~0u, // no _extensions_ |
333 | | ~0u, // no _oneof_case_ |
334 | | ~0u, // no _weak_field_map_ |
335 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReferencedColumnsPB, ids_), |
336 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReferencedColumnsPB, static_ids_), |
337 | | ~0u, |
338 | | ~0u, |
339 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, _has_bits_), |
340 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, _internal_metadata_), |
341 | | ~0u, // no _extensions_ |
342 | | ~0u, // no _oneof_case_ |
343 | | ~0u, // no _weak_field_map_ |
344 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, type_), |
345 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, client_), |
346 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, request_id_), |
347 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, schema_version_), |
348 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, hash_code_), |
349 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, hashed_column_values_), |
350 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, range_column_values_), |
351 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, column_values_), |
352 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, where_expr_), |
353 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, if_expr_), |
354 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, else_error_), |
355 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, ttl_), |
356 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, column_refs_), |
357 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, query_id_), |
358 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, user_timestamp_usec_), |
359 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, update_index_ids_), |
360 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, child_transaction_data_), |
361 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, returns_status_), |
362 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, is_backfill_), |
363 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLWriteRequestPB, is_compatible_with_previous_version_), |
364 | | 14, |
365 | | 15, |
366 | | 4, |
367 | | 5, |
368 | | 6, |
369 | | ~0u, |
370 | | ~0u, |
371 | | ~0u, |
372 | | 2, |
373 | | 0, |
374 | | 10, |
375 | | 7, |
376 | | 1, |
377 | | 8, |
378 | | 9, |
379 | | ~0u, |
380 | | 3, |
381 | | 11, |
382 | | 12, |
383 | | 13, |
384 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSColDescPB, _has_bits_), |
385 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSColDescPB, _internal_metadata_), |
386 | | ~0u, // no _extensions_ |
387 | | ~0u, // no _oneof_case_ |
388 | | ~0u, // no _weak_field_map_ |
389 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSColDescPB, name_), |
390 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSColDescPB, ql_type_), |
391 | | 0, |
392 | | 1, |
393 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSRowDescPB, _has_bits_), |
394 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSRowDescPB, _internal_metadata_), |
395 | | ~0u, // no _extensions_ |
396 | | ~0u, // no _oneof_case_ |
397 | | ~0u, // no _weak_field_map_ |
398 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLRSRowDescPB, rscol_descs_), |
399 | | ~0u, |
400 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, _has_bits_), |
401 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, _internal_metadata_), |
402 | | ~0u, // no _extensions_ |
403 | | ~0u, // no _oneof_case_ |
404 | | ~0u, // no _weak_field_map_ |
405 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, client_), |
406 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, request_id_), |
407 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, schema_version_), |
408 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, hash_code_), |
409 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, hashed_column_values_), |
410 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, is_forward_scan_), |
411 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, where_expr_), |
412 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, if_expr_), |
413 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, rsrow_desc_), |
414 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, selected_exprs_), |
415 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, distinct_), |
416 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, limit_), |
417 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, offset_), |
418 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, paging_state_), |
419 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, return_paging_state_), |
420 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, remote_endpoint_), |
421 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, proxy_uuid_), |
422 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, max_hash_code_), |
423 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, column_refs_), |
424 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, query_id_), |
425 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, is_aggregate_), |
426 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLReadRequestPB, is_compatible_with_previous_version_), |
427 | | 18, |
428 | | 7, |
429 | | 8, |
430 | | 9, |
431 | | ~0u, |
432 | | 19, |
433 | | 1, |
434 | | 6, |
435 | | 5, |
436 | | ~0u, |
437 | | 13, |
438 | | 10, |
439 | | 11, |
440 | | 2, |
441 | | 14, |
442 | | 3, |
443 | | 0, |
444 | | 12, |
445 | | 4, |
446 | | 17, |
447 | | 15, |
448 | | 16, |
449 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, _has_bits_), |
450 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, _internal_metadata_), |
451 | | ~0u, // no _extensions_ |
452 | | ~0u, // no _oneof_case_ |
453 | | ~0u, // no _weak_field_map_ |
454 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, status_), |
455 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, error_message_), |
456 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, column_schemas_), |
457 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, rows_data_sidecar_), |
458 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, paging_state_), |
459 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, child_transaction_result_), |
460 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLResponsePB, applied_), |
461 | | 3, |
462 | | 0, |
463 | | ~0u, |
464 | | 4, |
465 | | 1, |
466 | | 2, |
467 | | 5, |
468 | | }; |
469 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
470 | | { 0, 9, sizeof(::yb::QLColumnValuePB)}, |
471 | | { 13, 22, sizeof(::yb::QLSelectRowCounterPB)}, |
472 | | { 26, 40, sizeof(::yb::QLPagingStatePB)}, |
473 | | { 49, 56, sizeof(::yb::QLReferencedColumnsPB)}, |
474 | | { 58, 83, sizeof(::yb::QLWriteRequestPB)}, |
475 | | { 103, 110, sizeof(::yb::QLRSColDescPB)}, |
476 | | { 112, 118, sizeof(::yb::QLRSRowDescPB)}, |
477 | | { 119, 146, sizeof(::yb::QLReadRequestPB)}, |
478 | | { 168, 180, sizeof(::yb::QLResponsePB)}, |
479 | | }; |
480 | | |
481 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
482 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLColumnValuePB_default_instance_), |
483 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLSelectRowCounterPB_default_instance_), |
484 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLPagingStatePB_default_instance_), |
485 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLReferencedColumnsPB_default_instance_), |
486 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLWriteRequestPB_default_instance_), |
487 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLRSColDescPB_default_instance_), |
488 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLRSRowDescPB_default_instance_), |
489 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLReadRequestPB_default_instance_), |
490 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLResponsePB_default_instance_), |
491 | | }; |
492 | | |
493 | 2.76k | void protobuf_AssignDescriptors() { |
494 | 2.76k | AddDescriptors(); |
495 | 2.76k | ::google::protobuf::MessageFactory* factory = NULL; |
496 | 2.76k | AssignDescriptors( |
497 | 2.76k | "yb/common/ql_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
498 | 2.76k | file_level_metadata, file_level_enum_descriptors, NULL); |
499 | 2.76k | } |
500 | | |
501 | 9.43M | void protobuf_AssignDescriptorsOnce() { |
502 | 9.43M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
503 | 9.43M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
504 | 9.43M | } |
505 | | |
506 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
507 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
508 | 0 | protobuf_AssignDescriptorsOnce(); |
509 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9); |
510 | 0 | } |
511 | | |
512 | 17.1k | void AddDescriptorsImpl() { |
513 | 17.1k | InitDefaults(); |
514 | 17.1k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
515 | 17.1k | "\n\033yb/common/ql_protocol.proto\022\002yb\032\026yb/co" |
516 | 17.1k | "mmon/common.proto\032\032yb/common/common_net." |
517 | 17.1k | "proto\032\034yb/common/common_types.proto\"\234\001\n\017" |
518 | 17.1k | "QLColumnValuePB\022\021\n\tcolumn_id\030\001 \001(\005\022*\n\016su" |
519 | 17.1k | "bscript_args\030\003 \003(\0132\022.yb.QLExpressionPB\022(" |
520 | 17.1k | "\n\tjson_args\030\004 \003(\0132\025.yb.QLJsonOperationPB" |
521 | 17.1k | "\022 \n\004expr\030\002 \001(\0132\022.yb.QLExpressionPB\"y\n\024QL" |
522 | 17.1k | "SelectRowCounterPB\022\030\n\014select_limit\030\001 \001(\003" |
523 | 17.1k | ":\002-1\022\031\n\rselect_offset\030\002 \001(\003:\002-1\022\025\n\nread_" |
524 | 17.1k | "count\030\003 \001(\003:\0010\022\025\n\nskip_count\030\004 \001(\003:\0010\"\241\002" |
525 | 17.1k | "\n\017QLPagingStatePB\022\020\n\010table_id\030\001 \001(\014\022\032\n\022n" |
526 | 17.1k | "ext_partition_key\030\002 \001(\014\022\024\n\014next_row_key\030" |
527 | 17.1k | "\003 \001(\014\022\033\n\023total_num_rows_read\030\004 \001(\004\022\034\n\024ne" |
528 | 17.1k | "xt_partition_index\030\005 \001(\004\022\032\n\022total_rows_s" |
529 | 17.1k | "kipped\030\006 \001(\004\022\033\n\023original_request_id\030\007 \001(" |
530 | 17.1k | "\004\022\'\n\tread_time\030\010 \001(\0132\024.yb.ReadHybridTime" |
531 | 17.1k | "PB\022-\n\013row_counter\030\t \001(\0132\030.yb.QLSelectRow" |
532 | 17.1k | "CounterPB\"8\n\025QLReferencedColumnsPB\022\013\n\003id" |
533 | 17.1k | "s\030\001 \003(\005\022\022\n\nstatic_ids\030\002 \003(\005\"\220\006\n\020QLWriteR" |
534 | 17.1k | "equestPB\022-\n\004type\030\001 \001(\0162\037.yb.QLWriteReque" |
535 | 17.1k | "stPB.QLStmtType\022\034\n\006client\030\002 \001(\0162\014.yb.QLC" |
536 | 17.1k | "lient\022\022\n\nrequest_id\030\003 \001(\004\022\026\n\016schema_vers" |
537 | 17.1k | "ion\030\004 \001(\r\022\021\n\thash_code\030\005 \001(\r\0220\n\024hashed_c" |
538 | 17.1k | "olumn_values\030\006 \003(\0132\022.yb.QLExpressionPB\022/" |
539 | 17.1k | "\n\023range_column_values\030\007 \003(\0132\022.yb.QLExpre" |
540 | 17.1k | "ssionPB\022*\n\rcolumn_values\030\010 \003(\0132\023.yb.QLCo" |
541 | 17.1k | "lumnValuePB\022&\n\nwhere_expr\030\016 \001(\0132\022.yb.QLE" |
542 | 17.1k | "xpressionPB\022#\n\007if_expr\030\t \001(\0132\022.yb.QLExpr" |
543 | 17.1k | "essionPB\022\031\n\nelse_error\030\021 \001(\010:\005false\022\013\n\003t" |
544 | 17.1k | "tl\030\n \001(\004\022.\n\013column_refs\030\013 \001(\0132\031.yb.QLRef" |
545 | 17.1k | "erencedColumnsPB\022\020\n\010query_id\030\014 \001(\003\022\033\n\023us" |
546 | 17.1k | "er_timestamp_usec\030\r \001(\004\022\030\n\020update_index_" |
547 | 17.1k | "ids\030\017 \003(\014\022:\n\026child_transaction_data\030\020 \001(" |
548 | 17.1k | "\0132\032.yb.ChildTransactionDataPB\022\035\n\016returns" |
549 | 17.1k | "_status\030\022 \001(\010:\005false\022\032\n\013is_backfill\030\023 \001(" |
550 | 17.1k | "\010:\005false\0222\n#is_compatible_with_previous_" |
551 | 17.1k | "version\030\024 \001(\010:\005false\"H\n\nQLStmtType\022\022\n\016QL" |
552 | 17.1k | "_STMT_INSERT\020\001\022\022\n\016QL_STMT_UPDATE\020\002\022\022\n\016QL" |
553 | 17.1k | "_STMT_DELETE\020\003\"<\n\rQLRSColDescPB\022\014\n\004name\030" |
554 | 17.1k | "\001 \001(\t\022\035\n\007ql_type\030\002 \001(\0132\014.yb.QLTypePB\"7\n\r" |
555 | 17.1k | "QLRSRowDescPB\022&\n\013rscol_descs\030\001 \003(\0132\021.yb." |
556 | 17.1k | "QLRSColDescPB\"\315\005\n\017QLReadRequestPB\022\034\n\006cli" |
557 | 17.1k | "ent\030\001 \001(\0162\014.yb.QLClient\022\022\n\nrequest_id\030\002 " |
558 | 17.1k | "\001(\004\022\026\n\016schema_version\030\003 \001(\r\022\021\n\thash_code" |
559 | 17.1k | "\030\004 \001(\r\0220\n\024hashed_column_values\030\005 \003(\0132\022.y" |
560 | 17.1k | "b.QLExpressionPB\022\035\n\017is_forward_scan\030\022 \001(" |
561 | 17.1k | "\010:\004true\022&\n\nwhere_expr\030\006 \001(\0132\022.yb.QLExpre" |
562 | 17.1k | "ssionPB\022#\n\007if_expr\030\025 \001(\0132\022.yb.QLExpressi" |
563 | 17.1k | "onPB\022%\n\nrsrow_desc\030\021 \001(\0132\021.yb.QLRSRowDes" |
564 | 17.1k | "cPB\022*\n\016selected_exprs\030\007 \003(\0132\022.yb.QLExpre" |
565 | 17.1k | "ssionPB\022\027\n\010distinct\030\014 \001(\010:\005false\022\r\n\005limi" |
566 | 17.1k | "t\030\010 \001(\004\022\016\n\006offset\030\t \001(\004\022)\n\014paging_state\030" |
567 | 17.1k | "\n \001(\0132\023.yb.QLPagingStatePB\022\"\n\023return_pag" |
568 | 17.1k | "ing_state\030\013 \001(\010:\005false\022\'\n\017remote_endpoin" |
569 | 17.1k | "t\030\r \001(\0132\016.yb.HostPortPB\022\022\n\nproxy_uuid\030\024 " |
570 | 17.1k | "\001(\t\022\025\n\rmax_hash_code\030\016 \001(\r\022.\n\013column_ref" |
571 | 17.1k | "s\030\017 \001(\0132\031.yb.QLReferencedColumnsPB\022\020\n\010qu" |
572 | 17.1k | "ery_id\030\020 \001(\003\022\033\n\014is_aggregate\030\023 \001(\010:\005fals" |
573 | 17.1k | "e\0222\n#is_compatible_with_previous_version" |
574 | 17.1k | "\030\026 \001(\010:\005false\"\347\003\n\014QLResponsePB\0228\n\006status" |
575 | 17.1k | "\030\001 \001(\0162\031.yb.QLResponsePB.QLStatus:\rYQL_S" |
576 | 17.1k | "TATUS_OK\022\025\n\rerror_message\030\002 \001(\t\022*\n\016colum" |
577 | 17.1k | "n_schemas\030\003 \003(\0132\022.yb.ColumnSchemaPB\022\031\n\021r" |
578 | 17.1k | "ows_data_sidecar\030\004 \001(\005\022)\n\014paging_state\030\005" |
579 | 17.1k | " \001(\0132\023.yb.QLPagingStatePB\022>\n\030child_trans" |
580 | 17.1k | "action_result\030\006 \001(\0132\034.yb.ChildTransactio" |
581 | 17.1k | "nResultPB\022\017\n\007applied\030\007 \001(\010\"\302\001\n\010QLStatus\022" |
582 | 17.1k | "\021\n\rYQL_STATUS_OK\020\000\022&\n\"YQL_STATUS_SCHEMA_" |
583 | 17.1k | "VERSION_MISMATCH\020\001\022\034\n\030YQL_STATUS_RUNTIME" |
584 | 17.1k | "_ERROR\020\002\022\032\n\026YQL_STATUS_USAGE_ERROR\020\003\022%\n!" |
585 | 17.1k | "YQL_STATUS_RESTART_REQUIRED_ERROR\020\004\022\032\n\026Y" |
586 | 17.1k | "QL_STATUS_QUERY_ERROR\020\005B\010\n\006org.yb" |
587 | 17.1k | }; |
588 | 17.1k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
589 | 17.1k | descriptor, 2873); |
590 | 17.1k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
591 | 17.1k | "yb/common/ql_protocol.proto", &protobuf_RegisterTypes); |
592 | 17.1k | ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors(); |
593 | 17.1k | ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors(); |
594 | 17.1k | ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors(); |
595 | 17.1k | } |
596 | | |
597 | 35.7k | void AddDescriptors() { |
598 | 35.7k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
599 | 35.7k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
600 | 35.7k | } |
601 | | // Force AddDescriptors() to be called at dynamic initialization time. |
602 | | struct StaticDescriptorInitializer { |
603 | 17.1k | StaticDescriptorInitializer() { |
604 | 17.1k | AddDescriptors(); |
605 | 17.1k | } |
606 | | } static_descriptor_initializer; |
607 | | } // namespace protobuf_yb_2fcommon_2fql_5fprotocol_2eproto |
608 | | namespace yb { |
609 | 0 | const ::google::protobuf::EnumDescriptor* QLWriteRequestPB_QLStmtType_descriptor() { |
610 | 0 | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
611 | 0 | return protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_enum_descriptors[0]; |
612 | 0 | } |
613 | 7.68M | bool QLWriteRequestPB_QLStmtType_IsValid(int value) { |
614 | 7.68M | switch (value) { |
615 | 6.93M | case 1: |
616 | 7.67M | case 2: |
617 | 7.68M | case 3: |
618 | 7.68M | return true; |
619 | 0 | default: |
620 | 0 | return false; |
621 | 7.68M | } |
622 | 7.68M | } |
623 | | |
624 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
625 | | const QLWriteRequestPB_QLStmtType QLWriteRequestPB::QL_STMT_INSERT; |
626 | | const QLWriteRequestPB_QLStmtType QLWriteRequestPB::QL_STMT_UPDATE; |
627 | | const QLWriteRequestPB_QLStmtType QLWriteRequestPB::QL_STMT_DELETE; |
628 | | const QLWriteRequestPB_QLStmtType QLWriteRequestPB::QLStmtType_MIN; |
629 | | const QLWriteRequestPB_QLStmtType QLWriteRequestPB::QLStmtType_MAX; |
630 | | const int QLWriteRequestPB::QLStmtType_ARRAYSIZE; |
631 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
632 | 0 | const ::google::protobuf::EnumDescriptor* QLResponsePB_QLStatus_descriptor() { |
633 | 0 | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
634 | 0 | return protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_enum_descriptors[1]; |
635 | 0 | } |
636 | 11.9M | bool QLResponsePB_QLStatus_IsValid(int value) { |
637 | 11.9M | switch (value) { |
638 | 11.9M | case 0: |
639 | 11.9M | case 1: |
640 | 11.9M | case 2: |
641 | 11.9M | case 3: |
642 | 11.9M | case 4: |
643 | 11.9M | case 5: |
644 | 11.9M | return true; |
645 | 0 | default: |
646 | 0 | return false; |
647 | 11.9M | } |
648 | 11.9M | } |
649 | | |
650 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
651 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_OK; |
652 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_SCHEMA_VERSION_MISMATCH; |
653 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_RUNTIME_ERROR; |
654 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_USAGE_ERROR; |
655 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_RESTART_REQUIRED_ERROR; |
656 | | const QLResponsePB_QLStatus QLResponsePB::YQL_STATUS_QUERY_ERROR; |
657 | | const QLResponsePB_QLStatus QLResponsePB::QLStatus_MIN; |
658 | | const QLResponsePB_QLStatus QLResponsePB::QLStatus_MAX; |
659 | | const int QLResponsePB::QLStatus_ARRAYSIZE; |
660 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
661 | | |
662 | | // =================================================================== |
663 | | |
664 | 17.1k | void QLColumnValuePB::InitAsDefaultInstance() { |
665 | 17.1k | ::yb::_QLColumnValuePB_default_instance_._instance.get_mutable()->expr_ = const_cast< ::yb::QLExpressionPB*>( |
666 | 17.1k | ::yb::QLExpressionPB::internal_default_instance()); |
667 | 17.1k | } |
668 | 0 | void QLColumnValuePB::clear_subscript_args() { |
669 | 0 | subscript_args_.Clear(); |
670 | 0 | } |
671 | 0 | void QLColumnValuePB::clear_json_args() { |
672 | 0 | json_args_.Clear(); |
673 | 0 | } |
674 | 0 | void QLColumnValuePB::clear_expr() { |
675 | 0 | if (expr_ != NULL) expr_->Clear(); |
676 | 0 | clear_has_expr(); |
677 | 0 | } |
678 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
679 | | const int QLColumnValuePB::kColumnIdFieldNumber; |
680 | | const int QLColumnValuePB::kSubscriptArgsFieldNumber; |
681 | | const int QLColumnValuePB::kJsonArgsFieldNumber; |
682 | | const int QLColumnValuePB::kExprFieldNumber; |
683 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
684 | | |
685 | | QLColumnValuePB::QLColumnValuePB() |
686 | 8.77M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
687 | 8.76M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
688 | 8.76M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLColumnValuePB(); |
689 | 8.76M | } |
690 | 8.77M | SharedCtor(); |
691 | | // @@protoc_insertion_point(constructor:yb.QLColumnValuePB) |
692 | 8.77M | } |
693 | | QLColumnValuePB::QLColumnValuePB(const QLColumnValuePB& from) |
694 | | : ::google::protobuf::Message(), |
695 | | _internal_metadata_(NULL), |
696 | | _has_bits_(from._has_bits_), |
697 | | _cached_size_(0), |
698 | | subscript_args_(from.subscript_args_), |
699 | 0 | json_args_(from.json_args_) { |
700 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
701 | 0 | if (from.has_expr()) { |
702 | 0 | expr_ = new ::yb::QLExpressionPB(*from.expr_); |
703 | 0 | } else { |
704 | 0 | expr_ = NULL; |
705 | 0 | } |
706 | 0 | column_id_ = from.column_id_; |
707 | | // @@protoc_insertion_point(copy_constructor:yb.QLColumnValuePB) |
708 | 0 | } |
709 | | |
710 | 8.77M | void QLColumnValuePB::SharedCtor() { |
711 | 8.77M | _cached_size_ = 0; |
712 | 8.77M | ::memset(&expr_, 0, static_cast<size_t>( |
713 | 8.77M | reinterpret_cast<char*>(&column_id_) - |
714 | 8.77M | reinterpret_cast<char*>(&expr_)) + sizeof(column_id_)); |
715 | 8.77M | } |
716 | | |
717 | 8.76M | QLColumnValuePB::~QLColumnValuePB() { |
718 | | // @@protoc_insertion_point(destructor:yb.QLColumnValuePB) |
719 | 8.76M | SharedDtor(); |
720 | 8.76M | } |
721 | | |
722 | 8.76M | void QLColumnValuePB::SharedDtor() { |
723 | 8.76M | if (this != internal_default_instance()) delete expr_; |
724 | 8.76M | } |
725 | | |
726 | 0 | void QLColumnValuePB::SetCachedSize(int size) const { |
727 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
728 | 0 | _cached_size_ = size; |
729 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
730 | 0 | } |
731 | 0 | const ::google::protobuf::Descriptor* QLColumnValuePB::descriptor() { |
732 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
733 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
734 | 0 | } |
735 | | |
736 | 0 | const QLColumnValuePB& QLColumnValuePB::default_instance() { |
737 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLColumnValuePB(); |
738 | 0 | return *internal_default_instance(); |
739 | 0 | } |
740 | | |
741 | 0 | QLColumnValuePB* QLColumnValuePB::New(::google::protobuf::Arena* arena) const { |
742 | 0 | QLColumnValuePB* n = new QLColumnValuePB; |
743 | 0 | if (arena != NULL) { |
744 | 0 | arena->Own(n); |
745 | 0 | } |
746 | 0 | return n; |
747 | 0 | } |
748 | | |
749 | 147k | void QLColumnValuePB::Clear() { |
750 | | // @@protoc_insertion_point(message_clear_start:yb.QLColumnValuePB) |
751 | 147k | ::google::protobuf::uint32 cached_has_bits = 0; |
752 | | // Prevent compiler warnings about cached_has_bits being unused |
753 | 147k | (void) cached_has_bits; |
754 | | |
755 | 147k | subscript_args_.Clear(); |
756 | 147k | json_args_.Clear(); |
757 | 147k | cached_has_bits = _has_bits_[0]; |
758 | 147k | if (cached_has_bits & 0x00000001u) { |
759 | 147k | GOOGLE_DCHECK(expr_ != NULL); |
760 | 147k | expr_->Clear(); |
761 | 147k | } |
762 | 147k | column_id_ = 0; |
763 | 147k | _has_bits_.Clear(); |
764 | 147k | _internal_metadata_.Clear(); |
765 | 147k | } |
766 | | |
767 | | bool QLColumnValuePB::MergePartialFromCodedStream( |
768 | 3.71M | ::google::protobuf::io::CodedInputStream* input) { |
769 | 7.43M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
770 | 3.71M | ::google::protobuf::uint32 tag; |
771 | | // @@protoc_insertion_point(parse_start:yb.QLColumnValuePB) |
772 | 11.1M | for (;;) { |
773 | 11.1M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
774 | 11.1M | tag = p.first; |
775 | 11.1M | if (!p.second) goto handle_unusual; |
776 | 7.41M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
777 | | // optional int32 column_id = 1; |
778 | 3.71M | case 1: { |
779 | 3.71M | if (static_cast< ::google::protobuf::uint8>(tag) == |
780 | 3.71M | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
781 | 3.71M | set_has_column_id(); |
782 | 3.71M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
783 | 3.71M | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
784 | 3.71M | input, &column_id_))); |
785 | 18.4E | } else { |
786 | 18.4E | goto handle_unusual; |
787 | 18.4E | } |
788 | 3.71M | break; |
789 | 3.71M | } |
790 | | |
791 | | // optional .yb.QLExpressionPB expr = 2; |
792 | 3.71M | case 2: { |
793 | 3.71M | if (static_cast< ::google::protobuf::uint8>(tag) == |
794 | 3.71M | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
795 | 3.71M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
796 | 3.71M | input, mutable_expr())); |
797 | 18.4E | } else { |
798 | 18.4E | goto handle_unusual; |
799 | 18.4E | } |
800 | 3.71M | break; |
801 | 3.71M | } |
802 | | |
803 | | // repeated .yb.QLExpressionPB subscript_args = 3; |
804 | 21 | case 3: { |
805 | 21 | if (static_cast< ::google::protobuf::uint8>(tag) == |
806 | 21 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
807 | 21 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_subscript_args())); |
808 | 0 | } else { |
809 | 0 | goto handle_unusual; |
810 | 0 | } |
811 | 21 | break; |
812 | 21 | } |
813 | | |
814 | | // repeated .yb.QLJsonOperationPB json_args = 4; |
815 | 79 | case 4: { |
816 | 79 | if (static_cast< ::google::protobuf::uint8>(tag) == |
817 | 79 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
818 | 79 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_json_args())); |
819 | 0 | } else { |
820 | 0 | goto handle_unusual; |
821 | 0 | } |
822 | 79 | break; |
823 | 3.71M | } |
824 | | |
825 | 0 | default: { |
826 | 3.71M | handle_unusual: |
827 | 3.71M | if (tag == 0) { |
828 | 3.71M | goto success; |
829 | 3.71M | } |
830 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
831 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
832 | 18.4E | break; |
833 | 18.4E | } |
834 | 7.41M | } |
835 | 7.41M | } |
836 | 3.71M | success: |
837 | | // @@protoc_insertion_point(parse_success:yb.QLColumnValuePB) |
838 | 3.71M | return true; |
839 | 0 | failure: |
840 | | // @@protoc_insertion_point(parse_failure:yb.QLColumnValuePB) |
841 | 0 | return false; |
842 | 3.71M | #undef DO_ |
843 | 3.71M | } |
844 | | |
845 | | void QLColumnValuePB::SerializeWithCachedSizes( |
846 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
847 | | // @@protoc_insertion_point(serialize_start:yb.QLColumnValuePB) |
848 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
849 | 0 | (void) cached_has_bits; |
850 | |
|
851 | 0 | cached_has_bits = _has_bits_[0]; |
852 | | // optional int32 column_id = 1; |
853 | 0 | if (cached_has_bits & 0x00000002u) { |
854 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output); |
855 | 0 | } |
856 | | |
857 | | // optional .yb.QLExpressionPB expr = 2; |
858 | 0 | if (cached_has_bits & 0x00000001u) { |
859 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
860 | 0 | 2, *this->expr_, output); |
861 | 0 | } |
862 | | |
863 | | // repeated .yb.QLExpressionPB subscript_args = 3; |
864 | 0 | for (unsigned int i = 0, |
865 | 0 | n = static_cast<unsigned int>(this->subscript_args_size()); i < n; i++) { |
866 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
867 | 0 | 3, this->subscript_args(static_cast<int>(i)), output); |
868 | 0 | } |
869 | | |
870 | | // repeated .yb.QLJsonOperationPB json_args = 4; |
871 | 0 | for (unsigned int i = 0, |
872 | 0 | n = static_cast<unsigned int>(this->json_args_size()); i < n; i++) { |
873 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
874 | 0 | 4, this->json_args(static_cast<int>(i)), output); |
875 | 0 | } |
876 | |
|
877 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
878 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
879 | 0 | _internal_metadata_.unknown_fields(), output); |
880 | 0 | } |
881 | | // @@protoc_insertion_point(serialize_end:yb.QLColumnValuePB) |
882 | 0 | } |
883 | | |
884 | | ::google::protobuf::uint8* QLColumnValuePB::InternalSerializeWithCachedSizesToArray( |
885 | 3.75M | bool deterministic, ::google::protobuf::uint8* target) const { |
886 | 3.75M | (void)deterministic; // Unused |
887 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLColumnValuePB) |
888 | 3.75M | ::google::protobuf::uint32 cached_has_bits = 0; |
889 | 3.75M | (void) cached_has_bits; |
890 | | |
891 | 3.75M | cached_has_bits = _has_bits_[0]; |
892 | | // optional int32 column_id = 1; |
893 | 3.75M | if (cached_has_bits & 0x00000002u) { |
894 | 3.75M | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target); |
895 | 3.75M | } |
896 | | |
897 | | // optional .yb.QLExpressionPB expr = 2; |
898 | 3.75M | if (cached_has_bits & 0x00000001u) { |
899 | 3.75M | target = ::google::protobuf::internal::WireFormatLite:: |
900 | 3.75M | InternalWriteMessageToArray( |
901 | 3.75M | 2, *this->expr_, deterministic, target); |
902 | 3.75M | } |
903 | | |
904 | | // repeated .yb.QLExpressionPB subscript_args = 3; |
905 | 3.75M | for (unsigned int i = 0, |
906 | 3.75M | n = static_cast<unsigned int>(this->subscript_args_size()); i < n; i++) { |
907 | 21 | target = ::google::protobuf::internal::WireFormatLite:: |
908 | 21 | InternalWriteMessageToArray( |
909 | 21 | 3, this->subscript_args(static_cast<int>(i)), deterministic, target); |
910 | 21 | } |
911 | | |
912 | | // repeated .yb.QLJsonOperationPB json_args = 4; |
913 | 3.75M | for (unsigned int i = 0, |
914 | 3.75M | n = static_cast<unsigned int>(this->json_args_size()); i < n; i++) { |
915 | 79 | target = ::google::protobuf::internal::WireFormatLite:: |
916 | 79 | InternalWriteMessageToArray( |
917 | 79 | 4, this->json_args(static_cast<int>(i)), deterministic, target); |
918 | 79 | } |
919 | | |
920 | 3.75M | if (_internal_metadata_.have_unknown_fields()) { |
921 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
922 | 0 | _internal_metadata_.unknown_fields(), target); |
923 | 0 | } |
924 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLColumnValuePB) |
925 | 3.75M | return target; |
926 | 3.75M | } |
927 | | |
928 | 7.50M | size_t QLColumnValuePB::ByteSizeLong() const { |
929 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLColumnValuePB) |
930 | 7.50M | size_t total_size = 0; |
931 | | |
932 | 7.50M | if (_internal_metadata_.have_unknown_fields()) { |
933 | 0 | total_size += |
934 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
935 | 0 | _internal_metadata_.unknown_fields()); |
936 | 0 | } |
937 | | // repeated .yb.QLExpressionPB subscript_args = 3; |
938 | 7.50M | { |
939 | 7.50M | unsigned int count = static_cast<unsigned int>(this->subscript_args_size()); |
940 | 7.50M | total_size += 1UL * count; |
941 | 7.50M | for (unsigned int i = 0; i < count; i++) { |
942 | 42 | total_size += |
943 | 42 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
944 | 42 | this->subscript_args(static_cast<int>(i))); |
945 | 42 | } |
946 | 7.50M | } |
947 | | |
948 | | // repeated .yb.QLJsonOperationPB json_args = 4; |
949 | 7.50M | { |
950 | 7.50M | unsigned int count = static_cast<unsigned int>(this->json_args_size()); |
951 | 7.50M | total_size += 1UL * count; |
952 | 7.50M | for (unsigned int i = 0; i < count; i++) { |
953 | 158 | total_size += |
954 | 158 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
955 | 158 | this->json_args(static_cast<int>(i))); |
956 | 158 | } |
957 | 7.50M | } |
958 | | |
959 | 7.50M | if (_has_bits_[0 / 32] & 3u) { |
960 | | // optional .yb.QLExpressionPB expr = 2; |
961 | 7.50M | if (has_expr()) { |
962 | 7.50M | total_size += 1 + |
963 | 7.50M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
964 | 7.50M | *this->expr_); |
965 | 7.50M | } |
966 | | |
967 | | // optional int32 column_id = 1; |
968 | 7.50M | if (has_column_id()) { |
969 | 7.50M | total_size += 1 + |
970 | 7.50M | ::google::protobuf::internal::WireFormatLite::Int32Size( |
971 | 7.50M | this->column_id()); |
972 | 7.50M | } |
973 | | |
974 | 7.50M | } |
975 | 7.50M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
976 | 7.50M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
977 | 7.50M | _cached_size_ = cached_size; |
978 | 7.50M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
979 | 7.50M | return total_size; |
980 | 7.50M | } |
981 | | |
982 | 0 | void QLColumnValuePB::MergeFrom(const ::google::protobuf::Message& from) { |
983 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLColumnValuePB) |
984 | 0 | GOOGLE_DCHECK_NE(&from, this); |
985 | 0 | const QLColumnValuePB* source = |
986 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLColumnValuePB>( |
987 | 0 | &from); |
988 | 0 | if (source == NULL) { |
989 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLColumnValuePB) |
990 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
991 | 0 | } else { |
992 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLColumnValuePB) |
993 | 0 | MergeFrom(*source); |
994 | 0 | } |
995 | 0 | } |
996 | | |
997 | 0 | void QLColumnValuePB::MergeFrom(const QLColumnValuePB& from) { |
998 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLColumnValuePB) |
999 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1000 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1001 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1002 | 0 | (void) cached_has_bits; |
1003 | |
|
1004 | 0 | subscript_args_.MergeFrom(from.subscript_args_); |
1005 | 0 | json_args_.MergeFrom(from.json_args_); |
1006 | 0 | cached_has_bits = from._has_bits_[0]; |
1007 | 0 | if (cached_has_bits & 3u) { |
1008 | 0 | if (cached_has_bits & 0x00000001u) { |
1009 | 0 | mutable_expr()->::yb::QLExpressionPB::MergeFrom(from.expr()); |
1010 | 0 | } |
1011 | 0 | if (cached_has_bits & 0x00000002u) { |
1012 | 0 | column_id_ = from.column_id_; |
1013 | 0 | } |
1014 | 0 | _has_bits_[0] |= cached_has_bits; |
1015 | 0 | } |
1016 | 0 | } |
1017 | | |
1018 | 0 | void QLColumnValuePB::CopyFrom(const ::google::protobuf::Message& from) { |
1019 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLColumnValuePB) |
1020 | 0 | if (&from == this) return; |
1021 | 0 | Clear(); |
1022 | 0 | MergeFrom(from); |
1023 | 0 | } |
1024 | | |
1025 | 0 | void QLColumnValuePB::CopyFrom(const QLColumnValuePB& from) { |
1026 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLColumnValuePB) |
1027 | 0 | if (&from == this) return; |
1028 | 0 | Clear(); |
1029 | 0 | MergeFrom(from); |
1030 | 0 | } |
1031 | | |
1032 | 7.46M | bool QLColumnValuePB::IsInitialized() const { |
1033 | 7.46M | if (!::google::protobuf::internal::AllAreInitialized(this->subscript_args())) return false; |
1034 | 7.46M | if (!::google::protobuf::internal::AllAreInitialized(this->json_args())) return false; |
1035 | 7.46M | if (has_expr()) { |
1036 | 7.46M | if (!this->expr_->IsInitialized()) return false; |
1037 | 7.46M | } |
1038 | 7.46M | return true; |
1039 | 7.46M | } |
1040 | | |
1041 | 0 | void QLColumnValuePB::Swap(QLColumnValuePB* other) { |
1042 | 0 | if (other == this) return; |
1043 | 0 | InternalSwap(other); |
1044 | 0 | } |
1045 | 0 | void QLColumnValuePB::InternalSwap(QLColumnValuePB* other) { |
1046 | 0 | using std::swap; |
1047 | 0 | subscript_args_.InternalSwap(&other->subscript_args_); |
1048 | 0 | json_args_.InternalSwap(&other->json_args_); |
1049 | 0 | swap(expr_, other->expr_); |
1050 | 0 | swap(column_id_, other->column_id_); |
1051 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1052 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1053 | 0 | swap(_cached_size_, other->_cached_size_); |
1054 | 0 | } |
1055 | | |
1056 | 3.72M | ::google::protobuf::Metadata QLColumnValuePB::GetMetadata() const { |
1057 | 3.72M | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1058 | 3.72M | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
1059 | 3.72M | } |
1060 | | |
1061 | | |
1062 | | // =================================================================== |
1063 | | |
1064 | 17.1k | void QLSelectRowCounterPB::InitAsDefaultInstance() { |
1065 | 17.1k | } |
1066 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1067 | | const int QLSelectRowCounterPB::kSelectLimitFieldNumber; |
1068 | | const int QLSelectRowCounterPB::kSelectOffsetFieldNumber; |
1069 | | const int QLSelectRowCounterPB::kReadCountFieldNumber; |
1070 | | const int QLSelectRowCounterPB::kSkipCountFieldNumber; |
1071 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1072 | | |
1073 | | QLSelectRowCounterPB::QLSelectRowCounterPB() |
1074 | 3.90M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1075 | 3.89M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1076 | 3.89M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLSelectRowCounterPB(); |
1077 | 3.89M | } |
1078 | 3.90M | SharedCtor(); |
1079 | | // @@protoc_insertion_point(constructor:yb.QLSelectRowCounterPB) |
1080 | 3.90M | } |
1081 | | QLSelectRowCounterPB::QLSelectRowCounterPB(const QLSelectRowCounterPB& from) |
1082 | | : ::google::protobuf::Message(), |
1083 | | _internal_metadata_(NULL), |
1084 | | _has_bits_(from._has_bits_), |
1085 | 0 | _cached_size_(0) { |
1086 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1087 | 0 | ::memcpy(&read_count_, &from.read_count_, |
1088 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&select_offset_) - |
1089 | 0 | reinterpret_cast<char*>(&read_count_)) + sizeof(select_offset_)); |
1090 | | // @@protoc_insertion_point(copy_constructor:yb.QLSelectRowCounterPB) |
1091 | 0 | } |
1092 | | |
1093 | 3.90M | void QLSelectRowCounterPB::SharedCtor() { |
1094 | 3.90M | _cached_size_ = 0; |
1095 | 3.90M | ::memset(&read_count_, 0, static_cast<size_t>( |
1096 | 3.90M | reinterpret_cast<char*>(&skip_count_) - |
1097 | 3.90M | reinterpret_cast<char*>(&read_count_)) + sizeof(skip_count_)); |
1098 | 3.90M | select_limit_ = GOOGLE_LONGLONG(-1); |
1099 | 3.90M | select_offset_ = GOOGLE_LONGLONG(-1); |
1100 | 3.90M | } |
1101 | | |
1102 | 3.90M | QLSelectRowCounterPB::~QLSelectRowCounterPB() { |
1103 | | // @@protoc_insertion_point(destructor:yb.QLSelectRowCounterPB) |
1104 | 3.90M | SharedDtor(); |
1105 | 3.90M | } |
1106 | | |
1107 | 3.90M | void QLSelectRowCounterPB::SharedDtor() { |
1108 | 3.90M | } |
1109 | | |
1110 | 0 | void QLSelectRowCounterPB::SetCachedSize(int size) const { |
1111 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1112 | 0 | _cached_size_ = size; |
1113 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1114 | 0 | } |
1115 | 0 | const ::google::protobuf::Descriptor* QLSelectRowCounterPB::descriptor() { |
1116 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1117 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1118 | 0 | } |
1119 | | |
1120 | 0 | const QLSelectRowCounterPB& QLSelectRowCounterPB::default_instance() { |
1121 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLSelectRowCounterPB(); |
1122 | 0 | return *internal_default_instance(); |
1123 | 0 | } |
1124 | | |
1125 | 0 | QLSelectRowCounterPB* QLSelectRowCounterPB::New(::google::protobuf::Arena* arena) const { |
1126 | 0 | QLSelectRowCounterPB* n = new QLSelectRowCounterPB; |
1127 | 0 | if (arena != NULL) { |
1128 | 0 | arena->Own(n); |
1129 | 0 | } |
1130 | 0 | return n; |
1131 | 0 | } |
1132 | | |
1133 | 3.89M | void QLSelectRowCounterPB::Clear() { |
1134 | | // @@protoc_insertion_point(message_clear_start:yb.QLSelectRowCounterPB) |
1135 | 3.89M | ::google::protobuf::uint32 cached_has_bits = 0; |
1136 | | // Prevent compiler warnings about cached_has_bits being unused |
1137 | 3.89M | (void) cached_has_bits; |
1138 | | |
1139 | 3.89M | cached_has_bits = _has_bits_[0]; |
1140 | 3.89M | if (cached_has_bits & 15u) { |
1141 | 400 | ::memset(&read_count_, 0, static_cast<size_t>( |
1142 | 400 | reinterpret_cast<char*>(&skip_count_) - |
1143 | 400 | reinterpret_cast<char*>(&read_count_)) + sizeof(skip_count_)); |
1144 | 400 | select_limit_ = GOOGLE_LONGLONG(-1); |
1145 | 400 | select_offset_ = GOOGLE_LONGLONG(-1); |
1146 | 400 | } |
1147 | 3.89M | _has_bits_.Clear(); |
1148 | 3.89M | _internal_metadata_.Clear(); |
1149 | 3.89M | } |
1150 | | |
1151 | | bool QLSelectRowCounterPB::MergePartialFromCodedStream( |
1152 | 286 | ::google::protobuf::io::CodedInputStream* input) { |
1153 | 664 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1154 | 286 | ::google::protobuf::uint32 tag; |
1155 | | // @@protoc_insertion_point(parse_start:yb.QLSelectRowCounterPB) |
1156 | 950 | for (;;) { |
1157 | 950 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1158 | 950 | tag = p.first; |
1159 | 950 | if (!p.second) goto handle_unusual; |
1160 | 664 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1161 | | // optional int64 select_limit = 1 [default = -1]; |
1162 | 158 | case 1: { |
1163 | 158 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1164 | 158 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1165 | 158 | set_has_select_limit(); |
1166 | 158 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1167 | 158 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1168 | 158 | input, &select_limit_))); |
1169 | 0 | } else { |
1170 | 0 | goto handle_unusual; |
1171 | 0 | } |
1172 | 158 | break; |
1173 | 158 | } |
1174 | | |
1175 | | // optional int64 select_offset = 2 [default = -1]; |
1176 | 149 | case 2: { |
1177 | 149 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1178 | 149 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1179 | 149 | set_has_select_offset(); |
1180 | 149 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1181 | 149 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1182 | 149 | input, &select_offset_))); |
1183 | 0 | } else { |
1184 | 0 | goto handle_unusual; |
1185 | 0 | } |
1186 | 149 | break; |
1187 | 149 | } |
1188 | | |
1189 | | // optional int64 read_count = 3 [default = 0]; |
1190 | 245 | case 3: { |
1191 | 245 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1192 | 245 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
1193 | 245 | set_has_read_count(); |
1194 | 245 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1195 | 245 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1196 | 245 | input, &read_count_))); |
1197 | 0 | } else { |
1198 | 0 | goto handle_unusual; |
1199 | 0 | } |
1200 | 245 | break; |
1201 | 245 | } |
1202 | | |
1203 | | // optional int64 skip_count = 4 [default = 0]; |
1204 | 112 | case 4: { |
1205 | 112 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1206 | 112 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
1207 | 112 | set_has_skip_count(); |
1208 | 112 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1209 | 112 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
1210 | 112 | input, &skip_count_))); |
1211 | 0 | } else { |
1212 | 0 | goto handle_unusual; |
1213 | 0 | } |
1214 | 112 | break; |
1215 | 286 | } |
1216 | | |
1217 | 0 | default: { |
1218 | 286 | handle_unusual: |
1219 | 286 | if (tag == 0) { |
1220 | 286 | goto success; |
1221 | 286 | } |
1222 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1223 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1224 | 0 | break; |
1225 | 0 | } |
1226 | 664 | } |
1227 | 664 | } |
1228 | 286 | success: |
1229 | | // @@protoc_insertion_point(parse_success:yb.QLSelectRowCounterPB) |
1230 | 286 | return true; |
1231 | 0 | failure: |
1232 | | // @@protoc_insertion_point(parse_failure:yb.QLSelectRowCounterPB) |
1233 | 0 | return false; |
1234 | 286 | #undef DO_ |
1235 | 286 | } |
1236 | | |
1237 | | void QLSelectRowCounterPB::SerializeWithCachedSizes( |
1238 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1239 | | // @@protoc_insertion_point(serialize_start:yb.QLSelectRowCounterPB) |
1240 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1241 | 0 | (void) cached_has_bits; |
1242 | |
|
1243 | 0 | cached_has_bits = _has_bits_[0]; |
1244 | | // optional int64 select_limit = 1 [default = -1]; |
1245 | 0 | if (cached_has_bits & 0x00000004u) { |
1246 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->select_limit(), output); |
1247 | 0 | } |
1248 | | |
1249 | | // optional int64 select_offset = 2 [default = -1]; |
1250 | 0 | if (cached_has_bits & 0x00000008u) { |
1251 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->select_offset(), output); |
1252 | 0 | } |
1253 | | |
1254 | | // optional int64 read_count = 3 [default = 0]; |
1255 | 0 | if (cached_has_bits & 0x00000001u) { |
1256 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->read_count(), output); |
1257 | 0 | } |
1258 | | |
1259 | | // optional int64 skip_count = 4 [default = 0]; |
1260 | 0 | if (cached_has_bits & 0x00000002u) { |
1261 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->skip_count(), output); |
1262 | 0 | } |
1263 | |
|
1264 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1265 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1266 | 0 | _internal_metadata_.unknown_fields(), output); |
1267 | 0 | } |
1268 | | // @@protoc_insertion_point(serialize_end:yb.QLSelectRowCounterPB) |
1269 | 0 | } |
1270 | | |
1271 | | ::google::protobuf::uint8* QLSelectRowCounterPB::InternalSerializeWithCachedSizesToArray( |
1272 | 339 | bool deterministic, ::google::protobuf::uint8* target) const { |
1273 | 339 | (void)deterministic; // Unused |
1274 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLSelectRowCounterPB) |
1275 | 339 | ::google::protobuf::uint32 cached_has_bits = 0; |
1276 | 339 | (void) cached_has_bits; |
1277 | | |
1278 | 339 | cached_has_bits = _has_bits_[0]; |
1279 | | // optional int64 select_limit = 1 [default = -1]; |
1280 | 339 | if (cached_has_bits & 0x00000004u) { |
1281 | 151 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->select_limit(), target); |
1282 | 151 | } |
1283 | | |
1284 | | // optional int64 select_offset = 2 [default = -1]; |
1285 | 339 | if (cached_has_bits & 0x00000008u) { |
1286 | 142 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->select_offset(), target); |
1287 | 142 | } |
1288 | | |
1289 | | // optional int64 read_count = 3 [default = 0]; |
1290 | 339 | if (cached_has_bits & 0x00000001u) { |
1291 | 298 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->read_count(), target); |
1292 | 298 | } |
1293 | | |
1294 | | // optional int64 skip_count = 4 [default = 0]; |
1295 | 339 | if (cached_has_bits & 0x00000002u) { |
1296 | 167 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->skip_count(), target); |
1297 | 167 | } |
1298 | | |
1299 | 339 | if (_internal_metadata_.have_unknown_fields()) { |
1300 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1301 | 0 | _internal_metadata_.unknown_fields(), target); |
1302 | 0 | } |
1303 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLSelectRowCounterPB) |
1304 | 339 | return target; |
1305 | 339 | } |
1306 | | |
1307 | 339 | size_t QLSelectRowCounterPB::ByteSizeLong() const { |
1308 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLSelectRowCounterPB) |
1309 | 339 | size_t total_size = 0; |
1310 | | |
1311 | 339 | if (_internal_metadata_.have_unknown_fields()) { |
1312 | 0 | total_size += |
1313 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1314 | 0 | _internal_metadata_.unknown_fields()); |
1315 | 0 | } |
1316 | 339 | if (_has_bits_[0 / 32] & 15u) { |
1317 | | // optional int64 read_count = 3 [default = 0]; |
1318 | 339 | if (has_read_count()) { |
1319 | 298 | total_size += 1 + |
1320 | 298 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1321 | 298 | this->read_count()); |
1322 | 298 | } |
1323 | | |
1324 | | // optional int64 skip_count = 4 [default = 0]; |
1325 | 339 | if (has_skip_count()) { |
1326 | 167 | total_size += 1 + |
1327 | 167 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1328 | 167 | this->skip_count()); |
1329 | 167 | } |
1330 | | |
1331 | | // optional int64 select_limit = 1 [default = -1]; |
1332 | 339 | if (has_select_limit()) { |
1333 | 151 | total_size += 1 + |
1334 | 151 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1335 | 151 | this->select_limit()); |
1336 | 151 | } |
1337 | | |
1338 | | // optional int64 select_offset = 2 [default = -1]; |
1339 | 339 | if (has_select_offset()) { |
1340 | 142 | total_size += 1 + |
1341 | 142 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
1342 | 142 | this->select_offset()); |
1343 | 142 | } |
1344 | | |
1345 | 339 | } |
1346 | 339 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1347 | 339 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1348 | 339 | _cached_size_ = cached_size; |
1349 | 339 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1350 | 339 | return total_size; |
1351 | 339 | } |
1352 | | |
1353 | 0 | void QLSelectRowCounterPB::MergeFrom(const ::google::protobuf::Message& from) { |
1354 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLSelectRowCounterPB) |
1355 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1356 | 0 | const QLSelectRowCounterPB* source = |
1357 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLSelectRowCounterPB>( |
1358 | 0 | &from); |
1359 | 0 | if (source == NULL) { |
1360 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLSelectRowCounterPB) |
1361 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1362 | 0 | } else { |
1363 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLSelectRowCounterPB) |
1364 | 0 | MergeFrom(*source); |
1365 | 0 | } |
1366 | 0 | } |
1367 | | |
1368 | 3.90M | void QLSelectRowCounterPB::MergeFrom(const QLSelectRowCounterPB& from) { |
1369 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLSelectRowCounterPB) |
1370 | 3.90M | GOOGLE_DCHECK_NE(&from, this); |
1371 | 3.90M | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1372 | 3.90M | ::google::protobuf::uint32 cached_has_bits = 0; |
1373 | 3.90M | (void) cached_has_bits; |
1374 | | |
1375 | 3.90M | cached_has_bits = from._has_bits_[0]; |
1376 | 3.90M | if (cached_has_bits & 15u) { |
1377 | 1.02k | if (cached_has_bits & 0x00000001u) { |
1378 | 861 | read_count_ = from.read_count_; |
1379 | 861 | } |
1380 | 1.02k | if (cached_has_bits & 0x00000002u) { |
1381 | 491 | skip_count_ = from.skip_count_; |
1382 | 491 | } |
1383 | 1.02k | if (cached_has_bits & 0x00000004u) { |
1384 | 522 | select_limit_ = from.select_limit_; |
1385 | 522 | } |
1386 | 1.02k | if (cached_has_bits & 0x00000008u) { |
1387 | 483 | select_offset_ = from.select_offset_; |
1388 | 483 | } |
1389 | 1.02k | _has_bits_[0] |= cached_has_bits; |
1390 | 1.02k | } |
1391 | 3.90M | } |
1392 | | |
1393 | 0 | void QLSelectRowCounterPB::CopyFrom(const ::google::protobuf::Message& from) { |
1394 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLSelectRowCounterPB) |
1395 | 0 | if (&from == this) return; |
1396 | 0 | Clear(); |
1397 | 0 | MergeFrom(from); |
1398 | 0 | } |
1399 | | |
1400 | 3.90M | void QLSelectRowCounterPB::CopyFrom(const QLSelectRowCounterPB& from) { |
1401 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLSelectRowCounterPB) |
1402 | 3.90M | if (&from == this) return; |
1403 | 3.90M | Clear(); |
1404 | 3.90M | MergeFrom(from); |
1405 | 3.90M | } |
1406 | | |
1407 | 0 | bool QLSelectRowCounterPB::IsInitialized() const { |
1408 | 0 | return true; |
1409 | 0 | } |
1410 | | |
1411 | 0 | void QLSelectRowCounterPB::Swap(QLSelectRowCounterPB* other) { |
1412 | 0 | if (other == this) return; |
1413 | 0 | InternalSwap(other); |
1414 | 0 | } |
1415 | 0 | void QLSelectRowCounterPB::InternalSwap(QLSelectRowCounterPB* other) { |
1416 | 0 | using std::swap; |
1417 | 0 | swap(read_count_, other->read_count_); |
1418 | 0 | swap(skip_count_, other->skip_count_); |
1419 | 0 | swap(select_limit_, other->select_limit_); |
1420 | 0 | swap(select_offset_, other->select_offset_); |
1421 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1422 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1423 | 0 | swap(_cached_size_, other->_cached_size_); |
1424 | 0 | } |
1425 | | |
1426 | 0 | ::google::protobuf::Metadata QLSelectRowCounterPB::GetMetadata() const { |
1427 | 0 | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1428 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
1429 | 0 | } |
1430 | | |
1431 | | |
1432 | | // =================================================================== |
1433 | | |
1434 | 17.1k | void QLPagingStatePB::InitAsDefaultInstance() { |
1435 | 17.1k | ::yb::_QLPagingStatePB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>( |
1436 | 17.1k | ::yb::ReadHybridTimePB::internal_default_instance()); |
1437 | 17.1k | ::yb::_QLPagingStatePB_default_instance_._instance.get_mutable()->row_counter_ = const_cast< ::yb::QLSelectRowCounterPB*>( |
1438 | 17.1k | ::yb::QLSelectRowCounterPB::internal_default_instance()); |
1439 | 17.1k | } |
1440 | 0 | void QLPagingStatePB::clear_read_time() { |
1441 | 0 | if (read_time_ != NULL) read_time_->Clear(); |
1442 | 0 | clear_has_read_time(); |
1443 | 0 | } |
1444 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1445 | | const int QLPagingStatePB::kTableIdFieldNumber; |
1446 | | const int QLPagingStatePB::kNextPartitionKeyFieldNumber; |
1447 | | const int QLPagingStatePB::kNextRowKeyFieldNumber; |
1448 | | const int QLPagingStatePB::kTotalNumRowsReadFieldNumber; |
1449 | | const int QLPagingStatePB::kNextPartitionIndexFieldNumber; |
1450 | | const int QLPagingStatePB::kTotalRowsSkippedFieldNumber; |
1451 | | const int QLPagingStatePB::kOriginalRequestIdFieldNumber; |
1452 | | const int QLPagingStatePB::kReadTimeFieldNumber; |
1453 | | const int QLPagingStatePB::kRowCounterFieldNumber; |
1454 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1455 | | |
1456 | | QLPagingStatePB::QLPagingStatePB() |
1457 | 4.00M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1458 | 3.97M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1459 | 3.97M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLPagingStatePB(); |
1460 | 3.97M | } |
1461 | 4.00M | SharedCtor(); |
1462 | | // @@protoc_insertion_point(constructor:yb.QLPagingStatePB) |
1463 | 4.00M | } |
1464 | | QLPagingStatePB::QLPagingStatePB(const QLPagingStatePB& from) |
1465 | | : ::google::protobuf::Message(), |
1466 | | _internal_metadata_(NULL), |
1467 | | _has_bits_(from._has_bits_), |
1468 | 0 | _cached_size_(0) { |
1469 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1470 | 0 | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1471 | 0 | if (from.has_table_id()) { |
1472 | 0 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
1473 | 0 | } |
1474 | 0 | next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1475 | 0 | if (from.has_next_partition_key()) { |
1476 | 0 | next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_); |
1477 | 0 | } |
1478 | 0 | next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1479 | 0 | if (from.has_next_row_key()) { |
1480 | 0 | next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_); |
1481 | 0 | } |
1482 | 0 | if (from.has_read_time()) { |
1483 | 0 | read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_); |
1484 | 0 | } else { |
1485 | 0 | read_time_ = NULL; |
1486 | 0 | } |
1487 | 0 | if (from.has_row_counter()) { |
1488 | 0 | row_counter_ = new ::yb::QLSelectRowCounterPB(*from.row_counter_); |
1489 | 0 | } else { |
1490 | 0 | row_counter_ = NULL; |
1491 | 0 | } |
1492 | 0 | ::memcpy(&total_num_rows_read_, &from.total_num_rows_read_, |
1493 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&original_request_id_) - |
1494 | 0 | reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(original_request_id_)); |
1495 | | // @@protoc_insertion_point(copy_constructor:yb.QLPagingStatePB) |
1496 | 0 | } |
1497 | | |
1498 | 3.99M | void QLPagingStatePB::SharedCtor() { |
1499 | 3.99M | _cached_size_ = 0; |
1500 | 3.99M | table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1501 | 3.99M | next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1502 | 3.99M | next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1503 | 3.99M | ::memset(&read_time_, 0, static_cast<size_t>( |
1504 | 3.99M | reinterpret_cast<char*>(&original_request_id_) - |
1505 | 3.99M | reinterpret_cast<char*>(&read_time_)) + sizeof(original_request_id_)); |
1506 | 3.99M | } |
1507 | | |
1508 | 3.98M | QLPagingStatePB::~QLPagingStatePB() { |
1509 | | // @@protoc_insertion_point(destructor:yb.QLPagingStatePB) |
1510 | 3.98M | SharedDtor(); |
1511 | 3.98M | } |
1512 | | |
1513 | 3.98M | void QLPagingStatePB::SharedDtor() { |
1514 | 3.98M | table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1515 | 3.98M | next_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1516 | 3.98M | next_row_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1517 | 3.98M | if (this != internal_default_instance()) delete read_time_; |
1518 | 3.98M | if (this != internal_default_instance()) delete row_counter_; |
1519 | 3.98M | } |
1520 | | |
1521 | 0 | void QLPagingStatePB::SetCachedSize(int size) const { |
1522 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1523 | 0 | _cached_size_ = size; |
1524 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1525 | 0 | } |
1526 | 0 | const ::google::protobuf::Descriptor* QLPagingStatePB::descriptor() { |
1527 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1528 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1529 | 0 | } |
1530 | | |
1531 | 7.79M | const QLPagingStatePB& QLPagingStatePB::default_instance() { |
1532 | 7.79M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLPagingStatePB(); |
1533 | 7.79M | return *internal_default_instance(); |
1534 | 7.79M | } |
1535 | | |
1536 | 0 | QLPagingStatePB* QLPagingStatePB::New(::google::protobuf::Arena* arena) const { |
1537 | 0 | QLPagingStatePB* n = new QLPagingStatePB; |
1538 | 0 | if (arena != NULL) { |
1539 | 0 | arena->Own(n); |
1540 | 0 | } |
1541 | 0 | return n; |
1542 | 0 | } |
1543 | | |
1544 | 11.7M | void QLPagingStatePB::Clear() { |
1545 | | // @@protoc_insertion_point(message_clear_start:yb.QLPagingStatePB) |
1546 | 11.7M | ::google::protobuf::uint32 cached_has_bits = 0; |
1547 | | // Prevent compiler warnings about cached_has_bits being unused |
1548 | 11.7M | (void) cached_has_bits; |
1549 | | |
1550 | 11.7M | cached_has_bits = _has_bits_[0]; |
1551 | 11.7M | if (cached_has_bits & 31u) { |
1552 | 67.7k | if (cached_has_bits & 0x00000001u) { |
1553 | 66.7k | GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1554 | 66.7k | (*table_id_.UnsafeRawStringPointer())->clear(); |
1555 | 66.7k | } |
1556 | 67.7k | if (cached_has_bits & 0x00000002u) { |
1557 | 67.1k | GOOGLE_DCHECK(!next_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1558 | 67.1k | (*next_partition_key_.UnsafeRawStringPointer())->clear(); |
1559 | 67.1k | } |
1560 | 67.7k | if (cached_has_bits & 0x00000004u) { |
1561 | 1.25k | GOOGLE_DCHECK(!next_row_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
1562 | 1.25k | (*next_row_key_.UnsafeRawStringPointer())->clear(); |
1563 | 1.25k | } |
1564 | 67.7k | if (cached_has_bits & 0x00000008u) { |
1565 | 4.23k | GOOGLE_DCHECK(read_time_ != NULL); |
1566 | 4.23k | read_time_->Clear(); |
1567 | 4.23k | } |
1568 | 67.7k | if (cached_has_bits & 0x00000010u) { |
1569 | 343 | GOOGLE_DCHECK(row_counter_ != NULL); |
1570 | 343 | row_counter_->Clear(); |
1571 | 343 | } |
1572 | 67.7k | } |
1573 | 11.7M | if (cached_has_bits & 224u) { |
1574 | 67.7k | ::memset(&total_num_rows_read_, 0, static_cast<size_t>( |
1575 | 67.7k | reinterpret_cast<char*>(&total_rows_skipped_) - |
1576 | 67.7k | reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(total_rows_skipped_)); |
1577 | 67.7k | } |
1578 | 11.7M | original_request_id_ = GOOGLE_ULONGLONG(0); |
1579 | 11.7M | _has_bits_.Clear(); |
1580 | 11.7M | _internal_metadata_.Clear(); |
1581 | 11.7M | } |
1582 | | |
1583 | | bool QLPagingStatePB::MergePartialFromCodedStream( |
1584 | 3.98M | ::google::protobuf::io::CodedInputStream* input) { |
1585 | 253k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1586 | 3.98M | ::google::protobuf::uint32 tag; |
1587 | | // @@protoc_insertion_point(parse_start:yb.QLPagingStatePB) |
1588 | 4.23M | for (;;) { |
1589 | 4.23M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1590 | 4.23M | tag = p.first; |
1591 | 4.23M | if (!p.second) goto handle_unusual; |
1592 | 259k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1593 | | // optional bytes table_id = 1; |
1594 | 33.9k | case 1: { |
1595 | 33.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1596 | 33.9k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1597 | 33.9k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1598 | 33.9k | input, this->mutable_table_id())); |
1599 | 0 | } else { |
1600 | 0 | goto handle_unusual; |
1601 | 0 | } |
1602 | 33.9k | break; |
1603 | 33.9k | } |
1604 | | |
1605 | | // optional bytes next_partition_key = 2; |
1606 | 80.0k | case 2: { |
1607 | 80.0k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1608 | 80.0k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1609 | 80.0k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1610 | 80.0k | input, this->mutable_next_partition_key())); |
1611 | 0 | } else { |
1612 | 0 | goto handle_unusual; |
1613 | 0 | } |
1614 | 80.0k | break; |
1615 | 80.0k | } |
1616 | | |
1617 | | // optional bytes next_row_key = 3; |
1618 | 25.0k | case 3: { |
1619 | 25.0k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1620 | 25.0k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1621 | 25.0k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
1622 | 25.0k | input, this->mutable_next_row_key())); |
1623 | 0 | } else { |
1624 | 0 | goto handle_unusual; |
1625 | 0 | } |
1626 | 25.0k | break; |
1627 | 25.0k | } |
1628 | | |
1629 | | // optional uint64 total_num_rows_read = 4; |
1630 | 80.5k | case 4: { |
1631 | 80.5k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1632 | 80.5k | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
1633 | 80.5k | set_has_total_num_rows_read(); |
1634 | 80.5k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1635 | 80.5k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1636 | 80.5k | input, &total_num_rows_read_))); |
1637 | 0 | } else { |
1638 | 0 | goto handle_unusual; |
1639 | 0 | } |
1640 | 80.5k | break; |
1641 | 80.5k | } |
1642 | | |
1643 | | // optional uint64 next_partition_index = 5; |
1644 | 286 | case 5: { |
1645 | 286 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1646 | 286 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
1647 | 286 | set_has_next_partition_index(); |
1648 | 286 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1649 | 286 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1650 | 286 | input, &next_partition_index_))); |
1651 | 0 | } else { |
1652 | 0 | goto handle_unusual; |
1653 | 0 | } |
1654 | 286 | break; |
1655 | 286 | } |
1656 | | |
1657 | | // optional uint64 total_rows_skipped = 6; |
1658 | 27.7k | case 6: { |
1659 | 27.7k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1660 | 27.7k | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
1661 | 27.7k | set_has_total_rows_skipped(); |
1662 | 27.7k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1663 | 27.7k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1664 | 27.7k | input, &total_rows_skipped_))); |
1665 | 0 | } else { |
1666 | 0 | goto handle_unusual; |
1667 | 0 | } |
1668 | 27.7k | break; |
1669 | 27.7k | } |
1670 | | |
1671 | | // optional uint64 original_request_id = 7; |
1672 | 286 | case 7: { |
1673 | 286 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1674 | 286 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
1675 | 286 | set_has_original_request_id(); |
1676 | 286 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1677 | 286 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
1678 | 286 | input, &original_request_id_))); |
1679 | 0 | } else { |
1680 | 0 | goto handle_unusual; |
1681 | 0 | } |
1682 | 286 | break; |
1683 | 286 | } |
1684 | | |
1685 | | // optional .yb.ReadHybridTimePB read_time = 8; |
1686 | 5.31k | case 8: { |
1687 | 5.31k | if (static_cast< ::google::protobuf::uint8>(tag) == |
1688 | 5.31k | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
1689 | 5.31k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1690 | 5.31k | input, mutable_read_time())); |
1691 | 0 | } else { |
1692 | 0 | goto handle_unusual; |
1693 | 0 | } |
1694 | 5.31k | break; |
1695 | 5.31k | } |
1696 | | |
1697 | | // optional .yb.QLSelectRowCounterPB row_counter = 9; |
1698 | 286 | case 9: { |
1699 | 286 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1700 | 286 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
1701 | 286 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1702 | 286 | input, mutable_row_counter())); |
1703 | 0 | } else { |
1704 | 0 | goto handle_unusual; |
1705 | 0 | } |
1706 | 286 | break; |
1707 | 3.98M | } |
1708 | | |
1709 | 0 | default: { |
1710 | 3.98M | handle_unusual: |
1711 | 3.98M | if (tag == 0) { |
1712 | 3.98M | goto success; |
1713 | 3.98M | } |
1714 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1715 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1716 | 18.4E | break; |
1717 | 18.4E | } |
1718 | 259k | } |
1719 | 259k | } |
1720 | 3.98M | success: |
1721 | | // @@protoc_insertion_point(parse_success:yb.QLPagingStatePB) |
1722 | 3.98M | return true; |
1723 | 0 | failure: |
1724 | | // @@protoc_insertion_point(parse_failure:yb.QLPagingStatePB) |
1725 | 0 | return false; |
1726 | 3.98M | #undef DO_ |
1727 | 3.98M | } |
1728 | | |
1729 | | void QLPagingStatePB::SerializeWithCachedSizes( |
1730 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1731 | | // @@protoc_insertion_point(serialize_start:yb.QLPagingStatePB) |
1732 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1733 | 0 | (void) cached_has_bits; |
1734 | |
|
1735 | 0 | cached_has_bits = _has_bits_[0]; |
1736 | | // optional bytes table_id = 1; |
1737 | 0 | if (cached_has_bits & 0x00000001u) { |
1738 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1739 | 0 | 1, this->table_id(), output); |
1740 | 0 | } |
1741 | | |
1742 | | // optional bytes next_partition_key = 2; |
1743 | 0 | if (cached_has_bits & 0x00000002u) { |
1744 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1745 | 0 | 2, this->next_partition_key(), output); |
1746 | 0 | } |
1747 | | |
1748 | | // optional bytes next_row_key = 3; |
1749 | 0 | if (cached_has_bits & 0x00000004u) { |
1750 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
1751 | 0 | 3, this->next_row_key(), output); |
1752 | 0 | } |
1753 | | |
1754 | | // optional uint64 total_num_rows_read = 4; |
1755 | 0 | if (cached_has_bits & 0x00000020u) { |
1756 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->total_num_rows_read(), output); |
1757 | 0 | } |
1758 | | |
1759 | | // optional uint64 next_partition_index = 5; |
1760 | 0 | if (cached_has_bits & 0x00000040u) { |
1761 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->next_partition_index(), output); |
1762 | 0 | } |
1763 | | |
1764 | | // optional uint64 total_rows_skipped = 6; |
1765 | 0 | if (cached_has_bits & 0x00000080u) { |
1766 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->total_rows_skipped(), output); |
1767 | 0 | } |
1768 | | |
1769 | | // optional uint64 original_request_id = 7; |
1770 | 0 | if (cached_has_bits & 0x00000100u) { |
1771 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->original_request_id(), output); |
1772 | 0 | } |
1773 | | |
1774 | | // optional .yb.ReadHybridTimePB read_time = 8; |
1775 | 0 | if (cached_has_bits & 0x00000008u) { |
1776 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1777 | 0 | 8, *this->read_time_, output); |
1778 | 0 | } |
1779 | | |
1780 | | // optional .yb.QLSelectRowCounterPB row_counter = 9; |
1781 | 0 | if (cached_has_bits & 0x00000010u) { |
1782 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1783 | 0 | 9, *this->row_counter_, output); |
1784 | 0 | } |
1785 | |
|
1786 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1787 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1788 | 0 | _internal_metadata_.unknown_fields(), output); |
1789 | 0 | } |
1790 | | // @@protoc_insertion_point(serialize_end:yb.QLPagingStatePB) |
1791 | 0 | } |
1792 | | |
1793 | | ::google::protobuf::uint8* QLPagingStatePB::InternalSerializeWithCachedSizesToArray( |
1794 | 80.6k | bool deterministic, ::google::protobuf::uint8* target) const { |
1795 | 80.6k | (void)deterministic; // Unused |
1796 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLPagingStatePB) |
1797 | 80.6k | ::google::protobuf::uint32 cached_has_bits = 0; |
1798 | 80.6k | (void) cached_has_bits; |
1799 | | |
1800 | 80.6k | cached_has_bits = _has_bits_[0]; |
1801 | | // optional bytes table_id = 1; |
1802 | 80.6k | if (cached_has_bits & 0x00000001u) { |
1803 | 33.9k | target = |
1804 | 33.9k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1805 | 33.9k | 1, this->table_id(), target); |
1806 | 33.9k | } |
1807 | | |
1808 | | // optional bytes next_partition_key = 2; |
1809 | 80.6k | if (cached_has_bits & 0x00000002u) { |
1810 | 80.0k | target = |
1811 | 80.0k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1812 | 80.0k | 2, this->next_partition_key(), target); |
1813 | 80.0k | } |
1814 | | |
1815 | | // optional bytes next_row_key = 3; |
1816 | 80.6k | if (cached_has_bits & 0x00000004u) { |
1817 | 25.0k | target = |
1818 | 25.0k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
1819 | 25.0k | 3, this->next_row_key(), target); |
1820 | 25.0k | } |
1821 | | |
1822 | | // optional uint64 total_num_rows_read = 4; |
1823 | 80.6k | if (cached_has_bits & 0x00000020u) { |
1824 | 80.6k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->total_num_rows_read(), target); |
1825 | 80.6k | } |
1826 | | |
1827 | | // optional uint64 next_partition_index = 5; |
1828 | 80.6k | if (cached_has_bits & 0x00000040u) { |
1829 | 339 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->next_partition_index(), target); |
1830 | 339 | } |
1831 | | |
1832 | | // optional uint64 total_rows_skipped = 6; |
1833 | 80.6k | if (cached_has_bits & 0x00000080u) { |
1834 | 27.8k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->total_rows_skipped(), target); |
1835 | 27.8k | } |
1836 | | |
1837 | | // optional uint64 original_request_id = 7; |
1838 | 80.6k | if (cached_has_bits & 0x00000100u) { |
1839 | 339 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->original_request_id(), target); |
1840 | 339 | } |
1841 | | |
1842 | | // optional .yb.ReadHybridTimePB read_time = 8; |
1843 | 80.6k | if (cached_has_bits & 0x00000008u) { |
1844 | 5.36k | target = ::google::protobuf::internal::WireFormatLite:: |
1845 | 5.36k | InternalWriteMessageToArray( |
1846 | 5.36k | 8, *this->read_time_, deterministic, target); |
1847 | 5.36k | } |
1848 | | |
1849 | | // optional .yb.QLSelectRowCounterPB row_counter = 9; |
1850 | 80.6k | if (cached_has_bits & 0x00000010u) { |
1851 | 339 | target = ::google::protobuf::internal::WireFormatLite:: |
1852 | 339 | InternalWriteMessageToArray( |
1853 | 339 | 9, *this->row_counter_, deterministic, target); |
1854 | 339 | } |
1855 | | |
1856 | 80.6k | if (_internal_metadata_.have_unknown_fields()) { |
1857 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1858 | 0 | _internal_metadata_.unknown_fields(), target); |
1859 | 0 | } |
1860 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLPagingStatePB) |
1861 | 80.6k | return target; |
1862 | 80.6k | } |
1863 | | |
1864 | 127k | size_t QLPagingStatePB::ByteSizeLong() const { |
1865 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLPagingStatePB) |
1866 | 127k | size_t total_size = 0; |
1867 | | |
1868 | 127k | if (_internal_metadata_.have_unknown_fields()) { |
1869 | 0 | total_size += |
1870 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1871 | 0 | _internal_metadata_.unknown_fields()); |
1872 | 0 | } |
1873 | 127k | if (_has_bits_[0 / 32] & 255u) { |
1874 | | // optional bytes table_id = 1; |
1875 | 127k | if (has_table_id()) { |
1876 | 33.9k | total_size += 1 + |
1877 | 33.9k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1878 | 33.9k | this->table_id()); |
1879 | 33.9k | } |
1880 | | |
1881 | | // optional bytes next_partition_key = 2; |
1882 | 127k | if (has_next_partition_key()) { |
1883 | 126k | total_size += 1 + |
1884 | 126k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1885 | 126k | this->next_partition_key()); |
1886 | 126k | } |
1887 | | |
1888 | | // optional bytes next_row_key = 3; |
1889 | 127k | if (has_next_row_key()) { |
1890 | 49.5k | total_size += 1 + |
1891 | 49.5k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
1892 | 49.5k | this->next_row_key()); |
1893 | 49.5k | } |
1894 | | |
1895 | | // optional .yb.ReadHybridTimePB read_time = 8; |
1896 | 127k | if (has_read_time()) { |
1897 | 8.51k | total_size += 1 + |
1898 | 8.51k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1899 | 8.51k | *this->read_time_); |
1900 | 8.51k | } |
1901 | | |
1902 | | // optional .yb.QLSelectRowCounterPB row_counter = 9; |
1903 | 127k | if (has_row_counter()) { |
1904 | 339 | total_size += 1 + |
1905 | 339 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1906 | 339 | *this->row_counter_); |
1907 | 339 | } |
1908 | | |
1909 | | // optional uint64 total_num_rows_read = 4; |
1910 | 127k | if (has_total_num_rows_read()) { |
1911 | 127k | total_size += 1 + |
1912 | 127k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1913 | 127k | this->total_num_rows_read()); |
1914 | 127k | } |
1915 | | |
1916 | | // optional uint64 next_partition_index = 5; |
1917 | 127k | if (has_next_partition_index()) { |
1918 | 339 | total_size += 1 + |
1919 | 339 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1920 | 339 | this->next_partition_index()); |
1921 | 339 | } |
1922 | | |
1923 | | // optional uint64 total_rows_skipped = 6; |
1924 | 127k | if (has_total_rows_skipped()) { |
1925 | 53.4k | total_size += 1 + |
1926 | 53.4k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1927 | 53.4k | this->total_rows_skipped()); |
1928 | 53.4k | } |
1929 | | |
1930 | 127k | } |
1931 | | // optional uint64 original_request_id = 7; |
1932 | 127k | if (has_original_request_id()) { |
1933 | 339 | total_size += 1 + |
1934 | 339 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
1935 | 339 | this->original_request_id()); |
1936 | 339 | } |
1937 | | |
1938 | 127k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1939 | 127k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1940 | 127k | _cached_size_ = cached_size; |
1941 | 127k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1942 | 127k | return total_size; |
1943 | 127k | } |
1944 | | |
1945 | 0 | void QLPagingStatePB::MergeFrom(const ::google::protobuf::Message& from) { |
1946 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLPagingStatePB) |
1947 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1948 | 0 | const QLPagingStatePB* source = |
1949 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLPagingStatePB>( |
1950 | 0 | &from); |
1951 | 0 | if (source == NULL) { |
1952 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLPagingStatePB) |
1953 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1954 | 0 | } else { |
1955 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLPagingStatePB) |
1956 | 0 | MergeFrom(*source); |
1957 | 0 | } |
1958 | 0 | } |
1959 | | |
1960 | 3.89M | void QLPagingStatePB::MergeFrom(const QLPagingStatePB& from) { |
1961 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLPagingStatePB) |
1962 | 3.89M | GOOGLE_DCHECK_NE(&from, this); |
1963 | 3.89M | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1964 | 3.89M | ::google::protobuf::uint32 cached_has_bits = 0; |
1965 | 3.89M | (void) cached_has_bits; |
1966 | | |
1967 | 3.89M | cached_has_bits = from._has_bits_[0]; |
1968 | 3.89M | if (cached_has_bits & 255u) { |
1969 | 1.34k | if (cached_has_bits & 0x00000001u) { |
1970 | 400 | set_has_table_id(); |
1971 | 400 | table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_); |
1972 | 400 | } |
1973 | 1.34k | if (cached_has_bits & 0x00000002u) { |
1974 | 1.32k | set_has_next_partition_key(); |
1975 | 1.32k | next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_); |
1976 | 1.32k | } |
1977 | 1.34k | if (cached_has_bits & 0x00000004u) { |
1978 | 1.28k | set_has_next_row_key(); |
1979 | 1.28k | next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_); |
1980 | 1.28k | } |
1981 | 1.34k | if (cached_has_bits & 0x00000008u) { |
1982 | 1.33k | mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time()); |
1983 | 1.33k | } |
1984 | 1.34k | if (cached_has_bits & 0x00000010u) { |
1985 | 400 | mutable_row_counter()->::yb::QLSelectRowCounterPB::MergeFrom(from.row_counter()); |
1986 | 400 | } |
1987 | 1.34k | if (cached_has_bits & 0x00000020u) { |
1988 | 1.34k | total_num_rows_read_ = from.total_num_rows_read_; |
1989 | 1.34k | } |
1990 | 1.34k | if (cached_has_bits & 0x00000040u) { |
1991 | 400 | next_partition_index_ = from.next_partition_index_; |
1992 | 400 | } |
1993 | 1.34k | if (cached_has_bits & 0x00000080u) { |
1994 | 1.34k | total_rows_skipped_ = from.total_rows_skipped_; |
1995 | 1.34k | } |
1996 | 1.34k | _has_bits_[0] |= cached_has_bits; |
1997 | 1.34k | } |
1998 | 3.89M | if (cached_has_bits & 0x00000100u) { |
1999 | 400 | set_original_request_id(from.original_request_id()); |
2000 | 400 | } |
2001 | 3.89M | } |
2002 | | |
2003 | 0 | void QLPagingStatePB::CopyFrom(const ::google::protobuf::Message& from) { |
2004 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLPagingStatePB) |
2005 | 0 | if (&from == this) return; |
2006 | 0 | Clear(); |
2007 | 0 | MergeFrom(from); |
2008 | 0 | } |
2009 | | |
2010 | 3.89M | void QLPagingStatePB::CopyFrom(const QLPagingStatePB& from) { |
2011 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLPagingStatePB) |
2012 | 3.89M | if (&from == this) return; |
2013 | 3.89M | Clear(); |
2014 | 3.89M | MergeFrom(from); |
2015 | 3.89M | } |
2016 | | |
2017 | 3.97M | bool QLPagingStatePB::IsInitialized() const { |
2018 | 3.97M | return true; |
2019 | 3.97M | } |
2020 | | |
2021 | 0 | void QLPagingStatePB::Swap(QLPagingStatePB* other) { |
2022 | 0 | if (other == this) return; |
2023 | 0 | InternalSwap(other); |
2024 | 0 | } |
2025 | 0 | void QLPagingStatePB::InternalSwap(QLPagingStatePB* other) { |
2026 | 0 | using std::swap; |
2027 | 0 | table_id_.Swap(&other->table_id_); |
2028 | 0 | next_partition_key_.Swap(&other->next_partition_key_); |
2029 | 0 | next_row_key_.Swap(&other->next_row_key_); |
2030 | 0 | swap(read_time_, other->read_time_); |
2031 | 0 | swap(row_counter_, other->row_counter_); |
2032 | 0 | swap(total_num_rows_read_, other->total_num_rows_read_); |
2033 | 0 | swap(next_partition_index_, other->next_partition_index_); |
2034 | 0 | swap(total_rows_skipped_, other->total_rows_skipped_); |
2035 | 0 | swap(original_request_id_, other->original_request_id_); |
2036 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2037 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2038 | 0 | swap(_cached_size_, other->_cached_size_); |
2039 | 0 | } |
2040 | | |
2041 | 23.3k | ::google::protobuf::Metadata QLPagingStatePB::GetMetadata() const { |
2042 | 23.3k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2043 | 23.3k | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
2044 | 23.3k | } |
2045 | | |
2046 | | |
2047 | | // =================================================================== |
2048 | | |
2049 | 17.1k | void QLReferencedColumnsPB::InitAsDefaultInstance() { |
2050 | 17.1k | } |
2051 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2052 | | const int QLReferencedColumnsPB::kIdsFieldNumber; |
2053 | | const int QLReferencedColumnsPB::kStaticIdsFieldNumber; |
2054 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2055 | | |
2056 | | QLReferencedColumnsPB::QLReferencedColumnsPB() |
2057 | 5.84M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2058 | 5.82M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2059 | 5.82M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReferencedColumnsPB(); |
2060 | 5.82M | } |
2061 | 5.84M | SharedCtor(); |
2062 | | // @@protoc_insertion_point(constructor:yb.QLReferencedColumnsPB) |
2063 | 5.84M | } |
2064 | | QLReferencedColumnsPB::QLReferencedColumnsPB(const QLReferencedColumnsPB& from) |
2065 | | : ::google::protobuf::Message(), |
2066 | | _internal_metadata_(NULL), |
2067 | | _has_bits_(from._has_bits_), |
2068 | | _cached_size_(0), |
2069 | | ids_(from.ids_), |
2070 | 0 | static_ids_(from.static_ids_) { |
2071 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2072 | | // @@protoc_insertion_point(copy_constructor:yb.QLReferencedColumnsPB) |
2073 | 0 | } |
2074 | | |
2075 | 5.83M | void QLReferencedColumnsPB::SharedCtor() { |
2076 | 5.83M | _cached_size_ = 0; |
2077 | 5.83M | } |
2078 | | |
2079 | 5.83M | QLReferencedColumnsPB::~QLReferencedColumnsPB() { |
2080 | | // @@protoc_insertion_point(destructor:yb.QLReferencedColumnsPB) |
2081 | 5.83M | SharedDtor(); |
2082 | 5.83M | } |
2083 | | |
2084 | 5.83M | void QLReferencedColumnsPB::SharedDtor() { |
2085 | 5.83M | } |
2086 | | |
2087 | 0 | void QLReferencedColumnsPB::SetCachedSize(int size) const { |
2088 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2089 | 0 | _cached_size_ = size; |
2090 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2091 | 0 | } |
2092 | 0 | const ::google::protobuf::Descriptor* QLReferencedColumnsPB::descriptor() { |
2093 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2094 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2095 | 0 | } |
2096 | | |
2097 | 0 | const QLReferencedColumnsPB& QLReferencedColumnsPB::default_instance() { |
2098 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReferencedColumnsPB(); |
2099 | 0 | return *internal_default_instance(); |
2100 | 0 | } |
2101 | | |
2102 | 0 | QLReferencedColumnsPB* QLReferencedColumnsPB::New(::google::protobuf::Arena* arena) const { |
2103 | 0 | QLReferencedColumnsPB* n = new QLReferencedColumnsPB; |
2104 | 0 | if (arena != NULL) { |
2105 | 0 | arena->Own(n); |
2106 | 0 | } |
2107 | 0 | return n; |
2108 | 0 | } |
2109 | | |
2110 | 1.01k | void QLReferencedColumnsPB::Clear() { |
2111 | | // @@protoc_insertion_point(message_clear_start:yb.QLReferencedColumnsPB) |
2112 | 1.01k | ::google::protobuf::uint32 cached_has_bits = 0; |
2113 | | // Prevent compiler warnings about cached_has_bits being unused |
2114 | 1.01k | (void) cached_has_bits; |
2115 | | |
2116 | 1.01k | ids_.Clear(); |
2117 | 1.01k | static_ids_.Clear(); |
2118 | 1.01k | _has_bits_.Clear(); |
2119 | 1.01k | _internal_metadata_.Clear(); |
2120 | 1.01k | } |
2121 | | |
2122 | | bool QLReferencedColumnsPB::MergePartialFromCodedStream( |
2123 | 629k | ::google::protobuf::io::CodedInputStream* input) { |
2124 | 668k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2125 | 629k | ::google::protobuf::uint32 tag; |
2126 | | // @@protoc_insertion_point(parse_start:yb.QLReferencedColumnsPB) |
2127 | 1.29M | for (;;) { |
2128 | 1.29M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2129 | 1.29M | tag = p.first; |
2130 | 1.29M | if (!p.second) goto handle_unusual; |
2131 | 670k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2132 | | // repeated int32 ids = 1; |
2133 | 668k | case 1: { |
2134 | 668k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2135 | 668k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2136 | 668k | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
2137 | 668k | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2138 | 668k | 1, 8u, input, this->mutable_ids()))); |
2139 | 18.4E | } else if ( |
2140 | 18.4E | static_cast< ::google::protobuf::uint8>(tag) == |
2141 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2142 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
2143 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2144 | 0 | input, this->mutable_ids()))); |
2145 | 18.4E | } else { |
2146 | 18.4E | goto handle_unusual; |
2147 | 18.4E | } |
2148 | 668k | break; |
2149 | 668k | } |
2150 | | |
2151 | | // repeated int32 static_ids = 2; |
2152 | 192 | case 2: { |
2153 | 192 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2154 | 192 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2155 | 192 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
2156 | 192 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2157 | 192 | 1, 16u, input, this->mutable_static_ids()))); |
2158 | 0 | } else if ( |
2159 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
2160 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2161 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
2162 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2163 | 0 | input, this->mutable_static_ids()))); |
2164 | 0 | } else { |
2165 | 0 | goto handle_unusual; |
2166 | 0 | } |
2167 | 192 | break; |
2168 | 629k | } |
2169 | | |
2170 | 0 | default: { |
2171 | 629k | handle_unusual: |
2172 | 629k | if (tag == 0) { |
2173 | 629k | goto success; |
2174 | 629k | } |
2175 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2176 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2177 | 18.4E | break; |
2178 | 18.4E | } |
2179 | 670k | } |
2180 | 670k | } |
2181 | 629k | success: |
2182 | | // @@protoc_insertion_point(parse_success:yb.QLReferencedColumnsPB) |
2183 | 629k | return true; |
2184 | 0 | failure: |
2185 | | // @@protoc_insertion_point(parse_failure:yb.QLReferencedColumnsPB) |
2186 | 0 | return false; |
2187 | 629k | #undef DO_ |
2188 | 629k | } |
2189 | | |
2190 | | void QLReferencedColumnsPB::SerializeWithCachedSizes( |
2191 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2192 | | // @@protoc_insertion_point(serialize_start:yb.QLReferencedColumnsPB) |
2193 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2194 | 0 | (void) cached_has_bits; |
2195 | | |
2196 | | // repeated int32 ids = 1; |
2197 | 0 | for (int i = 0, n = this->ids_size(); i < n; i++) { |
2198 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
2199 | 0 | 1, this->ids(i), output); |
2200 | 0 | } |
2201 | | |
2202 | | // repeated int32 static_ids = 2; |
2203 | 0 | for (int i = 0, n = this->static_ids_size(); i < n; i++) { |
2204 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
2205 | 0 | 2, this->static_ids(i), output); |
2206 | 0 | } |
2207 | |
|
2208 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2209 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2210 | 0 | _internal_metadata_.unknown_fields(), output); |
2211 | 0 | } |
2212 | | // @@protoc_insertion_point(serialize_end:yb.QLReferencedColumnsPB) |
2213 | 0 | } |
2214 | | |
2215 | | ::google::protobuf::uint8* QLReferencedColumnsPB::InternalSerializeWithCachedSizesToArray( |
2216 | 628k | bool deterministic, ::google::protobuf::uint8* target) const { |
2217 | 628k | (void)deterministic; // Unused |
2218 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLReferencedColumnsPB) |
2219 | 628k | ::google::protobuf::uint32 cached_has_bits = 0; |
2220 | 628k | (void) cached_has_bits; |
2221 | | |
2222 | | // repeated int32 ids = 1; |
2223 | 628k | target = ::google::protobuf::internal::WireFormatLite:: |
2224 | 628k | WriteInt32ToArray(1, this->ids_, target); |
2225 | | |
2226 | | // repeated int32 static_ids = 2; |
2227 | 628k | target = ::google::protobuf::internal::WireFormatLite:: |
2228 | 628k | WriteInt32ToArray(2, this->static_ids_, target); |
2229 | | |
2230 | 628k | if (_internal_metadata_.have_unknown_fields()) { |
2231 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2232 | 0 | _internal_metadata_.unknown_fields(), target); |
2233 | 0 | } |
2234 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLReferencedColumnsPB) |
2235 | 628k | return target; |
2236 | 628k | } |
2237 | | |
2238 | 1.25M | size_t QLReferencedColumnsPB::ByteSizeLong() const { |
2239 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLReferencedColumnsPB) |
2240 | 1.25M | size_t total_size = 0; |
2241 | | |
2242 | 1.25M | if (_internal_metadata_.have_unknown_fields()) { |
2243 | 0 | total_size += |
2244 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2245 | 0 | _internal_metadata_.unknown_fields()); |
2246 | 0 | } |
2247 | | // repeated int32 ids = 1; |
2248 | 1.25M | { |
2249 | 1.25M | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
2250 | 1.25M | Int32Size(this->ids_); |
2251 | 1.25M | total_size += 1 * |
2252 | 1.25M | ::google::protobuf::internal::FromIntSize(this->ids_size()); |
2253 | 1.25M | total_size += data_size; |
2254 | 1.25M | } |
2255 | | |
2256 | | // repeated int32 static_ids = 2; |
2257 | 1.25M | { |
2258 | 1.25M | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
2259 | 1.25M | Int32Size(this->static_ids_); |
2260 | 1.25M | total_size += 1 * |
2261 | 1.25M | ::google::protobuf::internal::FromIntSize(this->static_ids_size()); |
2262 | 1.25M | total_size += data_size; |
2263 | 1.25M | } |
2264 | | |
2265 | 1.25M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2266 | 1.25M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2267 | 1.25M | _cached_size_ = cached_size; |
2268 | 1.25M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2269 | 1.25M | return total_size; |
2270 | 1.25M | } |
2271 | | |
2272 | 0 | void QLReferencedColumnsPB::MergeFrom(const ::google::protobuf::Message& from) { |
2273 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLReferencedColumnsPB) |
2274 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2275 | 0 | const QLReferencedColumnsPB* source = |
2276 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLReferencedColumnsPB>( |
2277 | 0 | &from); |
2278 | 0 | if (source == NULL) { |
2279 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLReferencedColumnsPB) |
2280 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2281 | 0 | } else { |
2282 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLReferencedColumnsPB) |
2283 | 0 | MergeFrom(*source); |
2284 | 0 | } |
2285 | 0 | } |
2286 | | |
2287 | 6.00k | void QLReferencedColumnsPB::MergeFrom(const QLReferencedColumnsPB& from) { |
2288 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLReferencedColumnsPB) |
2289 | 6.00k | GOOGLE_DCHECK_NE(&from, this); |
2290 | 6.00k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2291 | 6.00k | ::google::protobuf::uint32 cached_has_bits = 0; |
2292 | 6.00k | (void) cached_has_bits; |
2293 | | |
2294 | 6.00k | ids_.MergeFrom(from.ids_); |
2295 | 6.00k | static_ids_.MergeFrom(from.static_ids_); |
2296 | 6.00k | } |
2297 | | |
2298 | 0 | void QLReferencedColumnsPB::CopyFrom(const ::google::protobuf::Message& from) { |
2299 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLReferencedColumnsPB) |
2300 | 0 | if (&from == this) return; |
2301 | 0 | Clear(); |
2302 | 0 | MergeFrom(from); |
2303 | 0 | } |
2304 | | |
2305 | 0 | void QLReferencedColumnsPB::CopyFrom(const QLReferencedColumnsPB& from) { |
2306 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLReferencedColumnsPB) |
2307 | 0 | if (&from == this) return; |
2308 | 0 | Clear(); |
2309 | 0 | MergeFrom(from); |
2310 | 0 | } |
2311 | | |
2312 | 0 | bool QLReferencedColumnsPB::IsInitialized() const { |
2313 | 0 | return true; |
2314 | 0 | } |
2315 | | |
2316 | 0 | void QLReferencedColumnsPB::Swap(QLReferencedColumnsPB* other) { |
2317 | 0 | if (other == this) return; |
2318 | 0 | InternalSwap(other); |
2319 | 0 | } |
2320 | 0 | void QLReferencedColumnsPB::InternalSwap(QLReferencedColumnsPB* other) { |
2321 | 0 | using std::swap; |
2322 | 0 | ids_.InternalSwap(&other->ids_); |
2323 | 0 | static_ids_.InternalSwap(&other->static_ids_); |
2324 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2325 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2326 | 0 | swap(_cached_size_, other->_cached_size_); |
2327 | 0 | } |
2328 | | |
2329 | 629k | ::google::protobuf::Metadata QLReferencedColumnsPB::GetMetadata() const { |
2330 | 629k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2331 | 629k | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
2332 | 629k | } |
2333 | | |
2334 | | |
2335 | | // =================================================================== |
2336 | | |
2337 | 17.1k | void QLWriteRequestPB::InitAsDefaultInstance() { |
2338 | 17.1k | ::yb::_QLWriteRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::QLExpressionPB*>( |
2339 | 17.1k | ::yb::QLExpressionPB::internal_default_instance()); |
2340 | 17.1k | ::yb::_QLWriteRequestPB_default_instance_._instance.get_mutable()->if_expr_ = const_cast< ::yb::QLExpressionPB*>( |
2341 | 17.1k | ::yb::QLExpressionPB::internal_default_instance()); |
2342 | 17.1k | ::yb::_QLWriteRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::QLReferencedColumnsPB*>( |
2343 | 17.1k | ::yb::QLReferencedColumnsPB::internal_default_instance()); |
2344 | 17.1k | ::yb::_QLWriteRequestPB_default_instance_._instance.get_mutable()->child_transaction_data_ = const_cast< ::yb::ChildTransactionDataPB*>( |
2345 | 17.1k | ::yb::ChildTransactionDataPB::internal_default_instance()); |
2346 | 17.1k | } |
2347 | 0 | void QLWriteRequestPB::clear_hashed_column_values() { |
2348 | 0 | hashed_column_values_.Clear(); |
2349 | 0 | } |
2350 | 0 | void QLWriteRequestPB::clear_range_column_values() { |
2351 | 0 | range_column_values_.Clear(); |
2352 | 0 | } |
2353 | 0 | void QLWriteRequestPB::clear_where_expr() { |
2354 | 0 | if (where_expr_ != NULL) where_expr_->Clear(); |
2355 | 0 | clear_has_where_expr(); |
2356 | 0 | } |
2357 | 0 | void QLWriteRequestPB::clear_if_expr() { |
2358 | 0 | if (if_expr_ != NULL) if_expr_->Clear(); |
2359 | 0 | clear_has_if_expr(); |
2360 | 0 | } |
2361 | 0 | void QLWriteRequestPB::clear_child_transaction_data() { |
2362 | 0 | if (child_transaction_data_ != NULL) child_transaction_data_->Clear(); |
2363 | 0 | clear_has_child_transaction_data(); |
2364 | 0 | } |
2365 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2366 | | const int QLWriteRequestPB::kTypeFieldNumber; |
2367 | | const int QLWriteRequestPB::kClientFieldNumber; |
2368 | | const int QLWriteRequestPB::kRequestIdFieldNumber; |
2369 | | const int QLWriteRequestPB::kSchemaVersionFieldNumber; |
2370 | | const int QLWriteRequestPB::kHashCodeFieldNumber; |
2371 | | const int QLWriteRequestPB::kHashedColumnValuesFieldNumber; |
2372 | | const int QLWriteRequestPB::kRangeColumnValuesFieldNumber; |
2373 | | const int QLWriteRequestPB::kColumnValuesFieldNumber; |
2374 | | const int QLWriteRequestPB::kWhereExprFieldNumber; |
2375 | | const int QLWriteRequestPB::kIfExprFieldNumber; |
2376 | | const int QLWriteRequestPB::kElseErrorFieldNumber; |
2377 | | const int QLWriteRequestPB::kTtlFieldNumber; |
2378 | | const int QLWriteRequestPB::kColumnRefsFieldNumber; |
2379 | | const int QLWriteRequestPB::kQueryIdFieldNumber; |
2380 | | const int QLWriteRequestPB::kUserTimestampUsecFieldNumber; |
2381 | | const int QLWriteRequestPB::kUpdateIndexIdsFieldNumber; |
2382 | | const int QLWriteRequestPB::kChildTransactionDataFieldNumber; |
2383 | | const int QLWriteRequestPB::kReturnsStatusFieldNumber; |
2384 | | const int QLWriteRequestPB::kIsBackfillFieldNumber; |
2385 | | const int QLWriteRequestPB::kIsCompatibleWithPreviousVersionFieldNumber; |
2386 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2387 | | |
2388 | | QLWriteRequestPB::QLWriteRequestPB() |
2389 | 5.66M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2390 | 5.64M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2391 | 5.64M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLWriteRequestPB(); |
2392 | 5.64M | } |
2393 | 5.66M | SharedCtor(); |
2394 | | // @@protoc_insertion_point(constructor:yb.QLWriteRequestPB) |
2395 | 5.66M | } |
2396 | | QLWriteRequestPB::QLWriteRequestPB(const QLWriteRequestPB& from) |
2397 | | : ::google::protobuf::Message(), |
2398 | | _internal_metadata_(NULL), |
2399 | | _has_bits_(from._has_bits_), |
2400 | | _cached_size_(0), |
2401 | | hashed_column_values_(from.hashed_column_values_), |
2402 | | range_column_values_(from.range_column_values_), |
2403 | | column_values_(from.column_values_), |
2404 | 0 | update_index_ids_(from.update_index_ids_) { |
2405 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2406 | 0 | if (from.has_if_expr()) { |
2407 | 0 | if_expr_ = new ::yb::QLExpressionPB(*from.if_expr_); |
2408 | 0 | } else { |
2409 | 0 | if_expr_ = NULL; |
2410 | 0 | } |
2411 | 0 | if (from.has_column_refs()) { |
2412 | 0 | column_refs_ = new ::yb::QLReferencedColumnsPB(*from.column_refs_); |
2413 | 0 | } else { |
2414 | 0 | column_refs_ = NULL; |
2415 | 0 | } |
2416 | 0 | if (from.has_where_expr()) { |
2417 | 0 | where_expr_ = new ::yb::QLExpressionPB(*from.where_expr_); |
2418 | 0 | } else { |
2419 | 0 | where_expr_ = NULL; |
2420 | 0 | } |
2421 | 0 | if (from.has_child_transaction_data()) { |
2422 | 0 | child_transaction_data_ = new ::yb::ChildTransactionDataPB(*from.child_transaction_data_); |
2423 | 0 | } else { |
2424 | 0 | child_transaction_data_ = NULL; |
2425 | 0 | } |
2426 | 0 | ::memcpy(&request_id_, &from.request_id_, |
2427 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&client_) - |
2428 | 0 | reinterpret_cast<char*>(&request_id_)) + sizeof(client_)); |
2429 | | // @@protoc_insertion_point(copy_constructor:yb.QLWriteRequestPB) |
2430 | 0 | } |
2431 | | |
2432 | 5.66M | void QLWriteRequestPB::SharedCtor() { |
2433 | 5.66M | _cached_size_ = 0; |
2434 | 5.66M | ::memset(&if_expr_, 0, static_cast<size_t>( |
2435 | 5.66M | reinterpret_cast<char*>(&is_compatible_with_previous_version_) - |
2436 | 5.66M | reinterpret_cast<char*>(&if_expr_)) + sizeof(is_compatible_with_previous_version_)); |
2437 | 5.66M | type_ = 1; |
2438 | 5.66M | client_ = 1; |
2439 | 5.66M | } |
2440 | | |
2441 | 5.64M | QLWriteRequestPB::~QLWriteRequestPB() { |
2442 | | // @@protoc_insertion_point(destructor:yb.QLWriteRequestPB) |
2443 | 5.64M | SharedDtor(); |
2444 | 5.64M | } |
2445 | | |
2446 | 5.64M | void QLWriteRequestPB::SharedDtor() { |
2447 | 5.64M | if (this != internal_default_instance()) delete if_expr_; |
2448 | 5.64M | if (this != internal_default_instance()) delete column_refs_; |
2449 | 5.64M | if (this != internal_default_instance()) delete where_expr_; |
2450 | 5.64M | if (this != internal_default_instance()) delete child_transaction_data_; |
2451 | 5.64M | } |
2452 | | |
2453 | 0 | void QLWriteRequestPB::SetCachedSize(int size) const { |
2454 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2455 | 0 | _cached_size_ = size; |
2456 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2457 | 0 | } |
2458 | 0 | const ::google::protobuf::Descriptor* QLWriteRequestPB::descriptor() { |
2459 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2460 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2461 | 0 | } |
2462 | | |
2463 | 0 | const QLWriteRequestPB& QLWriteRequestPB::default_instance() { |
2464 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLWriteRequestPB(); |
2465 | 0 | return *internal_default_instance(); |
2466 | 0 | } |
2467 | | |
2468 | 0 | QLWriteRequestPB* QLWriteRequestPB::New(::google::protobuf::Arena* arena) const { |
2469 | 0 | QLWriteRequestPB* n = new QLWriteRequestPB; |
2470 | 0 | if (arena != NULL) { |
2471 | 0 | arena->Own(n); |
2472 | 0 | } |
2473 | 0 | return n; |
2474 | 0 | } |
2475 | | |
2476 | 118k | void QLWriteRequestPB::Clear() { |
2477 | | // @@protoc_insertion_point(message_clear_start:yb.QLWriteRequestPB) |
2478 | 118k | ::google::protobuf::uint32 cached_has_bits = 0; |
2479 | | // Prevent compiler warnings about cached_has_bits being unused |
2480 | 118k | (void) cached_has_bits; |
2481 | | |
2482 | 118k | hashed_column_values_.Clear(); |
2483 | 118k | range_column_values_.Clear(); |
2484 | 118k | column_values_.Clear(); |
2485 | 118k | update_index_ids_.Clear(); |
2486 | 118k | cached_has_bits = _has_bits_[0]; |
2487 | 118k | if (cached_has_bits & 15u) { |
2488 | 0 | if (cached_has_bits & 0x00000001u) { |
2489 | 0 | GOOGLE_DCHECK(if_expr_ != NULL); |
2490 | 0 | if_expr_->Clear(); |
2491 | 0 | } |
2492 | 0 | if (cached_has_bits & 0x00000002u) { |
2493 | 0 | GOOGLE_DCHECK(column_refs_ != NULL); |
2494 | 0 | column_refs_->Clear(); |
2495 | 0 | } |
2496 | 0 | if (cached_has_bits & 0x00000004u) { |
2497 | 0 | GOOGLE_DCHECK(where_expr_ != NULL); |
2498 | 0 | where_expr_->Clear(); |
2499 | 0 | } |
2500 | 0 | if (cached_has_bits & 0x00000008u) { |
2501 | 0 | GOOGLE_DCHECK(child_transaction_data_ != NULL); |
2502 | 0 | child_transaction_data_->Clear(); |
2503 | 0 | } |
2504 | 0 | } |
2505 | 118k | if (cached_has_bits & 240u) { |
2506 | 118k | ::memset(&request_id_, 0, static_cast<size_t>( |
2507 | 118k | reinterpret_cast<char*>(&ttl_) - |
2508 | 118k | reinterpret_cast<char*>(&request_id_)) + sizeof(ttl_)); |
2509 | 118k | } |
2510 | 118k | if (cached_has_bits & 65280u) { |
2511 | 30.3k | ::memset(&query_id_, 0, static_cast<size_t>( |
2512 | 30.3k | reinterpret_cast<char*>(&is_compatible_with_previous_version_) - |
2513 | 30.3k | reinterpret_cast<char*>(&query_id_)) + sizeof(is_compatible_with_previous_version_)); |
2514 | 30.3k | type_ = 1; |
2515 | 30.3k | client_ = 1; |
2516 | 30.3k | } |
2517 | 118k | _has_bits_.Clear(); |
2518 | 118k | _internal_metadata_.Clear(); |
2519 | 118k | } |
2520 | | |
2521 | | bool QLWriteRequestPB::MergePartialFromCodedStream( |
2522 | 2.06M | ::google::protobuf::io::CodedInputStream* input) { |
2523 | 20.4M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2524 | 2.06M | ::google::protobuf::uint32 tag; |
2525 | | // @@protoc_insertion_point(parse_start:yb.QLWriteRequestPB) |
2526 | 22.4M | for (;;) { |
2527 | 22.4M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
2528 | 22.4M | tag = p.first; |
2529 | 22.4M | if (!p.second) goto handle_unusual; |
2530 | 20.3M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2531 | | // optional .yb.QLWriteRequestPB.QLStmtType type = 1; |
2532 | 2.06M | case 1: { |
2533 | 2.06M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2534 | 2.06M | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2535 | 2.06M | int value; |
2536 | 2.06M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2537 | 2.06M | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2538 | 2.06M | input, &value))); |
2539 | 2.06M | if (::yb::QLWriteRequestPB_QLStmtType_IsValid(value)) { |
2540 | 2.06M | set_type(static_cast< ::yb::QLWriteRequestPB_QLStmtType >(value)); |
2541 | 18.4E | } else { |
2542 | 18.4E | mutable_unknown_fields()->AddVarint( |
2543 | 18.4E | 1, static_cast< ::google::protobuf::uint64>(value)); |
2544 | 18.4E | } |
2545 | 18.4E | } else { |
2546 | 18.4E | goto handle_unusual; |
2547 | 18.4E | } |
2548 | 2.06M | break; |
2549 | 2.06M | } |
2550 | | |
2551 | | // optional .yb.QLClient client = 2; |
2552 | 1.96M | case 2: { |
2553 | 1.96M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2554 | 1.96M | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2555 | 1.96M | int value; |
2556 | 1.96M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2557 | 1.96M | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2558 | 1.96M | input, &value))); |
2559 | 1.96M | if (::yb::QLClient_IsValid(value)) { |
2560 | 1.96M | set_client(static_cast< ::yb::QLClient >(value)); |
2561 | 86 | } else { |
2562 | 86 | mutable_unknown_fields()->AddVarint( |
2563 | 86 | 2, static_cast< ::google::protobuf::uint64>(value)); |
2564 | 86 | } |
2565 | 18.4E | } else { |
2566 | 18.4E | goto handle_unusual; |
2567 | 18.4E | } |
2568 | 1.96M | break; |
2569 | 1.96M | } |
2570 | | |
2571 | | // optional uint64 request_id = 3; |
2572 | 1.96M | case 3: { |
2573 | 1.96M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2574 | 1.96M | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2575 | 1.96M | set_has_request_id(); |
2576 | 1.96M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2577 | 1.96M | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2578 | 1.96M | input, &request_id_))); |
2579 | 18.4E | } else { |
2580 | 18.4E | goto handle_unusual; |
2581 | 18.4E | } |
2582 | 1.96M | break; |
2583 | 1.96M | } |
2584 | | |
2585 | | // optional uint32 schema_version = 4; |
2586 | 2.02M | case 4: { |
2587 | 2.02M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2588 | 2.02M | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2589 | 2.02M | set_has_schema_version(); |
2590 | 2.02M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2591 | 2.02M | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2592 | 2.02M | input, &schema_version_))); |
2593 | 18.4E | } else { |
2594 | 18.4E | goto handle_unusual; |
2595 | 18.4E | } |
2596 | 2.02M | break; |
2597 | 2.02M | } |
2598 | | |
2599 | | // optional uint32 hash_code = 5; |
2600 | 2.06M | case 5: { |
2601 | 2.06M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2602 | 2.06M | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2603 | 2.06M | set_has_hash_code(); |
2604 | 2.06M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2605 | 2.06M | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2606 | 2.06M | input, &hash_code_))); |
2607 | 18.4E | } else { |
2608 | 18.4E | goto handle_unusual; |
2609 | 18.4E | } |
2610 | 2.06M | break; |
2611 | 2.06M | } |
2612 | | |
2613 | | // repeated .yb.QLExpressionPB hashed_column_values = 6; |
2614 | 2.10M | case 6: { |
2615 | 2.10M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2616 | 2.10M | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
2617 | 2.10M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_hashed_column_values())); |
2618 | 18.4E | } else { |
2619 | 18.4E | goto handle_unusual; |
2620 | 18.4E | } |
2621 | 2.10M | break; |
2622 | 2.10M | } |
2623 | | |
2624 | | // repeated .yb.QLExpressionPB range_column_values = 7; |
2625 | 278k | case 7: { |
2626 | 278k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2627 | 278k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
2628 | 278k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values())); |
2629 | 18.4E | } else { |
2630 | 18.4E | goto handle_unusual; |
2631 | 18.4E | } |
2632 | 278k | break; |
2633 | 278k | } |
2634 | | |
2635 | | // repeated .yb.QLColumnValuePB column_values = 8; |
2636 | 3.71M | case 8: { |
2637 | 3.71M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2638 | 3.71M | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
2639 | 3.71M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_values())); |
2640 | 18.4E | } else { |
2641 | 18.4E | goto handle_unusual; |
2642 | 18.4E | } |
2643 | 3.71M | break; |
2644 | 3.71M | } |
2645 | | |
2646 | | // optional .yb.QLExpressionPB if_expr = 9; |
2647 | 88 | case 9: { |
2648 | 88 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2649 | 88 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
2650 | 88 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2651 | 88 | input, mutable_if_expr())); |
2652 | 0 | } else { |
2653 | 0 | goto handle_unusual; |
2654 | 0 | } |
2655 | 88 | break; |
2656 | 88 | } |
2657 | | |
2658 | | // optional uint64 ttl = 10; |
2659 | 64 | case 10: { |
2660 | 64 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2661 | 64 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
2662 | 64 | set_has_ttl(); |
2663 | 64 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2664 | 64 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2665 | 64 | input, &ttl_))); |
2666 | 0 | } else { |
2667 | 0 | goto handle_unusual; |
2668 | 0 | } |
2669 | 64 | break; |
2670 | 64 | } |
2671 | | |
2672 | | // optional .yb.QLReferencedColumnsPB column_refs = 11; |
2673 | 292k | case 11: { |
2674 | 292k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2675 | 292k | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
2676 | 292k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2677 | 292k | input, mutable_column_refs())); |
2678 | 18.4E | } else { |
2679 | 18.4E | goto handle_unusual; |
2680 | 18.4E | } |
2681 | 292k | break; |
2682 | 292k | } |
2683 | | |
2684 | | // optional int64 query_id = 12; |
2685 | 1.96M | case 12: { |
2686 | 1.96M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2687 | 1.96M | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
2688 | 1.96M | set_has_query_id(); |
2689 | 1.96M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2690 | 1.96M | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
2691 | 1.96M | input, &query_id_))); |
2692 | 18.4E | } else { |
2693 | 18.4E | goto handle_unusual; |
2694 | 18.4E | } |
2695 | 1.96M | break; |
2696 | 1.96M | } |
2697 | | |
2698 | | // optional uint64 user_timestamp_usec = 13; |
2699 | 39 | case 13: { |
2700 | 39 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2701 | 39 | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
2702 | 39 | set_has_user_timestamp_usec(); |
2703 | 39 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2704 | 39 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2705 | 39 | input, &user_timestamp_usec_))); |
2706 | 0 | } else { |
2707 | 0 | goto handle_unusual; |
2708 | 0 | } |
2709 | 39 | break; |
2710 | 39 | } |
2711 | | |
2712 | | // optional .yb.QLExpressionPB where_expr = 14; |
2713 | 5 | case 14: { |
2714 | 5 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2715 | 5 | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
2716 | 5 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2717 | 5 | input, mutable_where_expr())); |
2718 | 0 | } else { |
2719 | 0 | goto handle_unusual; |
2720 | 0 | } |
2721 | 5 | break; |
2722 | 5 | } |
2723 | | |
2724 | | // repeated bytes update_index_ids = 15; |
2725 | 30.6k | case 15: { |
2726 | 30.6k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2727 | 30.6k | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
2728 | 30.6k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2729 | 30.6k | input, this->add_update_index_ids())); |
2730 | 18.4E | } else { |
2731 | 18.4E | goto handle_unusual; |
2732 | 18.4E | } |
2733 | 30.6k | break; |
2734 | 30.6k | } |
2735 | | |
2736 | | // optional .yb.ChildTransactionDataPB child_transaction_data = 16; |
2737 | 26.1k | case 16: { |
2738 | 26.1k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2739 | 26.1k | static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { |
2740 | 26.1k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2741 | 26.1k | input, mutable_child_transaction_data())); |
2742 | 0 | } else { |
2743 | 0 | goto handle_unusual; |
2744 | 0 | } |
2745 | 26.1k | break; |
2746 | 26.1k | } |
2747 | | |
2748 | | // optional bool else_error = 17 [default = false]; |
2749 | 86 | case 17: { |
2750 | 86 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2751 | 86 | static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { |
2752 | 86 | set_has_else_error(); |
2753 | 86 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2754 | 86 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2755 | 86 | input, &else_error_))); |
2756 | 0 | } else { |
2757 | 0 | goto handle_unusual; |
2758 | 0 | } |
2759 | 86 | break; |
2760 | 86 | } |
2761 | | |
2762 | | // optional bool returns_status = 18 [default = false]; |
2763 | 162 | case 18: { |
2764 | 162 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2765 | 162 | static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { |
2766 | 162 | set_has_returns_status(); |
2767 | 162 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2768 | 162 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2769 | 162 | input, &returns_status_))); |
2770 | 0 | } else { |
2771 | 0 | goto handle_unusual; |
2772 | 0 | } |
2773 | 162 | break; |
2774 | 162 | } |
2775 | | |
2776 | | // optional bool is_backfill = 19 [default = false]; |
2777 | 7.12k | case 19: { |
2778 | 7.12k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2779 | 7.12k | static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { |
2780 | 7.12k | set_has_is_backfill(); |
2781 | 7.12k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2782 | 7.12k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2783 | 7.12k | input, &is_backfill_))); |
2784 | 0 | } else { |
2785 | 0 | goto handle_unusual; |
2786 | 0 | } |
2787 | 7.12k | break; |
2788 | 7.12k | } |
2789 | | |
2790 | | // optional bool is_compatible_with_previous_version = 20 [default = false]; |
2791 | 1.96M | case 20: { |
2792 | 1.96M | if (static_cast< ::google::protobuf::uint8>(tag) == |
2793 | 1.96M | static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { |
2794 | 1.96M | set_has_is_compatible_with_previous_version(); |
2795 | 1.96M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2796 | 1.96M | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2797 | 1.96M | input, &is_compatible_with_previous_version_))); |
2798 | 18.4E | } else { |
2799 | 18.4E | goto handle_unusual; |
2800 | 18.4E | } |
2801 | 1.96M | break; |
2802 | 2.06M | } |
2803 | | |
2804 | 0 | default: { |
2805 | 2.06M | handle_unusual: |
2806 | 2.06M | if (tag == 0) { |
2807 | 2.06M | goto success; |
2808 | 2.06M | } |
2809 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2810 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2811 | 18.4E | break; |
2812 | 18.4E | } |
2813 | 20.3M | } |
2814 | 20.3M | } |
2815 | 2.06M | success: |
2816 | | // @@protoc_insertion_point(parse_success:yb.QLWriteRequestPB) |
2817 | 2.06M | return true; |
2818 | 0 | failure: |
2819 | | // @@protoc_insertion_point(parse_failure:yb.QLWriteRequestPB) |
2820 | 0 | return false; |
2821 | 2.06M | #undef DO_ |
2822 | 2.06M | } |
2823 | | |
2824 | | void QLWriteRequestPB::SerializeWithCachedSizes( |
2825 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2826 | | // @@protoc_insertion_point(serialize_start:yb.QLWriteRequestPB) |
2827 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2828 | 0 | (void) cached_has_bits; |
2829 | |
|
2830 | 0 | cached_has_bits = _has_bits_[0]; |
2831 | | // optional .yb.QLWriteRequestPB.QLStmtType type = 1; |
2832 | 0 | if (cached_has_bits & 0x00004000u) { |
2833 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2834 | 0 | 1, this->type(), output); |
2835 | 0 | } |
2836 | | |
2837 | | // optional .yb.QLClient client = 2; |
2838 | 0 | if (cached_has_bits & 0x00008000u) { |
2839 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2840 | 0 | 2, this->client(), output); |
2841 | 0 | } |
2842 | | |
2843 | | // optional uint64 request_id = 3; |
2844 | 0 | if (cached_has_bits & 0x00000010u) { |
2845 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->request_id(), output); |
2846 | 0 | } |
2847 | | |
2848 | | // optional uint32 schema_version = 4; |
2849 | 0 | if (cached_has_bits & 0x00000020u) { |
2850 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->schema_version(), output); |
2851 | 0 | } |
2852 | | |
2853 | | // optional uint32 hash_code = 5; |
2854 | 0 | if (cached_has_bits & 0x00000040u) { |
2855 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->hash_code(), output); |
2856 | 0 | } |
2857 | | |
2858 | | // repeated .yb.QLExpressionPB hashed_column_values = 6; |
2859 | 0 | for (unsigned int i = 0, |
2860 | 0 | n = static_cast<unsigned int>(this->hashed_column_values_size()); i < n; i++) { |
2861 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2862 | 0 | 6, this->hashed_column_values(static_cast<int>(i)), output); |
2863 | 0 | } |
2864 | | |
2865 | | // repeated .yb.QLExpressionPB range_column_values = 7; |
2866 | 0 | for (unsigned int i = 0, |
2867 | 0 | n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) { |
2868 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2869 | 0 | 7, this->range_column_values(static_cast<int>(i)), output); |
2870 | 0 | } |
2871 | | |
2872 | | // repeated .yb.QLColumnValuePB column_values = 8; |
2873 | 0 | for (unsigned int i = 0, |
2874 | 0 | n = static_cast<unsigned int>(this->column_values_size()); i < n; i++) { |
2875 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2876 | 0 | 8, this->column_values(static_cast<int>(i)), output); |
2877 | 0 | } |
2878 | | |
2879 | | // optional .yb.QLExpressionPB if_expr = 9; |
2880 | 0 | if (cached_has_bits & 0x00000001u) { |
2881 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2882 | 0 | 9, *this->if_expr_, output); |
2883 | 0 | } |
2884 | | |
2885 | | // optional uint64 ttl = 10; |
2886 | 0 | if (cached_has_bits & 0x00000080u) { |
2887 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->ttl(), output); |
2888 | 0 | } |
2889 | | |
2890 | | // optional .yb.QLReferencedColumnsPB column_refs = 11; |
2891 | 0 | if (cached_has_bits & 0x00000002u) { |
2892 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2893 | 0 | 11, *this->column_refs_, output); |
2894 | 0 | } |
2895 | | |
2896 | | // optional int64 query_id = 12; |
2897 | 0 | if (cached_has_bits & 0x00000100u) { |
2898 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->query_id(), output); |
2899 | 0 | } |
2900 | | |
2901 | | // optional uint64 user_timestamp_usec = 13; |
2902 | 0 | if (cached_has_bits & 0x00000200u) { |
2903 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->user_timestamp_usec(), output); |
2904 | 0 | } |
2905 | | |
2906 | | // optional .yb.QLExpressionPB where_expr = 14; |
2907 | 0 | if (cached_has_bits & 0x00000004u) { |
2908 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2909 | 0 | 14, *this->where_expr_, output); |
2910 | 0 | } |
2911 | | |
2912 | | // repeated bytes update_index_ids = 15; |
2913 | 0 | for (int i = 0, n = this->update_index_ids_size(); i < n; i++) { |
2914 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
2915 | 0 | 15, this->update_index_ids(i), output); |
2916 | 0 | } |
2917 | | |
2918 | | // optional .yb.ChildTransactionDataPB child_transaction_data = 16; |
2919 | 0 | if (cached_has_bits & 0x00000008u) { |
2920 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2921 | 0 | 16, *this->child_transaction_data_, output); |
2922 | 0 | } |
2923 | | |
2924 | | // optional bool else_error = 17 [default = false]; |
2925 | 0 | if (cached_has_bits & 0x00000400u) { |
2926 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->else_error(), output); |
2927 | 0 | } |
2928 | | |
2929 | | // optional bool returns_status = 18 [default = false]; |
2930 | 0 | if (cached_has_bits & 0x00000800u) { |
2931 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->returns_status(), output); |
2932 | 0 | } |
2933 | | |
2934 | | // optional bool is_backfill = 19 [default = false]; |
2935 | 0 | if (cached_has_bits & 0x00001000u) { |
2936 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->is_backfill(), output); |
2937 | 0 | } |
2938 | | |
2939 | | // optional bool is_compatible_with_previous_version = 20 [default = false]; |
2940 | 0 | if (cached_has_bits & 0x00002000u) { |
2941 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->is_compatible_with_previous_version(), output); |
2942 | 0 | } |
2943 | |
|
2944 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2945 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2946 | 0 | _internal_metadata_.unknown_fields(), output); |
2947 | 0 | } |
2948 | | // @@protoc_insertion_point(serialize_end:yb.QLWriteRequestPB) |
2949 | 0 | } |
2950 | | |
2951 | | ::google::protobuf::uint8* QLWriteRequestPB::InternalSerializeWithCachedSizesToArray( |
2952 | 2.08M | bool deterministic, ::google::protobuf::uint8* target) const { |
2953 | 2.08M | (void)deterministic; // Unused |
2954 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLWriteRequestPB) |
2955 | 2.08M | ::google::protobuf::uint32 cached_has_bits = 0; |
2956 | 2.08M | (void) cached_has_bits; |
2957 | | |
2958 | 2.08M | cached_has_bits = _has_bits_[0]; |
2959 | | // optional .yb.QLWriteRequestPB.QLStmtType type = 1; |
2960 | 2.08M | if (cached_has_bits & 0x00004000u) { |
2961 | 2.08M | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2962 | 2.08M | 1, this->type(), target); |
2963 | 2.08M | } |
2964 | | |
2965 | | // optional .yb.QLClient client = 2; |
2966 | 2.08M | if (cached_has_bits & 0x00008000u) { |
2967 | 1.96M | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2968 | 1.96M | 2, this->client(), target); |
2969 | 1.96M | } |
2970 | | |
2971 | | // optional uint64 request_id = 3; |
2972 | 2.08M | if (cached_has_bits & 0x00000010u) { |
2973 | 1.96M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->request_id(), target); |
2974 | 1.96M | } |
2975 | | |
2976 | | // optional uint32 schema_version = 4; |
2977 | 2.08M | if (cached_has_bits & 0x00000020u) { |
2978 | 2.04M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->schema_version(), target); |
2979 | 2.04M | } |
2980 | | |
2981 | | // optional uint32 hash_code = 5; |
2982 | 2.08M | if (cached_has_bits & 0x00000040u) { |
2983 | 2.08M | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->hash_code(), target); |
2984 | 2.08M | } |
2985 | | |
2986 | | // repeated .yb.QLExpressionPB hashed_column_values = 6; |
2987 | 2.08M | for (unsigned int i = 0, |
2988 | 4.20M | n = static_cast<unsigned int>(this->hashed_column_values_size()); i < n; i++) { |
2989 | 2.11M | target = ::google::protobuf::internal::WireFormatLite:: |
2990 | 2.11M | InternalWriteMessageToArray( |
2991 | 2.11M | 6, this->hashed_column_values(static_cast<int>(i)), deterministic, target); |
2992 | 2.11M | } |
2993 | | |
2994 | | // repeated .yb.QLExpressionPB range_column_values = 7; |
2995 | 2.08M | for (unsigned int i = 0, |
2996 | 2.35M | n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) { |
2997 | 277k | target = ::google::protobuf::internal::WireFormatLite:: |
2998 | 277k | InternalWriteMessageToArray( |
2999 | 277k | 7, this->range_column_values(static_cast<int>(i)), deterministic, target); |
3000 | 277k | } |
3001 | | |
3002 | | // repeated .yb.QLColumnValuePB column_values = 8; |
3003 | 2.08M | for (unsigned int i = 0, |
3004 | 5.83M | n = static_cast<unsigned int>(this->column_values_size()); i < n; i++) { |
3005 | 3.75M | target = ::google::protobuf::internal::WireFormatLite:: |
3006 | 3.75M | InternalWriteMessageToArray( |
3007 | 3.75M | 8, this->column_values(static_cast<int>(i)), deterministic, target); |
3008 | 3.75M | } |
3009 | | |
3010 | | // optional .yb.QLExpressionPB if_expr = 9; |
3011 | 2.08M | if (cached_has_bits & 0x00000001u) { |
3012 | 88 | target = ::google::protobuf::internal::WireFormatLite:: |
3013 | 88 | InternalWriteMessageToArray( |
3014 | 88 | 9, *this->if_expr_, deterministic, target); |
3015 | 88 | } |
3016 | | |
3017 | | // optional uint64 ttl = 10; |
3018 | 2.08M | if (cached_has_bits & 0x00000080u) { |
3019 | 64 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->ttl(), target); |
3020 | 64 | } |
3021 | | |
3022 | | // optional .yb.QLReferencedColumnsPB column_refs = 11; |
3023 | 2.08M | if (cached_has_bits & 0x00000002u) { |
3024 | 292k | target = ::google::protobuf::internal::WireFormatLite:: |
3025 | 292k | InternalWriteMessageToArray( |
3026 | 292k | 11, *this->column_refs_, deterministic, target); |
3027 | 292k | } |
3028 | | |
3029 | | // optional int64 query_id = 12; |
3030 | 2.08M | if (cached_has_bits & 0x00000100u) { |
3031 | 1.96M | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->query_id(), target); |
3032 | 1.96M | } |
3033 | | |
3034 | | // optional uint64 user_timestamp_usec = 13; |
3035 | 2.08M | if (cached_has_bits & 0x00000200u) { |
3036 | 39 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->user_timestamp_usec(), target); |
3037 | 39 | } |
3038 | | |
3039 | | // optional .yb.QLExpressionPB where_expr = 14; |
3040 | 2.08M | if (cached_has_bits & 0x00000004u) { |
3041 | 5 | target = ::google::protobuf::internal::WireFormatLite:: |
3042 | 5 | InternalWriteMessageToArray( |
3043 | 5 | 14, *this->where_expr_, deterministic, target); |
3044 | 5 | } |
3045 | | |
3046 | | // repeated bytes update_index_ids = 15; |
3047 | 2.11M | for (int i = 0, n = this->update_index_ids_size(); i < n; i++) { |
3048 | 30.2k | target = ::google::protobuf::internal::WireFormatLite:: |
3049 | 30.2k | WriteBytesToArray(15, this->update_index_ids(i), target); |
3050 | 30.2k | } |
3051 | | |
3052 | | // optional .yb.ChildTransactionDataPB child_transaction_data = 16; |
3053 | 2.08M | if (cached_has_bits & 0x00000008u) { |
3054 | 25.7k | target = ::google::protobuf::internal::WireFormatLite:: |
3055 | 25.7k | InternalWriteMessageToArray( |
3056 | 25.7k | 16, *this->child_transaction_data_, deterministic, target); |
3057 | 25.7k | } |
3058 | | |
3059 | | // optional bool else_error = 17 [default = false]; |
3060 | 2.08M | if (cached_has_bits & 0x00000400u) { |
3061 | 86 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->else_error(), target); |
3062 | 86 | } |
3063 | | |
3064 | | // optional bool returns_status = 18 [default = false]; |
3065 | 2.08M | if (cached_has_bits & 0x00000800u) { |
3066 | 162 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->returns_status(), target); |
3067 | 162 | } |
3068 | | |
3069 | | // optional bool is_backfill = 19 [default = false]; |
3070 | 2.08M | if (cached_has_bits & 0x00001000u) { |
3071 | 7.13k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->is_backfill(), target); |
3072 | 7.13k | } |
3073 | | |
3074 | | // optional bool is_compatible_with_previous_version = 20 [default = false]; |
3075 | 2.08M | if (cached_has_bits & 0x00002000u) { |
3076 | 1.96M | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->is_compatible_with_previous_version(), target); |
3077 | 1.96M | } |
3078 | | |
3079 | 2.08M | if (_internal_metadata_.have_unknown_fields()) { |
3080 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3081 | 0 | _internal_metadata_.unknown_fields(), target); |
3082 | 0 | } |
3083 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLWriteRequestPB) |
3084 | 2.08M | return target; |
3085 | 2.08M | } |
3086 | | |
3087 | 4.16M | size_t QLWriteRequestPB::ByteSizeLong() const { |
3088 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLWriteRequestPB) |
3089 | 4.16M | size_t total_size = 0; |
3090 | | |
3091 | 4.16M | if (_internal_metadata_.have_unknown_fields()) { |
3092 | 0 | total_size += |
3093 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3094 | 0 | _internal_metadata_.unknown_fields()); |
3095 | 0 | } |
3096 | | // repeated .yb.QLExpressionPB hashed_column_values = 6; |
3097 | 4.16M | { |
3098 | 4.16M | unsigned int count = static_cast<unsigned int>(this->hashed_column_values_size()); |
3099 | 4.16M | total_size += 1UL * count; |
3100 | 8.40M | for (unsigned int i = 0; i < count; i++) { |
3101 | 4.23M | total_size += |
3102 | 4.23M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3103 | 4.23M | this->hashed_column_values(static_cast<int>(i))); |
3104 | 4.23M | } |
3105 | 4.16M | } |
3106 | | |
3107 | | // repeated .yb.QLExpressionPB range_column_values = 7; |
3108 | 4.16M | { |
3109 | 4.16M | unsigned int count = static_cast<unsigned int>(this->range_column_values_size()); |
3110 | 4.16M | total_size += 1UL * count; |
3111 | 4.71M | for (unsigned int i = 0; i < count; i++) { |
3112 | 555k | total_size += |
3113 | 555k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3114 | 555k | this->range_column_values(static_cast<int>(i))); |
3115 | 555k | } |
3116 | 4.16M | } |
3117 | | |
3118 | | // repeated .yb.QLColumnValuePB column_values = 8; |
3119 | 4.16M | { |
3120 | 4.16M | unsigned int count = static_cast<unsigned int>(this->column_values_size()); |
3121 | 4.16M | total_size += 1UL * count; |
3122 | 11.6M | for (unsigned int i = 0; i < count; i++) { |
3123 | 7.50M | total_size += |
3124 | 7.50M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3125 | 7.50M | this->column_values(static_cast<int>(i))); |
3126 | 7.50M | } |
3127 | 4.16M | } |
3128 | | |
3129 | | // repeated bytes update_index_ids = 15; |
3130 | 4.16M | total_size += 1 * |
3131 | 4.16M | ::google::protobuf::internal::FromIntSize(this->update_index_ids_size()); |
3132 | 4.22M | for (int i = 0, n = this->update_index_ids_size(); i < n; i++) { |
3133 | 60.8k | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
3134 | 60.8k | this->update_index_ids(i)); |
3135 | 60.8k | } |
3136 | | |
3137 | 4.16M | if (_has_bits_[0 / 32] & 255u) { |
3138 | | // optional .yb.QLExpressionPB if_expr = 9; |
3139 | 4.16M | if (has_if_expr()) { |
3140 | 176 | total_size += 1 + |
3141 | 176 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3142 | 176 | *this->if_expr_); |
3143 | 176 | } |
3144 | | |
3145 | | // optional .yb.QLReferencedColumnsPB column_refs = 11; |
3146 | 4.16M | if (has_column_refs()) { |
3147 | 583k | total_size += 1 + |
3148 | 583k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3149 | 583k | *this->column_refs_); |
3150 | 583k | } |
3151 | | |
3152 | | // optional .yb.QLExpressionPB where_expr = 14; |
3153 | 4.16M | if (has_where_expr()) { |
3154 | 10 | total_size += 1 + |
3155 | 10 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3156 | 10 | *this->where_expr_); |
3157 | 10 | } |
3158 | | |
3159 | | // optional .yb.ChildTransactionDataPB child_transaction_data = 16; |
3160 | 4.16M | if (has_child_transaction_data()) { |
3161 | 51.6k | total_size += 2 + |
3162 | 51.6k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3163 | 51.6k | *this->child_transaction_data_); |
3164 | 51.6k | } |
3165 | | |
3166 | | // optional uint64 request_id = 3; |
3167 | 4.16M | if (has_request_id()) { |
3168 | 3.93M | total_size += 1 + |
3169 | 3.93M | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3170 | 3.93M | this->request_id()); |
3171 | 3.93M | } |
3172 | | |
3173 | | // optional uint32 schema_version = 4; |
3174 | 4.16M | if (has_schema_version()) { |
3175 | 4.08M | total_size += 1 + |
3176 | 4.08M | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3177 | 4.08M | this->schema_version()); |
3178 | 4.08M | } |
3179 | | |
3180 | | // optional uint32 hash_code = 5; |
3181 | 4.16M | if (has_hash_code()) { |
3182 | 4.16M | total_size += 1 + |
3183 | 4.16M | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3184 | 4.16M | this->hash_code()); |
3185 | 4.16M | } |
3186 | | |
3187 | | // optional uint64 ttl = 10; |
3188 | 4.16M | if (has_ttl()) { |
3189 | 128 | total_size += 1 + |
3190 | 128 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3191 | 128 | this->ttl()); |
3192 | 128 | } |
3193 | | |
3194 | 4.16M | } |
3195 | 4.16M | if (_has_bits_[8 / 32] & 65280u) { |
3196 | | // optional int64 query_id = 12; |
3197 | 4.16M | if (has_query_id()) { |
3198 | 3.93M | total_size += 1 + |
3199 | 3.93M | ::google::protobuf::internal::WireFormatLite::Int64Size( |
3200 | 3.93M | this->query_id()); |
3201 | 3.93M | } |
3202 | | |
3203 | | // optional uint64 user_timestamp_usec = 13; |
3204 | 4.16M | if (has_user_timestamp_usec()) { |
3205 | 78 | total_size += 1 + |
3206 | 78 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3207 | 78 | this->user_timestamp_usec()); |
3208 | 78 | } |
3209 | | |
3210 | | // optional bool else_error = 17 [default = false]; |
3211 | 4.16M | if (has_else_error()) { |
3212 | 172 | total_size += 2 + 1; |
3213 | 172 | } |
3214 | | |
3215 | | // optional bool returns_status = 18 [default = false]; |
3216 | 4.16M | if (has_returns_status()) { |
3217 | 324 | total_size += 2 + 1; |
3218 | 324 | } |
3219 | | |
3220 | | // optional bool is_backfill = 19 [default = false]; |
3221 | 4.16M | if (has_is_backfill()) { |
3222 | 14.2k | total_size += 2 + 1; |
3223 | 14.2k | } |
3224 | | |
3225 | | // optional bool is_compatible_with_previous_version = 20 [default = false]; |
3226 | 4.16M | if (has_is_compatible_with_previous_version()) { |
3227 | 3.93M | total_size += 2 + 1; |
3228 | 3.93M | } |
3229 | | |
3230 | | // optional .yb.QLWriteRequestPB.QLStmtType type = 1; |
3231 | 4.16M | if (has_type()) { |
3232 | 4.16M | total_size += 1 + |
3233 | 4.16M | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
3234 | 4.16M | } |
3235 | | |
3236 | | // optional .yb.QLClient client = 2; |
3237 | 4.16M | if (has_client()) { |
3238 | 3.93M | total_size += 1 + |
3239 | 3.93M | ::google::protobuf::internal::WireFormatLite::EnumSize(this->client()); |
3240 | 3.93M | } |
3241 | | |
3242 | 4.16M | } |
3243 | 4.16M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3244 | 4.16M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3245 | 4.16M | _cached_size_ = cached_size; |
3246 | 4.16M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3247 | 4.16M | return total_size; |
3248 | 4.16M | } |
3249 | | |
3250 | 0 | void QLWriteRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3251 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLWriteRequestPB) |
3252 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3253 | 0 | const QLWriteRequestPB* source = |
3254 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLWriteRequestPB>( |
3255 | 0 | &from); |
3256 | 0 | if (source == NULL) { |
3257 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLWriteRequestPB) |
3258 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3259 | 0 | } else { |
3260 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLWriteRequestPB) |
3261 | 0 | MergeFrom(*source); |
3262 | 0 | } |
3263 | 0 | } |
3264 | | |
3265 | 38.4k | void QLWriteRequestPB::MergeFrom(const QLWriteRequestPB& from) { |
3266 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLWriteRequestPB) |
3267 | 38.4k | GOOGLE_DCHECK_NE(&from, this); |
3268 | 38.4k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3269 | 38.4k | ::google::protobuf::uint32 cached_has_bits = 0; |
3270 | 38.4k | (void) cached_has_bits; |
3271 | | |
3272 | 38.4k | hashed_column_values_.MergeFrom(from.hashed_column_values_); |
3273 | 38.4k | range_column_values_.MergeFrom(from.range_column_values_); |
3274 | 38.4k | column_values_.MergeFrom(from.column_values_); |
3275 | 38.4k | update_index_ids_.MergeFrom(from.update_index_ids_); |
3276 | 38.4k | cached_has_bits = from._has_bits_[0]; |
3277 | 38.4k | if (cached_has_bits & 255u) { |
3278 | 0 | if (cached_has_bits & 0x00000001u) { |
3279 | 0 | mutable_if_expr()->::yb::QLExpressionPB::MergeFrom(from.if_expr()); |
3280 | 0 | } |
3281 | 0 | if (cached_has_bits & 0x00000002u) { |
3282 | 0 | mutable_column_refs()->::yb::QLReferencedColumnsPB::MergeFrom(from.column_refs()); |
3283 | 0 | } |
3284 | 0 | if (cached_has_bits & 0x00000004u) { |
3285 | 0 | mutable_where_expr()->::yb::QLExpressionPB::MergeFrom(from.where_expr()); |
3286 | 0 | } |
3287 | 0 | if (cached_has_bits & 0x00000008u) { |
3288 | 0 | mutable_child_transaction_data()->::yb::ChildTransactionDataPB::MergeFrom(from.child_transaction_data()); |
3289 | 0 | } |
3290 | 0 | if (cached_has_bits & 0x00000010u) { |
3291 | 0 | request_id_ = from.request_id_; |
3292 | 0 | } |
3293 | 0 | if (cached_has_bits & 0x00000020u) { |
3294 | 0 | schema_version_ = from.schema_version_; |
3295 | 0 | } |
3296 | 0 | if (cached_has_bits & 0x00000040u) { |
3297 | 0 | hash_code_ = from.hash_code_; |
3298 | 0 | } |
3299 | 0 | if (cached_has_bits & 0x00000080u) { |
3300 | 0 | ttl_ = from.ttl_; |
3301 | 0 | } |
3302 | 0 | _has_bits_[0] |= cached_has_bits; |
3303 | 0 | } |
3304 | 38.4k | if (cached_has_bits & 65280u) { |
3305 | 0 | if (cached_has_bits & 0x00000100u) { |
3306 | 0 | query_id_ = from.query_id_; |
3307 | 0 | } |
3308 | 0 | if (cached_has_bits & 0x00000200u) { |
3309 | 0 | user_timestamp_usec_ = from.user_timestamp_usec_; |
3310 | 0 | } |
3311 | 0 | if (cached_has_bits & 0x00000400u) { |
3312 | 0 | else_error_ = from.else_error_; |
3313 | 0 | } |
3314 | 0 | if (cached_has_bits & 0x00000800u) { |
3315 | 0 | returns_status_ = from.returns_status_; |
3316 | 0 | } |
3317 | 0 | if (cached_has_bits & 0x00001000u) { |
3318 | 0 | is_backfill_ = from.is_backfill_; |
3319 | 0 | } |
3320 | 0 | if (cached_has_bits & 0x00002000u) { |
3321 | 0 | is_compatible_with_previous_version_ = from.is_compatible_with_previous_version_; |
3322 | 0 | } |
3323 | 0 | if (cached_has_bits & 0x00004000u) { |
3324 | 0 | type_ = from.type_; |
3325 | 0 | } |
3326 | 0 | if (cached_has_bits & 0x00008000u) { |
3327 | 0 | client_ = from.client_; |
3328 | 0 | } |
3329 | 0 | _has_bits_[0] |= cached_has_bits; |
3330 | 0 | } |
3331 | 38.4k | } |
3332 | | |
3333 | 0 | void QLWriteRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3334 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLWriteRequestPB) |
3335 | 0 | if (&from == this) return; |
3336 | 0 | Clear(); |
3337 | 0 | MergeFrom(from); |
3338 | 0 | } |
3339 | | |
3340 | 0 | void QLWriteRequestPB::CopyFrom(const QLWriteRequestPB& from) { |
3341 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLWriteRequestPB) |
3342 | 0 | if (&from == this) return; |
3343 | 0 | Clear(); |
3344 | 0 | MergeFrom(from); |
3345 | 0 | } |
3346 | | |
3347 | 4.14M | bool QLWriteRequestPB::IsInitialized() const { |
3348 | 4.14M | if (!::google::protobuf::internal::AllAreInitialized(this->hashed_column_values())) return false; |
3349 | 4.14M | if (!::google::protobuf::internal::AllAreInitialized(this->range_column_values())) return false; |
3350 | 4.14M | if (!::google::protobuf::internal::AllAreInitialized(this->column_values())) return false; |
3351 | 4.14M | if (has_if_expr()) { |
3352 | 176 | if (!this->if_expr_->IsInitialized()) return false; |
3353 | 4.14M | } |
3354 | 4.14M | if (has_where_expr()) { |
3355 | 10 | if (!this->where_expr_->IsInitialized()) return false; |
3356 | 4.14M | } |
3357 | 4.14M | return true; |
3358 | 4.14M | } |
3359 | | |
3360 | 143k | void QLWriteRequestPB::Swap(QLWriteRequestPB* other) { |
3361 | 143k | if (other == this) return; |
3362 | 143k | InternalSwap(other); |
3363 | 143k | } |
3364 | 193k | void QLWriteRequestPB::InternalSwap(QLWriteRequestPB* other) { |
3365 | 193k | using std::swap; |
3366 | 193k | hashed_column_values_.InternalSwap(&other->hashed_column_values_); |
3367 | 193k | range_column_values_.InternalSwap(&other->range_column_values_); |
3368 | 193k | column_values_.InternalSwap(&other->column_values_); |
3369 | 193k | update_index_ids_.InternalSwap(&other->update_index_ids_); |
3370 | 193k | swap(if_expr_, other->if_expr_); |
3371 | 193k | swap(column_refs_, other->column_refs_); |
3372 | 193k | swap(where_expr_, other->where_expr_); |
3373 | 193k | swap(child_transaction_data_, other->child_transaction_data_); |
3374 | 193k | swap(request_id_, other->request_id_); |
3375 | 193k | swap(schema_version_, other->schema_version_); |
3376 | 193k | swap(hash_code_, other->hash_code_); |
3377 | 193k | swap(ttl_, other->ttl_); |
3378 | 193k | swap(query_id_, other->query_id_); |
3379 | 193k | swap(user_timestamp_usec_, other->user_timestamp_usec_); |
3380 | 193k | swap(else_error_, other->else_error_); |
3381 | 193k | swap(returns_status_, other->returns_status_); |
3382 | 193k | swap(is_backfill_, other->is_backfill_); |
3383 | 193k | swap(is_compatible_with_previous_version_, other->is_compatible_with_previous_version_); |
3384 | 193k | swap(type_, other->type_); |
3385 | 193k | swap(client_, other->client_); |
3386 | 193k | swap(_has_bits_[0], other->_has_bits_[0]); |
3387 | 193k | _internal_metadata_.Swap(&other->_internal_metadata_); |
3388 | 193k | swap(_cached_size_, other->_cached_size_); |
3389 | 193k | } |
3390 | | |
3391 | 2.06M | ::google::protobuf::Metadata QLWriteRequestPB::GetMetadata() const { |
3392 | 2.06M | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3393 | 2.06M | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
3394 | 2.06M | } |
3395 | | |
3396 | | |
3397 | | // =================================================================== |
3398 | | |
3399 | 17.1k | void QLRSColDescPB::InitAsDefaultInstance() { |
3400 | 17.1k | ::yb::_QLRSColDescPB_default_instance_._instance.get_mutable()->ql_type_ = const_cast< ::yb::QLTypePB*>( |
3401 | 17.1k | ::yb::QLTypePB::internal_default_instance()); |
3402 | 17.1k | } |
3403 | 0 | void QLRSColDescPB::clear_ql_type() { |
3404 | 0 | if (ql_type_ != NULL) ql_type_->Clear(); |
3405 | 0 | clear_has_ql_type(); |
3406 | 0 | } |
3407 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3408 | | const int QLRSColDescPB::kNameFieldNumber; |
3409 | | const int QLRSColDescPB::kQlTypeFieldNumber; |
3410 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3411 | | |
3412 | | QLRSColDescPB::QLRSColDescPB() |
3413 | 15.2M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3414 | 15.2M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3415 | 15.2M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSColDescPB(); |
3416 | 15.2M | } |
3417 | 15.2M | SharedCtor(); |
3418 | | // @@protoc_insertion_point(constructor:yb.QLRSColDescPB) |
3419 | 15.2M | } |
3420 | | QLRSColDescPB::QLRSColDescPB(const QLRSColDescPB& from) |
3421 | | : ::google::protobuf::Message(), |
3422 | | _internal_metadata_(NULL), |
3423 | | _has_bits_(from._has_bits_), |
3424 | 0 | _cached_size_(0) { |
3425 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3426 | 0 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3427 | 0 | if (from.has_name()) { |
3428 | 0 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
3429 | 0 | } |
3430 | 0 | if (from.has_ql_type()) { |
3431 | 0 | ql_type_ = new ::yb::QLTypePB(*from.ql_type_); |
3432 | 0 | } else { |
3433 | 0 | ql_type_ = NULL; |
3434 | 0 | } |
3435 | | // @@protoc_insertion_point(copy_constructor:yb.QLRSColDescPB) |
3436 | 0 | } |
3437 | | |
3438 | 15.2M | void QLRSColDescPB::SharedCtor() { |
3439 | 15.2M | _cached_size_ = 0; |
3440 | 15.2M | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3441 | 15.2M | ql_type_ = NULL; |
3442 | 15.2M | } |
3443 | | |
3444 | 15.3M | QLRSColDescPB::~QLRSColDescPB() { |
3445 | | // @@protoc_insertion_point(destructor:yb.QLRSColDescPB) |
3446 | 15.3M | SharedDtor(); |
3447 | 15.3M | } |
3448 | | |
3449 | 15.3M | void QLRSColDescPB::SharedDtor() { |
3450 | 15.3M | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3451 | 15.3M | if (this != internal_default_instance()) delete ql_type_; |
3452 | 15.3M | } |
3453 | | |
3454 | 0 | void QLRSColDescPB::SetCachedSize(int size) const { |
3455 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3456 | 0 | _cached_size_ = size; |
3457 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3458 | 0 | } |
3459 | 0 | const ::google::protobuf::Descriptor* QLRSColDescPB::descriptor() { |
3460 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3461 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3462 | 0 | } |
3463 | | |
3464 | 0 | const QLRSColDescPB& QLRSColDescPB::default_instance() { |
3465 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSColDescPB(); |
3466 | 0 | return *internal_default_instance(); |
3467 | 0 | } |
3468 | | |
3469 | 0 | QLRSColDescPB* QLRSColDescPB::New(::google::protobuf::Arena* arena) const { |
3470 | 0 | QLRSColDescPB* n = new QLRSColDescPB; |
3471 | 0 | if (arena != NULL) { |
3472 | 0 | arena->Own(n); |
3473 | 0 | } |
3474 | 0 | return n; |
3475 | 0 | } |
3476 | | |
3477 | 0 | void QLRSColDescPB::Clear() { |
3478 | | // @@protoc_insertion_point(message_clear_start:yb.QLRSColDescPB) |
3479 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3480 | | // Prevent compiler warnings about cached_has_bits being unused |
3481 | 0 | (void) cached_has_bits; |
3482 | |
|
3483 | 0 | cached_has_bits = _has_bits_[0]; |
3484 | 0 | if (cached_has_bits & 3u) { |
3485 | 0 | if (cached_has_bits & 0x00000001u) { |
3486 | 0 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
3487 | 0 | (*name_.UnsafeRawStringPointer())->clear(); |
3488 | 0 | } |
3489 | 0 | if (cached_has_bits & 0x00000002u) { |
3490 | 0 | GOOGLE_DCHECK(ql_type_ != NULL); |
3491 | 0 | ql_type_->Clear(); |
3492 | 0 | } |
3493 | 0 | } |
3494 | 0 | _has_bits_.Clear(); |
3495 | 0 | _internal_metadata_.Clear(); |
3496 | 0 | } |
3497 | | |
3498 | | bool QLRSColDescPB::MergePartialFromCodedStream( |
3499 | 2.32M | ::google::protobuf::io::CodedInputStream* input) { |
3500 | 4.65M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3501 | 2.32M | ::google::protobuf::uint32 tag; |
3502 | | // @@protoc_insertion_point(parse_start:yb.QLRSColDescPB) |
3503 | 6.95M | for (;;) { |
3504 | 6.95M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3505 | 6.95M | tag = p.first; |
3506 | 6.95M | if (!p.second) goto handle_unusual; |
3507 | 4.62M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3508 | | // optional string name = 1; |
3509 | 2.32M | case 1: { |
3510 | 2.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
3511 | 2.32M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3512 | 2.32M | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3513 | 2.32M | input, this->mutable_name())); |
3514 | 2.32M | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3515 | 2.32M | this->name().data(), static_cast<int>(this->name().length()), |
3516 | 2.32M | ::google::protobuf::internal::WireFormat::PARSE, |
3517 | 2.32M | "yb.QLRSColDescPB.name"); |
3518 | 18.4E | } else { |
3519 | 18.4E | goto handle_unusual; |
3520 | 18.4E | } |
3521 | 2.32M | break; |
3522 | 2.32M | } |
3523 | | |
3524 | | // optional .yb.QLTypePB ql_type = 2; |
3525 | 2.32M | case 2: { |
3526 | 2.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
3527 | 2.32M | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3528 | 2.32M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3529 | 2.32M | input, mutable_ql_type())); |
3530 | 18.4E | } else { |
3531 | 18.4E | goto handle_unusual; |
3532 | 18.4E | } |
3533 | 2.32M | break; |
3534 | 2.33M | } |
3535 | | |
3536 | 0 | default: { |
3537 | 2.33M | handle_unusual: |
3538 | 2.33M | if (tag == 0) { |
3539 | 2.33M | goto success; |
3540 | 2.33M | } |
3541 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3542 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3543 | 18.4E | break; |
3544 | 18.4E | } |
3545 | 4.62M | } |
3546 | 4.62M | } |
3547 | 2.33M | success: |
3548 | | // @@protoc_insertion_point(parse_success:yb.QLRSColDescPB) |
3549 | 2.33M | return true; |
3550 | 0 | failure: |
3551 | | // @@protoc_insertion_point(parse_failure:yb.QLRSColDescPB) |
3552 | 0 | return false; |
3553 | 2.32M | #undef DO_ |
3554 | 2.32M | } |
3555 | | |
3556 | | void QLRSColDescPB::SerializeWithCachedSizes( |
3557 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3558 | | // @@protoc_insertion_point(serialize_start:yb.QLRSColDescPB) |
3559 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3560 | 0 | (void) cached_has_bits; |
3561 | |
|
3562 | 0 | cached_has_bits = _has_bits_[0]; |
3563 | | // optional string name = 1; |
3564 | 0 | if (cached_has_bits & 0x00000001u) { |
3565 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3566 | 0 | this->name().data(), static_cast<int>(this->name().length()), |
3567 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3568 | 0 | "yb.QLRSColDescPB.name"); |
3569 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3570 | 0 | 1, this->name(), output); |
3571 | 0 | } |
3572 | | |
3573 | | // optional .yb.QLTypePB ql_type = 2; |
3574 | 0 | if (cached_has_bits & 0x00000002u) { |
3575 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3576 | 0 | 2, *this->ql_type_, output); |
3577 | 0 | } |
3578 | |
|
3579 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3580 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3581 | 0 | _internal_metadata_.unknown_fields(), output); |
3582 | 0 | } |
3583 | | // @@protoc_insertion_point(serialize_end:yb.QLRSColDescPB) |
3584 | 0 | } |
3585 | | |
3586 | | ::google::protobuf::uint8* QLRSColDescPB::InternalSerializeWithCachedSizesToArray( |
3587 | 2.32M | bool deterministic, ::google::protobuf::uint8* target) const { |
3588 | 2.32M | (void)deterministic; // Unused |
3589 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLRSColDescPB) |
3590 | 2.32M | ::google::protobuf::uint32 cached_has_bits = 0; |
3591 | 2.32M | (void) cached_has_bits; |
3592 | | |
3593 | 2.32M | cached_has_bits = _has_bits_[0]; |
3594 | | // optional string name = 1; |
3595 | 2.32M | if (cached_has_bits & 0x00000001u) { |
3596 | 2.32M | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3597 | 2.32M | this->name().data(), static_cast<int>(this->name().length()), |
3598 | 2.32M | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3599 | 2.32M | "yb.QLRSColDescPB.name"); |
3600 | 2.32M | target = |
3601 | 2.32M | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3602 | 2.32M | 1, this->name(), target); |
3603 | 2.32M | } |
3604 | | |
3605 | | // optional .yb.QLTypePB ql_type = 2; |
3606 | 2.32M | if (cached_has_bits & 0x00000002u) { |
3607 | 2.32M | target = ::google::protobuf::internal::WireFormatLite:: |
3608 | 2.32M | InternalWriteMessageToArray( |
3609 | 2.32M | 2, *this->ql_type_, deterministic, target); |
3610 | 2.32M | } |
3611 | | |
3612 | 2.32M | if (_internal_metadata_.have_unknown_fields()) { |
3613 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3614 | 0 | _internal_metadata_.unknown_fields(), target); |
3615 | 0 | } |
3616 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLRSColDescPB) |
3617 | 2.32M | return target; |
3618 | 2.32M | } |
3619 | | |
3620 | 4.64M | size_t QLRSColDescPB::ByteSizeLong() const { |
3621 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLRSColDescPB) |
3622 | 4.64M | size_t total_size = 0; |
3623 | | |
3624 | 4.64M | if (_internal_metadata_.have_unknown_fields()) { |
3625 | 0 | total_size += |
3626 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3627 | 0 | _internal_metadata_.unknown_fields()); |
3628 | 0 | } |
3629 | 4.64M | if (_has_bits_[0 / 32] & 3u) { |
3630 | | // optional string name = 1; |
3631 | 4.63M | if (has_name()) { |
3632 | 4.63M | total_size += 1 + |
3633 | 4.63M | ::google::protobuf::internal::WireFormatLite::StringSize( |
3634 | 4.63M | this->name()); |
3635 | 4.63M | } |
3636 | | |
3637 | | // optional .yb.QLTypePB ql_type = 2; |
3638 | 4.63M | if (has_ql_type()) { |
3639 | 4.62M | total_size += 1 + |
3640 | 4.62M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3641 | 4.62M | *this->ql_type_); |
3642 | 4.62M | } |
3643 | | |
3644 | 4.63M | } |
3645 | 4.64M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3646 | 4.64M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3647 | 4.64M | _cached_size_ = cached_size; |
3648 | 4.64M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3649 | 4.64M | return total_size; |
3650 | 4.64M | } |
3651 | | |
3652 | 0 | void QLRSColDescPB::MergeFrom(const ::google::protobuf::Message& from) { |
3653 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLRSColDescPB) |
3654 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3655 | 0 | const QLRSColDescPB* source = |
3656 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLRSColDescPB>( |
3657 | 0 | &from); |
3658 | 0 | if (source == NULL) { |
3659 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLRSColDescPB) |
3660 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3661 | 0 | } else { |
3662 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLRSColDescPB) |
3663 | 0 | MergeFrom(*source); |
3664 | 0 | } |
3665 | 0 | } |
3666 | | |
3667 | 13.2k | void QLRSColDescPB::MergeFrom(const QLRSColDescPB& from) { |
3668 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLRSColDescPB) |
3669 | 13.2k | GOOGLE_DCHECK_NE(&from, this); |
3670 | 13.2k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3671 | 13.2k | ::google::protobuf::uint32 cached_has_bits = 0; |
3672 | 13.2k | (void) cached_has_bits; |
3673 | | |
3674 | 13.2k | cached_has_bits = from._has_bits_[0]; |
3675 | 13.2k | if (cached_has_bits & 3u) { |
3676 | 13.2k | if (cached_has_bits & 0x00000001u) { |
3677 | 13.2k | set_has_name(); |
3678 | 13.2k | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
3679 | 13.2k | } |
3680 | 13.2k | if (cached_has_bits & 0x00000002u) { |
3681 | 13.2k | mutable_ql_type()->::yb::QLTypePB::MergeFrom(from.ql_type()); |
3682 | 13.2k | } |
3683 | 13.2k | } |
3684 | 13.2k | } |
3685 | | |
3686 | 0 | void QLRSColDescPB::CopyFrom(const ::google::protobuf::Message& from) { |
3687 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLRSColDescPB) |
3688 | 0 | if (&from == this) return; |
3689 | 0 | Clear(); |
3690 | 0 | MergeFrom(from); |
3691 | 0 | } |
3692 | | |
3693 | 0 | void QLRSColDescPB::CopyFrom(const QLRSColDescPB& from) { |
3694 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLRSColDescPB) |
3695 | 0 | if (&from == this) return; |
3696 | 0 | Clear(); |
3697 | 0 | MergeFrom(from); |
3698 | 0 | } |
3699 | | |
3700 | 0 | bool QLRSColDescPB::IsInitialized() const { |
3701 | 0 | return true; |
3702 | 0 | } |
3703 | | |
3704 | 0 | void QLRSColDescPB::Swap(QLRSColDescPB* other) { |
3705 | 0 | if (other == this) return; |
3706 | 0 | InternalSwap(other); |
3707 | 0 | } |
3708 | 0 | void QLRSColDescPB::InternalSwap(QLRSColDescPB* other) { |
3709 | 0 | using std::swap; |
3710 | 0 | name_.Swap(&other->name_); |
3711 | 0 | swap(ql_type_, other->ql_type_); |
3712 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3713 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3714 | 0 | swap(_cached_size_, other->_cached_size_); |
3715 | 0 | } |
3716 | | |
3717 | 2.32M | ::google::protobuf::Metadata QLRSColDescPB::GetMetadata() const { |
3718 | 2.32M | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3719 | 2.32M | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
3720 | 2.32M | } |
3721 | | |
3722 | | |
3723 | | // =================================================================== |
3724 | | |
3725 | 17.1k | void QLRSRowDescPB::InitAsDefaultInstance() { |
3726 | 17.1k | } |
3727 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3728 | | const int QLRSRowDescPB::kRscolDescsFieldNumber; |
3729 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3730 | | |
3731 | | QLRSRowDescPB::QLRSRowDescPB() |
3732 | 4.23M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3733 | 4.21M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3734 | 4.21M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSRowDescPB(); |
3735 | 4.21M | } |
3736 | 4.23M | SharedCtor(); |
3737 | | // @@protoc_insertion_point(constructor:yb.QLRSRowDescPB) |
3738 | 4.23M | } |
3739 | | QLRSRowDescPB::QLRSRowDescPB(const QLRSRowDescPB& from) |
3740 | | : ::google::protobuf::Message(), |
3741 | | _internal_metadata_(NULL), |
3742 | | _has_bits_(from._has_bits_), |
3743 | | _cached_size_(0), |
3744 | 0 | rscol_descs_(from.rscol_descs_) { |
3745 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3746 | | // @@protoc_insertion_point(copy_constructor:yb.QLRSRowDescPB) |
3747 | 0 | } |
3748 | | |
3749 | 4.22M | void QLRSRowDescPB::SharedCtor() { |
3750 | 4.22M | _cached_size_ = 0; |
3751 | 4.22M | } |
3752 | | |
3753 | 4.23M | QLRSRowDescPB::~QLRSRowDescPB() { |
3754 | | // @@protoc_insertion_point(destructor:yb.QLRSRowDescPB) |
3755 | 4.23M | SharedDtor(); |
3756 | 4.23M | } |
3757 | | |
3758 | 4.23M | void QLRSRowDescPB::SharedDtor() { |
3759 | 4.23M | } |
3760 | | |
3761 | 0 | void QLRSRowDescPB::SetCachedSize(int size) const { |
3762 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3763 | 0 | _cached_size_ = size; |
3764 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3765 | 0 | } |
3766 | 0 | const ::google::protobuf::Descriptor* QLRSRowDescPB::descriptor() { |
3767 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3768 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3769 | 0 | } |
3770 | | |
3771 | 0 | const QLRSRowDescPB& QLRSRowDescPB::default_instance() { |
3772 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLRSRowDescPB(); |
3773 | 0 | return *internal_default_instance(); |
3774 | 0 | } |
3775 | | |
3776 | 0 | QLRSRowDescPB* QLRSRowDescPB::New(::google::protobuf::Arena* arena) const { |
3777 | 0 | QLRSRowDescPB* n = new QLRSRowDescPB; |
3778 | 0 | if (arena != NULL) { |
3779 | 0 | arena->Own(n); |
3780 | 0 | } |
3781 | 0 | return n; |
3782 | 0 | } |
3783 | | |
3784 | 1.01k | void QLRSRowDescPB::Clear() { |
3785 | | // @@protoc_insertion_point(message_clear_start:yb.QLRSRowDescPB) |
3786 | 1.01k | ::google::protobuf::uint32 cached_has_bits = 0; |
3787 | | // Prevent compiler warnings about cached_has_bits being unused |
3788 | 1.01k | (void) cached_has_bits; |
3789 | | |
3790 | 1.01k | rscol_descs_.Clear(); |
3791 | 1.01k | _has_bits_.Clear(); |
3792 | 1.01k | _internal_metadata_.Clear(); |
3793 | 1.01k | } |
3794 | | |
3795 | | bool QLRSRowDescPB::MergePartialFromCodedStream( |
3796 | 337k | ::google::protobuf::io::CodedInputStream* input) { |
3797 | 2.32M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3798 | 337k | ::google::protobuf::uint32 tag; |
3799 | | // @@protoc_insertion_point(parse_start:yb.QLRSRowDescPB) |
3800 | 2.66M | for (;;) { |
3801 | 2.66M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3802 | 2.66M | tag = p.first; |
3803 | 2.66M | if (!p.second) goto handle_unusual; |
3804 | 2.33M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3805 | | // repeated .yb.QLRSColDescPB rscol_descs = 1; |
3806 | 2.32M | case 1: { |
3807 | 2.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
3808 | 2.32M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3809 | 2.32M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rscol_descs())); |
3810 | 18.4E | } else { |
3811 | 18.4E | goto handle_unusual; |
3812 | 18.4E | } |
3813 | 2.32M | break; |
3814 | 336k | } |
3815 | | |
3816 | 0 | default: { |
3817 | 336k | handle_unusual: |
3818 | 336k | if (tag == 0) { |
3819 | 336k | goto success; |
3820 | 336k | } |
3821 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3822 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3823 | 18.4E | break; |
3824 | 18.4E | } |
3825 | 2.33M | } |
3826 | 2.33M | } |
3827 | 336k | success: |
3828 | | // @@protoc_insertion_point(parse_success:yb.QLRSRowDescPB) |
3829 | 336k | return true; |
3830 | 0 | failure: |
3831 | | // @@protoc_insertion_point(parse_failure:yb.QLRSRowDescPB) |
3832 | 0 | return false; |
3833 | 337k | #undef DO_ |
3834 | 337k | } |
3835 | | |
3836 | | void QLRSRowDescPB::SerializeWithCachedSizes( |
3837 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3838 | | // @@protoc_insertion_point(serialize_start:yb.QLRSRowDescPB) |
3839 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3840 | 0 | (void) cached_has_bits; |
3841 | | |
3842 | | // repeated .yb.QLRSColDescPB rscol_descs = 1; |
3843 | 0 | for (unsigned int i = 0, |
3844 | 0 | n = static_cast<unsigned int>(this->rscol_descs_size()); i < n; i++) { |
3845 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3846 | 0 | 1, this->rscol_descs(static_cast<int>(i)), output); |
3847 | 0 | } |
3848 | |
|
3849 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3850 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3851 | 0 | _internal_metadata_.unknown_fields(), output); |
3852 | 0 | } |
3853 | | // @@protoc_insertion_point(serialize_end:yb.QLRSRowDescPB) |
3854 | 0 | } |
3855 | | |
3856 | | ::google::protobuf::uint8* QLRSRowDescPB::InternalSerializeWithCachedSizesToArray( |
3857 | 336k | bool deterministic, ::google::protobuf::uint8* target) const { |
3858 | 336k | (void)deterministic; // Unused |
3859 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLRSRowDescPB) |
3860 | 336k | ::google::protobuf::uint32 cached_has_bits = 0; |
3861 | 336k | (void) cached_has_bits; |
3862 | | |
3863 | | // repeated .yb.QLRSColDescPB rscol_descs = 1; |
3864 | 336k | for (unsigned int i = 0, |
3865 | 2.66M | n = static_cast<unsigned int>(this->rscol_descs_size()); i < n; i++) { |
3866 | 2.32M | target = ::google::protobuf::internal::WireFormatLite:: |
3867 | 2.32M | InternalWriteMessageToArray( |
3868 | 2.32M | 1, this->rscol_descs(static_cast<int>(i)), deterministic, target); |
3869 | 2.32M | } |
3870 | | |
3871 | 336k | if (_internal_metadata_.have_unknown_fields()) { |
3872 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3873 | 0 | _internal_metadata_.unknown_fields(), target); |
3874 | 0 | } |
3875 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLRSRowDescPB) |
3876 | 336k | return target; |
3877 | 336k | } |
3878 | | |
3879 | 673k | size_t QLRSRowDescPB::ByteSizeLong() const { |
3880 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLRSRowDescPB) |
3881 | 673k | size_t total_size = 0; |
3882 | | |
3883 | 673k | if (_internal_metadata_.have_unknown_fields()) { |
3884 | 0 | total_size += |
3885 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3886 | 0 | _internal_metadata_.unknown_fields()); |
3887 | 0 | } |
3888 | | // repeated .yb.QLRSColDescPB rscol_descs = 1; |
3889 | 673k | { |
3890 | 673k | unsigned int count = static_cast<unsigned int>(this->rscol_descs_size()); |
3891 | 673k | total_size += 1UL * count; |
3892 | 5.31M | for (unsigned int i = 0; i < count; i++) { |
3893 | 4.64M | total_size += |
3894 | 4.64M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3895 | 4.64M | this->rscol_descs(static_cast<int>(i))); |
3896 | 4.64M | } |
3897 | 673k | } |
3898 | | |
3899 | 673k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3900 | 673k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3901 | 673k | _cached_size_ = cached_size; |
3902 | 673k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3903 | 673k | return total_size; |
3904 | 673k | } |
3905 | | |
3906 | 0 | void QLRSRowDescPB::MergeFrom(const ::google::protobuf::Message& from) { |
3907 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLRSRowDescPB) |
3908 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3909 | 0 | const QLRSRowDescPB* source = |
3910 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLRSRowDescPB>( |
3911 | 0 | &from); |
3912 | 0 | if (source == NULL) { |
3913 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLRSRowDescPB) |
3914 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3915 | 0 | } else { |
3916 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLRSRowDescPB) |
3917 | 0 | MergeFrom(*source); |
3918 | 0 | } |
3919 | 0 | } |
3920 | | |
3921 | 6.00k | void QLRSRowDescPB::MergeFrom(const QLRSRowDescPB& from) { |
3922 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLRSRowDescPB) |
3923 | 6.00k | GOOGLE_DCHECK_NE(&from, this); |
3924 | 6.00k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3925 | 6.00k | ::google::protobuf::uint32 cached_has_bits = 0; |
3926 | 6.00k | (void) cached_has_bits; |
3927 | | |
3928 | 6.00k | rscol_descs_.MergeFrom(from.rscol_descs_); |
3929 | 6.00k | } |
3930 | | |
3931 | 0 | void QLRSRowDescPB::CopyFrom(const ::google::protobuf::Message& from) { |
3932 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLRSRowDescPB) |
3933 | 0 | if (&from == this) return; |
3934 | 0 | Clear(); |
3935 | 0 | MergeFrom(from); |
3936 | 0 | } |
3937 | | |
3938 | 0 | void QLRSRowDescPB::CopyFrom(const QLRSRowDescPB& from) { |
3939 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLRSRowDescPB) |
3940 | 0 | if (&from == this) return; |
3941 | 0 | Clear(); |
3942 | 0 | MergeFrom(from); |
3943 | 0 | } |
3944 | | |
3945 | 0 | bool QLRSRowDescPB::IsInitialized() const { |
3946 | 0 | return true; |
3947 | 0 | } |
3948 | | |
3949 | 0 | void QLRSRowDescPB::Swap(QLRSRowDescPB* other) { |
3950 | 0 | if (other == this) return; |
3951 | 0 | InternalSwap(other); |
3952 | 0 | } |
3953 | 0 | void QLRSRowDescPB::InternalSwap(QLRSRowDescPB* other) { |
3954 | 0 | using std::swap; |
3955 | 0 | rscol_descs_.InternalSwap(&other->rscol_descs_); |
3956 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3957 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3958 | 0 | swap(_cached_size_, other->_cached_size_); |
3959 | 0 | } |
3960 | | |
3961 | 335k | ::google::protobuf::Metadata QLRSRowDescPB::GetMetadata() const { |
3962 | 335k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3963 | 335k | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
3964 | 335k | } |
3965 | | |
3966 | | |
3967 | | // =================================================================== |
3968 | | |
3969 | 17.1k | void QLReadRequestPB::InitAsDefaultInstance() { |
3970 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::QLExpressionPB*>( |
3971 | 17.1k | ::yb::QLExpressionPB::internal_default_instance()); |
3972 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->if_expr_ = const_cast< ::yb::QLExpressionPB*>( |
3973 | 17.1k | ::yb::QLExpressionPB::internal_default_instance()); |
3974 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->rsrow_desc_ = const_cast< ::yb::QLRSRowDescPB*>( |
3975 | 17.1k | ::yb::QLRSRowDescPB::internal_default_instance()); |
3976 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::QLPagingStatePB*>( |
3977 | 17.1k | ::yb::QLPagingStatePB::internal_default_instance()); |
3978 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->remote_endpoint_ = const_cast< ::yb::HostPortPB*>( |
3979 | 17.1k | ::yb::HostPortPB::internal_default_instance()); |
3980 | 17.1k | ::yb::_QLReadRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::QLReferencedColumnsPB*>( |
3981 | 17.1k | ::yb::QLReferencedColumnsPB::internal_default_instance()); |
3982 | 17.1k | } |
3983 | 0 | void QLReadRequestPB::clear_hashed_column_values() { |
3984 | 0 | hashed_column_values_.Clear(); |
3985 | 0 | } |
3986 | 0 | void QLReadRequestPB::clear_where_expr() { |
3987 | 0 | if (where_expr_ != NULL) where_expr_->Clear(); |
3988 | 0 | clear_has_where_expr(); |
3989 | 0 | } |
3990 | 0 | void QLReadRequestPB::clear_if_expr() { |
3991 | 0 | if (if_expr_ != NULL) if_expr_->Clear(); |
3992 | 0 | clear_has_if_expr(); |
3993 | 0 | } |
3994 | 1.01k | void QLReadRequestPB::clear_selected_exprs() { |
3995 | 1.01k | selected_exprs_.Clear(); |
3996 | 1.01k | } |
3997 | 0 | void QLReadRequestPB::clear_remote_endpoint() { |
3998 | 0 | if (remote_endpoint_ != NULL) remote_endpoint_->Clear(); |
3999 | 0 | clear_has_remote_endpoint(); |
4000 | 0 | } |
4001 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4002 | | const int QLReadRequestPB::kClientFieldNumber; |
4003 | | const int QLReadRequestPB::kRequestIdFieldNumber; |
4004 | | const int QLReadRequestPB::kSchemaVersionFieldNumber; |
4005 | | const int QLReadRequestPB::kHashCodeFieldNumber; |
4006 | | const int QLReadRequestPB::kHashedColumnValuesFieldNumber; |
4007 | | const int QLReadRequestPB::kIsForwardScanFieldNumber; |
4008 | | const int QLReadRequestPB::kWhereExprFieldNumber; |
4009 | | const int QLReadRequestPB::kIfExprFieldNumber; |
4010 | | const int QLReadRequestPB::kRsrowDescFieldNumber; |
4011 | | const int QLReadRequestPB::kSelectedExprsFieldNumber; |
4012 | | const int QLReadRequestPB::kDistinctFieldNumber; |
4013 | | const int QLReadRequestPB::kLimitFieldNumber; |
4014 | | const int QLReadRequestPB::kOffsetFieldNumber; |
4015 | | const int QLReadRequestPB::kPagingStateFieldNumber; |
4016 | | const int QLReadRequestPB::kReturnPagingStateFieldNumber; |
4017 | | const int QLReadRequestPB::kRemoteEndpointFieldNumber; |
4018 | | const int QLReadRequestPB::kProxyUuidFieldNumber; |
4019 | | const int QLReadRequestPB::kMaxHashCodeFieldNumber; |
4020 | | const int QLReadRequestPB::kColumnRefsFieldNumber; |
4021 | | const int QLReadRequestPB::kQueryIdFieldNumber; |
4022 | | const int QLReadRequestPB::kIsAggregateFieldNumber; |
4023 | | const int QLReadRequestPB::kIsCompatibleWithPreviousVersionFieldNumber; |
4024 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4025 | | |
4026 | | QLReadRequestPB::QLReadRequestPB() |
4027 | 4.24M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4028 | 4.21M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4029 | 4.21M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReadRequestPB(); |
4030 | 4.21M | } |
4031 | 4.24M | SharedCtor(); |
4032 | | // @@protoc_insertion_point(constructor:yb.QLReadRequestPB) |
4033 | 4.24M | } |
4034 | | QLReadRequestPB::QLReadRequestPB(const QLReadRequestPB& from) |
4035 | | : ::google::protobuf::Message(), |
4036 | | _internal_metadata_(NULL), |
4037 | | _has_bits_(from._has_bits_), |
4038 | | _cached_size_(0), |
4039 | | hashed_column_values_(from.hashed_column_values_), |
4040 | 0 | selected_exprs_(from.selected_exprs_) { |
4041 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4042 | 0 | proxy_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4043 | 0 | if (from.has_proxy_uuid()) { |
4044 | 0 | proxy_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proxy_uuid_); |
4045 | 0 | } |
4046 | 0 | if (from.has_where_expr()) { |
4047 | 0 | where_expr_ = new ::yb::QLExpressionPB(*from.where_expr_); |
4048 | 0 | } else { |
4049 | 0 | where_expr_ = NULL; |
4050 | 0 | } |
4051 | 0 | if (from.has_paging_state()) { |
4052 | 0 | paging_state_ = new ::yb::QLPagingStatePB(*from.paging_state_); |
4053 | 0 | } else { |
4054 | 0 | paging_state_ = NULL; |
4055 | 0 | } |
4056 | 0 | if (from.has_remote_endpoint()) { |
4057 | 0 | remote_endpoint_ = new ::yb::HostPortPB(*from.remote_endpoint_); |
4058 | 0 | } else { |
4059 | 0 | remote_endpoint_ = NULL; |
4060 | 0 | } |
4061 | 0 | if (from.has_column_refs()) { |
4062 | 0 | column_refs_ = new ::yb::QLReferencedColumnsPB(*from.column_refs_); |
4063 | 0 | } else { |
4064 | 0 | column_refs_ = NULL; |
4065 | 0 | } |
4066 | 0 | if (from.has_rsrow_desc()) { |
4067 | 0 | rsrow_desc_ = new ::yb::QLRSRowDescPB(*from.rsrow_desc_); |
4068 | 0 | } else { |
4069 | 0 | rsrow_desc_ = NULL; |
4070 | 0 | } |
4071 | 0 | if (from.has_if_expr()) { |
4072 | 0 | if_expr_ = new ::yb::QLExpressionPB(*from.if_expr_); |
4073 | 0 | } else { |
4074 | 0 | if_expr_ = NULL; |
4075 | 0 | } |
4076 | 0 | ::memcpy(&request_id_, &from.request_id_, |
4077 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&is_forward_scan_) - |
4078 | 0 | reinterpret_cast<char*>(&request_id_)) + sizeof(is_forward_scan_)); |
4079 | | // @@protoc_insertion_point(copy_constructor:yb.QLReadRequestPB) |
4080 | 0 | } |
4081 | | |
4082 | 4.24M | void QLReadRequestPB::SharedCtor() { |
4083 | 4.24M | _cached_size_ = 0; |
4084 | 4.24M | proxy_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4085 | 4.24M | ::memset(&where_expr_, 0, static_cast<size_t>( |
4086 | 4.24M | reinterpret_cast<char*>(&query_id_) - |
4087 | 4.24M | reinterpret_cast<char*>(&where_expr_)) + sizeof(query_id_)); |
4088 | 4.24M | client_ = 1; |
4089 | 4.24M | is_forward_scan_ = true; |
4090 | 4.24M | } |
4091 | | |
4092 | 4.24M | QLReadRequestPB::~QLReadRequestPB() { |
4093 | | // @@protoc_insertion_point(destructor:yb.QLReadRequestPB) |
4094 | 4.24M | SharedDtor(); |
4095 | 4.24M | } |
4096 | | |
4097 | 4.24M | void QLReadRequestPB::SharedDtor() { |
4098 | 4.24M | proxy_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4099 | 4.24M | if (this != internal_default_instance()) delete where_expr_; |
4100 | 4.24M | if (this != internal_default_instance()) delete paging_state_; |
4101 | 4.24M | if (this != internal_default_instance()) delete remote_endpoint_; |
4102 | 4.24M | if (this != internal_default_instance()) delete column_refs_; |
4103 | 4.24M | if (this != internal_default_instance()) delete rsrow_desc_; |
4104 | 4.24M | if (this != internal_default_instance()) delete if_expr_; |
4105 | 4.24M | } |
4106 | | |
4107 | 0 | void QLReadRequestPB::SetCachedSize(int size) const { |
4108 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4109 | 0 | _cached_size_ = size; |
4110 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4111 | 0 | } |
4112 | 0 | const ::google::protobuf::Descriptor* QLReadRequestPB::descriptor() { |
4113 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4114 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4115 | 0 | } |
4116 | | |
4117 | 0 | const QLReadRequestPB& QLReadRequestPB::default_instance() { |
4118 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLReadRequestPB(); |
4119 | 0 | return *internal_default_instance(); |
4120 | 0 | } |
4121 | | |
4122 | 0 | QLReadRequestPB* QLReadRequestPB::New(::google::protobuf::Arena* arena) const { |
4123 | 0 | QLReadRequestPB* n = new QLReadRequestPB; |
4124 | 0 | if (arena != NULL) { |
4125 | 0 | arena->Own(n); |
4126 | 0 | } |
4127 | 0 | return n; |
4128 | 0 | } |
4129 | | |
4130 | 6.00k | void QLReadRequestPB::Clear() { |
4131 | | // @@protoc_insertion_point(message_clear_start:yb.QLReadRequestPB) |
4132 | 6.00k | ::google::protobuf::uint32 cached_has_bits = 0; |
4133 | | // Prevent compiler warnings about cached_has_bits being unused |
4134 | 6.00k | (void) cached_has_bits; |
4135 | | |
4136 | 6.00k | hashed_column_values_.Clear(); |
4137 | 6.00k | selected_exprs_.Clear(); |
4138 | 6.00k | cached_has_bits = _has_bits_[0]; |
4139 | 6.00k | if (cached_has_bits & 127u) { |
4140 | 0 | if (cached_has_bits & 0x00000001u) { |
4141 | 0 | GOOGLE_DCHECK(!proxy_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
4142 | 0 | (*proxy_uuid_.UnsafeRawStringPointer())->clear(); |
4143 | 0 | } |
4144 | 0 | if (cached_has_bits & 0x00000002u) { |
4145 | 0 | GOOGLE_DCHECK(where_expr_ != NULL); |
4146 | 0 | where_expr_->Clear(); |
4147 | 0 | } |
4148 | 0 | if (cached_has_bits & 0x00000004u) { |
4149 | 0 | GOOGLE_DCHECK(paging_state_ != NULL); |
4150 | 0 | paging_state_->Clear(); |
4151 | 0 | } |
4152 | 0 | if (cached_has_bits & 0x00000008u) { |
4153 | 0 | GOOGLE_DCHECK(remote_endpoint_ != NULL); |
4154 | 0 | remote_endpoint_->Clear(); |
4155 | 0 | } |
4156 | 0 | if (cached_has_bits & 0x00000010u) { |
4157 | 0 | GOOGLE_DCHECK(column_refs_ != NULL); |
4158 | 0 | column_refs_->Clear(); |
4159 | 0 | } |
4160 | 0 | if (cached_has_bits & 0x00000020u) { |
4161 | 0 | GOOGLE_DCHECK(rsrow_desc_ != NULL); |
4162 | 0 | rsrow_desc_->Clear(); |
4163 | 0 | } |
4164 | 0 | if (cached_has_bits & 0x00000040u) { |
4165 | 0 | GOOGLE_DCHECK(if_expr_ != NULL); |
4166 | 0 | if_expr_->Clear(); |
4167 | 0 | } |
4168 | 0 | } |
4169 | 6.00k | request_id_ = GOOGLE_ULONGLONG(0); |
4170 | 6.00k | if (cached_has_bits & 65280u) { |
4171 | 6.00k | ::memset(&schema_version_, 0, static_cast<size_t>( |
4172 | 6.00k | reinterpret_cast<char*>(&is_aggregate_) - |
4173 | 6.00k | reinterpret_cast<char*>(&schema_version_)) + sizeof(is_aggregate_)); |
4174 | 6.00k | } |
4175 | 6.00k | if (cached_has_bits & 983040u) { |
4176 | 6.00k | ::memset(&is_compatible_with_previous_version_, 0, static_cast<size_t>( |
4177 | 6.00k | reinterpret_cast<char*>(&query_id_) - |
4178 | 6.00k | reinterpret_cast<char*>(&is_compatible_with_previous_version_)) + sizeof(query_id_)); |
4179 | 6.00k | client_ = 1; |
4180 | 6.00k | is_forward_scan_ = true; |
4181 | 6.00k | } |
4182 | 6.00k | _has_bits_.Clear(); |
4183 | 6.00k | _internal_metadata_.Clear(); |
4184 | 6.00k | } |
4185 | | |
4186 | | bool QLReadRequestPB::MergePartialFromCodedStream( |
4187 | 336k | ::google::protobuf::io::CodedInputStream* input) { |
4188 | 6.32M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4189 | 336k | ::google::protobuf::uint32 tag; |
4190 | | // @@protoc_insertion_point(parse_start:yb.QLReadRequestPB) |
4191 | 6.63M | for (;;) { |
4192 | 6.63M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
4193 | 6.63M | tag = p.first; |
4194 | 6.63M | if (!p.second) goto handle_unusual; |
4195 | 6.29M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4196 | | // optional .yb.QLClient client = 1; |
4197 | 333k | case 1: { |
4198 | 333k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4199 | 334k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4200 | 334k | int value; |
4201 | 334k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4202 | 334k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
4203 | 334k | input, &value))); |
4204 | 334k | if (::yb::QLClient_IsValid(value)) { |
4205 | 332k | set_client(static_cast< ::yb::QLClient >(value)); |
4206 | 1.89k | } else { |
4207 | 1.89k | mutable_unknown_fields()->AddVarint( |
4208 | 1.89k | 1, static_cast< ::google::protobuf::uint64>(value)); |
4209 | 1.89k | } |
4210 | 18.4E | } else { |
4211 | 18.4E | goto handle_unusual; |
4212 | 18.4E | } |
4213 | 334k | break; |
4214 | 334k | } |
4215 | | |
4216 | | // optional uint64 request_id = 2; |
4217 | 334k | case 2: { |
4218 | 334k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4219 | 334k | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4220 | 334k | set_has_request_id(); |
4221 | 334k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4222 | 334k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4223 | 334k | input, &request_id_))); |
4224 | 18.4E | } else { |
4225 | 18.4E | goto handle_unusual; |
4226 | 18.4E | } |
4227 | 334k | break; |
4228 | 334k | } |
4229 | | |
4230 | | // optional uint32 schema_version = 3; |
4231 | 335k | case 3: { |
4232 | 335k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4233 | 335k | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
4234 | 335k | set_has_schema_version(); |
4235 | 335k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4236 | 335k | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4237 | 335k | input, &schema_version_))); |
4238 | 18.4E | } else { |
4239 | 18.4E | goto handle_unusual; |
4240 | 18.4E | } |
4241 | 335k | break; |
4242 | 335k | } |
4243 | | |
4244 | | // optional uint32 hash_code = 4; |
4245 | 165k | case 4: { |
4246 | 165k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4247 | 166k | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4248 | 166k | set_has_hash_code(); |
4249 | 166k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4250 | 166k | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4251 | 166k | input, &hash_code_))); |
4252 | 18.4E | } else { |
4253 | 18.4E | goto handle_unusual; |
4254 | 18.4E | } |
4255 | 166k | break; |
4256 | 166k | } |
4257 | | |
4258 | | // repeated .yb.QLExpressionPB hashed_column_values = 5; |
4259 | 144k | case 5: { |
4260 | 144k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4261 | 144k | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
4262 | 144k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_hashed_column_values())); |
4263 | 18.4E | } else { |
4264 | 18.4E | goto handle_unusual; |
4265 | 18.4E | } |
4266 | 144k | break; |
4267 | 144k | } |
4268 | | |
4269 | | // optional .yb.QLExpressionPB where_expr = 6; |
4270 | 13.4k | case 6: { |
4271 | 13.4k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4272 | 13.4k | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
4273 | 13.4k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4274 | 13.4k | input, mutable_where_expr())); |
4275 | 18.4E | } else { |
4276 | 18.4E | goto handle_unusual; |
4277 | 18.4E | } |
4278 | 13.4k | break; |
4279 | 13.4k | } |
4280 | | |
4281 | | // repeated .yb.QLExpressionPB selected_exprs = 7; |
4282 | 2.32M | case 7: { |
4283 | 2.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
4284 | 2.32M | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
4285 | 2.32M | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_selected_exprs())); |
4286 | 18.4E | } else { |
4287 | 18.4E | goto handle_unusual; |
4288 | 18.4E | } |
4289 | 2.32M | break; |
4290 | 2.32M | } |
4291 | | |
4292 | | // optional uint64 limit = 8; |
4293 | 76.4k | case 8: { |
4294 | 76.4k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4295 | 76.4k | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
4296 | 76.4k | set_has_limit(); |
4297 | 76.4k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4298 | 76.4k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4299 | 76.4k | input, &limit_))); |
4300 | 18.4E | } else { |
4301 | 18.4E | goto handle_unusual; |
4302 | 18.4E | } |
4303 | 76.4k | break; |
4304 | 76.4k | } |
4305 | | |
4306 | | // optional uint64 offset = 9; |
4307 | 1.14k | case 9: { |
4308 | 1.14k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4309 | 1.14k | static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { |
4310 | 1.14k | set_has_offset(); |
4311 | 1.14k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4312 | 1.14k | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4313 | 1.14k | input, &offset_))); |
4314 | 0 | } else { |
4315 | 0 | goto handle_unusual; |
4316 | 0 | } |
4317 | 1.14k | break; |
4318 | 1.14k | } |
4319 | | |
4320 | | // optional .yb.QLPagingStatePB paging_state = 10; |
4321 | 23.3k | case 10: { |
4322 | 23.3k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4323 | 23.3k | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
4324 | 23.3k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4325 | 23.3k | input, mutable_paging_state())); |
4326 | 0 | } else { |
4327 | 0 | goto handle_unusual; |
4328 | 0 | } |
4329 | 23.3k | break; |
4330 | 23.3k | } |
4331 | | |
4332 | | // optional bool return_paging_state = 11 [default = false]; |
4333 | 75.9k | case 11: { |
4334 | 75.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4335 | 75.9k | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
4336 | 75.9k | set_has_return_paging_state(); |
4337 | 75.9k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4338 | 75.9k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4339 | 75.9k | input, &return_paging_state_))); |
4340 | 18.4E | } else { |
4341 | 18.4E | goto handle_unusual; |
4342 | 18.4E | } |
4343 | 75.9k | break; |
4344 | 75.9k | } |
4345 | | |
4346 | | // optional bool distinct = 12 [default = false]; |
4347 | 334k | case 12: { |
4348 | 334k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4349 | 335k | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
4350 | 335k | set_has_distinct(); |
4351 | 335k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4352 | 335k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4353 | 335k | input, &distinct_))); |
4354 | 18.4E | } else { |
4355 | 18.4E | goto handle_unusual; |
4356 | 18.4E | } |
4357 | 335k | break; |
4358 | 335k | } |
4359 | | |
4360 | | // optional .yb.HostPortPB remote_endpoint = 13; |
4361 | 0 | case 13: { |
4362 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4363 | 0 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
4364 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4365 | 0 | input, mutable_remote_endpoint())); |
4366 | 0 | } else { |
4367 | 0 | goto handle_unusual; |
4368 | 0 | } |
4369 | 0 | break; |
4370 | 0 | } |
4371 | | |
4372 | | // optional uint32 max_hash_code = 14; |
4373 | 143k | case 14: { |
4374 | 143k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4375 | 143k | static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { |
4376 | 143k | set_has_max_hash_code(); |
4377 | 143k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4378 | 143k | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4379 | 143k | input, &max_hash_code_))); |
4380 | 18.4E | } else { |
4381 | 18.4E | goto handle_unusual; |
4382 | 18.4E | } |
4383 | 143k | break; |
4384 | 143k | } |
4385 | | |
4386 | | // optional .yb.QLReferencedColumnsPB column_refs = 15; |
4387 | 336k | case 15: { |
4388 | 336k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4389 | 336k | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
4390 | 336k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4391 | 336k | input, mutable_column_refs())); |
4392 | 18.4E | } else { |
4393 | 18.4E | goto handle_unusual; |
4394 | 18.4E | } |
4395 | 336k | break; |
4396 | 336k | } |
4397 | | |
4398 | | // optional int64 query_id = 16; |
4399 | 336k | case 16: { |
4400 | 336k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4401 | 336k | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
4402 | 336k | set_has_query_id(); |
4403 | 336k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4404 | 336k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4405 | 336k | input, &query_id_))); |
4406 | 18.4E | } else { |
4407 | 18.4E | goto handle_unusual; |
4408 | 18.4E | } |
4409 | 336k | break; |
4410 | 336k | } |
4411 | | |
4412 | | // optional .yb.QLRSRowDescPB rsrow_desc = 17; |
4413 | 336k | case 17: { |
4414 | 336k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4415 | 336k | static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { |
4416 | 336k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4417 | 336k | input, mutable_rsrow_desc())); |
4418 | 18.4E | } else { |
4419 | 18.4E | goto handle_unusual; |
4420 | 18.4E | } |
4421 | 336k | break; |
4422 | 336k | } |
4423 | | |
4424 | | // optional bool is_forward_scan = 18 [default = true]; |
4425 | 335k | case 18: { |
4426 | 335k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4427 | 335k | static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { |
4428 | 335k | set_has_is_forward_scan(); |
4429 | 335k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4430 | 335k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4431 | 335k | input, &is_forward_scan_))); |
4432 | 18.4E | } else { |
4433 | 18.4E | goto handle_unusual; |
4434 | 18.4E | } |
4435 | 335k | break; |
4436 | 335k | } |
4437 | | |
4438 | | // optional bool is_aggregate = 19 [default = false]; |
4439 | 334k | case 19: { |
4440 | 334k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4441 | 334k | static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { |
4442 | 334k | set_has_is_aggregate(); |
4443 | 334k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4444 | 334k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4445 | 334k | input, &is_aggregate_))); |
4446 | 18.4E | } else { |
4447 | 18.4E | goto handle_unusual; |
4448 | 18.4E | } |
4449 | 334k | break; |
4450 | 334k | } |
4451 | | |
4452 | | // optional string proxy_uuid = 20; |
4453 | 0 | case 20: { |
4454 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4455 | 0 | static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { |
4456 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4457 | 0 | input, this->mutable_proxy_uuid())); |
4458 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4459 | 0 | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
4460 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
4461 | 0 | "yb.QLReadRequestPB.proxy_uuid"); |
4462 | 0 | } else { |
4463 | 0 | goto handle_unusual; |
4464 | 0 | } |
4465 | 0 | break; |
4466 | 0 | } |
4467 | | |
4468 | | // optional .yb.QLExpressionPB if_expr = 21; |
4469 | 463 | case 21: { |
4470 | 463 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4471 | 463 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
4472 | 463 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4473 | 463 | input, mutable_if_expr())); |
4474 | 0 | } else { |
4475 | 0 | goto handle_unusual; |
4476 | 0 | } |
4477 | 463 | break; |
4478 | 463 | } |
4479 | | |
4480 | | // optional bool is_compatible_with_previous_version = 22 [default = false]; |
4481 | 337k | case 22: { |
4482 | 337k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4483 | 337k | static_cast< ::google::protobuf::uint8>(176u /* 176 & 0xFF */)) { |
4484 | 337k | set_has_is_compatible_with_previous_version(); |
4485 | 337k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4486 | 337k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4487 | 337k | input, &is_compatible_with_previous_version_))); |
4488 | 18.4E | } else { |
4489 | 18.4E | goto handle_unusual; |
4490 | 18.4E | } |
4491 | 337k | break; |
4492 | 336k | } |
4493 | | |
4494 | 0 | default: { |
4495 | 336k | handle_unusual: |
4496 | 336k | if (tag == 0) { |
4497 | 336k | goto success; |
4498 | 336k | } |
4499 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4500 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4501 | 18.4E | break; |
4502 | 18.4E | } |
4503 | 6.29M | } |
4504 | 6.29M | } |
4505 | 336k | success: |
4506 | | // @@protoc_insertion_point(parse_success:yb.QLReadRequestPB) |
4507 | 336k | return true; |
4508 | 0 | failure: |
4509 | | // @@protoc_insertion_point(parse_failure:yb.QLReadRequestPB) |
4510 | 0 | return false; |
4511 | 336k | #undef DO_ |
4512 | 336k | } |
4513 | | |
4514 | | void QLReadRequestPB::SerializeWithCachedSizes( |
4515 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4516 | | // @@protoc_insertion_point(serialize_start:yb.QLReadRequestPB) |
4517 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4518 | 0 | (void) cached_has_bits; |
4519 | |
|
4520 | 0 | cached_has_bits = _has_bits_[0]; |
4521 | | // optional .yb.QLClient client = 1; |
4522 | 0 | if (cached_has_bits & 0x00040000u) { |
4523 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
4524 | 0 | 1, this->client(), output); |
4525 | 0 | } |
4526 | | |
4527 | | // optional uint64 request_id = 2; |
4528 | 0 | if (cached_has_bits & 0x00000080u) { |
4529 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->request_id(), output); |
4530 | 0 | } |
4531 | | |
4532 | | // optional uint32 schema_version = 3; |
4533 | 0 | if (cached_has_bits & 0x00000100u) { |
4534 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->schema_version(), output); |
4535 | 0 | } |
4536 | | |
4537 | | // optional uint32 hash_code = 4; |
4538 | 0 | if (cached_has_bits & 0x00000200u) { |
4539 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->hash_code(), output); |
4540 | 0 | } |
4541 | | |
4542 | | // repeated .yb.QLExpressionPB hashed_column_values = 5; |
4543 | 0 | for (unsigned int i = 0, |
4544 | 0 | n = static_cast<unsigned int>(this->hashed_column_values_size()); i < n; i++) { |
4545 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4546 | 0 | 5, this->hashed_column_values(static_cast<int>(i)), output); |
4547 | 0 | } |
4548 | | |
4549 | | // optional .yb.QLExpressionPB where_expr = 6; |
4550 | 0 | if (cached_has_bits & 0x00000002u) { |
4551 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4552 | 0 | 6, *this->where_expr_, output); |
4553 | 0 | } |
4554 | | |
4555 | | // repeated .yb.QLExpressionPB selected_exprs = 7; |
4556 | 0 | for (unsigned int i = 0, |
4557 | 0 | n = static_cast<unsigned int>(this->selected_exprs_size()); i < n; i++) { |
4558 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4559 | 0 | 7, this->selected_exprs(static_cast<int>(i)), output); |
4560 | 0 | } |
4561 | | |
4562 | | // optional uint64 limit = 8; |
4563 | 0 | if (cached_has_bits & 0x00000400u) { |
4564 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->limit(), output); |
4565 | 0 | } |
4566 | | |
4567 | | // optional uint64 offset = 9; |
4568 | 0 | if (cached_has_bits & 0x00000800u) { |
4569 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->offset(), output); |
4570 | 0 | } |
4571 | | |
4572 | | // optional .yb.QLPagingStatePB paging_state = 10; |
4573 | 0 | if (cached_has_bits & 0x00000004u) { |
4574 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4575 | 0 | 10, *this->paging_state_, output); |
4576 | 0 | } |
4577 | | |
4578 | | // optional bool return_paging_state = 11 [default = false]; |
4579 | 0 | if (cached_has_bits & 0x00004000u) { |
4580 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->return_paging_state(), output); |
4581 | 0 | } |
4582 | | |
4583 | | // optional bool distinct = 12 [default = false]; |
4584 | 0 | if (cached_has_bits & 0x00002000u) { |
4585 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->distinct(), output); |
4586 | 0 | } |
4587 | | |
4588 | | // optional .yb.HostPortPB remote_endpoint = 13; |
4589 | 0 | if (cached_has_bits & 0x00000008u) { |
4590 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4591 | 0 | 13, *this->remote_endpoint_, output); |
4592 | 0 | } |
4593 | | |
4594 | | // optional uint32 max_hash_code = 14; |
4595 | 0 | if (cached_has_bits & 0x00001000u) { |
4596 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->max_hash_code(), output); |
4597 | 0 | } |
4598 | | |
4599 | | // optional .yb.QLReferencedColumnsPB column_refs = 15; |
4600 | 0 | if (cached_has_bits & 0x00000010u) { |
4601 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4602 | 0 | 15, *this->column_refs_, output); |
4603 | 0 | } |
4604 | | |
4605 | | // optional int64 query_id = 16; |
4606 | 0 | if (cached_has_bits & 0x00020000u) { |
4607 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(16, this->query_id(), output); |
4608 | 0 | } |
4609 | | |
4610 | | // optional .yb.QLRSRowDescPB rsrow_desc = 17; |
4611 | 0 | if (cached_has_bits & 0x00000020u) { |
4612 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4613 | 0 | 17, *this->rsrow_desc_, output); |
4614 | 0 | } |
4615 | | |
4616 | | // optional bool is_forward_scan = 18 [default = true]; |
4617 | 0 | if (cached_has_bits & 0x00080000u) { |
4618 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_forward_scan(), output); |
4619 | 0 | } |
4620 | | |
4621 | | // optional bool is_aggregate = 19 [default = false]; |
4622 | 0 | if (cached_has_bits & 0x00008000u) { |
4623 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->is_aggregate(), output); |
4624 | 0 | } |
4625 | | |
4626 | | // optional string proxy_uuid = 20; |
4627 | 0 | if (cached_has_bits & 0x00000001u) { |
4628 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4629 | 0 | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
4630 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4631 | 0 | "yb.QLReadRequestPB.proxy_uuid"); |
4632 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
4633 | 0 | 20, this->proxy_uuid(), output); |
4634 | 0 | } |
4635 | | |
4636 | | // optional .yb.QLExpressionPB if_expr = 21; |
4637 | 0 | if (cached_has_bits & 0x00000040u) { |
4638 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4639 | 0 | 21, *this->if_expr_, output); |
4640 | 0 | } |
4641 | | |
4642 | | // optional bool is_compatible_with_previous_version = 22 [default = false]; |
4643 | 0 | if (cached_has_bits & 0x00010000u) { |
4644 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->is_compatible_with_previous_version(), output); |
4645 | 0 | } |
4646 | |
|
4647 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4648 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4649 | 0 | _internal_metadata_.unknown_fields(), output); |
4650 | 0 | } |
4651 | | // @@protoc_insertion_point(serialize_end:yb.QLReadRequestPB) |
4652 | 0 | } |
4653 | | |
4654 | | ::google::protobuf::uint8* QLReadRequestPB::InternalSerializeWithCachedSizesToArray( |
4655 | 335k | bool deterministic, ::google::protobuf::uint8* target) const { |
4656 | 335k | (void)deterministic; // Unused |
4657 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLReadRequestPB) |
4658 | 335k | ::google::protobuf::uint32 cached_has_bits = 0; |
4659 | 335k | (void) cached_has_bits; |
4660 | | |
4661 | 335k | cached_has_bits = _has_bits_[0]; |
4662 | | // optional .yb.QLClient client = 1; |
4663 | 335k | if (cached_has_bits & 0x00040000u) { |
4664 | 334k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
4665 | 334k | 1, this->client(), target); |
4666 | 334k | } |
4667 | | |
4668 | | // optional uint64 request_id = 2; |
4669 | 335k | if (cached_has_bits & 0x00000080u) { |
4670 | 335k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->request_id(), target); |
4671 | 335k | } |
4672 | | |
4673 | | // optional uint32 schema_version = 3; |
4674 | 335k | if (cached_has_bits & 0x00000100u) { |
4675 | 334k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->schema_version(), target); |
4676 | 334k | } |
4677 | | |
4678 | | // optional uint32 hash_code = 4; |
4679 | 335k | if (cached_has_bits & 0x00000200u) { |
4680 | 166k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->hash_code(), target); |
4681 | 166k | } |
4682 | | |
4683 | | // repeated .yb.QLExpressionPB hashed_column_values = 5; |
4684 | 335k | for (unsigned int i = 0, |
4685 | 479k | n = static_cast<unsigned int>(this->hashed_column_values_size()); i < n; i++) { |
4686 | 144k | target = ::google::protobuf::internal::WireFormatLite:: |
4687 | 144k | InternalWriteMessageToArray( |
4688 | 144k | 5, this->hashed_column_values(static_cast<int>(i)), deterministic, target); |
4689 | 144k | } |
4690 | | |
4691 | | // optional .yb.QLExpressionPB where_expr = 6; |
4692 | 335k | if (cached_has_bits & 0x00000002u) { |
4693 | 13.5k | target = ::google::protobuf::internal::WireFormatLite:: |
4694 | 13.5k | InternalWriteMessageToArray( |
4695 | 13.5k | 6, *this->where_expr_, deterministic, target); |
4696 | 13.5k | } |
4697 | | |
4698 | | // repeated .yb.QLExpressionPB selected_exprs = 7; |
4699 | 335k | for (unsigned int i = 0, |
4700 | 2.65M | n = static_cast<unsigned int>(this->selected_exprs_size()); i < n; i++) { |
4701 | 2.32M | target = ::google::protobuf::internal::WireFormatLite:: |
4702 | 2.32M | InternalWriteMessageToArray( |
4703 | 2.32M | 7, this->selected_exprs(static_cast<int>(i)), deterministic, target); |
4704 | 2.32M | } |
4705 | | |
4706 | | // optional uint64 limit = 8; |
4707 | 335k | if (cached_has_bits & 0x00000400u) { |
4708 | 76.3k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->limit(), target); |
4709 | 76.3k | } |
4710 | | |
4711 | | // optional uint64 offset = 9; |
4712 | 335k | if (cached_has_bits & 0x00000800u) { |
4713 | 1.14k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->offset(), target); |
4714 | 1.14k | } |
4715 | | |
4716 | | // optional .yb.QLPagingStatePB paging_state = 10; |
4717 | 335k | if (cached_has_bits & 0x00000004u) { |
4718 | 23.3k | target = ::google::protobuf::internal::WireFormatLite:: |
4719 | 23.3k | InternalWriteMessageToArray( |
4720 | 23.3k | 10, *this->paging_state_, deterministic, target); |
4721 | 23.3k | } |
4722 | | |
4723 | | // optional bool return_paging_state = 11 [default = false]; |
4724 | 335k | if (cached_has_bits & 0x00004000u) { |
4725 | 75.9k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->return_paging_state(), target); |
4726 | 75.9k | } |
4727 | | |
4728 | | // optional bool distinct = 12 [default = false]; |
4729 | 335k | if (cached_has_bits & 0x00002000u) { |
4730 | 335k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->distinct(), target); |
4731 | 335k | } |
4732 | | |
4733 | | // optional .yb.HostPortPB remote_endpoint = 13; |
4734 | 335k | if (cached_has_bits & 0x00000008u) { |
4735 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
4736 | 0 | InternalWriteMessageToArray( |
4737 | 0 | 13, *this->remote_endpoint_, deterministic, target); |
4738 | 0 | } |
4739 | | |
4740 | | // optional uint32 max_hash_code = 14; |
4741 | 335k | if (cached_has_bits & 0x00001000u) { |
4742 | 143k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->max_hash_code(), target); |
4743 | 143k | } |
4744 | | |
4745 | | // optional .yb.QLReferencedColumnsPB column_refs = 15; |
4746 | 336k | if (cached_has_bits & 0x00000010u) { |
4747 | 336k | target = ::google::protobuf::internal::WireFormatLite:: |
4748 | 336k | InternalWriteMessageToArray( |
4749 | 336k | 15, *this->column_refs_, deterministic, target); |
4750 | 336k | } |
4751 | | |
4752 | | // optional int64 query_id = 16; |
4753 | 336k | if (cached_has_bits & 0x00020000u) { |
4754 | 336k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(16, this->query_id(), target); |
4755 | 336k | } |
4756 | | |
4757 | | // optional .yb.QLRSRowDescPB rsrow_desc = 17; |
4758 | 335k | if (cached_has_bits & 0x00000020u) { |
4759 | 335k | target = ::google::protobuf::internal::WireFormatLite:: |
4760 | 335k | InternalWriteMessageToArray( |
4761 | 335k | 17, *this->rsrow_desc_, deterministic, target); |
4762 | 335k | } |
4763 | | |
4764 | | // optional bool is_forward_scan = 18 [default = true]; |
4765 | 335k | if (cached_has_bits & 0x00080000u) { |
4766 | 335k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_forward_scan(), target); |
4767 | 335k | } |
4768 | | |
4769 | | // optional bool is_aggregate = 19 [default = false]; |
4770 | 335k | if (cached_has_bits & 0x00008000u) { |
4771 | 335k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->is_aggregate(), target); |
4772 | 335k | } |
4773 | | |
4774 | | // optional string proxy_uuid = 20; |
4775 | 335k | if (cached_has_bits & 0x00000001u) { |
4776 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
4777 | 0 | this->proxy_uuid().data(), static_cast<int>(this->proxy_uuid().length()), |
4778 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
4779 | 0 | "yb.QLReadRequestPB.proxy_uuid"); |
4780 | 0 | target = |
4781 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4782 | 0 | 20, this->proxy_uuid(), target); |
4783 | 0 | } |
4784 | | |
4785 | | // optional .yb.QLExpressionPB if_expr = 21; |
4786 | 335k | if (cached_has_bits & 0x00000040u) { |
4787 | 463 | target = ::google::protobuf::internal::WireFormatLite:: |
4788 | 463 | InternalWriteMessageToArray( |
4789 | 463 | 21, *this->if_expr_, deterministic, target); |
4790 | 463 | } |
4791 | | |
4792 | | // optional bool is_compatible_with_previous_version = 22 [default = false]; |
4793 | 337k | if (cached_has_bits & 0x00010000u) { |
4794 | 337k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->is_compatible_with_previous_version(), target); |
4795 | 337k | } |
4796 | | |
4797 | 335k | if (_internal_metadata_.have_unknown_fields()) { |
4798 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4799 | 0 | _internal_metadata_.unknown_fields(), target); |
4800 | 0 | } |
4801 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLReadRequestPB) |
4802 | 335k | return target; |
4803 | 335k | } |
4804 | | |
4805 | 672k | size_t QLReadRequestPB::ByteSizeLong() const { |
4806 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLReadRequestPB) |
4807 | 672k | size_t total_size = 0; |
4808 | | |
4809 | 672k | if (_internal_metadata_.have_unknown_fields()) { |
4810 | 0 | total_size += |
4811 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4812 | 0 | _internal_metadata_.unknown_fields()); |
4813 | 0 | } |
4814 | | // repeated .yb.QLExpressionPB hashed_column_values = 5; |
4815 | 672k | { |
4816 | 672k | unsigned int count = static_cast<unsigned int>(this->hashed_column_values_size()); |
4817 | 672k | total_size += 1UL * count; |
4818 | 961k | for (unsigned int i = 0; i < count; i++) { |
4819 | 288k | total_size += |
4820 | 288k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4821 | 288k | this->hashed_column_values(static_cast<int>(i))); |
4822 | 288k | } |
4823 | 672k | } |
4824 | | |
4825 | | // repeated .yb.QLExpressionPB selected_exprs = 7; |
4826 | 672k | { |
4827 | 672k | unsigned int count = static_cast<unsigned int>(this->selected_exprs_size()); |
4828 | 672k | total_size += 1UL * count; |
4829 | 5.29M | for (unsigned int i = 0; i < count; i++) { |
4830 | 4.62M | total_size += |
4831 | 4.62M | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4832 | 4.62M | this->selected_exprs(static_cast<int>(i))); |
4833 | 4.62M | } |
4834 | 672k | } |
4835 | | |
4836 | 673k | if (_has_bits_[0 / 32] & 255u) { |
4837 | | // optional string proxy_uuid = 20; |
4838 | 673k | if (has_proxy_uuid()) { |
4839 | 0 | total_size += 2 + |
4840 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
4841 | 0 | this->proxy_uuid()); |
4842 | 0 | } |
4843 | | |
4844 | | // optional .yb.QLExpressionPB where_expr = 6; |
4845 | 673k | if (has_where_expr()) { |
4846 | 27.4k | total_size += 1 + |
4847 | 27.4k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4848 | 27.4k | *this->where_expr_); |
4849 | 27.4k | } |
4850 | | |
4851 | | // optional .yb.QLPagingStatePB paging_state = 10; |
4852 | 673k | if (has_paging_state()) { |
4853 | 46.7k | total_size += 1 + |
4854 | 46.7k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4855 | 46.7k | *this->paging_state_); |
4856 | 46.7k | } |
4857 | | |
4858 | | // optional .yb.HostPortPB remote_endpoint = 13; |
4859 | 673k | if (has_remote_endpoint()) { |
4860 | 0 | total_size += 1 + |
4861 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4862 | 0 | *this->remote_endpoint_); |
4863 | 0 | } |
4864 | | |
4865 | | // optional .yb.QLReferencedColumnsPB column_refs = 15; |
4866 | 673k | if (has_column_refs()) { |
4867 | 672k | total_size += 1 + |
4868 | 672k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4869 | 672k | *this->column_refs_); |
4870 | 672k | } |
4871 | | |
4872 | | // optional .yb.QLRSRowDescPB rsrow_desc = 17; |
4873 | 673k | if (has_rsrow_desc()) { |
4874 | 670k | total_size += 2 + |
4875 | 670k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4876 | 670k | *this->rsrow_desc_); |
4877 | 670k | } |
4878 | | |
4879 | | // optional .yb.QLExpressionPB if_expr = 21; |
4880 | 673k | if (has_if_expr()) { |
4881 | 926 | total_size += 2 + |
4882 | 926 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4883 | 926 | *this->if_expr_); |
4884 | 926 | } |
4885 | | |
4886 | | // optional uint64 request_id = 2; |
4887 | 674k | if (has_request_id()) { |
4888 | 674k | total_size += 1 + |
4889 | 674k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
4890 | 674k | this->request_id()); |
4891 | 674k | } |
4892 | | |
4893 | 673k | } |
4894 | 672k | if (_has_bits_[8 / 32] & 65280u) { |
4895 | | // optional uint32 schema_version = 3; |
4896 | 672k | if (has_schema_version()) { |
4897 | 672k | total_size += 1 + |
4898 | 672k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4899 | 672k | this->schema_version()); |
4900 | 672k | } |
4901 | | |
4902 | | // optional uint32 hash_code = 4; |
4903 | 672k | if (has_hash_code()) { |
4904 | 334k | total_size += 1 + |
4905 | 334k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4906 | 334k | this->hash_code()); |
4907 | 334k | } |
4908 | | |
4909 | | // optional uint64 limit = 8; |
4910 | 672k | if (has_limit()) { |
4911 | 152k | total_size += 1 + |
4912 | 152k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
4913 | 152k | this->limit()); |
4914 | 152k | } |
4915 | | |
4916 | | // optional uint64 offset = 9; |
4917 | 672k | if (has_offset()) { |
4918 | 2.29k | total_size += 1 + |
4919 | 2.29k | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
4920 | 2.29k | this->offset()); |
4921 | 2.29k | } |
4922 | | |
4923 | | // optional uint32 max_hash_code = 14; |
4924 | 672k | if (has_max_hash_code()) { |
4925 | 287k | total_size += 1 + |
4926 | 287k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4927 | 287k | this->max_hash_code()); |
4928 | 287k | } |
4929 | | |
4930 | | // optional bool distinct = 12 [default = false]; |
4931 | 672k | if (has_distinct()) { |
4932 | 669k | total_size += 1 + 1; |
4933 | 669k | } |
4934 | | |
4935 | | // optional bool return_paging_state = 11 [default = false]; |
4936 | 672k | if (has_return_paging_state()) { |
4937 | 151k | total_size += 1 + 1; |
4938 | 151k | } |
4939 | | |
4940 | | // optional bool is_aggregate = 19 [default = false]; |
4941 | 672k | if (has_is_aggregate()) { |
4942 | 669k | total_size += 2 + 1; |
4943 | 669k | } |
4944 | | |
4945 | 672k | } |
4946 | 672k | if (_has_bits_[16 / 32] & 983040u) { |
4947 | | // optional bool is_compatible_with_previous_version = 22 [default = false]; |
4948 | 672k | if (has_is_compatible_with_previous_version()) { |
4949 | 672k | total_size += 2 + 1; |
4950 | 672k | } |
4951 | | |
4952 | | // optional int64 query_id = 16; |
4953 | 672k | if (has_query_id()) { |
4954 | 672k | total_size += 2 + |
4955 | 672k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
4956 | 672k | this->query_id()); |
4957 | 672k | } |
4958 | | |
4959 | | // optional .yb.QLClient client = 1; |
4960 | 672k | if (has_client()) { |
4961 | 672k | total_size += 1 + |
4962 | 672k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->client()); |
4963 | 672k | } |
4964 | | |
4965 | | // optional bool is_forward_scan = 18 [default = true]; |
4966 | 672k | if (has_is_forward_scan()) { |
4967 | 668k | total_size += 2 + 1; |
4968 | 668k | } |
4969 | | |
4970 | 672k | } |
4971 | 672k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4972 | 672k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4973 | 672k | _cached_size_ = cached_size; |
4974 | 672k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4975 | 672k | return total_size; |
4976 | 672k | } |
4977 | | |
4978 | 0 | void QLReadRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
4979 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLReadRequestPB) |
4980 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4981 | 0 | const QLReadRequestPB* source = |
4982 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLReadRequestPB>( |
4983 | 0 | &from); |
4984 | 0 | if (source == NULL) { |
4985 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLReadRequestPB) |
4986 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4987 | 0 | } else { |
4988 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLReadRequestPB) |
4989 | 0 | MergeFrom(*source); |
4990 | 0 | } |
4991 | 0 | } |
4992 | | |
4993 | 6.00k | void QLReadRequestPB::MergeFrom(const QLReadRequestPB& from) { |
4994 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLReadRequestPB) |
4995 | 6.00k | GOOGLE_DCHECK_NE(&from, this); |
4996 | 6.00k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4997 | 6.00k | ::google::protobuf::uint32 cached_has_bits = 0; |
4998 | 6.00k | (void) cached_has_bits; |
4999 | | |
5000 | 6.00k | hashed_column_values_.MergeFrom(from.hashed_column_values_); |
5001 | 6.00k | selected_exprs_.MergeFrom(from.selected_exprs_); |
5002 | 6.00k | cached_has_bits = from._has_bits_[0]; |
5003 | 6.00k | if (cached_has_bits & 255u) { |
5004 | 6.00k | if (cached_has_bits & 0x00000001u) { |
5005 | 0 | set_has_proxy_uuid(); |
5006 | 0 | proxy_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proxy_uuid_); |
5007 | 0 | } |
5008 | 6.00k | if (cached_has_bits & 0x00000002u) { |
5009 | 689 | mutable_where_expr()->::yb::QLExpressionPB::MergeFrom(from.where_expr()); |
5010 | 689 | } |
5011 | 6.00k | if (cached_has_bits & 0x00000004u) { |
5012 | 0 | mutable_paging_state()->::yb::QLPagingStatePB::MergeFrom(from.paging_state()); |
5013 | 0 | } |
5014 | 6.00k | if (cached_has_bits & 0x00000008u) { |
5015 | 0 | mutable_remote_endpoint()->::yb::HostPortPB::MergeFrom(from.remote_endpoint()); |
5016 | 0 | } |
5017 | 6.00k | if (cached_has_bits & 0x00000010u) { |
5018 | 6.00k | mutable_column_refs()->::yb::QLReferencedColumnsPB::MergeFrom(from.column_refs()); |
5019 | 6.00k | } |
5020 | 6.00k | if (cached_has_bits & 0x00000020u) { |
5021 | 6.00k | mutable_rsrow_desc()->::yb::QLRSRowDescPB::MergeFrom(from.rsrow_desc()); |
5022 | 6.00k | } |
5023 | 6.00k | if (cached_has_bits & 0x00000040u) { |
5024 | 290 | mutable_if_expr()->::yb::QLExpressionPB::MergeFrom(from.if_expr()); |
5025 | 290 | } |
5026 | 6.00k | if (cached_has_bits & 0x00000080u) { |
5027 | 6.00k | request_id_ = from.request_id_; |
5028 | 6.00k | } |
5029 | 6.00k | _has_bits_[0] |= cached_has_bits; |
5030 | 6.00k | } |
5031 | 6.00k | if (cached_has_bits & 65280u) { |
5032 | 6.00k | if (cached_has_bits & 0x00000100u) { |
5033 | 6.00k | schema_version_ = from.schema_version_; |
5034 | 6.00k | } |
5035 | 6.00k | if (cached_has_bits & 0x00000200u) { |
5036 | 3 | hash_code_ = from.hash_code_; |
5037 | 3 | } |
5038 | 6.00k | if (cached_has_bits & 0x00000400u) { |
5039 | 6.00k | limit_ = from.limit_; |
5040 | 6.00k | } |
5041 | 6.00k | if (cached_has_bits & 0x00000800u) { |
5042 | 0 | offset_ = from.offset_; |
5043 | 0 | } |
5044 | 6.00k | if (cached_has_bits & 0x00001000u) { |
5045 | 3 | max_hash_code_ = from.max_hash_code_; |
5046 | 3 | } |
5047 | 6.00k | if (cached_has_bits & 0x00002000u) { |
5048 | 6.00k | distinct_ = from.distinct_; |
5049 | 6.00k | } |
5050 | 6.00k | if (cached_has_bits & 0x00004000u) { |
5051 | 5.30k | return_paging_state_ = from.return_paging_state_; |
5052 | 5.30k | } |
5053 | 6.00k | if (cached_has_bits & 0x00008000u) { |
5054 | 6.00k | is_aggregate_ = from.is_aggregate_; |
5055 | 6.00k | } |
5056 | 6.00k | _has_bits_[0] |= cached_has_bits; |
5057 | 6.00k | } |
5058 | 6.00k | if (cached_has_bits & 983040u) { |
5059 | 6.00k | if (cached_has_bits & 0x00010000u) { |
5060 | 6.00k | is_compatible_with_previous_version_ = from.is_compatible_with_previous_version_; |
5061 | 6.00k | } |
5062 | 6.00k | if (cached_has_bits & 0x00020000u) { |
5063 | 6.00k | query_id_ = from.query_id_; |
5064 | 6.00k | } |
5065 | 6.00k | if (cached_has_bits & 0x00040000u) { |
5066 | 6.00k | client_ = from.client_; |
5067 | 6.00k | } |
5068 | 6.00k | if (cached_has_bits & 0x00080000u) { |
5069 | 6.00k | is_forward_scan_ = from.is_forward_scan_; |
5070 | 6.00k | } |
5071 | 6.00k | _has_bits_[0] |= cached_has_bits; |
5072 | 6.00k | } |
5073 | 6.00k | } |
5074 | | |
5075 | 0 | void QLReadRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
5076 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLReadRequestPB) |
5077 | 0 | if (&from == this) return; |
5078 | 0 | Clear(); |
5079 | 0 | MergeFrom(from); |
5080 | 0 | } |
5081 | | |
5082 | 6.00k | void QLReadRequestPB::CopyFrom(const QLReadRequestPB& from) { |
5083 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLReadRequestPB) |
5084 | 6.00k | if (&from == this) return; |
5085 | 6.00k | Clear(); |
5086 | 6.00k | MergeFrom(from); |
5087 | 6.00k | } |
5088 | | |
5089 | 673k | bool QLReadRequestPB::IsInitialized() const { |
5090 | 673k | if (!::google::protobuf::internal::AllAreInitialized(this->hashed_column_values())) return false; |
5091 | 673k | if (!::google::protobuf::internal::AllAreInitialized(this->selected_exprs())) return false; |
5092 | 673k | if (has_where_expr()) { |
5093 | 27.6k | if (!this->where_expr_->IsInitialized()) return false; |
5094 | 673k | } |
5095 | 673k | if (has_remote_endpoint()) { |
5096 | 0 | if (!this->remote_endpoint_->IsInitialized()) return false; |
5097 | 673k | } |
5098 | 673k | if (has_if_expr()) { |
5099 | 926 | if (!this->if_expr_->IsInitialized()) return false; |
5100 | 673k | } |
5101 | 673k | return true; |
5102 | 673k | } |
5103 | | |
5104 | 0 | void QLReadRequestPB::Swap(QLReadRequestPB* other) { |
5105 | 0 | if (other == this) return; |
5106 | 0 | InternalSwap(other); |
5107 | 0 | } |
5108 | 0 | void QLReadRequestPB::InternalSwap(QLReadRequestPB* other) { |
5109 | 0 | using std::swap; |
5110 | 0 | hashed_column_values_.InternalSwap(&other->hashed_column_values_); |
5111 | 0 | selected_exprs_.InternalSwap(&other->selected_exprs_); |
5112 | 0 | proxy_uuid_.Swap(&other->proxy_uuid_); |
5113 | 0 | swap(where_expr_, other->where_expr_); |
5114 | 0 | swap(paging_state_, other->paging_state_); |
5115 | 0 | swap(remote_endpoint_, other->remote_endpoint_); |
5116 | 0 | swap(column_refs_, other->column_refs_); |
5117 | 0 | swap(rsrow_desc_, other->rsrow_desc_); |
5118 | 0 | swap(if_expr_, other->if_expr_); |
5119 | 0 | swap(request_id_, other->request_id_); |
5120 | 0 | swap(schema_version_, other->schema_version_); |
5121 | 0 | swap(hash_code_, other->hash_code_); |
5122 | 0 | swap(limit_, other->limit_); |
5123 | 0 | swap(offset_, other->offset_); |
5124 | 0 | swap(max_hash_code_, other->max_hash_code_); |
5125 | 0 | swap(distinct_, other->distinct_); |
5126 | 0 | swap(return_paging_state_, other->return_paging_state_); |
5127 | 0 | swap(is_aggregate_, other->is_aggregate_); |
5128 | 0 | swap(is_compatible_with_previous_version_, other->is_compatible_with_previous_version_); |
5129 | 0 | swap(query_id_, other->query_id_); |
5130 | 0 | swap(client_, other->client_); |
5131 | 0 | swap(is_forward_scan_, other->is_forward_scan_); |
5132 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5133 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5134 | 0 | swap(_cached_size_, other->_cached_size_); |
5135 | 0 | } |
5136 | | |
5137 | 335k | ::google::protobuf::Metadata QLReadRequestPB::GetMetadata() const { |
5138 | 335k | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5139 | 335k | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
5140 | 335k | } |
5141 | | |
5142 | | |
5143 | | // =================================================================== |
5144 | | |
5145 | 17.1k | void QLResponsePB::InitAsDefaultInstance() { |
5146 | 17.1k | ::yb::_QLResponsePB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::QLPagingStatePB*>( |
5147 | 17.1k | ::yb::QLPagingStatePB::internal_default_instance()); |
5148 | 17.1k | ::yb::_QLResponsePB_default_instance_._instance.get_mutable()->child_transaction_result_ = const_cast< ::yb::ChildTransactionResultPB*>( |
5149 | 17.1k | ::yb::ChildTransactionResultPB::internal_default_instance()); |
5150 | 17.1k | } |
5151 | 0 | void QLResponsePB::clear_column_schemas() { |
5152 | 0 | column_schemas_.Clear(); |
5153 | 0 | } |
5154 | 0 | void QLResponsePB::clear_child_transaction_result() { |
5155 | 0 | if (child_transaction_result_ != NULL) child_transaction_result_->Clear(); |
5156 | 0 | clear_has_child_transaction_result(); |
5157 | 0 | } |
5158 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5159 | | const int QLResponsePB::kStatusFieldNumber; |
5160 | | const int QLResponsePB::kErrorMessageFieldNumber; |
5161 | | const int QLResponsePB::kColumnSchemasFieldNumber; |
5162 | | const int QLResponsePB::kRowsDataSidecarFieldNumber; |
5163 | | const int QLResponsePB::kPagingStateFieldNumber; |
5164 | | const int QLResponsePB::kChildTransactionResultFieldNumber; |
5165 | | const int QLResponsePB::kAppliedFieldNumber; |
5166 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5167 | | |
5168 | | QLResponsePB::QLResponsePB() |
5169 | 24.4M | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5170 | 24.4M | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5171 | 24.4M | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLResponsePB(); |
5172 | 24.4M | } |
5173 | 24.4M | SharedCtor(); |
5174 | | // @@protoc_insertion_point(constructor:yb.QLResponsePB) |
5175 | 24.4M | } |
5176 | | QLResponsePB::QLResponsePB(const QLResponsePB& from) |
5177 | | : ::google::protobuf::Message(), |
5178 | | _internal_metadata_(NULL), |
5179 | | _has_bits_(from._has_bits_), |
5180 | | _cached_size_(0), |
5181 | 0 | column_schemas_(from.column_schemas_) { |
5182 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5183 | 0 | error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5184 | 0 | if (from.has_error_message()) { |
5185 | 0 | error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
5186 | 0 | } |
5187 | 0 | if (from.has_paging_state()) { |
5188 | 0 | paging_state_ = new ::yb::QLPagingStatePB(*from.paging_state_); |
5189 | 0 | } else { |
5190 | 0 | paging_state_ = NULL; |
5191 | 0 | } |
5192 | 0 | if (from.has_child_transaction_result()) { |
5193 | 0 | child_transaction_result_ = new ::yb::ChildTransactionResultPB(*from.child_transaction_result_); |
5194 | 0 | } else { |
5195 | 0 | child_transaction_result_ = NULL; |
5196 | 0 | } |
5197 | 0 | ::memcpy(&status_, &from.status_, |
5198 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&applied_) - |
5199 | 0 | reinterpret_cast<char*>(&status_)) + sizeof(applied_)); |
5200 | | // @@protoc_insertion_point(copy_constructor:yb.QLResponsePB) |
5201 | 0 | } |
5202 | | |
5203 | 24.4M | void QLResponsePB::SharedCtor() { |
5204 | 24.4M | _cached_size_ = 0; |
5205 | 24.4M | error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5206 | 24.4M | ::memset(&paging_state_, 0, static_cast<size_t>( |
5207 | 24.4M | reinterpret_cast<char*>(&applied_) - |
5208 | 24.4M | reinterpret_cast<char*>(&paging_state_)) + sizeof(applied_)); |
5209 | 24.4M | } |
5210 | | |
5211 | 24.4M | QLResponsePB::~QLResponsePB() { |
5212 | | // @@protoc_insertion_point(destructor:yb.QLResponsePB) |
5213 | 24.4M | SharedDtor(); |
5214 | 24.4M | } |
5215 | | |
5216 | 24.4M | void QLResponsePB::SharedDtor() { |
5217 | 24.4M | error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5218 | 24.4M | if (this != internal_default_instance()) delete paging_state_; |
5219 | 24.4M | if (this != internal_default_instance()) delete child_transaction_result_; |
5220 | 24.4M | } |
5221 | | |
5222 | 0 | void QLResponsePB::SetCachedSize(int size) const { |
5223 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5224 | 0 | _cached_size_ = size; |
5225 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5226 | 0 | } |
5227 | 0 | const ::google::protobuf::Descriptor* QLResponsePB::descriptor() { |
5228 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5229 | 0 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5230 | 0 | } |
5231 | | |
5232 | 0 | const QLResponsePB& QLResponsePB::default_instance() { |
5233 | 0 | ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::InitDefaultsQLResponsePB(); |
5234 | 0 | return *internal_default_instance(); |
5235 | 0 | } |
5236 | | |
5237 | 0 | QLResponsePB* QLResponsePB::New(::google::protobuf::Arena* arena) const { |
5238 | 0 | QLResponsePB* n = new QLResponsePB; |
5239 | 0 | if (arena != NULL) { |
5240 | 0 | arena->Own(n); |
5241 | 0 | } |
5242 | 0 | return n; |
5243 | 0 | } |
5244 | | |
5245 | 124k | void QLResponsePB::Clear() { |
5246 | | // @@protoc_insertion_point(message_clear_start:yb.QLResponsePB) |
5247 | 124k | ::google::protobuf::uint32 cached_has_bits = 0; |
5248 | | // Prevent compiler warnings about cached_has_bits being unused |
5249 | 124k | (void) cached_has_bits; |
5250 | | |
5251 | 124k | column_schemas_.Clear(); |
5252 | 124k | cached_has_bits = _has_bits_[0]; |
5253 | 124k | if (cached_has_bits & 7u) { |
5254 | 42.7k | if (cached_has_bits & 0x00000001u) { |
5255 | 9.63k | GOOGLE_DCHECK(!error_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5256 | 9.63k | (*error_message_.UnsafeRawStringPointer())->clear(); |
5257 | 9.63k | } |
5258 | 42.7k | if (cached_has_bits & 0x00000002u) { |
5259 | 33.1k | GOOGLE_DCHECK(paging_state_ != NULL); |
5260 | 33.1k | paging_state_->Clear(); |
5261 | 33.1k | } |
5262 | 42.7k | if (cached_has_bits & 0x00000004u) { |
5263 | 0 | GOOGLE_DCHECK(child_transaction_result_ != NULL); |
5264 | 0 | child_transaction_result_->Clear(); |
5265 | 0 | } |
5266 | 42.7k | } |
5267 | 124k | if (cached_has_bits & 56u) { |
5268 | 50.2k | ::memset(&status_, 0, static_cast<size_t>( |
5269 | 50.2k | reinterpret_cast<char*>(&applied_) - |
5270 | 50.2k | reinterpret_cast<char*>(&status_)) + sizeof(applied_)); |
5271 | 50.2k | } |
5272 | 124k | _has_bits_.Clear(); |
5273 | 124k | _internal_metadata_.Clear(); |
5274 | 124k | } |
5275 | | |
5276 | | bool QLResponsePB::MergePartialFromCodedStream( |
5277 | 2.33M | ::google::protobuf::io::CodedInputStream* input) { |
5278 | 2.68M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5279 | 2.33M | ::google::protobuf::uint32 tag; |
5280 | | // @@protoc_insertion_point(parse_start:yb.QLResponsePB) |
5281 | 5.02M | for (;;) { |
5282 | 5.02M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5283 | 5.02M | tag = p.first; |
5284 | 5.02M | if (!p.second) goto handle_unusual; |
5285 | 2.68M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5286 | | // optional .yb.QLResponsePB.QLStatus status = 1 [default = YQL_STATUS_OK]; |
5287 | 2.32M | case 1: { |
5288 | 2.32M | if (static_cast< ::google::protobuf::uint8>(tag) == |
5289 | 2.32M | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
5290 | 2.32M | int value; |
5291 | 2.32M | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5292 | 2.32M | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5293 | 2.32M | input, &value))); |
5294 | 2.32M | if (::yb::QLResponsePB_QLStatus_IsValid(value)) { |
5295 | 2.32M | set_status(static_cast< ::yb::QLResponsePB_QLStatus >(value)); |
5296 | 845 | } else { |
5297 | 845 | mutable_unknown_fields()->AddVarint( |
5298 | 845 | 1, static_cast< ::google::protobuf::uint64>(value)); |
5299 | 845 | } |
5300 | 18.4E | } else { |
5301 | 18.4E | goto handle_unusual; |
5302 | 18.4E | } |
5303 | 2.32M | break; |
5304 | 2.32M | } |
5305 | | |
5306 | | // optional string error_message = 2; |
5307 | 1.56k | case 2: { |
5308 | 1.56k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5309 | 1.56k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5310 | 1.56k | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5311 | 1.56k | input, this->mutable_error_message())); |
5312 | 1.56k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5313 | 1.56k | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5314 | 1.56k | ::google::protobuf::internal::WireFormat::PARSE, |
5315 | 1.56k | "yb.QLResponsePB.error_message"); |
5316 | 0 | } else { |
5317 | 0 | goto handle_unusual; |
5318 | 0 | } |
5319 | 1.56k | break; |
5320 | 1.56k | } |
5321 | | |
5322 | | // repeated .yb.ColumnSchemaPB column_schemas = 3; |
5323 | 510 | case 3: { |
5324 | 510 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5325 | 510 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5326 | 510 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_schemas())); |
5327 | 0 | } else { |
5328 | 0 | goto handle_unusual; |
5329 | 0 | } |
5330 | 510 | break; |
5331 | 510 | } |
5332 | | |
5333 | | // optional int32 rows_data_sidecar = 4; |
5334 | 329k | case 4: { |
5335 | 329k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5336 | 329k | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
5337 | 329k | set_has_rows_data_sidecar(); |
5338 | 329k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5339 | 329k | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
5340 | 329k | input, &rows_data_sidecar_))); |
5341 | 18.4E | } else { |
5342 | 18.4E | goto handle_unusual; |
5343 | 18.4E | } |
5344 | 329k | break; |
5345 | 329k | } |
5346 | | |
5347 | | // optional .yb.QLPagingStatePB paging_state = 5; |
5348 | 23.3k | case 5: { |
5349 | 23.3k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5350 | 23.3k | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
5351 | 23.3k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5352 | 23.3k | input, mutable_paging_state())); |
5353 | 0 | } else { |
5354 | 0 | goto handle_unusual; |
5355 | 0 | } |
5356 | 23.3k | break; |
5357 | 23.3k | } |
5358 | | |
5359 | | // optional .yb.ChildTransactionResultPB child_transaction_result = 6; |
5360 | 4.60k | case 6: { |
5361 | 4.60k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5362 | 4.60k | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
5363 | 4.60k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5364 | 4.60k | input, mutable_child_transaction_result())); |
5365 | 0 | } else { |
5366 | 0 | goto handle_unusual; |
5367 | 0 | } |
5368 | 4.60k | break; |
5369 | 4.60k | } |
5370 | | |
5371 | | // optional bool applied = 7; |
5372 | 358 | case 7: { |
5373 | 358 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5374 | 358 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
5375 | 358 | set_has_applied(); |
5376 | 358 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5377 | 358 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5378 | 358 | input, &applied_))); |
5379 | 0 | } else { |
5380 | 0 | goto handle_unusual; |
5381 | 0 | } |
5382 | 358 | break; |
5383 | 2.33M | } |
5384 | | |
5385 | 0 | default: { |
5386 | 2.33M | handle_unusual: |
5387 | 2.33M | if (tag == 0) { |
5388 | 2.33M | goto success; |
5389 | 2.33M | } |
5390 | 18.4E | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5391 | 18.4E | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5392 | 18.4E | break; |
5393 | 18.4E | } |
5394 | 2.68M | } |
5395 | 2.68M | } |
5396 | 2.33M | success: |
5397 | | // @@protoc_insertion_point(parse_success:yb.QLResponsePB) |
5398 | 2.33M | return true; |
5399 | 0 | failure: |
5400 | | // @@protoc_insertion_point(parse_failure:yb.QLResponsePB) |
5401 | 0 | return false; |
5402 | 2.33M | #undef DO_ |
5403 | 2.33M | } |
5404 | | |
5405 | | void QLResponsePB::SerializeWithCachedSizes( |
5406 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5407 | | // @@protoc_insertion_point(serialize_start:yb.QLResponsePB) |
5408 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5409 | 0 | (void) cached_has_bits; |
5410 | |
|
5411 | 0 | cached_has_bits = _has_bits_[0]; |
5412 | | // optional .yb.QLResponsePB.QLStatus status = 1 [default = YQL_STATUS_OK]; |
5413 | 0 | if (cached_has_bits & 0x00000008u) { |
5414 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5415 | 0 | 1, this->status(), output); |
5416 | 0 | } |
5417 | | |
5418 | | // optional string error_message = 2; |
5419 | 0 | if (cached_has_bits & 0x00000001u) { |
5420 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5421 | 0 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5422 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5423 | 0 | "yb.QLResponsePB.error_message"); |
5424 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5425 | 0 | 2, this->error_message(), output); |
5426 | 0 | } |
5427 | | |
5428 | | // repeated .yb.ColumnSchemaPB column_schemas = 3; |
5429 | 0 | for (unsigned int i = 0, |
5430 | 0 | n = static_cast<unsigned int>(this->column_schemas_size()); i < n; i++) { |
5431 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5432 | 0 | 3, this->column_schemas(static_cast<int>(i)), output); |
5433 | 0 | } |
5434 | | |
5435 | | // optional int32 rows_data_sidecar = 4; |
5436 | 0 | if (cached_has_bits & 0x00000010u) { |
5437 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->rows_data_sidecar(), output); |
5438 | 0 | } |
5439 | | |
5440 | | // optional .yb.QLPagingStatePB paging_state = 5; |
5441 | 0 | if (cached_has_bits & 0x00000002u) { |
5442 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5443 | 0 | 5, *this->paging_state_, output); |
5444 | 0 | } |
5445 | | |
5446 | | // optional .yb.ChildTransactionResultPB child_transaction_result = 6; |
5447 | 0 | if (cached_has_bits & 0x00000004u) { |
5448 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5449 | 0 | 6, *this->child_transaction_result_, output); |
5450 | 0 | } |
5451 | | |
5452 | | // optional bool applied = 7; |
5453 | 0 | if (cached_has_bits & 0x00000020u) { |
5454 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->applied(), output); |
5455 | 0 | } |
5456 | |
|
5457 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5458 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5459 | 0 | _internal_metadata_.unknown_fields(), output); |
5460 | 0 | } |
5461 | | // @@protoc_insertion_point(serialize_end:yb.QLResponsePB) |
5462 | 0 | } |
5463 | | |
5464 | | ::google::protobuf::uint8* QLResponsePB::InternalSerializeWithCachedSizesToArray( |
5465 | 2.34M | bool deterministic, ::google::protobuf::uint8* target) const { |
5466 | 2.34M | (void)deterministic; // Unused |
5467 | | // @@protoc_insertion_point(serialize_to_array_start:yb.QLResponsePB) |
5468 | 2.34M | ::google::protobuf::uint32 cached_has_bits = 0; |
5469 | 2.34M | (void) cached_has_bits; |
5470 | | |
5471 | 2.34M | cached_has_bits = _has_bits_[0]; |
5472 | | // optional .yb.QLResponsePB.QLStatus status = 1 [default = YQL_STATUS_OK]; |
5473 | 2.34M | if (cached_has_bits & 0x00000008u) { |
5474 | 2.32M | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5475 | 2.32M | 1, this->status(), target); |
5476 | 2.32M | } |
5477 | | |
5478 | | // optional string error_message = 2; |
5479 | 2.34M | if (cached_has_bits & 0x00000001u) { |
5480 | 1.57k | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
5481 | 1.57k | this->error_message().data(), static_cast<int>(this->error_message().length()), |
5482 | 1.57k | ::google::protobuf::internal::WireFormat::SERIALIZE, |
5483 | 1.57k | "yb.QLResponsePB.error_message"); |
5484 | 1.57k | target = |
5485 | 1.57k | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5486 | 1.57k | 2, this->error_message(), target); |
5487 | 1.57k | } |
5488 | | |
5489 | | // repeated .yb.ColumnSchemaPB column_schemas = 3; |
5490 | 2.34M | for (unsigned int i = 0, |
5491 | 2.34M | n = static_cast<unsigned int>(this->column_schemas_size()); i < n; i++) { |
5492 | 511 | target = ::google::protobuf::internal::WireFormatLite:: |
5493 | 511 | InternalWriteMessageToArray( |
5494 | 511 | 3, this->column_schemas(static_cast<int>(i)), deterministic, target); |
5495 | 511 | } |
5496 | | |
5497 | | // optional int32 rows_data_sidecar = 4; |
5498 | 2.34M | if (cached_has_bits & 0x00000010u) { |
5499 | 327k | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->rows_data_sidecar(), target); |
5500 | 327k | } |
5501 | | |
5502 | | // optional .yb.QLPagingStatePB paging_state = 5; |
5503 | 2.34M | if (cached_has_bits & 0x00000002u) { |
5504 | 23.3k | target = ::google::protobuf::internal::WireFormatLite:: |
5505 | 23.3k | InternalWriteMessageToArray( |
5506 | 23.3k | 5, *this->paging_state_, deterministic, target); |
5507 | 23.3k | } |
5508 | | |
5509 | | // optional .yb.ChildTransactionResultPB child_transaction_result = 6; |
5510 | 2.34M | if (cached_has_bits & 0x00000004u) { |
5511 | 4.60k | target = ::google::protobuf::internal::WireFormatLite:: |
5512 | 4.60k | InternalWriteMessageToArray( |
5513 | 4.60k | 6, *this->child_transaction_result_, deterministic, target); |
5514 | 4.60k | } |
5515 | | |
5516 | | // optional bool applied = 7; |
5517 | 2.34M | if (cached_has_bits & 0x00000020u) { |
5518 | 358 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->applied(), target); |
5519 | 358 | } |
5520 | | |
5521 | 2.34M | if (_internal_metadata_.have_unknown_fields()) { |
5522 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5523 | 0 | _internal_metadata_.unknown_fields(), target); |
5524 | 0 | } |
5525 | | // @@protoc_insertion_point(serialize_to_array_end:yb.QLResponsePB) |
5526 | 2.34M | return target; |
5527 | 2.34M | } |
5528 | | |
5529 | 4.68M | size_t QLResponsePB::ByteSizeLong() const { |
5530 | | // @@protoc_insertion_point(message_byte_size_start:yb.QLResponsePB) |
5531 | 4.68M | size_t total_size = 0; |
5532 | | |
5533 | 4.68M | if (_internal_metadata_.have_unknown_fields()) { |
5534 | 0 | total_size += |
5535 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5536 | 0 | _internal_metadata_.unknown_fields()); |
5537 | 0 | } |
5538 | | // repeated .yb.ColumnSchemaPB column_schemas = 3; |
5539 | 4.68M | { |
5540 | 4.68M | unsigned int count = static_cast<unsigned int>(this->column_schemas_size()); |
5541 | 4.68M | total_size += 1UL * count; |
5542 | 4.68M | for (unsigned int i = 0; i < count; i++) { |
5543 | 1.01k | total_size += |
5544 | 1.01k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5545 | 1.01k | this->column_schemas(static_cast<int>(i))); |
5546 | 1.01k | } |
5547 | 4.68M | } |
5548 | | |
5549 | 4.68M | if (_has_bits_[0 / 32] & 63u) { |
5550 | | // optional string error_message = 2; |
5551 | 4.64M | if (has_error_message()) { |
5552 | 3.14k | total_size += 1 + |
5553 | 3.14k | ::google::protobuf::internal::WireFormatLite::StringSize( |
5554 | 3.14k | this->error_message()); |
5555 | 3.14k | } |
5556 | | |
5557 | | // optional .yb.QLPagingStatePB paging_state = 5; |
5558 | 4.64M | if (has_paging_state()) { |
5559 | 46.6k | total_size += 1 + |
5560 | 46.6k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5561 | 46.6k | *this->paging_state_); |
5562 | 46.6k | } |
5563 | | |
5564 | | // optional .yb.ChildTransactionResultPB child_transaction_result = 6; |
5565 | 4.64M | if (has_child_transaction_result()) { |
5566 | 9.20k | total_size += 1 + |
5567 | 9.20k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5568 | 9.20k | *this->child_transaction_result_); |
5569 | 9.20k | } |
5570 | | |
5571 | | // optional .yb.QLResponsePB.QLStatus status = 1 [default = YQL_STATUS_OK]; |
5572 | 4.64M | if (has_status()) { |
5573 | 4.64M | total_size += 1 + |
5574 | 4.64M | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
5575 | 4.64M | } |
5576 | | |
5577 | | // optional int32 rows_data_sidecar = 4; |
5578 | 4.64M | if (has_rows_data_sidecar()) { |
5579 | 651k | total_size += 1 + |
5580 | 651k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5581 | 651k | this->rows_data_sidecar()); |
5582 | 651k | } |
5583 | | |
5584 | | // optional bool applied = 7; |
5585 | 4.64M | if (has_applied()) { |
5586 | 716 | total_size += 1 + 1; |
5587 | 716 | } |
5588 | | |
5589 | 4.64M | } |
5590 | 4.68M | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5591 | 4.68M | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5592 | 4.68M | _cached_size_ = cached_size; |
5593 | 4.68M | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5594 | 4.68M | return total_size; |
5595 | 4.68M | } |
5596 | | |
5597 | 0 | void QLResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
5598 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.QLResponsePB) |
5599 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5600 | 0 | const QLResponsePB* source = |
5601 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const QLResponsePB>( |
5602 | 0 | &from); |
5603 | 0 | if (source == NULL) { |
5604 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLResponsePB) |
5605 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5606 | 0 | } else { |
5607 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLResponsePB) |
5608 | 0 | MergeFrom(*source); |
5609 | 0 | } |
5610 | 0 | } |
5611 | | |
5612 | 0 | void QLResponsePB::MergeFrom(const QLResponsePB& from) { |
5613 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.QLResponsePB) |
5614 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5615 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5616 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5617 | 0 | (void) cached_has_bits; |
5618 | |
|
5619 | 0 | column_schemas_.MergeFrom(from.column_schemas_); |
5620 | 0 | cached_has_bits = from._has_bits_[0]; |
5621 | 0 | if (cached_has_bits & 63u) { |
5622 | 0 | if (cached_has_bits & 0x00000001u) { |
5623 | 0 | set_has_error_message(); |
5624 | 0 | error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
5625 | 0 | } |
5626 | 0 | if (cached_has_bits & 0x00000002u) { |
5627 | 0 | mutable_paging_state()->::yb::QLPagingStatePB::MergeFrom(from.paging_state()); |
5628 | 0 | } |
5629 | 0 | if (cached_has_bits & 0x00000004u) { |
5630 | 0 | mutable_child_transaction_result()->::yb::ChildTransactionResultPB::MergeFrom(from.child_transaction_result()); |
5631 | 0 | } |
5632 | 0 | if (cached_has_bits & 0x00000008u) { |
5633 | 0 | status_ = from.status_; |
5634 | 0 | } |
5635 | 0 | if (cached_has_bits & 0x00000010u) { |
5636 | 0 | rows_data_sidecar_ = from.rows_data_sidecar_; |
5637 | 0 | } |
5638 | 0 | if (cached_has_bits & 0x00000020u) { |
5639 | 0 | applied_ = from.applied_; |
5640 | 0 | } |
5641 | 0 | _has_bits_[0] |= cached_has_bits; |
5642 | 0 | } |
5643 | 0 | } |
5644 | | |
5645 | 0 | void QLResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
5646 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.QLResponsePB) |
5647 | 0 | if (&from == this) return; |
5648 | 0 | Clear(); |
5649 | 0 | MergeFrom(from); |
5650 | 0 | } |
5651 | | |
5652 | 0 | void QLResponsePB::CopyFrom(const QLResponsePB& from) { |
5653 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.QLResponsePB) |
5654 | 0 | if (&from == this) return; |
5655 | 0 | Clear(); |
5656 | 0 | MergeFrom(from); |
5657 | 0 | } |
5658 | | |
5659 | 4.68M | bool QLResponsePB::IsInitialized() const { |
5660 | 4.68M | if (!::google::protobuf::internal::AllAreInitialized(this->column_schemas())) return false; |
5661 | 4.68M | return true; |
5662 | 4.68M | } |
5663 | | |
5664 | 14.7M | void QLResponsePB::Swap(QLResponsePB* other) { |
5665 | 14.7M | if (other == this) return; |
5666 | 14.7M | InternalSwap(other); |
5667 | 14.7M | } |
5668 | 14.7M | void QLResponsePB::InternalSwap(QLResponsePB* other) { |
5669 | 14.7M | using std::swap; |
5670 | 14.7M | column_schemas_.InternalSwap(&other->column_schemas_); |
5671 | 14.7M | error_message_.Swap(&other->error_message_); |
5672 | 14.7M | swap(paging_state_, other->paging_state_); |
5673 | 14.7M | swap(child_transaction_result_, other->child_transaction_result_); |
5674 | 14.7M | swap(status_, other->status_); |
5675 | 14.7M | swap(rows_data_sidecar_, other->rows_data_sidecar_); |
5676 | 14.7M | swap(applied_, other->applied_); |
5677 | 14.7M | swap(_has_bits_[0], other->_has_bits_[0]); |
5678 | 14.7M | _internal_metadata_.Swap(&other->_internal_metadata_); |
5679 | 14.7M | swap(_cached_size_, other->_cached_size_); |
5680 | 14.7M | } |
5681 | | |
5682 | 60 | ::google::protobuf::Metadata QLResponsePB::GetMetadata() const { |
5683 | 60 | protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5684 | 60 | return ::protobuf_yb_2fcommon_2fql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
5685 | 60 | } |
5686 | | |
5687 | | |
5688 | | // @@protoc_insertion_point(namespace_scope) |
5689 | | } // namespace yb |
5690 | | |
5691 | | // @@protoc_insertion_point(global_scope) |