/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/redis_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/redis_protocol.proto |
3 | | |
4 | | #include "yb/common/redis_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 RedisWriteRequestPBDefaultTypeInternal { |
25 | | public: |
26 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisWriteRequestPB> |
27 | | _instance; |
28 | | const ::yb::RedisSetRequestPB* set_request_; |
29 | | const ::yb::RedisGetSetRequestPB* getset_request_; |
30 | | const ::yb::RedisAppendRequestPB* append_request_; |
31 | | const ::yb::RedisDelRequestPB* del_request_; |
32 | | const ::yb::RedisSetRangeRequestPB* set_range_request_; |
33 | | const ::yb::RedisIncrRequestPB* incr_request_; |
34 | | const ::yb::RedisPushRequestPB* push_request_; |
35 | | const ::yb::RedisInsertRequestPB* insert_request_; |
36 | | const ::yb::RedisPopRequestPB* pop_request_; |
37 | | const ::yb::RedisAddRequestPB* add_request_; |
38 | | const ::yb::RedisSetTtlRequestPB* set_ttl_request_; |
39 | | const ::yb::RedisNoOpRequestPB* no_op_request_; |
40 | | } _RedisWriteRequestPB_default_instance_; |
41 | | class RedisReadRequestPBDefaultTypeInternal { |
42 | | public: |
43 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisReadRequestPB> |
44 | | _instance; |
45 | | const ::yb::RedisGetRequestPB* get_request_; |
46 | | const ::yb::RedisStrLenRequestPB* strlen_request_; |
47 | | const ::yb::RedisExistsRequestPB* exists_request_; |
48 | | const ::yb::RedisGetRangeRequestPB* get_range_request_; |
49 | | const ::yb::RedisCollectionGetRangeRequestPB* get_collection_range_request_; |
50 | | const ::yb::RedisGetTtlRequestPB* get_ttl_request_; |
51 | | const ::yb::RedisKeysRequestPB* keys_request_; |
52 | | const ::yb::RedisGetForRenameRequestPB* get_for_rename_request_; |
53 | | } _RedisReadRequestPB_default_instance_; |
54 | | class RedisSubKeyRangePBDefaultTypeInternal { |
55 | | public: |
56 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisSubKeyRangePB> |
57 | | _instance; |
58 | | } _RedisSubKeyRangePB_default_instance_; |
59 | | class RedisIndexRangePBDefaultTypeInternal { |
60 | | public: |
61 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisIndexRangePB> |
62 | | _instance; |
63 | | } _RedisIndexRangePB_default_instance_; |
64 | | class RedisIndexBoundPBDefaultTypeInternal { |
65 | | public: |
66 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisIndexBoundPB> |
67 | | _instance; |
68 | | } _RedisIndexBoundPB_default_instance_; |
69 | | class RedisSubKeyBoundPBDefaultTypeInternal { |
70 | | public: |
71 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisSubKeyBoundPB> |
72 | | _instance; |
73 | | } _RedisSubKeyBoundPB_default_instance_; |
74 | | class RedisKeyValueSubKeyPBDefaultTypeInternal { |
75 | | public: |
76 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisKeyValueSubKeyPB> |
77 | | _instance; |
78 | | ::google::protobuf::internal::ArenaStringPtr string_subkey_; |
79 | | ::google::protobuf::int64 timestamp_subkey_; |
80 | | double double_subkey_; |
81 | | } _RedisKeyValueSubKeyPB_default_instance_; |
82 | | class RedisKeyValuePBDefaultTypeInternal { |
83 | | public: |
84 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisKeyValuePB> |
85 | | _instance; |
86 | | } _RedisKeyValuePB_default_instance_; |
87 | | class SortedSetOptionsPBDefaultTypeInternal { |
88 | | public: |
89 | | ::google::protobuf::internal::ExplicitlyConstructed<SortedSetOptionsPB> |
90 | | _instance; |
91 | | } _SortedSetOptionsPB_default_instance_; |
92 | | class RedisSetRequestPBDefaultTypeInternal { |
93 | | public: |
94 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisSetRequestPB> |
95 | | _instance; |
96 | | } _RedisSetRequestPB_default_instance_; |
97 | | class RedisGetRequestPBDefaultTypeInternal { |
98 | | public: |
99 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisGetRequestPB> |
100 | | _instance; |
101 | | } _RedisGetRequestPB_default_instance_; |
102 | | class RedisCollectionGetRangeRequestPBDefaultTypeInternal { |
103 | | public: |
104 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisCollectionGetRangeRequestPB> |
105 | | _instance; |
106 | | } _RedisCollectionGetRangeRequestPB_default_instance_; |
107 | | class RedisNoOpRequestPBDefaultTypeInternal { |
108 | | public: |
109 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisNoOpRequestPB> |
110 | | _instance; |
111 | | } _RedisNoOpRequestPB_default_instance_; |
112 | | class RedisSetTtlRequestPBDefaultTypeInternal { |
113 | | public: |
114 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisSetTtlRequestPB> |
115 | | _instance; |
116 | | ::google::protobuf::int64 ttl_; |
117 | | ::google::protobuf::int64 absolute_time_; |
118 | | } _RedisSetTtlRequestPB_default_instance_; |
119 | | class RedisGetTtlRequestPBDefaultTypeInternal { |
120 | | public: |
121 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisGetTtlRequestPB> |
122 | | _instance; |
123 | | } _RedisGetTtlRequestPB_default_instance_; |
124 | | class RedisKeysRequestPBDefaultTypeInternal { |
125 | | public: |
126 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisKeysRequestPB> |
127 | | _instance; |
128 | | } _RedisKeysRequestPB_default_instance_; |
129 | | class RedisGetForRenameRequestPBDefaultTypeInternal { |
130 | | public: |
131 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisGetForRenameRequestPB> |
132 | | _instance; |
133 | | } _RedisGetForRenameRequestPB_default_instance_; |
134 | | class RedisGetSetRequestPBDefaultTypeInternal { |
135 | | public: |
136 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisGetSetRequestPB> |
137 | | _instance; |
138 | | } _RedisGetSetRequestPB_default_instance_; |
139 | | class RedisAppendRequestPBDefaultTypeInternal { |
140 | | public: |
141 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisAppendRequestPB> |
142 | | _instance; |
143 | | } _RedisAppendRequestPB_default_instance_; |
144 | | class RedisStrLenRequestPBDefaultTypeInternal { |
145 | | public: |
146 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisStrLenRequestPB> |
147 | | _instance; |
148 | | } _RedisStrLenRequestPB_default_instance_; |
149 | | class RedisDelRequestPBDefaultTypeInternal { |
150 | | public: |
151 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisDelRequestPB> |
152 | | _instance; |
153 | | } _RedisDelRequestPB_default_instance_; |
154 | | class RedisExistsRequestPBDefaultTypeInternal { |
155 | | public: |
156 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisExistsRequestPB> |
157 | | _instance; |
158 | | } _RedisExistsRequestPB_default_instance_; |
159 | | class RedisSetRangeRequestPBDefaultTypeInternal { |
160 | | public: |
161 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisSetRangeRequestPB> |
162 | | _instance; |
163 | | } _RedisSetRangeRequestPB_default_instance_; |
164 | | class RedisGetRangeRequestPBDefaultTypeInternal { |
165 | | public: |
166 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisGetRangeRequestPB> |
167 | | _instance; |
168 | | } _RedisGetRangeRequestPB_default_instance_; |
169 | | class RedisIncrRequestPBDefaultTypeInternal { |
170 | | public: |
171 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisIncrRequestPB> |
172 | | _instance; |
173 | | } _RedisIncrRequestPB_default_instance_; |
174 | | class RedisPushRequestPBDefaultTypeInternal { |
175 | | public: |
176 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisPushRequestPB> |
177 | | _instance; |
178 | | } _RedisPushRequestPB_default_instance_; |
179 | | class RedisInsertRequestPBDefaultTypeInternal { |
180 | | public: |
181 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisInsertRequestPB> |
182 | | _instance; |
183 | | } _RedisInsertRequestPB_default_instance_; |
184 | | class RedisPopRequestPBDefaultTypeInternal { |
185 | | public: |
186 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisPopRequestPB> |
187 | | _instance; |
188 | | } _RedisPopRequestPB_default_instance_; |
189 | | class RedisAddRequestPBDefaultTypeInternal { |
190 | | public: |
191 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisAddRequestPB> |
192 | | _instance; |
193 | | } _RedisAddRequestPB_default_instance_; |
194 | | class RedisResponsePBDefaultTypeInternal { |
195 | | public: |
196 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisResponsePB> |
197 | | _instance; |
198 | | ::google::protobuf::int64 int_response_; |
199 | | ::google::protobuf::internal::ArenaStringPtr string_response_; |
200 | | const ::yb::RedisArrayPB* array_response_; |
201 | | ::google::protobuf::internal::ArenaStringPtr status_response_; |
202 | | ::google::protobuf::internal::ArenaStringPtr encoded_response_; |
203 | | } _RedisResponsePB_default_instance_; |
204 | | class RedisArrayPBDefaultTypeInternal { |
205 | | public: |
206 | | ::google::protobuf::internal::ExplicitlyConstructed<RedisArrayPB> |
207 | | _instance; |
208 | | } _RedisArrayPB_default_instance_; |
209 | | } // namespace yb |
210 | | namespace protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto { |
211 | 28.1k | void InitDefaultsRedisWriteRequestPBImpl() { |
212 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
213 | | |
214 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
215 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
216 | | #else |
217 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
218 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
219 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRequestPB(); |
220 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetSetRequestPB(); |
221 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAppendRequestPB(); |
222 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisDelRequestPB(); |
223 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRangeRequestPB(); |
224 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIncrRequestPB(); |
225 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPushRequestPB(); |
226 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisInsertRequestPB(); |
227 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPopRequestPB(); |
228 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAddRequestPB(); |
229 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetTtlRequestPB(); |
230 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisNoOpRequestPB(); |
231 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB(); |
232 | 28.1k | { |
233 | 28.1k | void* ptr = &::yb::_RedisWriteRequestPB_default_instance_; |
234 | 28.1k | new (ptr) ::yb::RedisWriteRequestPB(); |
235 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
236 | 28.1k | } |
237 | 28.1k | ::yb::RedisWriteRequestPB::InitAsDefaultInstance(); |
238 | 28.1k | } |
239 | | |
240 | 221k | void InitDefaultsRedisWriteRequestPB() { |
241 | 221k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
242 | 221k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisWriteRequestPBImpl); |
243 | 221k | } |
244 | | |
245 | 28.1k | void InitDefaultsRedisReadRequestPBImpl() { |
246 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
247 | | |
248 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
249 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
250 | | #else |
251 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
252 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
253 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRequestPB(); |
254 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisStrLenRequestPB(); |
255 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisExistsRequestPB(); |
256 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRangeRequestPB(); |
257 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisCollectionGetRangeRequestPB(); |
258 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetTtlRequestPB(); |
259 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeysRequestPB(); |
260 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetForRenameRequestPB(); |
261 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB(); |
262 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyRangePB(); |
263 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexRangePB(); |
264 | 28.1k | { |
265 | 28.1k | void* ptr = &::yb::_RedisReadRequestPB_default_instance_; |
266 | 28.1k | new (ptr) ::yb::RedisReadRequestPB(); |
267 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
268 | 28.1k | } |
269 | 28.1k | ::yb::RedisReadRequestPB::InitAsDefaultInstance(); |
270 | 28.1k | } |
271 | | |
272 | 160k | void InitDefaultsRedisReadRequestPB() { |
273 | 160k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
274 | 160k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisReadRequestPBImpl); |
275 | 160k | } |
276 | | |
277 | 28.1k | void InitDefaultsRedisSubKeyRangePBImpl() { |
278 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
279 | | |
280 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
281 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
282 | | #else |
283 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
284 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
285 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyBoundPB(); |
286 | 28.1k | { |
287 | 28.1k | void* ptr = &::yb::_RedisSubKeyRangePB_default_instance_; |
288 | 28.1k | new (ptr) ::yb::RedisSubKeyRangePB(); |
289 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
290 | 28.1k | } |
291 | 28.1k | ::yb::RedisSubKeyRangePB::InitAsDefaultInstance(); |
292 | 28.1k | } |
293 | | |
294 | 71.9k | void InitDefaultsRedisSubKeyRangePB() { |
295 | 71.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
296 | 71.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSubKeyRangePBImpl); |
297 | 71.9k | } |
298 | | |
299 | 28.1k | void InitDefaultsRedisIndexRangePBImpl() { |
300 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
301 | | |
302 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
303 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
304 | | #else |
305 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
306 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
307 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexBoundPB(); |
308 | 28.1k | { |
309 | 28.1k | void* ptr = &::yb::_RedisIndexRangePB_default_instance_; |
310 | 28.1k | new (ptr) ::yb::RedisIndexRangePB(); |
311 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
312 | 28.1k | } |
313 | 28.1k | ::yb::RedisIndexRangePB::InitAsDefaultInstance(); |
314 | 28.1k | } |
315 | | |
316 | 56.4k | void InitDefaultsRedisIndexRangePB() { |
317 | 56.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
318 | 56.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIndexRangePBImpl); |
319 | 56.4k | } |
320 | | |
321 | 28.1k | void InitDefaultsRedisIndexBoundPBImpl() { |
322 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
323 | | |
324 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
325 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
326 | | #else |
327 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
328 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
329 | 28.1k | { |
330 | 28.1k | void* ptr = &::yb::_RedisIndexBoundPB_default_instance_; |
331 | 28.1k | new (ptr) ::yb::RedisIndexBoundPB(); |
332 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
333 | 28.1k | } |
334 | 28.1k | ::yb::RedisIndexBoundPB::InitAsDefaultInstance(); |
335 | 28.1k | } |
336 | | |
337 | 56.4k | void InitDefaultsRedisIndexBoundPB() { |
338 | 56.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
339 | 56.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIndexBoundPBImpl); |
340 | 56.4k | } |
341 | | |
342 | 28.1k | void InitDefaultsRedisSubKeyBoundPBImpl() { |
343 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
344 | | |
345 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
346 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
347 | | #else |
348 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
349 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
350 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB(); |
351 | 28.1k | { |
352 | 28.1k | void* ptr = &::yb::_RedisSubKeyBoundPB_default_instance_; |
353 | 28.1k | new (ptr) ::yb::RedisSubKeyBoundPB(); |
354 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
355 | 28.1k | } |
356 | 28.1k | ::yb::RedisSubKeyBoundPB::InitAsDefaultInstance(); |
357 | 28.1k | } |
358 | | |
359 | 87.6k | void InitDefaultsRedisSubKeyBoundPB() { |
360 | 87.6k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
361 | 87.6k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSubKeyBoundPBImpl); |
362 | 87.6k | } |
363 | | |
364 | 28.1k | void InitDefaultsRedisKeyValueSubKeyPBImpl() { |
365 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
366 | | |
367 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
368 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
369 | | #else |
370 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
371 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
372 | 28.1k | { |
373 | 28.1k | void* ptr = &::yb::_RedisKeyValueSubKeyPB_default_instance_; |
374 | 28.1k | new (ptr) ::yb::RedisKeyValueSubKeyPB(); |
375 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
376 | 28.1k | } |
377 | 28.1k | ::yb::RedisKeyValueSubKeyPB::InitAsDefaultInstance(); |
378 | 28.1k | } |
379 | | |
380 | 278k | void InitDefaultsRedisKeyValueSubKeyPB() { |
381 | 278k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
382 | 278k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeyValueSubKeyPBImpl); |
383 | 278k | } |
384 | | |
385 | 28.1k | void InitDefaultsRedisKeyValuePBImpl() { |
386 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
387 | | |
388 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
389 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
390 | | #else |
391 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
392 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
393 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB(); |
394 | 28.1k | { |
395 | 28.1k | void* ptr = &::yb::_RedisKeyValuePB_default_instance_; |
396 | 28.1k | new (ptr) ::yb::RedisKeyValuePB(); |
397 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
398 | 28.1k | } |
399 | 28.1k | ::yb::RedisKeyValuePB::InitAsDefaultInstance(); |
400 | 28.1k | } |
401 | | |
402 | 356k | void InitDefaultsRedisKeyValuePB() { |
403 | 356k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
404 | 356k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeyValuePBImpl); |
405 | 356k | } |
406 | | |
407 | 28.1k | void InitDefaultsSortedSetOptionsPBImpl() { |
408 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
409 | | |
410 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
411 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
412 | | #else |
413 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
414 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
415 | 28.1k | { |
416 | 28.1k | void* ptr = &::yb::_SortedSetOptionsPB_default_instance_; |
417 | 28.1k | new (ptr) ::yb::SortedSetOptionsPB(); |
418 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
419 | 28.1k | } |
420 | 28.1k | ::yb::SortedSetOptionsPB::InitAsDefaultInstance(); |
421 | 28.1k | } |
422 | | |
423 | 86.8k | void InitDefaultsSortedSetOptionsPB() { |
424 | 86.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
425 | 86.8k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSortedSetOptionsPBImpl); |
426 | 86.8k | } |
427 | | |
428 | 28.1k | void InitDefaultsRedisSetRequestPBImpl() { |
429 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
430 | | |
431 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
432 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
433 | | #else |
434 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
435 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
436 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsSortedSetOptionsPB(); |
437 | 28.1k | { |
438 | 28.1k | void* ptr = &::yb::_RedisSetRequestPB_default_instance_; |
439 | 28.1k | new (ptr) ::yb::RedisSetRequestPB(); |
440 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
441 | 28.1k | } |
442 | 28.1k | ::yb::RedisSetRequestPB::InitAsDefaultInstance(); |
443 | 28.1k | } |
444 | | |
445 | 222k | void InitDefaultsRedisSetRequestPB() { |
446 | 222k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
447 | 222k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetRequestPBImpl); |
448 | 222k | } |
449 | | |
450 | 28.1k | void InitDefaultsRedisGetRequestPBImpl() { |
451 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
452 | | |
453 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
454 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
455 | | #else |
456 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
457 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
458 | 28.1k | { |
459 | 28.1k | void* ptr = &::yb::_RedisGetRequestPB_default_instance_; |
460 | 28.1k | new (ptr) ::yb::RedisGetRequestPB(); |
461 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
462 | 28.1k | } |
463 | 28.1k | ::yb::RedisGetRequestPB::InitAsDefaultInstance(); |
464 | 28.1k | } |
465 | | |
466 | 216k | void InitDefaultsRedisGetRequestPB() { |
467 | 216k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
468 | 216k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetRequestPBImpl); |
469 | 216k | } |
470 | | |
471 | 28.1k | void InitDefaultsRedisCollectionGetRangeRequestPBImpl() { |
472 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
473 | | |
474 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
475 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
476 | | #else |
477 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
478 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
479 | 28.1k | { |
480 | 28.1k | void* ptr = &::yb::_RedisCollectionGetRangeRequestPB_default_instance_; |
481 | 28.1k | new (ptr) ::yb::RedisCollectionGetRangeRequestPB(); |
482 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
483 | 28.1k | } |
484 | 28.1k | ::yb::RedisCollectionGetRangeRequestPB::InitAsDefaultInstance(); |
485 | 28.1k | } |
486 | | |
487 | 83.0k | void InitDefaultsRedisCollectionGetRangeRequestPB() { |
488 | 83.0k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
489 | 83.0k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisCollectionGetRangeRequestPBImpl); |
490 | 83.0k | } |
491 | | |
492 | 28.1k | void InitDefaultsRedisNoOpRequestPBImpl() { |
493 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
494 | | |
495 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
496 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
497 | | #else |
498 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
499 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
500 | 28.1k | { |
501 | 28.1k | void* ptr = &::yb::_RedisNoOpRequestPB_default_instance_; |
502 | 28.1k | new (ptr) ::yb::RedisNoOpRequestPB(); |
503 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
504 | 28.1k | } |
505 | 28.1k | ::yb::RedisNoOpRequestPB::InitAsDefaultInstance(); |
506 | 28.1k | } |
507 | | |
508 | 56.3k | void InitDefaultsRedisNoOpRequestPB() { |
509 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
510 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisNoOpRequestPBImpl); |
511 | 56.3k | } |
512 | | |
513 | 28.1k | void InitDefaultsRedisSetTtlRequestPBImpl() { |
514 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
515 | | |
516 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
517 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
518 | | #else |
519 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
520 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
521 | 28.1k | { |
522 | 28.1k | void* ptr = &::yb::_RedisSetTtlRequestPB_default_instance_; |
523 | 28.1k | new (ptr) ::yb::RedisSetTtlRequestPB(); |
524 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
525 | 28.1k | } |
526 | 28.1k | ::yb::RedisSetTtlRequestPB::InitAsDefaultInstance(); |
527 | 28.1k | } |
528 | | |
529 | 56.4k | void InitDefaultsRedisSetTtlRequestPB() { |
530 | 56.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
531 | 56.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetTtlRequestPBImpl); |
532 | 56.4k | } |
533 | | |
534 | 28.1k | void InitDefaultsRedisGetTtlRequestPBImpl() { |
535 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
536 | | |
537 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
538 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
539 | | #else |
540 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
541 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
542 | 28.1k | { |
543 | 28.1k | void* ptr = &::yb::_RedisGetTtlRequestPB_default_instance_; |
544 | 28.1k | new (ptr) ::yb::RedisGetTtlRequestPB(); |
545 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
546 | 28.1k | } |
547 | 28.1k | ::yb::RedisGetTtlRequestPB::InitAsDefaultInstance(); |
548 | 28.1k | } |
549 | | |
550 | 57.0k | void InitDefaultsRedisGetTtlRequestPB() { |
551 | 57.0k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
552 | 57.0k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetTtlRequestPBImpl); |
553 | 57.0k | } |
554 | | |
555 | 28.1k | void InitDefaultsRedisKeysRequestPBImpl() { |
556 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
557 | | |
558 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
559 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
560 | | #else |
561 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
562 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
563 | 28.1k | { |
564 | 28.1k | void* ptr = &::yb::_RedisKeysRequestPB_default_instance_; |
565 | 28.1k | new (ptr) ::yb::RedisKeysRequestPB(); |
566 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
567 | 28.1k | } |
568 | 28.1k | ::yb::RedisKeysRequestPB::InitAsDefaultInstance(); |
569 | 28.1k | } |
570 | | |
571 | 57.9k | void InitDefaultsRedisKeysRequestPB() { |
572 | 57.9k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
573 | 57.9k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeysRequestPBImpl); |
574 | 57.9k | } |
575 | | |
576 | 28.1k | void InitDefaultsRedisGetForRenameRequestPBImpl() { |
577 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
578 | | |
579 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
580 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
581 | | #else |
582 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
583 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
584 | 28.1k | { |
585 | 28.1k | void* ptr = &::yb::_RedisGetForRenameRequestPB_default_instance_; |
586 | 28.1k | new (ptr) ::yb::RedisGetForRenameRequestPB(); |
587 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
588 | 28.1k | } |
589 | 28.1k | ::yb::RedisGetForRenameRequestPB::InitAsDefaultInstance(); |
590 | 28.1k | } |
591 | | |
592 | 56.3k | void InitDefaultsRedisGetForRenameRequestPB() { |
593 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
594 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetForRenameRequestPBImpl); |
595 | 56.3k | } |
596 | | |
597 | 28.1k | void InitDefaultsRedisGetSetRequestPBImpl() { |
598 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
599 | | |
600 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
601 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
602 | | #else |
603 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
604 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
605 | 28.1k | { |
606 | 28.1k | void* ptr = &::yb::_RedisGetSetRequestPB_default_instance_; |
607 | 28.1k | new (ptr) ::yb::RedisGetSetRequestPB(); |
608 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
609 | 28.1k | } |
610 | 28.1k | ::yb::RedisGetSetRequestPB::InitAsDefaultInstance(); |
611 | 28.1k | } |
612 | | |
613 | 56.3k | void InitDefaultsRedisGetSetRequestPB() { |
614 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
615 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetSetRequestPBImpl); |
616 | 56.3k | } |
617 | | |
618 | 28.1k | void InitDefaultsRedisAppendRequestPBImpl() { |
619 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
620 | | |
621 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
622 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
623 | | #else |
624 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
625 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
626 | 28.1k | { |
627 | 28.1k | void* ptr = &::yb::_RedisAppendRequestPB_default_instance_; |
628 | 28.1k | new (ptr) ::yb::RedisAppendRequestPB(); |
629 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
630 | 28.1k | } |
631 | 28.1k | ::yb::RedisAppendRequestPB::InitAsDefaultInstance(); |
632 | 28.1k | } |
633 | | |
634 | 56.3k | void InitDefaultsRedisAppendRequestPB() { |
635 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
636 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisAppendRequestPBImpl); |
637 | 56.3k | } |
638 | | |
639 | 28.1k | void InitDefaultsRedisStrLenRequestPBImpl() { |
640 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
641 | | |
642 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
643 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
644 | | #else |
645 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
646 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
647 | 28.1k | { |
648 | 28.1k | void* ptr = &::yb::_RedisStrLenRequestPB_default_instance_; |
649 | 28.1k | new (ptr) ::yb::RedisStrLenRequestPB(); |
650 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
651 | 28.1k | } |
652 | 28.1k | ::yb::RedisStrLenRequestPB::InitAsDefaultInstance(); |
653 | 28.1k | } |
654 | | |
655 | 56.3k | void InitDefaultsRedisStrLenRequestPB() { |
656 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
657 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisStrLenRequestPBImpl); |
658 | 56.3k | } |
659 | | |
660 | 28.1k | void InitDefaultsRedisDelRequestPBImpl() { |
661 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
662 | | |
663 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
664 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
665 | | #else |
666 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
667 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
668 | 28.1k | { |
669 | 28.1k | void* ptr = &::yb::_RedisDelRequestPB_default_instance_; |
670 | 28.1k | new (ptr) ::yb::RedisDelRequestPB(); |
671 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
672 | 28.1k | } |
673 | 28.1k | ::yb::RedisDelRequestPB::InitAsDefaultInstance(); |
674 | 28.1k | } |
675 | | |
676 | 56.4k | void InitDefaultsRedisDelRequestPB() { |
677 | 56.4k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
678 | 56.4k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisDelRequestPBImpl); |
679 | 56.4k | } |
680 | | |
681 | 28.1k | void InitDefaultsRedisExistsRequestPBImpl() { |
682 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
683 | | |
684 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
685 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
686 | | #else |
687 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
688 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
689 | 28.1k | { |
690 | 28.1k | void* ptr = &::yb::_RedisExistsRequestPB_default_instance_; |
691 | 28.1k | new (ptr) ::yb::RedisExistsRequestPB(); |
692 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
693 | 28.1k | } |
694 | 28.1k | ::yb::RedisExistsRequestPB::InitAsDefaultInstance(); |
695 | 28.1k | } |
696 | | |
697 | 56.3k | void InitDefaultsRedisExistsRequestPB() { |
698 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
699 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisExistsRequestPBImpl); |
700 | 56.3k | } |
701 | | |
702 | 28.1k | void InitDefaultsRedisSetRangeRequestPBImpl() { |
703 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
704 | | |
705 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
706 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
707 | | #else |
708 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
709 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
710 | 28.1k | { |
711 | 28.1k | void* ptr = &::yb::_RedisSetRangeRequestPB_default_instance_; |
712 | 28.1k | new (ptr) ::yb::RedisSetRangeRequestPB(); |
713 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
714 | 28.1k | } |
715 | 28.1k | ::yb::RedisSetRangeRequestPB::InitAsDefaultInstance(); |
716 | 28.1k | } |
717 | | |
718 | 56.3k | void InitDefaultsRedisSetRangeRequestPB() { |
719 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
720 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetRangeRequestPBImpl); |
721 | 56.3k | } |
722 | | |
723 | 28.1k | void InitDefaultsRedisGetRangeRequestPBImpl() { |
724 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
725 | | |
726 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
727 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
728 | | #else |
729 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
730 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
731 | 28.1k | { |
732 | 28.1k | void* ptr = &::yb::_RedisGetRangeRequestPB_default_instance_; |
733 | 28.1k | new (ptr) ::yb::RedisGetRangeRequestPB(); |
734 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
735 | 28.1k | } |
736 | 28.1k | ::yb::RedisGetRangeRequestPB::InitAsDefaultInstance(); |
737 | 28.1k | } |
738 | | |
739 | 56.3k | void InitDefaultsRedisGetRangeRequestPB() { |
740 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
741 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetRangeRequestPBImpl); |
742 | 56.3k | } |
743 | | |
744 | 28.1k | void InitDefaultsRedisIncrRequestPBImpl() { |
745 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
746 | | |
747 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
748 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
749 | | #else |
750 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
751 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
752 | 28.1k | { |
753 | 28.1k | void* ptr = &::yb::_RedisIncrRequestPB_default_instance_; |
754 | 28.1k | new (ptr) ::yb::RedisIncrRequestPB(); |
755 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
756 | 28.1k | } |
757 | 28.1k | ::yb::RedisIncrRequestPB::InitAsDefaultInstance(); |
758 | 28.1k | } |
759 | | |
760 | 56.3k | void InitDefaultsRedisIncrRequestPB() { |
761 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
762 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIncrRequestPBImpl); |
763 | 56.3k | } |
764 | | |
765 | 28.1k | void InitDefaultsRedisPushRequestPBImpl() { |
766 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
767 | | |
768 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
769 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
770 | | #else |
771 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
772 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
773 | 28.1k | { |
774 | 28.1k | void* ptr = &::yb::_RedisPushRequestPB_default_instance_; |
775 | 28.1k | new (ptr) ::yb::RedisPushRequestPB(); |
776 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
777 | 28.1k | } |
778 | 28.1k | ::yb::RedisPushRequestPB::InitAsDefaultInstance(); |
779 | 28.1k | } |
780 | | |
781 | 56.3k | void InitDefaultsRedisPushRequestPB() { |
782 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
783 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisPushRequestPBImpl); |
784 | 56.3k | } |
785 | | |
786 | 28.1k | void InitDefaultsRedisInsertRequestPBImpl() { |
787 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
788 | | |
789 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
790 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
791 | | #else |
792 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
793 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
794 | 28.1k | { |
795 | 28.1k | void* ptr = &::yb::_RedisInsertRequestPB_default_instance_; |
796 | 28.1k | new (ptr) ::yb::RedisInsertRequestPB(); |
797 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
798 | 28.1k | } |
799 | 28.1k | ::yb::RedisInsertRequestPB::InitAsDefaultInstance(); |
800 | 28.1k | } |
801 | | |
802 | 56.3k | void InitDefaultsRedisInsertRequestPB() { |
803 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
804 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisInsertRequestPBImpl); |
805 | 56.3k | } |
806 | | |
807 | 28.1k | void InitDefaultsRedisPopRequestPBImpl() { |
808 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
809 | | |
810 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
811 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
812 | | #else |
813 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
814 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
815 | 28.1k | { |
816 | 28.1k | void* ptr = &::yb::_RedisPopRequestPB_default_instance_; |
817 | 28.1k | new (ptr) ::yb::RedisPopRequestPB(); |
818 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
819 | 28.1k | } |
820 | 28.1k | ::yb::RedisPopRequestPB::InitAsDefaultInstance(); |
821 | 28.1k | } |
822 | | |
823 | 56.3k | void InitDefaultsRedisPopRequestPB() { |
824 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
825 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisPopRequestPBImpl); |
826 | 56.3k | } |
827 | | |
828 | 28.1k | void InitDefaultsRedisAddRequestPBImpl() { |
829 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
830 | | |
831 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
832 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
833 | | #else |
834 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
835 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
836 | 28.1k | { |
837 | 28.1k | void* ptr = &::yb::_RedisAddRequestPB_default_instance_; |
838 | 28.1k | new (ptr) ::yb::RedisAddRequestPB(); |
839 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
840 | 28.1k | } |
841 | 28.1k | ::yb::RedisAddRequestPB::InitAsDefaultInstance(); |
842 | 28.1k | } |
843 | | |
844 | 56.3k | void InitDefaultsRedisAddRequestPB() { |
845 | 56.3k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
846 | 56.3k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisAddRequestPBImpl); |
847 | 56.3k | } |
848 | | |
849 | 28.1k | void InitDefaultsRedisResponsePBImpl() { |
850 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
851 | | |
852 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
853 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
854 | | #else |
855 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
856 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
857 | 28.1k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisArrayPB(); |
858 | 28.1k | { |
859 | 28.1k | void* ptr = &::yb::_RedisResponsePB_default_instance_; |
860 | 28.1k | new (ptr) ::yb::RedisResponsePB(); |
861 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
862 | 28.1k | } |
863 | 28.1k | ::yb::RedisResponsePB::InitAsDefaultInstance(); |
864 | 28.1k | } |
865 | | |
866 | 981k | void InitDefaultsRedisResponsePB() { |
867 | 981k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
868 | 981k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisResponsePBImpl); |
869 | 981k | } |
870 | | |
871 | 28.1k | void InitDefaultsRedisArrayPBImpl() { |
872 | 28.1k | GOOGLE_PROTOBUF_VERIFY_VERSION; |
873 | | |
874 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
875 | | ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); |
876 | | #else |
877 | 28.1k | ::google::protobuf::internal::InitProtobufDefaults(); |
878 | 28.1k | #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
879 | 28.1k | { |
880 | 28.1k | void* ptr = &::yb::_RedisArrayPB_default_instance_; |
881 | 28.1k | new (ptr) ::yb::RedisArrayPB(); |
882 | 28.1k | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
883 | 28.1k | } |
884 | 28.1k | ::yb::RedisArrayPB::InitAsDefaultInstance(); |
885 | 28.1k | } |
886 | | |
887 | 95.5k | void InitDefaultsRedisArrayPB() { |
888 | 95.5k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
889 | 95.5k | ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisArrayPBImpl); |
890 | 95.5k | } |
891 | | |
892 | | ::google::protobuf::Metadata file_level_metadata[31]; |
893 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[9]; |
894 | | |
895 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
896 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisWriteRequestPB, _has_bits_), |
897 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisWriteRequestPB, _internal_metadata_), |
898 | | ~0u, // no _extensions_ |
899 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisWriteRequestPB, _oneof_case_[0]), |
900 | | ~0u, // no _weak_field_map_ |
901 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, set_request_), |
902 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, getset_request_), |
903 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, append_request_), |
904 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, del_request_), |
905 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, set_range_request_), |
906 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, incr_request_), |
907 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, push_request_), |
908 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, insert_request_), |
909 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, pop_request_), |
910 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, add_request_), |
911 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, set_ttl_request_), |
912 | | offsetof(::yb::RedisWriteRequestPBDefaultTypeInternal, no_op_request_), |
913 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisWriteRequestPB, key_value_), |
914 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisWriteRequestPB, request_), |
915 | | ~0u, |
916 | | ~0u, |
917 | | ~0u, |
918 | | ~0u, |
919 | | ~0u, |
920 | | ~0u, |
921 | | ~0u, |
922 | | ~0u, |
923 | | ~0u, |
924 | | ~0u, |
925 | | ~0u, |
926 | | ~0u, |
927 | | 0, |
928 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, _has_bits_), |
929 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, _internal_metadata_), |
930 | | ~0u, // no _extensions_ |
931 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, _oneof_case_[0]), |
932 | | ~0u, // no _weak_field_map_ |
933 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, get_request_), |
934 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, strlen_request_), |
935 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, exists_request_), |
936 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, get_range_request_), |
937 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, get_collection_range_request_), |
938 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, get_ttl_request_), |
939 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, keys_request_), |
940 | | offsetof(::yb::RedisReadRequestPBDefaultTypeInternal, get_for_rename_request_), |
941 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, key_value_), |
942 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, subkey_range_), |
943 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, index_range_), |
944 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, range_request_limit_), |
945 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisReadRequestPB, request_), |
946 | | ~0u, |
947 | | ~0u, |
948 | | ~0u, |
949 | | ~0u, |
950 | | ~0u, |
951 | | ~0u, |
952 | | ~0u, |
953 | | ~0u, |
954 | | 0, |
955 | | 1, |
956 | | 2, |
957 | | 3, |
958 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyRangePB, _has_bits_), |
959 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyRangePB, _internal_metadata_), |
960 | | ~0u, // no _extensions_ |
961 | | ~0u, // no _oneof_case_ |
962 | | ~0u, // no _weak_field_map_ |
963 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyRangePB, lower_bound_), |
964 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyRangePB, upper_bound_), |
965 | | 0, |
966 | | 1, |
967 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexRangePB, _has_bits_), |
968 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexRangePB, _internal_metadata_), |
969 | | ~0u, // no _extensions_ |
970 | | ~0u, // no _oneof_case_ |
971 | | ~0u, // no _weak_field_map_ |
972 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexRangePB, lower_bound_), |
973 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexRangePB, upper_bound_), |
974 | | 0, |
975 | | 1, |
976 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexBoundPB, _has_bits_), |
977 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexBoundPB, _internal_metadata_), |
978 | | ~0u, // no _extensions_ |
979 | | ~0u, // no _oneof_case_ |
980 | | ~0u, // no _weak_field_map_ |
981 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIndexBoundPB, index_), |
982 | | 0, |
983 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyBoundPB, _has_bits_), |
984 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyBoundPB, _internal_metadata_), |
985 | | ~0u, // no _extensions_ |
986 | | ~0u, // no _oneof_case_ |
987 | | ~0u, // no _weak_field_map_ |
988 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyBoundPB, subkey_bound_), |
989 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyBoundPB, infinity_type_), |
990 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSubKeyBoundPB, is_exclusive_), |
991 | | 0, |
992 | | 2, |
993 | | 1, |
994 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValueSubKeyPB, _has_bits_), |
995 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValueSubKeyPB, _internal_metadata_), |
996 | | ~0u, // no _extensions_ |
997 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValueSubKeyPB, _oneof_case_[0]), |
998 | | ~0u, // no _weak_field_map_ |
999 | | offsetof(::yb::RedisKeyValueSubKeyPBDefaultTypeInternal, string_subkey_), |
1000 | | offsetof(::yb::RedisKeyValueSubKeyPBDefaultTypeInternal, timestamp_subkey_), |
1001 | | offsetof(::yb::RedisKeyValueSubKeyPBDefaultTypeInternal, double_subkey_), |
1002 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValueSubKeyPB, subkey_), |
1003 | | ~0u, |
1004 | | ~0u, |
1005 | | ~0u, |
1006 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, _has_bits_), |
1007 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, _internal_metadata_), |
1008 | | ~0u, // no _extensions_ |
1009 | | ~0u, // no _oneof_case_ |
1010 | | ~0u, // no _weak_field_map_ |
1011 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, hash_code_), |
1012 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, key_), |
1013 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, type_), |
1014 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, subkey_), |
1015 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, index_), |
1016 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeyValuePB, value_), |
1017 | | 1, |
1018 | | 0, |
1019 | | 3, |
1020 | | ~0u, |
1021 | | 2, |
1022 | | ~0u, |
1023 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SortedSetOptionsPB, _has_bits_), |
1024 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SortedSetOptionsPB, _internal_metadata_), |
1025 | | ~0u, // no _extensions_ |
1026 | | ~0u, // no _oneof_case_ |
1027 | | ~0u, // no _weak_field_map_ |
1028 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SortedSetOptionsPB, update_options_), |
1029 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SortedSetOptionsPB, ch_), |
1030 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SortedSetOptionsPB, incr_), |
1031 | | 2, |
1032 | | 0, |
1033 | | 1, |
1034 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, _has_bits_), |
1035 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, _internal_metadata_), |
1036 | | ~0u, // no _extensions_ |
1037 | | ~0u, // no _oneof_case_ |
1038 | | ~0u, // no _weak_field_map_ |
1039 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, expect_ok_response_), |
1040 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, ttl_), |
1041 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, mode_), |
1042 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRequestPB, sorted_set_options_), |
1043 | | 1, |
1044 | | 3, |
1045 | | 2, |
1046 | | 0, |
1047 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRequestPB, _has_bits_), |
1048 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRequestPB, _internal_metadata_), |
1049 | | ~0u, // no _extensions_ |
1050 | | ~0u, // no _oneof_case_ |
1051 | | ~0u, // no _weak_field_map_ |
1052 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRequestPB, request_type_), |
1053 | | 0, |
1054 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisCollectionGetRangeRequestPB, _has_bits_), |
1055 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisCollectionGetRangeRequestPB, _internal_metadata_), |
1056 | | ~0u, // no _extensions_ |
1057 | | ~0u, // no _oneof_case_ |
1058 | | ~0u, // no _weak_field_map_ |
1059 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisCollectionGetRangeRequestPB, request_type_), |
1060 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisCollectionGetRangeRequestPB, with_scores_), |
1061 | | 1, |
1062 | | 0, |
1063 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisNoOpRequestPB, _has_bits_), |
1064 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisNoOpRequestPB, _internal_metadata_), |
1065 | | ~0u, // no _extensions_ |
1066 | | ~0u, // no _oneof_case_ |
1067 | | ~0u, // no _weak_field_map_ |
1068 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetTtlRequestPB, _has_bits_), |
1069 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetTtlRequestPB, _internal_metadata_), |
1070 | | ~0u, // no _extensions_ |
1071 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetTtlRequestPB, _oneof_case_[0]), |
1072 | | ~0u, // no _weak_field_map_ |
1073 | | offsetof(::yb::RedisSetTtlRequestPBDefaultTypeInternal, ttl_), |
1074 | | offsetof(::yb::RedisSetTtlRequestPBDefaultTypeInternal, absolute_time_), |
1075 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetTtlRequestPB, expiration_), |
1076 | | ~0u, |
1077 | | ~0u, |
1078 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetTtlRequestPB, _has_bits_), |
1079 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetTtlRequestPB, _internal_metadata_), |
1080 | | ~0u, // no _extensions_ |
1081 | | ~0u, // no _oneof_case_ |
1082 | | ~0u, // no _weak_field_map_ |
1083 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetTtlRequestPB, return_seconds_), |
1084 | | 0, |
1085 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeysRequestPB, _has_bits_), |
1086 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeysRequestPB, _internal_metadata_), |
1087 | | ~0u, // no _extensions_ |
1088 | | ~0u, // no _oneof_case_ |
1089 | | ~0u, // no _weak_field_map_ |
1090 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeysRequestPB, pattern_), |
1091 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisKeysRequestPB, threshold_), |
1092 | | 0, |
1093 | | 1, |
1094 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetForRenameRequestPB, _has_bits_), |
1095 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetForRenameRequestPB, _internal_metadata_), |
1096 | | ~0u, // no _extensions_ |
1097 | | ~0u, // no _oneof_case_ |
1098 | | ~0u, // no _weak_field_map_ |
1099 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetSetRequestPB, _has_bits_), |
1100 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetSetRequestPB, _internal_metadata_), |
1101 | | ~0u, // no _extensions_ |
1102 | | ~0u, // no _oneof_case_ |
1103 | | ~0u, // no _weak_field_map_ |
1104 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAppendRequestPB, _has_bits_), |
1105 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAppendRequestPB, _internal_metadata_), |
1106 | | ~0u, // no _extensions_ |
1107 | | ~0u, // no _oneof_case_ |
1108 | | ~0u, // no _weak_field_map_ |
1109 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisStrLenRequestPB, _has_bits_), |
1110 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisStrLenRequestPB, _internal_metadata_), |
1111 | | ~0u, // no _extensions_ |
1112 | | ~0u, // no _oneof_case_ |
1113 | | ~0u, // no _weak_field_map_ |
1114 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisDelRequestPB, _has_bits_), |
1115 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisDelRequestPB, _internal_metadata_), |
1116 | | ~0u, // no _extensions_ |
1117 | | ~0u, // no _oneof_case_ |
1118 | | ~0u, // no _weak_field_map_ |
1119 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisExistsRequestPB, _has_bits_), |
1120 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisExistsRequestPB, _internal_metadata_), |
1121 | | ~0u, // no _extensions_ |
1122 | | ~0u, // no _oneof_case_ |
1123 | | ~0u, // no _weak_field_map_ |
1124 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRangeRequestPB, _has_bits_), |
1125 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRangeRequestPB, _internal_metadata_), |
1126 | | ~0u, // no _extensions_ |
1127 | | ~0u, // no _oneof_case_ |
1128 | | ~0u, // no _weak_field_map_ |
1129 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisSetRangeRequestPB, offset_), |
1130 | | 0, |
1131 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRangeRequestPB, _has_bits_), |
1132 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRangeRequestPB, _internal_metadata_), |
1133 | | ~0u, // no _extensions_ |
1134 | | ~0u, // no _oneof_case_ |
1135 | | ~0u, // no _weak_field_map_ |
1136 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRangeRequestPB, start_), |
1137 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisGetRangeRequestPB, end_), |
1138 | | 0, |
1139 | | 1, |
1140 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIncrRequestPB, _has_bits_), |
1141 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIncrRequestPB, _internal_metadata_), |
1142 | | ~0u, // no _extensions_ |
1143 | | ~0u, // no _oneof_case_ |
1144 | | ~0u, // no _weak_field_map_ |
1145 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIncrRequestPB, increment_int_), |
1146 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisIncrRequestPB, increment_float_), |
1147 | | 1, |
1148 | | 0, |
1149 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPushRequestPB, _has_bits_), |
1150 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPushRequestPB, _internal_metadata_), |
1151 | | ~0u, // no _extensions_ |
1152 | | ~0u, // no _oneof_case_ |
1153 | | ~0u, // no _weak_field_map_ |
1154 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPushRequestPB, side_), |
1155 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPushRequestPB, check_existence_), |
1156 | | 1, |
1157 | | 0, |
1158 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisInsertRequestPB, _has_bits_), |
1159 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisInsertRequestPB, _internal_metadata_), |
1160 | | ~0u, // no _extensions_ |
1161 | | ~0u, // no _oneof_case_ |
1162 | | ~0u, // no _weak_field_map_ |
1163 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisInsertRequestPB, order_), |
1164 | | 0, |
1165 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPopRequestPB, _has_bits_), |
1166 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPopRequestPB, _internal_metadata_), |
1167 | | ~0u, // no _extensions_ |
1168 | | ~0u, // no _oneof_case_ |
1169 | | ~0u, // no _weak_field_map_ |
1170 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPopRequestPB, side_), |
1171 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisPopRequestPB, count_), |
1172 | | 1, |
1173 | | 0, |
1174 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAddRequestPB, _has_bits_), |
1175 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAddRequestPB, _internal_metadata_), |
1176 | | ~0u, // no _extensions_ |
1177 | | ~0u, // no _oneof_case_ |
1178 | | ~0u, // no _weak_field_map_ |
1179 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAddRequestPB, mode_), |
1180 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisAddRequestPB, ch_), |
1181 | | 1, |
1182 | | 0, |
1183 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, _has_bits_), |
1184 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, _internal_metadata_), |
1185 | | ~0u, // no _extensions_ |
1186 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, _oneof_case_[0]), |
1187 | | ~0u, // no _weak_field_map_ |
1188 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, code_), |
1189 | | offsetof(::yb::RedisResponsePBDefaultTypeInternal, int_response_), |
1190 | | offsetof(::yb::RedisResponsePBDefaultTypeInternal, string_response_), |
1191 | | offsetof(::yb::RedisResponsePBDefaultTypeInternal, array_response_), |
1192 | | offsetof(::yb::RedisResponsePBDefaultTypeInternal, status_response_), |
1193 | | offsetof(::yb::RedisResponsePBDefaultTypeInternal, encoded_response_), |
1194 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, error_message_), |
1195 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, type_), |
1196 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisResponsePB, response_data_), |
1197 | | 1, |
1198 | | ~0u, |
1199 | | ~0u, |
1200 | | ~0u, |
1201 | | ~0u, |
1202 | | ~0u, |
1203 | | 0, |
1204 | | 2, |
1205 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisArrayPB, _has_bits_), |
1206 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisArrayPB, _internal_metadata_), |
1207 | | ~0u, // no _extensions_ |
1208 | | ~0u, // no _oneof_case_ |
1209 | | ~0u, // no _weak_field_map_ |
1210 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisArrayPB, elements_), |
1211 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::RedisArrayPB, encoded_), |
1212 | | ~0u, |
1213 | | 0, |
1214 | | }; |
1215 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1216 | | { 0, 19, sizeof(::yb::RedisWriteRequestPB)}, |
1217 | | { 32, 50, sizeof(::yb::RedisReadRequestPB)}, |
1218 | | { 62, 69, sizeof(::yb::RedisSubKeyRangePB)}, |
1219 | | { 71, 78, sizeof(::yb::RedisIndexRangePB)}, |
1220 | | { 80, 86, sizeof(::yb::RedisIndexBoundPB)}, |
1221 | | { 87, 95, sizeof(::yb::RedisSubKeyBoundPB)}, |
1222 | | { 98, 107, sizeof(::yb::RedisKeyValueSubKeyPB)}, |
1223 | | { 110, 121, sizeof(::yb::RedisKeyValuePB)}, |
1224 | | { 127, 135, sizeof(::yb::SortedSetOptionsPB)}, |
1225 | | { 138, 147, sizeof(::yb::RedisSetRequestPB)}, |
1226 | | { 151, 157, sizeof(::yb::RedisGetRequestPB)}, |
1227 | | { 158, 165, sizeof(::yb::RedisCollectionGetRangeRequestPB)}, |
1228 | | { 167, 172, sizeof(::yb::RedisNoOpRequestPB)}, |
1229 | | { 172, 180, sizeof(::yb::RedisSetTtlRequestPB)}, |
1230 | | { 182, 188, sizeof(::yb::RedisGetTtlRequestPB)}, |
1231 | | { 189, 196, sizeof(::yb::RedisKeysRequestPB)}, |
1232 | | { 198, 203, sizeof(::yb::RedisGetForRenameRequestPB)}, |
1233 | | { 203, 208, sizeof(::yb::RedisGetSetRequestPB)}, |
1234 | | { 208, 213, sizeof(::yb::RedisAppendRequestPB)}, |
1235 | | { 213, 218, sizeof(::yb::RedisStrLenRequestPB)}, |
1236 | | { 218, 223, sizeof(::yb::RedisDelRequestPB)}, |
1237 | | { 223, 228, sizeof(::yb::RedisExistsRequestPB)}, |
1238 | | { 228, 234, sizeof(::yb::RedisSetRangeRequestPB)}, |
1239 | | { 235, 242, sizeof(::yb::RedisGetRangeRequestPB)}, |
1240 | | { 244, 251, sizeof(::yb::RedisIncrRequestPB)}, |
1241 | | { 253, 260, sizeof(::yb::RedisPushRequestPB)}, |
1242 | | { 262, 268, sizeof(::yb::RedisInsertRequestPB)}, |
1243 | | { 269, 276, sizeof(::yb::RedisPopRequestPB)}, |
1244 | | { 278, 285, sizeof(::yb::RedisAddRequestPB)}, |
1245 | | { 287, 301, sizeof(::yb::RedisResponsePB)}, |
1246 | | { 309, 316, sizeof(::yb::RedisArrayPB)}, |
1247 | | }; |
1248 | | |
1249 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
1250 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisWriteRequestPB_default_instance_), |
1251 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisReadRequestPB_default_instance_), |
1252 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisSubKeyRangePB_default_instance_), |
1253 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisIndexRangePB_default_instance_), |
1254 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisIndexBoundPB_default_instance_), |
1255 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisSubKeyBoundPB_default_instance_), |
1256 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisKeyValueSubKeyPB_default_instance_), |
1257 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisKeyValuePB_default_instance_), |
1258 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_SortedSetOptionsPB_default_instance_), |
1259 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisSetRequestPB_default_instance_), |
1260 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisGetRequestPB_default_instance_), |
1261 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisCollectionGetRangeRequestPB_default_instance_), |
1262 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisNoOpRequestPB_default_instance_), |
1263 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisSetTtlRequestPB_default_instance_), |
1264 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisGetTtlRequestPB_default_instance_), |
1265 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisKeysRequestPB_default_instance_), |
1266 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisGetForRenameRequestPB_default_instance_), |
1267 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisGetSetRequestPB_default_instance_), |
1268 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisAppendRequestPB_default_instance_), |
1269 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisStrLenRequestPB_default_instance_), |
1270 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisDelRequestPB_default_instance_), |
1271 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisExistsRequestPB_default_instance_), |
1272 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisSetRangeRequestPB_default_instance_), |
1273 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisGetRangeRequestPB_default_instance_), |
1274 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisIncrRequestPB_default_instance_), |
1275 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisPushRequestPB_default_instance_), |
1276 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisInsertRequestPB_default_instance_), |
1277 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisPopRequestPB_default_instance_), |
1278 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisAddRequestPB_default_instance_), |
1279 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisResponsePB_default_instance_), |
1280 | | reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_RedisArrayPB_default_instance_), |
1281 | | }; |
1282 | | |
1283 | 815 | void protobuf_AssignDescriptors() { |
1284 | 815 | AddDescriptors(); |
1285 | 815 | ::google::protobuf::MessageFactory* factory = NULL; |
1286 | 815 | AssignDescriptors( |
1287 | 815 | "yb/common/redis_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
1288 | 815 | file_level_metadata, file_level_enum_descriptors, NULL); |
1289 | 815 | } |
1290 | | |
1291 | 803k | void protobuf_AssignDescriptorsOnce() { |
1292 | 803k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1293 | 803k | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
1294 | 803k | } |
1295 | | |
1296 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
1297 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
1298 | 0 | protobuf_AssignDescriptorsOnce(); |
1299 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 31); |
1300 | 0 | } |
1301 | | |
1302 | 28.1k | void AddDescriptorsImpl() { |
1303 | 28.1k | InitDefaults(); |
1304 | 28.1k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
1305 | 28.1k | "\n\036yb/common/redis_protocol.proto\022\002yb\"\233\005\n" |
1306 | 28.1k | "\023RedisWriteRequestPB\022,\n\013set_request\030\002 \001(" |
1307 | 28.1k | "\0132\025.yb.RedisSetRequestPBH\000\0222\n\016getset_req" |
1308 | 28.1k | "uest\030\003 \001(\0132\030.yb.RedisGetSetRequestPBH\000\0222" |
1309 | 28.1k | "\n\016append_request\030\004 \001(\0132\030.yb.RedisAppendR" |
1310 | 28.1k | "equestPBH\000\022,\n\013del_request\030\005 \001(\0132\025.yb.Red" |
1311 | 28.1k | "isDelRequestPBH\000\0227\n\021set_range_request\030\006 " |
1312 | 28.1k | "\001(\0132\032.yb.RedisSetRangeRequestPBH\000\022.\n\014inc" |
1313 | 28.1k | "r_request\030\007 \001(\0132\026.yb.RedisIncrRequestPBH" |
1314 | 28.1k | "\000\022.\n\014push_request\030\010 \001(\0132\026.yb.RedisPushRe" |
1315 | 28.1k | "questPBH\000\0222\n\016insert_request\030\t \001(\0132\030.yb.R" |
1316 | 28.1k | "edisInsertRequestPBH\000\022,\n\013pop_request\030\n \001" |
1317 | 28.1k | "(\0132\025.yb.RedisPopRequestPBH\000\022,\n\013add_reque" |
1318 | 28.1k | "st\030\013 \001(\0132\025.yb.RedisAddRequestPBH\000\0223\n\017set" |
1319 | 28.1k | "_ttl_request\030\014 \001(\0132\030.yb.RedisSetTtlReque" |
1320 | 28.1k | "stPBH\000\022/\n\rno_op_request\030\016 \001(\0132\026.yb.Redis" |
1321 | 28.1k | "NoOpRequestPBH\000\022&\n\tkey_value\030\r \001(\0132\023.yb." |
1322 | 28.1k | "RedisKeyValuePBB\t\n\007request\"\205\005\n\022RedisRead" |
1323 | 28.1k | "RequestPB\022,\n\013get_request\030\002 \001(\0132\025.yb.Redi" |
1324 | 28.1k | "sGetRequestPBH\000\0222\n\016strlen_request\030\003 \001(\0132" |
1325 | 28.1k | "\030.yb.RedisStrLenRequestPBH\000\0222\n\016exists_re" |
1326 | 28.1k | "quest\030\004 \001(\0132\030.yb.RedisExistsRequestPBH\000\022" |
1327 | 28.1k | "7\n\021get_range_request\030\005 \001(\0132\032.yb.RedisGet" |
1328 | 28.1k | "RangeRequestPBH\000\022L\n\034get_collection_range" |
1329 | 28.1k | "_request\030\t \001(\0132$.yb.RedisCollectionGetRa" |
1330 | 28.1k | "ngeRequestPBH\000\0223\n\017get_ttl_request\030\013 \001(\0132" |
1331 | 28.1k | "\030.yb.RedisGetTtlRequestPBH\000\022.\n\014keys_requ" |
1332 | 28.1k | "est\030\014 \001(\0132\026.yb.RedisKeysRequestPBH\000\022@\n\026g" |
1333 | 28.1k | "et_for_rename_request\030\r \001(\0132\036.yb.RedisGe" |
1334 | 28.1k | "tForRenameRequestPBH\000\022&\n\tkey_value\030\006 \001(\013" |
1335 | 28.1k | "2\023.yb.RedisKeyValuePB\022,\n\014subkey_range\030\007 " |
1336 | 28.1k | "\001(\0132\026.yb.RedisSubKeyRangePB\022*\n\013index_ran" |
1337 | 28.1k | "ge\030\010 \001(\0132\025.yb.RedisIndexRangePB\022\036\n\023range" |
1338 | 28.1k | "_request_limit\030\n \001(\005:\0010B\t\n\007request\"n\n\022Re" |
1339 | 28.1k | "disSubKeyRangePB\022+\n\013lower_bound\030\001 \001(\0132\026." |
1340 | 28.1k | "yb.RedisSubKeyBoundPB\022+\n\013upper_bound\030\002 \001" |
1341 | 28.1k | "(\0132\026.yb.RedisSubKeyBoundPB\"k\n\021RedisIndex" |
1342 | 28.1k | "RangePB\022*\n\013lower_bound\030\001 \001(\0132\025.yb.RedisI" |
1343 | 28.1k | "ndexBoundPB\022*\n\013upper_bound\030\002 \001(\0132\025.yb.Re" |
1344 | 28.1k | "disIndexBoundPB\"\"\n\021RedisIndexBoundPB\022\r\n\005" |
1345 | 28.1k | "index\030\001 \002(\003\"\312\001\n\022RedisSubKeyBoundPB\022/\n\014su" |
1346 | 28.1k | "bkey_bound\030\003 \001(\0132\031.yb.RedisKeyValueSubKe" |
1347 | 28.1k | "yPB\022:\n\rinfinity_type\030\004 \001(\0162#.yb.RedisSub" |
1348 | 28.1k | "KeyBoundPB.InfinityType\022\033\n\014is_exclusive\030" |
1349 | 28.1k | "\006 \001(\010:\005false\"*\n\014InfinityType\022\014\n\010POSITIVE" |
1350 | 28.1k | "\020\001\022\014\n\010NEGATIVE\020\002\"o\n\025RedisKeyValueSubKeyP" |
1351 | 28.1k | "B\022\027\n\rstring_subkey\030\001 \001(\014H\000\022\032\n\020timestamp_" |
1352 | 28.1k | "subkey\030\002 \001(\003H\000\022\027\n\rdouble_subkey\030\003 \001(\001H\000B" |
1353 | 28.1k | "\010\n\006subkey\"\254\001\n\017RedisKeyValuePB\022\021\n\thash_co" |
1354 | 28.1k | "de\030\001 \001(\r\022\013\n\003key\030\002 \001(\014\0220\n\004type\030\003 \001(\0162\021.yb" |
1355 | 28.1k | ".RedisDataType:\017REDIS_TYPE_NONE\022)\n\006subke" |
1356 | 28.1k | "y\030\004 \003(\0132\031.yb.RedisKeyValueSubKeyPB\022\r\n\005in" |
1357 | 28.1k | "dex\030\005 \001(\005\022\r\n\005value\030\006 \003(\014\"\253\001\n\022SortedSetOp" |
1358 | 28.1k | "tionsPB\022B\n\016update_options\030\004 \001(\0162$.yb.Sor" |
1359 | 28.1k | "tedSetOptionsPB.UpdateOptions:\004NONE\022\021\n\002c" |
1360 | 28.1k | "h\030\005 \001(\010:\005false\022\023\n\004incr\030\006 \001(\010:\005false\")\n\rU" |
1361 | 28.1k | "pdateOptions\022\006\n\002NX\020\001\022\006\n\002XX\020\002\022\010\n\004NONE\020\003\"\265" |
1362 | 28.1k | "\001\n\021RedisSetRequestPB\022!\n\022expect_ok_respon" |
1363 | 28.1k | "se\030\001 \001(\010:\005false\022\017\n\003ttl\030\002 \001(\003:\002-1\0228\n\004mode" |
1364 | 28.1k | "\030\003 \001(\0162\022.yb.RedisWriteMode:\026REDIS_WRITEM" |
1365 | 28.1k | "ODE_UPSERT\0222\n\022sorted_set_options\030\016 \001(\0132\026" |
1366 | 28.1k | ".yb.SortedSetOptionsPB\"\303\002\n\021RedisGetReque" |
1367 | 28.1k | "stPB\022\?\n\014request_type\030\001 \001(\0162$.yb.RedisGet" |
1368 | 28.1k | "RequestPB.GetRequestType:\003GET\"\354\001\n\016GetReq" |
1369 | 28.1k | "uestType\022\007\n\003GET\020\001\022\010\n\004MGET\020\003\022\010\n\004HGET\020\002\022\t\n" |
1370 | 28.1k | "\005HMGET\020\004\022\013\n\007HGETALL\020\005\022\t\n\005HKEYS\020\007\022\t\n\005HVAL" |
1371 | 28.1k | "S\020\010\022\010\n\004HLEN\020\t\022\013\n\007HEXISTS\020\n\022\013\n\007HSTRLEN\020\013\022" |
1372 | 28.1k | "\014\n\010SMEMBERS\020\006\022\r\n\tSISMEMBER\020\014\022\t\n\005SCARD\020\r\022" |
1373 | 28.1k | "\t\n\005ZCARD\020\017\022\t\n\005TSGET\020\016\022\n\n\006TSCARD\020\020\022\n\n\006ZSC" |
1374 | 28.1k | "ORE\020\021\022\010\n\004LLEN\020\022\022\013\n\007UNKNOWN\020c\"\230\002\n RedisCo" |
1375 | 28.1k | "llectionGetRangeRequestPB\022]\n\014request_typ" |
1376 | 28.1k | "e\030\001 \001(\01628.yb.RedisCollectionGetRangeRequ" |
1377 | 28.1k | "estPB.GetRangeRequestType:\rTSRANGEBYTIME" |
1378 | 28.1k | "\022\032\n\013with_scores\030\002 \001(\010:\005false\"y\n\023GetRange" |
1379 | 28.1k | "RequestType\022\021\n\rTSRANGEBYTIME\020\001\022\021\n\rZRANGE" |
1380 | 28.1k | "BYSCORE\020\002\022\r\n\tZREVRANGE\020\003\022\n\n\006ZRANGE\020\004\022\024\n\020" |
1381 | 28.1k | "TSREVRANGEBYTIME\020\005\022\013\n\007UNKNOWN\020c\"\024\n\022Redis" |
1382 | 28.1k | "NoOpRequestPB\"P\n\024RedisSetTtlRequestPB\022\021\n" |
1383 | 28.1k | "\003ttl\030\001 \001(\003:\002-1H\000\022\027\n\rabsolute_time\030\002 \001(\003H" |
1384 | 28.1k | "\000B\014\n\nexpiration\"5\n\024RedisGetTtlRequestPB\022" |
1385 | 28.1k | "\035\n\016return_seconds\030\001 \001(\010:\005false\"8\n\022RedisK" |
1386 | 28.1k | "eysRequestPB\022\017\n\007pattern\030\001 \001(\t\022\021\n\tthresho" |
1387 | 28.1k | "ld\030\002 \001(\005\"\034\n\032RedisGetForRenameRequestPB\"\026" |
1388 | 28.1k | "\n\024RedisGetSetRequestPB\"\026\n\024RedisAppendReq" |
1389 | 28.1k | "uestPB\"\026\n\024RedisStrLenRequestPB\"\023\n\021RedisD" |
1390 | 28.1k | "elRequestPB\"\026\n\024RedisExistsRequestPB\"(\n\026R" |
1391 | 28.1k | "edisSetRangeRequestPB\022\016\n\006offset\030\002 \001(\005\"4\n" |
1392 | 28.1k | "\026RedisGetRangeRequestPB\022\r\n\005start\030\002 \001(\005\022\013" |
1393 | 28.1k | "\n\003end\030\003 \001(\005\"G\n\022RedisIncrRequestPB\022\030\n\rinc" |
1394 | 28.1k | "rement_int\030\002 \001(\003:\0011\022\027\n\017increment_float\030\003" |
1395 | 28.1k | " \001(\001\"b\n\022RedisPushRequestPB\022,\n\004side\030\002 \001(\016" |
1396 | 28.1k | "2\r.yb.RedisSide:\017REDIS_SIDE_LEFT\022\036\n\017chec" |
1397 | 28.1k | "k_existence\030\003 \001(\010:\005false\"5\n\024RedisInsertR" |
1398 | 28.1k | "equestPB\022\035\n\005order\030\002 \001(\0162\016.yb.RedisOrder\"" |
1399 | 28.1k | "P\n\021RedisPopRequestPB\022,\n\004side\030\002 \001(\0162\r.yb." |
1400 | 28.1k | "RedisSide:\017REDIS_SIDE_LEFT\022\r\n\005count\030\003 \001(" |
1401 | 28.1k | "\005\"Y\n\021RedisAddRequestPB\0228\n\004mode\030\002 \001(\0162\022.y" |
1402 | 28.1k | "b.RedisWriteMode:\026REDIS_WRITEMODE_UPSERT" |
1403 | 28.1k | "\022\n\n\002ch\030\003 \001(\010\"\272\003\n\017RedisResponsePB\0221\n\004code" |
1404 | 28.1k | "\030\001 \001(\0162#.yb.RedisResponsePB.RedisStatusC" |
1405 | 28.1k | "ode\022\026\n\014int_response\030\002 \001(\003H\000\022\031\n\017string_re" |
1406 | 28.1k | "sponse\030\003 \001(\014H\000\022*\n\016array_response\030\004 \001(\0132\020" |
1407 | 28.1k | ".yb.RedisArrayPBH\000\022\031\n\017status_response\030\005 " |
1408 | 28.1k | "\001(\014H\000\022\032\n\020encoded_response\030\007 \001(\014H\000\022\025\n\rerr" |
1409 | 28.1k | "or_message\030\006 \001(\014\022\037\n\004type\030\010 \001(\0162\021.yb.Redi" |
1410 | 28.1k | "sDataType\"\224\001\n\017RedisStatusCode\022\006\n\002OK\020\001\022\007\n" |
1411 | 28.1k | "\003NIL\020\002\022\r\n\tNOT_FOUND\020\005\022\023\n\017UNKNOWN_COMMAND" |
1412 | 28.1k | "\020\003\022\016\n\nWRONG_TYPE\020\004\022\020\n\014SERVER_ERROR\020\006\022\027\n\023" |
1413 | 28.1k | "INDEX_OUT_OF_BOUNDS\020\007\022\021\n\rPARSING_ERROR\020\010" |
1414 | 28.1k | "B\017\n\rresponse_data\"1\n\014RedisArrayPB\022\020\n\010ele" |
1415 | 28.1k | "ments\030\001 \003(\014\022\017\n\007encoded\030\002 \001(\010*\256\001\n\rRedisDa" |
1416 | 28.1k | "taType\022\023\n\017REDIS_TYPE_NONE\020\001\022\025\n\021REDIS_TYP" |
1417 | 28.1k | "E_STRING\020\002\022\023\n\017REDIS_TYPE_LIST\020\003\022\022\n\016REDIS" |
1418 | 28.1k | "_TYPE_SET\020\004\022\023\n\017REDIS_TYPE_HASH\020\005\022\030\n\024REDI" |
1419 | 28.1k | "S_TYPE_SORTEDSET\020\006\022\031\n\025REDIS_TYPE_TIMESER" |
1420 | 28.1k | "IES\020\007*6\n\tRedisSide\022\023\n\017REDIS_SIDE_LEFT\020\001\022" |
1421 | 28.1k | "\024\n\020REDIS_SIDE_RIGHT\020\002*;\n\nRedisOrder\022\026\n\022R" |
1422 | 28.1k | "EDIS_ORDER_BEFORE\020\001\022\025\n\021REDIS_ORDER_AFTER" |
1423 | 28.1k | "\020\002*d\n\016RedisWriteMode\022\032\n\026REDIS_WRITEMODE_" |
1424 | 28.1k | "UPSERT\020\001\022\032\n\026REDIS_WRITEMODE_INSERT\020\002\022\032\n\026" |
1425 | 28.1k | "REDIS_WRITEMODE_UPDATE\020\003B\010\n\006org.yb" |
1426 | 28.1k | }; |
1427 | 28.1k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
1428 | 28.1k | descriptor, 4834); |
1429 | 28.1k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
1430 | 28.1k | "yb/common/redis_protocol.proto", &protobuf_RegisterTypes); |
1431 | 28.1k | } |
1432 | | |
1433 | 55.8k | void AddDescriptors() { |
1434 | 55.8k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
1435 | 55.8k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
1436 | 55.8k | } |
1437 | | // Force AddDescriptors() to be called at dynamic initialization time. |
1438 | | struct StaticDescriptorInitializer { |
1439 | 28.1k | StaticDescriptorInitializer() { |
1440 | 28.1k | AddDescriptors(); |
1441 | 28.1k | } |
1442 | | } static_descriptor_initializer; |
1443 | | } // namespace protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto |
1444 | | namespace yb { |
1445 | 0 | const ::google::protobuf::EnumDescriptor* RedisSubKeyBoundPB_InfinityType_descriptor() { |
1446 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1447 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[0]; |
1448 | 0 | } |
1449 | 476 | bool RedisSubKeyBoundPB_InfinityType_IsValid(int value) { |
1450 | 476 | switch (value) { |
1451 | 232 | case 1: |
1452 | 476 | case 2: |
1453 | 476 | return true; |
1454 | 0 | default: |
1455 | 0 | return false; |
1456 | 476 | } |
1457 | 476 | } |
1458 | | |
1459 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1460 | | const RedisSubKeyBoundPB_InfinityType RedisSubKeyBoundPB::POSITIVE; |
1461 | | const RedisSubKeyBoundPB_InfinityType RedisSubKeyBoundPB::NEGATIVE; |
1462 | | const RedisSubKeyBoundPB_InfinityType RedisSubKeyBoundPB::InfinityType_MIN; |
1463 | | const RedisSubKeyBoundPB_InfinityType RedisSubKeyBoundPB::InfinityType_MAX; |
1464 | | const int RedisSubKeyBoundPB::InfinityType_ARRAYSIZE; |
1465 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1466 | 0 | const ::google::protobuf::EnumDescriptor* SortedSetOptionsPB_UpdateOptions_descriptor() { |
1467 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1468 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[1]; |
1469 | 0 | } |
1470 | 8 | bool SortedSetOptionsPB_UpdateOptions_IsValid(int value) { |
1471 | 8 | switch (value) { |
1472 | 4 | case 1: |
1473 | 8 | case 2: |
1474 | 8 | case 3: |
1475 | 8 | return true; |
1476 | 0 | default: |
1477 | 0 | return false; |
1478 | 8 | } |
1479 | 8 | } |
1480 | | |
1481 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1482 | | const SortedSetOptionsPB_UpdateOptions SortedSetOptionsPB::NX; |
1483 | | const SortedSetOptionsPB_UpdateOptions SortedSetOptionsPB::XX; |
1484 | | const SortedSetOptionsPB_UpdateOptions SortedSetOptionsPB::NONE; |
1485 | | const SortedSetOptionsPB_UpdateOptions SortedSetOptionsPB::UpdateOptions_MIN; |
1486 | | const SortedSetOptionsPB_UpdateOptions SortedSetOptionsPB::UpdateOptions_MAX; |
1487 | | const int SortedSetOptionsPB::UpdateOptions_ARRAYSIZE; |
1488 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1489 | 0 | const ::google::protobuf::EnumDescriptor* RedisGetRequestPB_GetRequestType_descriptor() { |
1490 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1491 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[2]; |
1492 | 0 | } |
1493 | 175k | bool RedisGetRequestPB_GetRequestType_IsValid(int value) { |
1494 | 175k | switch (value) { |
1495 | 171k | case 1: |
1496 | 171k | case 2: |
1497 | 171k | case 3: |
1498 | 171k | case 4: |
1499 | 171k | case 5: |
1500 | 171k | case 6: |
1501 | 171k | case 7: |
1502 | 171k | case 8: |
1503 | 171k | case 9: |
1504 | 171k | case 10: |
1505 | 171k | case 11: |
1506 | 171k | case 12: |
1507 | 171k | case 13: |
1508 | 175k | case 14: |
1509 | 175k | case 15: |
1510 | 175k | case 16: |
1511 | 175k | case 17: |
1512 | 175k | case 18: |
1513 | 175k | case 99: |
1514 | 175k | return true; |
1515 | 0 | default: |
1516 | 0 | return false; |
1517 | 175k | } |
1518 | 175k | } |
1519 | | |
1520 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1521 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::GET; |
1522 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::MGET; |
1523 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HGET; |
1524 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HMGET; |
1525 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HGETALL; |
1526 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HKEYS; |
1527 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HVALS; |
1528 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HLEN; |
1529 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HEXISTS; |
1530 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::HSTRLEN; |
1531 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::SMEMBERS; |
1532 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::SISMEMBER; |
1533 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::SCARD; |
1534 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::ZCARD; |
1535 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::TSGET; |
1536 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::TSCARD; |
1537 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::ZSCORE; |
1538 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::LLEN; |
1539 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::UNKNOWN; |
1540 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::GetRequestType_MIN; |
1541 | | const RedisGetRequestPB_GetRequestType RedisGetRequestPB::GetRequestType_MAX; |
1542 | | const int RedisGetRequestPB::GetRequestType_ARRAYSIZE; |
1543 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1544 | 0 | const ::google::protobuf::EnumDescriptor* RedisCollectionGetRangeRequestPB_GetRangeRequestType_descriptor() { |
1545 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1546 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[3]; |
1547 | 0 | } |
1548 | 20.3k | bool RedisCollectionGetRangeRequestPB_GetRangeRequestType_IsValid(int value) { |
1549 | 20.3k | switch (value) { |
1550 | 122 | case 1: |
1551 | 332 | case 2: |
1552 | 352 | case 3: |
1553 | 380 | case 4: |
1554 | 20.3k | case 5: |
1555 | 20.3k | case 99: |
1556 | 20.3k | return true; |
1557 | 0 | default: |
1558 | 0 | return false; |
1559 | 20.3k | } |
1560 | 20.3k | } |
1561 | | |
1562 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1563 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::TSRANGEBYTIME; |
1564 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::ZRANGEBYSCORE; |
1565 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::ZREVRANGE; |
1566 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::ZRANGE; |
1567 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::TSREVRANGEBYTIME; |
1568 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::UNKNOWN; |
1569 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::GetRangeRequestType_MIN; |
1570 | | const RedisCollectionGetRangeRequestPB_GetRangeRequestType RedisCollectionGetRangeRequestPB::GetRangeRequestType_MAX; |
1571 | | const int RedisCollectionGetRangeRequestPB::GetRangeRequestType_ARRAYSIZE; |
1572 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1573 | 0 | const ::google::protobuf::EnumDescriptor* RedisResponsePB_RedisStatusCode_descriptor() { |
1574 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1575 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[4]; |
1576 | 0 | } |
1577 | 429k | bool RedisResponsePB_RedisStatusCode_IsValid(int value) { |
1578 | 429k | switch (value) { |
1579 | 421k | case 1: |
1580 | 429k | case 2: |
1581 | 429k | case 3: |
1582 | 429k | case 4: |
1583 | 429k | case 5: |
1584 | 429k | case 6: |
1585 | 429k | case 7: |
1586 | 429k | case 8: |
1587 | 429k | return true; |
1588 | 0 | default: |
1589 | 0 | return false; |
1590 | 429k | } |
1591 | 429k | } |
1592 | | |
1593 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1594 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::OK; |
1595 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::NIL; |
1596 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::NOT_FOUND; |
1597 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::UNKNOWN_COMMAND; |
1598 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::WRONG_TYPE; |
1599 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::SERVER_ERROR; |
1600 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::INDEX_OUT_OF_BOUNDS; |
1601 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::PARSING_ERROR; |
1602 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::RedisStatusCode_MIN; |
1603 | | const RedisResponsePB_RedisStatusCode RedisResponsePB::RedisStatusCode_MAX; |
1604 | | const int RedisResponsePB::RedisStatusCode_ARRAYSIZE; |
1605 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1606 | 0 | const ::google::protobuf::EnumDescriptor* RedisDataType_descriptor() { |
1607 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1608 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[5]; |
1609 | 0 | } |
1610 | 210k | bool RedisDataType_IsValid(int value) { |
1611 | 210k | switch (value) { |
1612 | 54 | case 1: |
1613 | 132k | case 2: |
1614 | 132k | case 3: |
1615 | 132k | case 4: |
1616 | 169k | case 5: |
1617 | 209k | case 6: |
1618 | 210k | case 7: |
1619 | 210k | return true; |
1620 | 0 | default: |
1621 | 0 | return false; |
1622 | 210k | } |
1623 | 210k | } |
1624 | | |
1625 | 0 | const ::google::protobuf::EnumDescriptor* RedisSide_descriptor() { |
1626 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1627 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[6]; |
1628 | 0 | } |
1629 | 36 | bool RedisSide_IsValid(int value) { |
1630 | 36 | switch (value) { |
1631 | 30 | case 1: |
1632 | 36 | case 2: |
1633 | 36 | return true; |
1634 | 0 | default: |
1635 | 0 | return false; |
1636 | 36 | } |
1637 | 36 | } |
1638 | | |
1639 | 0 | const ::google::protobuf::EnumDescriptor* RedisOrder_descriptor() { |
1640 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1641 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[7]; |
1642 | 0 | } |
1643 | 0 | bool RedisOrder_IsValid(int value) { |
1644 | 0 | switch (value) { |
1645 | 0 | case 1: |
1646 | 0 | case 2: |
1647 | 0 | return true; |
1648 | 0 | default: |
1649 | 0 | return false; |
1650 | 0 | } |
1651 | 0 | } |
1652 | | |
1653 | 0 | const ::google::protobuf::EnumDescriptor* RedisWriteMode_descriptor() { |
1654 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1655 | 0 | return protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_enum_descriptors[8]; |
1656 | 0 | } |
1657 | 160 | bool RedisWriteMode_IsValid(int value) { |
1658 | 160 | switch (value) { |
1659 | 0 | case 1: |
1660 | 110 | case 2: |
1661 | 160 | case 3: |
1662 | 160 | return true; |
1663 | 0 | default: |
1664 | 0 | return false; |
1665 | 160 | } |
1666 | 160 | } |
1667 | | |
1668 | | |
1669 | | // =================================================================== |
1670 | | |
1671 | 28.1k | void RedisWriteRequestPB::InitAsDefaultInstance() { |
1672 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.set_request_ = const_cast< ::yb::RedisSetRequestPB*>( |
1673 | 28.1k | ::yb::RedisSetRequestPB::internal_default_instance()); |
1674 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.getset_request_ = const_cast< ::yb::RedisGetSetRequestPB*>( |
1675 | 28.1k | ::yb::RedisGetSetRequestPB::internal_default_instance()); |
1676 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.append_request_ = const_cast< ::yb::RedisAppendRequestPB*>( |
1677 | 28.1k | ::yb::RedisAppendRequestPB::internal_default_instance()); |
1678 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.del_request_ = const_cast< ::yb::RedisDelRequestPB*>( |
1679 | 28.1k | ::yb::RedisDelRequestPB::internal_default_instance()); |
1680 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.set_range_request_ = const_cast< ::yb::RedisSetRangeRequestPB*>( |
1681 | 28.1k | ::yb::RedisSetRangeRequestPB::internal_default_instance()); |
1682 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.incr_request_ = const_cast< ::yb::RedisIncrRequestPB*>( |
1683 | 28.1k | ::yb::RedisIncrRequestPB::internal_default_instance()); |
1684 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.push_request_ = const_cast< ::yb::RedisPushRequestPB*>( |
1685 | 28.1k | ::yb::RedisPushRequestPB::internal_default_instance()); |
1686 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.insert_request_ = const_cast< ::yb::RedisInsertRequestPB*>( |
1687 | 28.1k | ::yb::RedisInsertRequestPB::internal_default_instance()); |
1688 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.pop_request_ = const_cast< ::yb::RedisPopRequestPB*>( |
1689 | 28.1k | ::yb::RedisPopRequestPB::internal_default_instance()); |
1690 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.add_request_ = const_cast< ::yb::RedisAddRequestPB*>( |
1691 | 28.1k | ::yb::RedisAddRequestPB::internal_default_instance()); |
1692 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.set_ttl_request_ = const_cast< ::yb::RedisSetTtlRequestPB*>( |
1693 | 28.1k | ::yb::RedisSetTtlRequestPB::internal_default_instance()); |
1694 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_.no_op_request_ = const_cast< ::yb::RedisNoOpRequestPB*>( |
1695 | 28.1k | ::yb::RedisNoOpRequestPB::internal_default_instance()); |
1696 | 28.1k | ::yb::_RedisWriteRequestPB_default_instance_._instance.get_mutable()->key_value_ = const_cast< ::yb::RedisKeyValuePB*>( |
1697 | 28.1k | ::yb::RedisKeyValuePB::internal_default_instance()); |
1698 | 28.1k | } |
1699 | 0 | void RedisWriteRequestPB::set_allocated_set_request(::yb::RedisSetRequestPB* set_request) { |
1700 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1701 | 0 | clear_request(); |
1702 | 0 | if (set_request) { |
1703 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1704 | 0 | if (message_arena != submessage_arena) { |
1705 | 0 | set_request = ::google::protobuf::internal::GetOwnedMessage( |
1706 | 0 | message_arena, set_request, submessage_arena); |
1707 | 0 | } |
1708 | 0 | set_has_set_request(); |
1709 | 0 | request_.set_request_ = set_request; |
1710 | 0 | } |
1711 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.set_request) |
1712 | 0 | } |
1713 | 0 | void RedisWriteRequestPB::set_allocated_getset_request(::yb::RedisGetSetRequestPB* getset_request) { |
1714 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1715 | 0 | clear_request(); |
1716 | 0 | if (getset_request) { |
1717 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1718 | 0 | if (message_arena != submessage_arena) { |
1719 | 0 | getset_request = ::google::protobuf::internal::GetOwnedMessage( |
1720 | 0 | message_arena, getset_request, submessage_arena); |
1721 | 0 | } |
1722 | 0 | set_has_getset_request(); |
1723 | 0 | request_.getset_request_ = getset_request; |
1724 | 0 | } |
1725 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.getset_request) |
1726 | 0 | } |
1727 | 0 | void RedisWriteRequestPB::set_allocated_append_request(::yb::RedisAppendRequestPB* append_request) { |
1728 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1729 | 0 | clear_request(); |
1730 | 0 | if (append_request) { |
1731 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1732 | 0 | if (message_arena != submessage_arena) { |
1733 | 0 | append_request = ::google::protobuf::internal::GetOwnedMessage( |
1734 | 0 | message_arena, append_request, submessage_arena); |
1735 | 0 | } |
1736 | 0 | set_has_append_request(); |
1737 | 0 | request_.append_request_ = append_request; |
1738 | 0 | } |
1739 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.append_request) |
1740 | 0 | } |
1741 | 0 | void RedisWriteRequestPB::set_allocated_del_request(::yb::RedisDelRequestPB* del_request) { |
1742 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1743 | 0 | clear_request(); |
1744 | 0 | if (del_request) { |
1745 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1746 | 0 | if (message_arena != submessage_arena) { |
1747 | 0 | del_request = ::google::protobuf::internal::GetOwnedMessage( |
1748 | 0 | message_arena, del_request, submessage_arena); |
1749 | 0 | } |
1750 | 0 | set_has_del_request(); |
1751 | 0 | request_.del_request_ = del_request; |
1752 | 0 | } |
1753 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.del_request) |
1754 | 0 | } |
1755 | 0 | void RedisWriteRequestPB::set_allocated_set_range_request(::yb::RedisSetRangeRequestPB* set_range_request) { |
1756 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1757 | 0 | clear_request(); |
1758 | 0 | if (set_range_request) { |
1759 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1760 | 0 | if (message_arena != submessage_arena) { |
1761 | 0 | set_range_request = ::google::protobuf::internal::GetOwnedMessage( |
1762 | 0 | message_arena, set_range_request, submessage_arena); |
1763 | 0 | } |
1764 | 0 | set_has_set_range_request(); |
1765 | 0 | request_.set_range_request_ = set_range_request; |
1766 | 0 | } |
1767 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.set_range_request) |
1768 | 0 | } |
1769 | 0 | void RedisWriteRequestPB::set_allocated_incr_request(::yb::RedisIncrRequestPB* incr_request) { |
1770 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1771 | 0 | clear_request(); |
1772 | 0 | if (incr_request) { |
1773 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1774 | 0 | if (message_arena != submessage_arena) { |
1775 | 0 | incr_request = ::google::protobuf::internal::GetOwnedMessage( |
1776 | 0 | message_arena, incr_request, submessage_arena); |
1777 | 0 | } |
1778 | 0 | set_has_incr_request(); |
1779 | 0 | request_.incr_request_ = incr_request; |
1780 | 0 | } |
1781 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.incr_request) |
1782 | 0 | } |
1783 | 0 | void RedisWriteRequestPB::set_allocated_push_request(::yb::RedisPushRequestPB* push_request) { |
1784 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1785 | 0 | clear_request(); |
1786 | 0 | if (push_request) { |
1787 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1788 | 0 | if (message_arena != submessage_arena) { |
1789 | 0 | push_request = ::google::protobuf::internal::GetOwnedMessage( |
1790 | 0 | message_arena, push_request, submessage_arena); |
1791 | 0 | } |
1792 | 0 | set_has_push_request(); |
1793 | 0 | request_.push_request_ = push_request; |
1794 | 0 | } |
1795 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.push_request) |
1796 | 0 | } |
1797 | 0 | void RedisWriteRequestPB::set_allocated_insert_request(::yb::RedisInsertRequestPB* insert_request) { |
1798 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1799 | 0 | clear_request(); |
1800 | 0 | if (insert_request) { |
1801 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1802 | 0 | if (message_arena != submessage_arena) { |
1803 | 0 | insert_request = ::google::protobuf::internal::GetOwnedMessage( |
1804 | 0 | message_arena, insert_request, submessage_arena); |
1805 | 0 | } |
1806 | 0 | set_has_insert_request(); |
1807 | 0 | request_.insert_request_ = insert_request; |
1808 | 0 | } |
1809 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.insert_request) |
1810 | 0 | } |
1811 | 0 | void RedisWriteRequestPB::set_allocated_pop_request(::yb::RedisPopRequestPB* pop_request) { |
1812 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1813 | 0 | clear_request(); |
1814 | 0 | if (pop_request) { |
1815 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1816 | 0 | if (message_arena != submessage_arena) { |
1817 | 0 | pop_request = ::google::protobuf::internal::GetOwnedMessage( |
1818 | 0 | message_arena, pop_request, submessage_arena); |
1819 | 0 | } |
1820 | 0 | set_has_pop_request(); |
1821 | 0 | request_.pop_request_ = pop_request; |
1822 | 0 | } |
1823 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.pop_request) |
1824 | 0 | } |
1825 | 0 | void RedisWriteRequestPB::set_allocated_add_request(::yb::RedisAddRequestPB* add_request) { |
1826 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1827 | 0 | clear_request(); |
1828 | 0 | if (add_request) { |
1829 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1830 | 0 | if (message_arena != submessage_arena) { |
1831 | 0 | add_request = ::google::protobuf::internal::GetOwnedMessage( |
1832 | 0 | message_arena, add_request, submessage_arena); |
1833 | 0 | } |
1834 | 0 | set_has_add_request(); |
1835 | 0 | request_.add_request_ = add_request; |
1836 | 0 | } |
1837 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.add_request) |
1838 | 0 | } |
1839 | 0 | void RedisWriteRequestPB::set_allocated_set_ttl_request(::yb::RedisSetTtlRequestPB* set_ttl_request) { |
1840 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1841 | 0 | clear_request(); |
1842 | 0 | if (set_ttl_request) { |
1843 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1844 | 0 | if (message_arena != submessage_arena) { |
1845 | 0 | set_ttl_request = ::google::protobuf::internal::GetOwnedMessage( |
1846 | 0 | message_arena, set_ttl_request, submessage_arena); |
1847 | 0 | } |
1848 | 0 | set_has_set_ttl_request(); |
1849 | 0 | request_.set_ttl_request_ = set_ttl_request; |
1850 | 0 | } |
1851 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.set_ttl_request) |
1852 | 0 | } |
1853 | 0 | void RedisWriteRequestPB::set_allocated_no_op_request(::yb::RedisNoOpRequestPB* no_op_request) { |
1854 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1855 | 0 | clear_request(); |
1856 | 0 | if (no_op_request) { |
1857 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1858 | 0 | if (message_arena != submessage_arena) { |
1859 | 0 | no_op_request = ::google::protobuf::internal::GetOwnedMessage( |
1860 | 0 | message_arena, no_op_request, submessage_arena); |
1861 | 0 | } |
1862 | 0 | set_has_no_op_request(); |
1863 | 0 | request_.no_op_request_ = no_op_request; |
1864 | 0 | } |
1865 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisWriteRequestPB.no_op_request) |
1866 | 0 | } |
1867 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1868 | | const int RedisWriteRequestPB::kSetRequestFieldNumber; |
1869 | | const int RedisWriteRequestPB::kGetsetRequestFieldNumber; |
1870 | | const int RedisWriteRequestPB::kAppendRequestFieldNumber; |
1871 | | const int RedisWriteRequestPB::kDelRequestFieldNumber; |
1872 | | const int RedisWriteRequestPB::kSetRangeRequestFieldNumber; |
1873 | | const int RedisWriteRequestPB::kIncrRequestFieldNumber; |
1874 | | const int RedisWriteRequestPB::kPushRequestFieldNumber; |
1875 | | const int RedisWriteRequestPB::kInsertRequestFieldNumber; |
1876 | | const int RedisWriteRequestPB::kPopRequestFieldNumber; |
1877 | | const int RedisWriteRequestPB::kAddRequestFieldNumber; |
1878 | | const int RedisWriteRequestPB::kSetTtlRequestFieldNumber; |
1879 | | const int RedisWriteRequestPB::kNoOpRequestFieldNumber; |
1880 | | const int RedisWriteRequestPB::kKeyValueFieldNumber; |
1881 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1882 | | |
1883 | | RedisWriteRequestPB::RedisWriteRequestPB() |
1884 | 194k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1885 | 194k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1886 | 166k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisWriteRequestPB(); |
1887 | 166k | } |
1888 | 194k | SharedCtor(); |
1889 | | // @@protoc_insertion_point(constructor:yb.RedisWriteRequestPB) |
1890 | 194k | } |
1891 | | RedisWriteRequestPB::RedisWriteRequestPB(const RedisWriteRequestPB& from) |
1892 | | : ::google::protobuf::Message(), |
1893 | | _internal_metadata_(NULL), |
1894 | | _has_bits_(from._has_bits_), |
1895 | 0 | _cached_size_(0) { |
1896 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1897 | 0 | if (from.has_key_value()) { |
1898 | 0 | key_value_ = new ::yb::RedisKeyValuePB(*from.key_value_); |
1899 | 0 | } else { |
1900 | 0 | key_value_ = NULL; |
1901 | 0 | } |
1902 | 0 | clear_has_request(); |
1903 | 0 | switch (from.request_case()) { |
1904 | 0 | case kSetRequest: { |
1905 | 0 | mutable_set_request()->::yb::RedisSetRequestPB::MergeFrom(from.set_request()); |
1906 | 0 | break; |
1907 | 0 | } |
1908 | 0 | case kGetsetRequest: { |
1909 | 0 | mutable_getset_request()->::yb::RedisGetSetRequestPB::MergeFrom(from.getset_request()); |
1910 | 0 | break; |
1911 | 0 | } |
1912 | 0 | case kAppendRequest: { |
1913 | 0 | mutable_append_request()->::yb::RedisAppendRequestPB::MergeFrom(from.append_request()); |
1914 | 0 | break; |
1915 | 0 | } |
1916 | 0 | case kDelRequest: { |
1917 | 0 | mutable_del_request()->::yb::RedisDelRequestPB::MergeFrom(from.del_request()); |
1918 | 0 | break; |
1919 | 0 | } |
1920 | 0 | case kSetRangeRequest: { |
1921 | 0 | mutable_set_range_request()->::yb::RedisSetRangeRequestPB::MergeFrom(from.set_range_request()); |
1922 | 0 | break; |
1923 | 0 | } |
1924 | 0 | case kIncrRequest: { |
1925 | 0 | mutable_incr_request()->::yb::RedisIncrRequestPB::MergeFrom(from.incr_request()); |
1926 | 0 | break; |
1927 | 0 | } |
1928 | 0 | case kPushRequest: { |
1929 | 0 | mutable_push_request()->::yb::RedisPushRequestPB::MergeFrom(from.push_request()); |
1930 | 0 | break; |
1931 | 0 | } |
1932 | 0 | case kInsertRequest: { |
1933 | 0 | mutable_insert_request()->::yb::RedisInsertRequestPB::MergeFrom(from.insert_request()); |
1934 | 0 | break; |
1935 | 0 | } |
1936 | 0 | case kPopRequest: { |
1937 | 0 | mutable_pop_request()->::yb::RedisPopRequestPB::MergeFrom(from.pop_request()); |
1938 | 0 | break; |
1939 | 0 | } |
1940 | 0 | case kAddRequest: { |
1941 | 0 | mutable_add_request()->::yb::RedisAddRequestPB::MergeFrom(from.add_request()); |
1942 | 0 | break; |
1943 | 0 | } |
1944 | 0 | case kSetTtlRequest: { |
1945 | 0 | mutable_set_ttl_request()->::yb::RedisSetTtlRequestPB::MergeFrom(from.set_ttl_request()); |
1946 | 0 | break; |
1947 | 0 | } |
1948 | 0 | case kNoOpRequest: { |
1949 | 0 | mutable_no_op_request()->::yb::RedisNoOpRequestPB::MergeFrom(from.no_op_request()); |
1950 | 0 | break; |
1951 | 0 | } |
1952 | 0 | case REQUEST_NOT_SET: { |
1953 | 0 | break; |
1954 | 0 | } |
1955 | 0 | } |
1956 | | // @@protoc_insertion_point(copy_constructor:yb.RedisWriteRequestPB) |
1957 | 0 | } |
1958 | | |
1959 | 194k | void RedisWriteRequestPB::SharedCtor() { |
1960 | 194k | _cached_size_ = 0; |
1961 | 194k | key_value_ = NULL; |
1962 | 194k | clear_has_request(); |
1963 | 194k | } |
1964 | | |
1965 | 166k | RedisWriteRequestPB::~RedisWriteRequestPB() { |
1966 | | // @@protoc_insertion_point(destructor:yb.RedisWriteRequestPB) |
1967 | 166k | SharedDtor(); |
1968 | 166k | } |
1969 | | |
1970 | 166k | void RedisWriteRequestPB::SharedDtor() { |
1971 | 166k | if (this != internal_default_instance()) delete key_value_; |
1972 | 166k | if (has_request()) { |
1973 | 166k | clear_request(); |
1974 | 166k | } |
1975 | 166k | } |
1976 | | |
1977 | 0 | void RedisWriteRequestPB::SetCachedSize(int size) const { |
1978 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1979 | 0 | _cached_size_ = size; |
1980 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1981 | 0 | } |
1982 | 0 | const ::google::protobuf::Descriptor* RedisWriteRequestPB::descriptor() { |
1983 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
1984 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1985 | 0 | } |
1986 | | |
1987 | 0 | const RedisWriteRequestPB& RedisWriteRequestPB::default_instance() { |
1988 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisWriteRequestPB(); |
1989 | 0 | return *internal_default_instance(); |
1990 | 0 | } |
1991 | | |
1992 | 0 | RedisWriteRequestPB* RedisWriteRequestPB::New(::google::protobuf::Arena* arena) const { |
1993 | 0 | RedisWriteRequestPB* n = new RedisWriteRequestPB; |
1994 | 0 | if (arena != NULL) { |
1995 | 0 | arena->Own(n); |
1996 | 0 | } |
1997 | 0 | return n; |
1998 | 0 | } |
1999 | | |
2000 | 333k | void RedisWriteRequestPB::clear_request() { |
2001 | | // @@protoc_insertion_point(one_of_clear_start:yb.RedisWriteRequestPB) |
2002 | 333k | switch (request_case()) { |
2003 | 166k | case kSetRequest: { |
2004 | 166k | delete request_.set_request_; |
2005 | 166k | break; |
2006 | 0 | } |
2007 | 3 | case kGetsetRequest: { |
2008 | 3 | delete request_.getset_request_; |
2009 | 3 | break; |
2010 | 0 | } |
2011 | 6 | case kAppendRequest: { |
2012 | 6 | delete request_.append_request_; |
2013 | 6 | break; |
2014 | 0 | } |
2015 | 109 | case kDelRequest: { |
2016 | 109 | delete request_.del_request_; |
2017 | 109 | break; |
2018 | 0 | } |
2019 | 1 | case kSetRangeRequest: { |
2020 | 1 | delete request_.set_range_request_; |
2021 | 1 | break; |
2022 | 0 | } |
2023 | 37 | case kIncrRequest: { |
2024 | 37 | delete request_.incr_request_; |
2025 | 37 | break; |
2026 | 0 | } |
2027 | 26 | case kPushRequest: { |
2028 | 26 | delete request_.push_request_; |
2029 | 26 | break; |
2030 | 0 | } |
2031 | 0 | case kInsertRequest: { |
2032 | 0 | delete request_.insert_request_; |
2033 | 0 | break; |
2034 | 0 | } |
2035 | 0 | case kPopRequest: { |
2036 | 0 | delete request_.pop_request_; |
2037 | 0 | break; |
2038 | 0 | } |
2039 | 39 | case kAddRequest: { |
2040 | 39 | delete request_.add_request_; |
2041 | 39 | break; |
2042 | 0 | } |
2043 | 165 | case kSetTtlRequest: { |
2044 | 165 | delete request_.set_ttl_request_; |
2045 | 165 | break; |
2046 | 0 | } |
2047 | 9 | case kNoOpRequest: { |
2048 | 9 | delete request_.no_op_request_; |
2049 | 9 | break; |
2050 | 0 | } |
2051 | 166k | case REQUEST_NOT_SET: { |
2052 | 166k | break; |
2053 | 0 | } |
2054 | 333k | } |
2055 | 333k | _oneof_case_[0] = REQUEST_NOT_SET; |
2056 | 333k | } |
2057 | | |
2058 | | |
2059 | 0 | void RedisWriteRequestPB::Clear() { |
2060 | | // @@protoc_insertion_point(message_clear_start:yb.RedisWriteRequestPB) |
2061 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2062 | | // Prevent compiler warnings about cached_has_bits being unused |
2063 | 0 | (void) cached_has_bits; |
2064 | |
|
2065 | 0 | cached_has_bits = _has_bits_[0]; |
2066 | 0 | if (cached_has_bits & 0x00000001u) { |
2067 | 0 | GOOGLE_DCHECK(key_value_ != NULL); |
2068 | 0 | key_value_->Clear(); |
2069 | 0 | } |
2070 | 0 | clear_request(); |
2071 | 0 | _has_bits_.Clear(); |
2072 | 0 | _internal_metadata_.Clear(); |
2073 | 0 | } |
2074 | | |
2075 | | bool RedisWriteRequestPB::MergePartialFromCodedStream( |
2076 | 43.4k | ::google::protobuf::io::CodedInputStream* input) { |
2077 | 86.8k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2078 | 43.4k | ::google::protobuf::uint32 tag; |
2079 | | // @@protoc_insertion_point(parse_start:yb.RedisWriteRequestPB) |
2080 | 130k | for (;;) { |
2081 | 130k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2082 | 130k | tag = p.first; |
2083 | 130k | if (!p.second) goto handle_unusual43.4k ; |
2084 | 86.8k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2085 | | // optional .yb.RedisSetRequestPB set_request = 2; |
2086 | 43.3k | case 2: { |
2087 | 43.3k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2088 | 43.3k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2089 | 43.3k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2090 | 43.3k | input, mutable_set_request())); |
2091 | 43.3k | } else { |
2092 | 0 | goto handle_unusual; |
2093 | 0 | } |
2094 | 43.3k | break; |
2095 | 43.3k | } |
2096 | | |
2097 | | // optional .yb.RedisGetSetRequestPB getset_request = 3; |
2098 | 43.3k | case 3: { |
2099 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2100 | 1 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2101 | 1 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2102 | 1 | input, mutable_getset_request())); |
2103 | 1 | } else { |
2104 | 0 | goto handle_unusual; |
2105 | 0 | } |
2106 | 1 | break; |
2107 | 1 | } |
2108 | | |
2109 | | // optional .yb.RedisAppendRequestPB append_request = 4; |
2110 | 2 | case 4: { |
2111 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2112 | 2 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
2113 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2114 | 2 | input, mutable_append_request())); |
2115 | 2 | } else { |
2116 | 0 | goto handle_unusual; |
2117 | 0 | } |
2118 | 2 | break; |
2119 | 2 | } |
2120 | | |
2121 | | // optional .yb.RedisDelRequestPB del_request = 5; |
2122 | 35 | case 5: { |
2123 | 35 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2124 | 35 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
2125 | 35 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2126 | 35 | input, mutable_del_request())); |
2127 | 35 | } else { |
2128 | 0 | goto handle_unusual; |
2129 | 0 | } |
2130 | 35 | break; |
2131 | 35 | } |
2132 | | |
2133 | | // optional .yb.RedisSetRangeRequestPB set_range_request = 6; |
2134 | 35 | case 6: { |
2135 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2136 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
2137 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2138 | 0 | input, mutable_set_range_request())); |
2139 | 0 | } else { |
2140 | 0 | goto handle_unusual; |
2141 | 0 | } |
2142 | 0 | break; |
2143 | 0 | } |
2144 | | |
2145 | | // optional .yb.RedisIncrRequestPB incr_request = 7; |
2146 | 14 | case 7: { |
2147 | 14 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2148 | 14 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
2149 | 14 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2150 | 14 | input, mutable_incr_request())); |
2151 | 14 | } else { |
2152 | 0 | goto handle_unusual; |
2153 | 0 | } |
2154 | 14 | break; |
2155 | 14 | } |
2156 | | |
2157 | | // optional .yb.RedisPushRequestPB push_request = 8; |
2158 | 14 | case 8: { |
2159 | 10 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2160 | 10 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
2161 | 10 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2162 | 10 | input, mutable_push_request())); |
2163 | 10 | } else { |
2164 | 0 | goto handle_unusual; |
2165 | 0 | } |
2166 | 10 | break; |
2167 | 10 | } |
2168 | | |
2169 | | // optional .yb.RedisInsertRequestPB insert_request = 9; |
2170 | 10 | case 9: { |
2171 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2172 | 0 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
2173 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2174 | 0 | input, mutable_insert_request())); |
2175 | 0 | } else { |
2176 | 0 | goto handle_unusual; |
2177 | 0 | } |
2178 | 0 | break; |
2179 | 0 | } |
2180 | | |
2181 | | // optional .yb.RedisPopRequestPB pop_request = 10; |
2182 | 0 | case 10: { |
2183 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2184 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
2185 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2186 | 0 | input, mutable_pop_request())); |
2187 | 0 | } else { |
2188 | 0 | goto handle_unusual; |
2189 | 0 | } |
2190 | 0 | break; |
2191 | 0 | } |
2192 | | |
2193 | | // optional .yb.RedisAddRequestPB add_request = 11; |
2194 | 13 | case 11: { |
2195 | 13 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2196 | 13 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
2197 | 13 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2198 | 13 | input, mutable_add_request())); |
2199 | 13 | } else { |
2200 | 0 | goto handle_unusual; |
2201 | 0 | } |
2202 | 13 | break; |
2203 | 13 | } |
2204 | | |
2205 | | // optional .yb.RedisSetTtlRequestPB set_ttl_request = 12; |
2206 | 51 | case 12: { |
2207 | 51 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2208 | 51 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
2209 | 51 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2210 | 51 | input, mutable_set_ttl_request())); |
2211 | 51 | } else { |
2212 | 0 | goto handle_unusual; |
2213 | 0 | } |
2214 | 51 | break; |
2215 | 51 | } |
2216 | | |
2217 | | // optional .yb.RedisKeyValuePB key_value = 13; |
2218 | 43.4k | case 13: { |
2219 | 43.4k | if (static_cast< ::google::protobuf::uint8>(tag) == |
2220 | 43.4k | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
2221 | 43.4k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2222 | 43.4k | input, mutable_key_value())); |
2223 | 43.4k | } else { |
2224 | 0 | goto handle_unusual; |
2225 | 0 | } |
2226 | 43.4k | break; |
2227 | 43.4k | } |
2228 | | |
2229 | | // optional .yb.RedisNoOpRequestPB no_op_request = 14; |
2230 | 43.4k | case 14: { |
2231 | 3 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2232 | 3 | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
2233 | 3 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2234 | 3 | input, mutable_no_op_request())); |
2235 | 3 | } else { |
2236 | 0 | goto handle_unusual; |
2237 | 0 | } |
2238 | 3 | break; |
2239 | 3 | } |
2240 | | |
2241 | 3 | default: { |
2242 | 43.4k | handle_unusual: |
2243 | 43.4k | if (tag == 0) { |
2244 | 43.4k | goto success; |
2245 | 43.4k | } |
2246 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2247 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2248 | 0 | break; |
2249 | 0 | } |
2250 | 86.8k | } |
2251 | 86.8k | } |
2252 | 43.4k | success: |
2253 | | // @@protoc_insertion_point(parse_success:yb.RedisWriteRequestPB) |
2254 | 43.4k | return true; |
2255 | 0 | failure: |
2256 | | // @@protoc_insertion_point(parse_failure:yb.RedisWriteRequestPB) |
2257 | 0 | return false; |
2258 | 43.4k | #undef DO_ |
2259 | 43.4k | } |
2260 | | |
2261 | | void RedisWriteRequestPB::SerializeWithCachedSizes( |
2262 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2263 | | // @@protoc_insertion_point(serialize_start:yb.RedisWriteRequestPB) |
2264 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2265 | 0 | (void) cached_has_bits; |
2266 | |
|
2267 | 0 | switch (request_case()) { |
2268 | 0 | case kSetRequest: |
2269 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2270 | 0 | 2, *request_.set_request_, output); |
2271 | 0 | break; |
2272 | 0 | case kGetsetRequest: |
2273 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2274 | 0 | 3, *request_.getset_request_, output); |
2275 | 0 | break; |
2276 | 0 | case kAppendRequest: |
2277 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2278 | 0 | 4, *request_.append_request_, output); |
2279 | 0 | break; |
2280 | 0 | case kDelRequest: |
2281 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2282 | 0 | 5, *request_.del_request_, output); |
2283 | 0 | break; |
2284 | 0 | case kSetRangeRequest: |
2285 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2286 | 0 | 6, *request_.set_range_request_, output); |
2287 | 0 | break; |
2288 | 0 | case kIncrRequest: |
2289 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2290 | 0 | 7, *request_.incr_request_, output); |
2291 | 0 | break; |
2292 | 0 | case kPushRequest: |
2293 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2294 | 0 | 8, *request_.push_request_, output); |
2295 | 0 | break; |
2296 | 0 | case kInsertRequest: |
2297 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2298 | 0 | 9, *request_.insert_request_, output); |
2299 | 0 | break; |
2300 | 0 | case kPopRequest: |
2301 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2302 | 0 | 10, *request_.pop_request_, output); |
2303 | 0 | break; |
2304 | 0 | case kAddRequest: |
2305 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2306 | 0 | 11, *request_.add_request_, output); |
2307 | 0 | break; |
2308 | 0 | case kSetTtlRequest: |
2309 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2310 | 0 | 12, *request_.set_ttl_request_, output); |
2311 | 0 | break; |
2312 | 0 | default: ; |
2313 | 0 | } |
2314 | 0 | cached_has_bits = _has_bits_[0]; |
2315 | | // optional .yb.RedisKeyValuePB key_value = 13; |
2316 | 0 | if (cached_has_bits & 0x00000001u) { |
2317 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2318 | 0 | 13, *this->key_value_, output); |
2319 | 0 | } |
2320 | | |
2321 | | // optional .yb.RedisNoOpRequestPB no_op_request = 14; |
2322 | 0 | if (has_no_op_request()) { |
2323 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2324 | 0 | 14, *request_.no_op_request_, output); |
2325 | 0 | } |
2326 | |
|
2327 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2328 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2329 | 0 | _internal_metadata_.unknown_fields(), output); |
2330 | 0 | } |
2331 | | // @@protoc_insertion_point(serialize_end:yb.RedisWriteRequestPB) |
2332 | 0 | } |
2333 | | |
2334 | | ::google::protobuf::uint8* RedisWriteRequestPB::InternalSerializeWithCachedSizesToArray( |
2335 | 43.4k | bool deterministic, ::google::protobuf::uint8* target) const { |
2336 | 43.4k | (void)deterministic; // Unused |
2337 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisWriteRequestPB) |
2338 | 43.4k | ::google::protobuf::uint32 cached_has_bits = 0; |
2339 | 43.4k | (void) cached_has_bits; |
2340 | | |
2341 | 43.4k | switch (request_case()) { |
2342 | 43.3k | case kSetRequest: |
2343 | 43.3k | target = ::google::protobuf::internal::WireFormatLite:: |
2344 | 43.3k | InternalWriteMessageToArray( |
2345 | 43.3k | 2, *request_.set_request_, deterministic, target); |
2346 | 43.3k | break; |
2347 | 1 | case kGetsetRequest: |
2348 | 1 | target = ::google::protobuf::internal::WireFormatLite:: |
2349 | 1 | InternalWriteMessageToArray( |
2350 | 1 | 3, *request_.getset_request_, deterministic, target); |
2351 | 1 | break; |
2352 | 2 | case kAppendRequest: |
2353 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
2354 | 2 | InternalWriteMessageToArray( |
2355 | 2 | 4, *request_.append_request_, deterministic, target); |
2356 | 2 | break; |
2357 | 35 | case kDelRequest: |
2358 | 35 | target = ::google::protobuf::internal::WireFormatLite:: |
2359 | 35 | InternalWriteMessageToArray( |
2360 | 35 | 5, *request_.del_request_, deterministic, target); |
2361 | 35 | break; |
2362 | 0 | case kSetRangeRequest: |
2363 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2364 | 0 | InternalWriteMessageToArray( |
2365 | 0 | 6, *request_.set_range_request_, deterministic, target); |
2366 | 0 | break; |
2367 | 14 | case kIncrRequest: |
2368 | 14 | target = ::google::protobuf::internal::WireFormatLite:: |
2369 | 14 | InternalWriteMessageToArray( |
2370 | 14 | 7, *request_.incr_request_, deterministic, target); |
2371 | 14 | break; |
2372 | 10 | case kPushRequest: |
2373 | 10 | target = ::google::protobuf::internal::WireFormatLite:: |
2374 | 10 | InternalWriteMessageToArray( |
2375 | 10 | 8, *request_.push_request_, deterministic, target); |
2376 | 10 | break; |
2377 | 0 | case kInsertRequest: |
2378 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2379 | 0 | InternalWriteMessageToArray( |
2380 | 0 | 9, *request_.insert_request_, deterministic, target); |
2381 | 0 | break; |
2382 | 0 | case kPopRequest: |
2383 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2384 | 0 | InternalWriteMessageToArray( |
2385 | 0 | 10, *request_.pop_request_, deterministic, target); |
2386 | 0 | break; |
2387 | 13 | case kAddRequest: |
2388 | 13 | target = ::google::protobuf::internal::WireFormatLite:: |
2389 | 13 | InternalWriteMessageToArray( |
2390 | 13 | 11, *request_.add_request_, deterministic, target); |
2391 | 13 | break; |
2392 | 51 | case kSetTtlRequest: |
2393 | 51 | target = ::google::protobuf::internal::WireFormatLite:: |
2394 | 51 | InternalWriteMessageToArray( |
2395 | 51 | 12, *request_.set_ttl_request_, deterministic, target); |
2396 | 51 | break; |
2397 | 3 | default: ; |
2398 | 43.4k | } |
2399 | 43.4k | cached_has_bits = _has_bits_[0]; |
2400 | | // optional .yb.RedisKeyValuePB key_value = 13; |
2401 | 43.4k | if (cached_has_bits & 0x00000001u) { |
2402 | 43.4k | target = ::google::protobuf::internal::WireFormatLite:: |
2403 | 43.4k | InternalWriteMessageToArray( |
2404 | 43.4k | 13, *this->key_value_, deterministic, target); |
2405 | 43.4k | } |
2406 | | |
2407 | | // optional .yb.RedisNoOpRequestPB no_op_request = 14; |
2408 | 43.4k | if (has_no_op_request()) { |
2409 | 3 | target = ::google::protobuf::internal::WireFormatLite:: |
2410 | 3 | InternalWriteMessageToArray( |
2411 | 3 | 14, *request_.no_op_request_, deterministic, target); |
2412 | 3 | } |
2413 | | |
2414 | 43.4k | if (_internal_metadata_.have_unknown_fields()) { |
2415 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2416 | 0 | _internal_metadata_.unknown_fields(), target); |
2417 | 0 | } |
2418 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisWriteRequestPB) |
2419 | 43.4k | return target; |
2420 | 43.4k | } |
2421 | | |
2422 | 210k | size_t RedisWriteRequestPB::ByteSizeLong() const { |
2423 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisWriteRequestPB) |
2424 | 210k | size_t total_size = 0; |
2425 | | |
2426 | 210k | if (_internal_metadata_.have_unknown_fields()) { |
2427 | 0 | total_size += |
2428 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2429 | 0 | _internal_metadata_.unknown_fields()); |
2430 | 0 | } |
2431 | | // optional .yb.RedisKeyValuePB key_value = 13; |
2432 | 210k | if (has_key_value()) { |
2433 | 210k | total_size += 1 + |
2434 | 210k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2435 | 210k | *this->key_value_); |
2436 | 210k | } |
2437 | | |
2438 | 210k | switch (request_case()) { |
2439 | | // optional .yb.RedisSetRequestPB set_request = 2; |
2440 | 209k | case kSetRequest: { |
2441 | 209k | total_size += 1 + |
2442 | 209k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2443 | 209k | *request_.set_request_); |
2444 | 209k | break; |
2445 | 0 | } |
2446 | | // optional .yb.RedisGetSetRequestPB getset_request = 3; |
2447 | 4 | case kGetsetRequest: { |
2448 | 4 | total_size += 1 + |
2449 | 4 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2450 | 4 | *request_.getset_request_); |
2451 | 4 | break; |
2452 | 0 | } |
2453 | | // optional .yb.RedisAppendRequestPB append_request = 4; |
2454 | 8 | case kAppendRequest: { |
2455 | 8 | total_size += 1 + |
2456 | 8 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2457 | 8 | *request_.append_request_); |
2458 | 8 | break; |
2459 | 0 | } |
2460 | | // optional .yb.RedisDelRequestPB del_request = 5; |
2461 | 136 | case kDelRequest: { |
2462 | 136 | total_size += 1 + |
2463 | 136 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2464 | 136 | *request_.del_request_); |
2465 | 136 | break; |
2466 | 0 | } |
2467 | | // optional .yb.RedisSetRangeRequestPB set_range_request = 6; |
2468 | 1 | case kSetRangeRequest: { |
2469 | 1 | total_size += 1 + |
2470 | 1 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2471 | 1 | *request_.set_range_request_); |
2472 | 1 | break; |
2473 | 0 | } |
2474 | | // optional .yb.RedisIncrRequestPB incr_request = 7; |
2475 | 51 | case kIncrRequest: { |
2476 | 51 | total_size += 1 + |
2477 | 51 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2478 | 51 | *request_.incr_request_); |
2479 | 51 | break; |
2480 | 0 | } |
2481 | | // optional .yb.RedisPushRequestPB push_request = 8; |
2482 | 36 | case kPushRequest: { |
2483 | 36 | total_size += 1 + |
2484 | 36 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2485 | 36 | *request_.push_request_); |
2486 | 36 | break; |
2487 | 0 | } |
2488 | | // optional .yb.RedisInsertRequestPB insert_request = 9; |
2489 | 0 | case kInsertRequest: { |
2490 | 0 | total_size += 1 + |
2491 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2492 | 0 | *request_.insert_request_); |
2493 | 0 | break; |
2494 | 0 | } |
2495 | | // optional .yb.RedisPopRequestPB pop_request = 10; |
2496 | 0 | case kPopRequest: { |
2497 | 0 | total_size += 1 + |
2498 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2499 | 0 | *request_.pop_request_); |
2500 | 0 | break; |
2501 | 0 | } |
2502 | | // optional .yb.RedisAddRequestPB add_request = 11; |
2503 | 52 | case kAddRequest: { |
2504 | 52 | total_size += 1 + |
2505 | 52 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2506 | 52 | *request_.add_request_); |
2507 | 52 | break; |
2508 | 0 | } |
2509 | | // optional .yb.RedisSetTtlRequestPB set_ttl_request = 12; |
2510 | 216 | case kSetTtlRequest: { |
2511 | 216 | total_size += 1 + |
2512 | 216 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2513 | 216 | *request_.set_ttl_request_); |
2514 | 216 | break; |
2515 | 0 | } |
2516 | | // optional .yb.RedisNoOpRequestPB no_op_request = 14; |
2517 | 12 | case kNoOpRequest: { |
2518 | 12 | total_size += 1 + |
2519 | 12 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2520 | 12 | *request_.no_op_request_); |
2521 | 12 | break; |
2522 | 0 | } |
2523 | 0 | case REQUEST_NOT_SET: { |
2524 | 0 | break; |
2525 | 0 | } |
2526 | 210k | } |
2527 | 210k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2528 | 210k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2529 | 210k | _cached_size_ = cached_size; |
2530 | 210k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2531 | 210k | return total_size; |
2532 | 210k | } |
2533 | | |
2534 | 0 | void RedisWriteRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
2535 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisWriteRequestPB) |
2536 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2537 | 0 | const RedisWriteRequestPB* source = |
2538 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisWriteRequestPB>( |
2539 | 0 | &from); |
2540 | 0 | if (source == NULL) { |
2541 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisWriteRequestPB) |
2542 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2543 | 0 | } else { |
2544 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisWriteRequestPB) |
2545 | 0 | MergeFrom(*source); |
2546 | 0 | } |
2547 | 0 | } |
2548 | | |
2549 | 0 | void RedisWriteRequestPB::MergeFrom(const RedisWriteRequestPB& from) { |
2550 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisWriteRequestPB) |
2551 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2552 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2553 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2554 | 0 | (void) cached_has_bits; |
2555 | |
|
2556 | 0 | if (from.has_key_value()) { |
2557 | 0 | mutable_key_value()->::yb::RedisKeyValuePB::MergeFrom(from.key_value()); |
2558 | 0 | } |
2559 | 0 | switch (from.request_case()) { |
2560 | 0 | case kSetRequest: { |
2561 | 0 | mutable_set_request()->::yb::RedisSetRequestPB::MergeFrom(from.set_request()); |
2562 | 0 | break; |
2563 | 0 | } |
2564 | 0 | case kGetsetRequest: { |
2565 | 0 | mutable_getset_request()->::yb::RedisGetSetRequestPB::MergeFrom(from.getset_request()); |
2566 | 0 | break; |
2567 | 0 | } |
2568 | 0 | case kAppendRequest: { |
2569 | 0 | mutable_append_request()->::yb::RedisAppendRequestPB::MergeFrom(from.append_request()); |
2570 | 0 | break; |
2571 | 0 | } |
2572 | 0 | case kDelRequest: { |
2573 | 0 | mutable_del_request()->::yb::RedisDelRequestPB::MergeFrom(from.del_request()); |
2574 | 0 | break; |
2575 | 0 | } |
2576 | 0 | case kSetRangeRequest: { |
2577 | 0 | mutable_set_range_request()->::yb::RedisSetRangeRequestPB::MergeFrom(from.set_range_request()); |
2578 | 0 | break; |
2579 | 0 | } |
2580 | 0 | case kIncrRequest: { |
2581 | 0 | mutable_incr_request()->::yb::RedisIncrRequestPB::MergeFrom(from.incr_request()); |
2582 | 0 | break; |
2583 | 0 | } |
2584 | 0 | case kPushRequest: { |
2585 | 0 | mutable_push_request()->::yb::RedisPushRequestPB::MergeFrom(from.push_request()); |
2586 | 0 | break; |
2587 | 0 | } |
2588 | 0 | case kInsertRequest: { |
2589 | 0 | mutable_insert_request()->::yb::RedisInsertRequestPB::MergeFrom(from.insert_request()); |
2590 | 0 | break; |
2591 | 0 | } |
2592 | 0 | case kPopRequest: { |
2593 | 0 | mutable_pop_request()->::yb::RedisPopRequestPB::MergeFrom(from.pop_request()); |
2594 | 0 | break; |
2595 | 0 | } |
2596 | 0 | case kAddRequest: { |
2597 | 0 | mutable_add_request()->::yb::RedisAddRequestPB::MergeFrom(from.add_request()); |
2598 | 0 | break; |
2599 | 0 | } |
2600 | 0 | case kSetTtlRequest: { |
2601 | 0 | mutable_set_ttl_request()->::yb::RedisSetTtlRequestPB::MergeFrom(from.set_ttl_request()); |
2602 | 0 | break; |
2603 | 0 | } |
2604 | 0 | case kNoOpRequest: { |
2605 | 0 | mutable_no_op_request()->::yb::RedisNoOpRequestPB::MergeFrom(from.no_op_request()); |
2606 | 0 | break; |
2607 | 0 | } |
2608 | 0 | case REQUEST_NOT_SET: { |
2609 | 0 | break; |
2610 | 0 | } |
2611 | 0 | } |
2612 | 0 | } |
2613 | | |
2614 | 0 | void RedisWriteRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
2615 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisWriteRequestPB) |
2616 | 0 | if (&from == this) return; |
2617 | 0 | Clear(); |
2618 | 0 | MergeFrom(from); |
2619 | 0 | } |
2620 | | |
2621 | 0 | void RedisWriteRequestPB::CopyFrom(const RedisWriteRequestPB& from) { |
2622 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisWriteRequestPB) |
2623 | 0 | if (&from == this) return; |
2624 | 0 | Clear(); |
2625 | 0 | MergeFrom(from); |
2626 | 0 | } |
2627 | | |
2628 | 0 | bool RedisWriteRequestPB::IsInitialized() const { |
2629 | 0 | return true; |
2630 | 0 | } |
2631 | | |
2632 | 0 | void RedisWriteRequestPB::Swap(RedisWriteRequestPB* other) { |
2633 | 0 | if (other == this) return; |
2634 | 0 | InternalSwap(other); |
2635 | 0 | } |
2636 | 0 | void RedisWriteRequestPB::InternalSwap(RedisWriteRequestPB* other) { |
2637 | 0 | using std::swap; |
2638 | 0 | swap(key_value_, other->key_value_); |
2639 | 0 | swap(request_, other->request_); |
2640 | 0 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
2641 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2642 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2643 | 0 | swap(_cached_size_, other->_cached_size_); |
2644 | 0 | } |
2645 | | |
2646 | 43.4k | ::google::protobuf::Metadata RedisWriteRequestPB::GetMetadata() const { |
2647 | 43.4k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2648 | 43.4k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
2649 | 43.4k | } |
2650 | | |
2651 | | |
2652 | | // =================================================================== |
2653 | | |
2654 | 28.1k | void RedisReadRequestPB::InitAsDefaultInstance() { |
2655 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.get_request_ = const_cast< ::yb::RedisGetRequestPB*>( |
2656 | 28.1k | ::yb::RedisGetRequestPB::internal_default_instance()); |
2657 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.strlen_request_ = const_cast< ::yb::RedisStrLenRequestPB*>( |
2658 | 28.1k | ::yb::RedisStrLenRequestPB::internal_default_instance()); |
2659 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.exists_request_ = const_cast< ::yb::RedisExistsRequestPB*>( |
2660 | 28.1k | ::yb::RedisExistsRequestPB::internal_default_instance()); |
2661 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.get_range_request_ = const_cast< ::yb::RedisGetRangeRequestPB*>( |
2662 | 28.1k | ::yb::RedisGetRangeRequestPB::internal_default_instance()); |
2663 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.get_collection_range_request_ = const_cast< ::yb::RedisCollectionGetRangeRequestPB*>( |
2664 | 28.1k | ::yb::RedisCollectionGetRangeRequestPB::internal_default_instance()); |
2665 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.get_ttl_request_ = const_cast< ::yb::RedisGetTtlRequestPB*>( |
2666 | 28.1k | ::yb::RedisGetTtlRequestPB::internal_default_instance()); |
2667 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.keys_request_ = const_cast< ::yb::RedisKeysRequestPB*>( |
2668 | 28.1k | ::yb::RedisKeysRequestPB::internal_default_instance()); |
2669 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_.get_for_rename_request_ = const_cast< ::yb::RedisGetForRenameRequestPB*>( |
2670 | 28.1k | ::yb::RedisGetForRenameRequestPB::internal_default_instance()); |
2671 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->key_value_ = const_cast< ::yb::RedisKeyValuePB*>( |
2672 | 28.1k | ::yb::RedisKeyValuePB::internal_default_instance()); |
2673 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->subkey_range_ = const_cast< ::yb::RedisSubKeyRangePB*>( |
2674 | 28.1k | ::yb::RedisSubKeyRangePB::internal_default_instance()); |
2675 | 28.1k | ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->index_range_ = const_cast< ::yb::RedisIndexRangePB*>( |
2676 | 28.1k | ::yb::RedisIndexRangePB::internal_default_instance()); |
2677 | 28.1k | } |
2678 | 0 | void RedisReadRequestPB::set_allocated_get_request(::yb::RedisGetRequestPB* get_request) { |
2679 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2680 | 0 | clear_request(); |
2681 | 0 | if (get_request) { |
2682 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2683 | 0 | if (message_arena != submessage_arena) { |
2684 | 0 | get_request = ::google::protobuf::internal::GetOwnedMessage( |
2685 | 0 | message_arena, get_request, submessage_arena); |
2686 | 0 | } |
2687 | 0 | set_has_get_request(); |
2688 | 0 | request_.get_request_ = get_request; |
2689 | 0 | } |
2690 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.get_request) |
2691 | 0 | } |
2692 | 0 | void RedisReadRequestPB::set_allocated_strlen_request(::yb::RedisStrLenRequestPB* strlen_request) { |
2693 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2694 | 0 | clear_request(); |
2695 | 0 | if (strlen_request) { |
2696 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2697 | 0 | if (message_arena != submessage_arena) { |
2698 | 0 | strlen_request = ::google::protobuf::internal::GetOwnedMessage( |
2699 | 0 | message_arena, strlen_request, submessage_arena); |
2700 | 0 | } |
2701 | 0 | set_has_strlen_request(); |
2702 | 0 | request_.strlen_request_ = strlen_request; |
2703 | 0 | } |
2704 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.strlen_request) |
2705 | 0 | } |
2706 | 0 | void RedisReadRequestPB::set_allocated_exists_request(::yb::RedisExistsRequestPB* exists_request) { |
2707 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2708 | 0 | clear_request(); |
2709 | 0 | if (exists_request) { |
2710 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2711 | 0 | if (message_arena != submessage_arena) { |
2712 | 0 | exists_request = ::google::protobuf::internal::GetOwnedMessage( |
2713 | 0 | message_arena, exists_request, submessage_arena); |
2714 | 0 | } |
2715 | 0 | set_has_exists_request(); |
2716 | 0 | request_.exists_request_ = exists_request; |
2717 | 0 | } |
2718 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.exists_request) |
2719 | 0 | } |
2720 | 0 | void RedisReadRequestPB::set_allocated_get_range_request(::yb::RedisGetRangeRequestPB* get_range_request) { |
2721 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2722 | 0 | clear_request(); |
2723 | 0 | if (get_range_request) { |
2724 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2725 | 0 | if (message_arena != submessage_arena) { |
2726 | 0 | get_range_request = ::google::protobuf::internal::GetOwnedMessage( |
2727 | 0 | message_arena, get_range_request, submessage_arena); |
2728 | 0 | } |
2729 | 0 | set_has_get_range_request(); |
2730 | 0 | request_.get_range_request_ = get_range_request; |
2731 | 0 | } |
2732 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.get_range_request) |
2733 | 0 | } |
2734 | 0 | void RedisReadRequestPB::set_allocated_get_collection_range_request(::yb::RedisCollectionGetRangeRequestPB* get_collection_range_request) { |
2735 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2736 | 0 | clear_request(); |
2737 | 0 | if (get_collection_range_request) { |
2738 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2739 | 0 | if (message_arena != submessage_arena) { |
2740 | 0 | get_collection_range_request = ::google::protobuf::internal::GetOwnedMessage( |
2741 | 0 | message_arena, get_collection_range_request, submessage_arena); |
2742 | 0 | } |
2743 | 0 | set_has_get_collection_range_request(); |
2744 | 0 | request_.get_collection_range_request_ = get_collection_range_request; |
2745 | 0 | } |
2746 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.get_collection_range_request) |
2747 | 0 | } |
2748 | 0 | void RedisReadRequestPB::set_allocated_get_ttl_request(::yb::RedisGetTtlRequestPB* get_ttl_request) { |
2749 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2750 | 0 | clear_request(); |
2751 | 0 | if (get_ttl_request) { |
2752 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2753 | 0 | if (message_arena != submessage_arena) { |
2754 | 0 | get_ttl_request = ::google::protobuf::internal::GetOwnedMessage( |
2755 | 0 | message_arena, get_ttl_request, submessage_arena); |
2756 | 0 | } |
2757 | 0 | set_has_get_ttl_request(); |
2758 | 0 | request_.get_ttl_request_ = get_ttl_request; |
2759 | 0 | } |
2760 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.get_ttl_request) |
2761 | 0 | } |
2762 | 0 | void RedisReadRequestPB::set_allocated_keys_request(::yb::RedisKeysRequestPB* keys_request) { |
2763 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2764 | 0 | clear_request(); |
2765 | 0 | if (keys_request) { |
2766 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2767 | 0 | if (message_arena != submessage_arena) { |
2768 | 0 | keys_request = ::google::protobuf::internal::GetOwnedMessage( |
2769 | 0 | message_arena, keys_request, submessage_arena); |
2770 | 0 | } |
2771 | 0 | set_has_keys_request(); |
2772 | 0 | request_.keys_request_ = keys_request; |
2773 | 0 | } |
2774 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.keys_request) |
2775 | 0 | } |
2776 | 0 | void RedisReadRequestPB::set_allocated_get_for_rename_request(::yb::RedisGetForRenameRequestPB* get_for_rename_request) { |
2777 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2778 | 0 | clear_request(); |
2779 | 0 | if (get_for_rename_request) { |
2780 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2781 | 0 | if (message_arena != submessage_arena) { |
2782 | 0 | get_for_rename_request = ::google::protobuf::internal::GetOwnedMessage( |
2783 | 0 | message_arena, get_for_rename_request, submessage_arena); |
2784 | 0 | } |
2785 | 0 | set_has_get_for_rename_request(); |
2786 | 0 | request_.get_for_rename_request_ = get_for_rename_request; |
2787 | 0 | } |
2788 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisReadRequestPB.get_for_rename_request) |
2789 | 0 | } |
2790 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2791 | | const int RedisReadRequestPB::kGetRequestFieldNumber; |
2792 | | const int RedisReadRequestPB::kStrlenRequestFieldNumber; |
2793 | | const int RedisReadRequestPB::kExistsRequestFieldNumber; |
2794 | | const int RedisReadRequestPB::kGetRangeRequestFieldNumber; |
2795 | | const int RedisReadRequestPB::kGetCollectionRangeRequestFieldNumber; |
2796 | | const int RedisReadRequestPB::kGetTtlRequestFieldNumber; |
2797 | | const int RedisReadRequestPB::kKeysRequestFieldNumber; |
2798 | | const int RedisReadRequestPB::kGetForRenameRequestFieldNumber; |
2799 | | const int RedisReadRequestPB::kKeyValueFieldNumber; |
2800 | | const int RedisReadRequestPB::kSubkeyRangeFieldNumber; |
2801 | | const int RedisReadRequestPB::kIndexRangeFieldNumber; |
2802 | | const int RedisReadRequestPB::kRangeRequestLimitFieldNumber; |
2803 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2804 | | |
2805 | | RedisReadRequestPB::RedisReadRequestPB() |
2806 | 133k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2807 | 133k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2808 | 105k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisReadRequestPB(); |
2809 | 105k | } |
2810 | 133k | SharedCtor(); |
2811 | | // @@protoc_insertion_point(constructor:yb.RedisReadRequestPB) |
2812 | 133k | } |
2813 | | RedisReadRequestPB::RedisReadRequestPB(const RedisReadRequestPB& from) |
2814 | | : ::google::protobuf::Message(), |
2815 | | _internal_metadata_(NULL), |
2816 | | _has_bits_(from._has_bits_), |
2817 | 84.6k | _cached_size_(0) { |
2818 | 84.6k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2819 | 84.6k | if (from.has_key_value()) { |
2820 | 84.6k | key_value_ = new ::yb::RedisKeyValuePB(*from.key_value_); |
2821 | 84.6k | } else { |
2822 | 0 | key_value_ = NULL; |
2823 | 0 | } |
2824 | 84.6k | if (from.has_subkey_range()) { |
2825 | 10.9k | subkey_range_ = new ::yb::RedisSubKeyRangePB(*from.subkey_range_); |
2826 | 73.6k | } else { |
2827 | 73.6k | subkey_range_ = NULL; |
2828 | 73.6k | } |
2829 | 84.6k | if (from.has_index_range()) { |
2830 | 70 | index_range_ = new ::yb::RedisIndexRangePB(*from.index_range_); |
2831 | 84.5k | } else { |
2832 | 84.5k | index_range_ = NULL; |
2833 | 84.5k | } |
2834 | 84.6k | range_request_limit_ = from.range_request_limit_; |
2835 | 84.6k | clear_has_request(); |
2836 | 84.6k | switch (from.request_case()) { |
2837 | 72.6k | case kGetRequest: { |
2838 | 72.6k | mutable_get_request()->::yb::RedisGetRequestPB::MergeFrom(from.get_request()); |
2839 | 72.6k | break; |
2840 | 0 | } |
2841 | 2 | case kStrlenRequest: { |
2842 | 2 | mutable_strlen_request()->::yb::RedisStrLenRequestPB::MergeFrom(from.strlen_request()); |
2843 | 2 | break; |
2844 | 0 | } |
2845 | 4 | case kExistsRequest: { |
2846 | 4 | mutable_exists_request()->::yb::RedisExistsRequestPB::MergeFrom(from.exists_request()); |
2847 | 4 | break; |
2848 | 0 | } |
2849 | 2 | case kGetRangeRequest: { |
2850 | 2 | mutable_get_range_request()->::yb::RedisGetRangeRequestPB::MergeFrom(from.get_range_request()); |
2851 | 2 | break; |
2852 | 0 | } |
2853 | 10.9k | case kGetCollectionRangeRequest: { |
2854 | 10.9k | mutable_get_collection_range_request()->::yb::RedisCollectionGetRangeRequestPB::MergeFrom(from.get_collection_range_request()); |
2855 | 10.9k | break; |
2856 | 0 | } |
2857 | 291 | case kGetTtlRequest: { |
2858 | 291 | mutable_get_ttl_request()->::yb::RedisGetTtlRequestPB::MergeFrom(from.get_ttl_request()); |
2859 | 291 | break; |
2860 | 0 | } |
2861 | 630 | case kKeysRequest: { |
2862 | 630 | mutable_keys_request()->::yb::RedisKeysRequestPB::MergeFrom(from.keys_request()); |
2863 | 630 | break; |
2864 | 0 | } |
2865 | 4 | case kGetForRenameRequest: { |
2866 | 4 | mutable_get_for_rename_request()->::yb::RedisGetForRenameRequestPB::MergeFrom(from.get_for_rename_request()); |
2867 | 4 | break; |
2868 | 0 | } |
2869 | 0 | case REQUEST_NOT_SET: { |
2870 | 0 | break; |
2871 | 0 | } |
2872 | 84.6k | } |
2873 | | // @@protoc_insertion_point(copy_constructor:yb.RedisReadRequestPB) |
2874 | 84.6k | } |
2875 | | |
2876 | 133k | void RedisReadRequestPB::SharedCtor() { |
2877 | 133k | _cached_size_ = 0; |
2878 | 133k | ::memset(&key_value_, 0, static_cast<size_t>( |
2879 | 133k | reinterpret_cast<char*>(&range_request_limit_) - |
2880 | 133k | reinterpret_cast<char*>(&key_value_)) + sizeof(range_request_limit_)); |
2881 | 133k | clear_has_request(); |
2882 | 133k | } |
2883 | | |
2884 | 189k | RedisReadRequestPB::~RedisReadRequestPB() { |
2885 | | // @@protoc_insertion_point(destructor:yb.RedisReadRequestPB) |
2886 | 189k | SharedDtor(); |
2887 | 189k | } |
2888 | | |
2889 | 189k | void RedisReadRequestPB::SharedDtor() { |
2890 | 189k | if (this != internal_default_instance()) delete key_value_; |
2891 | 189k | if (this != internal_default_instance()) delete subkey_range_; |
2892 | 189k | if (this != internal_default_instance()) delete index_range_; |
2893 | 189k | if (has_request()) { |
2894 | 189k | clear_request(); |
2895 | 189k | } |
2896 | 189k | } |
2897 | | |
2898 | 0 | void RedisReadRequestPB::SetCachedSize(int size) const { |
2899 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2900 | 0 | _cached_size_ = size; |
2901 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2902 | 0 | } |
2903 | 0 | const ::google::protobuf::Descriptor* RedisReadRequestPB::descriptor() { |
2904 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
2905 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2906 | 0 | } |
2907 | | |
2908 | 0 | const RedisReadRequestPB& RedisReadRequestPB::default_instance() { |
2909 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisReadRequestPB(); |
2910 | 0 | return *internal_default_instance(); |
2911 | 0 | } |
2912 | | |
2913 | 0 | RedisReadRequestPB* RedisReadRequestPB::New(::google::protobuf::Arena* arena) const { |
2914 | 0 | RedisReadRequestPB* n = new RedisReadRequestPB; |
2915 | 0 | if (arena != NULL) { |
2916 | 0 | arena->Own(n); |
2917 | 0 | } |
2918 | 0 | return n; |
2919 | 0 | } |
2920 | | |
2921 | 379k | void RedisReadRequestPB::clear_request() { |
2922 | | // @@protoc_insertion_point(one_of_clear_start:yb.RedisReadRequestPB) |
2923 | 379k | switch (request_case()) { |
2924 | 160k | case kGetRequest: { |
2925 | 160k | delete request_.get_request_; |
2926 | 160k | break; |
2927 | 0 | } |
2928 | 6 | case kStrlenRequest: { |
2929 | 6 | delete request_.strlen_request_; |
2930 | 6 | break; |
2931 | 0 | } |
2932 | 8 | case kExistsRequest: { |
2933 | 8 | delete request_.exists_request_; |
2934 | 8 | break; |
2935 | 0 | } |
2936 | 4 | case kGetRangeRequest: { |
2937 | 4 | delete request_.get_range_request_; |
2938 | 4 | break; |
2939 | 0 | } |
2940 | 26.6k | case kGetCollectionRangeRequest: { |
2941 | 26.6k | delete request_.get_collection_range_request_; |
2942 | 26.6k | break; |
2943 | 0 | } |
2944 | 708 | case kGetTtlRequest: { |
2945 | 708 | delete request_.get_ttl_request_; |
2946 | 708 | break; |
2947 | 0 | } |
2948 | 1.68k | case kKeysRequest: { |
2949 | 1.68k | delete request_.keys_request_; |
2950 | 1.68k | break; |
2951 | 0 | } |
2952 | 11 | case kGetForRenameRequest: { |
2953 | 11 | delete request_.get_for_rename_request_; |
2954 | 11 | break; |
2955 | 0 | } |
2956 | 189k | case REQUEST_NOT_SET: { |
2957 | 189k | break; |
2958 | 0 | } |
2959 | 379k | } |
2960 | 379k | _oneof_case_[0] = REQUEST_NOT_SET; |
2961 | 379k | } |
2962 | | |
2963 | | |
2964 | 0 | void RedisReadRequestPB::Clear() { |
2965 | | // @@protoc_insertion_point(message_clear_start:yb.RedisReadRequestPB) |
2966 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2967 | | // Prevent compiler warnings about cached_has_bits being unused |
2968 | 0 | (void) cached_has_bits; |
2969 | |
|
2970 | 0 | cached_has_bits = _has_bits_[0]; |
2971 | 0 | if (cached_has_bits & 7u) { |
2972 | 0 | if (cached_has_bits & 0x00000001u) { |
2973 | 0 | GOOGLE_DCHECK(key_value_ != NULL); |
2974 | 0 | key_value_->Clear(); |
2975 | 0 | } |
2976 | 0 | if (cached_has_bits & 0x00000002u) { |
2977 | 0 | GOOGLE_DCHECK(subkey_range_ != NULL); |
2978 | 0 | subkey_range_->Clear(); |
2979 | 0 | } |
2980 | 0 | if (cached_has_bits & 0x00000004u) { |
2981 | 0 | GOOGLE_DCHECK(index_range_ != NULL); |
2982 | 0 | index_range_->Clear(); |
2983 | 0 | } |
2984 | 0 | } |
2985 | 0 | range_request_limit_ = 0; |
2986 | 0 | clear_request(); |
2987 | 0 | _has_bits_.Clear(); |
2988 | 0 | _internal_metadata_.Clear(); |
2989 | 0 | } |
2990 | | |
2991 | | bool RedisReadRequestPB::MergePartialFromCodedStream( |
2992 | 20.2k | ::google::protobuf::io::CodedInputStream* input) { |
2993 | 47.4k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
2994 | 20.2k | ::google::protobuf::uint32 tag; |
2995 | | // @@protoc_insertion_point(parse_start:yb.RedisReadRequestPB) |
2996 | 67.7k | for (;;) { |
2997 | 67.7k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2998 | 67.7k | tag = p.first; |
2999 | 67.7k | if (!p.second) goto handle_unusual20.2k ; |
3000 | 47.4k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3001 | | // optional .yb.RedisGetRequestPB get_request = 2; |
3002 | 15.0k | case 2: { |
3003 | 15.0k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3004 | 15.0k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3005 | 15.0k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3006 | 15.0k | input, mutable_get_request())); |
3007 | 15.0k | } else { |
3008 | 0 | goto handle_unusual; |
3009 | 0 | } |
3010 | 15.0k | break; |
3011 | 15.0k | } |
3012 | | |
3013 | | // optional .yb.RedisStrLenRequestPB strlen_request = 3; |
3014 | 15.0k | case 3: { |
3015 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3016 | 2 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
3017 | 2 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3018 | 2 | input, mutable_strlen_request())); |
3019 | 2 | } else { |
3020 | 0 | goto handle_unusual; |
3021 | 0 | } |
3022 | 2 | break; |
3023 | 2 | } |
3024 | | |
3025 | | // optional .yb.RedisExistsRequestPB exists_request = 4; |
3026 | 2 | case 4: { |
3027 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3028 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
3029 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3030 | 0 | input, mutable_exists_request())); |
3031 | 0 | } else { |
3032 | 0 | goto handle_unusual; |
3033 | 0 | } |
3034 | 0 | break; |
3035 | 0 | } |
3036 | | |
3037 | | // optional .yb.RedisGetRangeRequestPB get_range_request = 5; |
3038 | 0 | case 5: { |
3039 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3040 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
3041 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3042 | 0 | input, mutable_get_range_request())); |
3043 | 0 | } else { |
3044 | 0 | goto handle_unusual; |
3045 | 0 | } |
3046 | 0 | break; |
3047 | 0 | } |
3048 | | |
3049 | | // optional .yb.RedisKeyValuePB key_value = 6; |
3050 | 20.2k | case 6: { |
3051 | 20.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3052 | 20.2k | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
3053 | 20.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3054 | 20.2k | input, mutable_key_value())); |
3055 | 20.2k | } else { |
3056 | 0 | goto handle_unusual; |
3057 | 0 | } |
3058 | 20.2k | break; |
3059 | 20.2k | } |
3060 | | |
3061 | | // optional .yb.RedisSubKeyRangePB subkey_range = 7; |
3062 | 20.2k | case 7: { |
3063 | 4.68k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3064 | 4.68k | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
3065 | 4.68k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3066 | 4.68k | input, mutable_subkey_range())); |
3067 | 4.68k | } else { |
3068 | 0 | goto handle_unusual; |
3069 | 0 | } |
3070 | 4.68k | break; |
3071 | 4.68k | } |
3072 | | |
3073 | | // optional .yb.RedisIndexRangePB index_range = 8; |
3074 | 4.68k | case 8: { |
3075 | 45 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3076 | 45 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
3077 | 45 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3078 | 45 | input, mutable_index_range())); |
3079 | 45 | } else { |
3080 | 0 | goto handle_unusual; |
3081 | 0 | } |
3082 | 45 | break; |
3083 | 45 | } |
3084 | | |
3085 | | // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9; |
3086 | 4.69k | case 9: { |
3087 | 4.69k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3088 | 4.69k | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
3089 | 4.69k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3090 | 4.69k | input, mutable_get_collection_range_request())); |
3091 | 4.69k | } else { |
3092 | 0 | goto handle_unusual; |
3093 | 0 | } |
3094 | 4.69k | break; |
3095 | 4.69k | } |
3096 | | |
3097 | | // optional int32 range_request_limit = 10 [default = 0]; |
3098 | 4.69k | case 10: { |
3099 | 2.25k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3100 | 2.25k | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
3101 | 2.25k | set_has_range_request_limit(); |
3102 | 2.25k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3103 | 2.25k | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3104 | 2.25k | input, &range_request_limit_))); |
3105 | 2.25k | } else { |
3106 | 0 | goto handle_unusual; |
3107 | 0 | } |
3108 | 2.25k | break; |
3109 | 2.25k | } |
3110 | | |
3111 | | // optional .yb.RedisGetTtlRequestPB get_ttl_request = 11; |
3112 | 2.25k | case 11: { |
3113 | 126 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3114 | 126 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
3115 | 126 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3116 | 126 | input, mutable_get_ttl_request())); |
3117 | 126 | } else { |
3118 | 0 | goto handle_unusual; |
3119 | 0 | } |
3120 | 126 | break; |
3121 | 126 | } |
3122 | | |
3123 | | // optional .yb.RedisKeysRequestPB keys_request = 12; |
3124 | 420 | case 12: { |
3125 | 420 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3126 | 420 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
3127 | 420 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3128 | 420 | input, mutable_keys_request())); |
3129 | 420 | } else { |
3130 | 0 | goto handle_unusual; |
3131 | 0 | } |
3132 | 420 | break; |
3133 | 420 | } |
3134 | | |
3135 | | // optional .yb.RedisGetForRenameRequestPB get_for_rename_request = 13; |
3136 | 420 | case 13: { |
3137 | 3 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3138 | 3 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
3139 | 3 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3140 | 3 | input, mutable_get_for_rename_request())); |
3141 | 3 | } else { |
3142 | 0 | goto handle_unusual; |
3143 | 0 | } |
3144 | 3 | break; |
3145 | 3 | } |
3146 | | |
3147 | 3 | default: { |
3148 | 20.2k | handle_unusual: |
3149 | 20.2k | if (tag == 0) { |
3150 | 20.2k | goto success; |
3151 | 20.2k | } |
3152 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3153 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3154 | 0 | break; |
3155 | 0 | } |
3156 | 47.4k | } |
3157 | 47.4k | } |
3158 | 20.2k | success: |
3159 | | // @@protoc_insertion_point(parse_success:yb.RedisReadRequestPB) |
3160 | 20.2k | return true; |
3161 | 0 | failure: |
3162 | | // @@protoc_insertion_point(parse_failure:yb.RedisReadRequestPB) |
3163 | 0 | return false; |
3164 | 20.2k | #undef DO_ |
3165 | 20.2k | } |
3166 | | |
3167 | | void RedisReadRequestPB::SerializeWithCachedSizes( |
3168 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3169 | | // @@protoc_insertion_point(serialize_start:yb.RedisReadRequestPB) |
3170 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3171 | 0 | (void) cached_has_bits; |
3172 | |
|
3173 | 0 | switch (request_case()) { |
3174 | 0 | case kGetRequest: |
3175 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3176 | 0 | 2, *request_.get_request_, output); |
3177 | 0 | break; |
3178 | 0 | case kStrlenRequest: |
3179 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3180 | 0 | 3, *request_.strlen_request_, output); |
3181 | 0 | break; |
3182 | 0 | case kExistsRequest: |
3183 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3184 | 0 | 4, *request_.exists_request_, output); |
3185 | 0 | break; |
3186 | 0 | case kGetRangeRequest: |
3187 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3188 | 0 | 5, *request_.get_range_request_, output); |
3189 | 0 | break; |
3190 | 0 | default: ; |
3191 | 0 | } |
3192 | 0 | cached_has_bits = _has_bits_[0]; |
3193 | | // optional .yb.RedisKeyValuePB key_value = 6; |
3194 | 0 | if (cached_has_bits & 0x00000001u) { |
3195 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3196 | 0 | 6, *this->key_value_, output); |
3197 | 0 | } |
3198 | | |
3199 | | // optional .yb.RedisSubKeyRangePB subkey_range = 7; |
3200 | 0 | if (cached_has_bits & 0x00000002u) { |
3201 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3202 | 0 | 7, *this->subkey_range_, output); |
3203 | 0 | } |
3204 | | |
3205 | | // optional .yb.RedisIndexRangePB index_range = 8; |
3206 | 0 | if (cached_has_bits & 0x00000004u) { |
3207 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3208 | 0 | 8, *this->index_range_, output); |
3209 | 0 | } |
3210 | | |
3211 | | // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9; |
3212 | 0 | if (has_get_collection_range_request()) { |
3213 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3214 | 0 | 9, *request_.get_collection_range_request_, output); |
3215 | 0 | } |
3216 | | |
3217 | | // optional int32 range_request_limit = 10 [default = 0]; |
3218 | 0 | if (cached_has_bits & 0x00000008u) { |
3219 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->range_request_limit(), output); |
3220 | 0 | } |
3221 | |
|
3222 | 0 | switch (request_case()) { |
3223 | 0 | case kGetTtlRequest: |
3224 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3225 | 0 | 11, *request_.get_ttl_request_, output); |
3226 | 0 | break; |
3227 | 0 | case kKeysRequest: |
3228 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3229 | 0 | 12, *request_.keys_request_, output); |
3230 | 0 | break; |
3231 | 0 | case kGetForRenameRequest: |
3232 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3233 | 0 | 13, *request_.get_for_rename_request_, output); |
3234 | 0 | break; |
3235 | 0 | default: ; |
3236 | 0 | } |
3237 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3238 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3239 | 0 | _internal_metadata_.unknown_fields(), output); |
3240 | 0 | } |
3241 | | // @@protoc_insertion_point(serialize_end:yb.RedisReadRequestPB) |
3242 | 0 | } |
3243 | | |
3244 | | ::google::protobuf::uint8* RedisReadRequestPB::InternalSerializeWithCachedSizesToArray( |
3245 | 20.3k | bool deterministic, ::google::protobuf::uint8* target) const { |
3246 | 20.3k | (void)deterministic; // Unused |
3247 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisReadRequestPB) |
3248 | 20.3k | ::google::protobuf::uint32 cached_has_bits = 0; |
3249 | 20.3k | (void) cached_has_bits; |
3250 | | |
3251 | 20.3k | switch (request_case()) { |
3252 | 15.0k | case kGetRequest: |
3253 | 15.0k | target = ::google::protobuf::internal::WireFormatLite:: |
3254 | 15.0k | InternalWriteMessageToArray( |
3255 | 15.0k | 2, *request_.get_request_, deterministic, target); |
3256 | 15.0k | break; |
3257 | 2 | case kStrlenRequest: |
3258 | 2 | target = ::google::protobuf::internal::WireFormatLite:: |
3259 | 2 | InternalWriteMessageToArray( |
3260 | 2 | 3, *request_.strlen_request_, deterministic, target); |
3261 | 2 | break; |
3262 | 0 | case kExistsRequest: |
3263 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3264 | 0 | InternalWriteMessageToArray( |
3265 | 0 | 4, *request_.exists_request_, deterministic, target); |
3266 | 0 | break; |
3267 | 0 | case kGetRangeRequest: |
3268 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3269 | 0 | InternalWriteMessageToArray( |
3270 | 0 | 5, *request_.get_range_request_, deterministic, target); |
3271 | 0 | break; |
3272 | 5.24k | default: ; |
3273 | 20.3k | } |
3274 | 20.3k | cached_has_bits = _has_bits_[0]; |
3275 | | // optional .yb.RedisKeyValuePB key_value = 6; |
3276 | 20.3k | if (cached_has_bits & 0x00000001u) { |
3277 | 20.3k | target = ::google::protobuf::internal::WireFormatLite:: |
3278 | 20.3k | InternalWriteMessageToArray( |
3279 | 20.3k | 6, *this->key_value_, deterministic, target); |
3280 | 20.3k | } |
3281 | | |
3282 | | // optional .yb.RedisSubKeyRangePB subkey_range = 7; |
3283 | 20.3k | if (cached_has_bits & 0x00000002u) { |
3284 | 4.68k | target = ::google::protobuf::internal::WireFormatLite:: |
3285 | 4.68k | InternalWriteMessageToArray( |
3286 | 4.68k | 7, *this->subkey_range_, deterministic, target); |
3287 | 4.68k | } |
3288 | | |
3289 | | // optional .yb.RedisIndexRangePB index_range = 8; |
3290 | 20.3k | if (cached_has_bits & 0x00000004u) { |
3291 | 45 | target = ::google::protobuf::internal::WireFormatLite:: |
3292 | 45 | InternalWriteMessageToArray( |
3293 | 45 | 8, *this->index_range_, deterministic, target); |
3294 | 45 | } |
3295 | | |
3296 | | // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9; |
3297 | 20.3k | if (has_get_collection_range_request()) { |
3298 | 4.69k | target = ::google::protobuf::internal::WireFormatLite:: |
3299 | 4.69k | InternalWriteMessageToArray( |
3300 | 4.69k | 9, *request_.get_collection_range_request_, deterministic, target); |
3301 | 4.69k | } |
3302 | | |
3303 | | // optional int32 range_request_limit = 10 [default = 0]; |
3304 | 20.3k | if (cached_has_bits & 0x00000008u) { |
3305 | 2.25k | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->range_request_limit(), target); |
3306 | 2.25k | } |
3307 | | |
3308 | 20.3k | switch (request_case()) { |
3309 | 126 | case kGetTtlRequest: |
3310 | 126 | target = ::google::protobuf::internal::WireFormatLite:: |
3311 | 126 | InternalWriteMessageToArray( |
3312 | 126 | 11, *request_.get_ttl_request_, deterministic, target); |
3313 | 126 | break; |
3314 | 420 | case kKeysRequest: |
3315 | 420 | target = ::google::protobuf::internal::WireFormatLite:: |
3316 | 420 | InternalWriteMessageToArray( |
3317 | 420 | 12, *request_.keys_request_, deterministic, target); |
3318 | 420 | break; |
3319 | 3 | case kGetForRenameRequest: |
3320 | 3 | target = ::google::protobuf::internal::WireFormatLite:: |
3321 | 3 | InternalWriteMessageToArray( |
3322 | 3 | 13, *request_.get_for_rename_request_, deterministic, target); |
3323 | 3 | break; |
3324 | 19.7k | default: ; |
3325 | 20.3k | } |
3326 | 20.3k | if (_internal_metadata_.have_unknown_fields()) { |
3327 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3328 | 0 | _internal_metadata_.unknown_fields(), target); |
3329 | 0 | } |
3330 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisReadRequestPB) |
3331 | 20.3k | return target; |
3332 | 20.3k | } |
3333 | | |
3334 | 40.6k | size_t RedisReadRequestPB::ByteSizeLong() const { |
3335 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisReadRequestPB) |
3336 | 40.6k | size_t total_size = 0; |
3337 | | |
3338 | 40.6k | if (_internal_metadata_.have_unknown_fields()) { |
3339 | 0 | total_size += |
3340 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3341 | 0 | _internal_metadata_.unknown_fields()); |
3342 | 0 | } |
3343 | 40.6k | if (_has_bits_[0 / 32] & 15u) { |
3344 | | // optional .yb.RedisKeyValuePB key_value = 6; |
3345 | 40.6k | if (has_key_value()) { |
3346 | 40.6k | total_size += 1 + |
3347 | 40.6k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3348 | 40.6k | *this->key_value_); |
3349 | 40.6k | } |
3350 | | |
3351 | | // optional .yb.RedisSubKeyRangePB subkey_range = 7; |
3352 | 40.6k | if (has_subkey_range()) { |
3353 | 9.37k | total_size += 1 + |
3354 | 9.37k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3355 | 9.37k | *this->subkey_range_); |
3356 | 9.37k | } |
3357 | | |
3358 | | // optional .yb.RedisIndexRangePB index_range = 8; |
3359 | 40.6k | if (has_index_range()) { |
3360 | 90 | total_size += 1 + |
3361 | 90 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3362 | 90 | *this->index_range_); |
3363 | 90 | } |
3364 | | |
3365 | | // optional int32 range_request_limit = 10 [default = 0]; |
3366 | 40.6k | if (has_range_request_limit()) { |
3367 | 4.50k | total_size += 1 + |
3368 | 4.50k | ::google::protobuf::internal::WireFormatLite::Int32Size( |
3369 | 4.50k | this->range_request_limit()); |
3370 | 4.50k | } |
3371 | | |
3372 | 40.6k | } |
3373 | 40.6k | switch (request_case()) { |
3374 | | // optional .yb.RedisGetRequestPB get_request = 2; |
3375 | 30.1k | case kGetRequest: { |
3376 | 30.1k | total_size += 1 + |
3377 | 30.1k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3378 | 30.1k | *request_.get_request_); |
3379 | 30.1k | break; |
3380 | 0 | } |
3381 | | // optional .yb.RedisStrLenRequestPB strlen_request = 3; |
3382 | 4 | case kStrlenRequest: { |
3383 | 4 | total_size += 1 + |
3384 | 4 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3385 | 4 | *request_.strlen_request_); |
3386 | 4 | break; |
3387 | 0 | } |
3388 | | // optional .yb.RedisExistsRequestPB exists_request = 4; |
3389 | 0 | case kExistsRequest: { |
3390 | 0 | total_size += 1 + |
3391 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3392 | 0 | *request_.exists_request_); |
3393 | 0 | break; |
3394 | 0 | } |
3395 | | // optional .yb.RedisGetRangeRequestPB get_range_request = 5; |
3396 | 0 | case kGetRangeRequest: { |
3397 | 0 | total_size += 1 + |
3398 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3399 | 0 | *request_.get_range_request_); |
3400 | 0 | break; |
3401 | 0 | } |
3402 | | // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9; |
3403 | 9.39k | case kGetCollectionRangeRequest: { |
3404 | 9.39k | total_size += 1 + |
3405 | 9.39k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3406 | 9.39k | *request_.get_collection_range_request_); |
3407 | 9.39k | break; |
3408 | 0 | } |
3409 | | // optional .yb.RedisGetTtlRequestPB get_ttl_request = 11; |
3410 | 252 | case kGetTtlRequest: { |
3411 | 252 | total_size += 1 + |
3412 | 252 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3413 | 252 | *request_.get_ttl_request_); |
3414 | 252 | break; |
3415 | 0 | } |
3416 | | // optional .yb.RedisKeysRequestPB keys_request = 12; |
3417 | 840 | case kKeysRequest: { |
3418 | 840 | total_size += 1 + |
3419 | 840 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3420 | 840 | *request_.keys_request_); |
3421 | 840 | break; |
3422 | 0 | } |
3423 | | // optional .yb.RedisGetForRenameRequestPB get_for_rename_request = 13; |
3424 | 6 | case kGetForRenameRequest: { |
3425 | 6 | total_size += 1 + |
3426 | 6 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3427 | 6 | *request_.get_for_rename_request_); |
3428 | 6 | break; |
3429 | 0 | } |
3430 | 0 | case REQUEST_NOT_SET: { |
3431 | 0 | break; |
3432 | 0 | } |
3433 | 40.6k | } |
3434 | 40.6k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3435 | 40.6k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3436 | 40.6k | _cached_size_ = cached_size; |
3437 | 40.6k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3438 | 40.6k | return total_size; |
3439 | 40.6k | } |
3440 | | |
3441 | 0 | void RedisReadRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
3442 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisReadRequestPB) |
3443 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3444 | 0 | const RedisReadRequestPB* source = |
3445 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisReadRequestPB>( |
3446 | 0 | &from); |
3447 | 0 | if (source == NULL) { |
3448 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisReadRequestPB) |
3449 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3450 | 0 | } else { |
3451 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisReadRequestPB) |
3452 | 0 | MergeFrom(*source); |
3453 | 0 | } |
3454 | 0 | } |
3455 | | |
3456 | 0 | void RedisReadRequestPB::MergeFrom(const RedisReadRequestPB& from) { |
3457 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisReadRequestPB) |
3458 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3459 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3460 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3461 | 0 | (void) cached_has_bits; |
3462 | |
|
3463 | 0 | cached_has_bits = from._has_bits_[0]; |
3464 | 0 | if (cached_has_bits & 15u) { |
3465 | 0 | if (cached_has_bits & 0x00000001u) { |
3466 | 0 | mutable_key_value()->::yb::RedisKeyValuePB::MergeFrom(from.key_value()); |
3467 | 0 | } |
3468 | 0 | if (cached_has_bits & 0x00000002u) { |
3469 | 0 | mutable_subkey_range()->::yb::RedisSubKeyRangePB::MergeFrom(from.subkey_range()); |
3470 | 0 | } |
3471 | 0 | if (cached_has_bits & 0x00000004u) { |
3472 | 0 | mutable_index_range()->::yb::RedisIndexRangePB::MergeFrom(from.index_range()); |
3473 | 0 | } |
3474 | 0 | if (cached_has_bits & 0x00000008u) { |
3475 | 0 | range_request_limit_ = from.range_request_limit_; |
3476 | 0 | } |
3477 | 0 | _has_bits_[0] |= cached_has_bits; |
3478 | 0 | } |
3479 | 0 | switch (from.request_case()) { |
3480 | 0 | case kGetRequest: { |
3481 | 0 | mutable_get_request()->::yb::RedisGetRequestPB::MergeFrom(from.get_request()); |
3482 | 0 | break; |
3483 | 0 | } |
3484 | 0 | case kStrlenRequest: { |
3485 | 0 | mutable_strlen_request()->::yb::RedisStrLenRequestPB::MergeFrom(from.strlen_request()); |
3486 | 0 | break; |
3487 | 0 | } |
3488 | 0 | case kExistsRequest: { |
3489 | 0 | mutable_exists_request()->::yb::RedisExistsRequestPB::MergeFrom(from.exists_request()); |
3490 | 0 | break; |
3491 | 0 | } |
3492 | 0 | case kGetRangeRequest: { |
3493 | 0 | mutable_get_range_request()->::yb::RedisGetRangeRequestPB::MergeFrom(from.get_range_request()); |
3494 | 0 | break; |
3495 | 0 | } |
3496 | 0 | case kGetCollectionRangeRequest: { |
3497 | 0 | mutable_get_collection_range_request()->::yb::RedisCollectionGetRangeRequestPB::MergeFrom(from.get_collection_range_request()); |
3498 | 0 | break; |
3499 | 0 | } |
3500 | 0 | case kGetTtlRequest: { |
3501 | 0 | mutable_get_ttl_request()->::yb::RedisGetTtlRequestPB::MergeFrom(from.get_ttl_request()); |
3502 | 0 | break; |
3503 | 0 | } |
3504 | 0 | case kKeysRequest: { |
3505 | 0 | mutable_keys_request()->::yb::RedisKeysRequestPB::MergeFrom(from.keys_request()); |
3506 | 0 | break; |
3507 | 0 | } |
3508 | 0 | case kGetForRenameRequest: { |
3509 | 0 | mutable_get_for_rename_request()->::yb::RedisGetForRenameRequestPB::MergeFrom(from.get_for_rename_request()); |
3510 | 0 | break; |
3511 | 0 | } |
3512 | 0 | case REQUEST_NOT_SET: { |
3513 | 0 | break; |
3514 | 0 | } |
3515 | 0 | } |
3516 | 0 | } |
3517 | | |
3518 | 0 | void RedisReadRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
3519 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisReadRequestPB) |
3520 | 0 | if (&from == this) return; |
3521 | 0 | Clear(); |
3522 | 0 | MergeFrom(from); |
3523 | 0 | } |
3524 | | |
3525 | 0 | void RedisReadRequestPB::CopyFrom(const RedisReadRequestPB& from) { |
3526 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisReadRequestPB) |
3527 | 0 | if (&from == this) return; |
3528 | 0 | Clear(); |
3529 | 0 | MergeFrom(from); |
3530 | 0 | } |
3531 | | |
3532 | 40.5k | bool RedisReadRequestPB::IsInitialized() const { |
3533 | 40.5k | if (has_index_range()) { |
3534 | 90 | if (!this->index_range_->IsInitialized()) return false0 ; |
3535 | 90 | } |
3536 | 40.5k | return true; |
3537 | 40.5k | } |
3538 | | |
3539 | 0 | void RedisReadRequestPB::Swap(RedisReadRequestPB* other) { |
3540 | 0 | if (other == this) return; |
3541 | 0 | InternalSwap(other); |
3542 | 0 | } |
3543 | 0 | void RedisReadRequestPB::InternalSwap(RedisReadRequestPB* other) { |
3544 | 0 | using std::swap; |
3545 | 0 | swap(key_value_, other->key_value_); |
3546 | 0 | swap(subkey_range_, other->subkey_range_); |
3547 | 0 | swap(index_range_, other->index_range_); |
3548 | 0 | swap(range_request_limit_, other->range_request_limit_); |
3549 | 0 | swap(request_, other->request_); |
3550 | 0 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
3551 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3552 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3553 | 0 | swap(_cached_size_, other->_cached_size_); |
3554 | 0 | } |
3555 | | |
3556 | 104k | ::google::protobuf::Metadata RedisReadRequestPB::GetMetadata() const { |
3557 | 104k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3558 | 104k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
3559 | 104k | } |
3560 | | |
3561 | | |
3562 | | // =================================================================== |
3563 | | |
3564 | 28.1k | void RedisSubKeyRangePB::InitAsDefaultInstance() { |
3565 | 28.1k | ::yb::_RedisSubKeyRangePB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::RedisSubKeyBoundPB*>( |
3566 | 28.1k | ::yb::RedisSubKeyBoundPB::internal_default_instance()); |
3567 | 28.1k | ::yb::_RedisSubKeyRangePB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::RedisSubKeyBoundPB*>( |
3568 | 28.1k | ::yb::RedisSubKeyBoundPB::internal_default_instance()); |
3569 | 28.1k | } |
3570 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3571 | | const int RedisSubKeyRangePB::kLowerBoundFieldNumber; |
3572 | | const int RedisSubKeyRangePB::kUpperBoundFieldNumber; |
3573 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3574 | | |
3575 | | RedisSubKeyRangePB::RedisSubKeyRangePB() |
3576 | 43.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3577 | 43.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3578 | 15.6k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyRangePB(); |
3579 | 15.6k | } |
3580 | 43.8k | SharedCtor(); |
3581 | | // @@protoc_insertion_point(constructor:yb.RedisSubKeyRangePB) |
3582 | 43.8k | } |
3583 | | RedisSubKeyRangePB::RedisSubKeyRangePB(const RedisSubKeyRangePB& from) |
3584 | | : ::google::protobuf::Message(), |
3585 | | _internal_metadata_(NULL), |
3586 | | _has_bits_(from._has_bits_), |
3587 | 10.9k | _cached_size_(0) { |
3588 | 10.9k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3589 | 10.9k | if (from.has_lower_bound()) { |
3590 | 10.9k | lower_bound_ = new ::yb::RedisSubKeyBoundPB(*from.lower_bound_); |
3591 | 10.9k | } else { |
3592 | 0 | lower_bound_ = NULL; |
3593 | 0 | } |
3594 | 10.9k | if (from.has_upper_bound()) { |
3595 | 10.9k | upper_bound_ = new ::yb::RedisSubKeyBoundPB(*from.upper_bound_); |
3596 | 10.9k | } else { |
3597 | 0 | upper_bound_ = NULL; |
3598 | 0 | } |
3599 | | // @@protoc_insertion_point(copy_constructor:yb.RedisSubKeyRangePB) |
3600 | 10.9k | } |
3601 | | |
3602 | 43.8k | void RedisSubKeyRangePB::SharedCtor() { |
3603 | 43.8k | _cached_size_ = 0; |
3604 | 43.8k | ::memset(&lower_bound_, 0, static_cast<size_t>( |
3605 | 43.8k | reinterpret_cast<char*>(&upper_bound_) - |
3606 | 43.8k | reinterpret_cast<char*>(&lower_bound_)) + sizeof(upper_bound_)); |
3607 | 43.8k | } |
3608 | | |
3609 | 26.6k | RedisSubKeyRangePB::~RedisSubKeyRangePB() { |
3610 | | // @@protoc_insertion_point(destructor:yb.RedisSubKeyRangePB) |
3611 | 26.6k | SharedDtor(); |
3612 | 26.6k | } |
3613 | | |
3614 | 26.6k | void RedisSubKeyRangePB::SharedDtor() { |
3615 | 26.6k | if (this != internal_default_instance()) delete lower_bound_; |
3616 | 26.6k | if (this != internal_default_instance()) delete upper_bound_; |
3617 | 26.6k | } |
3618 | | |
3619 | 0 | void RedisSubKeyRangePB::SetCachedSize(int size) const { |
3620 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3621 | 0 | _cached_size_ = size; |
3622 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3623 | 0 | } |
3624 | 0 | const ::google::protobuf::Descriptor* RedisSubKeyRangePB::descriptor() { |
3625 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3626 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3627 | 0 | } |
3628 | | |
3629 | 0 | const RedisSubKeyRangePB& RedisSubKeyRangePB::default_instance() { |
3630 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyRangePB(); |
3631 | 0 | return *internal_default_instance(); |
3632 | 0 | } |
3633 | | |
3634 | 0 | RedisSubKeyRangePB* RedisSubKeyRangePB::New(::google::protobuf::Arena* arena) const { |
3635 | 0 | RedisSubKeyRangePB* n = new RedisSubKeyRangePB; |
3636 | 0 | if (arena != NULL) { |
3637 | 0 | arena->Own(n); |
3638 | 0 | } |
3639 | 0 | return n; |
3640 | 0 | } |
3641 | | |
3642 | 0 | void RedisSubKeyRangePB::Clear() { |
3643 | | // @@protoc_insertion_point(message_clear_start:yb.RedisSubKeyRangePB) |
3644 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3645 | | // Prevent compiler warnings about cached_has_bits being unused |
3646 | 0 | (void) cached_has_bits; |
3647 | |
|
3648 | 0 | cached_has_bits = _has_bits_[0]; |
3649 | 0 | if (cached_has_bits & 3u) { |
3650 | 0 | if (cached_has_bits & 0x00000001u) { |
3651 | 0 | GOOGLE_DCHECK(lower_bound_ != NULL); |
3652 | 0 | lower_bound_->Clear(); |
3653 | 0 | } |
3654 | 0 | if (cached_has_bits & 0x00000002u) { |
3655 | 0 | GOOGLE_DCHECK(upper_bound_ != NULL); |
3656 | 0 | upper_bound_->Clear(); |
3657 | 0 | } |
3658 | 0 | } |
3659 | 0 | _has_bits_.Clear(); |
3660 | 0 | _internal_metadata_.Clear(); |
3661 | 0 | } |
3662 | | |
3663 | | bool RedisSubKeyRangePB::MergePartialFromCodedStream( |
3664 | 4.68k | ::google::protobuf::io::CodedInputStream* input) { |
3665 | 9.37k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3666 | 4.68k | ::google::protobuf::uint32 tag; |
3667 | | // @@protoc_insertion_point(parse_start:yb.RedisSubKeyRangePB) |
3668 | 14.0k | for (;;) { |
3669 | 14.0k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3670 | 14.0k | tag = p.first; |
3671 | 14.0k | if (!p.second) goto handle_unusual4.68k ; |
3672 | 9.37k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3673 | | // optional .yb.RedisSubKeyBoundPB lower_bound = 1; |
3674 | 4.68k | case 1: { |
3675 | 4.68k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3676 | 4.68k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3677 | 4.68k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3678 | 4.68k | input, mutable_lower_bound())); |
3679 | 4.68k | } else { |
3680 | 0 | goto handle_unusual; |
3681 | 0 | } |
3682 | 4.68k | break; |
3683 | 4.68k | } |
3684 | | |
3685 | | // optional .yb.RedisSubKeyBoundPB upper_bound = 2; |
3686 | 4.68k | case 2: { |
3687 | 4.68k | if (static_cast< ::google::protobuf::uint8>(tag) == |
3688 | 4.68k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3689 | 4.68k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3690 | 4.68k | input, mutable_upper_bound())); |
3691 | 4.68k | } else { |
3692 | 0 | goto handle_unusual; |
3693 | 0 | } |
3694 | 4.68k | break; |
3695 | 4.68k | } |
3696 | | |
3697 | 4.68k | default: { |
3698 | 4.68k | handle_unusual: |
3699 | 4.68k | if (tag == 0) { |
3700 | 4.68k | goto success; |
3701 | 4.68k | } |
3702 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3703 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3704 | 0 | break; |
3705 | 0 | } |
3706 | 9.37k | } |
3707 | 9.37k | } |
3708 | 4.68k | success: |
3709 | | // @@protoc_insertion_point(parse_success:yb.RedisSubKeyRangePB) |
3710 | 4.68k | return true; |
3711 | 0 | failure: |
3712 | | // @@protoc_insertion_point(parse_failure:yb.RedisSubKeyRangePB) |
3713 | 0 | return false; |
3714 | 4.68k | #undef DO_ |
3715 | 4.68k | } |
3716 | | |
3717 | | void RedisSubKeyRangePB::SerializeWithCachedSizes( |
3718 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3719 | | // @@protoc_insertion_point(serialize_start:yb.RedisSubKeyRangePB) |
3720 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3721 | 0 | (void) cached_has_bits; |
3722 | |
|
3723 | 0 | cached_has_bits = _has_bits_[0]; |
3724 | | // optional .yb.RedisSubKeyBoundPB lower_bound = 1; |
3725 | 0 | if (cached_has_bits & 0x00000001u) { |
3726 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3727 | 0 | 1, *this->lower_bound_, output); |
3728 | 0 | } |
3729 | | |
3730 | | // optional .yb.RedisSubKeyBoundPB upper_bound = 2; |
3731 | 0 | if (cached_has_bits & 0x00000002u) { |
3732 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3733 | 0 | 2, *this->upper_bound_, output); |
3734 | 0 | } |
3735 | |
|
3736 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3737 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3738 | 0 | _internal_metadata_.unknown_fields(), output); |
3739 | 0 | } |
3740 | | // @@protoc_insertion_point(serialize_end:yb.RedisSubKeyRangePB) |
3741 | 0 | } |
3742 | | |
3743 | | ::google::protobuf::uint8* RedisSubKeyRangePB::InternalSerializeWithCachedSizesToArray( |
3744 | 4.68k | bool deterministic, ::google::protobuf::uint8* target) const { |
3745 | 4.68k | (void)deterministic; // Unused |
3746 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSubKeyRangePB) |
3747 | 4.68k | ::google::protobuf::uint32 cached_has_bits = 0; |
3748 | 4.68k | (void) cached_has_bits; |
3749 | | |
3750 | 4.68k | cached_has_bits = _has_bits_[0]; |
3751 | | // optional .yb.RedisSubKeyBoundPB lower_bound = 1; |
3752 | 4.68k | if (cached_has_bits & 0x00000001u) { |
3753 | 4.68k | target = ::google::protobuf::internal::WireFormatLite:: |
3754 | 4.68k | InternalWriteMessageToArray( |
3755 | 4.68k | 1, *this->lower_bound_, deterministic, target); |
3756 | 4.68k | } |
3757 | | |
3758 | | // optional .yb.RedisSubKeyBoundPB upper_bound = 2; |
3759 | 4.68k | if (cached_has_bits & 0x00000002u) { |
3760 | 4.68k | target = ::google::protobuf::internal::WireFormatLite:: |
3761 | 4.68k | InternalWriteMessageToArray( |
3762 | 4.68k | 2, *this->upper_bound_, deterministic, target); |
3763 | 4.68k | } |
3764 | | |
3765 | 4.68k | if (_internal_metadata_.have_unknown_fields()) { |
3766 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3767 | 0 | _internal_metadata_.unknown_fields(), target); |
3768 | 0 | } |
3769 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisSubKeyRangePB) |
3770 | 4.68k | return target; |
3771 | 4.68k | } |
3772 | | |
3773 | 9.37k | size_t RedisSubKeyRangePB::ByteSizeLong() const { |
3774 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisSubKeyRangePB) |
3775 | 9.37k | size_t total_size = 0; |
3776 | | |
3777 | 9.37k | if (_internal_metadata_.have_unknown_fields()) { |
3778 | 0 | total_size += |
3779 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3780 | 0 | _internal_metadata_.unknown_fields()); |
3781 | 0 | } |
3782 | 9.37k | if (_has_bits_[0 / 32] & 3u) { |
3783 | | // optional .yb.RedisSubKeyBoundPB lower_bound = 1; |
3784 | 9.37k | if (has_lower_bound()) { |
3785 | 9.37k | total_size += 1 + |
3786 | 9.37k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3787 | 9.37k | *this->lower_bound_); |
3788 | 9.37k | } |
3789 | | |
3790 | | // optional .yb.RedisSubKeyBoundPB upper_bound = 2; |
3791 | 9.37k | if (has_upper_bound()) { |
3792 | 9.37k | total_size += 1 + |
3793 | 9.37k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3794 | 9.37k | *this->upper_bound_); |
3795 | 9.37k | } |
3796 | | |
3797 | 9.37k | } |
3798 | 9.37k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3799 | 9.37k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3800 | 9.37k | _cached_size_ = cached_size; |
3801 | 9.37k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3802 | 9.37k | return total_size; |
3803 | 9.37k | } |
3804 | | |
3805 | 0 | void RedisSubKeyRangePB::MergeFrom(const ::google::protobuf::Message& from) { |
3806 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisSubKeyRangePB) |
3807 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3808 | 0 | const RedisSubKeyRangePB* source = |
3809 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisSubKeyRangePB>( |
3810 | 0 | &from); |
3811 | 0 | if (source == NULL) { |
3812 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisSubKeyRangePB) |
3813 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3814 | 0 | } else { |
3815 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisSubKeyRangePB) |
3816 | 0 | MergeFrom(*source); |
3817 | 0 | } |
3818 | 0 | } |
3819 | | |
3820 | 0 | void RedisSubKeyRangePB::MergeFrom(const RedisSubKeyRangePB& from) { |
3821 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisSubKeyRangePB) |
3822 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3823 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3824 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3825 | 0 | (void) cached_has_bits; |
3826 | |
|
3827 | 0 | cached_has_bits = from._has_bits_[0]; |
3828 | 0 | if (cached_has_bits & 3u) { |
3829 | 0 | if (cached_has_bits & 0x00000001u) { |
3830 | 0 | mutable_lower_bound()->::yb::RedisSubKeyBoundPB::MergeFrom(from.lower_bound()); |
3831 | 0 | } |
3832 | 0 | if (cached_has_bits & 0x00000002u) { |
3833 | 0 | mutable_upper_bound()->::yb::RedisSubKeyBoundPB::MergeFrom(from.upper_bound()); |
3834 | 0 | } |
3835 | 0 | } |
3836 | 0 | } |
3837 | | |
3838 | 0 | void RedisSubKeyRangePB::CopyFrom(const ::google::protobuf::Message& from) { |
3839 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisSubKeyRangePB) |
3840 | 0 | if (&from == this) return; |
3841 | 0 | Clear(); |
3842 | 0 | MergeFrom(from); |
3843 | 0 | } |
3844 | | |
3845 | 0 | void RedisSubKeyRangePB::CopyFrom(const RedisSubKeyRangePB& from) { |
3846 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisSubKeyRangePB) |
3847 | 0 | if (&from == this) return; |
3848 | 0 | Clear(); |
3849 | 0 | MergeFrom(from); |
3850 | 0 | } |
3851 | | |
3852 | 0 | bool RedisSubKeyRangePB::IsInitialized() const { |
3853 | 0 | return true; |
3854 | 0 | } |
3855 | | |
3856 | 0 | void RedisSubKeyRangePB::Swap(RedisSubKeyRangePB* other) { |
3857 | 0 | if (other == this) return; |
3858 | 0 | InternalSwap(other); |
3859 | 0 | } |
3860 | 0 | void RedisSubKeyRangePB::InternalSwap(RedisSubKeyRangePB* other) { |
3861 | 0 | using std::swap; |
3862 | 0 | swap(lower_bound_, other->lower_bound_); |
3863 | 0 | swap(upper_bound_, other->upper_bound_); |
3864 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3865 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3866 | 0 | swap(_cached_size_, other->_cached_size_); |
3867 | 0 | } |
3868 | | |
3869 | 15.6k | ::google::protobuf::Metadata RedisSubKeyRangePB::GetMetadata() const { |
3870 | 15.6k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3871 | 15.6k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
3872 | 15.6k | } |
3873 | | |
3874 | | |
3875 | | // =================================================================== |
3876 | | |
3877 | 28.1k | void RedisIndexRangePB::InitAsDefaultInstance() { |
3878 | 28.1k | ::yb::_RedisIndexRangePB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::RedisIndexBoundPB*>( |
3879 | 28.1k | ::yb::RedisIndexBoundPB::internal_default_instance()); |
3880 | 28.1k | ::yb::_RedisIndexRangePB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::RedisIndexBoundPB*>( |
3881 | 28.1k | ::yb::RedisIndexBoundPB::internal_default_instance()); |
3882 | 28.1k | } |
3883 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3884 | | const int RedisIndexRangePB::kLowerBoundFieldNumber; |
3885 | | const int RedisIndexRangePB::kUpperBoundFieldNumber; |
3886 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3887 | | |
3888 | | RedisIndexRangePB::RedisIndexRangePB() |
3889 | 28.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3890 | 28.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3891 | 115 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexRangePB(); |
3892 | 115 | } |
3893 | 28.2k | SharedCtor(); |
3894 | | // @@protoc_insertion_point(constructor:yb.RedisIndexRangePB) |
3895 | 28.2k | } |
3896 | | RedisIndexRangePB::RedisIndexRangePB(const RedisIndexRangePB& from) |
3897 | | : ::google::protobuf::Message(), |
3898 | | _internal_metadata_(NULL), |
3899 | | _has_bits_(from._has_bits_), |
3900 | 70 | _cached_size_(0) { |
3901 | 70 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3902 | 70 | if (from.has_lower_bound()) { |
3903 | 70 | lower_bound_ = new ::yb::RedisIndexBoundPB(*from.lower_bound_); |
3904 | 70 | } else { |
3905 | 0 | lower_bound_ = NULL; |
3906 | 0 | } |
3907 | 70 | if (from.has_upper_bound()) { |
3908 | 20 | upper_bound_ = new ::yb::RedisIndexBoundPB(*from.upper_bound_); |
3909 | 50 | } else { |
3910 | 50 | upper_bound_ = NULL; |
3911 | 50 | } |
3912 | | // @@protoc_insertion_point(copy_constructor:yb.RedisIndexRangePB) |
3913 | 70 | } |
3914 | | |
3915 | 28.2k | void RedisIndexRangePB::SharedCtor() { |
3916 | 28.2k | _cached_size_ = 0; |
3917 | 28.2k | ::memset(&lower_bound_, 0, static_cast<size_t>( |
3918 | 28.2k | reinterpret_cast<char*>(&upper_bound_) - |
3919 | 28.2k | reinterpret_cast<char*>(&lower_bound_)) + sizeof(upper_bound_)); |
3920 | 28.2k | } |
3921 | | |
3922 | 185 | RedisIndexRangePB::~RedisIndexRangePB() { |
3923 | | // @@protoc_insertion_point(destructor:yb.RedisIndexRangePB) |
3924 | 185 | SharedDtor(); |
3925 | 185 | } |
3926 | | |
3927 | 185 | void RedisIndexRangePB::SharedDtor() { |
3928 | 185 | if (this != internal_default_instance()) delete lower_bound_; |
3929 | 185 | if (this != internal_default_instance()) delete upper_bound_; |
3930 | 185 | } |
3931 | | |
3932 | 0 | void RedisIndexRangePB::SetCachedSize(int size) const { |
3933 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3934 | 0 | _cached_size_ = size; |
3935 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3936 | 0 | } |
3937 | 0 | const ::google::protobuf::Descriptor* RedisIndexRangePB::descriptor() { |
3938 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
3939 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3940 | 0 | } |
3941 | | |
3942 | 0 | const RedisIndexRangePB& RedisIndexRangePB::default_instance() { |
3943 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexRangePB(); |
3944 | 0 | return *internal_default_instance(); |
3945 | 0 | } |
3946 | | |
3947 | 0 | RedisIndexRangePB* RedisIndexRangePB::New(::google::protobuf::Arena* arena) const { |
3948 | 0 | RedisIndexRangePB* n = new RedisIndexRangePB; |
3949 | 0 | if (arena != NULL) { |
3950 | 0 | arena->Own(n); |
3951 | 0 | } |
3952 | 0 | return n; |
3953 | 0 | } |
3954 | | |
3955 | 0 | void RedisIndexRangePB::Clear() { |
3956 | | // @@protoc_insertion_point(message_clear_start:yb.RedisIndexRangePB) |
3957 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3958 | | // Prevent compiler warnings about cached_has_bits being unused |
3959 | 0 | (void) cached_has_bits; |
3960 | |
|
3961 | 0 | cached_has_bits = _has_bits_[0]; |
3962 | 0 | if (cached_has_bits & 3u) { |
3963 | 0 | if (cached_has_bits & 0x00000001u) { |
3964 | 0 | GOOGLE_DCHECK(lower_bound_ != NULL); |
3965 | 0 | lower_bound_->Clear(); |
3966 | 0 | } |
3967 | 0 | if (cached_has_bits & 0x00000002u) { |
3968 | 0 | GOOGLE_DCHECK(upper_bound_ != NULL); |
3969 | 0 | upper_bound_->Clear(); |
3970 | 0 | } |
3971 | 0 | } |
3972 | 0 | _has_bits_.Clear(); |
3973 | 0 | _internal_metadata_.Clear(); |
3974 | 0 | } |
3975 | | |
3976 | | bool RedisIndexRangePB::MergePartialFromCodedStream( |
3977 | 45 | ::google::protobuf::io::CodedInputStream* input) { |
3978 | 59 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
3979 | 45 | ::google::protobuf::uint32 tag; |
3980 | | // @@protoc_insertion_point(parse_start:yb.RedisIndexRangePB) |
3981 | 104 | for (;;) { |
3982 | 104 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3983 | 104 | tag = p.first; |
3984 | 104 | if (!p.second) goto handle_unusual45 ; |
3985 | 59 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3986 | | // optional .yb.RedisIndexBoundPB lower_bound = 1; |
3987 | 45 | case 1: { |
3988 | 45 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3989 | 45 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3990 | 45 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3991 | 45 | input, mutable_lower_bound())); |
3992 | 45 | } else { |
3993 | 0 | goto handle_unusual; |
3994 | 0 | } |
3995 | 45 | break; |
3996 | 45 | } |
3997 | | |
3998 | | // optional .yb.RedisIndexBoundPB upper_bound = 2; |
3999 | 45 | case 2: { |
4000 | 14 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4001 | 14 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4002 | 14 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4003 | 14 | input, mutable_upper_bound())); |
4004 | 14 | } else { |
4005 | 0 | goto handle_unusual; |
4006 | 0 | } |
4007 | 14 | break; |
4008 | 14 | } |
4009 | | |
4010 | 14 | default: { |
4011 | 45 | handle_unusual: |
4012 | 45 | if (tag == 0) { |
4013 | 45 | goto success; |
4014 | 45 | } |
4015 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4016 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4017 | 0 | break; |
4018 | 0 | } |
4019 | 59 | } |
4020 | 59 | } |
4021 | 45 | success: |
4022 | | // @@protoc_insertion_point(parse_success:yb.RedisIndexRangePB) |
4023 | 45 | return true; |
4024 | 0 | failure: |
4025 | | // @@protoc_insertion_point(parse_failure:yb.RedisIndexRangePB) |
4026 | 0 | return false; |
4027 | 45 | #undef DO_ |
4028 | 45 | } |
4029 | | |
4030 | | void RedisIndexRangePB::SerializeWithCachedSizes( |
4031 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4032 | | // @@protoc_insertion_point(serialize_start:yb.RedisIndexRangePB) |
4033 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4034 | 0 | (void) cached_has_bits; |
4035 | |
|
4036 | 0 | cached_has_bits = _has_bits_[0]; |
4037 | | // optional .yb.RedisIndexBoundPB lower_bound = 1; |
4038 | 0 | if (cached_has_bits & 0x00000001u) { |
4039 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4040 | 0 | 1, *this->lower_bound_, output); |
4041 | 0 | } |
4042 | | |
4043 | | // optional .yb.RedisIndexBoundPB upper_bound = 2; |
4044 | 0 | if (cached_has_bits & 0x00000002u) { |
4045 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4046 | 0 | 2, *this->upper_bound_, output); |
4047 | 0 | } |
4048 | |
|
4049 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4050 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4051 | 0 | _internal_metadata_.unknown_fields(), output); |
4052 | 0 | } |
4053 | | // @@protoc_insertion_point(serialize_end:yb.RedisIndexRangePB) |
4054 | 0 | } |
4055 | | |
4056 | | ::google::protobuf::uint8* RedisIndexRangePB::InternalSerializeWithCachedSizesToArray( |
4057 | 45 | bool deterministic, ::google::protobuf::uint8* target) const { |
4058 | 45 | (void)deterministic; // Unused |
4059 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIndexRangePB) |
4060 | 45 | ::google::protobuf::uint32 cached_has_bits = 0; |
4061 | 45 | (void) cached_has_bits; |
4062 | | |
4063 | 45 | cached_has_bits = _has_bits_[0]; |
4064 | | // optional .yb.RedisIndexBoundPB lower_bound = 1; |
4065 | 45 | if (cached_has_bits & 0x00000001u) { |
4066 | 45 | target = ::google::protobuf::internal::WireFormatLite:: |
4067 | 45 | InternalWriteMessageToArray( |
4068 | 45 | 1, *this->lower_bound_, deterministic, target); |
4069 | 45 | } |
4070 | | |
4071 | | // optional .yb.RedisIndexBoundPB upper_bound = 2; |
4072 | 45 | if (cached_has_bits & 0x00000002u) { |
4073 | 14 | target = ::google::protobuf::internal::WireFormatLite:: |
4074 | 14 | InternalWriteMessageToArray( |
4075 | 14 | 2, *this->upper_bound_, deterministic, target); |
4076 | 14 | } |
4077 | | |
4078 | 45 | if (_internal_metadata_.have_unknown_fields()) { |
4079 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4080 | 0 | _internal_metadata_.unknown_fields(), target); |
4081 | 0 | } |
4082 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisIndexRangePB) |
4083 | 45 | return target; |
4084 | 45 | } |
4085 | | |
4086 | 90 | size_t RedisIndexRangePB::ByteSizeLong() const { |
4087 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisIndexRangePB) |
4088 | 90 | size_t total_size = 0; |
4089 | | |
4090 | 90 | if (_internal_metadata_.have_unknown_fields()) { |
4091 | 0 | total_size += |
4092 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4093 | 0 | _internal_metadata_.unknown_fields()); |
4094 | 0 | } |
4095 | 90 | if (_has_bits_[0 / 32] & 3u) { |
4096 | | // optional .yb.RedisIndexBoundPB lower_bound = 1; |
4097 | 90 | if (has_lower_bound()) { |
4098 | 90 | total_size += 1 + |
4099 | 90 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4100 | 90 | *this->lower_bound_); |
4101 | 90 | } |
4102 | | |
4103 | | // optional .yb.RedisIndexBoundPB upper_bound = 2; |
4104 | 90 | if (has_upper_bound()) { |
4105 | 28 | total_size += 1 + |
4106 | 28 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4107 | 28 | *this->upper_bound_); |
4108 | 28 | } |
4109 | | |
4110 | 90 | } |
4111 | 90 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4112 | 90 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4113 | 90 | _cached_size_ = cached_size; |
4114 | 90 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4115 | 90 | return total_size; |
4116 | 90 | } |
4117 | | |
4118 | 0 | void RedisIndexRangePB::MergeFrom(const ::google::protobuf::Message& from) { |
4119 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisIndexRangePB) |
4120 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4121 | 0 | const RedisIndexRangePB* source = |
4122 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisIndexRangePB>( |
4123 | 0 | &from); |
4124 | 0 | if (source == NULL) { |
4125 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisIndexRangePB) |
4126 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4127 | 0 | } else { |
4128 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisIndexRangePB) |
4129 | 0 | MergeFrom(*source); |
4130 | 0 | } |
4131 | 0 | } |
4132 | | |
4133 | 0 | void RedisIndexRangePB::MergeFrom(const RedisIndexRangePB& from) { |
4134 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisIndexRangePB) |
4135 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4136 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4137 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4138 | 0 | (void) cached_has_bits; |
4139 | |
|
4140 | 0 | cached_has_bits = from._has_bits_[0]; |
4141 | 0 | if (cached_has_bits & 3u) { |
4142 | 0 | if (cached_has_bits & 0x00000001u) { |
4143 | 0 | mutable_lower_bound()->::yb::RedisIndexBoundPB::MergeFrom(from.lower_bound()); |
4144 | 0 | } |
4145 | 0 | if (cached_has_bits & 0x00000002u) { |
4146 | 0 | mutable_upper_bound()->::yb::RedisIndexBoundPB::MergeFrom(from.upper_bound()); |
4147 | 0 | } |
4148 | 0 | } |
4149 | 0 | } |
4150 | | |
4151 | 0 | void RedisIndexRangePB::CopyFrom(const ::google::protobuf::Message& from) { |
4152 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisIndexRangePB) |
4153 | 0 | if (&from == this) return; |
4154 | 0 | Clear(); |
4155 | 0 | MergeFrom(from); |
4156 | 0 | } |
4157 | | |
4158 | 0 | void RedisIndexRangePB::CopyFrom(const RedisIndexRangePB& from) { |
4159 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisIndexRangePB) |
4160 | 0 | if (&from == this) return; |
4161 | 0 | Clear(); |
4162 | 0 | MergeFrom(from); |
4163 | 0 | } |
4164 | | |
4165 | 90 | bool RedisIndexRangePB::IsInitialized() const { |
4166 | 90 | if (has_lower_bound()) { |
4167 | 90 | if (!this->lower_bound_->IsInitialized()) return false0 ; |
4168 | 90 | } |
4169 | 90 | if (has_upper_bound()) { |
4170 | 28 | if (!this->upper_bound_->IsInitialized()) return false0 ; |
4171 | 28 | } |
4172 | 90 | return true; |
4173 | 90 | } |
4174 | | |
4175 | 0 | void RedisIndexRangePB::Swap(RedisIndexRangePB* other) { |
4176 | 0 | if (other == this) return; |
4177 | 0 | InternalSwap(other); |
4178 | 0 | } |
4179 | 0 | void RedisIndexRangePB::InternalSwap(RedisIndexRangePB* other) { |
4180 | 0 | using std::swap; |
4181 | 0 | swap(lower_bound_, other->lower_bound_); |
4182 | 0 | swap(upper_bound_, other->upper_bound_); |
4183 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4184 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4185 | 0 | swap(_cached_size_, other->_cached_size_); |
4186 | 0 | } |
4187 | | |
4188 | 115 | ::google::protobuf::Metadata RedisIndexRangePB::GetMetadata() const { |
4189 | 115 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4190 | 115 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
4191 | 115 | } |
4192 | | |
4193 | | |
4194 | | // =================================================================== |
4195 | | |
4196 | 28.1k | void RedisIndexBoundPB::InitAsDefaultInstance() { |
4197 | 28.1k | } |
4198 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4199 | | const int RedisIndexBoundPB::kIndexFieldNumber; |
4200 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4201 | | |
4202 | | RedisIndexBoundPB::RedisIndexBoundPB() |
4203 | 28.3k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4204 | 28.3k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4205 | 149 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexBoundPB(); |
4206 | 149 | } |
4207 | 28.3k | SharedCtor(); |
4208 | | // @@protoc_insertion_point(constructor:yb.RedisIndexBoundPB) |
4209 | 28.3k | } |
4210 | | RedisIndexBoundPB::RedisIndexBoundPB(const RedisIndexBoundPB& from) |
4211 | | : ::google::protobuf::Message(), |
4212 | | _internal_metadata_(NULL), |
4213 | | _has_bits_(from._has_bits_), |
4214 | 90 | _cached_size_(0) { |
4215 | 90 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4216 | 90 | index_ = from.index_; |
4217 | | // @@protoc_insertion_point(copy_constructor:yb.RedisIndexBoundPB) |
4218 | 90 | } |
4219 | | |
4220 | 28.3k | void RedisIndexBoundPB::SharedCtor() { |
4221 | 28.3k | _cached_size_ = 0; |
4222 | 28.3k | index_ = GOOGLE_LONGLONG(0); |
4223 | 28.3k | } |
4224 | | |
4225 | 239 | RedisIndexBoundPB::~RedisIndexBoundPB() { |
4226 | | // @@protoc_insertion_point(destructor:yb.RedisIndexBoundPB) |
4227 | 239 | SharedDtor(); |
4228 | 239 | } |
4229 | | |
4230 | 239 | void RedisIndexBoundPB::SharedDtor() { |
4231 | 239 | } |
4232 | | |
4233 | 0 | void RedisIndexBoundPB::SetCachedSize(int size) const { |
4234 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4235 | 0 | _cached_size_ = size; |
4236 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4237 | 0 | } |
4238 | 0 | const ::google::protobuf::Descriptor* RedisIndexBoundPB::descriptor() { |
4239 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4240 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4241 | 0 | } |
4242 | | |
4243 | 0 | const RedisIndexBoundPB& RedisIndexBoundPB::default_instance() { |
4244 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexBoundPB(); |
4245 | 0 | return *internal_default_instance(); |
4246 | 0 | } |
4247 | | |
4248 | 0 | RedisIndexBoundPB* RedisIndexBoundPB::New(::google::protobuf::Arena* arena) const { |
4249 | 0 | RedisIndexBoundPB* n = new RedisIndexBoundPB; |
4250 | 0 | if (arena != NULL) { |
4251 | 0 | arena->Own(n); |
4252 | 0 | } |
4253 | 0 | return n; |
4254 | 0 | } |
4255 | | |
4256 | 0 | void RedisIndexBoundPB::Clear() { |
4257 | | // @@protoc_insertion_point(message_clear_start:yb.RedisIndexBoundPB) |
4258 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4259 | | // Prevent compiler warnings about cached_has_bits being unused |
4260 | 0 | (void) cached_has_bits; |
4261 | |
|
4262 | 0 | index_ = GOOGLE_LONGLONG(0); |
4263 | 0 | _has_bits_.Clear(); |
4264 | 0 | _internal_metadata_.Clear(); |
4265 | 0 | } |
4266 | | |
4267 | | bool RedisIndexBoundPB::MergePartialFromCodedStream( |
4268 | 59 | ::google::protobuf::io::CodedInputStream* input) { |
4269 | 59 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4270 | 59 | ::google::protobuf::uint32 tag; |
4271 | | // @@protoc_insertion_point(parse_start:yb.RedisIndexBoundPB) |
4272 | 118 | for (;;) { |
4273 | 118 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4274 | 118 | tag = p.first; |
4275 | 118 | if (!p.second) goto handle_unusual59 ; |
4276 | 59 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4277 | | // required int64 index = 1; |
4278 | 59 | case 1: { |
4279 | 59 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4280 | 59 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4281 | 59 | set_has_index(); |
4282 | 59 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4283 | 59 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4284 | 59 | input, &index_))); |
4285 | 59 | } else { |
4286 | 0 | goto handle_unusual; |
4287 | 0 | } |
4288 | 59 | break; |
4289 | 59 | } |
4290 | | |
4291 | 59 | default: { |
4292 | 59 | handle_unusual: |
4293 | 59 | if (tag == 0) { |
4294 | 59 | goto success; |
4295 | 59 | } |
4296 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4297 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4298 | 0 | break; |
4299 | 0 | } |
4300 | 59 | } |
4301 | 59 | } |
4302 | 59 | success: |
4303 | | // @@protoc_insertion_point(parse_success:yb.RedisIndexBoundPB) |
4304 | 59 | return true; |
4305 | 0 | failure: |
4306 | | // @@protoc_insertion_point(parse_failure:yb.RedisIndexBoundPB) |
4307 | 0 | return false; |
4308 | 59 | #undef DO_ |
4309 | 59 | } |
4310 | | |
4311 | | void RedisIndexBoundPB::SerializeWithCachedSizes( |
4312 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4313 | | // @@protoc_insertion_point(serialize_start:yb.RedisIndexBoundPB) |
4314 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4315 | 0 | (void) cached_has_bits; |
4316 | |
|
4317 | 0 | cached_has_bits = _has_bits_[0]; |
4318 | | // required int64 index = 1; |
4319 | 0 | if (cached_has_bits & 0x00000001u) { |
4320 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->index(), output); |
4321 | 0 | } |
4322 | |
|
4323 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4324 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4325 | 0 | _internal_metadata_.unknown_fields(), output); |
4326 | 0 | } |
4327 | | // @@protoc_insertion_point(serialize_end:yb.RedisIndexBoundPB) |
4328 | 0 | } |
4329 | | |
4330 | | ::google::protobuf::uint8* RedisIndexBoundPB::InternalSerializeWithCachedSizesToArray( |
4331 | 59 | bool deterministic, ::google::protobuf::uint8* target) const { |
4332 | 59 | (void)deterministic; // Unused |
4333 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIndexBoundPB) |
4334 | 59 | ::google::protobuf::uint32 cached_has_bits = 0; |
4335 | 59 | (void) cached_has_bits; |
4336 | | |
4337 | 59 | cached_has_bits = _has_bits_[0]; |
4338 | | // required int64 index = 1; |
4339 | 59 | if (cached_has_bits & 0x00000001u) { |
4340 | 59 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->index(), target); |
4341 | 59 | } |
4342 | | |
4343 | 59 | if (_internal_metadata_.have_unknown_fields()) { |
4344 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4345 | 0 | _internal_metadata_.unknown_fields(), target); |
4346 | 0 | } |
4347 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisIndexBoundPB) |
4348 | 59 | return target; |
4349 | 59 | } |
4350 | | |
4351 | 118 | size_t RedisIndexBoundPB::ByteSizeLong() const { |
4352 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisIndexBoundPB) |
4353 | 118 | size_t total_size = 0; |
4354 | | |
4355 | 118 | if (_internal_metadata_.have_unknown_fields()) { |
4356 | 0 | total_size += |
4357 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4358 | 0 | _internal_metadata_.unknown_fields()); |
4359 | 0 | } |
4360 | | // required int64 index = 1; |
4361 | 118 | if (has_index()) { |
4362 | 118 | total_size += 1 + |
4363 | 118 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
4364 | 118 | this->index()); |
4365 | 118 | } |
4366 | 118 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4367 | 118 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4368 | 118 | _cached_size_ = cached_size; |
4369 | 118 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4370 | 118 | return total_size; |
4371 | 118 | } |
4372 | | |
4373 | 0 | void RedisIndexBoundPB::MergeFrom(const ::google::protobuf::Message& from) { |
4374 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisIndexBoundPB) |
4375 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4376 | 0 | const RedisIndexBoundPB* source = |
4377 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisIndexBoundPB>( |
4378 | 0 | &from); |
4379 | 0 | if (source == NULL) { |
4380 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisIndexBoundPB) |
4381 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4382 | 0 | } else { |
4383 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisIndexBoundPB) |
4384 | 0 | MergeFrom(*source); |
4385 | 0 | } |
4386 | 0 | } |
4387 | | |
4388 | 0 | void RedisIndexBoundPB::MergeFrom(const RedisIndexBoundPB& from) { |
4389 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisIndexBoundPB) |
4390 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4391 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4392 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4393 | 0 | (void) cached_has_bits; |
4394 | |
|
4395 | 0 | if (from.has_index()) { |
4396 | 0 | set_index(from.index()); |
4397 | 0 | } |
4398 | 0 | } |
4399 | | |
4400 | 0 | void RedisIndexBoundPB::CopyFrom(const ::google::protobuf::Message& from) { |
4401 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisIndexBoundPB) |
4402 | 0 | if (&from == this) return; |
4403 | 0 | Clear(); |
4404 | 0 | MergeFrom(from); |
4405 | 0 | } |
4406 | | |
4407 | 0 | void RedisIndexBoundPB::CopyFrom(const RedisIndexBoundPB& from) { |
4408 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisIndexBoundPB) |
4409 | 0 | if (&from == this) return; |
4410 | 0 | Clear(); |
4411 | 0 | MergeFrom(from); |
4412 | 0 | } |
4413 | | |
4414 | 118 | bool RedisIndexBoundPB::IsInitialized() const { |
4415 | 118 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false0 ; |
4416 | 118 | return true; |
4417 | 118 | } |
4418 | | |
4419 | 0 | void RedisIndexBoundPB::Swap(RedisIndexBoundPB* other) { |
4420 | 0 | if (other == this) return; |
4421 | 0 | InternalSwap(other); |
4422 | 0 | } |
4423 | 0 | void RedisIndexBoundPB::InternalSwap(RedisIndexBoundPB* other) { |
4424 | 0 | using std::swap; |
4425 | 0 | swap(index_, other->index_); |
4426 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4427 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4428 | 0 | swap(_cached_size_, other->_cached_size_); |
4429 | 0 | } |
4430 | | |
4431 | 149 | ::google::protobuf::Metadata RedisIndexBoundPB::GetMetadata() const { |
4432 | 149 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4433 | 149 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
4434 | 149 | } |
4435 | | |
4436 | | |
4437 | | // =================================================================== |
4438 | | |
4439 | 28.1k | void RedisSubKeyBoundPB::InitAsDefaultInstance() { |
4440 | 28.1k | ::yb::_RedisSubKeyBoundPB_default_instance_._instance.get_mutable()->subkey_bound_ = const_cast< ::yb::RedisKeyValueSubKeyPB*>( |
4441 | 28.1k | ::yb::RedisKeyValueSubKeyPB::internal_default_instance()); |
4442 | 28.1k | } |
4443 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4444 | | const int RedisSubKeyBoundPB::kSubkeyBoundFieldNumber; |
4445 | | const int RedisSubKeyBoundPB::kInfinityTypeFieldNumber; |
4446 | | const int RedisSubKeyBoundPB::kIsExclusiveFieldNumber; |
4447 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4448 | | |
4449 | | RedisSubKeyBoundPB::RedisSubKeyBoundPB() |
4450 | 59.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4451 | 59.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4452 | 31.3k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyBoundPB(); |
4453 | 31.3k | } |
4454 | 59.4k | SharedCtor(); |
4455 | | // @@protoc_insertion_point(constructor:yb.RedisSubKeyBoundPB) |
4456 | 59.4k | } |
4457 | | RedisSubKeyBoundPB::RedisSubKeyBoundPB(const RedisSubKeyBoundPB& from) |
4458 | | : ::google::protobuf::Message(), |
4459 | | _internal_metadata_(NULL), |
4460 | | _has_bits_(from._has_bits_), |
4461 | 21.9k | _cached_size_(0) { |
4462 | 21.9k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4463 | 21.9k | if (from.has_subkey_bound()) { |
4464 | 21.7k | subkey_bound_ = new ::yb::RedisKeyValueSubKeyPB(*from.subkey_bound_); |
4465 | 21.7k | } else { |
4466 | 230 | subkey_bound_ = NULL; |
4467 | 230 | } |
4468 | 21.9k | ::memcpy(&is_exclusive_, &from.is_exclusive_, |
4469 | 21.9k | static_cast<size_t>(reinterpret_cast<char*>(&infinity_type_) - |
4470 | 21.9k | reinterpret_cast<char*>(&is_exclusive_)) + sizeof(infinity_type_)); |
4471 | | // @@protoc_insertion_point(copy_constructor:yb.RedisSubKeyBoundPB) |
4472 | 21.9k | } |
4473 | | |
4474 | 59.4k | void RedisSubKeyBoundPB::SharedCtor() { |
4475 | 59.4k | _cached_size_ = 0; |
4476 | 59.4k | ::memset(&subkey_bound_, 0, static_cast<size_t>( |
4477 | 59.4k | reinterpret_cast<char*>(&is_exclusive_) - |
4478 | 59.4k | reinterpret_cast<char*>(&subkey_bound_)) + sizeof(is_exclusive_)); |
4479 | 59.4k | infinity_type_ = 1; |
4480 | 59.4k | } |
4481 | | |
4482 | 53.2k | RedisSubKeyBoundPB::~RedisSubKeyBoundPB() { |
4483 | | // @@protoc_insertion_point(destructor:yb.RedisSubKeyBoundPB) |
4484 | 53.2k | SharedDtor(); |
4485 | 53.2k | } |
4486 | | |
4487 | 53.2k | void RedisSubKeyBoundPB::SharedDtor() { |
4488 | 53.2k | if (this != internal_default_instance()) delete subkey_bound_; |
4489 | 53.2k | } |
4490 | | |
4491 | 0 | void RedisSubKeyBoundPB::SetCachedSize(int size) const { |
4492 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4493 | 0 | _cached_size_ = size; |
4494 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4495 | 0 | } |
4496 | 0 | const ::google::protobuf::Descriptor* RedisSubKeyBoundPB::descriptor() { |
4497 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4498 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4499 | 0 | } |
4500 | | |
4501 | 0 | const RedisSubKeyBoundPB& RedisSubKeyBoundPB::default_instance() { |
4502 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyBoundPB(); |
4503 | 0 | return *internal_default_instance(); |
4504 | 0 | } |
4505 | | |
4506 | 0 | RedisSubKeyBoundPB* RedisSubKeyBoundPB::New(::google::protobuf::Arena* arena) const { |
4507 | 0 | RedisSubKeyBoundPB* n = new RedisSubKeyBoundPB; |
4508 | 0 | if (arena != NULL) { |
4509 | 0 | arena->Own(n); |
4510 | 0 | } |
4511 | 0 | return n; |
4512 | 0 | } |
4513 | | |
4514 | 0 | void RedisSubKeyBoundPB::Clear() { |
4515 | | // @@protoc_insertion_point(message_clear_start:yb.RedisSubKeyBoundPB) |
4516 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4517 | | // Prevent compiler warnings about cached_has_bits being unused |
4518 | 0 | (void) cached_has_bits; |
4519 | |
|
4520 | 0 | cached_has_bits = _has_bits_[0]; |
4521 | 0 | if (cached_has_bits & 0x00000001u) { |
4522 | 0 | GOOGLE_DCHECK(subkey_bound_ != NULL); |
4523 | 0 | subkey_bound_->Clear(); |
4524 | 0 | } |
4525 | 0 | if (cached_has_bits & 6u) { |
4526 | 0 | is_exclusive_ = false; |
4527 | 0 | infinity_type_ = 1; |
4528 | 0 | } |
4529 | 0 | _has_bits_.Clear(); |
4530 | 0 | _internal_metadata_.Clear(); |
4531 | 0 | } |
4532 | | |
4533 | | bool RedisSubKeyBoundPB::MergePartialFromCodedStream( |
4534 | 9.37k | ::google::protobuf::io::CodedInputStream* input) { |
4535 | 18.6k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4536 | 9.37k | ::google::protobuf::uint32 tag; |
4537 | | // @@protoc_insertion_point(parse_start:yb.RedisSubKeyBoundPB) |
4538 | 27.9k | for (;;) { |
4539 | 27.9k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4540 | 27.9k | tag = p.first; |
4541 | 27.9k | if (!p.second) goto handle_unusual9.37k ; |
4542 | 18.6k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4543 | | // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3; |
4544 | 9.24k | case 3: { |
4545 | 9.24k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4546 | 9.24k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4547 | 9.24k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4548 | 9.24k | input, mutable_subkey_bound())); |
4549 | 9.24k | } else { |
4550 | 0 | goto handle_unusual; |
4551 | 0 | } |
4552 | 9.24k | break; |
4553 | 9.24k | } |
4554 | | |
4555 | | // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4; |
4556 | 9.24k | case 4: { |
4557 | 123 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4558 | 123 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4559 | 123 | int value; |
4560 | 123 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4561 | 123 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
4562 | 123 | input, &value))); |
4563 | 123 | if (::yb::RedisSubKeyBoundPB_InfinityType_IsValid(value)) { |
4564 | 123 | set_infinity_type(static_cast< ::yb::RedisSubKeyBoundPB_InfinityType >(value)); |
4565 | 123 | } else { |
4566 | 0 | mutable_unknown_fields()->AddVarint( |
4567 | 0 | 4, static_cast< ::google::protobuf::uint64>(value)); |
4568 | 0 | } |
4569 | 123 | } else { |
4570 | 0 | goto handle_unusual; |
4571 | 0 | } |
4572 | 123 | break; |
4573 | 123 | } |
4574 | | |
4575 | | // optional bool is_exclusive = 6 [default = false]; |
4576 | 9.24k | case 6: { |
4577 | 9.24k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4578 | 9.24k | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
4579 | 9.24k | set_has_is_exclusive(); |
4580 | 9.24k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4581 | 9.24k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4582 | 9.24k | input, &is_exclusive_))); |
4583 | 9.24k | } else { |
4584 | 0 | goto handle_unusual; |
4585 | 0 | } |
4586 | 9.24k | break; |
4587 | 9.24k | } |
4588 | | |
4589 | 9.24k | default: { |
4590 | 9.37k | handle_unusual: |
4591 | 9.37k | if (tag == 0) { |
4592 | 9.37k | goto success; |
4593 | 9.37k | } |
4594 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4595 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4596 | 0 | break; |
4597 | 0 | } |
4598 | 18.6k | } |
4599 | 18.6k | } |
4600 | 9.37k | success: |
4601 | | // @@protoc_insertion_point(parse_success:yb.RedisSubKeyBoundPB) |
4602 | 9.37k | return true; |
4603 | 0 | failure: |
4604 | | // @@protoc_insertion_point(parse_failure:yb.RedisSubKeyBoundPB) |
4605 | 0 | return false; |
4606 | 9.37k | #undef DO_ |
4607 | 9.37k | } |
4608 | | |
4609 | | void RedisSubKeyBoundPB::SerializeWithCachedSizes( |
4610 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4611 | | // @@protoc_insertion_point(serialize_start:yb.RedisSubKeyBoundPB) |
4612 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4613 | 0 | (void) cached_has_bits; |
4614 | |
|
4615 | 0 | cached_has_bits = _has_bits_[0]; |
4616 | | // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3; |
4617 | 0 | if (cached_has_bits & 0x00000001u) { |
4618 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4619 | 0 | 3, *this->subkey_bound_, output); |
4620 | 0 | } |
4621 | | |
4622 | | // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4; |
4623 | 0 | if (cached_has_bits & 0x00000004u) { |
4624 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
4625 | 0 | 4, this->infinity_type(), output); |
4626 | 0 | } |
4627 | | |
4628 | | // optional bool is_exclusive = 6 [default = false]; |
4629 | 0 | if (cached_has_bits & 0x00000002u) { |
4630 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_exclusive(), output); |
4631 | 0 | } |
4632 | |
|
4633 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4634 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4635 | 0 | _internal_metadata_.unknown_fields(), output); |
4636 | 0 | } |
4637 | | // @@protoc_insertion_point(serialize_end:yb.RedisSubKeyBoundPB) |
4638 | 0 | } |
4639 | | |
4640 | | ::google::protobuf::uint8* RedisSubKeyBoundPB::InternalSerializeWithCachedSizesToArray( |
4641 | 9.37k | bool deterministic, ::google::protobuf::uint8* target) const { |
4642 | 9.37k | (void)deterministic; // Unused |
4643 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSubKeyBoundPB) |
4644 | 9.37k | ::google::protobuf::uint32 cached_has_bits = 0; |
4645 | 9.37k | (void) cached_has_bits; |
4646 | | |
4647 | 9.37k | cached_has_bits = _has_bits_[0]; |
4648 | | // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3; |
4649 | 9.37k | if (cached_has_bits & 0x00000001u) { |
4650 | 9.24k | target = ::google::protobuf::internal::WireFormatLite:: |
4651 | 9.24k | InternalWriteMessageToArray( |
4652 | 9.24k | 3, *this->subkey_bound_, deterministic, target); |
4653 | 9.24k | } |
4654 | | |
4655 | | // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4; |
4656 | 9.37k | if (cached_has_bits & 0x00000004u) { |
4657 | 123 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
4658 | 123 | 4, this->infinity_type(), target); |
4659 | 123 | } |
4660 | | |
4661 | | // optional bool is_exclusive = 6 [default = false]; |
4662 | 9.37k | if (cached_has_bits & 0x00000002u) { |
4663 | 9.24k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_exclusive(), target); |
4664 | 9.24k | } |
4665 | | |
4666 | 9.37k | if (_internal_metadata_.have_unknown_fields()) { |
4667 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4668 | 0 | _internal_metadata_.unknown_fields(), target); |
4669 | 0 | } |
4670 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisSubKeyBoundPB) |
4671 | 9.37k | return target; |
4672 | 9.37k | } |
4673 | | |
4674 | 18.7k | size_t RedisSubKeyBoundPB::ByteSizeLong() const { |
4675 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisSubKeyBoundPB) |
4676 | 18.7k | size_t total_size = 0; |
4677 | | |
4678 | 18.7k | if (_internal_metadata_.have_unknown_fields()) { |
4679 | 0 | total_size += |
4680 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4681 | 0 | _internal_metadata_.unknown_fields()); |
4682 | 0 | } |
4683 | 18.7k | if (_has_bits_[0 / 32] & 7u) { |
4684 | | // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3; |
4685 | 18.7k | if (has_subkey_bound()) { |
4686 | 18.4k | total_size += 1 + |
4687 | 18.4k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4688 | 18.4k | *this->subkey_bound_); |
4689 | 18.4k | } |
4690 | | |
4691 | | // optional bool is_exclusive = 6 [default = false]; |
4692 | 18.7k | if (has_is_exclusive()) { |
4693 | 18.4k | total_size += 1 + 1; |
4694 | 18.4k | } |
4695 | | |
4696 | | // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4; |
4697 | 18.7k | if (has_infinity_type()) { |
4698 | 246 | total_size += 1 + |
4699 | 246 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->infinity_type()); |
4700 | 246 | } |
4701 | | |
4702 | 18.7k | } |
4703 | 18.7k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4704 | 18.7k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4705 | 18.7k | _cached_size_ = cached_size; |
4706 | 18.7k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4707 | 18.7k | return total_size; |
4708 | 18.7k | } |
4709 | | |
4710 | 0 | void RedisSubKeyBoundPB::MergeFrom(const ::google::protobuf::Message& from) { |
4711 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisSubKeyBoundPB) |
4712 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4713 | 0 | const RedisSubKeyBoundPB* source = |
4714 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisSubKeyBoundPB>( |
4715 | 0 | &from); |
4716 | 0 | if (source == NULL) { |
4717 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisSubKeyBoundPB) |
4718 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4719 | 0 | } else { |
4720 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisSubKeyBoundPB) |
4721 | 0 | MergeFrom(*source); |
4722 | 0 | } |
4723 | 0 | } |
4724 | | |
4725 | 0 | void RedisSubKeyBoundPB::MergeFrom(const RedisSubKeyBoundPB& from) { |
4726 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisSubKeyBoundPB) |
4727 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4728 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4729 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4730 | 0 | (void) cached_has_bits; |
4731 | |
|
4732 | 0 | cached_has_bits = from._has_bits_[0]; |
4733 | 0 | if (cached_has_bits & 7u) { |
4734 | 0 | if (cached_has_bits & 0x00000001u) { |
4735 | 0 | mutable_subkey_bound()->::yb::RedisKeyValueSubKeyPB::MergeFrom(from.subkey_bound()); |
4736 | 0 | } |
4737 | 0 | if (cached_has_bits & 0x00000002u) { |
4738 | 0 | is_exclusive_ = from.is_exclusive_; |
4739 | 0 | } |
4740 | 0 | if (cached_has_bits & 0x00000004u) { |
4741 | 0 | infinity_type_ = from.infinity_type_; |
4742 | 0 | } |
4743 | 0 | _has_bits_[0] |= cached_has_bits; |
4744 | 0 | } |
4745 | 0 | } |
4746 | | |
4747 | 0 | void RedisSubKeyBoundPB::CopyFrom(const ::google::protobuf::Message& from) { |
4748 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisSubKeyBoundPB) |
4749 | 0 | if (&from == this) return; |
4750 | 0 | Clear(); |
4751 | 0 | MergeFrom(from); |
4752 | 0 | } |
4753 | | |
4754 | 0 | void RedisSubKeyBoundPB::CopyFrom(const RedisSubKeyBoundPB& from) { |
4755 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisSubKeyBoundPB) |
4756 | 0 | if (&from == this) return; |
4757 | 0 | Clear(); |
4758 | 0 | MergeFrom(from); |
4759 | 0 | } |
4760 | | |
4761 | 0 | bool RedisSubKeyBoundPB::IsInitialized() const { |
4762 | 0 | return true; |
4763 | 0 | } |
4764 | | |
4765 | 0 | void RedisSubKeyBoundPB::Swap(RedisSubKeyBoundPB* other) { |
4766 | 0 | if (other == this) return; |
4767 | 0 | InternalSwap(other); |
4768 | 0 | } |
4769 | 0 | void RedisSubKeyBoundPB::InternalSwap(RedisSubKeyBoundPB* other) { |
4770 | 0 | using std::swap; |
4771 | 0 | swap(subkey_bound_, other->subkey_bound_); |
4772 | 0 | swap(is_exclusive_, other->is_exclusive_); |
4773 | 0 | swap(infinity_type_, other->infinity_type_); |
4774 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4775 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4776 | 0 | swap(_cached_size_, other->_cached_size_); |
4777 | 0 | } |
4778 | | |
4779 | 31.3k | ::google::protobuf::Metadata RedisSubKeyBoundPB::GetMetadata() const { |
4780 | 31.3k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4781 | 31.3k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
4782 | 31.3k | } |
4783 | | |
4784 | | |
4785 | | // =================================================================== |
4786 | | |
4787 | 28.1k | void RedisKeyValueSubKeyPB::InitAsDefaultInstance() { |
4788 | 28.1k | ::yb::_RedisKeyValueSubKeyPB_default_instance_.string_subkey_.UnsafeSetDefault( |
4789 | 28.1k | &::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4790 | 28.1k | ::yb::_RedisKeyValueSubKeyPB_default_instance_.timestamp_subkey_ = GOOGLE_LONGLONG(0); |
4791 | 28.1k | ::yb::_RedisKeyValueSubKeyPB_default_instance_.double_subkey_ = 0; |
4792 | 28.1k | } |
4793 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4794 | | const int RedisKeyValueSubKeyPB::kStringSubkeyFieldNumber; |
4795 | | const int RedisKeyValueSubKeyPB::kTimestampSubkeyFieldNumber; |
4796 | | const int RedisKeyValueSubKeyPB::kDoubleSubkeyFieldNumber; |
4797 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4798 | | |
4799 | | RedisKeyValueSubKeyPB::RedisKeyValueSubKeyPB() |
4800 | 221k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4801 | 221k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4802 | 193k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB(); |
4803 | 193k | } |
4804 | 221k | SharedCtor(); |
4805 | | // @@protoc_insertion_point(constructor:yb.RedisKeyValueSubKeyPB) |
4806 | 221k | } |
4807 | | RedisKeyValueSubKeyPB::RedisKeyValueSubKeyPB(const RedisKeyValueSubKeyPB& from) |
4808 | | : ::google::protobuf::Message(), |
4809 | | _internal_metadata_(NULL), |
4810 | | _has_bits_(from._has_bits_), |
4811 | 21.7k | _cached_size_(0) { |
4812 | 21.7k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4813 | 21.7k | clear_has_subkey(); |
4814 | 21.7k | switch (from.subkey_case()) { |
4815 | 0 | case kStringSubkey: { |
4816 | 0 | set_string_subkey(from.string_subkey()); |
4817 | 0 | break; |
4818 | 0 | } |
4819 | 21.6k | case kTimestampSubkey: { |
4820 | 21.6k | set_timestamp_subkey(from.timestamp_subkey()); |
4821 | 21.6k | break; |
4822 | 0 | } |
4823 | 50 | case kDoubleSubkey: { |
4824 | 50 | set_double_subkey(from.double_subkey()); |
4825 | 50 | break; |
4826 | 0 | } |
4827 | 0 | case SUBKEY_NOT_SET: { |
4828 | 0 | break; |
4829 | 0 | } |
4830 | 21.7k | } |
4831 | | // @@protoc_insertion_point(copy_constructor:yb.RedisKeyValueSubKeyPB) |
4832 | 21.7k | } |
4833 | | |
4834 | 221k | void RedisKeyValueSubKeyPB::SharedCtor() { |
4835 | 221k | _cached_size_ = 0; |
4836 | 221k | clear_has_subkey(); |
4837 | 221k | } |
4838 | | |
4839 | 215k | RedisKeyValueSubKeyPB::~RedisKeyValueSubKeyPB() { |
4840 | | // @@protoc_insertion_point(destructor:yb.RedisKeyValueSubKeyPB) |
4841 | 215k | SharedDtor(); |
4842 | 215k | } |
4843 | | |
4844 | 215k | void RedisKeyValueSubKeyPB::SharedDtor() { |
4845 | 215k | if (has_subkey()) { |
4846 | 215k | clear_subkey(); |
4847 | 215k | } |
4848 | 215k | } |
4849 | | |
4850 | 0 | void RedisKeyValueSubKeyPB::SetCachedSize(int size) const { |
4851 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4852 | 0 | _cached_size_ = size; |
4853 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4854 | 0 | } |
4855 | 0 | const ::google::protobuf::Descriptor* RedisKeyValueSubKeyPB::descriptor() { |
4856 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
4857 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4858 | 0 | } |
4859 | | |
4860 | 0 | const RedisKeyValueSubKeyPB& RedisKeyValueSubKeyPB::default_instance() { |
4861 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB(); |
4862 | 0 | return *internal_default_instance(); |
4863 | 0 | } |
4864 | | |
4865 | 0 | RedisKeyValueSubKeyPB* RedisKeyValueSubKeyPB::New(::google::protobuf::Arena* arena) const { |
4866 | 0 | RedisKeyValueSubKeyPB* n = new RedisKeyValueSubKeyPB; |
4867 | 0 | if (arena != NULL) { |
4868 | 0 | arena->Own(n); |
4869 | 0 | } |
4870 | 0 | return n; |
4871 | 0 | } |
4872 | | |
4873 | 430k | void RedisKeyValueSubKeyPB::clear_subkey() { |
4874 | | // @@protoc_insertion_point(one_of_clear_start:yb.RedisKeyValueSubKeyPB) |
4875 | 430k | switch (subkey_case()) { |
4876 | 86.2k | case kStringSubkey: { |
4877 | 86.2k | subkey_.string_subkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
4878 | 86.2k | break; |
4879 | 0 | } |
4880 | 98.3k | case kTimestampSubkey: { |
4881 | | // No need to clear |
4882 | 98.3k | break; |
4883 | 0 | } |
4884 | 30.7k | case kDoubleSubkey: { |
4885 | | // No need to clear |
4886 | 30.7k | break; |
4887 | 0 | } |
4888 | 215k | case SUBKEY_NOT_SET: { |
4889 | 215k | break; |
4890 | 0 | } |
4891 | 430k | } |
4892 | 430k | _oneof_case_[0] = SUBKEY_NOT_SET; |
4893 | 430k | } |
4894 | | |
4895 | | |
4896 | 0 | void RedisKeyValueSubKeyPB::Clear() { |
4897 | | // @@protoc_insertion_point(message_clear_start:yb.RedisKeyValueSubKeyPB) |
4898 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4899 | | // Prevent compiler warnings about cached_has_bits being unused |
4900 | 0 | (void) cached_has_bits; |
4901 | |
|
4902 | 0 | clear_subkey(); |
4903 | 0 | _has_bits_.Clear(); |
4904 | 0 | _internal_metadata_.Clear(); |
4905 | 0 | } |
4906 | | |
4907 | | bool RedisKeyValueSubKeyPB::MergePartialFromCodedStream( |
4908 | 58.3k | ::google::protobuf::io::CodedInputStream* input) { |
4909 | 58.3k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
4910 | 58.3k | ::google::protobuf::uint32 tag; |
4911 | | // @@protoc_insertion_point(parse_start:yb.RedisKeyValueSubKeyPB) |
4912 | 116k | for (;;) { |
4913 | 116k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4914 | 116k | tag = p.first; |
4915 | 116k | if (!p.second) goto handle_unusual58.3k ; |
4916 | 58.3k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4917 | | // optional bytes string_subkey = 1; |
4918 | 26.5k | case 1: { |
4919 | 26.5k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4920 | 26.5k | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4921 | 26.5k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4922 | 26.5k | input, this->mutable_string_subkey())); |
4923 | 26.5k | } else { |
4924 | 0 | goto handle_unusual; |
4925 | 0 | } |
4926 | 26.5k | break; |
4927 | 26.5k | } |
4928 | | |
4929 | | // optional int64 timestamp_subkey = 2; |
4930 | 26.5k | case 2: { |
4931 | 22.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4932 | 22.2k | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4933 | 22.2k | clear_subkey(); |
4934 | 22.2k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4935 | 22.2k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4936 | 22.2k | input, &subkey_.timestamp_subkey_))); |
4937 | 22.2k | set_has_timestamp_subkey(); |
4938 | 22.2k | } else { |
4939 | 0 | goto handle_unusual; |
4940 | 0 | } |
4941 | 22.2k | break; |
4942 | 22.2k | } |
4943 | | |
4944 | | // optional double double_subkey = 3; |
4945 | 22.2k | case 3: { |
4946 | 9.48k | if (static_cast< ::google::protobuf::uint8>(tag) == |
4947 | 9.48k | static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { |
4948 | 9.48k | clear_subkey(); |
4949 | 9.48k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4950 | 9.48k | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
4951 | 9.48k | input, &subkey_.double_subkey_))); |
4952 | 9.48k | set_has_double_subkey(); |
4953 | 9.48k | } else { |
4954 | 0 | goto handle_unusual; |
4955 | 0 | } |
4956 | 9.48k | break; |
4957 | 9.48k | } |
4958 | | |
4959 | 9.48k | default: { |
4960 | 58.3k | handle_unusual: |
4961 | 58.3k | if (tag == 0) { |
4962 | 58.3k | goto success; |
4963 | 58.3k | } |
4964 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4965 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4966 | 0 | break; |
4967 | 0 | } |
4968 | 58.3k | } |
4969 | 58.3k | } |
4970 | 58.3k | success: |
4971 | | // @@protoc_insertion_point(parse_success:yb.RedisKeyValueSubKeyPB) |
4972 | 58.3k | return true; |
4973 | 0 | failure: |
4974 | | // @@protoc_insertion_point(parse_failure:yb.RedisKeyValueSubKeyPB) |
4975 | 0 | return false; |
4976 | 58.3k | #undef DO_ |
4977 | 58.3k | } |
4978 | | |
4979 | | void RedisKeyValueSubKeyPB::SerializeWithCachedSizes( |
4980 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4981 | | // @@protoc_insertion_point(serialize_start:yb.RedisKeyValueSubKeyPB) |
4982 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4983 | 0 | (void) cached_has_bits; |
4984 | |
|
4985 | 0 | switch (subkey_case()) { |
4986 | 0 | case kStringSubkey: |
4987 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4988 | 0 | 1, this->string_subkey(), output); |
4989 | 0 | break; |
4990 | 0 | case kTimestampSubkey: |
4991 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp_subkey(), output); |
4992 | 0 | break; |
4993 | 0 | case kDoubleSubkey: |
4994 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->double_subkey(), output); |
4995 | 0 | break; |
4996 | 0 | default: ; |
4997 | 0 | } |
4998 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
4999 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5000 | 0 | _internal_metadata_.unknown_fields(), output); |
5001 | 0 | } |
5002 | | // @@protoc_insertion_point(serialize_end:yb.RedisKeyValueSubKeyPB) |
5003 | 0 | } |
5004 | | |
5005 | | ::google::protobuf::uint8* RedisKeyValueSubKeyPB::InternalSerializeWithCachedSizesToArray( |
5006 | 58.3k | bool deterministic, ::google::protobuf::uint8* target) const { |
5007 | 58.3k | (void)deterministic; // Unused |
5008 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeyValueSubKeyPB) |
5009 | 58.3k | ::google::protobuf::uint32 cached_has_bits = 0; |
5010 | 58.3k | (void) cached_has_bits; |
5011 | | |
5012 | 58.3k | switch (subkey_case()) { |
5013 | 26.5k | case kStringSubkey: |
5014 | 26.5k | target = |
5015 | 26.5k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5016 | 26.5k | 1, this->string_subkey(), target); |
5017 | 26.5k | break; |
5018 | 22.2k | case kTimestampSubkey: |
5019 | 22.2k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp_subkey(), target); |
5020 | 22.2k | break; |
5021 | 9.48k | case kDoubleSubkey: |
5022 | 9.48k | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->double_subkey(), target); |
5023 | 9.48k | break; |
5024 | 0 | default: ; |
5025 | 58.3k | } |
5026 | 58.3k | if (_internal_metadata_.have_unknown_fields()) { |
5027 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5028 | 0 | _internal_metadata_.unknown_fields(), target); |
5029 | 0 | } |
5030 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisKeyValueSubKeyPB) |
5031 | 58.3k | return target; |
5032 | 58.3k | } |
5033 | | |
5034 | 227k | size_t RedisKeyValueSubKeyPB::ByteSizeLong() const { |
5035 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisKeyValueSubKeyPB) |
5036 | 227k | size_t total_size = 0; |
5037 | | |
5038 | 227k | if (_internal_metadata_.have_unknown_fields()) { |
5039 | 0 | total_size += |
5040 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5041 | 0 | _internal_metadata_.unknown_fields()); |
5042 | 0 | } |
5043 | 227k | switch (subkey_case()) { |
5044 | | // optional bytes string_subkey = 1; |
5045 | 112k | case kStringSubkey: { |
5046 | 112k | total_size += 1 + |
5047 | 112k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5048 | 112k | this->string_subkey()); |
5049 | 112k | break; |
5050 | 0 | } |
5051 | | // optional int64 timestamp_subkey = 2; |
5052 | 74.8k | case kTimestampSubkey: { |
5053 | 74.8k | total_size += 1 + |
5054 | 74.8k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
5055 | 74.8k | this->timestamp_subkey()); |
5056 | 74.8k | break; |
5057 | 0 | } |
5058 | | // optional double double_subkey = 3; |
5059 | 40.1k | case kDoubleSubkey: { |
5060 | 40.1k | total_size += 1 + 8; |
5061 | 40.1k | break; |
5062 | 0 | } |
5063 | 0 | case SUBKEY_NOT_SET: { |
5064 | 0 | break; |
5065 | 0 | } |
5066 | 227k | } |
5067 | 227k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5068 | 227k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5069 | 227k | _cached_size_ = cached_size; |
5070 | 227k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5071 | 227k | return total_size; |
5072 | 227k | } |
5073 | | |
5074 | 0 | void RedisKeyValueSubKeyPB::MergeFrom(const ::google::protobuf::Message& from) { |
5075 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisKeyValueSubKeyPB) |
5076 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5077 | 0 | const RedisKeyValueSubKeyPB* source = |
5078 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisKeyValueSubKeyPB>( |
5079 | 0 | &from); |
5080 | 0 | if (source == NULL) { |
5081 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisKeyValueSubKeyPB) |
5082 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5083 | 0 | } else { |
5084 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisKeyValueSubKeyPB) |
5085 | 0 | MergeFrom(*source); |
5086 | 0 | } |
5087 | 0 | } |
5088 | | |
5089 | 1.30k | void RedisKeyValueSubKeyPB::MergeFrom(const RedisKeyValueSubKeyPB& from) { |
5090 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisKeyValueSubKeyPB) |
5091 | 1.30k | GOOGLE_DCHECK_NE(&from, this); |
5092 | 1.30k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5093 | 1.30k | ::google::protobuf::uint32 cached_has_bits = 0; |
5094 | 1.30k | (void) cached_has_bits; |
5095 | | |
5096 | 1.30k | switch (from.subkey_case()) { |
5097 | 84 | case kStringSubkey: { |
5098 | 84 | set_string_subkey(from.string_subkey()); |
5099 | 84 | break; |
5100 | 0 | } |
5101 | 1.21k | case kTimestampSubkey: { |
5102 | 1.21k | set_timestamp_subkey(from.timestamp_subkey()); |
5103 | 1.21k | break; |
5104 | 0 | } |
5105 | 0 | case kDoubleSubkey: { |
5106 | 0 | set_double_subkey(from.double_subkey()); |
5107 | 0 | break; |
5108 | 0 | } |
5109 | 0 | case SUBKEY_NOT_SET: { |
5110 | 0 | break; |
5111 | 0 | } |
5112 | 1.30k | } |
5113 | 1.30k | } |
5114 | | |
5115 | 0 | void RedisKeyValueSubKeyPB::CopyFrom(const ::google::protobuf::Message& from) { |
5116 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisKeyValueSubKeyPB) |
5117 | 0 | if (&from == this) return; |
5118 | 0 | Clear(); |
5119 | 0 | MergeFrom(from); |
5120 | 0 | } |
5121 | | |
5122 | 0 | void RedisKeyValueSubKeyPB::CopyFrom(const RedisKeyValueSubKeyPB& from) { |
5123 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisKeyValueSubKeyPB) |
5124 | 0 | if (&from == this) return; |
5125 | 0 | Clear(); |
5126 | 0 | MergeFrom(from); |
5127 | 0 | } |
5128 | | |
5129 | 0 | bool RedisKeyValueSubKeyPB::IsInitialized() const { |
5130 | 0 | return true; |
5131 | 0 | } |
5132 | | |
5133 | 0 | void RedisKeyValueSubKeyPB::Swap(RedisKeyValueSubKeyPB* other) { |
5134 | 0 | if (other == this) return; |
5135 | 0 | InternalSwap(other); |
5136 | 0 | } |
5137 | 0 | void RedisKeyValueSubKeyPB::InternalSwap(RedisKeyValueSubKeyPB* other) { |
5138 | 0 | using std::swap; |
5139 | 0 | swap(subkey_, other->subkey_); |
5140 | 0 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
5141 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5142 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5143 | 0 | swap(_cached_size_, other->_cached_size_); |
5144 | 0 | } |
5145 | | |
5146 | 81.3k | ::google::protobuf::Metadata RedisKeyValueSubKeyPB::GetMetadata() const { |
5147 | 81.3k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5148 | 81.3k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
5149 | 81.3k | } |
5150 | | |
5151 | | |
5152 | | // =================================================================== |
5153 | | |
5154 | 28.1k | void RedisKeyValuePB::InitAsDefaultInstance() { |
5155 | 28.1k | } |
5156 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5157 | | const int RedisKeyValuePB::kHashCodeFieldNumber; |
5158 | | const int RedisKeyValuePB::kKeyFieldNumber; |
5159 | | const int RedisKeyValuePB::kTypeFieldNumber; |
5160 | | const int RedisKeyValuePB::kSubkeyFieldNumber; |
5161 | | const int RedisKeyValuePB::kIndexFieldNumber; |
5162 | | const int RedisKeyValuePB::kValueFieldNumber; |
5163 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5164 | | |
5165 | | RedisKeyValuePB::RedisKeyValuePB() |
5166 | 300k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5167 | 300k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5168 | 271k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB(); |
5169 | 271k | } |
5170 | 300k | SharedCtor(); |
5171 | | // @@protoc_insertion_point(constructor:yb.RedisKeyValuePB) |
5172 | 300k | } |
5173 | | RedisKeyValuePB::RedisKeyValuePB(const RedisKeyValuePB& from) |
5174 | | : ::google::protobuf::Message(), |
5175 | | _internal_metadata_(NULL), |
5176 | | _has_bits_(from._has_bits_), |
5177 | | _cached_size_(0), |
5178 | | subkey_(from.subkey_), |
5179 | 84.6k | value_(from.value_) { |
5180 | 84.6k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5181 | 84.6k | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5182 | 84.6k | if (from.has_key()) { |
5183 | 83.9k | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
5184 | 83.9k | } |
5185 | 84.6k | ::memcpy(&hash_code_, &from.hash_code_, |
5186 | 84.6k | static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
5187 | 84.6k | reinterpret_cast<char*>(&hash_code_)) + sizeof(type_)); |
5188 | | // @@protoc_insertion_point(copy_constructor:yb.RedisKeyValuePB) |
5189 | 84.6k | } |
5190 | | |
5191 | 300k | void RedisKeyValuePB::SharedCtor() { |
5192 | 300k | _cached_size_ = 0; |
5193 | 300k | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5194 | 300k | ::memset(&hash_code_, 0, static_cast<size_t>( |
5195 | 300k | reinterpret_cast<char*>(&index_) - |
5196 | 300k | reinterpret_cast<char*>(&hash_code_)) + sizeof(index_)); |
5197 | 300k | type_ = 1; |
5198 | 300k | } |
5199 | | |
5200 | 356k | RedisKeyValuePB::~RedisKeyValuePB() { |
5201 | | // @@protoc_insertion_point(destructor:yb.RedisKeyValuePB) |
5202 | 356k | SharedDtor(); |
5203 | 356k | } |
5204 | | |
5205 | 356k | void RedisKeyValuePB::SharedDtor() { |
5206 | 356k | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5207 | 356k | } |
5208 | | |
5209 | 0 | void RedisKeyValuePB::SetCachedSize(int size) const { |
5210 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5211 | 0 | _cached_size_ = size; |
5212 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5213 | 0 | } |
5214 | 0 | const ::google::protobuf::Descriptor* RedisKeyValuePB::descriptor() { |
5215 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5216 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5217 | 0 | } |
5218 | | |
5219 | 0 | const RedisKeyValuePB& RedisKeyValuePB::default_instance() { |
5220 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB(); |
5221 | 0 | return *internal_default_instance(); |
5222 | 0 | } |
5223 | | |
5224 | 0 | RedisKeyValuePB* RedisKeyValuePB::New(::google::protobuf::Arena* arena) const { |
5225 | 0 | RedisKeyValuePB* n = new RedisKeyValuePB; |
5226 | 0 | if (arena != NULL) { |
5227 | 0 | arena->Own(n); |
5228 | 0 | } |
5229 | 0 | return n; |
5230 | 0 | } |
5231 | | |
5232 | 0 | void RedisKeyValuePB::Clear() { |
5233 | | // @@protoc_insertion_point(message_clear_start:yb.RedisKeyValuePB) |
5234 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5235 | | // Prevent compiler warnings about cached_has_bits being unused |
5236 | 0 | (void) cached_has_bits; |
5237 | |
|
5238 | 0 | subkey_.Clear(); |
5239 | 0 | value_.Clear(); |
5240 | 0 | cached_has_bits = _has_bits_[0]; |
5241 | 0 | if (cached_has_bits & 0x00000001u) { |
5242 | 0 | GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5243 | 0 | (*key_.UnsafeRawStringPointer())->clear(); |
5244 | 0 | } |
5245 | 0 | if (cached_has_bits & 14u) { |
5246 | 0 | ::memset(&hash_code_, 0, static_cast<size_t>( |
5247 | 0 | reinterpret_cast<char*>(&index_) - |
5248 | 0 | reinterpret_cast<char*>(&hash_code_)) + sizeof(index_)); |
5249 | 0 | type_ = 1; |
5250 | 0 | } |
5251 | 0 | _has_bits_.Clear(); |
5252 | 0 | _internal_metadata_.Clear(); |
5253 | 0 | } |
5254 | | |
5255 | | bool RedisKeyValuePB::MergePartialFromCodedStream( |
5256 | 63.7k | ::google::protobuf::io::CodedInputStream* input) { |
5257 | 292k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
5258 | 63.7k | ::google::protobuf::uint32 tag; |
5259 | | // @@protoc_insertion_point(parse_start:yb.RedisKeyValuePB) |
5260 | 356k | for (;;) { |
5261 | 356k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5262 | 356k | tag = p.first; |
5263 | 356k | if (!p.second) goto handle_unusual63.7k ; |
5264 | 292k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5265 | | // optional uint32 hash_code = 1; |
5266 | 63.7k | case 1: { |
5267 | 63.7k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5268 | 63.7k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
5269 | 63.7k | set_has_hash_code(); |
5270 | 63.7k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5271 | 63.7k | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
5272 | 63.7k | input, &hash_code_))); |
5273 | 63.7k | } else { |
5274 | 0 | goto handle_unusual; |
5275 | 0 | } |
5276 | 63.7k | break; |
5277 | 63.7k | } |
5278 | | |
5279 | | // optional bytes key = 2; |
5280 | 63.7k | case 2: { |
5281 | 63.2k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5282 | 63.2k | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5283 | 63.2k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5284 | 63.2k | input, this->mutable_key())); |
5285 | 63.2k | } else { |
5286 | 0 | goto handle_unusual; |
5287 | 0 | } |
5288 | 63.2k | break; |
5289 | 63.2k | } |
5290 | | |
5291 | | // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE]; |
5292 | 63.2k | case 3: { |
5293 | 43.3k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5294 | 43.3k | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
5295 | 43.3k | int value; |
5296 | 43.3k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5297 | 43.3k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5298 | 43.3k | input, &value))); |
5299 | 43.3k | if (::yb::RedisDataType_IsValid(value)) { |
5300 | 43.3k | set_type(static_cast< ::yb::RedisDataType >(value)); |
5301 | 43.3k | } else { |
5302 | 0 | mutable_unknown_fields()->AddVarint( |
5303 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
5304 | 0 | } |
5305 | 43.3k | } else { |
5306 | 0 | goto handle_unusual; |
5307 | 0 | } |
5308 | 43.3k | break; |
5309 | 43.3k | } |
5310 | | |
5311 | | // repeated .yb.RedisKeyValueSubKeyPB subkey = 4; |
5312 | 49.0k | case 4: { |
5313 | 49.0k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5314 | 49.0k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
5315 | 49.0k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_subkey())); |
5316 | 49.0k | } else { |
5317 | 0 | goto handle_unusual; |
5318 | 0 | } |
5319 | 49.0k | break; |
5320 | 49.0k | } |
5321 | | |
5322 | | // optional int32 index = 5; |
5323 | 49.0k | case 5: { |
5324 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5325 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
5326 | 0 | set_has_index(); |
5327 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5328 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
5329 | 0 | input, &index_))); |
5330 | 0 | } else { |
5331 | 0 | goto handle_unusual; |
5332 | 0 | } |
5333 | 0 | break; |
5334 | 0 | } |
5335 | | |
5336 | | // repeated bytes value = 6; |
5337 | 73.3k | case 6: { |
5338 | 73.3k | if (static_cast< ::google::protobuf::uint8>(tag) == |
5339 | 73.3k | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
5340 | 73.3k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5341 | 73.3k | input, this->add_value())); |
5342 | 73.3k | } else { |
5343 | 0 | goto handle_unusual; |
5344 | 0 | } |
5345 | 73.3k | break; |
5346 | 73.3k | } |
5347 | | |
5348 | 73.3k | default: { |
5349 | 63.7k | handle_unusual: |
5350 | 63.7k | if (tag == 0) { |
5351 | 63.7k | goto success; |
5352 | 63.7k | } |
5353 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5354 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5355 | 0 | break; |
5356 | 0 | } |
5357 | 292k | } |
5358 | 292k | } |
5359 | 63.7k | success: |
5360 | | // @@protoc_insertion_point(parse_success:yb.RedisKeyValuePB) |
5361 | 63.7k | return true; |
5362 | 0 | failure: |
5363 | | // @@protoc_insertion_point(parse_failure:yb.RedisKeyValuePB) |
5364 | 0 | return false; |
5365 | 63.7k | #undef DO_ |
5366 | 63.7k | } |
5367 | | |
5368 | | void RedisKeyValuePB::SerializeWithCachedSizes( |
5369 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5370 | | // @@protoc_insertion_point(serialize_start:yb.RedisKeyValuePB) |
5371 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5372 | 0 | (void) cached_has_bits; |
5373 | |
|
5374 | 0 | cached_has_bits = _has_bits_[0]; |
5375 | | // optional uint32 hash_code = 1; |
5376 | 0 | if (cached_has_bits & 0x00000002u) { |
5377 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->hash_code(), output); |
5378 | 0 | } |
5379 | | |
5380 | | // optional bytes key = 2; |
5381 | 0 | if (cached_has_bits & 0x00000001u) { |
5382 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
5383 | 0 | 2, this->key(), output); |
5384 | 0 | } |
5385 | | |
5386 | | // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE]; |
5387 | 0 | if (cached_has_bits & 0x00000008u) { |
5388 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5389 | 0 | 3, this->type(), output); |
5390 | 0 | } |
5391 | | |
5392 | | // repeated .yb.RedisKeyValueSubKeyPB subkey = 4; |
5393 | 0 | for (unsigned int i = 0, |
5394 | 0 | n = static_cast<unsigned int>(this->subkey_size()); i < n; i++) { |
5395 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5396 | 0 | 4, this->subkey(static_cast<int>(i)), output); |
5397 | 0 | } |
5398 | | |
5399 | | // optional int32 index = 5; |
5400 | 0 | if (cached_has_bits & 0x00000004u) { |
5401 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->index(), output); |
5402 | 0 | } |
5403 | | |
5404 | | // repeated bytes value = 6; |
5405 | 0 | for (int i = 0, n = this->value_size(); i < n; i++) { |
5406 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
5407 | 0 | 6, this->value(i), output); |
5408 | 0 | } |
5409 | |
|
5410 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5411 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5412 | 0 | _internal_metadata_.unknown_fields(), output); |
5413 | 0 | } |
5414 | | // @@protoc_insertion_point(serialize_end:yb.RedisKeyValuePB) |
5415 | 0 | } |
5416 | | |
5417 | | ::google::protobuf::uint8* RedisKeyValuePB::InternalSerializeWithCachedSizesToArray( |
5418 | 63.7k | bool deterministic, ::google::protobuf::uint8* target) const { |
5419 | 63.7k | (void)deterministic; // Unused |
5420 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeyValuePB) |
5421 | 63.7k | ::google::protobuf::uint32 cached_has_bits = 0; |
5422 | 63.7k | (void) cached_has_bits; |
5423 | | |
5424 | 63.7k | cached_has_bits = _has_bits_[0]; |
5425 | | // optional uint32 hash_code = 1; |
5426 | 63.7k | if (cached_has_bits & 0x00000002u) { |
5427 | 63.7k | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->hash_code(), target); |
5428 | 63.7k | } |
5429 | | |
5430 | | // optional bytes key = 2; |
5431 | 63.7k | if (cached_has_bits & 0x00000001u) { |
5432 | 63.3k | target = |
5433 | 63.3k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
5434 | 63.3k | 2, this->key(), target); |
5435 | 63.3k | } |
5436 | | |
5437 | | // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE]; |
5438 | 63.7k | if (cached_has_bits & 0x00000008u) { |
5439 | 43.4k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5440 | 43.4k | 3, this->type(), target); |
5441 | 43.4k | } |
5442 | | |
5443 | | // repeated .yb.RedisKeyValueSubKeyPB subkey = 4; |
5444 | 63.7k | for (unsigned int i = 0, |
5445 | 112k | n = static_cast<unsigned int>(this->subkey_size()); i < n; i++49.0k ) { |
5446 | 49.0k | target = ::google::protobuf::internal::WireFormatLite:: |
5447 | 49.0k | InternalWriteMessageToArray( |
5448 | 49.0k | 4, this->subkey(static_cast<int>(i)), deterministic, target); |
5449 | 49.0k | } |
5450 | | |
5451 | | // optional int32 index = 5; |
5452 | 63.7k | if (cached_has_bits & 0x00000004u) { |
5453 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->index(), target); |
5454 | 0 | } |
5455 | | |
5456 | | // repeated bytes value = 6; |
5457 | 137k | for (int i = 0, n = this->value_size(); i < n; i++73.3k ) { |
5458 | 73.3k | target = ::google::protobuf::internal::WireFormatLite:: |
5459 | 73.3k | WriteBytesToArray(6, this->value(i), target); |
5460 | 73.3k | } |
5461 | | |
5462 | 63.7k | if (_internal_metadata_.have_unknown_fields()) { |
5463 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5464 | 0 | _internal_metadata_.unknown_fields(), target); |
5465 | 0 | } |
5466 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisKeyValuePB) |
5467 | 63.7k | return target; |
5468 | 63.7k | } |
5469 | | |
5470 | 250k | size_t RedisKeyValuePB::ByteSizeLong() const { |
5471 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisKeyValuePB) |
5472 | 250k | size_t total_size = 0; |
5473 | | |
5474 | 250k | if (_internal_metadata_.have_unknown_fields()) { |
5475 | 0 | total_size += |
5476 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5477 | 0 | _internal_metadata_.unknown_fields()); |
5478 | 0 | } |
5479 | | // repeated .yb.RedisKeyValueSubKeyPB subkey = 4; |
5480 | 250k | { |
5481 | 250k | unsigned int count = static_cast<unsigned int>(this->subkey_size()); |
5482 | 250k | total_size += 1UL * count; |
5483 | 460k | for (unsigned int i = 0; i < count; i++209k ) { |
5484 | 209k | total_size += |
5485 | 209k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5486 | 209k | this->subkey(static_cast<int>(i))); |
5487 | 209k | } |
5488 | 250k | } |
5489 | | |
5490 | | // repeated bytes value = 6; |
5491 | 250k | total_size += 1 * |
5492 | 250k | ::google::protobuf::internal::FromIntSize(this->value_size()); |
5493 | 589k | for (int i = 0, n = this->value_size(); i < n; i++339k ) { |
5494 | 339k | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
5495 | 339k | this->value(i)); |
5496 | 339k | } |
5497 | | |
5498 | 250k | if (_has_bits_[0 / 32] & 15u) { |
5499 | | // optional bytes key = 2; |
5500 | 250k | if (has_key()) { |
5501 | 250k | total_size += 1 + |
5502 | 250k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
5503 | 250k | this->key()); |
5504 | 250k | } |
5505 | | |
5506 | | // optional uint32 hash_code = 1; |
5507 | 250k | if (has_hash_code()) { |
5508 | 127k | total_size += 1 + |
5509 | 127k | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
5510 | 127k | this->hash_code()); |
5511 | 127k | } |
5512 | | |
5513 | | // optional int32 index = 5; |
5514 | 250k | if (has_index()) { |
5515 | 0 | total_size += 1 + |
5516 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
5517 | 0 | this->index()); |
5518 | 0 | } |
5519 | | |
5520 | | // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE]; |
5521 | 250k | if (has_type()) { |
5522 | 210k | total_size += 1 + |
5523 | 210k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
5524 | 210k | } |
5525 | | |
5526 | 250k | } |
5527 | 250k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5528 | 250k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5529 | 250k | _cached_size_ = cached_size; |
5530 | 250k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5531 | 250k | return total_size; |
5532 | 250k | } |
5533 | | |
5534 | 0 | void RedisKeyValuePB::MergeFrom(const ::google::protobuf::Message& from) { |
5535 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisKeyValuePB) |
5536 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5537 | 0 | const RedisKeyValuePB* source = |
5538 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisKeyValuePB>( |
5539 | 0 | &from); |
5540 | 0 | if (source == NULL) { |
5541 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisKeyValuePB) |
5542 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5543 | 0 | } else { |
5544 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisKeyValuePB) |
5545 | 0 | MergeFrom(*source); |
5546 | 0 | } |
5547 | 0 | } |
5548 | | |
5549 | 0 | void RedisKeyValuePB::MergeFrom(const RedisKeyValuePB& from) { |
5550 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisKeyValuePB) |
5551 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5552 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5553 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5554 | 0 | (void) cached_has_bits; |
5555 | |
|
5556 | 0 | subkey_.MergeFrom(from.subkey_); |
5557 | 0 | value_.MergeFrom(from.value_); |
5558 | 0 | cached_has_bits = from._has_bits_[0]; |
5559 | 0 | if (cached_has_bits & 15u) { |
5560 | 0 | if (cached_has_bits & 0x00000001u) { |
5561 | 0 | set_has_key(); |
5562 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
5563 | 0 | } |
5564 | 0 | if (cached_has_bits & 0x00000002u) { |
5565 | 0 | hash_code_ = from.hash_code_; |
5566 | 0 | } |
5567 | 0 | if (cached_has_bits & 0x00000004u) { |
5568 | 0 | index_ = from.index_; |
5569 | 0 | } |
5570 | 0 | if (cached_has_bits & 0x00000008u) { |
5571 | 0 | type_ = from.type_; |
5572 | 0 | } |
5573 | 0 | _has_bits_[0] |= cached_has_bits; |
5574 | 0 | } |
5575 | 0 | } |
5576 | | |
5577 | 0 | void RedisKeyValuePB::CopyFrom(const ::google::protobuf::Message& from) { |
5578 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisKeyValuePB) |
5579 | 0 | if (&from == this) return; |
5580 | 0 | Clear(); |
5581 | 0 | MergeFrom(from); |
5582 | 0 | } |
5583 | | |
5584 | 0 | void RedisKeyValuePB::CopyFrom(const RedisKeyValuePB& from) { |
5585 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisKeyValuePB) |
5586 | 0 | if (&from == this) return; |
5587 | 0 | Clear(); |
5588 | 0 | MergeFrom(from); |
5589 | 0 | } |
5590 | | |
5591 | 0 | bool RedisKeyValuePB::IsInitialized() const { |
5592 | 0 | return true; |
5593 | 0 | } |
5594 | | |
5595 | 0 | void RedisKeyValuePB::Swap(RedisKeyValuePB* other) { |
5596 | 0 | if (other == this) return; |
5597 | 0 | InternalSwap(other); |
5598 | 0 | } |
5599 | 0 | void RedisKeyValuePB::InternalSwap(RedisKeyValuePB* other) { |
5600 | 0 | using std::swap; |
5601 | 0 | subkey_.InternalSwap(&other->subkey_); |
5602 | 0 | value_.InternalSwap(&other->value_); |
5603 | 0 | key_.Swap(&other->key_); |
5604 | 0 | swap(hash_code_, other->hash_code_); |
5605 | 0 | swap(index_, other->index_); |
5606 | 0 | swap(type_, other->type_); |
5607 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5608 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5609 | 0 | swap(_cached_size_, other->_cached_size_); |
5610 | 0 | } |
5611 | | |
5612 | 148k | ::google::protobuf::Metadata RedisKeyValuePB::GetMetadata() const { |
5613 | 148k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5614 | 148k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
5615 | 148k | } |
5616 | | |
5617 | | |
5618 | | // =================================================================== |
5619 | | |
5620 | 28.1k | void SortedSetOptionsPB::InitAsDefaultInstance() { |
5621 | 28.1k | } |
5622 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5623 | | const int SortedSetOptionsPB::kUpdateOptionsFieldNumber; |
5624 | | const int SortedSetOptionsPB::kChFieldNumber; |
5625 | | const int SortedSetOptionsPB::kIncrFieldNumber; |
5626 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5627 | | |
5628 | | SortedSetOptionsPB::SortedSetOptionsPB() |
5629 | 58.7k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5630 | 58.7k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5631 | 30.5k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsSortedSetOptionsPB(); |
5632 | 30.5k | } |
5633 | 58.7k | SharedCtor(); |
5634 | | // @@protoc_insertion_point(constructor:yb.SortedSetOptionsPB) |
5635 | 58.7k | } |
5636 | | SortedSetOptionsPB::SortedSetOptionsPB(const SortedSetOptionsPB& from) |
5637 | | : ::google::protobuf::Message(), |
5638 | | _internal_metadata_(NULL), |
5639 | | _has_bits_(from._has_bits_), |
5640 | 0 | _cached_size_(0) { |
5641 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5642 | 0 | ::memcpy(&ch_, &from.ch_, |
5643 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&update_options_) - |
5644 | 0 | reinterpret_cast<char*>(&ch_)) + sizeof(update_options_)); |
5645 | | // @@protoc_insertion_point(copy_constructor:yb.SortedSetOptionsPB) |
5646 | 0 | } |
5647 | | |
5648 | 58.7k | void SortedSetOptionsPB::SharedCtor() { |
5649 | 58.7k | _cached_size_ = 0; |
5650 | 58.7k | ::memset(&ch_, 0, static_cast<size_t>( |
5651 | 58.7k | reinterpret_cast<char*>(&incr_) - |
5652 | 58.7k | reinterpret_cast<char*>(&ch_)) + sizeof(incr_)); |
5653 | 58.7k | update_options_ = 3; |
5654 | 58.7k | } |
5655 | | |
5656 | 30.5k | SortedSetOptionsPB::~SortedSetOptionsPB() { |
5657 | | // @@protoc_insertion_point(destructor:yb.SortedSetOptionsPB) |
5658 | 30.5k | SharedDtor(); |
5659 | 30.5k | } |
5660 | | |
5661 | 30.5k | void SortedSetOptionsPB::SharedDtor() { |
5662 | 30.5k | } |
5663 | | |
5664 | 0 | void SortedSetOptionsPB::SetCachedSize(int size) const { |
5665 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5666 | 0 | _cached_size_ = size; |
5667 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5668 | 0 | } |
5669 | 0 | const ::google::protobuf::Descriptor* SortedSetOptionsPB::descriptor() { |
5670 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5671 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5672 | 0 | } |
5673 | | |
5674 | 0 | const SortedSetOptionsPB& SortedSetOptionsPB::default_instance() { |
5675 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsSortedSetOptionsPB(); |
5676 | 0 | return *internal_default_instance(); |
5677 | 0 | } |
5678 | | |
5679 | 0 | SortedSetOptionsPB* SortedSetOptionsPB::New(::google::protobuf::Arena* arena) const { |
5680 | 0 | SortedSetOptionsPB* n = new SortedSetOptionsPB; |
5681 | 0 | if (arena != NULL) { |
5682 | 0 | arena->Own(n); |
5683 | 0 | } |
5684 | 0 | return n; |
5685 | 0 | } |
5686 | | |
5687 | 0 | void SortedSetOptionsPB::Clear() { |
5688 | | // @@protoc_insertion_point(message_clear_start:yb.SortedSetOptionsPB) |
5689 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5690 | | // Prevent compiler warnings about cached_has_bits being unused |
5691 | 0 | (void) cached_has_bits; |
5692 | |
|
5693 | 0 | ::memset(&ch_, 0, static_cast<size_t>( |
5694 | 0 | reinterpret_cast<char*>(&incr_) - |
5695 | 0 | reinterpret_cast<char*>(&ch_)) + sizeof(incr_)); |
5696 | 0 | update_options_ = 3; |
5697 | 0 | _has_bits_.Clear(); |
5698 | 0 | _internal_metadata_.Clear(); |
5699 | 0 | } |
5700 | | |
5701 | | bool SortedSetOptionsPB::MergePartialFromCodedStream( |
5702 | 9.42k | ::google::protobuf::io::CodedInputStream* input) { |
5703 | 9.42k | #define DO_(EXPRESSION) if (3 !GOOGLE_PREDICT_TRUE3 (EXPRESSION)) goto failure0 |
5704 | 9.42k | ::google::protobuf::uint32 tag; |
5705 | | // @@protoc_insertion_point(parse_start:yb.SortedSetOptionsPB) |
5706 | 9.43k | for (;;) { |
5707 | 9.43k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5708 | 9.43k | tag = p.first; |
5709 | 9.43k | if (!p.second) goto handle_unusual9.42k ; |
5710 | 3 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5711 | | // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE]; |
5712 | 2 | case 4: { |
5713 | 2 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5714 | 2 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
5715 | 2 | int value; |
5716 | 2 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5717 | 2 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5718 | 2 | input, &value))); |
5719 | 2 | if (::yb::SortedSetOptionsPB_UpdateOptions_IsValid(value)) { |
5720 | 2 | set_update_options(static_cast< ::yb::SortedSetOptionsPB_UpdateOptions >(value)); |
5721 | 2 | } else { |
5722 | 0 | mutable_unknown_fields()->AddVarint( |
5723 | 0 | 4, static_cast< ::google::protobuf::uint64>(value)); |
5724 | 0 | } |
5725 | 2 | } else { |
5726 | 0 | goto handle_unusual; |
5727 | 0 | } |
5728 | 2 | break; |
5729 | 2 | } |
5730 | | |
5731 | | // optional bool ch = 5 [default = false]; |
5732 | 2 | case 5: { |
5733 | 1 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5734 | 1 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
5735 | 1 | set_has_ch(); |
5736 | 1 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5737 | 1 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5738 | 1 | input, &ch_))); |
5739 | 1 | } else { |
5740 | 0 | goto handle_unusual; |
5741 | 0 | } |
5742 | 1 | break; |
5743 | 1 | } |
5744 | | |
5745 | | // optional bool incr = 6 [default = false]; |
5746 | 1 | case 6: { |
5747 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5748 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
5749 | 0 | set_has_incr(); |
5750 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5751 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5752 | 0 | input, &incr_))); |
5753 | 0 | } else { |
5754 | 0 | goto handle_unusual; |
5755 | 0 | } |
5756 | 0 | break; |
5757 | 0 | } |
5758 | | |
5759 | 0 | default: { |
5760 | 9.42k | handle_unusual: |
5761 | 9.42k | if (tag == 0) { |
5762 | 9.42k | goto success; |
5763 | 9.42k | } |
5764 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5765 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5766 | 0 | break; |
5767 | 0 | } |
5768 | 3 | } |
5769 | 3 | } |
5770 | 9.42k | success: |
5771 | | // @@protoc_insertion_point(parse_success:yb.SortedSetOptionsPB) |
5772 | 9.42k | return true; |
5773 | 0 | failure: |
5774 | | // @@protoc_insertion_point(parse_failure:yb.SortedSetOptionsPB) |
5775 | 0 | return false; |
5776 | 9.42k | #undef DO_ |
5777 | 9.42k | } |
5778 | | |
5779 | | void SortedSetOptionsPB::SerializeWithCachedSizes( |
5780 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5781 | | // @@protoc_insertion_point(serialize_start:yb.SortedSetOptionsPB) |
5782 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5783 | 0 | (void) cached_has_bits; |
5784 | |
|
5785 | 0 | cached_has_bits = _has_bits_[0]; |
5786 | | // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE]; |
5787 | 0 | if (cached_has_bits & 0x00000004u) { |
5788 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
5789 | 0 | 4, this->update_options(), output); |
5790 | 0 | } |
5791 | | |
5792 | | // optional bool ch = 5 [default = false]; |
5793 | 0 | if (cached_has_bits & 0x00000001u) { |
5794 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ch(), output); |
5795 | 0 | } |
5796 | | |
5797 | | // optional bool incr = 6 [default = false]; |
5798 | 0 | if (cached_has_bits & 0x00000002u) { |
5799 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->incr(), output); |
5800 | 0 | } |
5801 | |
|
5802 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
5803 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5804 | 0 | _internal_metadata_.unknown_fields(), output); |
5805 | 0 | } |
5806 | | // @@protoc_insertion_point(serialize_end:yb.SortedSetOptionsPB) |
5807 | 0 | } |
5808 | | |
5809 | | ::google::protobuf::uint8* SortedSetOptionsPB::InternalSerializeWithCachedSizesToArray( |
5810 | 9.42k | bool deterministic, ::google::protobuf::uint8* target) const { |
5811 | 9.42k | (void)deterministic; // Unused |
5812 | | // @@protoc_insertion_point(serialize_to_array_start:yb.SortedSetOptionsPB) |
5813 | 9.42k | ::google::protobuf::uint32 cached_has_bits = 0; |
5814 | 9.42k | (void) cached_has_bits; |
5815 | | |
5816 | 9.42k | cached_has_bits = _has_bits_[0]; |
5817 | | // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE]; |
5818 | 9.42k | if (cached_has_bits & 0x00000004u) { |
5819 | 2 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
5820 | 2 | 4, this->update_options(), target); |
5821 | 2 | } |
5822 | | |
5823 | | // optional bool ch = 5 [default = false]; |
5824 | 9.42k | if (cached_has_bits & 0x00000001u) { |
5825 | 1 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ch(), target); |
5826 | 1 | } |
5827 | | |
5828 | | // optional bool incr = 6 [default = false]; |
5829 | 9.42k | if (cached_has_bits & 0x00000002u) { |
5830 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->incr(), target); |
5831 | 0 | } |
5832 | | |
5833 | 9.42k | if (_internal_metadata_.have_unknown_fields()) { |
5834 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5835 | 0 | _internal_metadata_.unknown_fields(), target); |
5836 | 0 | } |
5837 | | // @@protoc_insertion_point(serialize_to_array_end:yb.SortedSetOptionsPB) |
5838 | 9.42k | return target; |
5839 | 9.42k | } |
5840 | | |
5841 | 39.9k | size_t SortedSetOptionsPB::ByteSizeLong() const { |
5842 | | // @@protoc_insertion_point(message_byte_size_start:yb.SortedSetOptionsPB) |
5843 | 39.9k | size_t total_size = 0; |
5844 | | |
5845 | 39.9k | if (_internal_metadata_.have_unknown_fields()) { |
5846 | 0 | total_size += |
5847 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5848 | 0 | _internal_metadata_.unknown_fields()); |
5849 | 0 | } |
5850 | 39.9k | if (_has_bits_[0 / 32] & 7u) { |
5851 | | // optional bool ch = 5 [default = false]; |
5852 | 12 | if (has_ch()) { |
5853 | 4 | total_size += 1 + 1; |
5854 | 4 | } |
5855 | | |
5856 | | // optional bool incr = 6 [default = false]; |
5857 | 12 | if (has_incr()) { |
5858 | 0 | total_size += 1 + 1; |
5859 | 0 | } |
5860 | | |
5861 | | // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE]; |
5862 | 12 | if (has_update_options()) { |
5863 | 8 | total_size += 1 + |
5864 | 8 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_options()); |
5865 | 8 | } |
5866 | | |
5867 | 12 | } |
5868 | 39.9k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5869 | 39.9k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5870 | 39.9k | _cached_size_ = cached_size; |
5871 | 39.9k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5872 | 39.9k | return total_size; |
5873 | 39.9k | } |
5874 | | |
5875 | 0 | void SortedSetOptionsPB::MergeFrom(const ::google::protobuf::Message& from) { |
5876 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.SortedSetOptionsPB) |
5877 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5878 | 0 | const SortedSetOptionsPB* source = |
5879 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const SortedSetOptionsPB>( |
5880 | 0 | &from); |
5881 | 0 | if (source == NULL) { |
5882 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.SortedSetOptionsPB) |
5883 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5884 | 0 | } else { |
5885 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.SortedSetOptionsPB) |
5886 | 0 | MergeFrom(*source); |
5887 | 0 | } |
5888 | 0 | } |
5889 | | |
5890 | 0 | void SortedSetOptionsPB::MergeFrom(const SortedSetOptionsPB& from) { |
5891 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.SortedSetOptionsPB) |
5892 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5893 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5894 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5895 | 0 | (void) cached_has_bits; |
5896 | |
|
5897 | 0 | cached_has_bits = from._has_bits_[0]; |
5898 | 0 | if (cached_has_bits & 7u) { |
5899 | 0 | if (cached_has_bits & 0x00000001u) { |
5900 | 0 | ch_ = from.ch_; |
5901 | 0 | } |
5902 | 0 | if (cached_has_bits & 0x00000002u) { |
5903 | 0 | incr_ = from.incr_; |
5904 | 0 | } |
5905 | 0 | if (cached_has_bits & 0x00000004u) { |
5906 | 0 | update_options_ = from.update_options_; |
5907 | 0 | } |
5908 | 0 | _has_bits_[0] |= cached_has_bits; |
5909 | 0 | } |
5910 | 0 | } |
5911 | | |
5912 | 0 | void SortedSetOptionsPB::CopyFrom(const ::google::protobuf::Message& from) { |
5913 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.SortedSetOptionsPB) |
5914 | 0 | if (&from == this) return; |
5915 | 0 | Clear(); |
5916 | 0 | MergeFrom(from); |
5917 | 0 | } |
5918 | | |
5919 | 0 | void SortedSetOptionsPB::CopyFrom(const SortedSetOptionsPB& from) { |
5920 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.SortedSetOptionsPB) |
5921 | 0 | if (&from == this) return; |
5922 | 0 | Clear(); |
5923 | 0 | MergeFrom(from); |
5924 | 0 | } |
5925 | | |
5926 | 0 | bool SortedSetOptionsPB::IsInitialized() const { |
5927 | 0 | return true; |
5928 | 0 | } |
5929 | | |
5930 | 0 | void SortedSetOptionsPB::Swap(SortedSetOptionsPB* other) { |
5931 | 0 | if (other == this) return; |
5932 | 0 | InternalSwap(other); |
5933 | 0 | } |
5934 | 0 | void SortedSetOptionsPB::InternalSwap(SortedSetOptionsPB* other) { |
5935 | 0 | using std::swap; |
5936 | 0 | swap(ch_, other->ch_); |
5937 | 0 | swap(incr_, other->incr_); |
5938 | 0 | swap(update_options_, other->update_options_); |
5939 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5940 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5941 | 0 | swap(_cached_size_, other->_cached_size_); |
5942 | 0 | } |
5943 | | |
5944 | 9.42k | ::google::protobuf::Metadata SortedSetOptionsPB::GetMetadata() const { |
5945 | 9.42k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
5946 | 9.42k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
5947 | 9.42k | } |
5948 | | |
5949 | | |
5950 | | // =================================================================== |
5951 | | |
5952 | 28.1k | void RedisSetRequestPB::InitAsDefaultInstance() { |
5953 | 28.1k | ::yb::_RedisSetRequestPB_default_instance_._instance.get_mutable()->sorted_set_options_ = const_cast< ::yb::SortedSetOptionsPB*>( |
5954 | 28.1k | ::yb::SortedSetOptionsPB::internal_default_instance()); |
5955 | 28.1k | } |
5956 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5957 | | const int RedisSetRequestPB::kExpectOkResponseFieldNumber; |
5958 | | const int RedisSetRequestPB::kTtlFieldNumber; |
5959 | | const int RedisSetRequestPB::kModeFieldNumber; |
5960 | | const int RedisSetRequestPB::kSortedSetOptionsFieldNumber; |
5961 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5962 | | |
5963 | | RedisSetRequestPB::RedisSetRequestPB() |
5964 | 194k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5965 | 194k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5966 | 166k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRequestPB(); |
5967 | 166k | } |
5968 | 194k | SharedCtor(); |
5969 | | // @@protoc_insertion_point(constructor:yb.RedisSetRequestPB) |
5970 | 194k | } |
5971 | | RedisSetRequestPB::RedisSetRequestPB(const RedisSetRequestPB& from) |
5972 | | : ::google::protobuf::Message(), |
5973 | | _internal_metadata_(NULL), |
5974 | | _has_bits_(from._has_bits_), |
5975 | 0 | _cached_size_(0) { |
5976 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5977 | 0 | if (from.has_sorted_set_options()) { |
5978 | 0 | sorted_set_options_ = new ::yb::SortedSetOptionsPB(*from.sorted_set_options_); |
5979 | 0 | } else { |
5980 | 0 | sorted_set_options_ = NULL; |
5981 | 0 | } |
5982 | 0 | ::memcpy(&expect_ok_response_, &from.expect_ok_response_, |
5983 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&ttl_) - |
5984 | 0 | reinterpret_cast<char*>(&expect_ok_response_)) + sizeof(ttl_)); |
5985 | | // @@protoc_insertion_point(copy_constructor:yb.RedisSetRequestPB) |
5986 | 0 | } |
5987 | | |
5988 | 194k | void RedisSetRequestPB::SharedCtor() { |
5989 | 194k | _cached_size_ = 0; |
5990 | 194k | ::memset(&sorted_set_options_, 0, static_cast<size_t>( |
5991 | 194k | reinterpret_cast<char*>(&expect_ok_response_) - |
5992 | 194k | reinterpret_cast<char*>(&sorted_set_options_)) + sizeof(expect_ok_response_)); |
5993 | 194k | mode_ = 1; |
5994 | 194k | ttl_ = GOOGLE_LONGLONG(-1); |
5995 | 194k | } |
5996 | | |
5997 | 166k | RedisSetRequestPB::~RedisSetRequestPB() { |
5998 | | // @@protoc_insertion_point(destructor:yb.RedisSetRequestPB) |
5999 | 166k | SharedDtor(); |
6000 | 166k | } |
6001 | | |
6002 | 166k | void RedisSetRequestPB::SharedDtor() { |
6003 | 166k | if (this != internal_default_instance()) delete sorted_set_options_; |
6004 | 166k | } |
6005 | | |
6006 | 0 | void RedisSetRequestPB::SetCachedSize(int size) const { |
6007 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6008 | 0 | _cached_size_ = size; |
6009 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6010 | 0 | } |
6011 | 0 | const ::google::protobuf::Descriptor* RedisSetRequestPB::descriptor() { |
6012 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6013 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6014 | 0 | } |
6015 | | |
6016 | 0 | const RedisSetRequestPB& RedisSetRequestPB::default_instance() { |
6017 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRequestPB(); |
6018 | 0 | return *internal_default_instance(); |
6019 | 0 | } |
6020 | | |
6021 | 0 | RedisSetRequestPB* RedisSetRequestPB::New(::google::protobuf::Arena* arena) const { |
6022 | 0 | RedisSetRequestPB* n = new RedisSetRequestPB; |
6023 | 0 | if (arena != NULL) { |
6024 | 0 | arena->Own(n); |
6025 | 0 | } |
6026 | 0 | return n; |
6027 | 0 | } |
6028 | | |
6029 | 0 | void RedisSetRequestPB::Clear() { |
6030 | | // @@protoc_insertion_point(message_clear_start:yb.RedisSetRequestPB) |
6031 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6032 | | // Prevent compiler warnings about cached_has_bits being unused |
6033 | 0 | (void) cached_has_bits; |
6034 | |
|
6035 | 0 | cached_has_bits = _has_bits_[0]; |
6036 | 0 | if (cached_has_bits & 0x00000001u) { |
6037 | 0 | GOOGLE_DCHECK(sorted_set_options_ != NULL); |
6038 | 0 | sorted_set_options_->Clear(); |
6039 | 0 | } |
6040 | 0 | if (cached_has_bits & 14u) { |
6041 | 0 | expect_ok_response_ = false; |
6042 | 0 | mode_ = 1; |
6043 | 0 | ttl_ = GOOGLE_LONGLONG(-1); |
6044 | 0 | } |
6045 | 0 | _has_bits_.Clear(); |
6046 | 0 | _internal_metadata_.Clear(); |
6047 | 0 | } |
6048 | | |
6049 | | bool RedisSetRequestPB::MergePartialFromCodedStream( |
6050 | 43.3k | ::google::protobuf::io::CodedInputStream* input) { |
6051 | 43.3k | #define DO_(EXPRESSION) if (18.3k !GOOGLE_PREDICT_TRUE18.3k (EXPRESSION)) goto failure0 |
6052 | 43.3k | ::google::protobuf::uint32 tag; |
6053 | | // @@protoc_insertion_point(parse_start:yb.RedisSetRequestPB) |
6054 | 61.6k | for (;;) { |
6055 | 61.6k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6056 | 61.6k | tag = p.first; |
6057 | 61.6k | if (!p.second) goto handle_unusual43.3k ; |
6058 | 18.3k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6059 | | // optional bool expect_ok_response = 1 [default = false]; |
6060 | 8.82k | case 1: { |
6061 | 8.82k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6062 | 8.82k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
6063 | 8.82k | set_has_expect_ok_response(); |
6064 | 8.82k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6065 | 8.82k | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
6066 | 8.82k | input, &expect_ok_response_))); |
6067 | 8.82k | } else { |
6068 | 0 | goto handle_unusual; |
6069 | 0 | } |
6070 | 8.82k | break; |
6071 | 8.82k | } |
6072 | | |
6073 | | // optional int64 ttl = 2 [default = -1]; |
6074 | 8.82k | case 2: { |
6075 | 44 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6076 | 44 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
6077 | 44 | set_has_ttl(); |
6078 | 44 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6079 | 44 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
6080 | 44 | input, &ttl_))); |
6081 | 44 | } else { |
6082 | 0 | goto handle_unusual; |
6083 | 0 | } |
6084 | 44 | break; |
6085 | 44 | } |
6086 | | |
6087 | | // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT]; |
6088 | 44 | case 3: { |
6089 | 40 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6090 | 40 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
6091 | 40 | int value; |
6092 | 40 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6093 | 40 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
6094 | 40 | input, &value))); |
6095 | 40 | if (::yb::RedisWriteMode_IsValid(value)) { |
6096 | 40 | set_mode(static_cast< ::yb::RedisWriteMode >(value)); |
6097 | 40 | } else { |
6098 | 0 | mutable_unknown_fields()->AddVarint( |
6099 | 0 | 3, static_cast< ::google::protobuf::uint64>(value)); |
6100 | 0 | } |
6101 | 40 | } else { |
6102 | 0 | goto handle_unusual; |
6103 | 0 | } |
6104 | 40 | break; |
6105 | 40 | } |
6106 | | |
6107 | | // optional .yb.SortedSetOptionsPB sorted_set_options = 14; |
6108 | 9.42k | case 14: { |
6109 | 9.42k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6110 | 9.42k | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
6111 | 9.42k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6112 | 9.42k | input, mutable_sorted_set_options())); |
6113 | 9.42k | } else { |
6114 | 0 | goto handle_unusual; |
6115 | 0 | } |
6116 | 9.42k | break; |
6117 | 9.42k | } |
6118 | | |
6119 | 9.42k | default: { |
6120 | 43.3k | handle_unusual: |
6121 | 43.3k | if (tag == 0) { |
6122 | 43.3k | goto success; |
6123 | 43.3k | } |
6124 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6125 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6126 | 0 | break; |
6127 | 0 | } |
6128 | 18.3k | } |
6129 | 18.3k | } |
6130 | 43.3k | success: |
6131 | | // @@protoc_insertion_point(parse_success:yb.RedisSetRequestPB) |
6132 | 43.3k | return true; |
6133 | 0 | failure: |
6134 | | // @@protoc_insertion_point(parse_failure:yb.RedisSetRequestPB) |
6135 | 0 | return false; |
6136 | 43.3k | #undef DO_ |
6137 | 43.3k | } |
6138 | | |
6139 | | void RedisSetRequestPB::SerializeWithCachedSizes( |
6140 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6141 | | // @@protoc_insertion_point(serialize_start:yb.RedisSetRequestPB) |
6142 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6143 | 0 | (void) cached_has_bits; |
6144 | |
|
6145 | 0 | cached_has_bits = _has_bits_[0]; |
6146 | | // optional bool expect_ok_response = 1 [default = false]; |
6147 | 0 | if (cached_has_bits & 0x00000002u) { |
6148 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->expect_ok_response(), output); |
6149 | 0 | } |
6150 | | |
6151 | | // optional int64 ttl = 2 [default = -1]; |
6152 | 0 | if (cached_has_bits & 0x00000008u) { |
6153 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->ttl(), output); |
6154 | 0 | } |
6155 | | |
6156 | | // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT]; |
6157 | 0 | if (cached_has_bits & 0x00000004u) { |
6158 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6159 | 0 | 3, this->mode(), output); |
6160 | 0 | } |
6161 | | |
6162 | | // optional .yb.SortedSetOptionsPB sorted_set_options = 14; |
6163 | 0 | if (cached_has_bits & 0x00000001u) { |
6164 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6165 | 0 | 14, *this->sorted_set_options_, output); |
6166 | 0 | } |
6167 | |
|
6168 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6169 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6170 | 0 | _internal_metadata_.unknown_fields(), output); |
6171 | 0 | } |
6172 | | // @@protoc_insertion_point(serialize_end:yb.RedisSetRequestPB) |
6173 | 0 | } |
6174 | | |
6175 | | ::google::protobuf::uint8* RedisSetRequestPB::InternalSerializeWithCachedSizesToArray( |
6176 | 43.3k | bool deterministic, ::google::protobuf::uint8* target) const { |
6177 | 43.3k | (void)deterministic; // Unused |
6178 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSetRequestPB) |
6179 | 43.3k | ::google::protobuf::uint32 cached_has_bits = 0; |
6180 | 43.3k | (void) cached_has_bits; |
6181 | | |
6182 | 43.3k | cached_has_bits = _has_bits_[0]; |
6183 | | // optional bool expect_ok_response = 1 [default = false]; |
6184 | 43.3k | if (cached_has_bits & 0x00000002u) { |
6185 | 8.82k | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->expect_ok_response(), target); |
6186 | 8.82k | } |
6187 | | |
6188 | | // optional int64 ttl = 2 [default = -1]; |
6189 | 43.3k | if (cached_has_bits & 0x00000008u) { |
6190 | 44 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->ttl(), target); |
6191 | 44 | } |
6192 | | |
6193 | | // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT]; |
6194 | 43.3k | if (cached_has_bits & 0x00000004u) { |
6195 | 40 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
6196 | 40 | 3, this->mode(), target); |
6197 | 40 | } |
6198 | | |
6199 | | // optional .yb.SortedSetOptionsPB sorted_set_options = 14; |
6200 | 43.3k | if (cached_has_bits & 0x00000001u) { |
6201 | 9.42k | target = ::google::protobuf::internal::WireFormatLite:: |
6202 | 9.42k | InternalWriteMessageToArray( |
6203 | 9.42k | 14, *this->sorted_set_options_, deterministic, target); |
6204 | 9.42k | } |
6205 | | |
6206 | 43.3k | if (_internal_metadata_.have_unknown_fields()) { |
6207 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6208 | 0 | _internal_metadata_.unknown_fields(), target); |
6209 | 0 | } |
6210 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisSetRequestPB) |
6211 | 43.3k | return target; |
6212 | 43.3k | } |
6213 | | |
6214 | 209k | size_t RedisSetRequestPB::ByteSizeLong() const { |
6215 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisSetRequestPB) |
6216 | 209k | size_t total_size = 0; |
6217 | | |
6218 | 209k | if (_internal_metadata_.have_unknown_fields()) { |
6219 | 0 | total_size += |
6220 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6221 | 0 | _internal_metadata_.unknown_fields()); |
6222 | 0 | } |
6223 | 209k | if (_has_bits_[0 / 32] & 15u) { |
6224 | | // optional .yb.SortedSetOptionsPB sorted_set_options = 14; |
6225 | 77.7k | if (has_sorted_set_options()) { |
6226 | 39.9k | total_size += 1 + |
6227 | 39.9k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6228 | 39.9k | *this->sorted_set_options_); |
6229 | 39.9k | } |
6230 | | |
6231 | | // optional bool expect_ok_response = 1 [default = false]; |
6232 | 77.7k | if (has_expect_ok_response()) { |
6233 | 37.4k | total_size += 1 + 1; |
6234 | 37.4k | } |
6235 | | |
6236 | | // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT]; |
6237 | 77.7k | if (has_mode()) { |
6238 | 160 | total_size += 1 + |
6239 | 160 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); |
6240 | 160 | } |
6241 | | |
6242 | | // optional int64 ttl = 2 [default = -1]; |
6243 | 77.7k | if (has_ttl()) { |
6244 | 176 | total_size += 1 + |
6245 | 176 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
6246 | 176 | this->ttl()); |
6247 | 176 | } |
6248 | | |
6249 | 77.7k | } |
6250 | 209k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6251 | 209k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6252 | 209k | _cached_size_ = cached_size; |
6253 | 209k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6254 | 209k | return total_size; |
6255 | 209k | } |
6256 | | |
6257 | 0 | void RedisSetRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6258 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisSetRequestPB) |
6259 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6260 | 0 | const RedisSetRequestPB* source = |
6261 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisSetRequestPB>( |
6262 | 0 | &from); |
6263 | 0 | if (source == NULL) { |
6264 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisSetRequestPB) |
6265 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6266 | 0 | } else { |
6267 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisSetRequestPB) |
6268 | 0 | MergeFrom(*source); |
6269 | 0 | } |
6270 | 0 | } |
6271 | | |
6272 | 0 | void RedisSetRequestPB::MergeFrom(const RedisSetRequestPB& from) { |
6273 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisSetRequestPB) |
6274 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6275 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6276 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6277 | 0 | (void) cached_has_bits; |
6278 | |
|
6279 | 0 | cached_has_bits = from._has_bits_[0]; |
6280 | 0 | if (cached_has_bits & 15u) { |
6281 | 0 | if (cached_has_bits & 0x00000001u) { |
6282 | 0 | mutable_sorted_set_options()->::yb::SortedSetOptionsPB::MergeFrom(from.sorted_set_options()); |
6283 | 0 | } |
6284 | 0 | if (cached_has_bits & 0x00000002u) { |
6285 | 0 | expect_ok_response_ = from.expect_ok_response_; |
6286 | 0 | } |
6287 | 0 | if (cached_has_bits & 0x00000004u) { |
6288 | 0 | mode_ = from.mode_; |
6289 | 0 | } |
6290 | 0 | if (cached_has_bits & 0x00000008u) { |
6291 | 0 | ttl_ = from.ttl_; |
6292 | 0 | } |
6293 | 0 | _has_bits_[0] |= cached_has_bits; |
6294 | 0 | } |
6295 | 0 | } |
6296 | | |
6297 | 0 | void RedisSetRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6298 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisSetRequestPB) |
6299 | 0 | if (&from == this) return; |
6300 | 0 | Clear(); |
6301 | 0 | MergeFrom(from); |
6302 | 0 | } |
6303 | | |
6304 | 0 | void RedisSetRequestPB::CopyFrom(const RedisSetRequestPB& from) { |
6305 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisSetRequestPB) |
6306 | 0 | if (&from == this) return; |
6307 | 0 | Clear(); |
6308 | 0 | MergeFrom(from); |
6309 | 0 | } |
6310 | | |
6311 | 0 | bool RedisSetRequestPB::IsInitialized() const { |
6312 | 0 | return true; |
6313 | 0 | } |
6314 | | |
6315 | 0 | void RedisSetRequestPB::Swap(RedisSetRequestPB* other) { |
6316 | 0 | if (other == this) return; |
6317 | 0 | InternalSwap(other); |
6318 | 0 | } |
6319 | 0 | void RedisSetRequestPB::InternalSwap(RedisSetRequestPB* other) { |
6320 | 0 | using std::swap; |
6321 | 0 | swap(sorted_set_options_, other->sorted_set_options_); |
6322 | 0 | swap(expect_ok_response_, other->expect_ok_response_); |
6323 | 0 | swap(mode_, other->mode_); |
6324 | 0 | swap(ttl_, other->ttl_); |
6325 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6326 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6327 | 0 | swap(_cached_size_, other->_cached_size_); |
6328 | 0 | } |
6329 | | |
6330 | 43.3k | ::google::protobuf::Metadata RedisSetRequestPB::GetMetadata() const { |
6331 | 43.3k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6332 | 43.3k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
6333 | 43.3k | } |
6334 | | |
6335 | | |
6336 | | // =================================================================== |
6337 | | |
6338 | 28.1k | void RedisGetRequestPB::InitAsDefaultInstance() { |
6339 | 28.1k | } |
6340 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6341 | | const int RedisGetRequestPB::kRequestTypeFieldNumber; |
6342 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6343 | | |
6344 | | RedisGetRequestPB::RedisGetRequestPB() |
6345 | 188k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6346 | 188k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6347 | 160k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRequestPB(); |
6348 | 160k | } |
6349 | 188k | SharedCtor(); |
6350 | | // @@protoc_insertion_point(constructor:yb.RedisGetRequestPB) |
6351 | 188k | } |
6352 | | RedisGetRequestPB::RedisGetRequestPB(const RedisGetRequestPB& from) |
6353 | | : ::google::protobuf::Message(), |
6354 | | _internal_metadata_(NULL), |
6355 | | _has_bits_(from._has_bits_), |
6356 | 0 | _cached_size_(0) { |
6357 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6358 | 0 | request_type_ = from.request_type_; |
6359 | | // @@protoc_insertion_point(copy_constructor:yb.RedisGetRequestPB) |
6360 | 0 | } |
6361 | | |
6362 | 188k | void RedisGetRequestPB::SharedCtor() { |
6363 | 188k | _cached_size_ = 0; |
6364 | 188k | request_type_ = 1; |
6365 | 188k | } |
6366 | | |
6367 | 160k | RedisGetRequestPB::~RedisGetRequestPB() { |
6368 | | // @@protoc_insertion_point(destructor:yb.RedisGetRequestPB) |
6369 | 160k | SharedDtor(); |
6370 | 160k | } |
6371 | | |
6372 | 160k | void RedisGetRequestPB::SharedDtor() { |
6373 | 160k | } |
6374 | | |
6375 | 0 | void RedisGetRequestPB::SetCachedSize(int size) const { |
6376 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6377 | 0 | _cached_size_ = size; |
6378 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6379 | 0 | } |
6380 | 0 | const ::google::protobuf::Descriptor* RedisGetRequestPB::descriptor() { |
6381 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6382 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6383 | 0 | } |
6384 | | |
6385 | 0 | const RedisGetRequestPB& RedisGetRequestPB::default_instance() { |
6386 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRequestPB(); |
6387 | 0 | return *internal_default_instance(); |
6388 | 0 | } |
6389 | | |
6390 | 0 | RedisGetRequestPB* RedisGetRequestPB::New(::google::protobuf::Arena* arena) const { |
6391 | 0 | RedisGetRequestPB* n = new RedisGetRequestPB; |
6392 | 0 | if (arena != NULL) { |
6393 | 0 | arena->Own(n); |
6394 | 0 | } |
6395 | 0 | return n; |
6396 | 0 | } |
6397 | | |
6398 | 0 | void RedisGetRequestPB::Clear() { |
6399 | | // @@protoc_insertion_point(message_clear_start:yb.RedisGetRequestPB) |
6400 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6401 | | // Prevent compiler warnings about cached_has_bits being unused |
6402 | 0 | (void) cached_has_bits; |
6403 | |
|
6404 | 0 | request_type_ = 1; |
6405 | 0 | _has_bits_.Clear(); |
6406 | 0 | _internal_metadata_.Clear(); |
6407 | 0 | } |
6408 | | |
6409 | | bool RedisGetRequestPB::MergePartialFromCodedStream( |
6410 | 15.0k | ::google::protobuf::io::CodedInputStream* input) { |
6411 | 15.0k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
6412 | 15.0k | ::google::protobuf::uint32 tag; |
6413 | | // @@protoc_insertion_point(parse_start:yb.RedisGetRequestPB) |
6414 | 30.0k | for (;;) { |
6415 | 30.0k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6416 | 30.0k | tag = p.first; |
6417 | 30.0k | if (!p.second) goto handle_unusual15.0k ; |
6418 | 15.0k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6419 | | // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET]; |
6420 | 15.0k | case 1: { |
6421 | 15.0k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6422 | 15.0k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
6423 | 15.0k | int value; |
6424 | 15.0k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6425 | 15.0k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
6426 | 15.0k | input, &value))); |
6427 | 15.0k | if (::yb::RedisGetRequestPB_GetRequestType_IsValid(value)) { |
6428 | 15.0k | set_request_type(static_cast< ::yb::RedisGetRequestPB_GetRequestType >(value)); |
6429 | 15.0k | } else { |
6430 | 0 | mutable_unknown_fields()->AddVarint( |
6431 | 0 | 1, static_cast< ::google::protobuf::uint64>(value)); |
6432 | 0 | } |
6433 | 15.0k | } else { |
6434 | 0 | goto handle_unusual; |
6435 | 0 | } |
6436 | 15.0k | break; |
6437 | 15.0k | } |
6438 | | |
6439 | 15.0k | default: { |
6440 | 15.0k | handle_unusual: |
6441 | 15.0k | if (tag == 0) { |
6442 | 15.0k | goto success; |
6443 | 15.0k | } |
6444 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6445 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6446 | 0 | break; |
6447 | 0 | } |
6448 | 15.0k | } |
6449 | 15.0k | } |
6450 | 15.0k | success: |
6451 | | // @@protoc_insertion_point(parse_success:yb.RedisGetRequestPB) |
6452 | 15.0k | return true; |
6453 | 0 | failure: |
6454 | | // @@protoc_insertion_point(parse_failure:yb.RedisGetRequestPB) |
6455 | 0 | return false; |
6456 | 15.0k | #undef DO_ |
6457 | 15.0k | } |
6458 | | |
6459 | | void RedisGetRequestPB::SerializeWithCachedSizes( |
6460 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6461 | | // @@protoc_insertion_point(serialize_start:yb.RedisGetRequestPB) |
6462 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6463 | 0 | (void) cached_has_bits; |
6464 | |
|
6465 | 0 | cached_has_bits = _has_bits_[0]; |
6466 | | // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET]; |
6467 | 0 | if (cached_has_bits & 0x00000001u) { |
6468 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6469 | 0 | 1, this->request_type(), output); |
6470 | 0 | } |
6471 | |
|
6472 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6473 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6474 | 0 | _internal_metadata_.unknown_fields(), output); |
6475 | 0 | } |
6476 | | // @@protoc_insertion_point(serialize_end:yb.RedisGetRequestPB) |
6477 | 0 | } |
6478 | | |
6479 | | ::google::protobuf::uint8* RedisGetRequestPB::InternalSerializeWithCachedSizesToArray( |
6480 | 15.0k | bool deterministic, ::google::protobuf::uint8* target) const { |
6481 | 15.0k | (void)deterministic; // Unused |
6482 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetRequestPB) |
6483 | 15.0k | ::google::protobuf::uint32 cached_has_bits = 0; |
6484 | 15.0k | (void) cached_has_bits; |
6485 | | |
6486 | 15.0k | cached_has_bits = _has_bits_[0]; |
6487 | | // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET]; |
6488 | 15.0k | if (cached_has_bits & 0x00000001u) { |
6489 | 15.0k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
6490 | 15.0k | 1, this->request_type(), target); |
6491 | 15.0k | } |
6492 | | |
6493 | 15.0k | if (_internal_metadata_.have_unknown_fields()) { |
6494 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6495 | 0 | _internal_metadata_.unknown_fields(), target); |
6496 | 0 | } |
6497 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisGetRequestPB) |
6498 | 15.0k | return target; |
6499 | 15.0k | } |
6500 | | |
6501 | 30.1k | size_t RedisGetRequestPB::ByteSizeLong() const { |
6502 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisGetRequestPB) |
6503 | 30.1k | size_t total_size = 0; |
6504 | | |
6505 | 30.1k | if (_internal_metadata_.have_unknown_fields()) { |
6506 | 0 | total_size += |
6507 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6508 | 0 | _internal_metadata_.unknown_fields()); |
6509 | 0 | } |
6510 | | // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET]; |
6511 | 30.1k | if (has_request_type()) { |
6512 | 30.1k | total_size += 1 + |
6513 | 30.1k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type()); |
6514 | 30.1k | } |
6515 | | |
6516 | 30.1k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6517 | 30.1k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6518 | 30.1k | _cached_size_ = cached_size; |
6519 | 30.1k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6520 | 30.1k | return total_size; |
6521 | 30.1k | } |
6522 | | |
6523 | 0 | void RedisGetRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6524 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisGetRequestPB) |
6525 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6526 | 0 | const RedisGetRequestPB* source = |
6527 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisGetRequestPB>( |
6528 | 0 | &from); |
6529 | 0 | if (source == NULL) { |
6530 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisGetRequestPB) |
6531 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6532 | 0 | } else { |
6533 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisGetRequestPB) |
6534 | 0 | MergeFrom(*source); |
6535 | 0 | } |
6536 | 0 | } |
6537 | | |
6538 | 72.6k | void RedisGetRequestPB::MergeFrom(const RedisGetRequestPB& from) { |
6539 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetRequestPB) |
6540 | 72.6k | GOOGLE_DCHECK_NE(&from, this); |
6541 | 72.6k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6542 | 72.6k | ::google::protobuf::uint32 cached_has_bits = 0; |
6543 | 72.6k | (void) cached_has_bits; |
6544 | | |
6545 | 72.6k | if (from.has_request_type()) { |
6546 | 72.6k | set_request_type(from.request_type()); |
6547 | 72.6k | } |
6548 | 72.6k | } |
6549 | | |
6550 | 0 | void RedisGetRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6551 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisGetRequestPB) |
6552 | 0 | if (&from == this) return; |
6553 | 0 | Clear(); |
6554 | 0 | MergeFrom(from); |
6555 | 0 | } |
6556 | | |
6557 | 0 | void RedisGetRequestPB::CopyFrom(const RedisGetRequestPB& from) { |
6558 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisGetRequestPB) |
6559 | 0 | if (&from == this) return; |
6560 | 0 | Clear(); |
6561 | 0 | MergeFrom(from); |
6562 | 0 | } |
6563 | | |
6564 | 0 | bool RedisGetRequestPB::IsInitialized() const { |
6565 | 0 | return true; |
6566 | 0 | } |
6567 | | |
6568 | 0 | void RedisGetRequestPB::Swap(RedisGetRequestPB* other) { |
6569 | 0 | if (other == this) return; |
6570 | 0 | InternalSwap(other); |
6571 | 0 | } |
6572 | 0 | void RedisGetRequestPB::InternalSwap(RedisGetRequestPB* other) { |
6573 | 0 | using std::swap; |
6574 | 0 | swap(request_type_, other->request_type_); |
6575 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6576 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6577 | 0 | swap(_cached_size_, other->_cached_size_); |
6578 | 0 | } |
6579 | | |
6580 | 88.3k | ::google::protobuf::Metadata RedisGetRequestPB::GetMetadata() const { |
6581 | 88.3k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6582 | 88.3k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
6583 | 88.3k | } |
6584 | | |
6585 | | |
6586 | | // =================================================================== |
6587 | | |
6588 | 28.1k | void RedisCollectionGetRangeRequestPB::InitAsDefaultInstance() { |
6589 | 28.1k | } |
6590 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6591 | | const int RedisCollectionGetRangeRequestPB::kRequestTypeFieldNumber; |
6592 | | const int RedisCollectionGetRangeRequestPB::kWithScoresFieldNumber; |
6593 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6594 | | |
6595 | | RedisCollectionGetRangeRequestPB::RedisCollectionGetRangeRequestPB() |
6596 | 54.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6597 | 54.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6598 | 26.6k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisCollectionGetRangeRequestPB(); |
6599 | 26.6k | } |
6600 | 54.8k | SharedCtor(); |
6601 | | // @@protoc_insertion_point(constructor:yb.RedisCollectionGetRangeRequestPB) |
6602 | 54.8k | } |
6603 | | RedisCollectionGetRangeRequestPB::RedisCollectionGetRangeRequestPB(const RedisCollectionGetRangeRequestPB& from) |
6604 | | : ::google::protobuf::Message(), |
6605 | | _internal_metadata_(NULL), |
6606 | | _has_bits_(from._has_bits_), |
6607 | 0 | _cached_size_(0) { |
6608 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6609 | 0 | ::memcpy(&with_scores_, &from.with_scores_, |
6610 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&request_type_) - |
6611 | 0 | reinterpret_cast<char*>(&with_scores_)) + sizeof(request_type_)); |
6612 | | // @@protoc_insertion_point(copy_constructor:yb.RedisCollectionGetRangeRequestPB) |
6613 | 0 | } |
6614 | | |
6615 | 54.8k | void RedisCollectionGetRangeRequestPB::SharedCtor() { |
6616 | 54.8k | _cached_size_ = 0; |
6617 | 54.8k | with_scores_ = false; |
6618 | 54.8k | request_type_ = 1; |
6619 | 54.8k | } |
6620 | | |
6621 | 26.6k | RedisCollectionGetRangeRequestPB::~RedisCollectionGetRangeRequestPB() { |
6622 | | // @@protoc_insertion_point(destructor:yb.RedisCollectionGetRangeRequestPB) |
6623 | 26.6k | SharedDtor(); |
6624 | 26.6k | } |
6625 | | |
6626 | 26.6k | void RedisCollectionGetRangeRequestPB::SharedDtor() { |
6627 | 26.6k | } |
6628 | | |
6629 | 0 | void RedisCollectionGetRangeRequestPB::SetCachedSize(int size) const { |
6630 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6631 | 0 | _cached_size_ = size; |
6632 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6633 | 0 | } |
6634 | 0 | const ::google::protobuf::Descriptor* RedisCollectionGetRangeRequestPB::descriptor() { |
6635 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6636 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6637 | 0 | } |
6638 | | |
6639 | 0 | const RedisCollectionGetRangeRequestPB& RedisCollectionGetRangeRequestPB::default_instance() { |
6640 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisCollectionGetRangeRequestPB(); |
6641 | 0 | return *internal_default_instance(); |
6642 | 0 | } |
6643 | | |
6644 | 0 | RedisCollectionGetRangeRequestPB* RedisCollectionGetRangeRequestPB::New(::google::protobuf::Arena* arena) const { |
6645 | 0 | RedisCollectionGetRangeRequestPB* n = new RedisCollectionGetRangeRequestPB; |
6646 | 0 | if (arena != NULL) { |
6647 | 0 | arena->Own(n); |
6648 | 0 | } |
6649 | 0 | return n; |
6650 | 0 | } |
6651 | | |
6652 | 0 | void RedisCollectionGetRangeRequestPB::Clear() { |
6653 | | // @@protoc_insertion_point(message_clear_start:yb.RedisCollectionGetRangeRequestPB) |
6654 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6655 | | // Prevent compiler warnings about cached_has_bits being unused |
6656 | 0 | (void) cached_has_bits; |
6657 | |
|
6658 | 0 | cached_has_bits = _has_bits_[0]; |
6659 | 0 | if (cached_has_bits & 3u) { |
6660 | 0 | with_scores_ = false; |
6661 | 0 | request_type_ = 1; |
6662 | 0 | } |
6663 | 0 | _has_bits_.Clear(); |
6664 | 0 | _internal_metadata_.Clear(); |
6665 | 0 | } |
6666 | | |
6667 | | bool RedisCollectionGetRangeRequestPB::MergePartialFromCodedStream( |
6668 | 4.69k | ::google::protobuf::io::CodedInputStream* input) { |
6669 | 4.72k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
6670 | 4.69k | ::google::protobuf::uint32 tag; |
6671 | | // @@protoc_insertion_point(parse_start:yb.RedisCollectionGetRangeRequestPB) |
6672 | 9.41k | for (;;) { |
6673 | 9.41k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6674 | 9.41k | tag = p.first; |
6675 | 9.41k | if (!p.second) goto handle_unusual4.69k ; |
6676 | 4.72k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6677 | | // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME]; |
6678 | 4.69k | case 1: { |
6679 | 4.69k | if (static_cast< ::google::protobuf::uint8>(tag) == |
6680 | 4.69k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
6681 | 4.69k | int value; |
6682 | 4.69k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6683 | 4.69k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
6684 | 4.69k | input, &value))); |
6685 | 4.69k | if (::yb::RedisCollectionGetRangeRequestPB_GetRangeRequestType_IsValid(value)) { |
6686 | 4.69k | set_request_type(static_cast< ::yb::RedisCollectionGetRangeRequestPB_GetRangeRequestType >(value)); |
6687 | 4.69k | } else { |
6688 | 0 | mutable_unknown_fields()->AddVarint( |
6689 | 0 | 1, static_cast< ::google::protobuf::uint64>(value)); |
6690 | 0 | } |
6691 | 4.69k | } else { |
6692 | 0 | goto handle_unusual; |
6693 | 0 | } |
6694 | 4.69k | break; |
6695 | 4.69k | } |
6696 | | |
6697 | | // optional bool with_scores = 2 [default = false]; |
6698 | 4.69k | case 2: { |
6699 | 21 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6700 | 21 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
6701 | 21 | set_has_with_scores(); |
6702 | 21 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
6703 | 21 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
6704 | 21 | input, &with_scores_))); |
6705 | 21 | } else { |
6706 | 0 | goto handle_unusual; |
6707 | 0 | } |
6708 | 21 | break; |
6709 | 21 | } |
6710 | | |
6711 | 21 | default: { |
6712 | 4.69k | handle_unusual: |
6713 | 4.69k | if (tag == 0) { |
6714 | 4.69k | goto success; |
6715 | 4.69k | } |
6716 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6717 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6718 | 0 | break; |
6719 | 0 | } |
6720 | 4.72k | } |
6721 | 4.72k | } |
6722 | 4.69k | success: |
6723 | | // @@protoc_insertion_point(parse_success:yb.RedisCollectionGetRangeRequestPB) |
6724 | 4.69k | return true; |
6725 | 0 | failure: |
6726 | | // @@protoc_insertion_point(parse_failure:yb.RedisCollectionGetRangeRequestPB) |
6727 | 0 | return false; |
6728 | 4.69k | #undef DO_ |
6729 | 4.69k | } |
6730 | | |
6731 | | void RedisCollectionGetRangeRequestPB::SerializeWithCachedSizes( |
6732 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6733 | | // @@protoc_insertion_point(serialize_start:yb.RedisCollectionGetRangeRequestPB) |
6734 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6735 | 0 | (void) cached_has_bits; |
6736 | |
|
6737 | 0 | cached_has_bits = _has_bits_[0]; |
6738 | | // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME]; |
6739 | 0 | if (cached_has_bits & 0x00000002u) { |
6740 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6741 | 0 | 1, this->request_type(), output); |
6742 | 0 | } |
6743 | | |
6744 | | // optional bool with_scores = 2 [default = false]; |
6745 | 0 | if (cached_has_bits & 0x00000001u) { |
6746 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->with_scores(), output); |
6747 | 0 | } |
6748 | |
|
6749 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6750 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6751 | 0 | _internal_metadata_.unknown_fields(), output); |
6752 | 0 | } |
6753 | | // @@protoc_insertion_point(serialize_end:yb.RedisCollectionGetRangeRequestPB) |
6754 | 0 | } |
6755 | | |
6756 | | ::google::protobuf::uint8* RedisCollectionGetRangeRequestPB::InternalSerializeWithCachedSizesToArray( |
6757 | 4.69k | bool deterministic, ::google::protobuf::uint8* target) const { |
6758 | 4.69k | (void)deterministic; // Unused |
6759 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisCollectionGetRangeRequestPB) |
6760 | 4.69k | ::google::protobuf::uint32 cached_has_bits = 0; |
6761 | 4.69k | (void) cached_has_bits; |
6762 | | |
6763 | 4.69k | cached_has_bits = _has_bits_[0]; |
6764 | | // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME]; |
6765 | 4.69k | if (cached_has_bits & 0x00000002u) { |
6766 | 4.69k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
6767 | 4.69k | 1, this->request_type(), target); |
6768 | 4.69k | } |
6769 | | |
6770 | | // optional bool with_scores = 2 [default = false]; |
6771 | 4.69k | if (cached_has_bits & 0x00000001u) { |
6772 | 21 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->with_scores(), target); |
6773 | 21 | } |
6774 | | |
6775 | 4.69k | if (_internal_metadata_.have_unknown_fields()) { |
6776 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6777 | 0 | _internal_metadata_.unknown_fields(), target); |
6778 | 0 | } |
6779 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisCollectionGetRangeRequestPB) |
6780 | 4.69k | return target; |
6781 | 4.69k | } |
6782 | | |
6783 | 9.39k | size_t RedisCollectionGetRangeRequestPB::ByteSizeLong() const { |
6784 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisCollectionGetRangeRequestPB) |
6785 | 9.39k | size_t total_size = 0; |
6786 | | |
6787 | 9.39k | if (_internal_metadata_.have_unknown_fields()) { |
6788 | 0 | total_size += |
6789 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6790 | 0 | _internal_metadata_.unknown_fields()); |
6791 | 0 | } |
6792 | 9.39k | if (_has_bits_[0 / 32] & 3u) { |
6793 | | // optional bool with_scores = 2 [default = false]; |
6794 | 9.39k | if (has_with_scores()) { |
6795 | 42 | total_size += 1 + 1; |
6796 | 42 | } |
6797 | | |
6798 | | // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME]; |
6799 | 9.39k | if (has_request_type()) { |
6800 | 9.39k | total_size += 1 + |
6801 | 9.39k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type()); |
6802 | 9.39k | } |
6803 | | |
6804 | 9.39k | } |
6805 | 9.39k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6806 | 9.39k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6807 | 9.39k | _cached_size_ = cached_size; |
6808 | 9.39k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6809 | 9.39k | return total_size; |
6810 | 9.39k | } |
6811 | | |
6812 | 0 | void RedisCollectionGetRangeRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
6813 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisCollectionGetRangeRequestPB) |
6814 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6815 | 0 | const RedisCollectionGetRangeRequestPB* source = |
6816 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisCollectionGetRangeRequestPB>( |
6817 | 0 | &from); |
6818 | 0 | if (source == NULL) { |
6819 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisCollectionGetRangeRequestPB) |
6820 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6821 | 0 | } else { |
6822 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisCollectionGetRangeRequestPB) |
6823 | 0 | MergeFrom(*source); |
6824 | 0 | } |
6825 | 0 | } |
6826 | | |
6827 | 10.9k | void RedisCollectionGetRangeRequestPB::MergeFrom(const RedisCollectionGetRangeRequestPB& from) { |
6828 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisCollectionGetRangeRequestPB) |
6829 | 10.9k | GOOGLE_DCHECK_NE(&from, this); |
6830 | 10.9k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6831 | 10.9k | ::google::protobuf::uint32 cached_has_bits = 0; |
6832 | 10.9k | (void) cached_has_bits; |
6833 | | |
6834 | 10.9k | cached_has_bits = from._has_bits_[0]; |
6835 | 10.9k | if (cached_has_bits & 3u) { |
6836 | 10.9k | if (cached_has_bits & 0x00000001u) { |
6837 | 32 | with_scores_ = from.with_scores_; |
6838 | 32 | } |
6839 | 10.9k | if (cached_has_bits & 0x00000002u) { |
6840 | 10.9k | request_type_ = from.request_type_; |
6841 | 10.9k | } |
6842 | 10.9k | _has_bits_[0] |= cached_has_bits; |
6843 | 10.9k | } |
6844 | 10.9k | } |
6845 | | |
6846 | 0 | void RedisCollectionGetRangeRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
6847 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisCollectionGetRangeRequestPB) |
6848 | 0 | if (&from == this) return; |
6849 | 0 | Clear(); |
6850 | 0 | MergeFrom(from); |
6851 | 0 | } |
6852 | | |
6853 | 0 | void RedisCollectionGetRangeRequestPB::CopyFrom(const RedisCollectionGetRangeRequestPB& from) { |
6854 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisCollectionGetRangeRequestPB) |
6855 | 0 | if (&from == this) return; |
6856 | 0 | Clear(); |
6857 | 0 | MergeFrom(from); |
6858 | 0 | } |
6859 | | |
6860 | 0 | bool RedisCollectionGetRangeRequestPB::IsInitialized() const { |
6861 | 0 | return true; |
6862 | 0 | } |
6863 | | |
6864 | 0 | void RedisCollectionGetRangeRequestPB::Swap(RedisCollectionGetRangeRequestPB* other) { |
6865 | 0 | if (other == this) return; |
6866 | 0 | InternalSwap(other); |
6867 | 0 | } |
6868 | 0 | void RedisCollectionGetRangeRequestPB::InternalSwap(RedisCollectionGetRangeRequestPB* other) { |
6869 | 0 | using std::swap; |
6870 | 0 | swap(with_scores_, other->with_scores_); |
6871 | 0 | swap(request_type_, other->request_type_); |
6872 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6873 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6874 | 0 | swap(_cached_size_, other->_cached_size_); |
6875 | 0 | } |
6876 | | |
6877 | 15.6k | ::google::protobuf::Metadata RedisCollectionGetRangeRequestPB::GetMetadata() const { |
6878 | 15.6k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6879 | 15.6k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
6880 | 15.6k | } |
6881 | | |
6882 | | |
6883 | | // =================================================================== |
6884 | | |
6885 | 28.1k | void RedisNoOpRequestPB::InitAsDefaultInstance() { |
6886 | 28.1k | } |
6887 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
6888 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
6889 | | |
6890 | | RedisNoOpRequestPB::RedisNoOpRequestPB() |
6891 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
6892 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
6893 | 9 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisNoOpRequestPB(); |
6894 | 9 | } |
6895 | 28.1k | SharedCtor(); |
6896 | | // @@protoc_insertion_point(constructor:yb.RedisNoOpRequestPB) |
6897 | 28.1k | } |
6898 | | RedisNoOpRequestPB::RedisNoOpRequestPB(const RedisNoOpRequestPB& from) |
6899 | | : ::google::protobuf::Message(), |
6900 | | _internal_metadata_(NULL), |
6901 | | _has_bits_(from._has_bits_), |
6902 | 0 | _cached_size_(0) { |
6903 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6904 | | // @@protoc_insertion_point(copy_constructor:yb.RedisNoOpRequestPB) |
6905 | 0 | } |
6906 | | |
6907 | 28.1k | void RedisNoOpRequestPB::SharedCtor() { |
6908 | 28.1k | _cached_size_ = 0; |
6909 | 28.1k | } |
6910 | | |
6911 | 9 | RedisNoOpRequestPB::~RedisNoOpRequestPB() { |
6912 | | // @@protoc_insertion_point(destructor:yb.RedisNoOpRequestPB) |
6913 | 9 | SharedDtor(); |
6914 | 9 | } |
6915 | | |
6916 | 9 | void RedisNoOpRequestPB::SharedDtor() { |
6917 | 9 | } |
6918 | | |
6919 | 0 | void RedisNoOpRequestPB::SetCachedSize(int size) const { |
6920 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6921 | 0 | _cached_size_ = size; |
6922 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6923 | 0 | } |
6924 | 0 | const ::google::protobuf::Descriptor* RedisNoOpRequestPB::descriptor() { |
6925 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
6926 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
6927 | 0 | } |
6928 | | |
6929 | 0 | const RedisNoOpRequestPB& RedisNoOpRequestPB::default_instance() { |
6930 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisNoOpRequestPB(); |
6931 | 0 | return *internal_default_instance(); |
6932 | 0 | } |
6933 | | |
6934 | 0 | RedisNoOpRequestPB* RedisNoOpRequestPB::New(::google::protobuf::Arena* arena) const { |
6935 | 0 | RedisNoOpRequestPB* n = new RedisNoOpRequestPB; |
6936 | 0 | if (arena != NULL) { |
6937 | 0 | arena->Own(n); |
6938 | 0 | } |
6939 | 0 | return n; |
6940 | 0 | } |
6941 | | |
6942 | 0 | void RedisNoOpRequestPB::Clear() { |
6943 | | // @@protoc_insertion_point(message_clear_start:yb.RedisNoOpRequestPB) |
6944 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6945 | | // Prevent compiler warnings about cached_has_bits being unused |
6946 | 0 | (void) cached_has_bits; |
6947 | |
|
6948 | 0 | _has_bits_.Clear(); |
6949 | 0 | _internal_metadata_.Clear(); |
6950 | 0 | } |
6951 | | |
6952 | | bool RedisNoOpRequestPB::MergePartialFromCodedStream( |
6953 | 3 | ::google::protobuf::io::CodedInputStream* input) { |
6954 | 3 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
6955 | 3 | ::google::protobuf::uint32 tag; |
6956 | | // @@protoc_insertion_point(parse_start:yb.RedisNoOpRequestPB) |
6957 | 3 | for (;;) { |
6958 | 3 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6959 | 3 | tag = p.first; |
6960 | 3 | if (!p.second) goto handle_unusual; |
6961 | 3 | handle_unusual: |
6962 | 3 | if (tag == 0) { |
6963 | 3 | goto success; |
6964 | 3 | } |
6965 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6966 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6967 | 0 | } |
6968 | 3 | success: |
6969 | | // @@protoc_insertion_point(parse_success:yb.RedisNoOpRequestPB) |
6970 | 3 | return true; |
6971 | 0 | failure: |
6972 | | // @@protoc_insertion_point(parse_failure:yb.RedisNoOpRequestPB) |
6973 | 0 | return false; |
6974 | 3 | #undef DO_ |
6975 | 3 | } |
6976 | | |
6977 | | void RedisNoOpRequestPB::SerializeWithCachedSizes( |
6978 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6979 | | // @@protoc_insertion_point(serialize_start:yb.RedisNoOpRequestPB) |
6980 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6981 | 0 | (void) cached_has_bits; |
6982 | |
|
6983 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
6984 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6985 | 0 | _internal_metadata_.unknown_fields(), output); |
6986 | 0 | } |
6987 | | // @@protoc_insertion_point(serialize_end:yb.RedisNoOpRequestPB) |
6988 | 0 | } |
6989 | | |
6990 | | ::google::protobuf::uint8* RedisNoOpRequestPB::InternalSerializeWithCachedSizesToArray( |
6991 | 3 | bool deterministic, ::google::protobuf::uint8* target) const { |
6992 | 3 | (void)deterministic; // Unused |
6993 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisNoOpRequestPB) |
6994 | 3 | ::google::protobuf::uint32 cached_has_bits = 0; |
6995 | 3 | (void) cached_has_bits; |
6996 | | |
6997 | 3 | if (_internal_metadata_.have_unknown_fields()) { |
6998 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6999 | 0 | _internal_metadata_.unknown_fields(), target); |
7000 | 0 | } |
7001 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisNoOpRequestPB) |
7002 | 3 | return target; |
7003 | 3 | } |
7004 | | |
7005 | 12 | size_t RedisNoOpRequestPB::ByteSizeLong() const { |
7006 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisNoOpRequestPB) |
7007 | 12 | size_t total_size = 0; |
7008 | | |
7009 | 12 | if (_internal_metadata_.have_unknown_fields()) { |
7010 | 0 | total_size += |
7011 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7012 | 0 | _internal_metadata_.unknown_fields()); |
7013 | 0 | } |
7014 | 12 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7015 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7016 | 12 | _cached_size_ = cached_size; |
7017 | 12 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7018 | 12 | return total_size; |
7019 | 12 | } |
7020 | | |
7021 | 0 | void RedisNoOpRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7022 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisNoOpRequestPB) |
7023 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7024 | 0 | const RedisNoOpRequestPB* source = |
7025 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisNoOpRequestPB>( |
7026 | 0 | &from); |
7027 | 0 | if (source == NULL) { |
7028 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisNoOpRequestPB) |
7029 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7030 | 0 | } else { |
7031 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisNoOpRequestPB) |
7032 | 0 | MergeFrom(*source); |
7033 | 0 | } |
7034 | 0 | } |
7035 | | |
7036 | 0 | void RedisNoOpRequestPB::MergeFrom(const RedisNoOpRequestPB& from) { |
7037 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisNoOpRequestPB) |
7038 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7039 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7040 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7041 | 0 | (void) cached_has_bits; |
7042 | |
|
7043 | 0 | } |
7044 | | |
7045 | 0 | void RedisNoOpRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7046 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisNoOpRequestPB) |
7047 | 0 | if (&from == this) return; |
7048 | 0 | Clear(); |
7049 | 0 | MergeFrom(from); |
7050 | 0 | } |
7051 | | |
7052 | 0 | void RedisNoOpRequestPB::CopyFrom(const RedisNoOpRequestPB& from) { |
7053 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisNoOpRequestPB) |
7054 | 0 | if (&from == this) return; |
7055 | 0 | Clear(); |
7056 | 0 | MergeFrom(from); |
7057 | 0 | } |
7058 | | |
7059 | 0 | bool RedisNoOpRequestPB::IsInitialized() const { |
7060 | 0 | return true; |
7061 | 0 | } |
7062 | | |
7063 | 0 | void RedisNoOpRequestPB::Swap(RedisNoOpRequestPB* other) { |
7064 | 0 | if (other == this) return; |
7065 | 0 | InternalSwap(other); |
7066 | 0 | } |
7067 | 0 | void RedisNoOpRequestPB::InternalSwap(RedisNoOpRequestPB* other) { |
7068 | 0 | using std::swap; |
7069 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7070 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7071 | 0 | swap(_cached_size_, other->_cached_size_); |
7072 | 0 | } |
7073 | | |
7074 | 3 | ::google::protobuf::Metadata RedisNoOpRequestPB::GetMetadata() const { |
7075 | 3 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7076 | 3 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
7077 | 3 | } |
7078 | | |
7079 | | |
7080 | | // =================================================================== |
7081 | | |
7082 | 28.1k | void RedisSetTtlRequestPB::InitAsDefaultInstance() { |
7083 | 28.1k | ::yb::_RedisSetTtlRequestPB_default_instance_.ttl_ = GOOGLE_LONGLONG(-1); |
7084 | 28.1k | ::yb::_RedisSetTtlRequestPB_default_instance_.absolute_time_ = GOOGLE_LONGLONG(0); |
7085 | 28.1k | } |
7086 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7087 | | const int RedisSetTtlRequestPB::kTtlFieldNumber; |
7088 | | const int RedisSetTtlRequestPB::kAbsoluteTimeFieldNumber; |
7089 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7090 | | |
7091 | | RedisSetTtlRequestPB::RedisSetTtlRequestPB() |
7092 | 28.3k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7093 | 28.3k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7094 | 165 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetTtlRequestPB(); |
7095 | 165 | } |
7096 | 28.3k | SharedCtor(); |
7097 | | // @@protoc_insertion_point(constructor:yb.RedisSetTtlRequestPB) |
7098 | 28.3k | } |
7099 | | RedisSetTtlRequestPB::RedisSetTtlRequestPB(const RedisSetTtlRequestPB& from) |
7100 | | : ::google::protobuf::Message(), |
7101 | | _internal_metadata_(NULL), |
7102 | | _has_bits_(from._has_bits_), |
7103 | 0 | _cached_size_(0) { |
7104 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7105 | 0 | clear_has_expiration(); |
7106 | 0 | switch (from.expiration_case()) { |
7107 | 0 | case kTtl: { |
7108 | 0 | set_ttl(from.ttl()); |
7109 | 0 | break; |
7110 | 0 | } |
7111 | 0 | case kAbsoluteTime: { |
7112 | 0 | set_absolute_time(from.absolute_time()); |
7113 | 0 | break; |
7114 | 0 | } |
7115 | 0 | case EXPIRATION_NOT_SET: { |
7116 | 0 | break; |
7117 | 0 | } |
7118 | 0 | } |
7119 | | // @@protoc_insertion_point(copy_constructor:yb.RedisSetTtlRequestPB) |
7120 | 0 | } |
7121 | | |
7122 | 28.3k | void RedisSetTtlRequestPB::SharedCtor() { |
7123 | 28.3k | _cached_size_ = 0; |
7124 | 28.3k | clear_has_expiration(); |
7125 | 28.3k | } |
7126 | | |
7127 | 165 | RedisSetTtlRequestPB::~RedisSetTtlRequestPB() { |
7128 | | // @@protoc_insertion_point(destructor:yb.RedisSetTtlRequestPB) |
7129 | 165 | SharedDtor(); |
7130 | 165 | } |
7131 | | |
7132 | 165 | void RedisSetTtlRequestPB::SharedDtor() { |
7133 | 165 | if (has_expiration()) { |
7134 | 165 | clear_expiration(); |
7135 | 165 | } |
7136 | 165 | } |
7137 | | |
7138 | 0 | void RedisSetTtlRequestPB::SetCachedSize(int size) const { |
7139 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7140 | 0 | _cached_size_ = size; |
7141 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7142 | 0 | } |
7143 | 0 | const ::google::protobuf::Descriptor* RedisSetTtlRequestPB::descriptor() { |
7144 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7145 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7146 | 0 | } |
7147 | | |
7148 | 0 | const RedisSetTtlRequestPB& RedisSetTtlRequestPB::default_instance() { |
7149 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetTtlRequestPB(); |
7150 | 0 | return *internal_default_instance(); |
7151 | 0 | } |
7152 | | |
7153 | 0 | RedisSetTtlRequestPB* RedisSetTtlRequestPB::New(::google::protobuf::Arena* arena) const { |
7154 | 0 | RedisSetTtlRequestPB* n = new RedisSetTtlRequestPB; |
7155 | 0 | if (arena != NULL) { |
7156 | 0 | arena->Own(n); |
7157 | 0 | } |
7158 | 0 | return n; |
7159 | 0 | } |
7160 | | |
7161 | 330 | void RedisSetTtlRequestPB::clear_expiration() { |
7162 | | // @@protoc_insertion_point(one_of_clear_start:yb.RedisSetTtlRequestPB) |
7163 | 330 | switch (expiration_case()) { |
7164 | 153 | case kTtl: { |
7165 | | // No need to clear |
7166 | 153 | break; |
7167 | 0 | } |
7168 | 12 | case kAbsoluteTime: { |
7169 | | // No need to clear |
7170 | 12 | break; |
7171 | 0 | } |
7172 | 165 | case EXPIRATION_NOT_SET: { |
7173 | 165 | break; |
7174 | 0 | } |
7175 | 330 | } |
7176 | 330 | _oneof_case_[0] = EXPIRATION_NOT_SET; |
7177 | 330 | } |
7178 | | |
7179 | | |
7180 | 0 | void RedisSetTtlRequestPB::Clear() { |
7181 | | // @@protoc_insertion_point(message_clear_start:yb.RedisSetTtlRequestPB) |
7182 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7183 | | // Prevent compiler warnings about cached_has_bits being unused |
7184 | 0 | (void) cached_has_bits; |
7185 | |
|
7186 | 0 | clear_expiration(); |
7187 | 0 | _has_bits_.Clear(); |
7188 | 0 | _internal_metadata_.Clear(); |
7189 | 0 | } |
7190 | | |
7191 | | bool RedisSetTtlRequestPB::MergePartialFromCodedStream( |
7192 | 51 | ::google::protobuf::io::CodedInputStream* input) { |
7193 | 51 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7194 | 51 | ::google::protobuf::uint32 tag; |
7195 | | // @@protoc_insertion_point(parse_start:yb.RedisSetTtlRequestPB) |
7196 | 102 | for (;;) { |
7197 | 102 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7198 | 102 | tag = p.first; |
7199 | 102 | if (!p.second) goto handle_unusual51 ; |
7200 | 51 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7201 | | // optional int64 ttl = 1 [default = -1]; |
7202 | 45 | case 1: { |
7203 | 45 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7204 | 45 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7205 | 45 | clear_expiration(); |
7206 | 45 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7207 | 45 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
7208 | 45 | input, &expiration_.ttl_))); |
7209 | 45 | set_has_ttl(); |
7210 | 45 | } else { |
7211 | 0 | goto handle_unusual; |
7212 | 0 | } |
7213 | 45 | break; |
7214 | 45 | } |
7215 | | |
7216 | | // optional int64 absolute_time = 2; |
7217 | 45 | case 2: { |
7218 | 6 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7219 | 6 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7220 | 6 | clear_expiration(); |
7221 | 6 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7222 | 6 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
7223 | 6 | input, &expiration_.absolute_time_))); |
7224 | 6 | set_has_absolute_time(); |
7225 | 6 | } else { |
7226 | 0 | goto handle_unusual; |
7227 | 0 | } |
7228 | 6 | break; |
7229 | 6 | } |
7230 | | |
7231 | 6 | default: { |
7232 | 51 | handle_unusual: |
7233 | 51 | if (tag == 0) { |
7234 | 51 | goto success; |
7235 | 51 | } |
7236 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7237 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7238 | 0 | break; |
7239 | 0 | } |
7240 | 51 | } |
7241 | 51 | } |
7242 | 51 | success: |
7243 | | // @@protoc_insertion_point(parse_success:yb.RedisSetTtlRequestPB) |
7244 | 51 | return true; |
7245 | 0 | failure: |
7246 | | // @@protoc_insertion_point(parse_failure:yb.RedisSetTtlRequestPB) |
7247 | 0 | return false; |
7248 | 51 | #undef DO_ |
7249 | 51 | } |
7250 | | |
7251 | | void RedisSetTtlRequestPB::SerializeWithCachedSizes( |
7252 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7253 | | // @@protoc_insertion_point(serialize_start:yb.RedisSetTtlRequestPB) |
7254 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7255 | 0 | (void) cached_has_bits; |
7256 | |
|
7257 | 0 | switch (expiration_case()) { |
7258 | 0 | case kTtl: |
7259 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->ttl(), output); |
7260 | 0 | break; |
7261 | 0 | case kAbsoluteTime: |
7262 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->absolute_time(), output); |
7263 | 0 | break; |
7264 | 0 | default: ; |
7265 | 0 | } |
7266 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7267 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7268 | 0 | _internal_metadata_.unknown_fields(), output); |
7269 | 0 | } |
7270 | | // @@protoc_insertion_point(serialize_end:yb.RedisSetTtlRequestPB) |
7271 | 0 | } |
7272 | | |
7273 | | ::google::protobuf::uint8* RedisSetTtlRequestPB::InternalSerializeWithCachedSizesToArray( |
7274 | 51 | bool deterministic, ::google::protobuf::uint8* target) const { |
7275 | 51 | (void)deterministic; // Unused |
7276 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSetTtlRequestPB) |
7277 | 51 | ::google::protobuf::uint32 cached_has_bits = 0; |
7278 | 51 | (void) cached_has_bits; |
7279 | | |
7280 | 51 | switch (expiration_case()) { |
7281 | 45 | case kTtl: |
7282 | 45 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->ttl(), target); |
7283 | 45 | break; |
7284 | 6 | case kAbsoluteTime: |
7285 | 6 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->absolute_time(), target); |
7286 | 6 | break; |
7287 | 0 | default: ; |
7288 | 51 | } |
7289 | 51 | if (_internal_metadata_.have_unknown_fields()) { |
7290 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7291 | 0 | _internal_metadata_.unknown_fields(), target); |
7292 | 0 | } |
7293 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisSetTtlRequestPB) |
7294 | 51 | return target; |
7295 | 51 | } |
7296 | | |
7297 | 216 | size_t RedisSetTtlRequestPB::ByteSizeLong() const { |
7298 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisSetTtlRequestPB) |
7299 | 216 | size_t total_size = 0; |
7300 | | |
7301 | 216 | if (_internal_metadata_.have_unknown_fields()) { |
7302 | 0 | total_size += |
7303 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7304 | 0 | _internal_metadata_.unknown_fields()); |
7305 | 0 | } |
7306 | 216 | switch (expiration_case()) { |
7307 | | // optional int64 ttl = 1 [default = -1]; |
7308 | 198 | case kTtl: { |
7309 | 198 | total_size += 1 + |
7310 | 198 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
7311 | 198 | this->ttl()); |
7312 | 198 | break; |
7313 | 0 | } |
7314 | | // optional int64 absolute_time = 2; |
7315 | 18 | case kAbsoluteTime: { |
7316 | 18 | total_size += 1 + |
7317 | 18 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
7318 | 18 | this->absolute_time()); |
7319 | 18 | break; |
7320 | 0 | } |
7321 | 0 | case EXPIRATION_NOT_SET: { |
7322 | 0 | break; |
7323 | 0 | } |
7324 | 216 | } |
7325 | 216 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7326 | 216 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7327 | 216 | _cached_size_ = cached_size; |
7328 | 216 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7329 | 216 | return total_size; |
7330 | 216 | } |
7331 | | |
7332 | 0 | void RedisSetTtlRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7333 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisSetTtlRequestPB) |
7334 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7335 | 0 | const RedisSetTtlRequestPB* source = |
7336 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisSetTtlRequestPB>( |
7337 | 0 | &from); |
7338 | 0 | if (source == NULL) { |
7339 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisSetTtlRequestPB) |
7340 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7341 | 0 | } else { |
7342 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisSetTtlRequestPB) |
7343 | 0 | MergeFrom(*source); |
7344 | 0 | } |
7345 | 0 | } |
7346 | | |
7347 | 0 | void RedisSetTtlRequestPB::MergeFrom(const RedisSetTtlRequestPB& from) { |
7348 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisSetTtlRequestPB) |
7349 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7350 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7351 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7352 | 0 | (void) cached_has_bits; |
7353 | |
|
7354 | 0 | switch (from.expiration_case()) { |
7355 | 0 | case kTtl: { |
7356 | 0 | set_ttl(from.ttl()); |
7357 | 0 | break; |
7358 | 0 | } |
7359 | 0 | case kAbsoluteTime: { |
7360 | 0 | set_absolute_time(from.absolute_time()); |
7361 | 0 | break; |
7362 | 0 | } |
7363 | 0 | case EXPIRATION_NOT_SET: { |
7364 | 0 | break; |
7365 | 0 | } |
7366 | 0 | } |
7367 | 0 | } |
7368 | | |
7369 | 0 | void RedisSetTtlRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7370 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisSetTtlRequestPB) |
7371 | 0 | if (&from == this) return; |
7372 | 0 | Clear(); |
7373 | 0 | MergeFrom(from); |
7374 | 0 | } |
7375 | | |
7376 | 0 | void RedisSetTtlRequestPB::CopyFrom(const RedisSetTtlRequestPB& from) { |
7377 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisSetTtlRequestPB) |
7378 | 0 | if (&from == this) return; |
7379 | 0 | Clear(); |
7380 | 0 | MergeFrom(from); |
7381 | 0 | } |
7382 | | |
7383 | 0 | bool RedisSetTtlRequestPB::IsInitialized() const { |
7384 | 0 | return true; |
7385 | 0 | } |
7386 | | |
7387 | 0 | void RedisSetTtlRequestPB::Swap(RedisSetTtlRequestPB* other) { |
7388 | 0 | if (other == this) return; |
7389 | 0 | InternalSwap(other); |
7390 | 0 | } |
7391 | 0 | void RedisSetTtlRequestPB::InternalSwap(RedisSetTtlRequestPB* other) { |
7392 | 0 | using std::swap; |
7393 | 0 | swap(expiration_, other->expiration_); |
7394 | 0 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
7395 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7396 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7397 | 0 | swap(_cached_size_, other->_cached_size_); |
7398 | 0 | } |
7399 | | |
7400 | 51 | ::google::protobuf::Metadata RedisSetTtlRequestPB::GetMetadata() const { |
7401 | 51 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7402 | 51 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
7403 | 51 | } |
7404 | | |
7405 | | |
7406 | | // =================================================================== |
7407 | | |
7408 | 28.1k | void RedisGetTtlRequestPB::InitAsDefaultInstance() { |
7409 | 28.1k | } |
7410 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7411 | | const int RedisGetTtlRequestPB::kReturnSecondsFieldNumber; |
7412 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7413 | | |
7414 | | RedisGetTtlRequestPB::RedisGetTtlRequestPB() |
7415 | 28.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7416 | 28.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7417 | 708 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetTtlRequestPB(); |
7418 | 708 | } |
7419 | 28.8k | SharedCtor(); |
7420 | | // @@protoc_insertion_point(constructor:yb.RedisGetTtlRequestPB) |
7421 | 28.8k | } |
7422 | | RedisGetTtlRequestPB::RedisGetTtlRequestPB(const RedisGetTtlRequestPB& from) |
7423 | | : ::google::protobuf::Message(), |
7424 | | _internal_metadata_(NULL), |
7425 | | _has_bits_(from._has_bits_), |
7426 | 0 | _cached_size_(0) { |
7427 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7428 | 0 | return_seconds_ = from.return_seconds_; |
7429 | | // @@protoc_insertion_point(copy_constructor:yb.RedisGetTtlRequestPB) |
7430 | 0 | } |
7431 | | |
7432 | 28.8k | void RedisGetTtlRequestPB::SharedCtor() { |
7433 | 28.8k | _cached_size_ = 0; |
7434 | 28.8k | return_seconds_ = false; |
7435 | 28.8k | } |
7436 | | |
7437 | 708 | RedisGetTtlRequestPB::~RedisGetTtlRequestPB() { |
7438 | | // @@protoc_insertion_point(destructor:yb.RedisGetTtlRequestPB) |
7439 | 708 | SharedDtor(); |
7440 | 708 | } |
7441 | | |
7442 | 708 | void RedisGetTtlRequestPB::SharedDtor() { |
7443 | 708 | } |
7444 | | |
7445 | 0 | void RedisGetTtlRequestPB::SetCachedSize(int size) const { |
7446 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7447 | 0 | _cached_size_ = size; |
7448 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7449 | 0 | } |
7450 | 0 | const ::google::protobuf::Descriptor* RedisGetTtlRequestPB::descriptor() { |
7451 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7452 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7453 | 0 | } |
7454 | | |
7455 | 0 | const RedisGetTtlRequestPB& RedisGetTtlRequestPB::default_instance() { |
7456 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetTtlRequestPB(); |
7457 | 0 | return *internal_default_instance(); |
7458 | 0 | } |
7459 | | |
7460 | 0 | RedisGetTtlRequestPB* RedisGetTtlRequestPB::New(::google::protobuf::Arena* arena) const { |
7461 | 0 | RedisGetTtlRequestPB* n = new RedisGetTtlRequestPB; |
7462 | 0 | if (arena != NULL) { |
7463 | 0 | arena->Own(n); |
7464 | 0 | } |
7465 | 0 | return n; |
7466 | 0 | } |
7467 | | |
7468 | 0 | void RedisGetTtlRequestPB::Clear() { |
7469 | | // @@protoc_insertion_point(message_clear_start:yb.RedisGetTtlRequestPB) |
7470 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7471 | | // Prevent compiler warnings about cached_has_bits being unused |
7472 | 0 | (void) cached_has_bits; |
7473 | |
|
7474 | 0 | return_seconds_ = false; |
7475 | 0 | _has_bits_.Clear(); |
7476 | 0 | _internal_metadata_.Clear(); |
7477 | 0 | } |
7478 | | |
7479 | | bool RedisGetTtlRequestPB::MergePartialFromCodedStream( |
7480 | 126 | ::google::protobuf::io::CodedInputStream* input) { |
7481 | 126 | #define DO_(EXPRESSION) if (123 !GOOGLE_PREDICT_TRUE123 (EXPRESSION)) goto failure0 |
7482 | 126 | ::google::protobuf::uint32 tag; |
7483 | | // @@protoc_insertion_point(parse_start:yb.RedisGetTtlRequestPB) |
7484 | 249 | for (;;) { |
7485 | 249 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7486 | 249 | tag = p.first; |
7487 | 249 | if (!p.second) goto handle_unusual126 ; |
7488 | 123 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7489 | | // optional bool return_seconds = 1 [default = false]; |
7490 | 123 | case 1: { |
7491 | 123 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7492 | 123 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7493 | 123 | set_has_return_seconds(); |
7494 | 123 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7495 | 123 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7496 | 123 | input, &return_seconds_))); |
7497 | 123 | } else { |
7498 | 0 | goto handle_unusual; |
7499 | 0 | } |
7500 | 123 | break; |
7501 | 123 | } |
7502 | | |
7503 | 123 | default: { |
7504 | 126 | handle_unusual: |
7505 | 126 | if (tag == 0) { |
7506 | 126 | goto success; |
7507 | 126 | } |
7508 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7509 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7510 | 0 | break; |
7511 | 0 | } |
7512 | 123 | } |
7513 | 123 | } |
7514 | 126 | success: |
7515 | | // @@protoc_insertion_point(parse_success:yb.RedisGetTtlRequestPB) |
7516 | 126 | return true; |
7517 | 0 | failure: |
7518 | | // @@protoc_insertion_point(parse_failure:yb.RedisGetTtlRequestPB) |
7519 | 0 | return false; |
7520 | 126 | #undef DO_ |
7521 | 126 | } |
7522 | | |
7523 | | void RedisGetTtlRequestPB::SerializeWithCachedSizes( |
7524 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7525 | | // @@protoc_insertion_point(serialize_start:yb.RedisGetTtlRequestPB) |
7526 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7527 | 0 | (void) cached_has_bits; |
7528 | |
|
7529 | 0 | cached_has_bits = _has_bits_[0]; |
7530 | | // optional bool return_seconds = 1 [default = false]; |
7531 | 0 | if (cached_has_bits & 0x00000001u) { |
7532 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->return_seconds(), output); |
7533 | 0 | } |
7534 | |
|
7535 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7536 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7537 | 0 | _internal_metadata_.unknown_fields(), output); |
7538 | 0 | } |
7539 | | // @@protoc_insertion_point(serialize_end:yb.RedisGetTtlRequestPB) |
7540 | 0 | } |
7541 | | |
7542 | | ::google::protobuf::uint8* RedisGetTtlRequestPB::InternalSerializeWithCachedSizesToArray( |
7543 | 126 | bool deterministic, ::google::protobuf::uint8* target) const { |
7544 | 126 | (void)deterministic; // Unused |
7545 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetTtlRequestPB) |
7546 | 126 | ::google::protobuf::uint32 cached_has_bits = 0; |
7547 | 126 | (void) cached_has_bits; |
7548 | | |
7549 | 126 | cached_has_bits = _has_bits_[0]; |
7550 | | // optional bool return_seconds = 1 [default = false]; |
7551 | 126 | if (cached_has_bits & 0x00000001u) { |
7552 | 123 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->return_seconds(), target); |
7553 | 123 | } |
7554 | | |
7555 | 126 | if (_internal_metadata_.have_unknown_fields()) { |
7556 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7557 | 0 | _internal_metadata_.unknown_fields(), target); |
7558 | 0 | } |
7559 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisGetTtlRequestPB) |
7560 | 126 | return target; |
7561 | 126 | } |
7562 | | |
7563 | 252 | size_t RedisGetTtlRequestPB::ByteSizeLong() const { |
7564 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisGetTtlRequestPB) |
7565 | 252 | size_t total_size = 0; |
7566 | | |
7567 | 252 | if (_internal_metadata_.have_unknown_fields()) { |
7568 | 0 | total_size += |
7569 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7570 | 0 | _internal_metadata_.unknown_fields()); |
7571 | 0 | } |
7572 | | // optional bool return_seconds = 1 [default = false]; |
7573 | 252 | if (has_return_seconds()) { |
7574 | 246 | total_size += 1 + 1; |
7575 | 246 | } |
7576 | | |
7577 | 252 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7578 | 252 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7579 | 252 | _cached_size_ = cached_size; |
7580 | 252 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7581 | 252 | return total_size; |
7582 | 252 | } |
7583 | | |
7584 | 0 | void RedisGetTtlRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7585 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisGetTtlRequestPB) |
7586 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7587 | 0 | const RedisGetTtlRequestPB* source = |
7588 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisGetTtlRequestPB>( |
7589 | 0 | &from); |
7590 | 0 | if (source == NULL) { |
7591 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisGetTtlRequestPB) |
7592 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7593 | 0 | } else { |
7594 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisGetTtlRequestPB) |
7595 | 0 | MergeFrom(*source); |
7596 | 0 | } |
7597 | 0 | } |
7598 | | |
7599 | 291 | void RedisGetTtlRequestPB::MergeFrom(const RedisGetTtlRequestPB& from) { |
7600 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetTtlRequestPB) |
7601 | 291 | GOOGLE_DCHECK_NE(&from, this); |
7602 | 291 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7603 | 291 | ::google::protobuf::uint32 cached_has_bits = 0; |
7604 | 291 | (void) cached_has_bits; |
7605 | | |
7606 | 291 | if (from.has_return_seconds()) { |
7607 | 287 | set_return_seconds(from.return_seconds()); |
7608 | 287 | } |
7609 | 291 | } |
7610 | | |
7611 | 0 | void RedisGetTtlRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7612 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisGetTtlRequestPB) |
7613 | 0 | if (&from == this) return; |
7614 | 0 | Clear(); |
7615 | 0 | MergeFrom(from); |
7616 | 0 | } |
7617 | | |
7618 | 0 | void RedisGetTtlRequestPB::CopyFrom(const RedisGetTtlRequestPB& from) { |
7619 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisGetTtlRequestPB) |
7620 | 0 | if (&from == this) return; |
7621 | 0 | Clear(); |
7622 | 0 | MergeFrom(from); |
7623 | 0 | } |
7624 | | |
7625 | 0 | bool RedisGetTtlRequestPB::IsInitialized() const { |
7626 | 0 | return true; |
7627 | 0 | } |
7628 | | |
7629 | 0 | void RedisGetTtlRequestPB::Swap(RedisGetTtlRequestPB* other) { |
7630 | 0 | if (other == this) return; |
7631 | 0 | InternalSwap(other); |
7632 | 0 | } |
7633 | 0 | void RedisGetTtlRequestPB::InternalSwap(RedisGetTtlRequestPB* other) { |
7634 | 0 | using std::swap; |
7635 | 0 | swap(return_seconds_, other->return_seconds_); |
7636 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7637 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7638 | 0 | swap(_cached_size_, other->_cached_size_); |
7639 | 0 | } |
7640 | | |
7641 | 413 | ::google::protobuf::Metadata RedisGetTtlRequestPB::GetMetadata() const { |
7642 | 413 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7643 | 413 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
7644 | 413 | } |
7645 | | |
7646 | | |
7647 | | // =================================================================== |
7648 | | |
7649 | 28.1k | void RedisKeysRequestPB::InitAsDefaultInstance() { |
7650 | 28.1k | } |
7651 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7652 | | const int RedisKeysRequestPB::kPatternFieldNumber; |
7653 | | const int RedisKeysRequestPB::kThresholdFieldNumber; |
7654 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7655 | | |
7656 | | RedisKeysRequestPB::RedisKeysRequestPB() |
7657 | 29.8k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7658 | 29.8k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7659 | 1.68k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeysRequestPB(); |
7660 | 1.68k | } |
7661 | 29.8k | SharedCtor(); |
7662 | | // @@protoc_insertion_point(constructor:yb.RedisKeysRequestPB) |
7663 | 29.8k | } |
7664 | | RedisKeysRequestPB::RedisKeysRequestPB(const RedisKeysRequestPB& from) |
7665 | | : ::google::protobuf::Message(), |
7666 | | _internal_metadata_(NULL), |
7667 | | _has_bits_(from._has_bits_), |
7668 | 0 | _cached_size_(0) { |
7669 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7670 | 0 | pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7671 | 0 | if (from.has_pattern()) { |
7672 | 0 | pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); |
7673 | 0 | } |
7674 | 0 | threshold_ = from.threshold_; |
7675 | | // @@protoc_insertion_point(copy_constructor:yb.RedisKeysRequestPB) |
7676 | 0 | } |
7677 | | |
7678 | 29.8k | void RedisKeysRequestPB::SharedCtor() { |
7679 | 29.8k | _cached_size_ = 0; |
7680 | 29.8k | pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7681 | 29.8k | threshold_ = 0; |
7682 | 29.8k | } |
7683 | | |
7684 | 1.68k | RedisKeysRequestPB::~RedisKeysRequestPB() { |
7685 | | // @@protoc_insertion_point(destructor:yb.RedisKeysRequestPB) |
7686 | 1.68k | SharedDtor(); |
7687 | 1.68k | } |
7688 | | |
7689 | 1.68k | void RedisKeysRequestPB::SharedDtor() { |
7690 | 1.68k | pattern_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7691 | 1.68k | } |
7692 | | |
7693 | 0 | void RedisKeysRequestPB::SetCachedSize(int size) const { |
7694 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7695 | 0 | _cached_size_ = size; |
7696 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7697 | 0 | } |
7698 | 0 | const ::google::protobuf::Descriptor* RedisKeysRequestPB::descriptor() { |
7699 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7700 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7701 | 0 | } |
7702 | | |
7703 | 0 | const RedisKeysRequestPB& RedisKeysRequestPB::default_instance() { |
7704 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeysRequestPB(); |
7705 | 0 | return *internal_default_instance(); |
7706 | 0 | } |
7707 | | |
7708 | 0 | RedisKeysRequestPB* RedisKeysRequestPB::New(::google::protobuf::Arena* arena) const { |
7709 | 0 | RedisKeysRequestPB* n = new RedisKeysRequestPB; |
7710 | 0 | if (arena != NULL) { |
7711 | 0 | arena->Own(n); |
7712 | 0 | } |
7713 | 0 | return n; |
7714 | 0 | } |
7715 | | |
7716 | 0 | void RedisKeysRequestPB::Clear() { |
7717 | | // @@protoc_insertion_point(message_clear_start:yb.RedisKeysRequestPB) |
7718 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7719 | | // Prevent compiler warnings about cached_has_bits being unused |
7720 | 0 | (void) cached_has_bits; |
7721 | |
|
7722 | 0 | cached_has_bits = _has_bits_[0]; |
7723 | 0 | if (cached_has_bits & 0x00000001u) { |
7724 | 0 | GOOGLE_DCHECK(!pattern_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
7725 | 0 | (*pattern_.UnsafeRawStringPointer())->clear(); |
7726 | 0 | } |
7727 | 0 | threshold_ = 0; |
7728 | 0 | _has_bits_.Clear(); |
7729 | 0 | _internal_metadata_.Clear(); |
7730 | 0 | } |
7731 | | |
7732 | | bool RedisKeysRequestPB::MergePartialFromCodedStream( |
7733 | 420 | ::google::protobuf::io::CodedInputStream* input) { |
7734 | 840 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
7735 | 420 | ::google::protobuf::uint32 tag; |
7736 | | // @@protoc_insertion_point(parse_start:yb.RedisKeysRequestPB) |
7737 | 1.26k | for (;;) { |
7738 | 1.26k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7739 | 1.26k | tag = p.first; |
7740 | 1.26k | if (!p.second) goto handle_unusual420 ; |
7741 | 840 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7742 | | // optional string pattern = 1; |
7743 | 420 | case 1: { |
7744 | 420 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7745 | 420 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7746 | 420 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
7747 | 420 | input, this->mutable_pattern())); |
7748 | 420 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7749 | 420 | this->pattern().data(), static_cast<int>(this->pattern().length()), |
7750 | 420 | ::google::protobuf::internal::WireFormat::PARSE, |
7751 | 420 | "yb.RedisKeysRequestPB.pattern"); |
7752 | 420 | } else { |
7753 | 0 | goto handle_unusual; |
7754 | 0 | } |
7755 | 420 | break; |
7756 | 420 | } |
7757 | | |
7758 | | // optional int32 threshold = 2; |
7759 | 420 | case 2: { |
7760 | 420 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7761 | 420 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7762 | 420 | set_has_threshold(); |
7763 | 420 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7764 | 420 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
7765 | 420 | input, &threshold_))); |
7766 | 420 | } else { |
7767 | 0 | goto handle_unusual; |
7768 | 0 | } |
7769 | 420 | break; |
7770 | 420 | } |
7771 | | |
7772 | 420 | default: { |
7773 | 420 | handle_unusual: |
7774 | 420 | if (tag == 0) { |
7775 | 420 | goto success; |
7776 | 420 | } |
7777 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7778 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7779 | 0 | break; |
7780 | 0 | } |
7781 | 840 | } |
7782 | 840 | } |
7783 | 420 | success: |
7784 | | // @@protoc_insertion_point(parse_success:yb.RedisKeysRequestPB) |
7785 | 420 | return true; |
7786 | 0 | failure: |
7787 | | // @@protoc_insertion_point(parse_failure:yb.RedisKeysRequestPB) |
7788 | 0 | return false; |
7789 | 420 | #undef DO_ |
7790 | 420 | } |
7791 | | |
7792 | | void RedisKeysRequestPB::SerializeWithCachedSizes( |
7793 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7794 | | // @@protoc_insertion_point(serialize_start:yb.RedisKeysRequestPB) |
7795 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7796 | 0 | (void) cached_has_bits; |
7797 | |
|
7798 | 0 | cached_has_bits = _has_bits_[0]; |
7799 | | // optional string pattern = 1; |
7800 | 0 | if (cached_has_bits & 0x00000001u) { |
7801 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7802 | 0 | this->pattern().data(), static_cast<int>(this->pattern().length()), |
7803 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7804 | 0 | "yb.RedisKeysRequestPB.pattern"); |
7805 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
7806 | 0 | 1, this->pattern(), output); |
7807 | 0 | } |
7808 | | |
7809 | | // optional int32 threshold = 2; |
7810 | 0 | if (cached_has_bits & 0x00000002u) { |
7811 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->threshold(), output); |
7812 | 0 | } |
7813 | |
|
7814 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
7815 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7816 | 0 | _internal_metadata_.unknown_fields(), output); |
7817 | 0 | } |
7818 | | // @@protoc_insertion_point(serialize_end:yb.RedisKeysRequestPB) |
7819 | 0 | } |
7820 | | |
7821 | | ::google::protobuf::uint8* RedisKeysRequestPB::InternalSerializeWithCachedSizesToArray( |
7822 | 420 | bool deterministic, ::google::protobuf::uint8* target) const { |
7823 | 420 | (void)deterministic; // Unused |
7824 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeysRequestPB) |
7825 | 420 | ::google::protobuf::uint32 cached_has_bits = 0; |
7826 | 420 | (void) cached_has_bits; |
7827 | | |
7828 | 420 | cached_has_bits = _has_bits_[0]; |
7829 | | // optional string pattern = 1; |
7830 | 420 | if (cached_has_bits & 0x00000001u) { |
7831 | 420 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
7832 | 420 | this->pattern().data(), static_cast<int>(this->pattern().length()), |
7833 | 420 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
7834 | 420 | "yb.RedisKeysRequestPB.pattern"); |
7835 | 420 | target = |
7836 | 420 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
7837 | 420 | 1, this->pattern(), target); |
7838 | 420 | } |
7839 | | |
7840 | | // optional int32 threshold = 2; |
7841 | 420 | if (cached_has_bits & 0x00000002u) { |
7842 | 420 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->threshold(), target); |
7843 | 420 | } |
7844 | | |
7845 | 420 | if (_internal_metadata_.have_unknown_fields()) { |
7846 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7847 | 0 | _internal_metadata_.unknown_fields(), target); |
7848 | 0 | } |
7849 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisKeysRequestPB) |
7850 | 420 | return target; |
7851 | 420 | } |
7852 | | |
7853 | 840 | size_t RedisKeysRequestPB::ByteSizeLong() const { |
7854 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisKeysRequestPB) |
7855 | 840 | size_t total_size = 0; |
7856 | | |
7857 | 840 | if (_internal_metadata_.have_unknown_fields()) { |
7858 | 0 | total_size += |
7859 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7860 | 0 | _internal_metadata_.unknown_fields()); |
7861 | 0 | } |
7862 | 840 | if (_has_bits_[0 / 32] & 3u) { |
7863 | | // optional string pattern = 1; |
7864 | 840 | if (has_pattern()) { |
7865 | 840 | total_size += 1 + |
7866 | 840 | ::google::protobuf::internal::WireFormatLite::StringSize( |
7867 | 840 | this->pattern()); |
7868 | 840 | } |
7869 | | |
7870 | | // optional int32 threshold = 2; |
7871 | 840 | if (has_threshold()) { |
7872 | 840 | total_size += 1 + |
7873 | 840 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
7874 | 840 | this->threshold()); |
7875 | 840 | } |
7876 | | |
7877 | 840 | } |
7878 | 840 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7879 | 840 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7880 | 840 | _cached_size_ = cached_size; |
7881 | 840 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7882 | 840 | return total_size; |
7883 | 840 | } |
7884 | | |
7885 | 0 | void RedisKeysRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
7886 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisKeysRequestPB) |
7887 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7888 | 0 | const RedisKeysRequestPB* source = |
7889 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisKeysRequestPB>( |
7890 | 0 | &from); |
7891 | 0 | if (source == NULL) { |
7892 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisKeysRequestPB) |
7893 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7894 | 0 | } else { |
7895 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisKeysRequestPB) |
7896 | 0 | MergeFrom(*source); |
7897 | 0 | } |
7898 | 0 | } |
7899 | | |
7900 | 630 | void RedisKeysRequestPB::MergeFrom(const RedisKeysRequestPB& from) { |
7901 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisKeysRequestPB) |
7902 | 630 | GOOGLE_DCHECK_NE(&from, this); |
7903 | 630 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7904 | 630 | ::google::protobuf::uint32 cached_has_bits = 0; |
7905 | 630 | (void) cached_has_bits; |
7906 | | |
7907 | 630 | cached_has_bits = from._has_bits_[0]; |
7908 | 630 | if (cached_has_bits & 3u) { |
7909 | 630 | if (cached_has_bits & 0x00000001u) { |
7910 | 630 | set_has_pattern(); |
7911 | 630 | pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_); |
7912 | 630 | } |
7913 | 630 | if (cached_has_bits & 0x00000002u) { |
7914 | 630 | threshold_ = from.threshold_; |
7915 | 630 | } |
7916 | 630 | _has_bits_[0] |= cached_has_bits; |
7917 | 630 | } |
7918 | 630 | } |
7919 | | |
7920 | 0 | void RedisKeysRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
7921 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisKeysRequestPB) |
7922 | 0 | if (&from == this) return; |
7923 | 0 | Clear(); |
7924 | 0 | MergeFrom(from); |
7925 | 0 | } |
7926 | | |
7927 | 0 | void RedisKeysRequestPB::CopyFrom(const RedisKeysRequestPB& from) { |
7928 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisKeysRequestPB) |
7929 | 0 | if (&from == this) return; |
7930 | 0 | Clear(); |
7931 | 0 | MergeFrom(from); |
7932 | 0 | } |
7933 | | |
7934 | 0 | bool RedisKeysRequestPB::IsInitialized() const { |
7935 | 0 | return true; |
7936 | 0 | } |
7937 | | |
7938 | 0 | void RedisKeysRequestPB::Swap(RedisKeysRequestPB* other) { |
7939 | 0 | if (other == this) return; |
7940 | 0 | InternalSwap(other); |
7941 | 0 | } |
7942 | 0 | void RedisKeysRequestPB::InternalSwap(RedisKeysRequestPB* other) { |
7943 | 0 | using std::swap; |
7944 | 0 | pattern_.Swap(&other->pattern_); |
7945 | 0 | swap(threshold_, other->threshold_); |
7946 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7947 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7948 | 0 | swap(_cached_size_, other->_cached_size_); |
7949 | 0 | } |
7950 | | |
7951 | 420 | ::google::protobuf::Metadata RedisKeysRequestPB::GetMetadata() const { |
7952 | 420 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
7953 | 420 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
7954 | 420 | } |
7955 | | |
7956 | | |
7957 | | // =================================================================== |
7958 | | |
7959 | 28.1k | void RedisGetForRenameRequestPB::InitAsDefaultInstance() { |
7960 | 28.1k | } |
7961 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7962 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7963 | | |
7964 | | RedisGetForRenameRequestPB::RedisGetForRenameRequestPB() |
7965 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7966 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7967 | 11 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetForRenameRequestPB(); |
7968 | 11 | } |
7969 | 28.1k | SharedCtor(); |
7970 | | // @@protoc_insertion_point(constructor:yb.RedisGetForRenameRequestPB) |
7971 | 28.1k | } |
7972 | | RedisGetForRenameRequestPB::RedisGetForRenameRequestPB(const RedisGetForRenameRequestPB& from) |
7973 | | : ::google::protobuf::Message(), |
7974 | | _internal_metadata_(NULL), |
7975 | | _has_bits_(from._has_bits_), |
7976 | 0 | _cached_size_(0) { |
7977 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7978 | | // @@protoc_insertion_point(copy_constructor:yb.RedisGetForRenameRequestPB) |
7979 | 0 | } |
7980 | | |
7981 | 28.1k | void RedisGetForRenameRequestPB::SharedCtor() { |
7982 | 28.1k | _cached_size_ = 0; |
7983 | 28.1k | } |
7984 | | |
7985 | 11 | RedisGetForRenameRequestPB::~RedisGetForRenameRequestPB() { |
7986 | | // @@protoc_insertion_point(destructor:yb.RedisGetForRenameRequestPB) |
7987 | 11 | SharedDtor(); |
7988 | 11 | } |
7989 | | |
7990 | 11 | void RedisGetForRenameRequestPB::SharedDtor() { |
7991 | 11 | } |
7992 | | |
7993 | 0 | void RedisGetForRenameRequestPB::SetCachedSize(int size) const { |
7994 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7995 | 0 | _cached_size_ = size; |
7996 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7997 | 0 | } |
7998 | 0 | const ::google::protobuf::Descriptor* RedisGetForRenameRequestPB::descriptor() { |
7999 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8000 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8001 | 0 | } |
8002 | | |
8003 | 0 | const RedisGetForRenameRequestPB& RedisGetForRenameRequestPB::default_instance() { |
8004 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetForRenameRequestPB(); |
8005 | 0 | return *internal_default_instance(); |
8006 | 0 | } |
8007 | | |
8008 | 0 | RedisGetForRenameRequestPB* RedisGetForRenameRequestPB::New(::google::protobuf::Arena* arena) const { |
8009 | 0 | RedisGetForRenameRequestPB* n = new RedisGetForRenameRequestPB; |
8010 | 0 | if (arena != NULL) { |
8011 | 0 | arena->Own(n); |
8012 | 0 | } |
8013 | 0 | return n; |
8014 | 0 | } |
8015 | | |
8016 | 0 | void RedisGetForRenameRequestPB::Clear() { |
8017 | | // @@protoc_insertion_point(message_clear_start:yb.RedisGetForRenameRequestPB) |
8018 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8019 | | // Prevent compiler warnings about cached_has_bits being unused |
8020 | 0 | (void) cached_has_bits; |
8021 | |
|
8022 | 0 | _has_bits_.Clear(); |
8023 | 0 | _internal_metadata_.Clear(); |
8024 | 0 | } |
8025 | | |
8026 | | bool RedisGetForRenameRequestPB::MergePartialFromCodedStream( |
8027 | 3 | ::google::protobuf::io::CodedInputStream* input) { |
8028 | 3 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8029 | 3 | ::google::protobuf::uint32 tag; |
8030 | | // @@protoc_insertion_point(parse_start:yb.RedisGetForRenameRequestPB) |
8031 | 3 | for (;;) { |
8032 | 3 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8033 | 3 | tag = p.first; |
8034 | 3 | if (!p.second) goto handle_unusual; |
8035 | 3 | handle_unusual: |
8036 | 3 | if (tag == 0) { |
8037 | 3 | goto success; |
8038 | 3 | } |
8039 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8040 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8041 | 0 | } |
8042 | 3 | success: |
8043 | | // @@protoc_insertion_point(parse_success:yb.RedisGetForRenameRequestPB) |
8044 | 3 | return true; |
8045 | 0 | failure: |
8046 | | // @@protoc_insertion_point(parse_failure:yb.RedisGetForRenameRequestPB) |
8047 | 0 | return false; |
8048 | 3 | #undef DO_ |
8049 | 3 | } |
8050 | | |
8051 | | void RedisGetForRenameRequestPB::SerializeWithCachedSizes( |
8052 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8053 | | // @@protoc_insertion_point(serialize_start:yb.RedisGetForRenameRequestPB) |
8054 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8055 | 0 | (void) cached_has_bits; |
8056 | |
|
8057 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8058 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8059 | 0 | _internal_metadata_.unknown_fields(), output); |
8060 | 0 | } |
8061 | | // @@protoc_insertion_point(serialize_end:yb.RedisGetForRenameRequestPB) |
8062 | 0 | } |
8063 | | |
8064 | | ::google::protobuf::uint8* RedisGetForRenameRequestPB::InternalSerializeWithCachedSizesToArray( |
8065 | 3 | bool deterministic, ::google::protobuf::uint8* target) const { |
8066 | 3 | (void)deterministic; // Unused |
8067 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetForRenameRequestPB) |
8068 | 3 | ::google::protobuf::uint32 cached_has_bits = 0; |
8069 | 3 | (void) cached_has_bits; |
8070 | | |
8071 | 3 | if (_internal_metadata_.have_unknown_fields()) { |
8072 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8073 | 0 | _internal_metadata_.unknown_fields(), target); |
8074 | 0 | } |
8075 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisGetForRenameRequestPB) |
8076 | 3 | return target; |
8077 | 3 | } |
8078 | | |
8079 | 6 | size_t RedisGetForRenameRequestPB::ByteSizeLong() const { |
8080 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisGetForRenameRequestPB) |
8081 | 6 | size_t total_size = 0; |
8082 | | |
8083 | 6 | if (_internal_metadata_.have_unknown_fields()) { |
8084 | 0 | total_size += |
8085 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8086 | 0 | _internal_metadata_.unknown_fields()); |
8087 | 0 | } |
8088 | 6 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8089 | 6 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8090 | 6 | _cached_size_ = cached_size; |
8091 | 6 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8092 | 6 | return total_size; |
8093 | 6 | } |
8094 | | |
8095 | 0 | void RedisGetForRenameRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8096 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisGetForRenameRequestPB) |
8097 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8098 | 0 | const RedisGetForRenameRequestPB* source = |
8099 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisGetForRenameRequestPB>( |
8100 | 0 | &from); |
8101 | 0 | if (source == NULL) { |
8102 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisGetForRenameRequestPB) |
8103 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8104 | 0 | } else { |
8105 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisGetForRenameRequestPB) |
8106 | 0 | MergeFrom(*source); |
8107 | 0 | } |
8108 | 0 | } |
8109 | | |
8110 | 4 | void RedisGetForRenameRequestPB::MergeFrom(const RedisGetForRenameRequestPB& from) { |
8111 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetForRenameRequestPB) |
8112 | 4 | GOOGLE_DCHECK_NE(&from, this); |
8113 | 4 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8114 | 4 | ::google::protobuf::uint32 cached_has_bits = 0; |
8115 | 4 | (void) cached_has_bits; |
8116 | | |
8117 | 4 | } |
8118 | | |
8119 | 0 | void RedisGetForRenameRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8120 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisGetForRenameRequestPB) |
8121 | 0 | if (&from == this) return; |
8122 | 0 | Clear(); |
8123 | 0 | MergeFrom(from); |
8124 | 0 | } |
8125 | | |
8126 | 0 | void RedisGetForRenameRequestPB::CopyFrom(const RedisGetForRenameRequestPB& from) { |
8127 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisGetForRenameRequestPB) |
8128 | 0 | if (&from == this) return; |
8129 | 0 | Clear(); |
8130 | 0 | MergeFrom(from); |
8131 | 0 | } |
8132 | | |
8133 | 0 | bool RedisGetForRenameRequestPB::IsInitialized() const { |
8134 | 0 | return true; |
8135 | 0 | } |
8136 | | |
8137 | 0 | void RedisGetForRenameRequestPB::Swap(RedisGetForRenameRequestPB* other) { |
8138 | 0 | if (other == this) return; |
8139 | 0 | InternalSwap(other); |
8140 | 0 | } |
8141 | 0 | void RedisGetForRenameRequestPB::InternalSwap(RedisGetForRenameRequestPB* other) { |
8142 | 0 | using std::swap; |
8143 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8144 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8145 | 0 | swap(_cached_size_, other->_cached_size_); |
8146 | 0 | } |
8147 | | |
8148 | 3 | ::google::protobuf::Metadata RedisGetForRenameRequestPB::GetMetadata() const { |
8149 | 3 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8150 | 3 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
8151 | 3 | } |
8152 | | |
8153 | | |
8154 | | // =================================================================== |
8155 | | |
8156 | 28.1k | void RedisGetSetRequestPB::InitAsDefaultInstance() { |
8157 | 28.1k | } |
8158 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8159 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8160 | | |
8161 | | RedisGetSetRequestPB::RedisGetSetRequestPB() |
8162 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8163 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8164 | 3 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetSetRequestPB(); |
8165 | 3 | } |
8166 | 28.1k | SharedCtor(); |
8167 | | // @@protoc_insertion_point(constructor:yb.RedisGetSetRequestPB) |
8168 | 28.1k | } |
8169 | | RedisGetSetRequestPB::RedisGetSetRequestPB(const RedisGetSetRequestPB& from) |
8170 | | : ::google::protobuf::Message(), |
8171 | | _internal_metadata_(NULL), |
8172 | | _has_bits_(from._has_bits_), |
8173 | 0 | _cached_size_(0) { |
8174 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8175 | | // @@protoc_insertion_point(copy_constructor:yb.RedisGetSetRequestPB) |
8176 | 0 | } |
8177 | | |
8178 | 28.1k | void RedisGetSetRequestPB::SharedCtor() { |
8179 | 28.1k | _cached_size_ = 0; |
8180 | 28.1k | } |
8181 | | |
8182 | 3 | RedisGetSetRequestPB::~RedisGetSetRequestPB() { |
8183 | | // @@protoc_insertion_point(destructor:yb.RedisGetSetRequestPB) |
8184 | 3 | SharedDtor(); |
8185 | 3 | } |
8186 | | |
8187 | 3 | void RedisGetSetRequestPB::SharedDtor() { |
8188 | 3 | } |
8189 | | |
8190 | 0 | void RedisGetSetRequestPB::SetCachedSize(int size) const { |
8191 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8192 | 0 | _cached_size_ = size; |
8193 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8194 | 0 | } |
8195 | 0 | const ::google::protobuf::Descriptor* RedisGetSetRequestPB::descriptor() { |
8196 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8197 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8198 | 0 | } |
8199 | | |
8200 | 0 | const RedisGetSetRequestPB& RedisGetSetRequestPB::default_instance() { |
8201 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetSetRequestPB(); |
8202 | 0 | return *internal_default_instance(); |
8203 | 0 | } |
8204 | | |
8205 | 0 | RedisGetSetRequestPB* RedisGetSetRequestPB::New(::google::protobuf::Arena* arena) const { |
8206 | 0 | RedisGetSetRequestPB* n = new RedisGetSetRequestPB; |
8207 | 0 | if (arena != NULL) { |
8208 | 0 | arena->Own(n); |
8209 | 0 | } |
8210 | 0 | return n; |
8211 | 0 | } |
8212 | | |
8213 | 0 | void RedisGetSetRequestPB::Clear() { |
8214 | | // @@protoc_insertion_point(message_clear_start:yb.RedisGetSetRequestPB) |
8215 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8216 | | // Prevent compiler warnings about cached_has_bits being unused |
8217 | 0 | (void) cached_has_bits; |
8218 | |
|
8219 | 0 | _has_bits_.Clear(); |
8220 | 0 | _internal_metadata_.Clear(); |
8221 | 0 | } |
8222 | | |
8223 | | bool RedisGetSetRequestPB::MergePartialFromCodedStream( |
8224 | 1 | ::google::protobuf::io::CodedInputStream* input) { |
8225 | 1 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8226 | 1 | ::google::protobuf::uint32 tag; |
8227 | | // @@protoc_insertion_point(parse_start:yb.RedisGetSetRequestPB) |
8228 | 1 | for (;;) { |
8229 | 1 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8230 | 1 | tag = p.first; |
8231 | 1 | if (!p.second) goto handle_unusual; |
8232 | 1 | handle_unusual: |
8233 | 1 | if (tag == 0) { |
8234 | 1 | goto success; |
8235 | 1 | } |
8236 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8237 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8238 | 0 | } |
8239 | 1 | success: |
8240 | | // @@protoc_insertion_point(parse_success:yb.RedisGetSetRequestPB) |
8241 | 1 | return true; |
8242 | 0 | failure: |
8243 | | // @@protoc_insertion_point(parse_failure:yb.RedisGetSetRequestPB) |
8244 | 0 | return false; |
8245 | 1 | #undef DO_ |
8246 | 1 | } |
8247 | | |
8248 | | void RedisGetSetRequestPB::SerializeWithCachedSizes( |
8249 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8250 | | // @@protoc_insertion_point(serialize_start:yb.RedisGetSetRequestPB) |
8251 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8252 | 0 | (void) cached_has_bits; |
8253 | |
|
8254 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8255 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8256 | 0 | _internal_metadata_.unknown_fields(), output); |
8257 | 0 | } |
8258 | | // @@protoc_insertion_point(serialize_end:yb.RedisGetSetRequestPB) |
8259 | 0 | } |
8260 | | |
8261 | | ::google::protobuf::uint8* RedisGetSetRequestPB::InternalSerializeWithCachedSizesToArray( |
8262 | 1 | bool deterministic, ::google::protobuf::uint8* target) const { |
8263 | 1 | (void)deterministic; // Unused |
8264 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetSetRequestPB) |
8265 | 1 | ::google::protobuf::uint32 cached_has_bits = 0; |
8266 | 1 | (void) cached_has_bits; |
8267 | | |
8268 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
8269 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8270 | 0 | _internal_metadata_.unknown_fields(), target); |
8271 | 0 | } |
8272 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisGetSetRequestPB) |
8273 | 1 | return target; |
8274 | 1 | } |
8275 | | |
8276 | 4 | size_t RedisGetSetRequestPB::ByteSizeLong() const { |
8277 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisGetSetRequestPB) |
8278 | 4 | size_t total_size = 0; |
8279 | | |
8280 | 4 | if (_internal_metadata_.have_unknown_fields()) { |
8281 | 0 | total_size += |
8282 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8283 | 0 | _internal_metadata_.unknown_fields()); |
8284 | 0 | } |
8285 | 4 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8286 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8287 | 4 | _cached_size_ = cached_size; |
8288 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8289 | 4 | return total_size; |
8290 | 4 | } |
8291 | | |
8292 | 0 | void RedisGetSetRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8293 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisGetSetRequestPB) |
8294 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8295 | 0 | const RedisGetSetRequestPB* source = |
8296 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisGetSetRequestPB>( |
8297 | 0 | &from); |
8298 | 0 | if (source == NULL) { |
8299 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisGetSetRequestPB) |
8300 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8301 | 0 | } else { |
8302 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisGetSetRequestPB) |
8303 | 0 | MergeFrom(*source); |
8304 | 0 | } |
8305 | 0 | } |
8306 | | |
8307 | 0 | void RedisGetSetRequestPB::MergeFrom(const RedisGetSetRequestPB& from) { |
8308 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetSetRequestPB) |
8309 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8310 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8311 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8312 | 0 | (void) cached_has_bits; |
8313 | |
|
8314 | 0 | } |
8315 | | |
8316 | 0 | void RedisGetSetRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8317 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisGetSetRequestPB) |
8318 | 0 | if (&from == this) return; |
8319 | 0 | Clear(); |
8320 | 0 | MergeFrom(from); |
8321 | 0 | } |
8322 | | |
8323 | 0 | void RedisGetSetRequestPB::CopyFrom(const RedisGetSetRequestPB& from) { |
8324 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisGetSetRequestPB) |
8325 | 0 | if (&from == this) return; |
8326 | 0 | Clear(); |
8327 | 0 | MergeFrom(from); |
8328 | 0 | } |
8329 | | |
8330 | 0 | bool RedisGetSetRequestPB::IsInitialized() const { |
8331 | 0 | return true; |
8332 | 0 | } |
8333 | | |
8334 | 0 | void RedisGetSetRequestPB::Swap(RedisGetSetRequestPB* other) { |
8335 | 0 | if (other == this) return; |
8336 | 0 | InternalSwap(other); |
8337 | 0 | } |
8338 | 0 | void RedisGetSetRequestPB::InternalSwap(RedisGetSetRequestPB* other) { |
8339 | 0 | using std::swap; |
8340 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8341 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8342 | 0 | swap(_cached_size_, other->_cached_size_); |
8343 | 0 | } |
8344 | | |
8345 | 1 | ::google::protobuf::Metadata RedisGetSetRequestPB::GetMetadata() const { |
8346 | 1 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8347 | 1 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
8348 | 1 | } |
8349 | | |
8350 | | |
8351 | | // =================================================================== |
8352 | | |
8353 | 28.1k | void RedisAppendRequestPB::InitAsDefaultInstance() { |
8354 | 28.1k | } |
8355 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8356 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8357 | | |
8358 | | RedisAppendRequestPB::RedisAppendRequestPB() |
8359 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8360 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8361 | 6 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAppendRequestPB(); |
8362 | 6 | } |
8363 | 28.1k | SharedCtor(); |
8364 | | // @@protoc_insertion_point(constructor:yb.RedisAppendRequestPB) |
8365 | 28.1k | } |
8366 | | RedisAppendRequestPB::RedisAppendRequestPB(const RedisAppendRequestPB& from) |
8367 | | : ::google::protobuf::Message(), |
8368 | | _internal_metadata_(NULL), |
8369 | | _has_bits_(from._has_bits_), |
8370 | 0 | _cached_size_(0) { |
8371 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8372 | | // @@protoc_insertion_point(copy_constructor:yb.RedisAppendRequestPB) |
8373 | 0 | } |
8374 | | |
8375 | 28.1k | void RedisAppendRequestPB::SharedCtor() { |
8376 | 28.1k | _cached_size_ = 0; |
8377 | 28.1k | } |
8378 | | |
8379 | 6 | RedisAppendRequestPB::~RedisAppendRequestPB() { |
8380 | | // @@protoc_insertion_point(destructor:yb.RedisAppendRequestPB) |
8381 | 6 | SharedDtor(); |
8382 | 6 | } |
8383 | | |
8384 | 6 | void RedisAppendRequestPB::SharedDtor() { |
8385 | 6 | } |
8386 | | |
8387 | 0 | void RedisAppendRequestPB::SetCachedSize(int size) const { |
8388 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8389 | 0 | _cached_size_ = size; |
8390 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8391 | 0 | } |
8392 | 0 | const ::google::protobuf::Descriptor* RedisAppendRequestPB::descriptor() { |
8393 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8394 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8395 | 0 | } |
8396 | | |
8397 | 0 | const RedisAppendRequestPB& RedisAppendRequestPB::default_instance() { |
8398 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAppendRequestPB(); |
8399 | 0 | return *internal_default_instance(); |
8400 | 0 | } |
8401 | | |
8402 | 0 | RedisAppendRequestPB* RedisAppendRequestPB::New(::google::protobuf::Arena* arena) const { |
8403 | 0 | RedisAppendRequestPB* n = new RedisAppendRequestPB; |
8404 | 0 | if (arena != NULL) { |
8405 | 0 | arena->Own(n); |
8406 | 0 | } |
8407 | 0 | return n; |
8408 | 0 | } |
8409 | | |
8410 | 0 | void RedisAppendRequestPB::Clear() { |
8411 | | // @@protoc_insertion_point(message_clear_start:yb.RedisAppendRequestPB) |
8412 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8413 | | // Prevent compiler warnings about cached_has_bits being unused |
8414 | 0 | (void) cached_has_bits; |
8415 | |
|
8416 | 0 | _has_bits_.Clear(); |
8417 | 0 | _internal_metadata_.Clear(); |
8418 | 0 | } |
8419 | | |
8420 | | bool RedisAppendRequestPB::MergePartialFromCodedStream( |
8421 | 2 | ::google::protobuf::io::CodedInputStream* input) { |
8422 | 2 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8423 | 2 | ::google::protobuf::uint32 tag; |
8424 | | // @@protoc_insertion_point(parse_start:yb.RedisAppendRequestPB) |
8425 | 2 | for (;;) { |
8426 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8427 | 2 | tag = p.first; |
8428 | 2 | if (!p.second) goto handle_unusual; |
8429 | 2 | handle_unusual: |
8430 | 2 | if (tag == 0) { |
8431 | 2 | goto success; |
8432 | 2 | } |
8433 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8434 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8435 | 0 | } |
8436 | 2 | success: |
8437 | | // @@protoc_insertion_point(parse_success:yb.RedisAppendRequestPB) |
8438 | 2 | return true; |
8439 | 0 | failure: |
8440 | | // @@protoc_insertion_point(parse_failure:yb.RedisAppendRequestPB) |
8441 | 0 | return false; |
8442 | 2 | #undef DO_ |
8443 | 2 | } |
8444 | | |
8445 | | void RedisAppendRequestPB::SerializeWithCachedSizes( |
8446 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8447 | | // @@protoc_insertion_point(serialize_start:yb.RedisAppendRequestPB) |
8448 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8449 | 0 | (void) cached_has_bits; |
8450 | |
|
8451 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8452 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8453 | 0 | _internal_metadata_.unknown_fields(), output); |
8454 | 0 | } |
8455 | | // @@protoc_insertion_point(serialize_end:yb.RedisAppendRequestPB) |
8456 | 0 | } |
8457 | | |
8458 | | ::google::protobuf::uint8* RedisAppendRequestPB::InternalSerializeWithCachedSizesToArray( |
8459 | 2 | bool deterministic, ::google::protobuf::uint8* target) const { |
8460 | 2 | (void)deterministic; // Unused |
8461 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisAppendRequestPB) |
8462 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
8463 | 2 | (void) cached_has_bits; |
8464 | | |
8465 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
8466 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8467 | 0 | _internal_metadata_.unknown_fields(), target); |
8468 | 0 | } |
8469 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisAppendRequestPB) |
8470 | 2 | return target; |
8471 | 2 | } |
8472 | | |
8473 | 8 | size_t RedisAppendRequestPB::ByteSizeLong() const { |
8474 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisAppendRequestPB) |
8475 | 8 | size_t total_size = 0; |
8476 | | |
8477 | 8 | if (_internal_metadata_.have_unknown_fields()) { |
8478 | 0 | total_size += |
8479 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8480 | 0 | _internal_metadata_.unknown_fields()); |
8481 | 0 | } |
8482 | 8 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8483 | 8 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8484 | 8 | _cached_size_ = cached_size; |
8485 | 8 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8486 | 8 | return total_size; |
8487 | 8 | } |
8488 | | |
8489 | 0 | void RedisAppendRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8490 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisAppendRequestPB) |
8491 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8492 | 0 | const RedisAppendRequestPB* source = |
8493 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisAppendRequestPB>( |
8494 | 0 | &from); |
8495 | 0 | if (source == NULL) { |
8496 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisAppendRequestPB) |
8497 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8498 | 0 | } else { |
8499 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisAppendRequestPB) |
8500 | 0 | MergeFrom(*source); |
8501 | 0 | } |
8502 | 0 | } |
8503 | | |
8504 | 0 | void RedisAppendRequestPB::MergeFrom(const RedisAppendRequestPB& from) { |
8505 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisAppendRequestPB) |
8506 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8507 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8508 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8509 | 0 | (void) cached_has_bits; |
8510 | |
|
8511 | 0 | } |
8512 | | |
8513 | 0 | void RedisAppendRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8514 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisAppendRequestPB) |
8515 | 0 | if (&from == this) return; |
8516 | 0 | Clear(); |
8517 | 0 | MergeFrom(from); |
8518 | 0 | } |
8519 | | |
8520 | 0 | void RedisAppendRequestPB::CopyFrom(const RedisAppendRequestPB& from) { |
8521 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisAppendRequestPB) |
8522 | 0 | if (&from == this) return; |
8523 | 0 | Clear(); |
8524 | 0 | MergeFrom(from); |
8525 | 0 | } |
8526 | | |
8527 | 0 | bool RedisAppendRequestPB::IsInitialized() const { |
8528 | 0 | return true; |
8529 | 0 | } |
8530 | | |
8531 | 0 | void RedisAppendRequestPB::Swap(RedisAppendRequestPB* other) { |
8532 | 0 | if (other == this) return; |
8533 | 0 | InternalSwap(other); |
8534 | 0 | } |
8535 | 0 | void RedisAppendRequestPB::InternalSwap(RedisAppendRequestPB* other) { |
8536 | 0 | using std::swap; |
8537 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8538 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8539 | 0 | swap(_cached_size_, other->_cached_size_); |
8540 | 0 | } |
8541 | | |
8542 | 2 | ::google::protobuf::Metadata RedisAppendRequestPB::GetMetadata() const { |
8543 | 2 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8544 | 2 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
8545 | 2 | } |
8546 | | |
8547 | | |
8548 | | // =================================================================== |
8549 | | |
8550 | 28.1k | void RedisStrLenRequestPB::InitAsDefaultInstance() { |
8551 | 28.1k | } |
8552 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8553 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8554 | | |
8555 | | RedisStrLenRequestPB::RedisStrLenRequestPB() |
8556 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8557 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8558 | 6 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisStrLenRequestPB(); |
8559 | 6 | } |
8560 | 28.1k | SharedCtor(); |
8561 | | // @@protoc_insertion_point(constructor:yb.RedisStrLenRequestPB) |
8562 | 28.1k | } |
8563 | | RedisStrLenRequestPB::RedisStrLenRequestPB(const RedisStrLenRequestPB& from) |
8564 | | : ::google::protobuf::Message(), |
8565 | | _internal_metadata_(NULL), |
8566 | | _has_bits_(from._has_bits_), |
8567 | 0 | _cached_size_(0) { |
8568 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8569 | | // @@protoc_insertion_point(copy_constructor:yb.RedisStrLenRequestPB) |
8570 | 0 | } |
8571 | | |
8572 | 28.1k | void RedisStrLenRequestPB::SharedCtor() { |
8573 | 28.1k | _cached_size_ = 0; |
8574 | 28.1k | } |
8575 | | |
8576 | 6 | RedisStrLenRequestPB::~RedisStrLenRequestPB() { |
8577 | | // @@protoc_insertion_point(destructor:yb.RedisStrLenRequestPB) |
8578 | 6 | SharedDtor(); |
8579 | 6 | } |
8580 | | |
8581 | 6 | void RedisStrLenRequestPB::SharedDtor() { |
8582 | 6 | } |
8583 | | |
8584 | 0 | void RedisStrLenRequestPB::SetCachedSize(int size) const { |
8585 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8586 | 0 | _cached_size_ = size; |
8587 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8588 | 0 | } |
8589 | 0 | const ::google::protobuf::Descriptor* RedisStrLenRequestPB::descriptor() { |
8590 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8591 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8592 | 0 | } |
8593 | | |
8594 | 0 | const RedisStrLenRequestPB& RedisStrLenRequestPB::default_instance() { |
8595 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisStrLenRequestPB(); |
8596 | 0 | return *internal_default_instance(); |
8597 | 0 | } |
8598 | | |
8599 | 0 | RedisStrLenRequestPB* RedisStrLenRequestPB::New(::google::protobuf::Arena* arena) const { |
8600 | 0 | RedisStrLenRequestPB* n = new RedisStrLenRequestPB; |
8601 | 0 | if (arena != NULL) { |
8602 | 0 | arena->Own(n); |
8603 | 0 | } |
8604 | 0 | return n; |
8605 | 0 | } |
8606 | | |
8607 | 0 | void RedisStrLenRequestPB::Clear() { |
8608 | | // @@protoc_insertion_point(message_clear_start:yb.RedisStrLenRequestPB) |
8609 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8610 | | // Prevent compiler warnings about cached_has_bits being unused |
8611 | 0 | (void) cached_has_bits; |
8612 | |
|
8613 | 0 | _has_bits_.Clear(); |
8614 | 0 | _internal_metadata_.Clear(); |
8615 | 0 | } |
8616 | | |
8617 | | bool RedisStrLenRequestPB::MergePartialFromCodedStream( |
8618 | 2 | ::google::protobuf::io::CodedInputStream* input) { |
8619 | 2 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8620 | 2 | ::google::protobuf::uint32 tag; |
8621 | | // @@protoc_insertion_point(parse_start:yb.RedisStrLenRequestPB) |
8622 | 2 | for (;;) { |
8623 | 2 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8624 | 2 | tag = p.first; |
8625 | 2 | if (!p.second) goto handle_unusual; |
8626 | 2 | handle_unusual: |
8627 | 2 | if (tag == 0) { |
8628 | 2 | goto success; |
8629 | 2 | } |
8630 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8631 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8632 | 0 | } |
8633 | 2 | success: |
8634 | | // @@protoc_insertion_point(parse_success:yb.RedisStrLenRequestPB) |
8635 | 2 | return true; |
8636 | 0 | failure: |
8637 | | // @@protoc_insertion_point(parse_failure:yb.RedisStrLenRequestPB) |
8638 | 0 | return false; |
8639 | 2 | #undef DO_ |
8640 | 2 | } |
8641 | | |
8642 | | void RedisStrLenRequestPB::SerializeWithCachedSizes( |
8643 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8644 | | // @@protoc_insertion_point(serialize_start:yb.RedisStrLenRequestPB) |
8645 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8646 | 0 | (void) cached_has_bits; |
8647 | |
|
8648 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8649 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8650 | 0 | _internal_metadata_.unknown_fields(), output); |
8651 | 0 | } |
8652 | | // @@protoc_insertion_point(serialize_end:yb.RedisStrLenRequestPB) |
8653 | 0 | } |
8654 | | |
8655 | | ::google::protobuf::uint8* RedisStrLenRequestPB::InternalSerializeWithCachedSizesToArray( |
8656 | 2 | bool deterministic, ::google::protobuf::uint8* target) const { |
8657 | 2 | (void)deterministic; // Unused |
8658 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisStrLenRequestPB) |
8659 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
8660 | 2 | (void) cached_has_bits; |
8661 | | |
8662 | 2 | if (_internal_metadata_.have_unknown_fields()) { |
8663 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8664 | 0 | _internal_metadata_.unknown_fields(), target); |
8665 | 0 | } |
8666 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisStrLenRequestPB) |
8667 | 2 | return target; |
8668 | 2 | } |
8669 | | |
8670 | 4 | size_t RedisStrLenRequestPB::ByteSizeLong() const { |
8671 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisStrLenRequestPB) |
8672 | 4 | size_t total_size = 0; |
8673 | | |
8674 | 4 | if (_internal_metadata_.have_unknown_fields()) { |
8675 | 0 | total_size += |
8676 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8677 | 0 | _internal_metadata_.unknown_fields()); |
8678 | 0 | } |
8679 | 4 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8680 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8681 | 4 | _cached_size_ = cached_size; |
8682 | 4 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8683 | 4 | return total_size; |
8684 | 4 | } |
8685 | | |
8686 | 0 | void RedisStrLenRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8687 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisStrLenRequestPB) |
8688 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8689 | 0 | const RedisStrLenRequestPB* source = |
8690 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisStrLenRequestPB>( |
8691 | 0 | &from); |
8692 | 0 | if (source == NULL) { |
8693 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisStrLenRequestPB) |
8694 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8695 | 0 | } else { |
8696 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisStrLenRequestPB) |
8697 | 0 | MergeFrom(*source); |
8698 | 0 | } |
8699 | 0 | } |
8700 | | |
8701 | 2 | void RedisStrLenRequestPB::MergeFrom(const RedisStrLenRequestPB& from) { |
8702 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisStrLenRequestPB) |
8703 | 2 | GOOGLE_DCHECK_NE(&from, this); |
8704 | 2 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8705 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
8706 | 2 | (void) cached_has_bits; |
8707 | | |
8708 | 2 | } |
8709 | | |
8710 | 0 | void RedisStrLenRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8711 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisStrLenRequestPB) |
8712 | 0 | if (&from == this) return; |
8713 | 0 | Clear(); |
8714 | 0 | MergeFrom(from); |
8715 | 0 | } |
8716 | | |
8717 | 0 | void RedisStrLenRequestPB::CopyFrom(const RedisStrLenRequestPB& from) { |
8718 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisStrLenRequestPB) |
8719 | 0 | if (&from == this) return; |
8720 | 0 | Clear(); |
8721 | 0 | MergeFrom(from); |
8722 | 0 | } |
8723 | | |
8724 | 0 | bool RedisStrLenRequestPB::IsInitialized() const { |
8725 | 0 | return true; |
8726 | 0 | } |
8727 | | |
8728 | 0 | void RedisStrLenRequestPB::Swap(RedisStrLenRequestPB* other) { |
8729 | 0 | if (other == this) return; |
8730 | 0 | InternalSwap(other); |
8731 | 0 | } |
8732 | 0 | void RedisStrLenRequestPB::InternalSwap(RedisStrLenRequestPB* other) { |
8733 | 0 | using std::swap; |
8734 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8735 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8736 | 0 | swap(_cached_size_, other->_cached_size_); |
8737 | 0 | } |
8738 | | |
8739 | 4 | ::google::protobuf::Metadata RedisStrLenRequestPB::GetMetadata() const { |
8740 | 4 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8741 | 4 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
8742 | 4 | } |
8743 | | |
8744 | | |
8745 | | // =================================================================== |
8746 | | |
8747 | 28.1k | void RedisDelRequestPB::InitAsDefaultInstance() { |
8748 | 28.1k | } |
8749 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8750 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8751 | | |
8752 | | RedisDelRequestPB::RedisDelRequestPB() |
8753 | 28.2k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8754 | 28.2k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8755 | 109 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisDelRequestPB(); |
8756 | 109 | } |
8757 | 28.2k | SharedCtor(); |
8758 | | // @@protoc_insertion_point(constructor:yb.RedisDelRequestPB) |
8759 | 28.2k | } |
8760 | | RedisDelRequestPB::RedisDelRequestPB(const RedisDelRequestPB& from) |
8761 | | : ::google::protobuf::Message(), |
8762 | | _internal_metadata_(NULL), |
8763 | | _has_bits_(from._has_bits_), |
8764 | 0 | _cached_size_(0) { |
8765 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8766 | | // @@protoc_insertion_point(copy_constructor:yb.RedisDelRequestPB) |
8767 | 0 | } |
8768 | | |
8769 | 28.2k | void RedisDelRequestPB::SharedCtor() { |
8770 | 28.2k | _cached_size_ = 0; |
8771 | 28.2k | } |
8772 | | |
8773 | 109 | RedisDelRequestPB::~RedisDelRequestPB() { |
8774 | | // @@protoc_insertion_point(destructor:yb.RedisDelRequestPB) |
8775 | 109 | SharedDtor(); |
8776 | 109 | } |
8777 | | |
8778 | 109 | void RedisDelRequestPB::SharedDtor() { |
8779 | 109 | } |
8780 | | |
8781 | 0 | void RedisDelRequestPB::SetCachedSize(int size) const { |
8782 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8783 | 0 | _cached_size_ = size; |
8784 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8785 | 0 | } |
8786 | 0 | const ::google::protobuf::Descriptor* RedisDelRequestPB::descriptor() { |
8787 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8788 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8789 | 0 | } |
8790 | | |
8791 | 0 | const RedisDelRequestPB& RedisDelRequestPB::default_instance() { |
8792 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisDelRequestPB(); |
8793 | 0 | return *internal_default_instance(); |
8794 | 0 | } |
8795 | | |
8796 | 0 | RedisDelRequestPB* RedisDelRequestPB::New(::google::protobuf::Arena* arena) const { |
8797 | 0 | RedisDelRequestPB* n = new RedisDelRequestPB; |
8798 | 0 | if (arena != NULL) { |
8799 | 0 | arena->Own(n); |
8800 | 0 | } |
8801 | 0 | return n; |
8802 | 0 | } |
8803 | | |
8804 | 0 | void RedisDelRequestPB::Clear() { |
8805 | | // @@protoc_insertion_point(message_clear_start:yb.RedisDelRequestPB) |
8806 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8807 | | // Prevent compiler warnings about cached_has_bits being unused |
8808 | 0 | (void) cached_has_bits; |
8809 | |
|
8810 | 0 | _has_bits_.Clear(); |
8811 | 0 | _internal_metadata_.Clear(); |
8812 | 0 | } |
8813 | | |
8814 | | bool RedisDelRequestPB::MergePartialFromCodedStream( |
8815 | 35 | ::google::protobuf::io::CodedInputStream* input) { |
8816 | 35 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
8817 | 35 | ::google::protobuf::uint32 tag; |
8818 | | // @@protoc_insertion_point(parse_start:yb.RedisDelRequestPB) |
8819 | 35 | for (;;) { |
8820 | 35 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8821 | 35 | tag = p.first; |
8822 | 35 | if (!p.second) goto handle_unusual; |
8823 | 35 | handle_unusual: |
8824 | 35 | if (tag == 0) { |
8825 | 35 | goto success; |
8826 | 35 | } |
8827 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
8828 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
8829 | 0 | } |
8830 | 35 | success: |
8831 | | // @@protoc_insertion_point(parse_success:yb.RedisDelRequestPB) |
8832 | 35 | return true; |
8833 | 0 | failure: |
8834 | | // @@protoc_insertion_point(parse_failure:yb.RedisDelRequestPB) |
8835 | 0 | return false; |
8836 | 35 | #undef DO_ |
8837 | 35 | } |
8838 | | |
8839 | | void RedisDelRequestPB::SerializeWithCachedSizes( |
8840 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8841 | | // @@protoc_insertion_point(serialize_start:yb.RedisDelRequestPB) |
8842 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8843 | 0 | (void) cached_has_bits; |
8844 | |
|
8845 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
8846 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
8847 | 0 | _internal_metadata_.unknown_fields(), output); |
8848 | 0 | } |
8849 | | // @@protoc_insertion_point(serialize_end:yb.RedisDelRequestPB) |
8850 | 0 | } |
8851 | | |
8852 | | ::google::protobuf::uint8* RedisDelRequestPB::InternalSerializeWithCachedSizesToArray( |
8853 | 35 | bool deterministic, ::google::protobuf::uint8* target) const { |
8854 | 35 | (void)deterministic; // Unused |
8855 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisDelRequestPB) |
8856 | 35 | ::google::protobuf::uint32 cached_has_bits = 0; |
8857 | 35 | (void) cached_has_bits; |
8858 | | |
8859 | 35 | if (_internal_metadata_.have_unknown_fields()) { |
8860 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
8861 | 0 | _internal_metadata_.unknown_fields(), target); |
8862 | 0 | } |
8863 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisDelRequestPB) |
8864 | 35 | return target; |
8865 | 35 | } |
8866 | | |
8867 | 136 | size_t RedisDelRequestPB::ByteSizeLong() const { |
8868 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisDelRequestPB) |
8869 | 136 | size_t total_size = 0; |
8870 | | |
8871 | 136 | if (_internal_metadata_.have_unknown_fields()) { |
8872 | 0 | total_size += |
8873 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
8874 | 0 | _internal_metadata_.unknown_fields()); |
8875 | 0 | } |
8876 | 136 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8877 | 136 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8878 | 136 | _cached_size_ = cached_size; |
8879 | 136 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8880 | 136 | return total_size; |
8881 | 136 | } |
8882 | | |
8883 | 0 | void RedisDelRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
8884 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisDelRequestPB) |
8885 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8886 | 0 | const RedisDelRequestPB* source = |
8887 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisDelRequestPB>( |
8888 | 0 | &from); |
8889 | 0 | if (source == NULL) { |
8890 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisDelRequestPB) |
8891 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
8892 | 0 | } else { |
8893 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisDelRequestPB) |
8894 | 0 | MergeFrom(*source); |
8895 | 0 | } |
8896 | 0 | } |
8897 | | |
8898 | 0 | void RedisDelRequestPB::MergeFrom(const RedisDelRequestPB& from) { |
8899 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisDelRequestPB) |
8900 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8901 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8902 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8903 | 0 | (void) cached_has_bits; |
8904 | |
|
8905 | 0 | } |
8906 | | |
8907 | 0 | void RedisDelRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
8908 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisDelRequestPB) |
8909 | 0 | if (&from == this) return; |
8910 | 0 | Clear(); |
8911 | 0 | MergeFrom(from); |
8912 | 0 | } |
8913 | | |
8914 | 0 | void RedisDelRequestPB::CopyFrom(const RedisDelRequestPB& from) { |
8915 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisDelRequestPB) |
8916 | 0 | if (&from == this) return; |
8917 | 0 | Clear(); |
8918 | 0 | MergeFrom(from); |
8919 | 0 | } |
8920 | | |
8921 | 0 | bool RedisDelRequestPB::IsInitialized() const { |
8922 | 0 | return true; |
8923 | 0 | } |
8924 | | |
8925 | 0 | void RedisDelRequestPB::Swap(RedisDelRequestPB* other) { |
8926 | 0 | if (other == this) return; |
8927 | 0 | InternalSwap(other); |
8928 | 0 | } |
8929 | 0 | void RedisDelRequestPB::InternalSwap(RedisDelRequestPB* other) { |
8930 | 0 | using std::swap; |
8931 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8932 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8933 | 0 | swap(_cached_size_, other->_cached_size_); |
8934 | 0 | } |
8935 | | |
8936 | 35 | ::google::protobuf::Metadata RedisDelRequestPB::GetMetadata() const { |
8937 | 35 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8938 | 35 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
8939 | 35 | } |
8940 | | |
8941 | | |
8942 | | // =================================================================== |
8943 | | |
8944 | 28.1k | void RedisExistsRequestPB::InitAsDefaultInstance() { |
8945 | 28.1k | } |
8946 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8947 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8948 | | |
8949 | | RedisExistsRequestPB::RedisExistsRequestPB() |
8950 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
8951 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8952 | 8 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisExistsRequestPB(); |
8953 | 8 | } |
8954 | 28.1k | SharedCtor(); |
8955 | | // @@protoc_insertion_point(constructor:yb.RedisExistsRequestPB) |
8956 | 28.1k | } |
8957 | | RedisExistsRequestPB::RedisExistsRequestPB(const RedisExistsRequestPB& from) |
8958 | | : ::google::protobuf::Message(), |
8959 | | _internal_metadata_(NULL), |
8960 | | _has_bits_(from._has_bits_), |
8961 | 0 | _cached_size_(0) { |
8962 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8963 | | // @@protoc_insertion_point(copy_constructor:yb.RedisExistsRequestPB) |
8964 | 0 | } |
8965 | | |
8966 | 28.1k | void RedisExistsRequestPB::SharedCtor() { |
8967 | 28.1k | _cached_size_ = 0; |
8968 | 28.1k | } |
8969 | | |
8970 | 8 | RedisExistsRequestPB::~RedisExistsRequestPB() { |
8971 | | // @@protoc_insertion_point(destructor:yb.RedisExistsRequestPB) |
8972 | 8 | SharedDtor(); |
8973 | 8 | } |
8974 | | |
8975 | 8 | void RedisExistsRequestPB::SharedDtor() { |
8976 | 8 | } |
8977 | | |
8978 | 0 | void RedisExistsRequestPB::SetCachedSize(int size) const { |
8979 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8980 | 0 | _cached_size_ = size; |
8981 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8982 | 0 | } |
8983 | 0 | const ::google::protobuf::Descriptor* RedisExistsRequestPB::descriptor() { |
8984 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
8985 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
8986 | 0 | } |
8987 | | |
8988 | 0 | const RedisExistsRequestPB& RedisExistsRequestPB::default_instance() { |
8989 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisExistsRequestPB(); |
8990 | 0 | return *internal_default_instance(); |
8991 | 0 | } |
8992 | | |
8993 | 0 | RedisExistsRequestPB* RedisExistsRequestPB::New(::google::protobuf::Arena* arena) const { |
8994 | 0 | RedisExistsRequestPB* n = new RedisExistsRequestPB; |
8995 | 0 | if (arena != NULL) { |
8996 | 0 | arena->Own(n); |
8997 | 0 | } |
8998 | 0 | return n; |
8999 | 0 | } |
9000 | | |
9001 | 0 | void RedisExistsRequestPB::Clear() { |
9002 | | // @@protoc_insertion_point(message_clear_start:yb.RedisExistsRequestPB) |
9003 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9004 | | // Prevent compiler warnings about cached_has_bits being unused |
9005 | 0 | (void) cached_has_bits; |
9006 | |
|
9007 | 0 | _has_bits_.Clear(); |
9008 | 0 | _internal_metadata_.Clear(); |
9009 | 0 | } |
9010 | | |
9011 | | bool RedisExistsRequestPB::MergePartialFromCodedStream( |
9012 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9013 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9014 | 0 | ::google::protobuf::uint32 tag; |
9015 | | // @@protoc_insertion_point(parse_start:yb.RedisExistsRequestPB) |
9016 | 0 | for (;;) { |
9017 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9018 | 0 | tag = p.first; |
9019 | 0 | if (!p.second) goto handle_unusual; |
9020 | 0 | handle_unusual: |
9021 | 0 | if (tag == 0) { |
9022 | 0 | goto success; |
9023 | 0 | } |
9024 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9025 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9026 | 0 | } |
9027 | 0 | success: |
9028 | | // @@protoc_insertion_point(parse_success:yb.RedisExistsRequestPB) |
9029 | 0 | return true; |
9030 | 0 | failure: |
9031 | | // @@protoc_insertion_point(parse_failure:yb.RedisExistsRequestPB) |
9032 | 0 | return false; |
9033 | 0 | #undef DO_ |
9034 | 0 | } |
9035 | | |
9036 | | void RedisExistsRequestPB::SerializeWithCachedSizes( |
9037 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9038 | | // @@protoc_insertion_point(serialize_start:yb.RedisExistsRequestPB) |
9039 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9040 | 0 | (void) cached_has_bits; |
9041 | |
|
9042 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9043 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9044 | 0 | _internal_metadata_.unknown_fields(), output); |
9045 | 0 | } |
9046 | | // @@protoc_insertion_point(serialize_end:yb.RedisExistsRequestPB) |
9047 | 0 | } |
9048 | | |
9049 | | ::google::protobuf::uint8* RedisExistsRequestPB::InternalSerializeWithCachedSizesToArray( |
9050 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9051 | 0 | (void)deterministic; // Unused |
9052 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisExistsRequestPB) |
9053 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9054 | 0 | (void) cached_has_bits; |
9055 | |
|
9056 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9057 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9058 | 0 | _internal_metadata_.unknown_fields(), target); |
9059 | 0 | } |
9060 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisExistsRequestPB) |
9061 | 0 | return target; |
9062 | 0 | } |
9063 | | |
9064 | 0 | size_t RedisExistsRequestPB::ByteSizeLong() const { |
9065 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisExistsRequestPB) |
9066 | 0 | size_t total_size = 0; |
9067 | |
|
9068 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9069 | 0 | total_size += |
9070 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9071 | 0 | _internal_metadata_.unknown_fields()); |
9072 | 0 | } |
9073 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9074 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9075 | 0 | _cached_size_ = cached_size; |
9076 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9077 | 0 | return total_size; |
9078 | 0 | } |
9079 | | |
9080 | 0 | void RedisExistsRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9081 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisExistsRequestPB) |
9082 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9083 | 0 | const RedisExistsRequestPB* source = |
9084 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisExistsRequestPB>( |
9085 | 0 | &from); |
9086 | 0 | if (source == NULL) { |
9087 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisExistsRequestPB) |
9088 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9089 | 0 | } else { |
9090 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisExistsRequestPB) |
9091 | 0 | MergeFrom(*source); |
9092 | 0 | } |
9093 | 0 | } |
9094 | | |
9095 | 4 | void RedisExistsRequestPB::MergeFrom(const RedisExistsRequestPB& from) { |
9096 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisExistsRequestPB) |
9097 | 4 | GOOGLE_DCHECK_NE(&from, this); |
9098 | 4 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9099 | 4 | ::google::protobuf::uint32 cached_has_bits = 0; |
9100 | 4 | (void) cached_has_bits; |
9101 | | |
9102 | 4 | } |
9103 | | |
9104 | 0 | void RedisExistsRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9105 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisExistsRequestPB) |
9106 | 0 | if (&from == this) return; |
9107 | 0 | Clear(); |
9108 | 0 | MergeFrom(from); |
9109 | 0 | } |
9110 | | |
9111 | 0 | void RedisExistsRequestPB::CopyFrom(const RedisExistsRequestPB& from) { |
9112 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisExistsRequestPB) |
9113 | 0 | if (&from == this) return; |
9114 | 0 | Clear(); |
9115 | 0 | MergeFrom(from); |
9116 | 0 | } |
9117 | | |
9118 | 0 | bool RedisExistsRequestPB::IsInitialized() const { |
9119 | 0 | return true; |
9120 | 0 | } |
9121 | | |
9122 | 0 | void RedisExistsRequestPB::Swap(RedisExistsRequestPB* other) { |
9123 | 0 | if (other == this) return; |
9124 | 0 | InternalSwap(other); |
9125 | 0 | } |
9126 | 0 | void RedisExistsRequestPB::InternalSwap(RedisExistsRequestPB* other) { |
9127 | 0 | using std::swap; |
9128 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9129 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9130 | 0 | swap(_cached_size_, other->_cached_size_); |
9131 | 0 | } |
9132 | | |
9133 | 4 | ::google::protobuf::Metadata RedisExistsRequestPB::GetMetadata() const { |
9134 | 4 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9135 | 4 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
9136 | 4 | } |
9137 | | |
9138 | | |
9139 | | // =================================================================== |
9140 | | |
9141 | 28.1k | void RedisSetRangeRequestPB::InitAsDefaultInstance() { |
9142 | 28.1k | } |
9143 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9144 | | const int RedisSetRangeRequestPB::kOffsetFieldNumber; |
9145 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9146 | | |
9147 | | RedisSetRangeRequestPB::RedisSetRangeRequestPB() |
9148 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9149 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9150 | 1 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRangeRequestPB(); |
9151 | 1 | } |
9152 | 28.1k | SharedCtor(); |
9153 | | // @@protoc_insertion_point(constructor:yb.RedisSetRangeRequestPB) |
9154 | 28.1k | } |
9155 | | RedisSetRangeRequestPB::RedisSetRangeRequestPB(const RedisSetRangeRequestPB& from) |
9156 | | : ::google::protobuf::Message(), |
9157 | | _internal_metadata_(NULL), |
9158 | | _has_bits_(from._has_bits_), |
9159 | 0 | _cached_size_(0) { |
9160 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9161 | 0 | offset_ = from.offset_; |
9162 | | // @@protoc_insertion_point(copy_constructor:yb.RedisSetRangeRequestPB) |
9163 | 0 | } |
9164 | | |
9165 | 28.1k | void RedisSetRangeRequestPB::SharedCtor() { |
9166 | 28.1k | _cached_size_ = 0; |
9167 | 28.1k | offset_ = 0; |
9168 | 28.1k | } |
9169 | | |
9170 | 1 | RedisSetRangeRequestPB::~RedisSetRangeRequestPB() { |
9171 | | // @@protoc_insertion_point(destructor:yb.RedisSetRangeRequestPB) |
9172 | 1 | SharedDtor(); |
9173 | 1 | } |
9174 | | |
9175 | 1 | void RedisSetRangeRequestPB::SharedDtor() { |
9176 | 1 | } |
9177 | | |
9178 | 0 | void RedisSetRangeRequestPB::SetCachedSize(int size) const { |
9179 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9180 | 0 | _cached_size_ = size; |
9181 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9182 | 0 | } |
9183 | 0 | const ::google::protobuf::Descriptor* RedisSetRangeRequestPB::descriptor() { |
9184 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9185 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9186 | 0 | } |
9187 | | |
9188 | 0 | const RedisSetRangeRequestPB& RedisSetRangeRequestPB::default_instance() { |
9189 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRangeRequestPB(); |
9190 | 0 | return *internal_default_instance(); |
9191 | 0 | } |
9192 | | |
9193 | 0 | RedisSetRangeRequestPB* RedisSetRangeRequestPB::New(::google::protobuf::Arena* arena) const { |
9194 | 0 | RedisSetRangeRequestPB* n = new RedisSetRangeRequestPB; |
9195 | 0 | if (arena != NULL) { |
9196 | 0 | arena->Own(n); |
9197 | 0 | } |
9198 | 0 | return n; |
9199 | 0 | } |
9200 | | |
9201 | 0 | void RedisSetRangeRequestPB::Clear() { |
9202 | | // @@protoc_insertion_point(message_clear_start:yb.RedisSetRangeRequestPB) |
9203 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9204 | | // Prevent compiler warnings about cached_has_bits being unused |
9205 | 0 | (void) cached_has_bits; |
9206 | |
|
9207 | 0 | offset_ = 0; |
9208 | 0 | _has_bits_.Clear(); |
9209 | 0 | _internal_metadata_.Clear(); |
9210 | 0 | } |
9211 | | |
9212 | | bool RedisSetRangeRequestPB::MergePartialFromCodedStream( |
9213 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9214 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9215 | 0 | ::google::protobuf::uint32 tag; |
9216 | | // @@protoc_insertion_point(parse_start:yb.RedisSetRangeRequestPB) |
9217 | 0 | for (;;) { |
9218 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9219 | 0 | tag = p.first; |
9220 | 0 | if (!p.second) goto handle_unusual; |
9221 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9222 | | // optional int32 offset = 2; |
9223 | 0 | case 2: { |
9224 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9225 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9226 | 0 | set_has_offset(); |
9227 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9228 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9229 | 0 | input, &offset_))); |
9230 | 0 | } else { |
9231 | 0 | goto handle_unusual; |
9232 | 0 | } |
9233 | 0 | break; |
9234 | 0 | } |
9235 | | |
9236 | 0 | default: { |
9237 | 0 | handle_unusual: |
9238 | 0 | if (tag == 0) { |
9239 | 0 | goto success; |
9240 | 0 | } |
9241 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9242 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9243 | 0 | break; |
9244 | 0 | } |
9245 | 0 | } |
9246 | 0 | } |
9247 | 0 | success: |
9248 | | // @@protoc_insertion_point(parse_success:yb.RedisSetRangeRequestPB) |
9249 | 0 | return true; |
9250 | 0 | failure: |
9251 | | // @@protoc_insertion_point(parse_failure:yb.RedisSetRangeRequestPB) |
9252 | 0 | return false; |
9253 | 0 | #undef DO_ |
9254 | 0 | } |
9255 | | |
9256 | | void RedisSetRangeRequestPB::SerializeWithCachedSizes( |
9257 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9258 | | // @@protoc_insertion_point(serialize_start:yb.RedisSetRangeRequestPB) |
9259 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9260 | 0 | (void) cached_has_bits; |
9261 | |
|
9262 | 0 | cached_has_bits = _has_bits_[0]; |
9263 | | // optional int32 offset = 2; |
9264 | 0 | if (cached_has_bits & 0x00000001u) { |
9265 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->offset(), output); |
9266 | 0 | } |
9267 | |
|
9268 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9269 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9270 | 0 | _internal_metadata_.unknown_fields(), output); |
9271 | 0 | } |
9272 | | // @@protoc_insertion_point(serialize_end:yb.RedisSetRangeRequestPB) |
9273 | 0 | } |
9274 | | |
9275 | | ::google::protobuf::uint8* RedisSetRangeRequestPB::InternalSerializeWithCachedSizesToArray( |
9276 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9277 | 0 | (void)deterministic; // Unused |
9278 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSetRangeRequestPB) |
9279 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9280 | 0 | (void) cached_has_bits; |
9281 | |
|
9282 | 0 | cached_has_bits = _has_bits_[0]; |
9283 | | // optional int32 offset = 2; |
9284 | 0 | if (cached_has_bits & 0x00000001u) { |
9285 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->offset(), target); |
9286 | 0 | } |
9287 | |
|
9288 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9289 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9290 | 0 | _internal_metadata_.unknown_fields(), target); |
9291 | 0 | } |
9292 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisSetRangeRequestPB) |
9293 | 0 | return target; |
9294 | 0 | } |
9295 | | |
9296 | 1 | size_t RedisSetRangeRequestPB::ByteSizeLong() const { |
9297 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisSetRangeRequestPB) |
9298 | 1 | size_t total_size = 0; |
9299 | | |
9300 | 1 | if (_internal_metadata_.have_unknown_fields()) { |
9301 | 0 | total_size += |
9302 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9303 | 0 | _internal_metadata_.unknown_fields()); |
9304 | 0 | } |
9305 | | // optional int32 offset = 2; |
9306 | 1 | if (has_offset()) { |
9307 | 1 | total_size += 1 + |
9308 | 1 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9309 | 1 | this->offset()); |
9310 | 1 | } |
9311 | | |
9312 | 1 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9313 | 1 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9314 | 1 | _cached_size_ = cached_size; |
9315 | 1 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9316 | 1 | return total_size; |
9317 | 1 | } |
9318 | | |
9319 | 0 | void RedisSetRangeRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9320 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisSetRangeRequestPB) |
9321 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9322 | 0 | const RedisSetRangeRequestPB* source = |
9323 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisSetRangeRequestPB>( |
9324 | 0 | &from); |
9325 | 0 | if (source == NULL) { |
9326 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisSetRangeRequestPB) |
9327 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9328 | 0 | } else { |
9329 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisSetRangeRequestPB) |
9330 | 0 | MergeFrom(*source); |
9331 | 0 | } |
9332 | 0 | } |
9333 | | |
9334 | 0 | void RedisSetRangeRequestPB::MergeFrom(const RedisSetRangeRequestPB& from) { |
9335 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisSetRangeRequestPB) |
9336 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9337 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9338 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9339 | 0 | (void) cached_has_bits; |
9340 | |
|
9341 | 0 | if (from.has_offset()) { |
9342 | 0 | set_offset(from.offset()); |
9343 | 0 | } |
9344 | 0 | } |
9345 | | |
9346 | 0 | void RedisSetRangeRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9347 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisSetRangeRequestPB) |
9348 | 0 | if (&from == this) return; |
9349 | 0 | Clear(); |
9350 | 0 | MergeFrom(from); |
9351 | 0 | } |
9352 | | |
9353 | 0 | void RedisSetRangeRequestPB::CopyFrom(const RedisSetRangeRequestPB& from) { |
9354 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisSetRangeRequestPB) |
9355 | 0 | if (&from == this) return; |
9356 | 0 | Clear(); |
9357 | 0 | MergeFrom(from); |
9358 | 0 | } |
9359 | | |
9360 | 0 | bool RedisSetRangeRequestPB::IsInitialized() const { |
9361 | 0 | return true; |
9362 | 0 | } |
9363 | | |
9364 | 0 | void RedisSetRangeRequestPB::Swap(RedisSetRangeRequestPB* other) { |
9365 | 0 | if (other == this) return; |
9366 | 0 | InternalSwap(other); |
9367 | 0 | } |
9368 | 0 | void RedisSetRangeRequestPB::InternalSwap(RedisSetRangeRequestPB* other) { |
9369 | 0 | using std::swap; |
9370 | 0 | swap(offset_, other->offset_); |
9371 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9372 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9373 | 0 | swap(_cached_size_, other->_cached_size_); |
9374 | 0 | } |
9375 | | |
9376 | 0 | ::google::protobuf::Metadata RedisSetRangeRequestPB::GetMetadata() const { |
9377 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9378 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
9379 | 0 | } |
9380 | | |
9381 | | |
9382 | | // =================================================================== |
9383 | | |
9384 | 28.1k | void RedisGetRangeRequestPB::InitAsDefaultInstance() { |
9385 | 28.1k | } |
9386 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9387 | | const int RedisGetRangeRequestPB::kStartFieldNumber; |
9388 | | const int RedisGetRangeRequestPB::kEndFieldNumber; |
9389 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9390 | | |
9391 | | RedisGetRangeRequestPB::RedisGetRangeRequestPB() |
9392 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9393 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9394 | 4 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRangeRequestPB(); |
9395 | 4 | } |
9396 | 28.1k | SharedCtor(); |
9397 | | // @@protoc_insertion_point(constructor:yb.RedisGetRangeRequestPB) |
9398 | 28.1k | } |
9399 | | RedisGetRangeRequestPB::RedisGetRangeRequestPB(const RedisGetRangeRequestPB& from) |
9400 | | : ::google::protobuf::Message(), |
9401 | | _internal_metadata_(NULL), |
9402 | | _has_bits_(from._has_bits_), |
9403 | 0 | _cached_size_(0) { |
9404 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9405 | 0 | ::memcpy(&start_, &from.start_, |
9406 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&end_) - |
9407 | 0 | reinterpret_cast<char*>(&start_)) + sizeof(end_)); |
9408 | | // @@protoc_insertion_point(copy_constructor:yb.RedisGetRangeRequestPB) |
9409 | 0 | } |
9410 | | |
9411 | 28.1k | void RedisGetRangeRequestPB::SharedCtor() { |
9412 | 28.1k | _cached_size_ = 0; |
9413 | 28.1k | ::memset(&start_, 0, static_cast<size_t>( |
9414 | 28.1k | reinterpret_cast<char*>(&end_) - |
9415 | 28.1k | reinterpret_cast<char*>(&start_)) + sizeof(end_)); |
9416 | 28.1k | } |
9417 | | |
9418 | 4 | RedisGetRangeRequestPB::~RedisGetRangeRequestPB() { |
9419 | | // @@protoc_insertion_point(destructor:yb.RedisGetRangeRequestPB) |
9420 | 4 | SharedDtor(); |
9421 | 4 | } |
9422 | | |
9423 | 4 | void RedisGetRangeRequestPB::SharedDtor() { |
9424 | 4 | } |
9425 | | |
9426 | 0 | void RedisGetRangeRequestPB::SetCachedSize(int size) const { |
9427 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9428 | 0 | _cached_size_ = size; |
9429 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9430 | 0 | } |
9431 | 0 | const ::google::protobuf::Descriptor* RedisGetRangeRequestPB::descriptor() { |
9432 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9433 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9434 | 0 | } |
9435 | | |
9436 | 0 | const RedisGetRangeRequestPB& RedisGetRangeRequestPB::default_instance() { |
9437 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRangeRequestPB(); |
9438 | 0 | return *internal_default_instance(); |
9439 | 0 | } |
9440 | | |
9441 | 0 | RedisGetRangeRequestPB* RedisGetRangeRequestPB::New(::google::protobuf::Arena* arena) const { |
9442 | 0 | RedisGetRangeRequestPB* n = new RedisGetRangeRequestPB; |
9443 | 0 | if (arena != NULL) { |
9444 | 0 | arena->Own(n); |
9445 | 0 | } |
9446 | 0 | return n; |
9447 | 0 | } |
9448 | | |
9449 | 0 | void RedisGetRangeRequestPB::Clear() { |
9450 | | // @@protoc_insertion_point(message_clear_start:yb.RedisGetRangeRequestPB) |
9451 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9452 | | // Prevent compiler warnings about cached_has_bits being unused |
9453 | 0 | (void) cached_has_bits; |
9454 | |
|
9455 | 0 | cached_has_bits = _has_bits_[0]; |
9456 | 0 | if (cached_has_bits & 3u) { |
9457 | 0 | ::memset(&start_, 0, static_cast<size_t>( |
9458 | 0 | reinterpret_cast<char*>(&end_) - |
9459 | 0 | reinterpret_cast<char*>(&start_)) + sizeof(end_)); |
9460 | 0 | } |
9461 | 0 | _has_bits_.Clear(); |
9462 | 0 | _internal_metadata_.Clear(); |
9463 | 0 | } |
9464 | | |
9465 | | bool RedisGetRangeRequestPB::MergePartialFromCodedStream( |
9466 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9467 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9468 | 0 | ::google::protobuf::uint32 tag; |
9469 | | // @@protoc_insertion_point(parse_start:yb.RedisGetRangeRequestPB) |
9470 | 0 | for (;;) { |
9471 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9472 | 0 | tag = p.first; |
9473 | 0 | if (!p.second) goto handle_unusual; |
9474 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9475 | | // optional int32 start = 2; |
9476 | 0 | case 2: { |
9477 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9478 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9479 | 0 | set_has_start(); |
9480 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9481 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9482 | 0 | input, &start_))); |
9483 | 0 | } else { |
9484 | 0 | goto handle_unusual; |
9485 | 0 | } |
9486 | 0 | break; |
9487 | 0 | } |
9488 | | |
9489 | | // optional int32 end = 3; |
9490 | 0 | case 3: { |
9491 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9492 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
9493 | 0 | set_has_end(); |
9494 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9495 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
9496 | 0 | input, &end_))); |
9497 | 0 | } else { |
9498 | 0 | goto handle_unusual; |
9499 | 0 | } |
9500 | 0 | break; |
9501 | 0 | } |
9502 | | |
9503 | 0 | default: { |
9504 | 0 | handle_unusual: |
9505 | 0 | if (tag == 0) { |
9506 | 0 | goto success; |
9507 | 0 | } |
9508 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9509 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9510 | 0 | break; |
9511 | 0 | } |
9512 | 0 | } |
9513 | 0 | } |
9514 | 0 | success: |
9515 | | // @@protoc_insertion_point(parse_success:yb.RedisGetRangeRequestPB) |
9516 | 0 | return true; |
9517 | 0 | failure: |
9518 | | // @@protoc_insertion_point(parse_failure:yb.RedisGetRangeRequestPB) |
9519 | 0 | return false; |
9520 | 0 | #undef DO_ |
9521 | 0 | } |
9522 | | |
9523 | | void RedisGetRangeRequestPB::SerializeWithCachedSizes( |
9524 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9525 | | // @@protoc_insertion_point(serialize_start:yb.RedisGetRangeRequestPB) |
9526 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9527 | 0 | (void) cached_has_bits; |
9528 | |
|
9529 | 0 | cached_has_bits = _has_bits_[0]; |
9530 | | // optional int32 start = 2; |
9531 | 0 | if (cached_has_bits & 0x00000001u) { |
9532 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->start(), output); |
9533 | 0 | } |
9534 | | |
9535 | | // optional int32 end = 3; |
9536 | 0 | if (cached_has_bits & 0x00000002u) { |
9537 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->end(), output); |
9538 | 0 | } |
9539 | |
|
9540 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9541 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9542 | 0 | _internal_metadata_.unknown_fields(), output); |
9543 | 0 | } |
9544 | | // @@protoc_insertion_point(serialize_end:yb.RedisGetRangeRequestPB) |
9545 | 0 | } |
9546 | | |
9547 | | ::google::protobuf::uint8* RedisGetRangeRequestPB::InternalSerializeWithCachedSizesToArray( |
9548 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
9549 | 0 | (void)deterministic; // Unused |
9550 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetRangeRequestPB) |
9551 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9552 | 0 | (void) cached_has_bits; |
9553 | |
|
9554 | 0 | cached_has_bits = _has_bits_[0]; |
9555 | | // optional int32 start = 2; |
9556 | 0 | if (cached_has_bits & 0x00000001u) { |
9557 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->start(), target); |
9558 | 0 | } |
9559 | | |
9560 | | // optional int32 end = 3; |
9561 | 0 | if (cached_has_bits & 0x00000002u) { |
9562 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->end(), target); |
9563 | 0 | } |
9564 | |
|
9565 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9566 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9567 | 0 | _internal_metadata_.unknown_fields(), target); |
9568 | 0 | } |
9569 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisGetRangeRequestPB) |
9570 | 0 | return target; |
9571 | 0 | } |
9572 | | |
9573 | 0 | size_t RedisGetRangeRequestPB::ByteSizeLong() const { |
9574 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisGetRangeRequestPB) |
9575 | 0 | size_t total_size = 0; |
9576 | |
|
9577 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9578 | 0 | total_size += |
9579 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9580 | 0 | _internal_metadata_.unknown_fields()); |
9581 | 0 | } |
9582 | 0 | if (_has_bits_[0 / 32] & 3u) { |
9583 | | // optional int32 start = 2; |
9584 | 0 | if (has_start()) { |
9585 | 0 | total_size += 1 + |
9586 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9587 | 0 | this->start()); |
9588 | 0 | } |
9589 | | |
9590 | | // optional int32 end = 3; |
9591 | 0 | if (has_end()) { |
9592 | 0 | total_size += 1 + |
9593 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
9594 | 0 | this->end()); |
9595 | 0 | } |
9596 | |
|
9597 | 0 | } |
9598 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9599 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9600 | 0 | _cached_size_ = cached_size; |
9601 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9602 | 0 | return total_size; |
9603 | 0 | } |
9604 | | |
9605 | 0 | void RedisGetRangeRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9606 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisGetRangeRequestPB) |
9607 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9608 | 0 | const RedisGetRangeRequestPB* source = |
9609 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisGetRangeRequestPB>( |
9610 | 0 | &from); |
9611 | 0 | if (source == NULL) { |
9612 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisGetRangeRequestPB) |
9613 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9614 | 0 | } else { |
9615 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisGetRangeRequestPB) |
9616 | 0 | MergeFrom(*source); |
9617 | 0 | } |
9618 | 0 | } |
9619 | | |
9620 | 2 | void RedisGetRangeRequestPB::MergeFrom(const RedisGetRangeRequestPB& from) { |
9621 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetRangeRequestPB) |
9622 | 2 | GOOGLE_DCHECK_NE(&from, this); |
9623 | 2 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9624 | 2 | ::google::protobuf::uint32 cached_has_bits = 0; |
9625 | 2 | (void) cached_has_bits; |
9626 | | |
9627 | 2 | cached_has_bits = from._has_bits_[0]; |
9628 | 2 | if (cached_has_bits & 3u) { |
9629 | 2 | if (cached_has_bits & 0x00000001u) { |
9630 | 2 | start_ = from.start_; |
9631 | 2 | } |
9632 | 2 | if (cached_has_bits & 0x00000002u) { |
9633 | 2 | end_ = from.end_; |
9634 | 2 | } |
9635 | 2 | _has_bits_[0] |= cached_has_bits; |
9636 | 2 | } |
9637 | 2 | } |
9638 | | |
9639 | 0 | void RedisGetRangeRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9640 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisGetRangeRequestPB) |
9641 | 0 | if (&from == this) return; |
9642 | 0 | Clear(); |
9643 | 0 | MergeFrom(from); |
9644 | 0 | } |
9645 | | |
9646 | 0 | void RedisGetRangeRequestPB::CopyFrom(const RedisGetRangeRequestPB& from) { |
9647 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisGetRangeRequestPB) |
9648 | 0 | if (&from == this) return; |
9649 | 0 | Clear(); |
9650 | 0 | MergeFrom(from); |
9651 | 0 | } |
9652 | | |
9653 | 0 | bool RedisGetRangeRequestPB::IsInitialized() const { |
9654 | 0 | return true; |
9655 | 0 | } |
9656 | | |
9657 | 0 | void RedisGetRangeRequestPB::Swap(RedisGetRangeRequestPB* other) { |
9658 | 0 | if (other == this) return; |
9659 | 0 | InternalSwap(other); |
9660 | 0 | } |
9661 | 0 | void RedisGetRangeRequestPB::InternalSwap(RedisGetRangeRequestPB* other) { |
9662 | 0 | using std::swap; |
9663 | 0 | swap(start_, other->start_); |
9664 | 0 | swap(end_, other->end_); |
9665 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9666 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9667 | 0 | swap(_cached_size_, other->_cached_size_); |
9668 | 0 | } |
9669 | | |
9670 | 2 | ::google::protobuf::Metadata RedisGetRangeRequestPB::GetMetadata() const { |
9671 | 2 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9672 | 2 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
9673 | 2 | } |
9674 | | |
9675 | | |
9676 | | // =================================================================== |
9677 | | |
9678 | 28.1k | void RedisIncrRequestPB::InitAsDefaultInstance() { |
9679 | 28.1k | } |
9680 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9681 | | const int RedisIncrRequestPB::kIncrementIntFieldNumber; |
9682 | | const int RedisIncrRequestPB::kIncrementFloatFieldNumber; |
9683 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9684 | | |
9685 | | RedisIncrRequestPB::RedisIncrRequestPB() |
9686 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9687 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9688 | 37 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIncrRequestPB(); |
9689 | 37 | } |
9690 | 28.1k | SharedCtor(); |
9691 | | // @@protoc_insertion_point(constructor:yb.RedisIncrRequestPB) |
9692 | 28.1k | } |
9693 | | RedisIncrRequestPB::RedisIncrRequestPB(const RedisIncrRequestPB& from) |
9694 | | : ::google::protobuf::Message(), |
9695 | | _internal_metadata_(NULL), |
9696 | | _has_bits_(from._has_bits_), |
9697 | 0 | _cached_size_(0) { |
9698 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9699 | 0 | ::memcpy(&increment_float_, &from.increment_float_, |
9700 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&increment_int_) - |
9701 | 0 | reinterpret_cast<char*>(&increment_float_)) + sizeof(increment_int_)); |
9702 | | // @@protoc_insertion_point(copy_constructor:yb.RedisIncrRequestPB) |
9703 | 0 | } |
9704 | | |
9705 | 28.1k | void RedisIncrRequestPB::SharedCtor() { |
9706 | 28.1k | _cached_size_ = 0; |
9707 | 28.1k | increment_float_ = 0; |
9708 | 28.1k | increment_int_ = GOOGLE_LONGLONG(1); |
9709 | 28.1k | } |
9710 | | |
9711 | 37 | RedisIncrRequestPB::~RedisIncrRequestPB() { |
9712 | | // @@protoc_insertion_point(destructor:yb.RedisIncrRequestPB) |
9713 | 37 | SharedDtor(); |
9714 | 37 | } |
9715 | | |
9716 | 37 | void RedisIncrRequestPB::SharedDtor() { |
9717 | 37 | } |
9718 | | |
9719 | 0 | void RedisIncrRequestPB::SetCachedSize(int size) const { |
9720 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9721 | 0 | _cached_size_ = size; |
9722 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9723 | 0 | } |
9724 | 0 | const ::google::protobuf::Descriptor* RedisIncrRequestPB::descriptor() { |
9725 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9726 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
9727 | 0 | } |
9728 | | |
9729 | 0 | const RedisIncrRequestPB& RedisIncrRequestPB::default_instance() { |
9730 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIncrRequestPB(); |
9731 | 0 | return *internal_default_instance(); |
9732 | 0 | } |
9733 | | |
9734 | 0 | RedisIncrRequestPB* RedisIncrRequestPB::New(::google::protobuf::Arena* arena) const { |
9735 | 0 | RedisIncrRequestPB* n = new RedisIncrRequestPB; |
9736 | 0 | if (arena != NULL) { |
9737 | 0 | arena->Own(n); |
9738 | 0 | } |
9739 | 0 | return n; |
9740 | 0 | } |
9741 | | |
9742 | 0 | void RedisIncrRequestPB::Clear() { |
9743 | | // @@protoc_insertion_point(message_clear_start:yb.RedisIncrRequestPB) |
9744 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9745 | | // Prevent compiler warnings about cached_has_bits being unused |
9746 | 0 | (void) cached_has_bits; |
9747 | |
|
9748 | 0 | cached_has_bits = _has_bits_[0]; |
9749 | 0 | if (cached_has_bits & 3u) { |
9750 | 0 | increment_float_ = 0; |
9751 | 0 | increment_int_ = GOOGLE_LONGLONG(1); |
9752 | 0 | } |
9753 | 0 | _has_bits_.Clear(); |
9754 | 0 | _internal_metadata_.Clear(); |
9755 | 0 | } |
9756 | | |
9757 | | bool RedisIncrRequestPB::MergePartialFromCodedStream( |
9758 | 14 | ::google::protobuf::io::CodedInputStream* input) { |
9759 | 14 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
9760 | 14 | ::google::protobuf::uint32 tag; |
9761 | | // @@protoc_insertion_point(parse_start:yb.RedisIncrRequestPB) |
9762 | 28 | for (;;) { |
9763 | 28 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9764 | 28 | tag = p.first; |
9765 | 28 | if (!p.second) goto handle_unusual14 ; |
9766 | 14 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9767 | | // optional int64 increment_int = 2 [default = 1]; |
9768 | 14 | case 2: { |
9769 | 14 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9770 | 14 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9771 | 14 | set_has_increment_int(); |
9772 | 14 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9773 | 14 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
9774 | 14 | input, &increment_int_))); |
9775 | 14 | } else { |
9776 | 0 | goto handle_unusual; |
9777 | 0 | } |
9778 | 14 | break; |
9779 | 14 | } |
9780 | | |
9781 | | // optional double increment_float = 3; |
9782 | 14 | case 3: { |
9783 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9784 | 0 | static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { |
9785 | 0 | set_has_increment_float(); |
9786 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9787 | 0 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
9788 | 0 | input, &increment_float_))); |
9789 | 0 | } else { |
9790 | 0 | goto handle_unusual; |
9791 | 0 | } |
9792 | 0 | break; |
9793 | 0 | } |
9794 | | |
9795 | 0 | default: { |
9796 | 14 | handle_unusual: |
9797 | 14 | if (tag == 0) { |
9798 | 14 | goto success; |
9799 | 14 | } |
9800 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
9801 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
9802 | 0 | break; |
9803 | 0 | } |
9804 | 14 | } |
9805 | 14 | } |
9806 | 14 | success: |
9807 | | // @@protoc_insertion_point(parse_success:yb.RedisIncrRequestPB) |
9808 | 14 | return true; |
9809 | 0 | failure: |
9810 | | // @@protoc_insertion_point(parse_failure:yb.RedisIncrRequestPB) |
9811 | 0 | return false; |
9812 | 14 | #undef DO_ |
9813 | 14 | } |
9814 | | |
9815 | | void RedisIncrRequestPB::SerializeWithCachedSizes( |
9816 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9817 | | // @@protoc_insertion_point(serialize_start:yb.RedisIncrRequestPB) |
9818 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9819 | 0 | (void) cached_has_bits; |
9820 | |
|
9821 | 0 | cached_has_bits = _has_bits_[0]; |
9822 | | // optional int64 increment_int = 2 [default = 1]; |
9823 | 0 | if (cached_has_bits & 0x00000002u) { |
9824 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->increment_int(), output); |
9825 | 0 | } |
9826 | | |
9827 | | // optional double increment_float = 3; |
9828 | 0 | if (cached_has_bits & 0x00000001u) { |
9829 | 0 | ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->increment_float(), output); |
9830 | 0 | } |
9831 | |
|
9832 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
9833 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
9834 | 0 | _internal_metadata_.unknown_fields(), output); |
9835 | 0 | } |
9836 | | // @@protoc_insertion_point(serialize_end:yb.RedisIncrRequestPB) |
9837 | 0 | } |
9838 | | |
9839 | | ::google::protobuf::uint8* RedisIncrRequestPB::InternalSerializeWithCachedSizesToArray( |
9840 | 14 | bool deterministic, ::google::protobuf::uint8* target) const { |
9841 | 14 | (void)deterministic; // Unused |
9842 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIncrRequestPB) |
9843 | 14 | ::google::protobuf::uint32 cached_has_bits = 0; |
9844 | 14 | (void) cached_has_bits; |
9845 | | |
9846 | 14 | cached_has_bits = _has_bits_[0]; |
9847 | | // optional int64 increment_int = 2 [default = 1]; |
9848 | 14 | if (cached_has_bits & 0x00000002u) { |
9849 | 14 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->increment_int(), target); |
9850 | 14 | } |
9851 | | |
9852 | | // optional double increment_float = 3; |
9853 | 14 | if (cached_has_bits & 0x00000001u) { |
9854 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->increment_float(), target); |
9855 | 0 | } |
9856 | | |
9857 | 14 | if (_internal_metadata_.have_unknown_fields()) { |
9858 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
9859 | 0 | _internal_metadata_.unknown_fields(), target); |
9860 | 0 | } |
9861 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisIncrRequestPB) |
9862 | 14 | return target; |
9863 | 14 | } |
9864 | | |
9865 | 51 | size_t RedisIncrRequestPB::ByteSizeLong() const { |
9866 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisIncrRequestPB) |
9867 | 51 | size_t total_size = 0; |
9868 | | |
9869 | 51 | if (_internal_metadata_.have_unknown_fields()) { |
9870 | 0 | total_size += |
9871 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
9872 | 0 | _internal_metadata_.unknown_fields()); |
9873 | 0 | } |
9874 | 51 | if (_has_bits_[0 / 32] & 3u) { |
9875 | | // optional double increment_float = 3; |
9876 | 51 | if (has_increment_float()) { |
9877 | 0 | total_size += 1 + 8; |
9878 | 0 | } |
9879 | | |
9880 | | // optional int64 increment_int = 2 [default = 1]; |
9881 | 51 | if (has_increment_int()) { |
9882 | 51 | total_size += 1 + |
9883 | 51 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
9884 | 51 | this->increment_int()); |
9885 | 51 | } |
9886 | | |
9887 | 51 | } |
9888 | 51 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9889 | 51 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9890 | 51 | _cached_size_ = cached_size; |
9891 | 51 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9892 | 51 | return total_size; |
9893 | 51 | } |
9894 | | |
9895 | 0 | void RedisIncrRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
9896 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisIncrRequestPB) |
9897 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9898 | 0 | const RedisIncrRequestPB* source = |
9899 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisIncrRequestPB>( |
9900 | 0 | &from); |
9901 | 0 | if (source == NULL) { |
9902 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisIncrRequestPB) |
9903 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
9904 | 0 | } else { |
9905 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisIncrRequestPB) |
9906 | 0 | MergeFrom(*source); |
9907 | 0 | } |
9908 | 0 | } |
9909 | | |
9910 | 0 | void RedisIncrRequestPB::MergeFrom(const RedisIncrRequestPB& from) { |
9911 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisIncrRequestPB) |
9912 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9913 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9914 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9915 | 0 | (void) cached_has_bits; |
9916 | |
|
9917 | 0 | cached_has_bits = from._has_bits_[0]; |
9918 | 0 | if (cached_has_bits & 3u) { |
9919 | 0 | if (cached_has_bits & 0x00000001u) { |
9920 | 0 | increment_float_ = from.increment_float_; |
9921 | 0 | } |
9922 | 0 | if (cached_has_bits & 0x00000002u) { |
9923 | 0 | increment_int_ = from.increment_int_; |
9924 | 0 | } |
9925 | 0 | _has_bits_[0] |= cached_has_bits; |
9926 | 0 | } |
9927 | 0 | } |
9928 | | |
9929 | 0 | void RedisIncrRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
9930 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisIncrRequestPB) |
9931 | 0 | if (&from == this) return; |
9932 | 0 | Clear(); |
9933 | 0 | MergeFrom(from); |
9934 | 0 | } |
9935 | | |
9936 | 0 | void RedisIncrRequestPB::CopyFrom(const RedisIncrRequestPB& from) { |
9937 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisIncrRequestPB) |
9938 | 0 | if (&from == this) return; |
9939 | 0 | Clear(); |
9940 | 0 | MergeFrom(from); |
9941 | 0 | } |
9942 | | |
9943 | 0 | bool RedisIncrRequestPB::IsInitialized() const { |
9944 | 0 | return true; |
9945 | 0 | } |
9946 | | |
9947 | 0 | void RedisIncrRequestPB::Swap(RedisIncrRequestPB* other) { |
9948 | 0 | if (other == this) return; |
9949 | 0 | InternalSwap(other); |
9950 | 0 | } |
9951 | 0 | void RedisIncrRequestPB::InternalSwap(RedisIncrRequestPB* other) { |
9952 | 0 | using std::swap; |
9953 | 0 | swap(increment_float_, other->increment_float_); |
9954 | 0 | swap(increment_int_, other->increment_int_); |
9955 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9956 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9957 | 0 | swap(_cached_size_, other->_cached_size_); |
9958 | 0 | } |
9959 | | |
9960 | 14 | ::google::protobuf::Metadata RedisIncrRequestPB::GetMetadata() const { |
9961 | 14 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
9962 | 14 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
9963 | 14 | } |
9964 | | |
9965 | | |
9966 | | // =================================================================== |
9967 | | |
9968 | 28.1k | void RedisPushRequestPB::InitAsDefaultInstance() { |
9969 | 28.1k | } |
9970 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9971 | | const int RedisPushRequestPB::kSideFieldNumber; |
9972 | | const int RedisPushRequestPB::kCheckExistenceFieldNumber; |
9973 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9974 | | |
9975 | | RedisPushRequestPB::RedisPushRequestPB() |
9976 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
9977 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9978 | 26 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPushRequestPB(); |
9979 | 26 | } |
9980 | 28.1k | SharedCtor(); |
9981 | | // @@protoc_insertion_point(constructor:yb.RedisPushRequestPB) |
9982 | 28.1k | } |
9983 | | RedisPushRequestPB::RedisPushRequestPB(const RedisPushRequestPB& from) |
9984 | | : ::google::protobuf::Message(), |
9985 | | _internal_metadata_(NULL), |
9986 | | _has_bits_(from._has_bits_), |
9987 | 0 | _cached_size_(0) { |
9988 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9989 | 0 | ::memcpy(&check_existence_, &from.check_existence_, |
9990 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&side_) - |
9991 | 0 | reinterpret_cast<char*>(&check_existence_)) + sizeof(side_)); |
9992 | | // @@protoc_insertion_point(copy_constructor:yb.RedisPushRequestPB) |
9993 | 0 | } |
9994 | | |
9995 | 28.1k | void RedisPushRequestPB::SharedCtor() { |
9996 | 28.1k | _cached_size_ = 0; |
9997 | 28.1k | check_existence_ = false; |
9998 | 28.1k | side_ = 1; |
9999 | 28.1k | } |
10000 | | |
10001 | 26 | RedisPushRequestPB::~RedisPushRequestPB() { |
10002 | | // @@protoc_insertion_point(destructor:yb.RedisPushRequestPB) |
10003 | 26 | SharedDtor(); |
10004 | 26 | } |
10005 | | |
10006 | 26 | void RedisPushRequestPB::SharedDtor() { |
10007 | 26 | } |
10008 | | |
10009 | 0 | void RedisPushRequestPB::SetCachedSize(int size) const { |
10010 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10011 | 0 | _cached_size_ = size; |
10012 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10013 | 0 | } |
10014 | 0 | const ::google::protobuf::Descriptor* RedisPushRequestPB::descriptor() { |
10015 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10016 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10017 | 0 | } |
10018 | | |
10019 | 0 | const RedisPushRequestPB& RedisPushRequestPB::default_instance() { |
10020 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPushRequestPB(); |
10021 | 0 | return *internal_default_instance(); |
10022 | 0 | } |
10023 | | |
10024 | 0 | RedisPushRequestPB* RedisPushRequestPB::New(::google::protobuf::Arena* arena) const { |
10025 | 0 | RedisPushRequestPB* n = new RedisPushRequestPB; |
10026 | 0 | if (arena != NULL) { |
10027 | 0 | arena->Own(n); |
10028 | 0 | } |
10029 | 0 | return n; |
10030 | 0 | } |
10031 | | |
10032 | 0 | void RedisPushRequestPB::Clear() { |
10033 | | // @@protoc_insertion_point(message_clear_start:yb.RedisPushRequestPB) |
10034 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10035 | | // Prevent compiler warnings about cached_has_bits being unused |
10036 | 0 | (void) cached_has_bits; |
10037 | |
|
10038 | 0 | cached_has_bits = _has_bits_[0]; |
10039 | 0 | if (cached_has_bits & 3u) { |
10040 | 0 | check_existence_ = false; |
10041 | 0 | side_ = 1; |
10042 | 0 | } |
10043 | 0 | _has_bits_.Clear(); |
10044 | 0 | _internal_metadata_.Clear(); |
10045 | 0 | } |
10046 | | |
10047 | | bool RedisPushRequestPB::MergePartialFromCodedStream( |
10048 | 10 | ::google::protobuf::io::CodedInputStream* input) { |
10049 | 10 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
10050 | 10 | ::google::protobuf::uint32 tag; |
10051 | | // @@protoc_insertion_point(parse_start:yb.RedisPushRequestPB) |
10052 | 20 | for (;;) { |
10053 | 20 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10054 | 20 | tag = p.first; |
10055 | 20 | if (!p.second) goto handle_unusual10 ; |
10056 | 10 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10057 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10058 | 10 | case 2: { |
10059 | 10 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10060 | 10 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10061 | 10 | int value; |
10062 | 10 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10063 | 10 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10064 | 10 | input, &value))); |
10065 | 10 | if (::yb::RedisSide_IsValid(value)) { |
10066 | 10 | set_side(static_cast< ::yb::RedisSide >(value)); |
10067 | 10 | } else { |
10068 | 0 | mutable_unknown_fields()->AddVarint( |
10069 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10070 | 0 | } |
10071 | 10 | } else { |
10072 | 0 | goto handle_unusual; |
10073 | 0 | } |
10074 | 10 | break; |
10075 | 10 | } |
10076 | | |
10077 | | // optional bool check_existence = 3 [default = false]; |
10078 | 10 | case 3: { |
10079 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10080 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
10081 | 0 | set_has_check_existence(); |
10082 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10083 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
10084 | 0 | input, &check_existence_))); |
10085 | 0 | } else { |
10086 | 0 | goto handle_unusual; |
10087 | 0 | } |
10088 | 0 | break; |
10089 | 0 | } |
10090 | | |
10091 | 0 | default: { |
10092 | 10 | handle_unusual: |
10093 | 10 | if (tag == 0) { |
10094 | 10 | goto success; |
10095 | 10 | } |
10096 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10097 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10098 | 0 | break; |
10099 | 0 | } |
10100 | 10 | } |
10101 | 10 | } |
10102 | 10 | success: |
10103 | | // @@protoc_insertion_point(parse_success:yb.RedisPushRequestPB) |
10104 | 10 | return true; |
10105 | 0 | failure: |
10106 | | // @@protoc_insertion_point(parse_failure:yb.RedisPushRequestPB) |
10107 | 0 | return false; |
10108 | 10 | #undef DO_ |
10109 | 10 | } |
10110 | | |
10111 | | void RedisPushRequestPB::SerializeWithCachedSizes( |
10112 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10113 | | // @@protoc_insertion_point(serialize_start:yb.RedisPushRequestPB) |
10114 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10115 | 0 | (void) cached_has_bits; |
10116 | |
|
10117 | 0 | cached_has_bits = _has_bits_[0]; |
10118 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10119 | 0 | if (cached_has_bits & 0x00000002u) { |
10120 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10121 | 0 | 2, this->side(), output); |
10122 | 0 | } |
10123 | | |
10124 | | // optional bool check_existence = 3 [default = false]; |
10125 | 0 | if (cached_has_bits & 0x00000001u) { |
10126 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->check_existence(), output); |
10127 | 0 | } |
10128 | |
|
10129 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10130 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10131 | 0 | _internal_metadata_.unknown_fields(), output); |
10132 | 0 | } |
10133 | | // @@protoc_insertion_point(serialize_end:yb.RedisPushRequestPB) |
10134 | 0 | } |
10135 | | |
10136 | | ::google::protobuf::uint8* RedisPushRequestPB::InternalSerializeWithCachedSizesToArray( |
10137 | 10 | bool deterministic, ::google::protobuf::uint8* target) const { |
10138 | 10 | (void)deterministic; // Unused |
10139 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisPushRequestPB) |
10140 | 10 | ::google::protobuf::uint32 cached_has_bits = 0; |
10141 | 10 | (void) cached_has_bits; |
10142 | | |
10143 | 10 | cached_has_bits = _has_bits_[0]; |
10144 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10145 | 10 | if (cached_has_bits & 0x00000002u) { |
10146 | 10 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10147 | 10 | 2, this->side(), target); |
10148 | 10 | } |
10149 | | |
10150 | | // optional bool check_existence = 3 [default = false]; |
10151 | 10 | if (cached_has_bits & 0x00000001u) { |
10152 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->check_existence(), target); |
10153 | 0 | } |
10154 | | |
10155 | 10 | if (_internal_metadata_.have_unknown_fields()) { |
10156 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10157 | 0 | _internal_metadata_.unknown_fields(), target); |
10158 | 0 | } |
10159 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisPushRequestPB) |
10160 | 10 | return target; |
10161 | 10 | } |
10162 | | |
10163 | 36 | size_t RedisPushRequestPB::ByteSizeLong() const { |
10164 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisPushRequestPB) |
10165 | 36 | size_t total_size = 0; |
10166 | | |
10167 | 36 | if (_internal_metadata_.have_unknown_fields()) { |
10168 | 0 | total_size += |
10169 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10170 | 0 | _internal_metadata_.unknown_fields()); |
10171 | 0 | } |
10172 | 36 | if (_has_bits_[0 / 32] & 3u) { |
10173 | | // optional bool check_existence = 3 [default = false]; |
10174 | 36 | if (has_check_existence()) { |
10175 | 0 | total_size += 1 + 1; |
10176 | 0 | } |
10177 | | |
10178 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10179 | 36 | if (has_side()) { |
10180 | 36 | total_size += 1 + |
10181 | 36 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->side()); |
10182 | 36 | } |
10183 | | |
10184 | 36 | } |
10185 | 36 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10186 | 36 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10187 | 36 | _cached_size_ = cached_size; |
10188 | 36 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10189 | 36 | return total_size; |
10190 | 36 | } |
10191 | | |
10192 | 0 | void RedisPushRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
10193 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisPushRequestPB) |
10194 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10195 | 0 | const RedisPushRequestPB* source = |
10196 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisPushRequestPB>( |
10197 | 0 | &from); |
10198 | 0 | if (source == NULL) { |
10199 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisPushRequestPB) |
10200 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10201 | 0 | } else { |
10202 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisPushRequestPB) |
10203 | 0 | MergeFrom(*source); |
10204 | 0 | } |
10205 | 0 | } |
10206 | | |
10207 | 0 | void RedisPushRequestPB::MergeFrom(const RedisPushRequestPB& from) { |
10208 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisPushRequestPB) |
10209 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10210 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10211 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10212 | 0 | (void) cached_has_bits; |
10213 | |
|
10214 | 0 | cached_has_bits = from._has_bits_[0]; |
10215 | 0 | if (cached_has_bits & 3u) { |
10216 | 0 | if (cached_has_bits & 0x00000001u) { |
10217 | 0 | check_existence_ = from.check_existence_; |
10218 | 0 | } |
10219 | 0 | if (cached_has_bits & 0x00000002u) { |
10220 | 0 | side_ = from.side_; |
10221 | 0 | } |
10222 | 0 | _has_bits_[0] |= cached_has_bits; |
10223 | 0 | } |
10224 | 0 | } |
10225 | | |
10226 | 0 | void RedisPushRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
10227 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisPushRequestPB) |
10228 | 0 | if (&from == this) return; |
10229 | 0 | Clear(); |
10230 | 0 | MergeFrom(from); |
10231 | 0 | } |
10232 | | |
10233 | 0 | void RedisPushRequestPB::CopyFrom(const RedisPushRequestPB& from) { |
10234 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisPushRequestPB) |
10235 | 0 | if (&from == this) return; |
10236 | 0 | Clear(); |
10237 | 0 | MergeFrom(from); |
10238 | 0 | } |
10239 | | |
10240 | 0 | bool RedisPushRequestPB::IsInitialized() const { |
10241 | 0 | return true; |
10242 | 0 | } |
10243 | | |
10244 | 0 | void RedisPushRequestPB::Swap(RedisPushRequestPB* other) { |
10245 | 0 | if (other == this) return; |
10246 | 0 | InternalSwap(other); |
10247 | 0 | } |
10248 | 0 | void RedisPushRequestPB::InternalSwap(RedisPushRequestPB* other) { |
10249 | 0 | using std::swap; |
10250 | 0 | swap(check_existence_, other->check_existence_); |
10251 | 0 | swap(side_, other->side_); |
10252 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10253 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10254 | 0 | swap(_cached_size_, other->_cached_size_); |
10255 | 0 | } |
10256 | | |
10257 | 10 | ::google::protobuf::Metadata RedisPushRequestPB::GetMetadata() const { |
10258 | 10 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10259 | 10 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
10260 | 10 | } |
10261 | | |
10262 | | |
10263 | | // =================================================================== |
10264 | | |
10265 | 28.1k | void RedisInsertRequestPB::InitAsDefaultInstance() { |
10266 | 28.1k | } |
10267 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10268 | | const int RedisInsertRequestPB::kOrderFieldNumber; |
10269 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10270 | | |
10271 | | RedisInsertRequestPB::RedisInsertRequestPB() |
10272 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10273 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10274 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisInsertRequestPB(); |
10275 | 0 | } |
10276 | 28.1k | SharedCtor(); |
10277 | | // @@protoc_insertion_point(constructor:yb.RedisInsertRequestPB) |
10278 | 28.1k | } |
10279 | | RedisInsertRequestPB::RedisInsertRequestPB(const RedisInsertRequestPB& from) |
10280 | | : ::google::protobuf::Message(), |
10281 | | _internal_metadata_(NULL), |
10282 | | _has_bits_(from._has_bits_), |
10283 | 0 | _cached_size_(0) { |
10284 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10285 | 0 | order_ = from.order_; |
10286 | | // @@protoc_insertion_point(copy_constructor:yb.RedisInsertRequestPB) |
10287 | 0 | } |
10288 | | |
10289 | 28.1k | void RedisInsertRequestPB::SharedCtor() { |
10290 | 28.1k | _cached_size_ = 0; |
10291 | 28.1k | order_ = 1; |
10292 | 28.1k | } |
10293 | | |
10294 | 0 | RedisInsertRequestPB::~RedisInsertRequestPB() { |
10295 | | // @@protoc_insertion_point(destructor:yb.RedisInsertRequestPB) |
10296 | 0 | SharedDtor(); |
10297 | 0 | } |
10298 | | |
10299 | 0 | void RedisInsertRequestPB::SharedDtor() { |
10300 | 0 | } |
10301 | | |
10302 | 0 | void RedisInsertRequestPB::SetCachedSize(int size) const { |
10303 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10304 | 0 | _cached_size_ = size; |
10305 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10306 | 0 | } |
10307 | 0 | const ::google::protobuf::Descriptor* RedisInsertRequestPB::descriptor() { |
10308 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10309 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10310 | 0 | } |
10311 | | |
10312 | 0 | const RedisInsertRequestPB& RedisInsertRequestPB::default_instance() { |
10313 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisInsertRequestPB(); |
10314 | 0 | return *internal_default_instance(); |
10315 | 0 | } |
10316 | | |
10317 | 0 | RedisInsertRequestPB* RedisInsertRequestPB::New(::google::protobuf::Arena* arena) const { |
10318 | 0 | RedisInsertRequestPB* n = new RedisInsertRequestPB; |
10319 | 0 | if (arena != NULL) { |
10320 | 0 | arena->Own(n); |
10321 | 0 | } |
10322 | 0 | return n; |
10323 | 0 | } |
10324 | | |
10325 | 0 | void RedisInsertRequestPB::Clear() { |
10326 | | // @@protoc_insertion_point(message_clear_start:yb.RedisInsertRequestPB) |
10327 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10328 | | // Prevent compiler warnings about cached_has_bits being unused |
10329 | 0 | (void) cached_has_bits; |
10330 | |
|
10331 | 0 | order_ = 1; |
10332 | 0 | _has_bits_.Clear(); |
10333 | 0 | _internal_metadata_.Clear(); |
10334 | 0 | } |
10335 | | |
10336 | | bool RedisInsertRequestPB::MergePartialFromCodedStream( |
10337 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10338 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10339 | 0 | ::google::protobuf::uint32 tag; |
10340 | | // @@protoc_insertion_point(parse_start:yb.RedisInsertRequestPB) |
10341 | 0 | for (;;) { |
10342 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10343 | 0 | tag = p.first; |
10344 | 0 | if (!p.second) goto handle_unusual; |
10345 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10346 | | // optional .yb.RedisOrder order = 2; |
10347 | 0 | case 2: { |
10348 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10349 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10350 | 0 | int value; |
10351 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10352 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10353 | 0 | input, &value))); |
10354 | 0 | if (::yb::RedisOrder_IsValid(value)) { |
10355 | 0 | set_order(static_cast< ::yb::RedisOrder >(value)); |
10356 | 0 | } else { |
10357 | 0 | mutable_unknown_fields()->AddVarint( |
10358 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10359 | 0 | } |
10360 | 0 | } else { |
10361 | 0 | goto handle_unusual; |
10362 | 0 | } |
10363 | 0 | break; |
10364 | 0 | } |
10365 | | |
10366 | 0 | default: { |
10367 | 0 | handle_unusual: |
10368 | 0 | if (tag == 0) { |
10369 | 0 | goto success; |
10370 | 0 | } |
10371 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10372 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10373 | 0 | break; |
10374 | 0 | } |
10375 | 0 | } |
10376 | 0 | } |
10377 | 0 | success: |
10378 | | // @@protoc_insertion_point(parse_success:yb.RedisInsertRequestPB) |
10379 | 0 | return true; |
10380 | 0 | failure: |
10381 | | // @@protoc_insertion_point(parse_failure:yb.RedisInsertRequestPB) |
10382 | 0 | return false; |
10383 | 0 | #undef DO_ |
10384 | 0 | } |
10385 | | |
10386 | | void RedisInsertRequestPB::SerializeWithCachedSizes( |
10387 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10388 | | // @@protoc_insertion_point(serialize_start:yb.RedisInsertRequestPB) |
10389 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10390 | 0 | (void) cached_has_bits; |
10391 | |
|
10392 | 0 | cached_has_bits = _has_bits_[0]; |
10393 | | // optional .yb.RedisOrder order = 2; |
10394 | 0 | if (cached_has_bits & 0x00000001u) { |
10395 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10396 | 0 | 2, this->order(), output); |
10397 | 0 | } |
10398 | |
|
10399 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10400 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10401 | 0 | _internal_metadata_.unknown_fields(), output); |
10402 | 0 | } |
10403 | | // @@protoc_insertion_point(serialize_end:yb.RedisInsertRequestPB) |
10404 | 0 | } |
10405 | | |
10406 | | ::google::protobuf::uint8* RedisInsertRequestPB::InternalSerializeWithCachedSizesToArray( |
10407 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
10408 | 0 | (void)deterministic; // Unused |
10409 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisInsertRequestPB) |
10410 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10411 | 0 | (void) cached_has_bits; |
10412 | |
|
10413 | 0 | cached_has_bits = _has_bits_[0]; |
10414 | | // optional .yb.RedisOrder order = 2; |
10415 | 0 | if (cached_has_bits & 0x00000001u) { |
10416 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10417 | 0 | 2, this->order(), target); |
10418 | 0 | } |
10419 | |
|
10420 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10421 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10422 | 0 | _internal_metadata_.unknown_fields(), target); |
10423 | 0 | } |
10424 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisInsertRequestPB) |
10425 | 0 | return target; |
10426 | 0 | } |
10427 | | |
10428 | 0 | size_t RedisInsertRequestPB::ByteSizeLong() const { |
10429 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisInsertRequestPB) |
10430 | 0 | size_t total_size = 0; |
10431 | |
|
10432 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10433 | 0 | total_size += |
10434 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10435 | 0 | _internal_metadata_.unknown_fields()); |
10436 | 0 | } |
10437 | | // optional .yb.RedisOrder order = 2; |
10438 | 0 | if (has_order()) { |
10439 | 0 | total_size += 1 + |
10440 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->order()); |
10441 | 0 | } |
10442 | |
|
10443 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10444 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10445 | 0 | _cached_size_ = cached_size; |
10446 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10447 | 0 | return total_size; |
10448 | 0 | } |
10449 | | |
10450 | 0 | void RedisInsertRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
10451 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisInsertRequestPB) |
10452 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10453 | 0 | const RedisInsertRequestPB* source = |
10454 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisInsertRequestPB>( |
10455 | 0 | &from); |
10456 | 0 | if (source == NULL) { |
10457 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisInsertRequestPB) |
10458 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10459 | 0 | } else { |
10460 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisInsertRequestPB) |
10461 | 0 | MergeFrom(*source); |
10462 | 0 | } |
10463 | 0 | } |
10464 | | |
10465 | 0 | void RedisInsertRequestPB::MergeFrom(const RedisInsertRequestPB& from) { |
10466 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisInsertRequestPB) |
10467 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10468 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10469 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10470 | 0 | (void) cached_has_bits; |
10471 | |
|
10472 | 0 | if (from.has_order()) { |
10473 | 0 | set_order(from.order()); |
10474 | 0 | } |
10475 | 0 | } |
10476 | | |
10477 | 0 | void RedisInsertRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
10478 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisInsertRequestPB) |
10479 | 0 | if (&from == this) return; |
10480 | 0 | Clear(); |
10481 | 0 | MergeFrom(from); |
10482 | 0 | } |
10483 | | |
10484 | 0 | void RedisInsertRequestPB::CopyFrom(const RedisInsertRequestPB& from) { |
10485 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisInsertRequestPB) |
10486 | 0 | if (&from == this) return; |
10487 | 0 | Clear(); |
10488 | 0 | MergeFrom(from); |
10489 | 0 | } |
10490 | | |
10491 | 0 | bool RedisInsertRequestPB::IsInitialized() const { |
10492 | 0 | return true; |
10493 | 0 | } |
10494 | | |
10495 | 0 | void RedisInsertRequestPB::Swap(RedisInsertRequestPB* other) { |
10496 | 0 | if (other == this) return; |
10497 | 0 | InternalSwap(other); |
10498 | 0 | } |
10499 | 0 | void RedisInsertRequestPB::InternalSwap(RedisInsertRequestPB* other) { |
10500 | 0 | using std::swap; |
10501 | 0 | swap(order_, other->order_); |
10502 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10503 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10504 | 0 | swap(_cached_size_, other->_cached_size_); |
10505 | 0 | } |
10506 | | |
10507 | 0 | ::google::protobuf::Metadata RedisInsertRequestPB::GetMetadata() const { |
10508 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10509 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
10510 | 0 | } |
10511 | | |
10512 | | |
10513 | | // =================================================================== |
10514 | | |
10515 | 28.1k | void RedisPopRequestPB::InitAsDefaultInstance() { |
10516 | 28.1k | } |
10517 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10518 | | const int RedisPopRequestPB::kSideFieldNumber; |
10519 | | const int RedisPopRequestPB::kCountFieldNumber; |
10520 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10521 | | |
10522 | | RedisPopRequestPB::RedisPopRequestPB() |
10523 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10524 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10525 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPopRequestPB(); |
10526 | 0 | } |
10527 | 28.1k | SharedCtor(); |
10528 | | // @@protoc_insertion_point(constructor:yb.RedisPopRequestPB) |
10529 | 28.1k | } |
10530 | | RedisPopRequestPB::RedisPopRequestPB(const RedisPopRequestPB& from) |
10531 | | : ::google::protobuf::Message(), |
10532 | | _internal_metadata_(NULL), |
10533 | | _has_bits_(from._has_bits_), |
10534 | 0 | _cached_size_(0) { |
10535 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10536 | 0 | ::memcpy(&count_, &from.count_, |
10537 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&side_) - |
10538 | 0 | reinterpret_cast<char*>(&count_)) + sizeof(side_)); |
10539 | | // @@protoc_insertion_point(copy_constructor:yb.RedisPopRequestPB) |
10540 | 0 | } |
10541 | | |
10542 | 28.1k | void RedisPopRequestPB::SharedCtor() { |
10543 | 28.1k | _cached_size_ = 0; |
10544 | 28.1k | count_ = 0; |
10545 | 28.1k | side_ = 1; |
10546 | 28.1k | } |
10547 | | |
10548 | 0 | RedisPopRequestPB::~RedisPopRequestPB() { |
10549 | | // @@protoc_insertion_point(destructor:yb.RedisPopRequestPB) |
10550 | 0 | SharedDtor(); |
10551 | 0 | } |
10552 | | |
10553 | 0 | void RedisPopRequestPB::SharedDtor() { |
10554 | 0 | } |
10555 | | |
10556 | 0 | void RedisPopRequestPB::SetCachedSize(int size) const { |
10557 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10558 | 0 | _cached_size_ = size; |
10559 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10560 | 0 | } |
10561 | 0 | const ::google::protobuf::Descriptor* RedisPopRequestPB::descriptor() { |
10562 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10563 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10564 | 0 | } |
10565 | | |
10566 | 0 | const RedisPopRequestPB& RedisPopRequestPB::default_instance() { |
10567 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPopRequestPB(); |
10568 | 0 | return *internal_default_instance(); |
10569 | 0 | } |
10570 | | |
10571 | 0 | RedisPopRequestPB* RedisPopRequestPB::New(::google::protobuf::Arena* arena) const { |
10572 | 0 | RedisPopRequestPB* n = new RedisPopRequestPB; |
10573 | 0 | if (arena != NULL) { |
10574 | 0 | arena->Own(n); |
10575 | 0 | } |
10576 | 0 | return n; |
10577 | 0 | } |
10578 | | |
10579 | 0 | void RedisPopRequestPB::Clear() { |
10580 | | // @@protoc_insertion_point(message_clear_start:yb.RedisPopRequestPB) |
10581 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10582 | | // Prevent compiler warnings about cached_has_bits being unused |
10583 | 0 | (void) cached_has_bits; |
10584 | |
|
10585 | 0 | cached_has_bits = _has_bits_[0]; |
10586 | 0 | if (cached_has_bits & 3u) { |
10587 | 0 | count_ = 0; |
10588 | 0 | side_ = 1; |
10589 | 0 | } |
10590 | 0 | _has_bits_.Clear(); |
10591 | 0 | _internal_metadata_.Clear(); |
10592 | 0 | } |
10593 | | |
10594 | | bool RedisPopRequestPB::MergePartialFromCodedStream( |
10595 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
10596 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
10597 | 0 | ::google::protobuf::uint32 tag; |
10598 | | // @@protoc_insertion_point(parse_start:yb.RedisPopRequestPB) |
10599 | 0 | for (;;) { |
10600 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10601 | 0 | tag = p.first; |
10602 | 0 | if (!p.second) goto handle_unusual; |
10603 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10604 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10605 | 0 | case 2: { |
10606 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10607 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10608 | 0 | int value; |
10609 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10610 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10611 | 0 | input, &value))); |
10612 | 0 | if (::yb::RedisSide_IsValid(value)) { |
10613 | 0 | set_side(static_cast< ::yb::RedisSide >(value)); |
10614 | 0 | } else { |
10615 | 0 | mutable_unknown_fields()->AddVarint( |
10616 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10617 | 0 | } |
10618 | 0 | } else { |
10619 | 0 | goto handle_unusual; |
10620 | 0 | } |
10621 | 0 | break; |
10622 | 0 | } |
10623 | | |
10624 | | // optional int32 count = 3; |
10625 | 0 | case 3: { |
10626 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10627 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
10628 | 0 | set_has_count(); |
10629 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10630 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
10631 | 0 | input, &count_))); |
10632 | 0 | } else { |
10633 | 0 | goto handle_unusual; |
10634 | 0 | } |
10635 | 0 | break; |
10636 | 0 | } |
10637 | | |
10638 | 0 | default: { |
10639 | 0 | handle_unusual: |
10640 | 0 | if (tag == 0) { |
10641 | 0 | goto success; |
10642 | 0 | } |
10643 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10644 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10645 | 0 | break; |
10646 | 0 | } |
10647 | 0 | } |
10648 | 0 | } |
10649 | 0 | success: |
10650 | | // @@protoc_insertion_point(parse_success:yb.RedisPopRequestPB) |
10651 | 0 | return true; |
10652 | 0 | failure: |
10653 | | // @@protoc_insertion_point(parse_failure:yb.RedisPopRequestPB) |
10654 | 0 | return false; |
10655 | 0 | #undef DO_ |
10656 | 0 | } |
10657 | | |
10658 | | void RedisPopRequestPB::SerializeWithCachedSizes( |
10659 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10660 | | // @@protoc_insertion_point(serialize_start:yb.RedisPopRequestPB) |
10661 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10662 | 0 | (void) cached_has_bits; |
10663 | |
|
10664 | 0 | cached_has_bits = _has_bits_[0]; |
10665 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10666 | 0 | if (cached_has_bits & 0x00000002u) { |
10667 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10668 | 0 | 2, this->side(), output); |
10669 | 0 | } |
10670 | | |
10671 | | // optional int32 count = 3; |
10672 | 0 | if (cached_has_bits & 0x00000001u) { |
10673 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->count(), output); |
10674 | 0 | } |
10675 | |
|
10676 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10677 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10678 | 0 | _internal_metadata_.unknown_fields(), output); |
10679 | 0 | } |
10680 | | // @@protoc_insertion_point(serialize_end:yb.RedisPopRequestPB) |
10681 | 0 | } |
10682 | | |
10683 | | ::google::protobuf::uint8* RedisPopRequestPB::InternalSerializeWithCachedSizesToArray( |
10684 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
10685 | 0 | (void)deterministic; // Unused |
10686 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisPopRequestPB) |
10687 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10688 | 0 | (void) cached_has_bits; |
10689 | |
|
10690 | 0 | cached_has_bits = _has_bits_[0]; |
10691 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10692 | 0 | if (cached_has_bits & 0x00000002u) { |
10693 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10694 | 0 | 2, this->side(), target); |
10695 | 0 | } |
10696 | | |
10697 | | // optional int32 count = 3; |
10698 | 0 | if (cached_has_bits & 0x00000001u) { |
10699 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->count(), target); |
10700 | 0 | } |
10701 | |
|
10702 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10703 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
10704 | 0 | _internal_metadata_.unknown_fields(), target); |
10705 | 0 | } |
10706 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisPopRequestPB) |
10707 | 0 | return target; |
10708 | 0 | } |
10709 | | |
10710 | 0 | size_t RedisPopRequestPB::ByteSizeLong() const { |
10711 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisPopRequestPB) |
10712 | 0 | size_t total_size = 0; |
10713 | |
|
10714 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10715 | 0 | total_size += |
10716 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
10717 | 0 | _internal_metadata_.unknown_fields()); |
10718 | 0 | } |
10719 | 0 | if (_has_bits_[0 / 32] & 3u) { |
10720 | | // optional int32 count = 3; |
10721 | 0 | if (has_count()) { |
10722 | 0 | total_size += 1 + |
10723 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
10724 | 0 | this->count()); |
10725 | 0 | } |
10726 | | |
10727 | | // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT]; |
10728 | 0 | if (has_side()) { |
10729 | 0 | total_size += 1 + |
10730 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->side()); |
10731 | 0 | } |
10732 | |
|
10733 | 0 | } |
10734 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
10735 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10736 | 0 | _cached_size_ = cached_size; |
10737 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10738 | 0 | return total_size; |
10739 | 0 | } |
10740 | | |
10741 | 0 | void RedisPopRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
10742 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisPopRequestPB) |
10743 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10744 | 0 | const RedisPopRequestPB* source = |
10745 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisPopRequestPB>( |
10746 | 0 | &from); |
10747 | 0 | if (source == NULL) { |
10748 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisPopRequestPB) |
10749 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
10750 | 0 | } else { |
10751 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisPopRequestPB) |
10752 | 0 | MergeFrom(*source); |
10753 | 0 | } |
10754 | 0 | } |
10755 | | |
10756 | 0 | void RedisPopRequestPB::MergeFrom(const RedisPopRequestPB& from) { |
10757 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisPopRequestPB) |
10758 | 0 | GOOGLE_DCHECK_NE(&from, this); |
10759 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10760 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10761 | 0 | (void) cached_has_bits; |
10762 | |
|
10763 | 0 | cached_has_bits = from._has_bits_[0]; |
10764 | 0 | if (cached_has_bits & 3u) { |
10765 | 0 | if (cached_has_bits & 0x00000001u) { |
10766 | 0 | count_ = from.count_; |
10767 | 0 | } |
10768 | 0 | if (cached_has_bits & 0x00000002u) { |
10769 | 0 | side_ = from.side_; |
10770 | 0 | } |
10771 | 0 | _has_bits_[0] |= cached_has_bits; |
10772 | 0 | } |
10773 | 0 | } |
10774 | | |
10775 | 0 | void RedisPopRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
10776 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisPopRequestPB) |
10777 | 0 | if (&from == this) return; |
10778 | 0 | Clear(); |
10779 | 0 | MergeFrom(from); |
10780 | 0 | } |
10781 | | |
10782 | 0 | void RedisPopRequestPB::CopyFrom(const RedisPopRequestPB& from) { |
10783 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisPopRequestPB) |
10784 | 0 | if (&from == this) return; |
10785 | 0 | Clear(); |
10786 | 0 | MergeFrom(from); |
10787 | 0 | } |
10788 | | |
10789 | 0 | bool RedisPopRequestPB::IsInitialized() const { |
10790 | 0 | return true; |
10791 | 0 | } |
10792 | | |
10793 | 0 | void RedisPopRequestPB::Swap(RedisPopRequestPB* other) { |
10794 | 0 | if (other == this) return; |
10795 | 0 | InternalSwap(other); |
10796 | 0 | } |
10797 | 0 | void RedisPopRequestPB::InternalSwap(RedisPopRequestPB* other) { |
10798 | 0 | using std::swap; |
10799 | 0 | swap(count_, other->count_); |
10800 | 0 | swap(side_, other->side_); |
10801 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
10802 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
10803 | 0 | swap(_cached_size_, other->_cached_size_); |
10804 | 0 | } |
10805 | | |
10806 | 0 | ::google::protobuf::Metadata RedisPopRequestPB::GetMetadata() const { |
10807 | 0 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10808 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
10809 | 0 | } |
10810 | | |
10811 | | |
10812 | | // =================================================================== |
10813 | | |
10814 | 28.1k | void RedisAddRequestPB::InitAsDefaultInstance() { |
10815 | 28.1k | } |
10816 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
10817 | | const int RedisAddRequestPB::kModeFieldNumber; |
10818 | | const int RedisAddRequestPB::kChFieldNumber; |
10819 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
10820 | | |
10821 | | RedisAddRequestPB::RedisAddRequestPB() |
10822 | 28.1k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
10823 | 28.1k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
10824 | 39 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAddRequestPB(); |
10825 | 39 | } |
10826 | 28.1k | SharedCtor(); |
10827 | | // @@protoc_insertion_point(constructor:yb.RedisAddRequestPB) |
10828 | 28.1k | } |
10829 | | RedisAddRequestPB::RedisAddRequestPB(const RedisAddRequestPB& from) |
10830 | | : ::google::protobuf::Message(), |
10831 | | _internal_metadata_(NULL), |
10832 | | _has_bits_(from._has_bits_), |
10833 | 0 | _cached_size_(0) { |
10834 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
10835 | 0 | ::memcpy(&ch_, &from.ch_, |
10836 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&mode_) - |
10837 | 0 | reinterpret_cast<char*>(&ch_)) + sizeof(mode_)); |
10838 | | // @@protoc_insertion_point(copy_constructor:yb.RedisAddRequestPB) |
10839 | 0 | } |
10840 | | |
10841 | 28.1k | void RedisAddRequestPB::SharedCtor() { |
10842 | 28.1k | _cached_size_ = 0; |
10843 | 28.1k | ch_ = false; |
10844 | 28.1k | mode_ = 1; |
10845 | 28.1k | } |
10846 | | |
10847 | 39 | RedisAddRequestPB::~RedisAddRequestPB() { |
10848 | | // @@protoc_insertion_point(destructor:yb.RedisAddRequestPB) |
10849 | 39 | SharedDtor(); |
10850 | 39 | } |
10851 | | |
10852 | 39 | void RedisAddRequestPB::SharedDtor() { |
10853 | 39 | } |
10854 | | |
10855 | 0 | void RedisAddRequestPB::SetCachedSize(int size) const { |
10856 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
10857 | 0 | _cached_size_ = size; |
10858 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
10859 | 0 | } |
10860 | 0 | const ::google::protobuf::Descriptor* RedisAddRequestPB::descriptor() { |
10861 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
10862 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
10863 | 0 | } |
10864 | | |
10865 | 0 | const RedisAddRequestPB& RedisAddRequestPB::default_instance() { |
10866 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAddRequestPB(); |
10867 | 0 | return *internal_default_instance(); |
10868 | 0 | } |
10869 | | |
10870 | 0 | RedisAddRequestPB* RedisAddRequestPB::New(::google::protobuf::Arena* arena) const { |
10871 | 0 | RedisAddRequestPB* n = new RedisAddRequestPB; |
10872 | 0 | if (arena != NULL) { |
10873 | 0 | arena->Own(n); |
10874 | 0 | } |
10875 | 0 | return n; |
10876 | 0 | } |
10877 | | |
10878 | 0 | void RedisAddRequestPB::Clear() { |
10879 | | // @@protoc_insertion_point(message_clear_start:yb.RedisAddRequestPB) |
10880 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10881 | | // Prevent compiler warnings about cached_has_bits being unused |
10882 | 0 | (void) cached_has_bits; |
10883 | |
|
10884 | 0 | cached_has_bits = _has_bits_[0]; |
10885 | 0 | if (cached_has_bits & 3u) { |
10886 | 0 | ch_ = false; |
10887 | 0 | mode_ = 1; |
10888 | 0 | } |
10889 | 0 | _has_bits_.Clear(); |
10890 | 0 | _internal_metadata_.Clear(); |
10891 | 0 | } |
10892 | | |
10893 | | bool RedisAddRequestPB::MergePartialFromCodedStream( |
10894 | 13 | ::google::protobuf::io::CodedInputStream* input) { |
10895 | 13 | #define DO_(EXPRESSION) if (0 !GOOGLE_PREDICT_TRUE0 (EXPRESSION)) goto failure0 |
10896 | 13 | ::google::protobuf::uint32 tag; |
10897 | | // @@protoc_insertion_point(parse_start:yb.RedisAddRequestPB) |
10898 | 13 | for (;;) { |
10899 | 13 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
10900 | 13 | tag = p.first; |
10901 | 13 | if (!p.second) goto handle_unusual; |
10902 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
10903 | | // optional .yb.RedisWriteMode mode = 2 [default = REDIS_WRITEMODE_UPSERT]; |
10904 | 0 | case 2: { |
10905 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10906 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
10907 | 0 | int value; |
10908 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10909 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
10910 | 0 | input, &value))); |
10911 | 0 | if (::yb::RedisWriteMode_IsValid(value)) { |
10912 | 0 | set_mode(static_cast< ::yb::RedisWriteMode >(value)); |
10913 | 0 | } else { |
10914 | 0 | mutable_unknown_fields()->AddVarint( |
10915 | 0 | 2, static_cast< ::google::protobuf::uint64>(value)); |
10916 | 0 | } |
10917 | 0 | } else { |
10918 | 0 | goto handle_unusual; |
10919 | 0 | } |
10920 | 0 | break; |
10921 | 0 | } |
10922 | | |
10923 | | // optional bool ch = 3; |
10924 | 0 | case 3: { |
10925 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
10926 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
10927 | 0 | set_has_ch(); |
10928 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
10929 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
10930 | 0 | input, &ch_))); |
10931 | 0 | } else { |
10932 | 0 | goto handle_unusual; |
10933 | 0 | } |
10934 | 0 | break; |
10935 | 0 | } |
10936 | | |
10937 | 0 | default: { |
10938 | 13 | handle_unusual: |
10939 | 13 | if (tag == 0) { |
10940 | 13 | goto success; |
10941 | 13 | } |
10942 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
10943 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
10944 | 0 | break; |
10945 | 0 | } |
10946 | 0 | } |
10947 | 0 | } |
10948 | 13 | success: |
10949 | | // @@protoc_insertion_point(parse_success:yb.RedisAddRequestPB) |
10950 | 13 | return true; |
10951 | 0 | failure: |
10952 | | // @@protoc_insertion_point(parse_failure:yb.RedisAddRequestPB) |
10953 | 0 | return false; |
10954 | 13 | #undef DO_ |
10955 | 13 | } |
10956 | | |
10957 | | void RedisAddRequestPB::SerializeWithCachedSizes( |
10958 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
10959 | | // @@protoc_insertion_point(serialize_start:yb.RedisAddRequestPB) |
10960 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
10961 | 0 | (void) cached_has_bits; |
10962 | |
|
10963 | 0 | cached_has_bits = _has_bits_[0]; |
10964 | | // optional .yb.RedisWriteMode mode = 2 [default = REDIS_WRITEMODE_UPSERT]; |
10965 | 0 | if (cached_has_bits & 0x00000002u) { |
10966 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
10967 | 0 | 2, this->mode(), output); |
10968 | 0 | } |
10969 | | |
10970 | | // optional bool ch = 3; |
10971 | 0 | if (cached_has_bits & 0x00000001u) { |
10972 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->ch(), output); |
10973 | 0 | } |
10974 | |
|
10975 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
10976 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
10977 | 0 | _internal_metadata_.unknown_fields(), output); |
10978 | 0 | } |
10979 | | // @@protoc_insertion_point(serialize_end:yb.RedisAddRequestPB) |
10980 | 0 | } |
10981 | | |
10982 | | ::google::protobuf::uint8* RedisAddRequestPB::InternalSerializeWithCachedSizesToArray( |
10983 | 13 | bool deterministic, ::google::protobuf::uint8* target) const { |
10984 | 13 | (void)deterministic; // Unused |
10985 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisAddRequestPB) |
10986 | 13 | ::google::protobuf::uint32 cached_has_bits = 0; |
10987 | 13 | (void) cached_has_bits; |
10988 | | |
10989 | 13 | cached_has_bits = _has_bits_[0]; |
10990 | | // optional .yb.RedisWriteMode mode = 2 [default = REDIS_WRITEMODE_UPSERT]; |
10991 | 13 | if (cached_has_bits & 0x00000002u) { |
10992 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
10993 | 0 | 2, this->mode(), target); |
10994 | 0 | } |
10995 | | |
10996 | | // optional bool ch = 3; |
10997 | 13 | if (cached_has_bits & 0x00000001u) { |
10998 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->ch(), target); |
10999 | 0 | } |
11000 | | |
11001 | 13 | if (_internal_metadata_.have_unknown_fields()) { |
11002 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11003 | 0 | _internal_metadata_.unknown_fields(), target); |
11004 | 0 | } |
11005 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisAddRequestPB) |
11006 | 13 | return target; |
11007 | 13 | } |
11008 | | |
11009 | 52 | size_t RedisAddRequestPB::ByteSizeLong() const { |
11010 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisAddRequestPB) |
11011 | 52 | size_t total_size = 0; |
11012 | | |
11013 | 52 | if (_internal_metadata_.have_unknown_fields()) { |
11014 | 0 | total_size += |
11015 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11016 | 0 | _internal_metadata_.unknown_fields()); |
11017 | 0 | } |
11018 | 52 | if (_has_bits_[0 / 32] & 3u) { |
11019 | | // optional bool ch = 3; |
11020 | 0 | if (has_ch()) { |
11021 | 0 | total_size += 1 + 1; |
11022 | 0 | } |
11023 | | |
11024 | | // optional .yb.RedisWriteMode mode = 2 [default = REDIS_WRITEMODE_UPSERT]; |
11025 | 0 | if (has_mode()) { |
11026 | 0 | total_size += 1 + |
11027 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); |
11028 | 0 | } |
11029 | |
|
11030 | 0 | } |
11031 | 52 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11032 | 52 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11033 | 52 | _cached_size_ = cached_size; |
11034 | 52 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11035 | 52 | return total_size; |
11036 | 52 | } |
11037 | | |
11038 | 0 | void RedisAddRequestPB::MergeFrom(const ::google::protobuf::Message& from) { |
11039 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisAddRequestPB) |
11040 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11041 | 0 | const RedisAddRequestPB* source = |
11042 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisAddRequestPB>( |
11043 | 0 | &from); |
11044 | 0 | if (source == NULL) { |
11045 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisAddRequestPB) |
11046 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11047 | 0 | } else { |
11048 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisAddRequestPB) |
11049 | 0 | MergeFrom(*source); |
11050 | 0 | } |
11051 | 0 | } |
11052 | | |
11053 | 0 | void RedisAddRequestPB::MergeFrom(const RedisAddRequestPB& from) { |
11054 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisAddRequestPB) |
11055 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11056 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11057 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11058 | 0 | (void) cached_has_bits; |
11059 | |
|
11060 | 0 | cached_has_bits = from._has_bits_[0]; |
11061 | 0 | if (cached_has_bits & 3u) { |
11062 | 0 | if (cached_has_bits & 0x00000001u) { |
11063 | 0 | ch_ = from.ch_; |
11064 | 0 | } |
11065 | 0 | if (cached_has_bits & 0x00000002u) { |
11066 | 0 | mode_ = from.mode_; |
11067 | 0 | } |
11068 | 0 | _has_bits_[0] |= cached_has_bits; |
11069 | 0 | } |
11070 | 0 | } |
11071 | | |
11072 | 0 | void RedisAddRequestPB::CopyFrom(const ::google::protobuf::Message& from) { |
11073 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisAddRequestPB) |
11074 | 0 | if (&from == this) return; |
11075 | 0 | Clear(); |
11076 | 0 | MergeFrom(from); |
11077 | 0 | } |
11078 | | |
11079 | 0 | void RedisAddRequestPB::CopyFrom(const RedisAddRequestPB& from) { |
11080 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisAddRequestPB) |
11081 | 0 | if (&from == this) return; |
11082 | 0 | Clear(); |
11083 | 0 | MergeFrom(from); |
11084 | 0 | } |
11085 | | |
11086 | 0 | bool RedisAddRequestPB::IsInitialized() const { |
11087 | 0 | return true; |
11088 | 0 | } |
11089 | | |
11090 | 0 | void RedisAddRequestPB::Swap(RedisAddRequestPB* other) { |
11091 | 0 | if (other == this) return; |
11092 | 0 | InternalSwap(other); |
11093 | 0 | } |
11094 | 0 | void RedisAddRequestPB::InternalSwap(RedisAddRequestPB* other) { |
11095 | 0 | using std::swap; |
11096 | 0 | swap(ch_, other->ch_); |
11097 | 0 | swap(mode_, other->mode_); |
11098 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
11099 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
11100 | 0 | swap(_cached_size_, other->_cached_size_); |
11101 | 0 | } |
11102 | | |
11103 | 13 | ::google::protobuf::Metadata RedisAddRequestPB::GetMetadata() const { |
11104 | 13 | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
11105 | 13 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
11106 | 13 | } |
11107 | | |
11108 | | |
11109 | | // =================================================================== |
11110 | | |
11111 | 28.1k | void RedisResponsePB::InitAsDefaultInstance() { |
11112 | 28.1k | ::yb::_RedisResponsePB_default_instance_.int_response_ = GOOGLE_LONGLONG(0); |
11113 | 28.1k | ::yb::_RedisResponsePB_default_instance_.string_response_.UnsafeSetDefault( |
11114 | 28.1k | &::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11115 | 28.1k | ::yb::_RedisResponsePB_default_instance_.array_response_ = const_cast< ::yb::RedisArrayPB*>( |
11116 | 28.1k | ::yb::RedisArrayPB::internal_default_instance()); |
11117 | 28.1k | ::yb::_RedisResponsePB_default_instance_.status_response_.UnsafeSetDefault( |
11118 | 28.1k | &::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11119 | 28.1k | ::yb::_RedisResponsePB_default_instance_.encoded_response_.UnsafeSetDefault( |
11120 | 28.1k | &::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11121 | 28.1k | } |
11122 | 21.9k | void RedisResponsePB::set_allocated_array_response(::yb::RedisArrayPB* array_response) { |
11123 | 21.9k | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
11124 | 21.9k | clear_response_data(); |
11125 | 21.9k | if (array_response) { |
11126 | 21.9k | ::google::protobuf::Arena* submessage_arena = NULL; |
11127 | 21.9k | if (message_arena != submessage_arena) { |
11128 | 0 | array_response = ::google::protobuf::internal::GetOwnedMessage( |
11129 | 0 | message_arena, array_response, submessage_arena); |
11130 | 0 | } |
11131 | 21.9k | set_has_array_response(); |
11132 | 21.9k | response_data_.array_response_ = array_response; |
11133 | 21.9k | } |
11134 | | // @@protoc_insertion_point(field_set_allocated:yb.RedisResponsePB.array_response) |
11135 | 21.9k | } |
11136 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11137 | | const int RedisResponsePB::kCodeFieldNumber; |
11138 | | const int RedisResponsePB::kIntResponseFieldNumber; |
11139 | | const int RedisResponsePB::kStringResponseFieldNumber; |
11140 | | const int RedisResponsePB::kArrayResponseFieldNumber; |
11141 | | const int RedisResponsePB::kStatusResponseFieldNumber; |
11142 | | const int RedisResponsePB::kEncodedResponseFieldNumber; |
11143 | | const int RedisResponsePB::kErrorMessageFieldNumber; |
11144 | | const int RedisResponsePB::kTypeFieldNumber; |
11145 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11146 | | |
11147 | | RedisResponsePB::RedisResponsePB() |
11148 | 927k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11149 | 927k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11150 | 899k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisResponsePB(); |
11151 | 899k | } |
11152 | 927k | SharedCtor(); |
11153 | | // @@protoc_insertion_point(constructor:yb.RedisResponsePB) |
11154 | 927k | } |
11155 | | RedisResponsePB::RedisResponsePB(const RedisResponsePB& from) |
11156 | | : ::google::protobuf::Message(), |
11157 | | _internal_metadata_(NULL), |
11158 | | _has_bits_(from._has_bits_), |
11159 | 6 | _cached_size_(0) { |
11160 | 6 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11161 | 6 | error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11162 | 6 | if (from.has_error_message()) { |
11163 | 0 | error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
11164 | 0 | } |
11165 | 6 | ::memcpy(&code_, &from.code_, |
11166 | 6 | static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
11167 | 6 | reinterpret_cast<char*>(&code_)) + sizeof(type_)); |
11168 | 6 | clear_has_response_data(); |
11169 | 6 | switch (from.response_data_case()) { |
11170 | 2 | case kIntResponse: { |
11171 | 2 | set_int_response(from.int_response()); |
11172 | 2 | break; |
11173 | 0 | } |
11174 | 4 | case kStringResponse: { |
11175 | 4 | set_string_response(from.string_response()); |
11176 | 4 | break; |
11177 | 0 | } |
11178 | 0 | case kArrayResponse: { |
11179 | 0 | mutable_array_response()->::yb::RedisArrayPB::MergeFrom(from.array_response()); |
11180 | 0 | break; |
11181 | 0 | } |
11182 | 0 | case kStatusResponse: { |
11183 | 0 | set_status_response(from.status_response()); |
11184 | 0 | break; |
11185 | 0 | } |
11186 | 0 | case kEncodedResponse: { |
11187 | 0 | set_encoded_response(from.encoded_response()); |
11188 | 0 | break; |
11189 | 0 | } |
11190 | 0 | case RESPONSE_DATA_NOT_SET: { |
11191 | 0 | break; |
11192 | 0 | } |
11193 | 6 | } |
11194 | | // @@protoc_insertion_point(copy_constructor:yb.RedisResponsePB) |
11195 | 6 | } |
11196 | | |
11197 | 927k | void RedisResponsePB::SharedCtor() { |
11198 | 927k | _cached_size_ = 0; |
11199 | 927k | error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11200 | 927k | code_ = 1; |
11201 | 927k | type_ = 1; |
11202 | 927k | clear_has_response_data(); |
11203 | 927k | } |
11204 | | |
11205 | 899k | RedisResponsePB::~RedisResponsePB() { |
11206 | | // @@protoc_insertion_point(destructor:yb.RedisResponsePB) |
11207 | 899k | SharedDtor(); |
11208 | 899k | } |
11209 | | |
11210 | 899k | void RedisResponsePB::SharedDtor() { |
11211 | 899k | error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11212 | 899k | if (has_response_data()) { |
11213 | 221k | clear_response_data(); |
11214 | 221k | } |
11215 | 899k | } |
11216 | | |
11217 | 0 | void RedisResponsePB::SetCachedSize(int size) const { |
11218 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11219 | 0 | _cached_size_ = size; |
11220 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11221 | 0 | } |
11222 | 0 | const ::google::protobuf::Descriptor* RedisResponsePB::descriptor() { |
11223 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
11224 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11225 | 0 | } |
11226 | | |
11227 | 0 | const RedisResponsePB& RedisResponsePB::default_instance() { |
11228 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisResponsePB(); |
11229 | 0 | return *internal_default_instance(); |
11230 | 0 | } |
11231 | | |
11232 | 0 | RedisResponsePB* RedisResponsePB::New(::google::protobuf::Arena* arena) const { |
11233 | 0 | RedisResponsePB* n = new RedisResponsePB; |
11234 | 0 | if (arena != NULL) { |
11235 | 0 | arena->Own(n); |
11236 | 0 | } |
11237 | 0 | return n; |
11238 | 0 | } |
11239 | | |
11240 | 537k | void RedisResponsePB::clear_response_data() { |
11241 | | // @@protoc_insertion_point(one_of_clear_start:yb.RedisResponsePB) |
11242 | 537k | switch (response_data_case()) { |
11243 | 32.0k | case kIntResponse: { |
11244 | | // No need to clear |
11245 | 32.0k | break; |
11246 | 0 | } |
11247 | 160k | case kStringResponse: { |
11248 | 160k | response_data_.string_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11249 | 160k | break; |
11250 | 0 | } |
11251 | 39.2k | case kArrayResponse: { |
11252 | 39.2k | delete response_data_.array_response_; |
11253 | 39.2k | break; |
11254 | 0 | } |
11255 | 480 | case kStatusResponse: { |
11256 | 480 | response_data_.status_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11257 | 480 | break; |
11258 | 0 | } |
11259 | 127 | case kEncodedResponse: { |
11260 | 127 | response_data_.encoded_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
11261 | 127 | break; |
11262 | 0 | } |
11263 | 305k | case RESPONSE_DATA_NOT_SET: { |
11264 | 305k | break; |
11265 | 0 | } |
11266 | 537k | } |
11267 | 537k | _oneof_case_[0] = RESPONSE_DATA_NOT_SET; |
11268 | 537k | } |
11269 | | |
11270 | | |
11271 | 84.8k | void RedisResponsePB::Clear() { |
11272 | | // @@protoc_insertion_point(message_clear_start:yb.RedisResponsePB) |
11273 | 84.8k | ::google::protobuf::uint32 cached_has_bits = 0; |
11274 | | // Prevent compiler warnings about cached_has_bits being unused |
11275 | 84.8k | (void) cached_has_bits; |
11276 | | |
11277 | 84.8k | cached_has_bits = _has_bits_[0]; |
11278 | 84.8k | if (cached_has_bits & 7u) { |
11279 | 6 | if (cached_has_bits & 0x00000001u) { |
11280 | 0 | GOOGLE_DCHECK(!error_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
11281 | 0 | (*error_message_.UnsafeRawStringPointer())->clear(); |
11282 | 0 | } |
11283 | 6 | code_ = 1; |
11284 | 6 | type_ = 1; |
11285 | 6 | } |
11286 | 84.8k | clear_response_data(); |
11287 | 84.8k | _has_bits_.Clear(); |
11288 | 84.8k | _internal_metadata_.Clear(); |
11289 | 84.8k | } |
11290 | | |
11291 | | bool RedisResponsePB::MergePartialFromCodedStream( |
11292 | 63.1k | ::google::protobuf::io::CodedInputStream* input) { |
11293 | 92.6k | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
11294 | 63.1k | ::google::protobuf::uint32 tag; |
11295 | | // @@protoc_insertion_point(parse_start:yb.RedisResponsePB) |
11296 | 155k | for (;;) { |
11297 | 155k | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11298 | 155k | tag = p.first; |
11299 | 155k | if (!p.second) goto handle_unusual63.1k ; |
11300 | 92.6k | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11301 | | // optional .yb.RedisResponsePB.RedisStatusCode code = 1; |
11302 | 62.9k | case 1: { |
11303 | 62.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
11304 | 62.9k | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
11305 | 62.9k | int value; |
11306 | 62.9k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11307 | 62.9k | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
11308 | 62.9k | input, &value))); |
11309 | 62.9k | if (::yb::RedisResponsePB_RedisStatusCode_IsValid(value)) { |
11310 | 62.9k | set_code(static_cast< ::yb::RedisResponsePB_RedisStatusCode >(value)); |
11311 | 62.9k | } else { |
11312 | 0 | mutable_unknown_fields()->AddVarint( |
11313 | 0 | 1, static_cast< ::google::protobuf::uint64>(value)); |
11314 | 0 | } |
11315 | 62.9k | } else { |
11316 | 0 | goto handle_unusual; |
11317 | 0 | } |
11318 | 62.9k | break; |
11319 | 62.9k | } |
11320 | | |
11321 | | // optional int64 int_response = 2; |
11322 | 62.9k | case 2: { |
11323 | 9.69k | if (static_cast< ::google::protobuf::uint8>(tag) == |
11324 | 9.69k | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
11325 | 9.69k | clear_response_data(); |
11326 | 9.69k | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11327 | 9.69k | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
11328 | 9.69k | input, &response_data_.int_response_))); |
11329 | 9.69k | set_has_int_response(); |
11330 | 9.69k | } else { |
11331 | 0 | goto handle_unusual; |
11332 | 0 | } |
11333 | 9.69k | break; |
11334 | 9.69k | } |
11335 | | |
11336 | | // optional bytes string_response = 3; |
11337 | 14.9k | case 3: { |
11338 | 14.9k | if (static_cast< ::google::protobuf::uint8>(tag) == |
11339 | 14.9k | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
11340 | 14.9k | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11341 | 14.9k | input, this->mutable_string_response())); |
11342 | 14.9k | } else { |
11343 | 0 | goto handle_unusual; |
11344 | 0 | } |
11345 | 14.9k | break; |
11346 | 14.9k | } |
11347 | | |
11348 | | // optional .yb.RedisArrayPB array_response = 4; |
11349 | 14.9k | case 4: { |
11350 | 4.99k | if (static_cast< ::google::protobuf::uint8>(tag) == |
11351 | 4.99k | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
11352 | 4.99k | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
11353 | 4.99k | input, mutable_array_response())); |
11354 | 4.99k | } else { |
11355 | 0 | goto handle_unusual; |
11356 | 0 | } |
11357 | 4.99k | break; |
11358 | 4.99k | } |
11359 | | |
11360 | | // optional bytes status_response = 5; |
11361 | 4.99k | case 5: { |
11362 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11363 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
11364 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11365 | 0 | input, this->mutable_status_response())); |
11366 | 0 | } else { |
11367 | 0 | goto handle_unusual; |
11368 | 0 | } |
11369 | 0 | break; |
11370 | 0 | } |
11371 | | |
11372 | | // optional bytes error_message = 6; |
11373 | 16 | case 6: { |
11374 | 16 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11375 | 16 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
11376 | 16 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11377 | 16 | input, this->mutable_error_message())); |
11378 | 16 | } else { |
11379 | 0 | goto handle_unusual; |
11380 | 0 | } |
11381 | 16 | break; |
11382 | 16 | } |
11383 | | |
11384 | | // optional bytes encoded_response = 7; |
11385 | 16 | case 7: { |
11386 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11387 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
11388 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11389 | 0 | input, this->mutable_encoded_response())); |
11390 | 0 | } else { |
11391 | 0 | goto handle_unusual; |
11392 | 0 | } |
11393 | 0 | break; |
11394 | 0 | } |
11395 | | |
11396 | | // optional .yb.RedisDataType type = 8; |
11397 | 3 | case 8: { |
11398 | 3 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11399 | 3 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
11400 | 3 | int value; |
11401 | 3 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11402 | 3 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
11403 | 3 | input, &value))); |
11404 | 3 | if (::yb::RedisDataType_IsValid(value)) { |
11405 | 3 | set_type(static_cast< ::yb::RedisDataType >(value)); |
11406 | 3 | } else { |
11407 | 0 | mutable_unknown_fields()->AddVarint( |
11408 | 0 | 8, static_cast< ::google::protobuf::uint64>(value)); |
11409 | 0 | } |
11410 | 3 | } else { |
11411 | 0 | goto handle_unusual; |
11412 | 0 | } |
11413 | 3 | break; |
11414 | 3 | } |
11415 | | |
11416 | 3 | default: { |
11417 | 63.1k | handle_unusual: |
11418 | 63.1k | if (tag == 0) { |
11419 | 63.1k | goto success; |
11420 | 63.1k | } |
11421 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11422 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11423 | 0 | break; |
11424 | 0 | } |
11425 | 92.6k | } |
11426 | 92.6k | } |
11427 | 63.1k | success: |
11428 | | // @@protoc_insertion_point(parse_success:yb.RedisResponsePB) |
11429 | 63.1k | return true; |
11430 | 0 | failure: |
11431 | | // @@protoc_insertion_point(parse_failure:yb.RedisResponsePB) |
11432 | 0 | return false; |
11433 | 63.1k | #undef DO_ |
11434 | 63.1k | } |
11435 | | |
11436 | | void RedisResponsePB::SerializeWithCachedSizes( |
11437 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11438 | | // @@protoc_insertion_point(serialize_start:yb.RedisResponsePB) |
11439 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11440 | 0 | (void) cached_has_bits; |
11441 | |
|
11442 | 0 | cached_has_bits = _has_bits_[0]; |
11443 | | // optional .yb.RedisResponsePB.RedisStatusCode code = 1; |
11444 | 0 | if (cached_has_bits & 0x00000002u) { |
11445 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
11446 | 0 | 1, this->code(), output); |
11447 | 0 | } |
11448 | |
|
11449 | 0 | switch (response_data_case()) { |
11450 | 0 | case kIntResponse: |
11451 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->int_response(), output); |
11452 | 0 | break; |
11453 | 0 | case kStringResponse: |
11454 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
11455 | 0 | 3, this->string_response(), output); |
11456 | 0 | break; |
11457 | 0 | case kArrayResponse: |
11458 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
11459 | 0 | 4, *response_data_.array_response_, output); |
11460 | 0 | break; |
11461 | 0 | case kStatusResponse: |
11462 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
11463 | 0 | 5, this->status_response(), output); |
11464 | 0 | break; |
11465 | 0 | default: ; |
11466 | 0 | } |
11467 | | // optional bytes error_message = 6; |
11468 | 0 | if (cached_has_bits & 0x00000001u) { |
11469 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
11470 | 0 | 6, this->error_message(), output); |
11471 | 0 | } |
11472 | | |
11473 | | // optional bytes encoded_response = 7; |
11474 | 0 | if (has_encoded_response()) { |
11475 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
11476 | 0 | 7, this->encoded_response(), output); |
11477 | 0 | } |
11478 | | |
11479 | | // optional .yb.RedisDataType type = 8; |
11480 | 0 | if (cached_has_bits & 0x00000004u) { |
11481 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
11482 | 0 | 8, this->type(), output); |
11483 | 0 | } |
11484 | |
|
11485 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11486 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11487 | 0 | _internal_metadata_.unknown_fields(), output); |
11488 | 0 | } |
11489 | | // @@protoc_insertion_point(serialize_end:yb.RedisResponsePB) |
11490 | 0 | } |
11491 | | |
11492 | | ::google::protobuf::uint8* RedisResponsePB::InternalSerializeWithCachedSizesToArray( |
11493 | 63.1k | bool deterministic, ::google::protobuf::uint8* target) const { |
11494 | 63.1k | (void)deterministic; // Unused |
11495 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisResponsePB) |
11496 | 63.1k | ::google::protobuf::uint32 cached_has_bits = 0; |
11497 | 63.1k | (void) cached_has_bits; |
11498 | | |
11499 | 63.1k | cached_has_bits = _has_bits_[0]; |
11500 | | // optional .yb.RedisResponsePB.RedisStatusCode code = 1; |
11501 | 63.1k | if (cached_has_bits & 0x00000002u) { |
11502 | 62.9k | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
11503 | 62.9k | 1, this->code(), target); |
11504 | 62.9k | } |
11505 | | |
11506 | 63.1k | switch (response_data_case()) { |
11507 | 9.69k | case kIntResponse: |
11508 | 9.69k | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->int_response(), target); |
11509 | 9.69k | break; |
11510 | 14.9k | case kStringResponse: |
11511 | 14.9k | target = |
11512 | 14.9k | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
11513 | 14.9k | 3, this->string_response(), target); |
11514 | 14.9k | break; |
11515 | 4.99k | case kArrayResponse: |
11516 | 4.99k | target = ::google::protobuf::internal::WireFormatLite:: |
11517 | 4.99k | InternalWriteMessageToArray( |
11518 | 4.99k | 4, *response_data_.array_response_, deterministic, target); |
11519 | 4.99k | break; |
11520 | 0 | case kStatusResponse: |
11521 | 0 | target = |
11522 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
11523 | 0 | 5, this->status_response(), target); |
11524 | 0 | break; |
11525 | 33.5k | default: ; |
11526 | 63.1k | } |
11527 | | // optional bytes error_message = 6; |
11528 | 63.1k | if (cached_has_bits & 0x00000001u) { |
11529 | 16 | target = |
11530 | 16 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
11531 | 16 | 6, this->error_message(), target); |
11532 | 16 | } |
11533 | | |
11534 | | // optional bytes encoded_response = 7; |
11535 | 63.1k | if (has_encoded_response()) { |
11536 | 0 | target = |
11537 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
11538 | 0 | 7, this->encoded_response(), target); |
11539 | 0 | } |
11540 | | |
11541 | | // optional .yb.RedisDataType type = 8; |
11542 | 63.1k | if (cached_has_bits & 0x00000004u) { |
11543 | 3 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
11544 | 3 | 8, this->type(), target); |
11545 | 3 | } |
11546 | | |
11547 | 63.1k | if (_internal_metadata_.have_unknown_fields()) { |
11548 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11549 | 0 | _internal_metadata_.unknown_fields(), target); |
11550 | 0 | } |
11551 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisResponsePB) |
11552 | 63.1k | return target; |
11553 | 63.1k | } |
11554 | | |
11555 | 126k | size_t RedisResponsePB::ByteSizeLong() const { |
11556 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisResponsePB) |
11557 | 126k | size_t total_size = 0; |
11558 | | |
11559 | 126k | if (_internal_metadata_.have_unknown_fields()) { |
11560 | 0 | total_size += |
11561 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11562 | 0 | _internal_metadata_.unknown_fields()); |
11563 | 0 | } |
11564 | 126k | if (_has_bits_[0 / 32] & 7u) { |
11565 | | // optional bytes error_message = 6; |
11566 | 125k | if (has_error_message()) { |
11567 | 32 | total_size += 1 + |
11568 | 32 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
11569 | 32 | this->error_message()); |
11570 | 32 | } |
11571 | | |
11572 | | // optional .yb.RedisResponsePB.RedisStatusCode code = 1; |
11573 | 125k | if (has_code()) { |
11574 | 125k | total_size += 1 + |
11575 | 125k | ::google::protobuf::internal::WireFormatLite::EnumSize(this->code()); |
11576 | 125k | } |
11577 | | |
11578 | | // optional .yb.RedisDataType type = 8; |
11579 | 125k | if (has_type()) { |
11580 | 6 | total_size += 1 + |
11581 | 6 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
11582 | 6 | } |
11583 | | |
11584 | 125k | } |
11585 | 126k | switch (response_data_case()) { |
11586 | | // optional int64 int_response = 2; |
11587 | 19.3k | case kIntResponse: { |
11588 | 19.3k | total_size += 1 + |
11589 | 19.3k | ::google::protobuf::internal::WireFormatLite::Int64Size( |
11590 | 19.3k | this->int_response()); |
11591 | 19.3k | break; |
11592 | 0 | } |
11593 | | // optional bytes string_response = 3; |
11594 | 29.8k | case kStringResponse: { |
11595 | 29.8k | total_size += 1 + |
11596 | 29.8k | ::google::protobuf::internal::WireFormatLite::BytesSize( |
11597 | 29.8k | this->string_response()); |
11598 | 29.8k | break; |
11599 | 0 | } |
11600 | | // optional .yb.RedisArrayPB array_response = 4; |
11601 | 9.99k | case kArrayResponse: { |
11602 | 9.99k | total_size += 1 + |
11603 | 9.99k | ::google::protobuf::internal::WireFormatLite::MessageSize( |
11604 | 9.99k | *response_data_.array_response_); |
11605 | 9.99k | break; |
11606 | 0 | } |
11607 | | // optional bytes status_response = 5; |
11608 | 0 | case kStatusResponse: { |
11609 | 0 | total_size += 1 + |
11610 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
11611 | 0 | this->status_response()); |
11612 | 0 | break; |
11613 | 0 | } |
11614 | | // optional bytes encoded_response = 7; |
11615 | 0 | case kEncodedResponse: { |
11616 | 0 | total_size += 1 + |
11617 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
11618 | 0 | this->encoded_response()); |
11619 | 0 | break; |
11620 | 0 | } |
11621 | 67.0k | case RESPONSE_DATA_NOT_SET: { |
11622 | 67.0k | break; |
11623 | 0 | } |
11624 | 126k | } |
11625 | 126k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11626 | 126k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11627 | 126k | _cached_size_ = cached_size; |
11628 | 126k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11629 | 126k | return total_size; |
11630 | 126k | } |
11631 | | |
11632 | 0 | void RedisResponsePB::MergeFrom(const ::google::protobuf::Message& from) { |
11633 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisResponsePB) |
11634 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11635 | 0 | const RedisResponsePB* source = |
11636 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisResponsePB>( |
11637 | 0 | &from); |
11638 | 0 | if (source == NULL) { |
11639 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisResponsePB) |
11640 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11641 | 0 | } else { |
11642 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisResponsePB) |
11643 | 0 | MergeFrom(*source); |
11644 | 0 | } |
11645 | 0 | } |
11646 | | |
11647 | 84.6k | void RedisResponsePB::MergeFrom(const RedisResponsePB& from) { |
11648 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisResponsePB) |
11649 | 84.6k | GOOGLE_DCHECK_NE(&from, this); |
11650 | 84.6k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11651 | 84.6k | ::google::protobuf::uint32 cached_has_bits = 0; |
11652 | 84.6k | (void) cached_has_bits; |
11653 | | |
11654 | 84.6k | cached_has_bits = from._has_bits_[0]; |
11655 | 84.6k | if (cached_has_bits & 7u) { |
11656 | 84.3k | if (cached_has_bits & 0x00000001u) { |
11657 | 33 | set_has_error_message(); |
11658 | 33 | error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
11659 | 33 | } |
11660 | 84.3k | if (cached_has_bits & 0x00000002u) { |
11661 | 84.3k | code_ = from.code_; |
11662 | 84.3k | } |
11663 | 84.3k | if (cached_has_bits & 0x00000004u) { |
11664 | 4 | type_ = from.type_; |
11665 | 4 | } |
11666 | 84.3k | _has_bits_[0] |= cached_has_bits; |
11667 | 84.3k | } |
11668 | 84.6k | switch (from.response_data_case()) { |
11669 | 351 | case kIntResponse: { |
11670 | 351 | set_int_response(from.int_response()); |
11671 | 351 | break; |
11672 | 0 | } |
11673 | 72.6k | case kStringResponse: { |
11674 | 72.6k | set_string_response(from.string_response()); |
11675 | 72.6k | break; |
11676 | 0 | } |
11677 | 11.4k | case kArrayResponse: { |
11678 | 11.4k | mutable_array_response()->::yb::RedisArrayPB::MergeFrom(from.array_response()); |
11679 | 11.4k | break; |
11680 | 0 | } |
11681 | 0 | case kStatusResponse: { |
11682 | 0 | set_status_response(from.status_response()); |
11683 | 0 | break; |
11684 | 0 | } |
11685 | 0 | case kEncodedResponse: { |
11686 | 0 | set_encoded_response(from.encoded_response()); |
11687 | 0 | break; |
11688 | 0 | } |
11689 | 236 | case RESPONSE_DATA_NOT_SET: { |
11690 | 236 | break; |
11691 | 0 | } |
11692 | 84.6k | } |
11693 | 84.6k | } |
11694 | | |
11695 | 0 | void RedisResponsePB::CopyFrom(const ::google::protobuf::Message& from) { |
11696 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisResponsePB) |
11697 | 0 | if (&from == this) return; |
11698 | 0 | Clear(); |
11699 | 0 | MergeFrom(from); |
11700 | 0 | } |
11701 | | |
11702 | 84.6k | void RedisResponsePB::CopyFrom(const RedisResponsePB& from) { |
11703 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisResponsePB) |
11704 | 84.6k | if (&from == this) return0 ; |
11705 | 84.6k | Clear(); |
11706 | 84.6k | MergeFrom(from); |
11707 | 84.6k | } |
11708 | | |
11709 | 0 | bool RedisResponsePB::IsInitialized() const { |
11710 | 0 | return true; |
11711 | 0 | } |
11712 | | |
11713 | 541k | void RedisResponsePB::Swap(RedisResponsePB* other) { |
11714 | 541k | if (other == this) return0 ; |
11715 | 541k | InternalSwap(other); |
11716 | 541k | } |
11717 | 541k | void RedisResponsePB::InternalSwap(RedisResponsePB* other) { |
11718 | 541k | using std::swap; |
11719 | 541k | error_message_.Swap(&other->error_message_); |
11720 | 541k | swap(code_, other->code_); |
11721 | 541k | swap(type_, other->type_); |
11722 | 541k | swap(response_data_, other->response_data_); |
11723 | 541k | swap(_oneof_case_[0], other->_oneof_case_[0]); |
11724 | 541k | swap(_has_bits_[0], other->_has_bits_[0]); |
11725 | 541k | _internal_metadata_.Swap(&other->_internal_metadata_); |
11726 | 541k | swap(_cached_size_, other->_cached_size_); |
11727 | 541k | } |
11728 | | |
11729 | 209k | ::google::protobuf::Metadata RedisResponsePB::GetMetadata() const { |
11730 | 209k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
11731 | 209k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
11732 | 209k | } |
11733 | | |
11734 | | |
11735 | | // =================================================================== |
11736 | | |
11737 | 28.1k | void RedisArrayPB::InitAsDefaultInstance() { |
11738 | 28.1k | } |
11739 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
11740 | | const int RedisArrayPB::kElementsFieldNumber; |
11741 | | const int RedisArrayPB::kEncodedFieldNumber; |
11742 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
11743 | | |
11744 | | RedisArrayPB::RedisArrayPB() |
11745 | 67.4k | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
11746 | 67.4k | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
11747 | 39.2k | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisArrayPB(); |
11748 | 39.2k | } |
11749 | 67.4k | SharedCtor(); |
11750 | | // @@protoc_insertion_point(constructor:yb.RedisArrayPB) |
11751 | 67.4k | } |
11752 | | RedisArrayPB::RedisArrayPB(const RedisArrayPB& from) |
11753 | | : ::google::protobuf::Message(), |
11754 | | _internal_metadata_(NULL), |
11755 | | _has_bits_(from._has_bits_), |
11756 | | _cached_size_(0), |
11757 | 0 | elements_(from.elements_) { |
11758 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11759 | 0 | encoded_ = from.encoded_; |
11760 | | // @@protoc_insertion_point(copy_constructor:yb.RedisArrayPB) |
11761 | 0 | } |
11762 | | |
11763 | 67.4k | void RedisArrayPB::SharedCtor() { |
11764 | 67.4k | _cached_size_ = 0; |
11765 | 67.4k | encoded_ = false; |
11766 | 67.4k | } |
11767 | | |
11768 | 39.2k | RedisArrayPB::~RedisArrayPB() { |
11769 | | // @@protoc_insertion_point(destructor:yb.RedisArrayPB) |
11770 | 39.2k | SharedDtor(); |
11771 | 39.2k | } |
11772 | | |
11773 | 39.2k | void RedisArrayPB::SharedDtor() { |
11774 | 39.2k | } |
11775 | | |
11776 | 0 | void RedisArrayPB::SetCachedSize(int size) const { |
11777 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11778 | 0 | _cached_size_ = size; |
11779 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11780 | 0 | } |
11781 | 0 | const ::google::protobuf::Descriptor* RedisArrayPB::descriptor() { |
11782 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
11783 | 0 | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
11784 | 0 | } |
11785 | | |
11786 | 0 | const RedisArrayPB& RedisArrayPB::default_instance() { |
11787 | 0 | ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisArrayPB(); |
11788 | 0 | return *internal_default_instance(); |
11789 | 0 | } |
11790 | | |
11791 | 0 | RedisArrayPB* RedisArrayPB::New(::google::protobuf::Arena* arena) const { |
11792 | 0 | RedisArrayPB* n = new RedisArrayPB; |
11793 | 0 | if (arena != NULL) { |
11794 | 0 | arena->Own(n); |
11795 | 0 | } |
11796 | 0 | return n; |
11797 | 0 | } |
11798 | | |
11799 | 0 | void RedisArrayPB::Clear() { |
11800 | | // @@protoc_insertion_point(message_clear_start:yb.RedisArrayPB) |
11801 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11802 | | // Prevent compiler warnings about cached_has_bits being unused |
11803 | 0 | (void) cached_has_bits; |
11804 | |
|
11805 | 0 | elements_.Clear(); |
11806 | 0 | encoded_ = false; |
11807 | 0 | _has_bits_.Clear(); |
11808 | 0 | _internal_metadata_.Clear(); |
11809 | 0 | } |
11810 | | |
11811 | | bool RedisArrayPB::MergePartialFromCodedStream( |
11812 | 4.99k | ::google::protobuf::io::CodedInputStream* input) { |
11813 | 1.55M | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure0 |
11814 | 4.99k | ::google::protobuf::uint32 tag; |
11815 | | // @@protoc_insertion_point(parse_start:yb.RedisArrayPB) |
11816 | 1.56M | for (;;) { |
11817 | 1.56M | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
11818 | 1.56M | tag = p.first; |
11819 | 1.56M | if (!p.second) goto handle_unusual4.99k ; |
11820 | 1.55M | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
11821 | | // repeated bytes elements = 1; |
11822 | 1.55M | case 1: { |
11823 | 1.55M | if (static_cast< ::google::protobuf::uint8>(tag) == |
11824 | 1.55M | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
11825 | 1.55M | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
11826 | 1.55M | input, this->add_elements())); |
11827 | 1.55M | } else { |
11828 | 0 | goto handle_unusual; |
11829 | 0 | } |
11830 | 1.55M | break; |
11831 | 1.55M | } |
11832 | | |
11833 | | // optional bool encoded = 2; |
11834 | 1.55M | case 2: { |
11835 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
11836 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
11837 | 0 | set_has_encoded(); |
11838 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
11839 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
11840 | 0 | input, &encoded_))); |
11841 | 0 | } else { |
11842 | 0 | goto handle_unusual; |
11843 | 0 | } |
11844 | 0 | break; |
11845 | 0 | } |
11846 | | |
11847 | 0 | default: { |
11848 | 4.99k | handle_unusual: |
11849 | 4.99k | if (tag == 0) { |
11850 | 4.99k | goto success; |
11851 | 4.99k | } |
11852 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
11853 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
11854 | 0 | break; |
11855 | 0 | } |
11856 | 1.55M | } |
11857 | 1.55M | } |
11858 | 4.99k | success: |
11859 | | // @@protoc_insertion_point(parse_success:yb.RedisArrayPB) |
11860 | 4.99k | return true; |
11861 | 0 | failure: |
11862 | | // @@protoc_insertion_point(parse_failure:yb.RedisArrayPB) |
11863 | 0 | return false; |
11864 | 4.99k | #undef DO_ |
11865 | 4.99k | } |
11866 | | |
11867 | | void RedisArrayPB::SerializeWithCachedSizes( |
11868 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
11869 | | // @@protoc_insertion_point(serialize_start:yb.RedisArrayPB) |
11870 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
11871 | 0 | (void) cached_has_bits; |
11872 | | |
11873 | | // repeated bytes elements = 1; |
11874 | 0 | for (int i = 0, n = this->elements_size(); i < n; i++) { |
11875 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
11876 | 0 | 1, this->elements(i), output); |
11877 | 0 | } |
11878 | |
|
11879 | 0 | cached_has_bits = _has_bits_[0]; |
11880 | | // optional bool encoded = 2; |
11881 | 0 | if (cached_has_bits & 0x00000001u) { |
11882 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->encoded(), output); |
11883 | 0 | } |
11884 | |
|
11885 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
11886 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
11887 | 0 | _internal_metadata_.unknown_fields(), output); |
11888 | 0 | } |
11889 | | // @@protoc_insertion_point(serialize_end:yb.RedisArrayPB) |
11890 | 0 | } |
11891 | | |
11892 | | ::google::protobuf::uint8* RedisArrayPB::InternalSerializeWithCachedSizesToArray( |
11893 | 4.99k | bool deterministic, ::google::protobuf::uint8* target) const { |
11894 | 4.99k | (void)deterministic; // Unused |
11895 | | // @@protoc_insertion_point(serialize_to_array_start:yb.RedisArrayPB) |
11896 | 4.99k | ::google::protobuf::uint32 cached_has_bits = 0; |
11897 | 4.99k | (void) cached_has_bits; |
11898 | | |
11899 | | // repeated bytes elements = 1; |
11900 | 1.56M | for (int i = 0, n = this->elements_size(); i < n; i++1.55M ) { |
11901 | 1.55M | target = ::google::protobuf::internal::WireFormatLite:: |
11902 | 1.55M | WriteBytesToArray(1, this->elements(i), target); |
11903 | 1.55M | } |
11904 | | |
11905 | 4.99k | cached_has_bits = _has_bits_[0]; |
11906 | | // optional bool encoded = 2; |
11907 | 4.99k | if (cached_has_bits & 0x00000001u) { |
11908 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->encoded(), target); |
11909 | 0 | } |
11910 | | |
11911 | 4.99k | if (_internal_metadata_.have_unknown_fields()) { |
11912 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
11913 | 0 | _internal_metadata_.unknown_fields(), target); |
11914 | 0 | } |
11915 | | // @@protoc_insertion_point(serialize_to_array_end:yb.RedisArrayPB) |
11916 | 4.99k | return target; |
11917 | 4.99k | } |
11918 | | |
11919 | 9.99k | size_t RedisArrayPB::ByteSizeLong() const { |
11920 | | // @@protoc_insertion_point(message_byte_size_start:yb.RedisArrayPB) |
11921 | 9.99k | size_t total_size = 0; |
11922 | | |
11923 | 9.99k | if (_internal_metadata_.have_unknown_fields()) { |
11924 | 0 | total_size += |
11925 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
11926 | 0 | _internal_metadata_.unknown_fields()); |
11927 | 0 | } |
11928 | | // repeated bytes elements = 1; |
11929 | 9.99k | total_size += 1 * |
11930 | 9.99k | ::google::protobuf::internal::FromIntSize(this->elements_size()); |
11931 | 3.12M | for (int i = 0, n = this->elements_size(); i < n; i++3.11M ) { |
11932 | 3.11M | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
11933 | 3.11M | this->elements(i)); |
11934 | 3.11M | } |
11935 | | |
11936 | | // optional bool encoded = 2; |
11937 | 9.99k | if (has_encoded()) { |
11938 | 0 | total_size += 1 + 1; |
11939 | 0 | } |
11940 | | |
11941 | 9.99k | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
11942 | 9.99k | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
11943 | 9.99k | _cached_size_ = cached_size; |
11944 | 9.99k | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
11945 | 9.99k | return total_size; |
11946 | 9.99k | } |
11947 | | |
11948 | 0 | void RedisArrayPB::MergeFrom(const ::google::protobuf::Message& from) { |
11949 | | // @@protoc_insertion_point(generalized_merge_from_start:yb.RedisArrayPB) |
11950 | 0 | GOOGLE_DCHECK_NE(&from, this); |
11951 | 0 | const RedisArrayPB* source = |
11952 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const RedisArrayPB>( |
11953 | 0 | &from); |
11954 | 0 | if (source == NULL) { |
11955 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.RedisArrayPB) |
11956 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
11957 | 0 | } else { |
11958 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.RedisArrayPB) |
11959 | 0 | MergeFrom(*source); |
11960 | 0 | } |
11961 | 0 | } |
11962 | | |
11963 | 11.4k | void RedisArrayPB::MergeFrom(const RedisArrayPB& from) { |
11964 | | // @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisArrayPB) |
11965 | 11.4k | GOOGLE_DCHECK_NE(&from, this); |
11966 | 11.4k | _internal_metadata_.MergeFrom(from._internal_metadata_); |
11967 | 11.4k | ::google::protobuf::uint32 cached_has_bits = 0; |
11968 | 11.4k | (void) cached_has_bits; |
11969 | | |
11970 | 11.4k | elements_.MergeFrom(from.elements_); |
11971 | 11.4k | if (from.has_encoded()) { |
11972 | 0 | set_encoded(from.encoded()); |
11973 | 0 | } |
11974 | 11.4k | } |
11975 | | |
11976 | 0 | void RedisArrayPB::CopyFrom(const ::google::protobuf::Message& from) { |
11977 | | // @@protoc_insertion_point(generalized_copy_from_start:yb.RedisArrayPB) |
11978 | 0 | if (&from == this) return; |
11979 | 0 | Clear(); |
11980 | 0 | MergeFrom(from); |
11981 | 0 | } |
11982 | | |
11983 | 0 | void RedisArrayPB::CopyFrom(const RedisArrayPB& from) { |
11984 | | // @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisArrayPB) |
11985 | 0 | if (&from == this) return; |
11986 | 0 | Clear(); |
11987 | 0 | MergeFrom(from); |
11988 | 0 | } |
11989 | | |
11990 | 0 | bool RedisArrayPB::IsInitialized() const { |
11991 | 0 | return true; |
11992 | 0 | } |
11993 | | |
11994 | 0 | void RedisArrayPB::Swap(RedisArrayPB* other) { |
11995 | 0 | if (other == this) return; |
11996 | 0 | InternalSwap(other); |
11997 | 0 | } |
11998 | 0 | void RedisArrayPB::InternalSwap(RedisArrayPB* other) { |
11999 | 0 | using std::swap; |
12000 | 0 | elements_.InternalSwap(&other->elements_); |
12001 | 0 | swap(encoded_, other->encoded_); |
12002 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
12003 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
12004 | 0 | swap(_cached_size_, other->_cached_size_); |
12005 | 0 | } |
12006 | | |
12007 | 11.2k | ::google::protobuf::Metadata RedisArrayPB::GetMetadata() const { |
12008 | 11.2k | protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce(); |
12009 | 11.2k | return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages]; |
12010 | 11.2k | } |
12011 | | |
12012 | | |
12013 | | // @@protoc_insertion_point(namespace_scope) |
12014 | | } // namespace yb |
12015 | | |
12016 | | // @@protoc_insertion_point(global_scope) |