YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/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
17.1k
void InitDefaultsRedisWriteRequestPBImpl() {
212
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
213
214
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
215
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
216
#else
217
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
218
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
219
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRequestPB();
220
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetSetRequestPB();
221
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAppendRequestPB();
222
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisDelRequestPB();
223
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRangeRequestPB();
224
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIncrRequestPB();
225
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPushRequestPB();
226
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisInsertRequestPB();
227
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPopRequestPB();
228
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAddRequestPB();
229
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetTtlRequestPB();
230
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisNoOpRequestPB();
231
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB();
232
17.1k
  {
233
17.1k
    void* ptr = &::yb::_RedisWriteRequestPB_default_instance_;
234
17.1k
    new (ptr) ::yb::RedisWriteRequestPB();
235
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
236
17.1k
  }
237
17.1k
  ::yb::RedisWriteRequestPB::InitAsDefaultInstance();
238
17.1k
}
239
240
115k
void InitDefaultsRedisWriteRequestPB() {
241
115k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
242
115k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisWriteRequestPBImpl);
243
115k
}
244
245
17.1k
void InitDefaultsRedisReadRequestPBImpl() {
246
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
247
248
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
249
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
250
#else
251
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
252
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
253
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRequestPB();
254
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisStrLenRequestPB();
255
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisExistsRequestPB();
256
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRangeRequestPB();
257
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisCollectionGetRangeRequestPB();
258
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetTtlRequestPB();
259
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeysRequestPB();
260
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetForRenameRequestPB();
261
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB();
262
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyRangePB();
263
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexRangePB();
264
17.1k
  {
265
17.1k
    void* ptr = &::yb::_RedisReadRequestPB_default_instance_;
266
17.1k
    new (ptr) ::yb::RedisReadRequestPB();
267
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
268
17.1k
  }
269
17.1k
  ::yb::RedisReadRequestPB::InitAsDefaultInstance();
270
17.1k
}
271
272
86.2k
void InitDefaultsRedisReadRequestPB() {
273
86.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
274
86.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisReadRequestPBImpl);
275
86.2k
}
276
277
17.1k
void InitDefaultsRedisSubKeyRangePBImpl() {
278
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
279
280
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
281
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
282
#else
283
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
284
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
285
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyBoundPB();
286
17.1k
  {
287
17.1k
    void* ptr = &::yb::_RedisSubKeyRangePB_default_instance_;
288
17.1k
    new (ptr) ::yb::RedisSubKeyRangePB();
289
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
290
17.1k
  }
291
17.1k
  ::yb::RedisSubKeyRangePB::InitAsDefaultInstance();
292
17.1k
}
293
294
42.1k
void InitDefaultsRedisSubKeyRangePB() {
295
42.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
296
42.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSubKeyRangePBImpl);
297
42.1k
}
298
299
17.1k
void InitDefaultsRedisIndexRangePBImpl() {
300
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
301
302
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
303
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
304
#else
305
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
306
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
307
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexBoundPB();
308
17.1k
  {
309
17.1k
    void* ptr = &::yb::_RedisIndexRangePB_default_instance_;
310
17.1k
    new (ptr) ::yb::RedisIndexRangePB();
311
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
312
17.1k
  }
313
17.1k
  ::yb::RedisIndexRangePB::InitAsDefaultInstance();
314
17.1k
}
315
316
34.3k
void InitDefaultsRedisIndexRangePB() {
317
34.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
318
34.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIndexRangePBImpl);
319
34.3k
}
320
321
17.1k
void InitDefaultsRedisIndexBoundPBImpl() {
322
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
323
324
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
325
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
326
#else
327
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
328
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
329
17.1k
  {
330
17.1k
    void* ptr = &::yb::_RedisIndexBoundPB_default_instance_;
331
17.1k
    new (ptr) ::yb::RedisIndexBoundPB();
332
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
333
17.1k
  }
334
17.1k
  ::yb::RedisIndexBoundPB::InitAsDefaultInstance();
335
17.1k
}
336
337
34.3k
void InitDefaultsRedisIndexBoundPB() {
338
34.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
339
34.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIndexBoundPBImpl);
340
34.3k
}
341
342
17.1k
void InitDefaultsRedisSubKeyBoundPBImpl() {
343
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
344
345
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
346
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
347
#else
348
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
349
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
350
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB();
351
17.1k
  {
352
17.1k
    void* ptr = &::yb::_RedisSubKeyBoundPB_default_instance_;
353
17.1k
    new (ptr) ::yb::RedisSubKeyBoundPB();
354
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
355
17.1k
  }
356
17.1k
  ::yb::RedisSubKeyBoundPB::InitAsDefaultInstance();
357
17.1k
}
358
359
50.0k
void InitDefaultsRedisSubKeyBoundPB() {
360
50.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
361
50.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSubKeyBoundPBImpl);
362
50.0k
}
363
364
17.1k
void InitDefaultsRedisKeyValueSubKeyPBImpl() {
365
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
366
367
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
368
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
369
#else
370
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
371
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
372
17.1k
  {
373
17.1k
    void* ptr = &::yb::_RedisKeyValueSubKeyPB_default_instance_;
374
17.1k
    new (ptr) ::yb::RedisKeyValueSubKeyPB();
375
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
376
17.1k
  }
377
17.1k
  ::yb::RedisKeyValueSubKeyPB::InitAsDefaultInstance();
378
17.1k
}
379
380
147k
void InitDefaultsRedisKeyValueSubKeyPB() {
381
147k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
382
147k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeyValueSubKeyPBImpl);
383
147k
}
384
385
17.1k
void InitDefaultsRedisKeyValuePBImpl() {
386
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
387
388
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
389
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
390
#else
391
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
392
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
393
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB();
394
17.1k
  {
395
17.1k
    void* ptr = &::yb::_RedisKeyValuePB_default_instance_;
396
17.1k
    new (ptr) ::yb::RedisKeyValuePB();
397
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
398
17.1k
  }
399
17.1k
  ::yb::RedisKeyValuePB::InitAsDefaultInstance();
400
17.1k
}
401
402
187k
void InitDefaultsRedisKeyValuePB() {
403
187k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
404
187k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeyValuePBImpl);
405
187k
}
406
407
17.1k
void InitDefaultsSortedSetOptionsPBImpl() {
408
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
409
410
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
411
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
412
#else
413
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
414
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
415
17.1k
  {
416
17.1k
    void* ptr = &::yb::_SortedSetOptionsPB_default_instance_;
417
17.1k
    new (ptr) ::yb::SortedSetOptionsPB();
418
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
419
17.1k
  }
420
17.1k
  ::yb::SortedSetOptionsPB::InitAsDefaultInstance();
421
17.1k
}
422
423
49.4k
void InitDefaultsSortedSetOptionsPB() {
424
49.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
425
49.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSortedSetOptionsPBImpl);
426
49.4k
}
427
428
17.1k
void InitDefaultsRedisSetRequestPBImpl() {
429
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
430
431
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
432
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
433
#else
434
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
435
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
436
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsSortedSetOptionsPB();
437
17.1k
  {
438
17.1k
    void* ptr = &::yb::_RedisSetRequestPB_default_instance_;
439
17.1k
    new (ptr) ::yb::RedisSetRequestPB();
440
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
441
17.1k
  }
442
17.1k
  ::yb::RedisSetRequestPB::InitAsDefaultInstance();
443
17.1k
}
444
445
117k
void InitDefaultsRedisSetRequestPB() {
446
117k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
447
117k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetRequestPBImpl);
448
117k
}
449
450
17.1k
void InitDefaultsRedisGetRequestPBImpl() {
451
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
452
453
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
454
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
455
#else
456
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
457
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
458
17.1k
  {
459
17.1k
    void* ptr = &::yb::_RedisGetRequestPB_default_instance_;
460
17.1k
    new (ptr) ::yb::RedisGetRequestPB();
461
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
462
17.1k
  }
463
17.1k
  ::yb::RedisGetRequestPB::InitAsDefaultInstance();
464
17.1k
}
465
466
116k
void InitDefaultsRedisGetRequestPB() {
467
116k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
468
116k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetRequestPBImpl);
469
116k
}
470
471
17.1k
void InitDefaultsRedisCollectionGetRangeRequestPBImpl() {
472
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
473
474
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
475
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
476
#else
477
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
478
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
479
17.1k
  {
480
17.1k
    void* ptr = &::yb::_RedisCollectionGetRangeRequestPB_default_instance_;
481
17.1k
    new (ptr) ::yb::RedisCollectionGetRangeRequestPB();
482
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
483
17.1k
  }
484
17.1k
  ::yb::RedisCollectionGetRangeRequestPB::InitAsDefaultInstance();
485
17.1k
}
486
487
47.6k
void InitDefaultsRedisCollectionGetRangeRequestPB() {
488
47.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
489
47.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisCollectionGetRangeRequestPBImpl);
490
47.6k
}
491
492
17.1k
void InitDefaultsRedisNoOpRequestPBImpl() {
493
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
494
495
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
496
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
497
#else
498
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
499
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
500
17.1k
  {
501
17.1k
    void* ptr = &::yb::_RedisNoOpRequestPB_default_instance_;
502
17.1k
    new (ptr) ::yb::RedisNoOpRequestPB();
503
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
504
17.1k
  }
505
17.1k
  ::yb::RedisNoOpRequestPB::InitAsDefaultInstance();
506
17.1k
}
507
508
34.2k
void InitDefaultsRedisNoOpRequestPB() {
509
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
510
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisNoOpRequestPBImpl);
511
34.2k
}
512
513
17.1k
void InitDefaultsRedisSetTtlRequestPBImpl() {
514
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
515
516
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
517
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
518
#else
519
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
520
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
521
17.1k
  {
522
17.1k
    void* ptr = &::yb::_RedisSetTtlRequestPB_default_instance_;
523
17.1k
    new (ptr) ::yb::RedisSetTtlRequestPB();
524
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
525
17.1k
  }
526
17.1k
  ::yb::RedisSetTtlRequestPB::InitAsDefaultInstance();
527
17.1k
}
528
529
34.3k
void InitDefaultsRedisSetTtlRequestPB() {
530
34.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
531
34.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetTtlRequestPBImpl);
532
34.3k
}
533
534
17.1k
void InitDefaultsRedisGetTtlRequestPBImpl() {
535
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
536
537
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
538
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
539
#else
540
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
541
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
542
17.1k
  {
543
17.1k
    void* ptr = &::yb::_RedisGetTtlRequestPB_default_instance_;
544
17.1k
    new (ptr) ::yb::RedisGetTtlRequestPB();
545
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
546
17.1k
  }
547
17.1k
  ::yb::RedisGetTtlRequestPB::InitAsDefaultInstance();
548
17.1k
}
549
550
34.6k
void InitDefaultsRedisGetTtlRequestPB() {
551
34.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
552
34.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetTtlRequestPBImpl);
553
34.6k
}
554
555
17.1k
void InitDefaultsRedisKeysRequestPBImpl() {
556
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
557
558
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
559
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
560
#else
561
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
562
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
563
17.1k
  {
564
17.1k
    void* ptr = &::yb::_RedisKeysRequestPB_default_instance_;
565
17.1k
    new (ptr) ::yb::RedisKeysRequestPB();
566
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
567
17.1k
  }
568
17.1k
  ::yb::RedisKeysRequestPB::InitAsDefaultInstance();
569
17.1k
}
570
571
35.0k
void InitDefaultsRedisKeysRequestPB() {
572
35.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
573
35.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisKeysRequestPBImpl);
574
35.0k
}
575
576
17.1k
void InitDefaultsRedisGetForRenameRequestPBImpl() {
577
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
578
579
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
580
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
581
#else
582
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
583
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
584
17.1k
  {
585
17.1k
    void* ptr = &::yb::_RedisGetForRenameRequestPB_default_instance_;
586
17.1k
    new (ptr) ::yb::RedisGetForRenameRequestPB();
587
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
588
17.1k
  }
589
17.1k
  ::yb::RedisGetForRenameRequestPB::InitAsDefaultInstance();
590
17.1k
}
591
592
34.2k
void InitDefaultsRedisGetForRenameRequestPB() {
593
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
594
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetForRenameRequestPBImpl);
595
34.2k
}
596
597
17.1k
void InitDefaultsRedisGetSetRequestPBImpl() {
598
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
599
600
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
601
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
602
#else
603
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
604
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
605
17.1k
  {
606
17.1k
    void* ptr = &::yb::_RedisGetSetRequestPB_default_instance_;
607
17.1k
    new (ptr) ::yb::RedisGetSetRequestPB();
608
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
609
17.1k
  }
610
17.1k
  ::yb::RedisGetSetRequestPB::InitAsDefaultInstance();
611
17.1k
}
612
613
34.2k
void InitDefaultsRedisGetSetRequestPB() {
614
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
615
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetSetRequestPBImpl);
616
34.2k
}
617
618
17.1k
void InitDefaultsRedisAppendRequestPBImpl() {
619
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
620
621
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
622
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
623
#else
624
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
625
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
626
17.1k
  {
627
17.1k
    void* ptr = &::yb::_RedisAppendRequestPB_default_instance_;
628
17.1k
    new (ptr) ::yb::RedisAppendRequestPB();
629
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
630
17.1k
  }
631
17.1k
  ::yb::RedisAppendRequestPB::InitAsDefaultInstance();
632
17.1k
}
633
634
34.2k
void InitDefaultsRedisAppendRequestPB() {
635
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
636
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisAppendRequestPBImpl);
637
34.2k
}
638
639
17.1k
void InitDefaultsRedisStrLenRequestPBImpl() {
640
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
641
642
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
643
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
644
#else
645
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
646
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
647
17.1k
  {
648
17.1k
    void* ptr = &::yb::_RedisStrLenRequestPB_default_instance_;
649
17.1k
    new (ptr) ::yb::RedisStrLenRequestPB();
650
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
651
17.1k
  }
652
17.1k
  ::yb::RedisStrLenRequestPB::InitAsDefaultInstance();
653
17.1k
}
654
655
34.2k
void InitDefaultsRedisStrLenRequestPB() {
656
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
657
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisStrLenRequestPBImpl);
658
34.2k
}
659
660
17.1k
void InitDefaultsRedisDelRequestPBImpl() {
661
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
662
663
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
664
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
665
#else
666
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
667
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
668
17.1k
  {
669
17.1k
    void* ptr = &::yb::_RedisDelRequestPB_default_instance_;
670
17.1k
    new (ptr) ::yb::RedisDelRequestPB();
671
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
672
17.1k
  }
673
17.1k
  ::yb::RedisDelRequestPB::InitAsDefaultInstance();
674
17.1k
}
675
676
34.2k
void InitDefaultsRedisDelRequestPB() {
677
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
678
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisDelRequestPBImpl);
679
34.2k
}
680
681
17.1k
void InitDefaultsRedisExistsRequestPBImpl() {
682
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
683
684
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
685
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
686
#else
687
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
688
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
689
17.1k
  {
690
17.1k
    void* ptr = &::yb::_RedisExistsRequestPB_default_instance_;
691
17.1k
    new (ptr) ::yb::RedisExistsRequestPB();
692
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
693
17.1k
  }
694
17.1k
  ::yb::RedisExistsRequestPB::InitAsDefaultInstance();
695
17.1k
}
696
697
34.2k
void InitDefaultsRedisExistsRequestPB() {
698
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
699
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisExistsRequestPBImpl);
700
34.2k
}
701
702
17.1k
void InitDefaultsRedisSetRangeRequestPBImpl() {
703
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
704
705
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
706
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
707
#else
708
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
709
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
710
17.1k
  {
711
17.1k
    void* ptr = &::yb::_RedisSetRangeRequestPB_default_instance_;
712
17.1k
    new (ptr) ::yb::RedisSetRangeRequestPB();
713
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
714
17.1k
  }
715
17.1k
  ::yb::RedisSetRangeRequestPB::InitAsDefaultInstance();
716
17.1k
}
717
718
34.2k
void InitDefaultsRedisSetRangeRequestPB() {
719
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
720
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisSetRangeRequestPBImpl);
721
34.2k
}
722
723
17.1k
void InitDefaultsRedisGetRangeRequestPBImpl() {
724
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
725
726
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
727
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
728
#else
729
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
730
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
731
17.1k
  {
732
17.1k
    void* ptr = &::yb::_RedisGetRangeRequestPB_default_instance_;
733
17.1k
    new (ptr) ::yb::RedisGetRangeRequestPB();
734
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
735
17.1k
  }
736
17.1k
  ::yb::RedisGetRangeRequestPB::InitAsDefaultInstance();
737
17.1k
}
738
739
34.2k
void InitDefaultsRedisGetRangeRequestPB() {
740
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
741
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisGetRangeRequestPBImpl);
742
34.2k
}
743
744
17.1k
void InitDefaultsRedisIncrRequestPBImpl() {
745
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
746
747
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
748
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
749
#else
750
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
751
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
752
17.1k
  {
753
17.1k
    void* ptr = &::yb::_RedisIncrRequestPB_default_instance_;
754
17.1k
    new (ptr) ::yb::RedisIncrRequestPB();
755
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
756
17.1k
  }
757
17.1k
  ::yb::RedisIncrRequestPB::InitAsDefaultInstance();
758
17.1k
}
759
760
34.2k
void InitDefaultsRedisIncrRequestPB() {
761
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
762
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisIncrRequestPBImpl);
763
34.2k
}
764
765
17.1k
void InitDefaultsRedisPushRequestPBImpl() {
766
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
767
768
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
769
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
770
#else
771
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
772
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
773
17.1k
  {
774
17.1k
    void* ptr = &::yb::_RedisPushRequestPB_default_instance_;
775
17.1k
    new (ptr) ::yb::RedisPushRequestPB();
776
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
777
17.1k
  }
778
17.1k
  ::yb::RedisPushRequestPB::InitAsDefaultInstance();
779
17.1k
}
780
781
34.2k
void InitDefaultsRedisPushRequestPB() {
782
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
783
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisPushRequestPBImpl);
784
34.2k
}
785
786
17.1k
void InitDefaultsRedisInsertRequestPBImpl() {
787
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
788
789
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
790
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
791
#else
792
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
793
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
794
17.1k
  {
795
17.1k
    void* ptr = &::yb::_RedisInsertRequestPB_default_instance_;
796
17.1k
    new (ptr) ::yb::RedisInsertRequestPB();
797
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
798
17.1k
  }
799
17.1k
  ::yb::RedisInsertRequestPB::InitAsDefaultInstance();
800
17.1k
}
801
802
34.2k
void InitDefaultsRedisInsertRequestPB() {
803
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
804
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisInsertRequestPBImpl);
805
34.2k
}
806
807
17.1k
void InitDefaultsRedisPopRequestPBImpl() {
808
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
809
810
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
811
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
812
#else
813
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
814
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
815
17.1k
  {
816
17.1k
    void* ptr = &::yb::_RedisPopRequestPB_default_instance_;
817
17.1k
    new (ptr) ::yb::RedisPopRequestPB();
818
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
819
17.1k
  }
820
17.1k
  ::yb::RedisPopRequestPB::InitAsDefaultInstance();
821
17.1k
}
822
823
34.2k
void InitDefaultsRedisPopRequestPB() {
824
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
825
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisPopRequestPBImpl);
826
34.2k
}
827
828
17.1k
void InitDefaultsRedisAddRequestPBImpl() {
829
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
830
831
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
832
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
833
#else
834
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
835
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
836
17.1k
  {
837
17.1k
    void* ptr = &::yb::_RedisAddRequestPB_default_instance_;
838
17.1k
    new (ptr) ::yb::RedisAddRequestPB();
839
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
840
17.1k
  }
841
17.1k
  ::yb::RedisAddRequestPB::InitAsDefaultInstance();
842
17.1k
}
843
844
34.2k
void InitDefaultsRedisAddRequestPB() {
845
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
846
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisAddRequestPBImpl);
847
34.2k
}
848
849
17.1k
void InitDefaultsRedisResponsePBImpl() {
850
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
851
852
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
853
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
854
#else
855
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
856
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
857
17.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisArrayPB();
858
17.1k
  {
859
17.1k
    void* ptr = &::yb::_RedisResponsePB_default_instance_;
860
17.1k
    new (ptr) ::yb::RedisResponsePB();
861
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
862
17.1k
  }
863
17.1k
  ::yb::RedisResponsePB::InitAsDefaultInstance();
864
17.1k
}
865
866
499k
void InitDefaultsRedisResponsePB() {
867
499k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
868
499k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisResponsePBImpl);
869
499k
}
870
871
17.1k
void InitDefaultsRedisArrayPBImpl() {
872
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
873
874
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
875
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
876
#else
877
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
878
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
879
17.1k
  {
880
17.1k
    void* ptr = &::yb::_RedisArrayPB_default_instance_;
881
17.1k
    new (ptr) ::yb::RedisArrayPB();
882
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
883
17.1k
  }
884
17.1k
  ::yb::RedisArrayPB::InitAsDefaultInstance();
885
17.1k
}
886
887
53.8k
void InitDefaultsRedisArrayPB() {
888
53.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
889
53.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisArrayPBImpl);
890
53.8k
}
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
258
void protobuf_AssignDescriptors() {
1284
258
  AddDescriptors();
1285
258
  ::google::protobuf::MessageFactory* factory = NULL;
1286
258
  AssignDescriptors(
1287
258
      "yb/common/redis_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1288
258
      file_level_metadata, file_level_enum_descriptors, NULL);
1289
258
}
1290
1291
402k
void protobuf_AssignDescriptorsOnce() {
1292
402k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1293
402k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1294
402k
}
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
17.1k
void AddDescriptorsImpl() {
1303
17.1k
  InitDefaults();
1304
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1305
17.1k
      "\n\036yb/common/redis_protocol.proto\022\002yb\"\233\005\n"
1306
17.1k
      "\023RedisWriteRequestPB\022,\n\013set_request\030\002 \001("
1307
17.1k
      "\0132\025.yb.RedisSetRequestPBH\000\0222\n\016getset_req"
1308
17.1k
      "uest\030\003 \001(\0132\030.yb.RedisGetSetRequestPBH\000\0222"
1309
17.1k
      "\n\016append_request\030\004 \001(\0132\030.yb.RedisAppendR"
1310
17.1k
      "equestPBH\000\022,\n\013del_request\030\005 \001(\0132\025.yb.Red"
1311
17.1k
      "isDelRequestPBH\000\0227\n\021set_range_request\030\006 "
1312
17.1k
      "\001(\0132\032.yb.RedisSetRangeRequestPBH\000\022.\n\014inc"
1313
17.1k
      "r_request\030\007 \001(\0132\026.yb.RedisIncrRequestPBH"
1314
17.1k
      "\000\022.\n\014push_request\030\010 \001(\0132\026.yb.RedisPushRe"
1315
17.1k
      "questPBH\000\0222\n\016insert_request\030\t \001(\0132\030.yb.R"
1316
17.1k
      "edisInsertRequestPBH\000\022,\n\013pop_request\030\n \001"
1317
17.1k
      "(\0132\025.yb.RedisPopRequestPBH\000\022,\n\013add_reque"
1318
17.1k
      "st\030\013 \001(\0132\025.yb.RedisAddRequestPBH\000\0223\n\017set"
1319
17.1k
      "_ttl_request\030\014 \001(\0132\030.yb.RedisSetTtlReque"
1320
17.1k
      "stPBH\000\022/\n\rno_op_request\030\016 \001(\0132\026.yb.Redis"
1321
17.1k
      "NoOpRequestPBH\000\022&\n\tkey_value\030\r \001(\0132\023.yb."
1322
17.1k
      "RedisKeyValuePBB\t\n\007request\"\205\005\n\022RedisRead"
1323
17.1k
      "RequestPB\022,\n\013get_request\030\002 \001(\0132\025.yb.Redi"
1324
17.1k
      "sGetRequestPBH\000\0222\n\016strlen_request\030\003 \001(\0132"
1325
17.1k
      "\030.yb.RedisStrLenRequestPBH\000\0222\n\016exists_re"
1326
17.1k
      "quest\030\004 \001(\0132\030.yb.RedisExistsRequestPBH\000\022"
1327
17.1k
      "7\n\021get_range_request\030\005 \001(\0132\032.yb.RedisGet"
1328
17.1k
      "RangeRequestPBH\000\022L\n\034get_collection_range"
1329
17.1k
      "_request\030\t \001(\0132$.yb.RedisCollectionGetRa"
1330
17.1k
      "ngeRequestPBH\000\0223\n\017get_ttl_request\030\013 \001(\0132"
1331
17.1k
      "\030.yb.RedisGetTtlRequestPBH\000\022.\n\014keys_requ"
1332
17.1k
      "est\030\014 \001(\0132\026.yb.RedisKeysRequestPBH\000\022@\n\026g"
1333
17.1k
      "et_for_rename_request\030\r \001(\0132\036.yb.RedisGe"
1334
17.1k
      "tForRenameRequestPBH\000\022&\n\tkey_value\030\006 \001(\013"
1335
17.1k
      "2\023.yb.RedisKeyValuePB\022,\n\014subkey_range\030\007 "
1336
17.1k
      "\001(\0132\026.yb.RedisSubKeyRangePB\022*\n\013index_ran"
1337
17.1k
      "ge\030\010 \001(\0132\025.yb.RedisIndexRangePB\022\036\n\023range"
1338
17.1k
      "_request_limit\030\n \001(\005:\0010B\t\n\007request\"n\n\022Re"
1339
17.1k
      "disSubKeyRangePB\022+\n\013lower_bound\030\001 \001(\0132\026."
1340
17.1k
      "yb.RedisSubKeyBoundPB\022+\n\013upper_bound\030\002 \001"
1341
17.1k
      "(\0132\026.yb.RedisSubKeyBoundPB\"k\n\021RedisIndex"
1342
17.1k
      "RangePB\022*\n\013lower_bound\030\001 \001(\0132\025.yb.RedisI"
1343
17.1k
      "ndexBoundPB\022*\n\013upper_bound\030\002 \001(\0132\025.yb.Re"
1344
17.1k
      "disIndexBoundPB\"\"\n\021RedisIndexBoundPB\022\r\n\005"
1345
17.1k
      "index\030\001 \002(\003\"\312\001\n\022RedisSubKeyBoundPB\022/\n\014su"
1346
17.1k
      "bkey_bound\030\003 \001(\0132\031.yb.RedisKeyValueSubKe"
1347
17.1k
      "yPB\022:\n\rinfinity_type\030\004 \001(\0162#.yb.RedisSub"
1348
17.1k
      "KeyBoundPB.InfinityType\022\033\n\014is_exclusive\030"
1349
17.1k
      "\006 \001(\010:\005false\"*\n\014InfinityType\022\014\n\010POSITIVE"
1350
17.1k
      "\020\001\022\014\n\010NEGATIVE\020\002\"o\n\025RedisKeyValueSubKeyP"
1351
17.1k
      "B\022\027\n\rstring_subkey\030\001 \001(\014H\000\022\032\n\020timestamp_"
1352
17.1k
      "subkey\030\002 \001(\003H\000\022\027\n\rdouble_subkey\030\003 \001(\001H\000B"
1353
17.1k
      "\010\n\006subkey\"\254\001\n\017RedisKeyValuePB\022\021\n\thash_co"
1354
17.1k
      "de\030\001 \001(\r\022\013\n\003key\030\002 \001(\014\0220\n\004type\030\003 \001(\0162\021.yb"
1355
17.1k
      ".RedisDataType:\017REDIS_TYPE_NONE\022)\n\006subke"
1356
17.1k
      "y\030\004 \003(\0132\031.yb.RedisKeyValueSubKeyPB\022\r\n\005in"
1357
17.1k
      "dex\030\005 \001(\005\022\r\n\005value\030\006 \003(\014\"\253\001\n\022SortedSetOp"
1358
17.1k
      "tionsPB\022B\n\016update_options\030\004 \001(\0162$.yb.Sor"
1359
17.1k
      "tedSetOptionsPB.UpdateOptions:\004NONE\022\021\n\002c"
1360
17.1k
      "h\030\005 \001(\010:\005false\022\023\n\004incr\030\006 \001(\010:\005false\")\n\rU"
1361
17.1k
      "pdateOptions\022\006\n\002NX\020\001\022\006\n\002XX\020\002\022\010\n\004NONE\020\003\"\265"
1362
17.1k
      "\001\n\021RedisSetRequestPB\022!\n\022expect_ok_respon"
1363
17.1k
      "se\030\001 \001(\010:\005false\022\017\n\003ttl\030\002 \001(\003:\002-1\0228\n\004mode"
1364
17.1k
      "\030\003 \001(\0162\022.yb.RedisWriteMode:\026REDIS_WRITEM"
1365
17.1k
      "ODE_UPSERT\0222\n\022sorted_set_options\030\016 \001(\0132\026"
1366
17.1k
      ".yb.SortedSetOptionsPB\"\303\002\n\021RedisGetReque"
1367
17.1k
      "stPB\022\?\n\014request_type\030\001 \001(\0162$.yb.RedisGet"
1368
17.1k
      "RequestPB.GetRequestType:\003GET\"\354\001\n\016GetReq"
1369
17.1k
      "uestType\022\007\n\003GET\020\001\022\010\n\004MGET\020\003\022\010\n\004HGET\020\002\022\t\n"
1370
17.1k
      "\005HMGET\020\004\022\013\n\007HGETALL\020\005\022\t\n\005HKEYS\020\007\022\t\n\005HVAL"
1371
17.1k
      "S\020\010\022\010\n\004HLEN\020\t\022\013\n\007HEXISTS\020\n\022\013\n\007HSTRLEN\020\013\022"
1372
17.1k
      "\014\n\010SMEMBERS\020\006\022\r\n\tSISMEMBER\020\014\022\t\n\005SCARD\020\r\022"
1373
17.1k
      "\t\n\005ZCARD\020\017\022\t\n\005TSGET\020\016\022\n\n\006TSCARD\020\020\022\n\n\006ZSC"
1374
17.1k
      "ORE\020\021\022\010\n\004LLEN\020\022\022\013\n\007UNKNOWN\020c\"\230\002\n RedisCo"
1375
17.1k
      "llectionGetRangeRequestPB\022]\n\014request_typ"
1376
17.1k
      "e\030\001 \001(\01628.yb.RedisCollectionGetRangeRequ"
1377
17.1k
      "estPB.GetRangeRequestType:\rTSRANGEBYTIME"
1378
17.1k
      "\022\032\n\013with_scores\030\002 \001(\010:\005false\"y\n\023GetRange"
1379
17.1k
      "RequestType\022\021\n\rTSRANGEBYTIME\020\001\022\021\n\rZRANGE"
1380
17.1k
      "BYSCORE\020\002\022\r\n\tZREVRANGE\020\003\022\n\n\006ZRANGE\020\004\022\024\n\020"
1381
17.1k
      "TSREVRANGEBYTIME\020\005\022\013\n\007UNKNOWN\020c\"\024\n\022Redis"
1382
17.1k
      "NoOpRequestPB\"P\n\024RedisSetTtlRequestPB\022\021\n"
1383
17.1k
      "\003ttl\030\001 \001(\003:\002-1H\000\022\027\n\rabsolute_time\030\002 \001(\003H"
1384
17.1k
      "\000B\014\n\nexpiration\"5\n\024RedisGetTtlRequestPB\022"
1385
17.1k
      "\035\n\016return_seconds\030\001 \001(\010:\005false\"8\n\022RedisK"
1386
17.1k
      "eysRequestPB\022\017\n\007pattern\030\001 \001(\t\022\021\n\tthresho"
1387
17.1k
      "ld\030\002 \001(\005\"\034\n\032RedisGetForRenameRequestPB\"\026"
1388
17.1k
      "\n\024RedisGetSetRequestPB\"\026\n\024RedisAppendReq"
1389
17.1k
      "uestPB\"\026\n\024RedisStrLenRequestPB\"\023\n\021RedisD"
1390
17.1k
      "elRequestPB\"\026\n\024RedisExistsRequestPB\"(\n\026R"
1391
17.1k
      "edisSetRangeRequestPB\022\016\n\006offset\030\002 \001(\005\"4\n"
1392
17.1k
      "\026RedisGetRangeRequestPB\022\r\n\005start\030\002 \001(\005\022\013"
1393
17.1k
      "\n\003end\030\003 \001(\005\"G\n\022RedisIncrRequestPB\022\030\n\rinc"
1394
17.1k
      "rement_int\030\002 \001(\003:\0011\022\027\n\017increment_float\030\003"
1395
17.1k
      " \001(\001\"b\n\022RedisPushRequestPB\022,\n\004side\030\002 \001(\016"
1396
17.1k
      "2\r.yb.RedisSide:\017REDIS_SIDE_LEFT\022\036\n\017chec"
1397
17.1k
      "k_existence\030\003 \001(\010:\005false\"5\n\024RedisInsertR"
1398
17.1k
      "equestPB\022\035\n\005order\030\002 \001(\0162\016.yb.RedisOrder\""
1399
17.1k
      "P\n\021RedisPopRequestPB\022,\n\004side\030\002 \001(\0162\r.yb."
1400
17.1k
      "RedisSide:\017REDIS_SIDE_LEFT\022\r\n\005count\030\003 \001("
1401
17.1k
      "\005\"Y\n\021RedisAddRequestPB\0228\n\004mode\030\002 \001(\0162\022.y"
1402
17.1k
      "b.RedisWriteMode:\026REDIS_WRITEMODE_UPSERT"
1403
17.1k
      "\022\n\n\002ch\030\003 \001(\010\"\272\003\n\017RedisResponsePB\0221\n\004code"
1404
17.1k
      "\030\001 \001(\0162#.yb.RedisResponsePB.RedisStatusC"
1405
17.1k
      "ode\022\026\n\014int_response\030\002 \001(\003H\000\022\031\n\017string_re"
1406
17.1k
      "sponse\030\003 \001(\014H\000\022*\n\016array_response\030\004 \001(\0132\020"
1407
17.1k
      ".yb.RedisArrayPBH\000\022\031\n\017status_response\030\005 "
1408
17.1k
      "\001(\014H\000\022\032\n\020encoded_response\030\007 \001(\014H\000\022\025\n\rerr"
1409
17.1k
      "or_message\030\006 \001(\014\022\037\n\004type\030\010 \001(\0162\021.yb.Redi"
1410
17.1k
      "sDataType\"\224\001\n\017RedisStatusCode\022\006\n\002OK\020\001\022\007\n"
1411
17.1k
      "\003NIL\020\002\022\r\n\tNOT_FOUND\020\005\022\023\n\017UNKNOWN_COMMAND"
1412
17.1k
      "\020\003\022\016\n\nWRONG_TYPE\020\004\022\020\n\014SERVER_ERROR\020\006\022\027\n\023"
1413
17.1k
      "INDEX_OUT_OF_BOUNDS\020\007\022\021\n\rPARSING_ERROR\020\010"
1414
17.1k
      "B\017\n\rresponse_data\"1\n\014RedisArrayPB\022\020\n\010ele"
1415
17.1k
      "ments\030\001 \003(\014\022\017\n\007encoded\030\002 \001(\010*\256\001\n\rRedisDa"
1416
17.1k
      "taType\022\023\n\017REDIS_TYPE_NONE\020\001\022\025\n\021REDIS_TYP"
1417
17.1k
      "E_STRING\020\002\022\023\n\017REDIS_TYPE_LIST\020\003\022\022\n\016REDIS"
1418
17.1k
      "_TYPE_SET\020\004\022\023\n\017REDIS_TYPE_HASH\020\005\022\030\n\024REDI"
1419
17.1k
      "S_TYPE_SORTEDSET\020\006\022\031\n\025REDIS_TYPE_TIMESER"
1420
17.1k
      "IES\020\007*6\n\tRedisSide\022\023\n\017REDIS_SIDE_LEFT\020\001\022"
1421
17.1k
      "\024\n\020REDIS_SIDE_RIGHT\020\002*;\n\nRedisOrder\022\026\n\022R"
1422
17.1k
      "EDIS_ORDER_BEFORE\020\001\022\025\n\021REDIS_ORDER_AFTER"
1423
17.1k
      "\020\002*d\n\016RedisWriteMode\022\032\n\026REDIS_WRITEMODE_"
1424
17.1k
      "UPSERT\020\001\022\032\n\026REDIS_WRITEMODE_INSERT\020\002\022\032\n\026"
1425
17.1k
      "REDIS_WRITEMODE_UPDATE\020\003B\010\n\006org.yb"
1426
17.1k
  };
1427
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1428
17.1k
      descriptor, 4834);
1429
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1430
17.1k
    "yb/common/redis_protocol.proto", &protobuf_RegisterTypes);
1431
17.1k
}
1432
1433
33.2k
void AddDescriptors() {
1434
33.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1435
33.2k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1436
33.2k
}
1437
// Force AddDescriptors() to be called at dynamic initialization time.
1438
struct StaticDescriptorInitializer {
1439
17.1k
  StaticDescriptorInitializer() {
1440
17.1k
    AddDescriptors();
1441
17.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
234
bool RedisSubKeyBoundPB_InfinityType_IsValid(int value) {
1450
234
  switch (value) {
1451
117
    case 1:
1452
234
    case 2:
1453
234
      return true;
1454
0
    default:
1455
0
      return false;
1456
234
  }
1457
234
}
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
0
bool SortedSetOptionsPB_UpdateOptions_IsValid(int value) {
1471
0
  switch (value) {
1472
0
    case 1:
1473
0
    case 2:
1474
0
    case 3:
1475
0
      return true;
1476
0
    default:
1477
0
      return false;
1478
0
  }
1479
0
}
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
89.3k
bool RedisGetRequestPB_GetRequestType_IsValid(int value) {
1494
89.3k
  switch (value) {
1495
87.3k
    case 1:
1496
87.3k
    case 2:
1497
87.3k
    case 3:
1498
87.3k
    case 4:
1499
87.3k
    case 5:
1500
87.3k
    case 6:
1501
87.3k
    case 7:
1502
87.3k
    case 8:
1503
87.3k
    case 9:
1504
87.3k
    case 10:
1505
87.3k
    case 11:
1506
87.3k
    case 12:
1507
87.3k
    case 13:
1508
89.2k
    case 14:
1509
89.2k
    case 15:
1510
89.2k
    case 16:
1511
89.3k
    case 17:
1512
89.3k
    case 18:
1513
89.3k
    case 99:
1514
89.3k
      return true;
1515
0
    default:
1516
0
      return false;
1517
89.3k
  }
1518
89.3k
}
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
10.3k
bool RedisCollectionGetRangeRequestPB_GetRangeRequestType_IsValid(int value) {
1549
10.3k
  switch (value) {
1550
65
    case 1:
1551
153
    case 2:
1552
153
    case 3:
1553
153
    case 4:
1554
10.3k
    case 5:
1555
10.3k
    case 99:
1556
10.3k
      return true;
1557
0
    default:
1558
0
      return false;
1559
10.3k
  }
1560
10.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
215k
bool RedisResponsePB_RedisStatusCode_IsValid(int value) {
1578
215k
  switch (value) {
1579
209k
    case 1:
1580
215k
    case 2:
1581
215k
    case 3:
1582
215k
    case 4:
1583
215k
    case 5:
1584
215k
    case 6:
1585
215k
    case 7:
1586
215k
    case 8:
1587
215k
      return true;
1588
0
    default:
1589
0
      return false;
1590
215k
  }
1591
215k
}
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
104k
bool RedisDataType_IsValid(int value) {
1611
104k
  switch (value) {
1612
19
    case 1:
1613
65.6k
    case 2:
1614
65.6k
    case 3:
1615
65.6k
    case 4:
1616
84.4k
    case 5:
1617
104k
    case 6:
1618
104k
    case 7:
1619
104k
      return true;
1620
0
    default:
1621
0
      return false;
1622
104k
  }
1623
104k
}
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
0
bool RedisSide_IsValid(int value) {
1630
0
  switch (value) {
1631
0
    case 1:
1632
0
    case 2:
1633
0
      return true;
1634
0
    default:
1635
0
      return false;
1636
0
  }
1637
0
}
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
63
bool RedisWriteMode_IsValid(int value) {
1658
63
  switch (value) {
1659
0
    case 1:
1660
41
    case 2:
1661
63
    case 3:
1662
63
      return true;
1663
0
    default:
1664
0
      return false;
1665
63
  }
1666
63
}
1667
1668
1669
// ===================================================================
1670
1671
17.1k
void RedisWriteRequestPB::InitAsDefaultInstance() {
1672
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.set_request_ = const_cast< ::yb::RedisSetRequestPB*>(
1673
17.1k
      ::yb::RedisSetRequestPB::internal_default_instance());
1674
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.getset_request_ = const_cast< ::yb::RedisGetSetRequestPB*>(
1675
17.1k
      ::yb::RedisGetSetRequestPB::internal_default_instance());
1676
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.append_request_ = const_cast< ::yb::RedisAppendRequestPB*>(
1677
17.1k
      ::yb::RedisAppendRequestPB::internal_default_instance());
1678
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.del_request_ = const_cast< ::yb::RedisDelRequestPB*>(
1679
17.1k
      ::yb::RedisDelRequestPB::internal_default_instance());
1680
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.set_range_request_ = const_cast< ::yb::RedisSetRangeRequestPB*>(
1681
17.1k
      ::yb::RedisSetRangeRequestPB::internal_default_instance());
1682
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.incr_request_ = const_cast< ::yb::RedisIncrRequestPB*>(
1683
17.1k
      ::yb::RedisIncrRequestPB::internal_default_instance());
1684
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.push_request_ = const_cast< ::yb::RedisPushRequestPB*>(
1685
17.1k
      ::yb::RedisPushRequestPB::internal_default_instance());
1686
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.insert_request_ = const_cast< ::yb::RedisInsertRequestPB*>(
1687
17.1k
      ::yb::RedisInsertRequestPB::internal_default_instance());
1688
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.pop_request_ = const_cast< ::yb::RedisPopRequestPB*>(
1689
17.1k
      ::yb::RedisPopRequestPB::internal_default_instance());
1690
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.add_request_ = const_cast< ::yb::RedisAddRequestPB*>(
1691
17.1k
      ::yb::RedisAddRequestPB::internal_default_instance());
1692
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.set_ttl_request_ = const_cast< ::yb::RedisSetTtlRequestPB*>(
1693
17.1k
      ::yb::RedisSetTtlRequestPB::internal_default_instance());
1694
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_.no_op_request_ = const_cast< ::yb::RedisNoOpRequestPB*>(
1695
17.1k
      ::yb::RedisNoOpRequestPB::internal_default_instance());
1696
17.1k
  ::yb::_RedisWriteRequestPB_default_instance_._instance.get_mutable()->key_value_ = const_cast< ::yb::RedisKeyValuePB*>(
1697
17.1k
      ::yb::RedisKeyValuePB::internal_default_instance());
1698
17.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
100k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1885
83.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1886
83.0k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisWriteRequestPB();
1887
83.0k
  }
1888
100k
  SharedCtor();
1889
  // @@protoc_insertion_point(constructor:yb.RedisWriteRequestPB)
1890
100k
}
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
100k
void RedisWriteRequestPB::SharedCtor() {
1960
100k
  _cached_size_ = 0;
1961
100k
  key_value_ = NULL;
1962
100k
  clear_has_request();
1963
100k
}
1964
1965
83.0k
RedisWriteRequestPB::~RedisWriteRequestPB() {
1966
  // @@protoc_insertion_point(destructor:yb.RedisWriteRequestPB)
1967
83.0k
  SharedDtor();
1968
83.0k
}
1969
1970
83.0k
void RedisWriteRequestPB::SharedDtor() {
1971
83.0k
  if (this != internal_default_instance()) delete key_value_;
1972
83.0k
  if (has_request()) {
1973
83.0k
    clear_request();
1974
83.0k
  }
1975
83.0k
}
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
166k
void RedisWriteRequestPB::clear_request() {
2001
// @@protoc_insertion_point(one_of_clear_start:yb.RedisWriteRequestPB)
2002
166k
  switch (request_case()) {
2003
82.9k
    case kSetRequest: {
2004
82.9k
      delete request_.set_request_;
2005
82.9k
      break;
2006
0
    }
2007
0
    case kGetsetRequest: {
2008
0
      delete request_.getset_request_;
2009
0
      break;
2010
0
    }
2011
0
    case kAppendRequest: {
2012
0
      delete request_.append_request_;
2013
0
      break;
2014
0
    }
2015
28
    case kDelRequest: {
2016
28
      delete request_.del_request_;
2017
28
      break;
2018
0
    }
2019
0
    case kSetRangeRequest: {
2020
0
      delete request_.set_range_request_;
2021
0
      break;
2022
0
    }
2023
0
    case kIncrRequest: {
2024
0
      delete request_.incr_request_;
2025
0
      break;
2026
0
    }
2027
0
    case kPushRequest: {
2028
0
      delete request_.push_request_;
2029
0
      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
0
    case kAddRequest: {
2040
0
      delete request_.add_request_;
2041
0
      break;
2042
0
    }
2043
73
    case kSetTtlRequest: {
2044
73
      delete request_.set_ttl_request_;
2045
73
      break;
2046
0
    }
2047
5
    case kNoOpRequest: {
2048
5
      delete request_.no_op_request_;
2049
5
      break;
2050
0
    }
2051
83.0k
    case REQUEST_NOT_SET: {
2052
83.0k
      break;
2053
166k
    }
2054
166k
  }
2055
166k
  _oneof_case_[0] = REQUEST_NOT_SET;
2056
166k
}
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
21.4k
    ::google::protobuf::io::CodedInputStream* input) {
2077
42.9k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2078
21.4k
  ::google::protobuf::uint32 tag;
2079
  // @@protoc_insertion_point(parse_start:yb.RedisWriteRequestPB)
2080
64.4k
  for (;;) {
2081
64.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2082
64.4k
    tag = p.first;
2083
64.4k
    if (!p.second) goto handle_unusual;
2084
42.9k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2085
      // optional .yb.RedisSetRequestPB set_request = 2;
2086
21.4k
      case 2: {
2087
21.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2088
21.4k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2089
21.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2090
21.4k
               input, mutable_set_request()));
2091
0
        } else {
2092
0
          goto handle_unusual;
2093
0
        }
2094
21.4k
        break;
2095
21.4k
      }
2096
2097
      // optional .yb.RedisGetSetRequestPB getset_request = 3;
2098
0
      case 3: {
2099
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2100
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2101
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2102
0
               input, mutable_getset_request()));
2103
0
        } else {
2104
0
          goto handle_unusual;
2105
0
        }
2106
0
        break;
2107
0
      }
2108
2109
      // optional .yb.RedisAppendRequestPB append_request = 4;
2110
0
      case 4: {
2111
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2112
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2113
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2114
0
               input, mutable_append_request()));
2115
0
        } else {
2116
0
          goto handle_unusual;
2117
0
        }
2118
0
        break;
2119
0
      }
2120
2121
      // optional .yb.RedisDelRequestPB del_request = 5;
2122
10
      case 5: {
2123
10
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2124
10
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
2125
10
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2126
10
               input, mutable_del_request()));
2127
0
        } else {
2128
0
          goto handle_unusual;
2129
0
        }
2130
10
        break;
2131
10
      }
2132
2133
      // optional .yb.RedisSetRangeRequestPB set_range_request = 6;
2134
0
      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
0
      case 7: {
2147
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2148
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
2149
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2150
0
               input, mutable_incr_request()));
2151
0
        } else {
2152
0
          goto handle_unusual;
2153
0
        }
2154
0
        break;
2155
0
      }
2156
2157
      // optional .yb.RedisPushRequestPB push_request = 8;
2158
0
      case 8: {
2159
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2160
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
2161
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2162
0
               input, mutable_push_request()));
2163
0
        } else {
2164
0
          goto handle_unusual;
2165
0
        }
2166
0
        break;
2167
0
      }
2168
2169
      // optional .yb.RedisInsertRequestPB insert_request = 9;
2170
0
      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
0
      case 11: {
2195
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2196
0
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
2197
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2198
0
               input, mutable_add_request()));
2199
0
        } else {
2200
0
          goto handle_unusual;
2201
0
        }
2202
0
        break;
2203
0
      }
2204
2205
      // optional .yb.RedisSetTtlRequestPB set_ttl_request = 12;
2206
25
      case 12: {
2207
25
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2208
25
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
2209
25
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2210
25
               input, mutable_set_ttl_request()));
2211
0
        } else {
2212
0
          goto handle_unusual;
2213
0
        }
2214
25
        break;
2215
25
      }
2216
2217
      // optional .yb.RedisKeyValuePB key_value = 13;
2218
21.4k
      case 13: {
2219
21.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2220
21.4k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
2221
21.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2222
21.4k
               input, mutable_key_value()));
2223
0
        } else {
2224
0
          goto handle_unusual;
2225
0
        }
2226
21.4k
        break;
2227
21.4k
      }
2228
2229
      // optional .yb.RedisNoOpRequestPB no_op_request = 14;
2230
2
      case 14: {
2231
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2232
2
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
2233
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2234
2
               input, mutable_no_op_request()));
2235
0
        } else {
2236
0
          goto handle_unusual;
2237
0
        }
2238
2
        break;
2239
21.4k
      }
2240
2241
0
      default: {
2242
21.4k
      handle_unusual:
2243
21.4k
        if (tag == 0) {
2244
21.4k
          goto success;
2245
21.4k
        }
2246
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2247
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2248
0
        break;
2249
0
      }
2250
42.9k
    }
2251
42.9k
  }
2252
21.4k
success:
2253
  // @@protoc_insertion_point(parse_success:yb.RedisWriteRequestPB)
2254
21.4k
  return true;
2255
0
failure:
2256
  // @@protoc_insertion_point(parse_failure:yb.RedisWriteRequestPB)
2257
0
  return false;
2258
21.4k
#undef DO_
2259
21.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
21.5k
    bool deterministic, ::google::protobuf::uint8* target) const {
2336
21.5k
  (void)deterministic; // Unused
2337
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisWriteRequestPB)
2338
21.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
2339
21.5k
  (void) cached_has_bits;
2340
2341
21.5k
  switch (request_case()) {
2342
21.4k
    case kSetRequest:
2343
21.4k
      target = ::google::protobuf::internal::WireFormatLite::
2344
21.4k
        InternalWriteMessageToArray(
2345
21.4k
          2, *request_.set_request_, deterministic, target);
2346
21.4k
      break;
2347
0
    case kGetsetRequest:
2348
0
      target = ::google::protobuf::internal::WireFormatLite::
2349
0
        InternalWriteMessageToArray(
2350
0
          3, *request_.getset_request_, deterministic, target);
2351
0
      break;
2352
0
    case kAppendRequest:
2353
0
      target = ::google::protobuf::internal::WireFormatLite::
2354
0
        InternalWriteMessageToArray(
2355
0
          4, *request_.append_request_, deterministic, target);
2356
0
      break;
2357
10
    case kDelRequest:
2358
10
      target = ::google::protobuf::internal::WireFormatLite::
2359
10
        InternalWriteMessageToArray(
2360
10
          5, *request_.del_request_, deterministic, target);
2361
10
      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
0
    case kIncrRequest:
2368
0
      target = ::google::protobuf::internal::WireFormatLite::
2369
0
        InternalWriteMessageToArray(
2370
0
          7, *request_.incr_request_, deterministic, target);
2371
0
      break;
2372
0
    case kPushRequest:
2373
0
      target = ::google::protobuf::internal::WireFormatLite::
2374
0
        InternalWriteMessageToArray(
2375
0
          8, *request_.push_request_, deterministic, target);
2376
0
      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
0
    case kAddRequest:
2388
0
      target = ::google::protobuf::internal::WireFormatLite::
2389
0
        InternalWriteMessageToArray(
2390
0
          11, *request_.add_request_, deterministic, target);
2391
0
      break;
2392
25
    case kSetTtlRequest:
2393
25
      target = ::google::protobuf::internal::WireFormatLite::
2394
25
        InternalWriteMessageToArray(
2395
25
          12, *request_.set_ttl_request_, deterministic, target);
2396
25
      break;
2397
2
    default: ;
2398
21.5k
  }
2399
21.5k
  cached_has_bits = _has_bits_[0];
2400
  // optional .yb.RedisKeyValuePB key_value = 13;
2401
21.5k
  if (cached_has_bits & 0x00000001u) {
2402
21.5k
    target = ::google::protobuf::internal::WireFormatLite::
2403
21.5k
      InternalWriteMessageToArray(
2404
21.5k
        13, *this->key_value_, deterministic, target);
2405
21.5k
  }
2406
2407
  // optional .yb.RedisNoOpRequestPB no_op_request = 14;
2408
21.5k
  if (has_no_op_request()) {
2409
2
    target = ::google::protobuf::internal::WireFormatLite::
2410
2
      InternalWriteMessageToArray(
2411
2
        14, *request_.no_op_request_, deterministic, target);
2412
2
  }
2413
2414
21.5k
  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
21.5k
  return target;
2420
21.5k
}
2421
2422
104k
size_t RedisWriteRequestPB::ByteSizeLong() const {
2423
// @@protoc_insertion_point(message_byte_size_start:yb.RedisWriteRequestPB)
2424
104k
  size_t total_size = 0;
2425
2426
104k
  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
104k
  if (has_key_value()) {
2433
104k
    total_size += 1 +
2434
104k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
2435
104k
        *this->key_value_);
2436
104k
  }
2437
2438
104k
  switch (request_case()) {
2439
    // optional .yb.RedisSetRequestPB set_request = 2;
2440
104k
    case kSetRequest: {
2441
104k
      total_size += 1 +
2442
104k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2443
104k
          *request_.set_request_);
2444
104k
      break;
2445
0
    }
2446
    // optional .yb.RedisGetSetRequestPB getset_request = 3;
2447
0
    case kGetsetRequest: {
2448
0
      total_size += 1 +
2449
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2450
0
          *request_.getset_request_);
2451
0
      break;
2452
0
    }
2453
    // optional .yb.RedisAppendRequestPB append_request = 4;
2454
0
    case kAppendRequest: {
2455
0
      total_size += 1 +
2456
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2457
0
          *request_.append_request_);
2458
0
      break;
2459
0
    }
2460
    // optional .yb.RedisDelRequestPB del_request = 5;
2461
38
    case kDelRequest: {
2462
38
      total_size += 1 +
2463
38
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2464
38
          *request_.del_request_);
2465
38
      break;
2466
0
    }
2467
    // optional .yb.RedisSetRangeRequestPB set_range_request = 6;
2468
0
    case kSetRangeRequest: {
2469
0
      total_size += 1 +
2470
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2471
0
          *request_.set_range_request_);
2472
0
      break;
2473
0
    }
2474
    // optional .yb.RedisIncrRequestPB incr_request = 7;
2475
0
    case kIncrRequest: {
2476
0
      total_size += 1 +
2477
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2478
0
          *request_.incr_request_);
2479
0
      break;
2480
0
    }
2481
    // optional .yb.RedisPushRequestPB push_request = 8;
2482
0
    case kPushRequest: {
2483
0
      total_size += 1 +
2484
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2485
0
          *request_.push_request_);
2486
0
      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
0
    case kAddRequest: {
2504
0
      total_size += 1 +
2505
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2506
0
          *request_.add_request_);
2507
0
      break;
2508
0
    }
2509
    // optional .yb.RedisSetTtlRequestPB set_ttl_request = 12;
2510
98
    case kSetTtlRequest: {
2511
98
      total_size += 1 +
2512
98
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2513
98
          *request_.set_ttl_request_);
2514
98
      break;
2515
0
    }
2516
    // optional .yb.RedisNoOpRequestPB no_op_request = 14;
2517
7
    case kNoOpRequest: {
2518
7
      total_size += 1 +
2519
7
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2520
7
          *request_.no_op_request_);
2521
7
      break;
2522
0
    }
2523
0
    case REQUEST_NOT_SET: {
2524
0
      break;
2525
104k
    }
2526
104k
  }
2527
104k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2528
104k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2529
104k
  _cached_size_ = cached_size;
2530
104k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2531
104k
  return total_size;
2532
104k
}
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
21.4k
::google::protobuf::Metadata RedisWriteRequestPB::GetMetadata() const {
2647
21.4k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2648
21.4k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2649
21.4k
}
2650
2651
2652
// ===================================================================
2653
2654
17.1k
void RedisReadRequestPB::InitAsDefaultInstance() {
2655
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.get_request_ = const_cast< ::yb::RedisGetRequestPB*>(
2656
17.1k
      ::yb::RedisGetRequestPB::internal_default_instance());
2657
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.strlen_request_ = const_cast< ::yb::RedisStrLenRequestPB*>(
2658
17.1k
      ::yb::RedisStrLenRequestPB::internal_default_instance());
2659
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.exists_request_ = const_cast< ::yb::RedisExistsRequestPB*>(
2660
17.1k
      ::yb::RedisExistsRequestPB::internal_default_instance());
2661
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.get_range_request_ = const_cast< ::yb::RedisGetRangeRequestPB*>(
2662
17.1k
      ::yb::RedisGetRangeRequestPB::internal_default_instance());
2663
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.get_collection_range_request_ = const_cast< ::yb::RedisCollectionGetRangeRequestPB*>(
2664
17.1k
      ::yb::RedisCollectionGetRangeRequestPB::internal_default_instance());
2665
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.get_ttl_request_ = const_cast< ::yb::RedisGetTtlRequestPB*>(
2666
17.1k
      ::yb::RedisGetTtlRequestPB::internal_default_instance());
2667
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.keys_request_ = const_cast< ::yb::RedisKeysRequestPB*>(
2668
17.1k
      ::yb::RedisKeysRequestPB::internal_default_instance());
2669
17.1k
  ::yb::_RedisReadRequestPB_default_instance_.get_for_rename_request_ = const_cast< ::yb::RedisGetForRenameRequestPB*>(
2670
17.1k
      ::yb::RedisGetForRenameRequestPB::internal_default_instance());
2671
17.1k
  ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->key_value_ = const_cast< ::yb::RedisKeyValuePB*>(
2672
17.1k
      ::yb::RedisKeyValuePB::internal_default_instance());
2673
17.1k
  ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->subkey_range_ = const_cast< ::yb::RedisSubKeyRangePB*>(
2674
17.1k
      ::yb::RedisSubKeyRangePB::internal_default_instance());
2675
17.1k
  ::yb::_RedisReadRequestPB_default_instance_._instance.get_mutable()->index_range_ = const_cast< ::yb::RedisIndexRangePB*>(
2676
17.1k
      ::yb::RedisIndexRangePB::internal_default_instance());
2677
17.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
70.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2807
53.3k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2808
53.3k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisReadRequestPB();
2809
53.3k
  }
2810
70.4k
  SharedCtor();
2811
  // @@protoc_insertion_point(constructor:yb.RedisReadRequestPB)
2812
70.4k
}
2813
RedisReadRequestPB::RedisReadRequestPB(const RedisReadRequestPB& from)
2814
  : ::google::protobuf::Message(),
2815
      _internal_metadata_(NULL),
2816
      _has_bits_(from._has_bits_),
2817
42.9k
      _cached_size_(0) {
2818
42.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2819
42.9k
  if (from.has_key_value()) {
2820
42.9k
    key_value_ = new ::yb::RedisKeyValuePB(*from.key_value_);
2821
0
  } else {
2822
0
    key_value_ = NULL;
2823
0
  }
2824
42.9k
  if (from.has_subkey_range()) {
2825
5.47k
    subkey_range_ = new ::yb::RedisSubKeyRangePB(*from.subkey_range_);
2826
37.4k
  } else {
2827
37.4k
    subkey_range_ = NULL;
2828
37.4k
  }
2829
42.9k
  if (from.has_index_range()) {
2830
21
    index_range_ = new ::yb::RedisIndexRangePB(*from.index_range_);
2831
42.9k
  } else {
2832
42.9k
    index_range_ = NULL;
2833
42.9k
  }
2834
42.9k
  range_request_limit_ = from.range_request_limit_;
2835
42.9k
  clear_has_request();
2836
42.9k
  switch (from.request_case()) {
2837
37.0k
    case kGetRequest: {
2838
37.0k
      mutable_get_request()->::yb::RedisGetRequestPB::MergeFrom(from.get_request());
2839
37.0k
      break;
2840
0
    }
2841
0
    case kStrlenRequest: {
2842
0
      mutable_strlen_request()->::yb::RedisStrLenRequestPB::MergeFrom(from.strlen_request());
2843
0
      break;
2844
0
    }
2845
0
    case kExistsRequest: {
2846
0
      mutable_exists_request()->::yb::RedisExistsRequestPB::MergeFrom(from.exists_request());
2847
0
      break;
2848
0
    }
2849
0
    case kGetRangeRequest: {
2850
0
      mutable_get_range_request()->::yb::RedisGetRangeRequestPB::MergeFrom(from.get_range_request());
2851
0
      break;
2852
0
    }
2853
5.47k
    case kGetCollectionRangeRequest: {
2854
5.47k
      mutable_get_collection_range_request()->::yb::RedisCollectionGetRangeRequestPB::MergeFrom(from.get_collection_range_request());
2855
5.47k
      break;
2856
0
    }
2857
132
    case kGetTtlRequest: {
2858
132
      mutable_get_ttl_request()->::yb::RedisGetTtlRequestPB::MergeFrom(from.get_ttl_request());
2859
132
      break;
2860
0
    }
2861
297
    case kKeysRequest: {
2862
297
      mutable_keys_request()->::yb::RedisKeysRequestPB::MergeFrom(from.keys_request());
2863
297
      break;
2864
0
    }
2865
0
    case kGetForRenameRequest: {
2866
0
      mutable_get_for_rename_request()->::yb::RedisGetForRenameRequestPB::MergeFrom(from.get_for_rename_request());
2867
0
      break;
2868
0
    }
2869
0
    case REQUEST_NOT_SET: {
2870
0
      break;
2871
0
    }
2872
42.9k
  }
2873
  // @@protoc_insertion_point(copy_constructor:yb.RedisReadRequestPB)
2874
42.9k
}
2875
2876
70.4k
void RedisReadRequestPB::SharedCtor() {
2877
70.4k
  _cached_size_ = 0;
2878
70.4k
  ::memset(&key_value_, 0, static_cast<size_t>(
2879
70.4k
      reinterpret_cast<char*>(&range_request_limit_) -
2880
70.4k
      reinterpret_cast<char*>(&key_value_)) + sizeof(range_request_limit_));
2881
70.4k
  clear_has_request();
2882
70.4k
}
2883
2884
96.2k
RedisReadRequestPB::~RedisReadRequestPB() {
2885
  // @@protoc_insertion_point(destructor:yb.RedisReadRequestPB)
2886
96.2k
  SharedDtor();
2887
96.2k
}
2888
2889
96.2k
void RedisReadRequestPB::SharedDtor() {
2890
96.2k
  if (this != internal_default_instance()) delete key_value_;
2891
96.2k
  if (this != internal_default_instance()) delete subkey_range_;
2892
96.2k
  if (this != internal_default_instance()) delete index_range_;
2893
96.2k
  if (has_request()) {
2894
96.2k
    clear_request();
2895
96.2k
  }
2896
96.2k
}
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
192k
void RedisReadRequestPB::clear_request() {
2922
// @@protoc_insertion_point(one_of_clear_start:yb.RedisReadRequestPB)
2923
192k
  switch (request_case()) {
2924
81.7k
    case kGetRequest: {
2925
81.7k
      delete request_.get_request_;
2926
81.7k
      break;
2927
0
    }
2928
0
    case kStrlenRequest: {
2929
0
      delete request_.strlen_request_;
2930
0
      break;
2931
0
    }
2932
0
    case kExistsRequest: {
2933
0
      delete request_.exists_request_;
2934
0
      break;
2935
0
    }
2936
0
    case kGetRangeRequest: {
2937
0
      delete request_.get_range_request_;
2938
0
      break;
2939
0
    }
2940
13.3k
    case kGetCollectionRangeRequest: {
2941
13.3k
      delete request_.get_collection_range_request_;
2942
13.3k
      break;
2943
0
    }
2944
338
    case kGetTtlRequest: {
2945
338
      delete request_.get_ttl_request_;
2946
338
      break;
2947
0
    }
2948
792
    case kKeysRequest: {
2949
792
      delete request_.keys_request_;
2950
792
      break;
2951
0
    }
2952
0
    case kGetForRenameRequest: {
2953
0
      delete request_.get_for_rename_request_;
2954
0
      break;
2955
0
    }
2956
96.2k
    case REQUEST_NOT_SET: {
2957
96.2k
      break;
2958
192k
    }
2959
192k
  }
2960
192k
  _oneof_case_[0] = REQUEST_NOT_SET;
2961
192k
}
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
10.2k
    ::google::protobuf::io::CodedInputStream* input) {
2993
24.1k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2994
10.2k
  ::google::protobuf::uint32 tag;
2995
  // @@protoc_insertion_point(parse_start:yb.RedisReadRequestPB)
2996
34.4k
  for (;;) {
2997
34.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2998
34.4k
    tag = p.first;
2999
34.4k
    if (!p.second) goto handle_unusual;
3000
24.1k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3001
      // optional .yb.RedisGetRequestPB get_request = 2;
3002
7.58k
      case 2: {
3003
7.58k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3004
7.58k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3005
7.58k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3006
7.58k
               input, mutable_get_request()));
3007
0
        } else {
3008
0
          goto handle_unusual;
3009
0
        }
3010
7.58k
        break;
3011
7.58k
      }
3012
3013
      // optional .yb.RedisStrLenRequestPB strlen_request = 3;
3014
0
      case 3: {
3015
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3016
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3017
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3018
0
               input, mutable_strlen_request()));
3019
0
        } else {
3020
0
          goto handle_unusual;
3021
0
        }
3022
0
        break;
3023
0
      }
3024
3025
      // optional .yb.RedisExistsRequestPB exists_request = 4;
3026
0
      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
10.2k
      case 6: {
3051
10.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3052
10.2k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
3053
10.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3054
10.2k
               input, mutable_key_value()));
3055
0
        } else {
3056
0
          goto handle_unusual;
3057
0
        }
3058
10.2k
        break;
3059
10.2k
      }
3060
3061
      // optional .yb.RedisSubKeyRangePB subkey_range = 7;
3062
2.42k
      case 7: {
3063
2.42k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3064
2.42k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
3065
2.42k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3066
2.42k
               input, mutable_subkey_range()));
3067
0
        } else {
3068
0
          goto handle_unusual;
3069
0
        }
3070
2.42k
        break;
3071
2.42k
      }
3072
3073
      // optional .yb.RedisIndexRangePB index_range = 8;
3074
11
      case 8: {
3075
11
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3076
11
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
3077
11
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3078
11
               input, mutable_index_range()));
3079
0
        } else {
3080
0
          goto handle_unusual;
3081
0
        }
3082
11
        break;
3083
11
      }
3084
3085
      // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9;
3086
2.42k
      case 9: {
3087
2.42k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3088
2.42k
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
3089
2.42k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3090
2.42k
               input, mutable_get_collection_range_request()));
3091
0
        } else {
3092
0
          goto handle_unusual;
3093
0
        }
3094
2.42k
        break;
3095
2.42k
      }
3096
3097
      // optional int32 range_request_limit = 10 [default = 0];
3098
1.20k
      case 10: {
3099
1.20k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3100
1.20k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
3101
1.20k
          set_has_range_request_limit();
3102
1.20k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3103
1.20k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3104
1.20k
                 input, &range_request_limit_)));
3105
0
        } else {
3106
0
          goto handle_unusual;
3107
0
        }
3108
1.20k
        break;
3109
1.20k
      }
3110
3111
      // optional .yb.RedisGetTtlRequestPB get_ttl_request = 11;
3112
74
      case 11: {
3113
74
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3114
74
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
3115
74
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3116
74
               input, mutable_get_ttl_request()));
3117
0
        } else {
3118
0
          goto handle_unusual;
3119
0
        }
3120
74
        break;
3121
74
      }
3122
3123
      // optional .yb.RedisKeysRequestPB keys_request = 12;
3124
198
      case 12: {
3125
198
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3126
198
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
3127
198
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3128
198
               input, mutable_keys_request()));
3129
0
        } else {
3130
0
          goto handle_unusual;
3131
0
        }
3132
198
        break;
3133
198
      }
3134
3135
      // optional .yb.RedisGetForRenameRequestPB get_for_rename_request = 13;
3136
0
      case 13: {
3137
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3138
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
3139
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3140
0
               input, mutable_get_for_rename_request()));
3141
0
        } else {
3142
0
          goto handle_unusual;
3143
0
        }
3144
0
        break;
3145
10.2k
      }
3146
3147
0
      default: {
3148
10.2k
      handle_unusual:
3149
10.2k
        if (tag == 0) {
3150
10.2k
          goto success;
3151
10.2k
        }
3152
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3153
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3154
0
        break;
3155
0
      }
3156
24.1k
    }
3157
24.1k
  }
3158
10.2k
success:
3159
  // @@protoc_insertion_point(parse_success:yb.RedisReadRequestPB)
3160
10.2k
  return true;
3161
0
failure:
3162
  // @@protoc_insertion_point(parse_failure:yb.RedisReadRequestPB)
3163
0
  return false;
3164
10.2k
#undef DO_
3165
10.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
10.3k
    bool deterministic, ::google::protobuf::uint8* target) const {
3246
10.3k
  (void)deterministic; // Unused
3247
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisReadRequestPB)
3248
10.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
3249
10.3k
  (void) cached_has_bits;
3250
3251
10.3k
  switch (request_case()) {
3252
7.60k
    case kGetRequest:
3253
7.60k
      target = ::google::protobuf::internal::WireFormatLite::
3254
7.60k
        InternalWriteMessageToArray(
3255
7.60k
          2, *request_.get_request_, deterministic, target);
3256
7.60k
      break;
3257
0
    case kStrlenRequest:
3258
0
      target = ::google::protobuf::internal::WireFormatLite::
3259
0
        InternalWriteMessageToArray(
3260
0
          3, *request_.strlen_request_, deterministic, target);
3261
0
      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
2.69k
    default: ;
3273
10.3k
  }
3274
10.3k
  cached_has_bits = _has_bits_[0];
3275
  // optional .yb.RedisKeyValuePB key_value = 6;
3276
10.3k
  if (cached_has_bits & 0x00000001u) {
3277
10.3k
    target = ::google::protobuf::internal::WireFormatLite::
3278
10.3k
      InternalWriteMessageToArray(
3279
10.3k
        6, *this->key_value_, deterministic, target);
3280
10.3k
  }
3281
3282
  // optional .yb.RedisSubKeyRangePB subkey_range = 7;
3283
10.3k
  if (cached_has_bits & 0x00000002u) {
3284
2.42k
    target = ::google::protobuf::internal::WireFormatLite::
3285
2.42k
      InternalWriteMessageToArray(
3286
2.42k
        7, *this->subkey_range_, deterministic, target);
3287
2.42k
  }
3288
3289
  // optional .yb.RedisIndexRangePB index_range = 8;
3290
10.3k
  if (cached_has_bits & 0x00000004u) {
3291
11
    target = ::google::protobuf::internal::WireFormatLite::
3292
11
      InternalWriteMessageToArray(
3293
11
        8, *this->index_range_, deterministic, target);
3294
11
  }
3295
3296
  // optional .yb.RedisCollectionGetRangeRequestPB get_collection_range_request = 9;
3297
10.3k
  if (has_get_collection_range_request()) {
3298
2.42k
    target = ::google::protobuf::internal::WireFormatLite::
3299
2.42k
      InternalWriteMessageToArray(
3300
2.42k
        9, *request_.get_collection_range_request_, deterministic, target);
3301
2.42k
  }
3302
3303
  // optional int32 range_request_limit = 10 [default = 0];
3304
10.3k
  if (cached_has_bits & 0x00000008u) {
3305
1.20k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->range_request_limit(), target);
3306
1.20k
  }
3307
3308
10.3k
  switch (request_case()) {
3309
74
    case kGetTtlRequest:
3310
74
      target = ::google::protobuf::internal::WireFormatLite::
3311
74
        InternalWriteMessageToArray(
3312
74
          11, *request_.get_ttl_request_, deterministic, target);
3313
74
      break;
3314
198
    case kKeysRequest:
3315
198
      target = ::google::protobuf::internal::WireFormatLite::
3316
198
        InternalWriteMessageToArray(
3317
198
          12, *request_.keys_request_, deterministic, target);
3318
198
      break;
3319
0
    case kGetForRenameRequest:
3320
0
      target = ::google::protobuf::internal::WireFormatLite::
3321
0
        InternalWriteMessageToArray(
3322
0
          13, *request_.get_for_rename_request_, deterministic, target);
3323
0
      break;
3324
10.0k
    default: ;
3325
10.3k
  }
3326
10.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
10.3k
  return target;
3332
10.3k
}
3333
3334
20.6k
size_t RedisReadRequestPB::ByteSizeLong() const {
3335
// @@protoc_insertion_point(message_byte_size_start:yb.RedisReadRequestPB)
3336
20.6k
  size_t total_size = 0;
3337
3338
20.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
20.6k
  if (_has_bits_[0 / 32] & 15u) {
3344
    // optional .yb.RedisKeyValuePB key_value = 6;
3345
20.6k
    if (has_key_value()) {
3346
20.6k
      total_size += 1 +
3347
20.6k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3348
20.6k
          *this->key_value_);
3349
20.6k
    }
3350
3351
    // optional .yb.RedisSubKeyRangePB subkey_range = 7;
3352
20.6k
    if (has_subkey_range()) {
3353
4.84k
      total_size += 1 +
3354
4.84k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3355
4.84k
          *this->subkey_range_);
3356
4.84k
    }
3357
3358
    // optional .yb.RedisIndexRangePB index_range = 8;
3359
20.6k
    if (has_index_range()) {
3360
22
      total_size += 1 +
3361
22
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3362
22
          *this->index_range_);
3363
22
    }
3364
3365
    // optional int32 range_request_limit = 10 [default = 0];
3366
20.6k
    if (has_range_request_limit()) {
3367
2.40k
      total_size += 1 +
3368
2.40k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3369
2.40k
          this->range_request_limit());
3370
2.40k
    }
3371
3372
20.6k
  }
3373
20.6k
  switch (request_case()) {
3374
    // optional .yb.RedisGetRequestPB get_request = 2;
3375
15.2k
    case kGetRequest: {
3376
15.2k
      total_size += 1 +
3377
15.2k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3378
15.2k
          *request_.get_request_);
3379
15.2k
      break;
3380
0
    }
3381
    // optional .yb.RedisStrLenRequestPB strlen_request = 3;
3382
0
    case kStrlenRequest: {
3383
0
      total_size += 1 +
3384
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3385
0
          *request_.strlen_request_);
3386
0
      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
4.84k
    case kGetCollectionRangeRequest: {
3404
4.84k
      total_size += 1 +
3405
4.84k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3406
4.84k
          *request_.get_collection_range_request_);
3407
4.84k
      break;
3408
0
    }
3409
    // optional .yb.RedisGetTtlRequestPB get_ttl_request = 11;
3410
148
    case kGetTtlRequest: {
3411
148
      total_size += 1 +
3412
148
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3413
148
          *request_.get_ttl_request_);
3414
148
      break;
3415
0
    }
3416
    // optional .yb.RedisKeysRequestPB keys_request = 12;
3417
396
    case kKeysRequest: {
3418
396
      total_size += 1 +
3419
396
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3420
396
          *request_.keys_request_);
3421
396
      break;
3422
0
    }
3423
    // optional .yb.RedisGetForRenameRequestPB get_for_rename_request = 13;
3424
0
    case kGetForRenameRequest: {
3425
0
      total_size += 1 +
3426
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3427
0
          *request_.get_for_rename_request_);
3428
0
      break;
3429
0
    }
3430
0
    case REQUEST_NOT_SET: {
3431
0
      break;
3432
20.6k
    }
3433
20.6k
  }
3434
20.6k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3435
20.6k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3436
20.6k
  _cached_size_ = cached_size;
3437
20.6k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3438
20.6k
  return total_size;
3439
20.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
20.5k
bool RedisReadRequestPB::IsInitialized() const {
3533
20.5k
  if (has_index_range()) {
3534
22
    if (!this->index_range_->IsInitialized()) return false;
3535
20.5k
  }
3536
20.5k
  return true;
3537
20.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
53.1k
::google::protobuf::Metadata RedisReadRequestPB::GetMetadata() const {
3557
53.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3558
53.1k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3559
53.1k
}
3560
3561
3562
// ===================================================================
3563
3564
17.1k
void RedisSubKeyRangePB::InitAsDefaultInstance() {
3565
17.1k
  ::yb::_RedisSubKeyRangePB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::RedisSubKeyBoundPB*>(
3566
17.1k
      ::yb::RedisSubKeyBoundPB::internal_default_instance());
3567
17.1k
  ::yb::_RedisSubKeyRangePB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::RedisSubKeyBoundPB*>(
3568
17.1k
      ::yb::RedisSubKeyBoundPB::internal_default_instance());
3569
17.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
25.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3577
7.90k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3578
7.90k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyRangePB();
3579
7.90k
  }
3580
25.0k
  SharedCtor();
3581
  // @@protoc_insertion_point(constructor:yb.RedisSubKeyRangePB)
3582
25.0k
}
3583
RedisSubKeyRangePB::RedisSubKeyRangePB(const RedisSubKeyRangePB& from)
3584
  : ::google::protobuf::Message(),
3585
      _internal_metadata_(NULL),
3586
      _has_bits_(from._has_bits_),
3587
5.47k
      _cached_size_(0) {
3588
5.47k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3589
5.47k
  if (from.has_lower_bound()) {
3590
5.47k
    lower_bound_ = new ::yb::RedisSubKeyBoundPB(*from.lower_bound_);
3591
0
  } else {
3592
0
    lower_bound_ = NULL;
3593
0
  }
3594
5.47k
  if (from.has_upper_bound()) {
3595
5.47k
    upper_bound_ = new ::yb::RedisSubKeyBoundPB(*from.upper_bound_);
3596
0
  } else {
3597
0
    upper_bound_ = NULL;
3598
0
  }
3599
  // @@protoc_insertion_point(copy_constructor:yb.RedisSubKeyRangePB)
3600
5.47k
}
3601
3602
25.0k
void RedisSubKeyRangePB::SharedCtor() {
3603
25.0k
  _cached_size_ = 0;
3604
25.0k
  ::memset(&lower_bound_, 0, static_cast<size_t>(
3605
25.0k
      reinterpret_cast<char*>(&upper_bound_) -
3606
25.0k
      reinterpret_cast<char*>(&lower_bound_)) + sizeof(upper_bound_));
3607
25.0k
}
3608
3609
13.3k
RedisSubKeyRangePB::~RedisSubKeyRangePB() {
3610
  // @@protoc_insertion_point(destructor:yb.RedisSubKeyRangePB)
3611
13.3k
  SharedDtor();
3612
13.3k
}
3613
3614
13.3k
void RedisSubKeyRangePB::SharedDtor() {
3615
13.3k
  if (this != internal_default_instance()) delete lower_bound_;
3616
13.3k
  if (this != internal_default_instance()) delete upper_bound_;
3617
13.3k
}
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
2.42k
    ::google::protobuf::io::CodedInputStream* input) {
3665
4.84k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3666
2.42k
  ::google::protobuf::uint32 tag;
3667
  // @@protoc_insertion_point(parse_start:yb.RedisSubKeyRangePB)
3668
7.26k
  for (;;) {
3669
7.26k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3670
7.26k
    tag = p.first;
3671
7.26k
    if (!p.second) goto handle_unusual;
3672
4.84k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3673
      // optional .yb.RedisSubKeyBoundPB lower_bound = 1;
3674
2.42k
      case 1: {
3675
2.42k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3676
2.42k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3677
2.42k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3678
2.42k
               input, mutable_lower_bound()));
3679
0
        } else {
3680
0
          goto handle_unusual;
3681
0
        }
3682
2.42k
        break;
3683
2.42k
      }
3684
3685
      // optional .yb.RedisSubKeyBoundPB upper_bound = 2;
3686
2.42k
      case 2: {
3687
2.42k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3688
2.42k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3689
2.42k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3690
2.42k
               input, mutable_upper_bound()));
3691
0
        } else {
3692
0
          goto handle_unusual;
3693
0
        }
3694
2.42k
        break;
3695
2.42k
      }
3696
3697
0
      default: {
3698
2.42k
      handle_unusual:
3699
2.42k
        if (tag == 0) {
3700
2.42k
          goto success;
3701
2.42k
        }
3702
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3703
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3704
0
        break;
3705
0
      }
3706
4.84k
    }
3707
4.84k
  }
3708
2.42k
success:
3709
  // @@protoc_insertion_point(parse_success:yb.RedisSubKeyRangePB)
3710
2.42k
  return true;
3711
0
failure:
3712
  // @@protoc_insertion_point(parse_failure:yb.RedisSubKeyRangePB)
3713
0
  return false;
3714
2.42k
#undef DO_
3715
2.42k
}
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
2.42k
    bool deterministic, ::google::protobuf::uint8* target) const {
3745
2.42k
  (void)deterministic; // Unused
3746
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSubKeyRangePB)
3747
2.42k
  ::google::protobuf::uint32 cached_has_bits = 0;
3748
2.42k
  (void) cached_has_bits;
3749
3750
2.42k
  cached_has_bits = _has_bits_[0];
3751
  // optional .yb.RedisSubKeyBoundPB lower_bound = 1;
3752
2.42k
  if (cached_has_bits & 0x00000001u) {
3753
2.42k
    target = ::google::protobuf::internal::WireFormatLite::
3754
2.42k
      InternalWriteMessageToArray(
3755
2.42k
        1, *this->lower_bound_, deterministic, target);
3756
2.42k
  }
3757
3758
  // optional .yb.RedisSubKeyBoundPB upper_bound = 2;
3759
2.42k
  if (cached_has_bits & 0x00000002u) {
3760
2.42k
    target = ::google::protobuf::internal::WireFormatLite::
3761
2.42k
      InternalWriteMessageToArray(
3762
2.42k
        2, *this->upper_bound_, deterministic, target);
3763
2.42k
  }
3764
3765
2.42k
  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
2.42k
  return target;
3771
2.42k
}
3772
3773
4.84k
size_t RedisSubKeyRangePB::ByteSizeLong() const {
3774
// @@protoc_insertion_point(message_byte_size_start:yb.RedisSubKeyRangePB)
3775
4.84k
  size_t total_size = 0;
3776
3777
4.84k
  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
4.84k
  if (_has_bits_[0 / 32] & 3u) {
3783
    // optional .yb.RedisSubKeyBoundPB lower_bound = 1;
3784
4.84k
    if (has_lower_bound()) {
3785
4.84k
      total_size += 1 +
3786
4.84k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3787
4.84k
          *this->lower_bound_);
3788
4.84k
    }
3789
3790
    // optional .yb.RedisSubKeyBoundPB upper_bound = 2;
3791
4.84k
    if (has_upper_bound()) {
3792
4.84k
      total_size += 1 +
3793
4.84k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3794
4.84k
          *this->upper_bound_);
3795
4.84k
    }
3796
3797
4.84k
  }
3798
4.84k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3799
4.84k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3800
4.84k
  _cached_size_ = cached_size;
3801
4.84k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3802
4.84k
  return total_size;
3803
4.84k
}
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
7.90k
::google::protobuf::Metadata RedisSubKeyRangePB::GetMetadata() const {
3870
7.90k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3871
7.90k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3872
7.90k
}
3873
3874
3875
// ===================================================================
3876
3877
17.1k
void RedisIndexRangePB::InitAsDefaultInstance() {
3878
17.1k
  ::yb::_RedisIndexRangePB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::RedisIndexBoundPB*>(
3879
17.1k
      ::yb::RedisIndexBoundPB::internal_default_instance());
3880
17.1k
  ::yb::_RedisIndexRangePB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::RedisIndexBoundPB*>(
3881
17.1k
      ::yb::RedisIndexBoundPB::internal_default_instance());
3882
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3890
32
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3891
32
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexRangePB();
3892
32
  }
3893
17.1k
  SharedCtor();
3894
  // @@protoc_insertion_point(constructor:yb.RedisIndexRangePB)
3895
17.1k
}
3896
RedisIndexRangePB::RedisIndexRangePB(const RedisIndexRangePB& from)
3897
  : ::google::protobuf::Message(),
3898
      _internal_metadata_(NULL),
3899
      _has_bits_(from._has_bits_),
3900
21
      _cached_size_(0) {
3901
21
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3902
21
  if (from.has_lower_bound()) {
3903
21
    lower_bound_ = new ::yb::RedisIndexBoundPB(*from.lower_bound_);
3904
0
  } else {
3905
0
    lower_bound_ = NULL;
3906
0
  }
3907
21
  if (from.has_upper_bound()) {
3908
0
    upper_bound_ = new ::yb::RedisIndexBoundPB(*from.upper_bound_);
3909
21
  } else {
3910
21
    upper_bound_ = NULL;
3911
21
  }
3912
  // @@protoc_insertion_point(copy_constructor:yb.RedisIndexRangePB)
3913
21
}
3914
3915
17.1k
void RedisIndexRangePB::SharedCtor() {
3916
17.1k
  _cached_size_ = 0;
3917
17.1k
  ::memset(&lower_bound_, 0, static_cast<size_t>(
3918
17.1k
      reinterpret_cast<char*>(&upper_bound_) -
3919
17.1k
      reinterpret_cast<char*>(&lower_bound_)) + sizeof(upper_bound_));
3920
17.1k
}
3921
3922
53
RedisIndexRangePB::~RedisIndexRangePB() {
3923
  // @@protoc_insertion_point(destructor:yb.RedisIndexRangePB)
3924
53
  SharedDtor();
3925
53
}
3926
3927
53
void RedisIndexRangePB::SharedDtor() {
3928
53
  if (this != internal_default_instance()) delete lower_bound_;
3929
53
  if (this != internal_default_instance()) delete upper_bound_;
3930
53
}
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
11
    ::google::protobuf::io::CodedInputStream* input) {
3978
11
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3979
11
  ::google::protobuf::uint32 tag;
3980
  // @@protoc_insertion_point(parse_start:yb.RedisIndexRangePB)
3981
22
  for (;;) {
3982
22
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3983
22
    tag = p.first;
3984
22
    if (!p.second) goto handle_unusual;
3985
11
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3986
      // optional .yb.RedisIndexBoundPB lower_bound = 1;
3987
11
      case 1: {
3988
11
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3989
11
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3990
11
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3991
11
               input, mutable_lower_bound()));
3992
0
        } else {
3993
0
          goto handle_unusual;
3994
0
        }
3995
11
        break;
3996
11
      }
3997
3998
      // optional .yb.RedisIndexBoundPB upper_bound = 2;
3999
0
      case 2: {
4000
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4001
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4002
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4003
0
               input, mutable_upper_bound()));
4004
0
        } else {
4005
0
          goto handle_unusual;
4006
0
        }
4007
0
        break;
4008
11
      }
4009
4010
0
      default: {
4011
11
      handle_unusual:
4012
11
        if (tag == 0) {
4013
11
          goto success;
4014
11
        }
4015
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4016
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4017
0
        break;
4018
0
      }
4019
11
    }
4020
11
  }
4021
11
success:
4022
  // @@protoc_insertion_point(parse_success:yb.RedisIndexRangePB)
4023
11
  return true;
4024
0
failure:
4025
  // @@protoc_insertion_point(parse_failure:yb.RedisIndexRangePB)
4026
0
  return false;
4027
11
#undef DO_
4028
11
}
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
11
    bool deterministic, ::google::protobuf::uint8* target) const {
4058
11
  (void)deterministic; // Unused
4059
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIndexRangePB)
4060
11
  ::google::protobuf::uint32 cached_has_bits = 0;
4061
11
  (void) cached_has_bits;
4062
4063
11
  cached_has_bits = _has_bits_[0];
4064
  // optional .yb.RedisIndexBoundPB lower_bound = 1;
4065
11
  if (cached_has_bits & 0x00000001u) {
4066
11
    target = ::google::protobuf::internal::WireFormatLite::
4067
11
      InternalWriteMessageToArray(
4068
11
        1, *this->lower_bound_, deterministic, target);
4069
11
  }
4070
4071
  // optional .yb.RedisIndexBoundPB upper_bound = 2;
4072
11
  if (cached_has_bits & 0x00000002u) {
4073
0
    target = ::google::protobuf::internal::WireFormatLite::
4074
0
      InternalWriteMessageToArray(
4075
0
        2, *this->upper_bound_, deterministic, target);
4076
0
  }
4077
4078
11
  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
11
  return target;
4084
11
}
4085
4086
22
size_t RedisIndexRangePB::ByteSizeLong() const {
4087
// @@protoc_insertion_point(message_byte_size_start:yb.RedisIndexRangePB)
4088
22
  size_t total_size = 0;
4089
4090
22
  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
22
  if (_has_bits_[0 / 32] & 3u) {
4096
    // optional .yb.RedisIndexBoundPB lower_bound = 1;
4097
22
    if (has_lower_bound()) {
4098
22
      total_size += 1 +
4099
22
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4100
22
          *this->lower_bound_);
4101
22
    }
4102
4103
    // optional .yb.RedisIndexBoundPB upper_bound = 2;
4104
22
    if (has_upper_bound()) {
4105
0
      total_size += 1 +
4106
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4107
0
          *this->upper_bound_);
4108
0
    }
4109
4110
22
  }
4111
22
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4112
22
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4113
22
  _cached_size_ = cached_size;
4114
22
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4115
22
  return total_size;
4116
22
}
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
22
bool RedisIndexRangePB::IsInitialized() const {
4166
22
  if (has_lower_bound()) {
4167
22
    if (!this->lower_bound_->IsInitialized()) return false;
4168
22
  }
4169
22
  if (has_upper_bound()) {
4170
0
    if (!this->upper_bound_->IsInitialized()) return false;
4171
22
  }
4172
22
  return true;
4173
22
}
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
32
::google::protobuf::Metadata RedisIndexRangePB::GetMetadata() const {
4189
32
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4190
32
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4191
32
}
4192
4193
4194
// ===================================================================
4195
4196
17.1k
void RedisIndexBoundPB::InitAsDefaultInstance() {
4197
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4204
32
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4205
32
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIndexBoundPB();
4206
32
  }
4207
17.1k
  SharedCtor();
4208
  // @@protoc_insertion_point(constructor:yb.RedisIndexBoundPB)
4209
17.1k
}
4210
RedisIndexBoundPB::RedisIndexBoundPB(const RedisIndexBoundPB& from)
4211
  : ::google::protobuf::Message(),
4212
      _internal_metadata_(NULL),
4213
      _has_bits_(from._has_bits_),
4214
21
      _cached_size_(0) {
4215
21
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4216
21
  index_ = from.index_;
4217
  // @@protoc_insertion_point(copy_constructor:yb.RedisIndexBoundPB)
4218
21
}
4219
4220
17.1k
void RedisIndexBoundPB::SharedCtor() {
4221
17.1k
  _cached_size_ = 0;
4222
17.1k
  index_ = GOOGLE_LONGLONG(0);
4223
17.1k
}
4224
4225
53
RedisIndexBoundPB::~RedisIndexBoundPB() {
4226
  // @@protoc_insertion_point(destructor:yb.RedisIndexBoundPB)
4227
53
  SharedDtor();
4228
53
}
4229
4230
53
void RedisIndexBoundPB::SharedDtor() {
4231
53
}
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
11
    ::google::protobuf::io::CodedInputStream* input) {
4269
11
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4270
11
  ::google::protobuf::uint32 tag;
4271
  // @@protoc_insertion_point(parse_start:yb.RedisIndexBoundPB)
4272
22
  for (;;) {
4273
22
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4274
22
    tag = p.first;
4275
22
    if (!p.second) goto handle_unusual;
4276
11
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4277
      // required int64 index = 1;
4278
11
      case 1: {
4279
11
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4280
11
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4281
11
          set_has_index();
4282
11
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4283
11
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4284
11
                 input, &index_)));
4285
0
        } else {
4286
0
          goto handle_unusual;
4287
0
        }
4288
11
        break;
4289
11
      }
4290
4291
0
      default: {
4292
11
      handle_unusual:
4293
11
        if (tag == 0) {
4294
11
          goto success;
4295
11
        }
4296
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4297
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4298
0
        break;
4299
0
      }
4300
11
    }
4301
11
  }
4302
11
success:
4303
  // @@protoc_insertion_point(parse_success:yb.RedisIndexBoundPB)
4304
11
  return true;
4305
0
failure:
4306
  // @@protoc_insertion_point(parse_failure:yb.RedisIndexBoundPB)
4307
0
  return false;
4308
11
#undef DO_
4309
11
}
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
11
    bool deterministic, ::google::protobuf::uint8* target) const {
4332
11
  (void)deterministic; // Unused
4333
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIndexBoundPB)
4334
11
  ::google::protobuf::uint32 cached_has_bits = 0;
4335
11
  (void) cached_has_bits;
4336
4337
11
  cached_has_bits = _has_bits_[0];
4338
  // required int64 index = 1;
4339
11
  if (cached_has_bits & 0x00000001u) {
4340
11
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->index(), target);
4341
11
  }
4342
4343
11
  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
11
  return target;
4349
11
}
4350
4351
22
size_t RedisIndexBoundPB::ByteSizeLong() const {
4352
// @@protoc_insertion_point(message_byte_size_start:yb.RedisIndexBoundPB)
4353
22
  size_t total_size = 0;
4354
4355
22
  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
22
  if (has_index()) {
4362
22
    total_size += 1 +
4363
22
      ::google::protobuf::internal::WireFormatLite::Int64Size(
4364
22
        this->index());
4365
22
  }
4366
22
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4367
22
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4368
22
  _cached_size_ = cached_size;
4369
22
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4370
22
  return total_size;
4371
22
}
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
22
bool RedisIndexBoundPB::IsInitialized() const {
4415
22
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
4416
22
  return true;
4417
22
}
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
32
::google::protobuf::Metadata RedisIndexBoundPB::GetMetadata() const {
4432
32
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4433
32
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4434
32
}
4435
4436
4437
// ===================================================================
4438
4439
17.1k
void RedisSubKeyBoundPB::InitAsDefaultInstance() {
4440
17.1k
  ::yb::_RedisSubKeyBoundPB_default_instance_._instance.get_mutable()->subkey_bound_ = const_cast< ::yb::RedisKeyValueSubKeyPB*>(
4441
17.1k
      ::yb::RedisKeyValueSubKeyPB::internal_default_instance());
4442
17.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
32.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4451
15.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4452
15.8k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSubKeyBoundPB();
4453
15.8k
  }
4454
32.9k
  SharedCtor();
4455
  // @@protoc_insertion_point(constructor:yb.RedisSubKeyBoundPB)
4456
32.9k
}
4457
RedisSubKeyBoundPB::RedisSubKeyBoundPB(const RedisSubKeyBoundPB& from)
4458
  : ::google::protobuf::Message(),
4459
      _internal_metadata_(NULL),
4460
      _has_bits_(from._has_bits_),
4461
10.9k
      _cached_size_(0) {
4462
10.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4463
10.9k
  if (from.has_subkey_bound()) {
4464
10.8k
    subkey_bound_ = new ::yb::RedisKeyValueSubKeyPB(*from.subkey_bound_);
4465
114
  } else {
4466
114
    subkey_bound_ = NULL;
4467
114
  }
4468
10.9k
  ::memcpy(&is_exclusive_, &from.is_exclusive_,
4469
10.9k
    static_cast<size_t>(reinterpret_cast<char*>(&infinity_type_) -
4470
10.9k
    reinterpret_cast<char*>(&is_exclusive_)) + sizeof(infinity_type_));
4471
  // @@protoc_insertion_point(copy_constructor:yb.RedisSubKeyBoundPB)
4472
10.9k
}
4473
4474
32.9k
void RedisSubKeyBoundPB::SharedCtor() {
4475
32.9k
  _cached_size_ = 0;
4476
32.9k
  ::memset(&subkey_bound_, 0, static_cast<size_t>(
4477
32.9k
      reinterpret_cast<char*>(&is_exclusive_) -
4478
32.9k
      reinterpret_cast<char*>(&subkey_bound_)) + sizeof(is_exclusive_));
4479
32.9k
  infinity_type_ = 1;
4480
32.9k
}
4481
4482
26.7k
RedisSubKeyBoundPB::~RedisSubKeyBoundPB() {
4483
  // @@protoc_insertion_point(destructor:yb.RedisSubKeyBoundPB)
4484
26.7k
  SharedDtor();
4485
26.7k
}
4486
4487
26.7k
void RedisSubKeyBoundPB::SharedDtor() {
4488
26.7k
  if (this != internal_default_instance()) delete subkey_bound_;
4489
26.7k
}
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
4.84k
    ::google::protobuf::io::CodedInputStream* input) {
4535
9.63k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4536
4.84k
  ::google::protobuf::uint32 tag;
4537
  // @@protoc_insertion_point(parse_start:yb.RedisSubKeyBoundPB)
4538
14.4k
  for (;;) {
4539
14.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4540
14.4k
    tag = p.first;
4541
14.4k
    if (!p.second) goto handle_unusual;
4542
9.63k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4543
      // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3;
4544
4.78k
      case 3: {
4545
4.78k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4546
4.78k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4547
4.78k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4548
4.78k
               input, mutable_subkey_bound()));
4549
0
        } else {
4550
0
          goto handle_unusual;
4551
0
        }
4552
4.78k
        break;
4553
4.78k
      }
4554
4555
      // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4;
4556
60
      case 4: {
4557
60
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4558
60
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
4559
60
          int value;
4560
60
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4561
60
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4562
60
                 input, &value)));
4563
60
          if (::yb::RedisSubKeyBoundPB_InfinityType_IsValid(value)) {
4564
60
            set_infinity_type(static_cast< ::yb::RedisSubKeyBoundPB_InfinityType >(value));
4565
0
          } else {
4566
0
            mutable_unknown_fields()->AddVarint(
4567
0
                4, static_cast< ::google::protobuf::uint64>(value));
4568
0
          }
4569
0
        } else {
4570
0
          goto handle_unusual;
4571
0
        }
4572
60
        break;
4573
60
      }
4574
4575
      // optional bool is_exclusive = 6 [default = false];
4576
4.78k
      case 6: {
4577
4.78k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4578
4.78k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
4579
4.78k
          set_has_is_exclusive();
4580
4.78k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4581
4.78k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4582
4.78k
                 input, &is_exclusive_)));
4583
0
        } else {
4584
0
          goto handle_unusual;
4585
0
        }
4586
4.78k
        break;
4587
4.84k
      }
4588
4589
0
      default: {
4590
4.84k
      handle_unusual:
4591
4.84k
        if (tag == 0) {
4592
4.84k
          goto success;
4593
4.84k
        }
4594
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4595
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4596
0
        break;
4597
0
      }
4598
9.63k
    }
4599
9.63k
  }
4600
4.84k
success:
4601
  // @@protoc_insertion_point(parse_success:yb.RedisSubKeyBoundPB)
4602
4.84k
  return true;
4603
0
failure:
4604
  // @@protoc_insertion_point(parse_failure:yb.RedisSubKeyBoundPB)
4605
0
  return false;
4606
4.84k
#undef DO_
4607
4.84k
}
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
4.84k
    bool deterministic, ::google::protobuf::uint8* target) const {
4642
4.84k
  (void)deterministic; // Unused
4643
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSubKeyBoundPB)
4644
4.84k
  ::google::protobuf::uint32 cached_has_bits = 0;
4645
4.84k
  (void) cached_has_bits;
4646
4647
4.84k
  cached_has_bits = _has_bits_[0];
4648
  // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3;
4649
4.84k
  if (cached_has_bits & 0x00000001u) {
4650
4.78k
    target = ::google::protobuf::internal::WireFormatLite::
4651
4.78k
      InternalWriteMessageToArray(
4652
4.78k
        3, *this->subkey_bound_, deterministic, target);
4653
4.78k
  }
4654
4655
  // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4;
4656
4.84k
  if (cached_has_bits & 0x00000004u) {
4657
60
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4658
60
      4, this->infinity_type(), target);
4659
60
  }
4660
4661
  // optional bool is_exclusive = 6 [default = false];
4662
4.84k
  if (cached_has_bits & 0x00000002u) {
4663
4.78k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_exclusive(), target);
4664
4.78k
  }
4665
4666
4.84k
  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
4.84k
  return target;
4672
4.84k
}
4673
4674
9.69k
size_t RedisSubKeyBoundPB::ByteSizeLong() const {
4675
// @@protoc_insertion_point(message_byte_size_start:yb.RedisSubKeyBoundPB)
4676
9.69k
  size_t total_size = 0;
4677
4678
9.69k
  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
9.69k
  if (_has_bits_[0 / 32] & 7u) {
4684
    // optional .yb.RedisKeyValueSubKeyPB subkey_bound = 3;
4685
9.69k
    if (has_subkey_bound()) {
4686
9.57k
      total_size += 1 +
4687
9.57k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4688
9.57k
          *this->subkey_bound_);
4689
9.57k
    }
4690
4691
    // optional bool is_exclusive = 6 [default = false];
4692
9.69k
    if (has_is_exclusive()) {
4693
9.57k
      total_size += 1 + 1;
4694
9.57k
    }
4695
4696
    // optional .yb.RedisSubKeyBoundPB.InfinityType infinity_type = 4;
4697
9.69k
    if (has_infinity_type()) {
4698
120
      total_size += 1 +
4699
120
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->infinity_type());
4700
120
    }
4701
4702
9.69k
  }
4703
9.69k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4704
9.69k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4705
9.69k
  _cached_size_ = cached_size;
4706
9.69k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4707
9.69k
  return total_size;
4708
9.69k
}
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
15.8k
::google::protobuf::Metadata RedisSubKeyBoundPB::GetMetadata() const {
4780
15.8k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4781
15.8k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4782
15.8k
}
4783
4784
4785
// ===================================================================
4786
4787
17.1k
void RedisKeyValueSubKeyPB::InitAsDefaultInstance() {
4788
17.1k
  ::yb::_RedisKeyValueSubKeyPB_default_instance_.string_subkey_.UnsafeSetDefault(
4789
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
4790
17.1k
  ::yb::_RedisKeyValueSubKeyPB_default_instance_.timestamp_subkey_ = GOOGLE_LONGLONG(0);
4791
17.1k
  ::yb::_RedisKeyValueSubKeyPB_default_instance_.double_subkey_ = 0;
4792
17.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
113k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4801
96.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4802
96.1k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValueSubKeyPB();
4803
96.1k
  }
4804
113k
  SharedCtor();
4805
  // @@protoc_insertion_point(constructor:yb.RedisKeyValueSubKeyPB)
4806
113k
}
4807
RedisKeyValueSubKeyPB::RedisKeyValueSubKeyPB(const RedisKeyValueSubKeyPB& from)
4808
  : ::google::protobuf::Message(),
4809
      _internal_metadata_(NULL),
4810
      _has_bits_(from._has_bits_),
4811
10.8k
      _cached_size_(0) {
4812
10.8k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4813
10.8k
  clear_has_subkey();
4814
10.8k
  switch (from.subkey_case()) {
4815
0
    case kStringSubkey: {
4816
0
      set_string_subkey(from.string_subkey());
4817
0
      break;
4818
0
    }
4819
10.8k
    case kTimestampSubkey: {
4820
10.8k
      set_timestamp_subkey(from.timestamp_subkey());
4821
10.8k
      break;
4822
0
    }
4823
12
    case kDoubleSubkey: {
4824
12
      set_double_subkey(from.double_subkey());
4825
12
      break;
4826
0
    }
4827
0
    case SUBKEY_NOT_SET: {
4828
0
      break;
4829
0
    }
4830
10.8k
  }
4831
  // @@protoc_insertion_point(copy_constructor:yb.RedisKeyValueSubKeyPB)
4832
10.8k
}
4833
4834
113k
void RedisKeyValueSubKeyPB::SharedCtor() {
4835
113k
  _cached_size_ = 0;
4836
113k
  clear_has_subkey();
4837
113k
}
4838
4839
106k
RedisKeyValueSubKeyPB::~RedisKeyValueSubKeyPB() {
4840
  // @@protoc_insertion_point(destructor:yb.RedisKeyValueSubKeyPB)
4841
106k
  SharedDtor();
4842
106k
}
4843
4844
106k
void RedisKeyValueSubKeyPB::SharedDtor() {
4845
106k
  if (has_subkey()) {
4846
106k
    clear_subkey();
4847
106k
  }
4848
106k
}
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
213k
void RedisKeyValueSubKeyPB::clear_subkey() {
4874
// @@protoc_insertion_point(one_of_clear_start:yb.RedisKeyValueSubKeyPB)
4875
213k
  switch (subkey_case()) {
4876
43.0k
    case kStringSubkey: {
4877
43.0k
      subkey_.string_subkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4878
43.0k
      break;
4879
0
    }
4880
48.7k
    case kTimestampSubkey: {
4881
      // No need to clear
4882
48.7k
      break;
4883
0
    }
4884
15.2k
    case kDoubleSubkey: {
4885
      // No need to clear
4886
15.2k
      break;
4887
0
    }
4888
106k
    case SUBKEY_NOT_SET: {
4889
106k
      break;
4890
213k
    }
4891
213k
  }
4892
213k
  _oneof_case_[0] = SUBKEY_NOT_SET;
4893
213k
}
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
28.6k
    ::google::protobuf::io::CodedInputStream* input) {
4909
28.6k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4910
28.6k
  ::google::protobuf::uint32 tag;
4911
  // @@protoc_insertion_point(parse_start:yb.RedisKeyValueSubKeyPB)
4912
57.3k
  for (;;) {
4913
57.3k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4914
57.3k
    tag = p.first;
4915
57.3k
    if (!p.second) goto handle_unusual;
4916
28.6k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4917
      // optional bytes string_subkey = 1;
4918
13.3k
      case 1: {
4919
13.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4920
13.3k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4921
13.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4922
13.3k
                input, this->mutable_string_subkey()));
4923
0
        } else {
4924
0
          goto handle_unusual;
4925
0
        }
4926
13.3k
        break;
4927
13.3k
      }
4928
4929
      // optional int64 timestamp_subkey = 2;
4930
10.6k
      case 2: {
4931
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4932
10.6k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4933
10.6k
          clear_subkey();
4934
10.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4935
10.6k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4936
10.6k
                 input, &subkey_.timestamp_subkey_)));
4937
10.6k
          set_has_timestamp_subkey();
4938
0
        } else {
4939
0
          goto handle_unusual;
4940
0
        }
4941
10.6k
        break;
4942
10.6k
      }
4943
4944
      // optional double double_subkey = 3;
4945
4.64k
      case 3: {
4946
4.64k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4947
4.64k
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
4948
4.64k
          clear_subkey();
4949
4.64k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4950
4.64k
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4951
4.64k
                 input, &subkey_.double_subkey_)));
4952
4.64k
          set_has_double_subkey();
4953
0
        } else {
4954
0
          goto handle_unusual;
4955
0
        }
4956
4.64k
        break;
4957
28.6k
      }
4958
4959
0
      default: {
4960
28.6k
      handle_unusual:
4961
28.6k
        if (tag == 0) {
4962
28.6k
          goto success;
4963
28.6k
        }
4964
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4965
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4966
0
        break;
4967
0
      }
4968
28.6k
    }
4969
28.6k
  }
4970
28.6k
success:
4971
  // @@protoc_insertion_point(parse_success:yb.RedisKeyValueSubKeyPB)
4972
28.6k
  return true;
4973
0
failure:
4974
  // @@protoc_insertion_point(parse_failure:yb.RedisKeyValueSubKeyPB)
4975
0
  return false;
4976
28.6k
#undef DO_
4977
28.6k
}
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
28.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
5007
28.6k
  (void)deterministic; // Unused
5008
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeyValueSubKeyPB)
5009
28.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
5010
28.6k
  (void) cached_has_bits;
5011
5012
28.6k
  switch (subkey_case()) {
5013
13.3k
    case kStringSubkey:
5014
13.3k
      target =
5015
13.3k
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5016
13.3k
          1, this->string_subkey(), target);
5017
13.3k
      break;
5018
10.6k
    case kTimestampSubkey:
5019
10.6k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp_subkey(), target);
5020
10.6k
      break;
5021
4.64k
    case kDoubleSubkey:
5022
4.64k
      target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->double_subkey(), target);
5023
4.64k
      break;
5024
0
    default: ;
5025
28.6k
  }
5026
28.6k
  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
28.6k
  return target;
5032
28.6k
}
5033
5034
112k
size_t RedisKeyValueSubKeyPB::ByteSizeLong() const {
5035
// @@protoc_insertion_point(message_byte_size_start:yb.RedisKeyValueSubKeyPB)
5036
112k
  size_t total_size = 0;
5037
5038
112k
  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
112k
  switch (subkey_case()) {
5044
    // optional bytes string_subkey = 1;
5045
56.3k
    case kStringSubkey: {
5046
56.3k
      total_size += 1 +
5047
56.3k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5048
56.3k
          this->string_subkey());
5049
56.3k
      break;
5050
0
    }
5051
    // optional int64 timestamp_subkey = 2;
5052
36.5k
    case kTimestampSubkey: {
5053
36.5k
      total_size += 1 +
5054
36.5k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5055
36.5k
          this->timestamp_subkey());
5056
36.5k
      break;
5057
0
    }
5058
    // optional double double_subkey = 3;
5059
19.8k
    case kDoubleSubkey: {
5060
19.8k
      total_size += 1 + 8;
5061
19.8k
      break;
5062
0
    }
5063
0
    case SUBKEY_NOT_SET: {
5064
0
      break;
5065
112k
    }
5066
112k
  }
5067
112k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5068
112k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5069
112k
  _cached_size_ = cached_size;
5070
112k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5071
112k
  return total_size;
5072
112k
}
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
630
void RedisKeyValueSubKeyPB::MergeFrom(const RedisKeyValueSubKeyPB& from) {
5090
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisKeyValueSubKeyPB)
5091
630
  GOOGLE_DCHECK_NE(&from, this);
5092
630
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5093
630
  ::google::protobuf::uint32 cached_has_bits = 0;
5094
630
  (void) cached_has_bits;
5095
5096
630
  switch (from.subkey_case()) {
5097
21
    case kStringSubkey: {
5098
21
      set_string_subkey(from.string_subkey());
5099
21
      break;
5100
0
    }
5101
609
    case kTimestampSubkey: {
5102
609
      set_timestamp_subkey(from.timestamp_subkey());
5103
609
      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
630
  }
5113
630
}
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
40.1k
::google::protobuf::Metadata RedisKeyValueSubKeyPB::GetMetadata() const {
5147
40.1k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
5148
40.1k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
5149
40.1k
}
5150
5151
5152
// ===================================================================
5153
5154
17.1k
void RedisKeyValuePB::InitAsDefaultInstance() {
5155
17.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
153k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5167
136k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5168
136k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeyValuePB();
5169
136k
  }
5170
153k
  SharedCtor();
5171
  // @@protoc_insertion_point(constructor:yb.RedisKeyValuePB)
5172
153k
}
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
42.9k
      value_(from.value_) {
5180
42.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5181
42.9k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5182
42.9k
  if (from.has_key()) {
5183
42.6k
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
5184
42.6k
  }
5185
42.9k
  ::memcpy(&hash_code_, &from.hash_code_,
5186
42.9k
    static_cast<size_t>(reinterpret_cast<char*>(&type_) -
5187
42.9k
    reinterpret_cast<char*>(&hash_code_)) + sizeof(type_));
5188
  // @@protoc_insertion_point(copy_constructor:yb.RedisKeyValuePB)
5189
42.9k
}
5190
5191
153k
void RedisKeyValuePB::SharedCtor() {
5192
153k
  _cached_size_ = 0;
5193
153k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5194
153k
  ::memset(&hash_code_, 0, static_cast<size_t>(
5195
153k
      reinterpret_cast<char*>(&index_) -
5196
153k
      reinterpret_cast<char*>(&hash_code_)) + sizeof(index_));
5197
153k
  type_ = 1;
5198
153k
}
5199
5200
179k
RedisKeyValuePB::~RedisKeyValuePB() {
5201
  // @@protoc_insertion_point(destructor:yb.RedisKeyValuePB)
5202
179k
  SharedDtor();
5203
179k
}
5204
5205
179k
void RedisKeyValuePB::SharedDtor() {
5206
179k
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5207
179k
}
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
31.7k
    ::google::protobuf::io::CodedInputStream* input) {
5257
144k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5258
31.7k
  ::google::protobuf::uint32 tag;
5259
  // @@protoc_insertion_point(parse_start:yb.RedisKeyValuePB)
5260
176k
  for (;;) {
5261
176k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5262
176k
    tag = p.first;
5263
176k
    if (!p.second) goto handle_unusual;
5264
144k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5265
      // optional uint32 hash_code = 1;
5266
31.7k
      case 1: {
5267
31.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5268
31.7k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5269
31.7k
          set_has_hash_code();
5270
31.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5271
31.7k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5272
31.7k
                 input, &hash_code_)));
5273
0
        } else {
5274
0
          goto handle_unusual;
5275
0
        }
5276
31.7k
        break;
5277
31.7k
      }
5278
5279
      // optional bytes key = 2;
5280
31.5k
      case 2: {
5281
31.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5282
31.5k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5283
31.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5284
31.5k
                input, this->mutable_key()));
5285
0
        } else {
5286
0
          goto handle_unusual;
5287
0
        }
5288
31.5k
        break;
5289
31.5k
      }
5290
5291
      // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE];
5292
21.4k
      case 3: {
5293
21.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5294
21.4k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5295
21.4k
          int value;
5296
21.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5297
21.4k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5298
21.4k
                 input, &value)));
5299
21.4k
          if (::yb::RedisDataType_IsValid(value)) {
5300
21.4k
            set_type(static_cast< ::yb::RedisDataType >(value));
5301
0
          } else {
5302
0
            mutable_unknown_fields()->AddVarint(
5303
0
                3, static_cast< ::google::protobuf::uint64>(value));
5304
0
          }
5305
0
        } else {
5306
0
          goto handle_unusual;
5307
0
        }
5308
21.4k
        break;
5309
21.4k
      }
5310
5311
      // repeated .yb.RedisKeyValueSubKeyPB subkey = 4;
5312
23.8k
      case 4: {
5313
23.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5314
23.8k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5315
23.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_subkey()));
5316
0
        } else {
5317
0
          goto handle_unusual;
5318
0
        }
5319
23.8k
        break;
5320
23.8k
      }
5321
5322
      // optional int32 index = 5;
5323
0
      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
35.7k
      case 6: {
5338
35.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5339
35.7k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
5340
35.7k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5341
35.7k
                input, this->add_value()));
5342
0
        } else {
5343
0
          goto handle_unusual;
5344
0
        }
5345
35.7k
        break;
5346
31.7k
      }
5347
5348
0
      default: {
5349
31.7k
      handle_unusual:
5350
31.7k
        if (tag == 0) {
5351
31.7k
          goto success;
5352
31.7k
        }
5353
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5354
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5355
0
        break;
5356
0
      }
5357
144k
    }
5358
144k
  }
5359
31.7k
success:
5360
  // @@protoc_insertion_point(parse_success:yb.RedisKeyValuePB)
5361
31.7k
  return true;
5362
0
failure:
5363
  // @@protoc_insertion_point(parse_failure:yb.RedisKeyValuePB)
5364
0
  return false;
5365
31.7k
#undef DO_
5366
31.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
31.8k
    bool deterministic, ::google::protobuf::uint8* target) const {
5419
31.8k
  (void)deterministic; // Unused
5420
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeyValuePB)
5421
31.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
5422
31.8k
  (void) cached_has_bits;
5423
5424
31.8k
  cached_has_bits = _has_bits_[0];
5425
  // optional uint32 hash_code = 1;
5426
31.8k
  if (cached_has_bits & 0x00000002u) {
5427
31.8k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->hash_code(), target);
5428
31.8k
  }
5429
5430
  // optional bytes key = 2;
5431
31.8k
  if (cached_has_bits & 0x00000001u) {
5432
31.6k
    target =
5433
31.6k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5434
31.6k
        2, this->key(), target);
5435
31.6k
  }
5436
5437
  // optional .yb.RedisDataType type = 3 [default = REDIS_TYPE_NONE];
5438
31.8k
  if (cached_has_bits & 0x00000008u) {
5439
21.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5440
21.4k
      3, this->type(), target);
5441
21.4k
  }
5442
5443
  // repeated .yb.RedisKeyValueSubKeyPB subkey = 4;
5444
31.8k
  for (unsigned int i = 0,
5445
55.7k
      n = static_cast<unsigned int>(this->subkey_size()); i < n; i++) {
5446
23.8k
    target = ::google::protobuf::internal::WireFormatLite::
5447
23.8k
      InternalWriteMessageToArray(
5448
23.8k
        4, this->subkey(static_cast<int>(i)), deterministic, target);
5449
23.8k
  }
5450
5451
  // optional int32 index = 5;
5452
31.8k
  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
67.6k
  for (int i = 0, n = this->value_size(); i < n; i++) {
5458
35.8k
    target = ::google::protobuf::internal::WireFormatLite::
5459
35.8k
      WriteBytesToArray(6, this->value(i), target);
5460
35.8k
  }
5461
5462
31.8k
  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
31.8k
  return target;
5468
31.8k
}
5469
5470
125k
size_t RedisKeyValuePB::ByteSizeLong() const {
5471
// @@protoc_insertion_point(message_byte_size_start:yb.RedisKeyValuePB)
5472
125k
  size_t total_size = 0;
5473
5474
125k
  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
125k
  {
5481
125k
    unsigned int count = static_cast<unsigned int>(this->subkey_size());
5482
125k
    total_size += 1UL * count;
5483
228k
    for (unsigned int i = 0; i < count; i++) {
5484
103k
      total_size +=
5485
103k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5486
103k
          this->subkey(static_cast<int>(i)));
5487
103k
    }
5488
125k
  }
5489
5490
  // repeated bytes value = 6;
5491
125k
  total_size += 1 *
5492
125k
      ::google::protobuf::internal::FromIntSize(this->value_size());
5493
292k
  for (int i = 0, n = this->value_size(); i < n; i++) {
5494
167k
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5495
167k
      this->value(i));
5496
167k
  }
5497
5498
125k
  if (_has_bits_[0 / 32] & 15u) {
5499
    // optional bytes key = 2;
5500
125k
    if (has_key()) {
5501
124k
      total_size += 1 +
5502
124k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5503
124k
          this->key());
5504
124k
    }
5505
5506
    // optional uint32 hash_code = 1;
5507
125k
    if (has_hash_code()) {
5508
63.6k
      total_size += 1 +
5509
63.6k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5510
63.6k
          this->hash_code());
5511
63.6k
    }
5512
5513
    // optional int32 index = 5;
5514
125k
    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
125k
    if (has_type()) {
5522
104k
      total_size += 1 +
5523
104k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
5524
104k
    }
5525
5526
125k
  }
5527
125k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5528
125k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5529
125k
  _cached_size_ = cached_size;
5530
125k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5531
125k
  return total_size;
5532
125k
}
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
74.6k
::google::protobuf::Metadata RedisKeyValuePB::GetMetadata() const {
5613
74.6k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
5614
74.6k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
5615
74.6k
}
5616
5617
5618
// ===================================================================
5619
5620
17.1k
void SortedSetOptionsPB::InitAsDefaultInstance() {
5621
17.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
32.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5630
15.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5631
15.1k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsSortedSetOptionsPB();
5632
15.1k
  }
5633
32.2k
  SharedCtor();
5634
  // @@protoc_insertion_point(constructor:yb.SortedSetOptionsPB)
5635
32.2k
}
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
32.2k
void SortedSetOptionsPB::SharedCtor() {
5649
32.2k
  _cached_size_ = 0;
5650
32.2k
  ::memset(&ch_, 0, static_cast<size_t>(
5651
32.2k
      reinterpret_cast<char*>(&incr_) -
5652
32.2k
      reinterpret_cast<char*>(&ch_)) + sizeof(incr_));
5653
32.2k
  update_options_ = 3;
5654
32.2k
}
5655
5656
15.1k
SortedSetOptionsPB::~SortedSetOptionsPB() {
5657
  // @@protoc_insertion_point(destructor:yb.SortedSetOptionsPB)
5658
15.1k
  SharedDtor();
5659
15.1k
}
5660
5661
15.1k
void SortedSetOptionsPB::SharedDtor() {
5662
15.1k
}
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
4.62k
    ::google::protobuf::io::CodedInputStream* input) {
5703
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5704
4.62k
  ::google::protobuf::uint32 tag;
5705
  // @@protoc_insertion_point(parse_start:yb.SortedSetOptionsPB)
5706
4.62k
  for (;;) {
5707
4.62k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5708
4.62k
    tag = p.first;
5709
4.62k
    if (!p.second) goto handle_unusual;
5710
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5711
      // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE];
5712
0
      case 4: {
5713
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5714
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
5715
0
          int value;
5716
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5717
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5718
0
                 input, &value)));
5719
0
          if (::yb::SortedSetOptionsPB_UpdateOptions_IsValid(value)) {
5720
0
            set_update_options(static_cast< ::yb::SortedSetOptionsPB_UpdateOptions >(value));
5721
0
          } else {
5722
0
            mutable_unknown_fields()->AddVarint(
5723
0
                4, static_cast< ::google::protobuf::uint64>(value));
5724
0
          }
5725
0
        } else {
5726
0
          goto handle_unusual;
5727
0
        }
5728
0
        break;
5729
0
      }
5730
5731
      // optional bool ch = 5 [default = false];
5732
0
      case 5: {
5733
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5734
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5735
0
          set_has_ch();
5736
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5737
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5738
0
                 input, &ch_)));
5739
0
        } else {
5740
0
          goto handle_unusual;
5741
0
        }
5742
0
        break;
5743
0
      }
5744
5745
      // optional bool incr = 6 [default = false];
5746
0
      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
4.62k
      }
5758
5759
0
      default: {
5760
4.62k
      handle_unusual:
5761
4.62k
        if (tag == 0) {
5762
4.62k
          goto success;
5763
4.62k
        }
5764
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5765
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5766
0
        break;
5767
0
      }
5768
0
    }
5769
0
  }
5770
4.62k
success:
5771
  // @@protoc_insertion_point(parse_success:yb.SortedSetOptionsPB)
5772
4.62k
  return true;
5773
0
failure:
5774
  // @@protoc_insertion_point(parse_failure:yb.SortedSetOptionsPB)
5775
0
  return false;
5776
4.62k
#undef DO_
5777
4.62k
}
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
4.62k
    bool deterministic, ::google::protobuf::uint8* target) const {
5811
4.62k
  (void)deterministic; // Unused
5812
  // @@protoc_insertion_point(serialize_to_array_start:yb.SortedSetOptionsPB)
5813
4.62k
  ::google::protobuf::uint32 cached_has_bits = 0;
5814
4.62k
  (void) cached_has_bits;
5815
5816
4.62k
  cached_has_bits = _has_bits_[0];
5817
  // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE];
5818
4.62k
  if (cached_has_bits & 0x00000004u) {
5819
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5820
0
      4, this->update_options(), target);
5821
0
  }
5822
5823
  // optional bool ch = 5 [default = false];
5824
4.62k
  if (cached_has_bits & 0x00000001u) {
5825
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ch(), target);
5826
0
  }
5827
5828
  // optional bool incr = 6 [default = false];
5829
4.62k
  if (cached_has_bits & 0x00000002u) {
5830
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->incr(), target);
5831
0
  }
5832
5833
4.62k
  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
4.62k
  return target;
5839
4.62k
}
5840
5841
19.7k
size_t SortedSetOptionsPB::ByteSizeLong() const {
5842
// @@protoc_insertion_point(message_byte_size_start:yb.SortedSetOptionsPB)
5843
19.7k
  size_t total_size = 0;
5844
5845
19.7k
  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
19.7k
  if (_has_bits_[0 / 32] & 7u) {
5851
    // optional bool ch = 5 [default = false];
5852
0
    if (has_ch()) {
5853
0
      total_size += 1 + 1;
5854
0
    }
5855
5856
    // optional bool incr = 6 [default = false];
5857
0
    if (has_incr()) {
5858
0
      total_size += 1 + 1;
5859
0
    }
5860
5861
    // optional .yb.SortedSetOptionsPB.UpdateOptions update_options = 4 [default = NONE];
5862
0
    if (has_update_options()) {
5863
0
      total_size += 1 +
5864
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_options());
5865
0
    }
5866
5867
0
  }
5868
19.7k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5869
19.7k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5870
19.7k
  _cached_size_ = cached_size;
5871
19.7k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5872
19.7k
  return total_size;
5873
19.7k
}
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
4.62k
::google::protobuf::Metadata SortedSetOptionsPB::GetMetadata() const {
5945
4.62k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
5946
4.62k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
5947
4.62k
}
5948
5949
5950
// ===================================================================
5951
5952
17.1k
void RedisSetRequestPB::InitAsDefaultInstance() {
5953
17.1k
  ::yb::_RedisSetRequestPB_default_instance_._instance.get_mutable()->sorted_set_options_ = const_cast< ::yb::SortedSetOptionsPB*>(
5954
17.1k
      ::yb::SortedSetOptionsPB::internal_default_instance());
5955
17.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
100k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5965
82.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5966
82.9k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRequestPB();
5967
82.9k
  }
5968
100k
  SharedCtor();
5969
  // @@protoc_insertion_point(constructor:yb.RedisSetRequestPB)
5970
100k
}
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
100k
void RedisSetRequestPB::SharedCtor() {
5989
100k
  _cached_size_ = 0;
5990
100k
  ::memset(&sorted_set_options_, 0, static_cast<size_t>(
5991
100k
      reinterpret_cast<char*>(&expect_ok_response_) -
5992
100k
      reinterpret_cast<char*>(&sorted_set_options_)) + sizeof(expect_ok_response_));
5993
100k
  mode_ = 1;
5994
100k
  ttl_ = GOOGLE_LONGLONG(-1);
5995
100k
}
5996
5997
82.9k
RedisSetRequestPB::~RedisSetRequestPB() {
5998
  // @@protoc_insertion_point(destructor:yb.RedisSetRequestPB)
5999
82.9k
  SharedDtor();
6000
82.9k
}
6001
6002
82.9k
void RedisSetRequestPB::SharedDtor() {
6003
82.9k
  if (this != internal_default_instance()) delete sorted_set_options_;
6004
82.9k
}
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
21.4k
    ::google::protobuf::io::CodedInputStream* input) {
6051
9.09k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6052
21.4k
  ::google::protobuf::uint32 tag;
6053
  // @@protoc_insertion_point(parse_start:yb.RedisSetRequestPB)
6054
30.5k
  for (;;) {
6055
30.5k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6056
30.5k
    tag = p.first;
6057
30.5k
    if (!p.second) goto handle_unusual;
6058
9.09k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6059
      // optional bool expect_ok_response = 1 [default = false];
6060
4.44k
      case 1: {
6061
4.44k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6062
4.44k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6063
4.44k
          set_has_expect_ok_response();
6064
4.44k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6065
4.44k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6066
4.44k
                 input, &expect_ok_response_)));
6067
0
        } else {
6068
0
          goto handle_unusual;
6069
0
        }
6070
4.44k
        break;
6071
4.44k
      }
6072
6073
      // optional int64 ttl = 2 [default = -1];
6074
16
      case 2: {
6075
16
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6076
16
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6077
16
          set_has_ttl();
6078
16
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6079
16
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6080
16
                 input, &ttl_)));
6081
0
        } else {
6082
0
          goto handle_unusual;
6083
0
        }
6084
16
        break;
6085
16
      }
6086
6087
      // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT];
6088
15
      case 3: {
6089
15
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6090
15
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6091
15
          int value;
6092
15
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6093
15
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6094
15
                 input, &value)));
6095
15
          if (::yb::RedisWriteMode_IsValid(value)) {
6096
15
            set_mode(static_cast< ::yb::RedisWriteMode >(value));
6097
0
          } else {
6098
0
            mutable_unknown_fields()->AddVarint(
6099
0
                3, static_cast< ::google::protobuf::uint64>(value));
6100
0
          }
6101
0
        } else {
6102
0
          goto handle_unusual;
6103
0
        }
6104
15
        break;
6105
15
      }
6106
6107
      // optional .yb.SortedSetOptionsPB sorted_set_options = 14;
6108
4.62k
      case 14: {
6109
4.62k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6110
4.62k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
6111
4.62k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6112
4.62k
               input, mutable_sorted_set_options()));
6113
0
        } else {
6114
0
          goto handle_unusual;
6115
0
        }
6116
4.62k
        break;
6117
21.4k
      }
6118
6119
0
      default: {
6120
21.4k
      handle_unusual:
6121
21.4k
        if (tag == 0) {
6122
21.4k
          goto success;
6123
21.4k
        }
6124
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6125
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6126
0
        break;
6127
0
      }
6128
9.09k
    }
6129
9.09k
  }
6130
21.4k
success:
6131
  // @@protoc_insertion_point(parse_success:yb.RedisSetRequestPB)
6132
21.4k
  return true;
6133
0
failure:
6134
  // @@protoc_insertion_point(parse_failure:yb.RedisSetRequestPB)
6135
0
  return false;
6136
21.4k
#undef DO_
6137
21.4k
}
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
21.4k
    bool deterministic, ::google::protobuf::uint8* target) const {
6177
21.4k
  (void)deterministic; // Unused
6178
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSetRequestPB)
6179
21.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
6180
21.4k
  (void) cached_has_bits;
6181
6182
21.4k
  cached_has_bits = _has_bits_[0];
6183
  // optional bool expect_ok_response = 1 [default = false];
6184
21.4k
  if (cached_has_bits & 0x00000002u) {
6185
4.44k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->expect_ok_response(), target);
6186
4.44k
  }
6187
6188
  // optional int64 ttl = 2 [default = -1];
6189
21.4k
  if (cached_has_bits & 0x00000008u) {
6190
16
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->ttl(), target);
6191
16
  }
6192
6193
  // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT];
6194
21.4k
  if (cached_has_bits & 0x00000004u) {
6195
15
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6196
15
      3, this->mode(), target);
6197
15
  }
6198
6199
  // optional .yb.SortedSetOptionsPB sorted_set_options = 14;
6200
21.4k
  if (cached_has_bits & 0x00000001u) {
6201
4.62k
    target = ::google::protobuf::internal::WireFormatLite::
6202
4.62k
      InternalWriteMessageToArray(
6203
4.62k
        14, *this->sorted_set_options_, deterministic, target);
6204
4.62k
  }
6205
6206
21.4k
  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
21.4k
  return target;
6212
21.4k
}
6213
6214
104k
size_t RedisSetRequestPB::ByteSizeLong() const {
6215
// @@protoc_insertion_point(message_byte_size_start:yb.RedisSetRequestPB)
6216
104k
  size_t total_size = 0;
6217
6218
104k
  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
104k
  if (_has_bits_[0 / 32] & 15u) {
6224
    // optional .yb.SortedSetOptionsPB sorted_set_options = 14;
6225
38.6k
    if (has_sorted_set_options()) {
6226
19.7k
      total_size += 1 +
6227
19.7k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6228
19.7k
          *this->sorted_set_options_);
6229
19.7k
    }
6230
6231
    // optional bool expect_ok_response = 1 [default = false];
6232
38.6k
    if (has_expect_ok_response()) {
6233
18.7k
      total_size += 1 + 1;
6234
18.7k
    }
6235
6236
    // optional .yb.RedisWriteMode mode = 3 [default = REDIS_WRITEMODE_UPSERT];
6237
38.6k
    if (has_mode()) {
6238
63
      total_size += 1 +
6239
63
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode());
6240
63
    }
6241
6242
    // optional int64 ttl = 2 [default = -1];
6243
38.6k
    if (has_ttl()) {
6244
68
      total_size += 1 +
6245
68
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6246
68
          this->ttl());
6247
68
    }
6248
6249
38.6k
  }
6250
104k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6251
104k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6252
104k
  _cached_size_ = cached_size;
6253
104k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6254
104k
  return total_size;
6255
104k
}
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
21.4k
::google::protobuf::Metadata RedisSetRequestPB::GetMetadata() const {
6331
21.4k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6332
21.4k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6333
21.4k
}
6334
6335
6336
// ===================================================================
6337
6338
17.1k
void RedisGetRequestPB::InitAsDefaultInstance() {
6339
17.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
98.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6346
81.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6347
81.7k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRequestPB();
6348
81.7k
  }
6349
98.8k
  SharedCtor();
6350
  // @@protoc_insertion_point(constructor:yb.RedisGetRequestPB)
6351
98.8k
}
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
98.8k
void RedisGetRequestPB::SharedCtor() {
6363
98.8k
  _cached_size_ = 0;
6364
98.8k
  request_type_ = 1;
6365
98.8k
}
6366
6367
81.7k
RedisGetRequestPB::~RedisGetRequestPB() {
6368
  // @@protoc_insertion_point(destructor:yb.RedisGetRequestPB)
6369
81.7k
  SharedDtor();
6370
81.7k
}
6371
6372
81.7k
void RedisGetRequestPB::SharedDtor() {
6373
81.7k
}
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
7.58k
    ::google::protobuf::io::CodedInputStream* input) {
6411
7.58k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6412
7.58k
  ::google::protobuf::uint32 tag;
6413
  // @@protoc_insertion_point(parse_start:yb.RedisGetRequestPB)
6414
15.1k
  for (;;) {
6415
15.1k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6416
15.1k
    tag = p.first;
6417
15.1k
    if (!p.second) goto handle_unusual;
6418
7.58k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6419
      // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET];
6420
7.58k
      case 1: {
6421
7.58k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6422
7.58k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6423
7.58k
          int value;
6424
7.58k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6425
7.58k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6426
7.58k
                 input, &value)));
6427
7.58k
          if (::yb::RedisGetRequestPB_GetRequestType_IsValid(value)) {
6428
7.58k
            set_request_type(static_cast< ::yb::RedisGetRequestPB_GetRequestType >(value));
6429
0
          } else {
6430
0
            mutable_unknown_fields()->AddVarint(
6431
0
                1, static_cast< ::google::protobuf::uint64>(value));
6432
0
          }
6433
0
        } else {
6434
0
          goto handle_unusual;
6435
0
        }
6436
7.58k
        break;
6437
7.58k
      }
6438
6439
0
      default: {
6440
7.58k
      handle_unusual:
6441
7.58k
        if (tag == 0) {
6442
7.58k
          goto success;
6443
7.58k
        }
6444
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6445
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6446
0
        break;
6447
0
      }
6448
7.58k
    }
6449
7.58k
  }
6450
7.58k
success:
6451
  // @@protoc_insertion_point(parse_success:yb.RedisGetRequestPB)
6452
7.58k
  return true;
6453
0
failure:
6454
  // @@protoc_insertion_point(parse_failure:yb.RedisGetRequestPB)
6455
0
  return false;
6456
7.58k
#undef DO_
6457
7.58k
}
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
7.60k
    bool deterministic, ::google::protobuf::uint8* target) const {
6481
7.60k
  (void)deterministic; // Unused
6482
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetRequestPB)
6483
7.60k
  ::google::protobuf::uint32 cached_has_bits = 0;
6484
7.60k
  (void) cached_has_bits;
6485
6486
7.60k
  cached_has_bits = _has_bits_[0];
6487
  // optional .yb.RedisGetRequestPB.GetRequestType request_type = 1 [default = GET];
6488
7.60k
  if (cached_has_bits & 0x00000001u) {
6489
7.60k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6490
7.60k
      1, this->request_type(), target);
6491
7.60k
  }
6492
6493
7.60k
  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
7.60k
  return target;
6499
7.60k
}
6500
6501
15.2k
size_t RedisGetRequestPB::ByteSizeLong() const {
6502
// @@protoc_insertion_point(message_byte_size_start:yb.RedisGetRequestPB)
6503
15.2k
  size_t total_size = 0;
6504
6505
15.2k
  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
15.2k
  if (has_request_type()) {
6512
15.2k
    total_size += 1 +
6513
15.2k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type());
6514
15.2k
  }
6515
6516
15.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6517
15.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6518
15.2k
  _cached_size_ = cached_size;
6519
15.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6520
15.2k
  return total_size;
6521
15.2k
}
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
37.0k
void RedisGetRequestPB::MergeFrom(const RedisGetRequestPB& from) {
6539
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetRequestPB)
6540
37.0k
  GOOGLE_DCHECK_NE(&from, this);
6541
37.0k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6542
37.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
6543
37.0k
  (void) cached_has_bits;
6544
6545
37.0k
  if (from.has_request_type()) {
6546
37.0k
    set_request_type(from.request_type());
6547
37.0k
  }
6548
37.0k
}
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
44.8k
::google::protobuf::Metadata RedisGetRequestPB::GetMetadata() const {
6581
44.8k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6582
44.8k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6583
44.8k
}
6584
6585
6586
// ===================================================================
6587
6588
17.1k
void RedisCollectionGetRangeRequestPB::InitAsDefaultInstance() {
6589
17.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
30.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6597
13.3k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6598
13.3k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisCollectionGetRangeRequestPB();
6599
13.3k
  }
6600
30.5k
  SharedCtor();
6601
  // @@protoc_insertion_point(constructor:yb.RedisCollectionGetRangeRequestPB)
6602
30.5k
}
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
30.5k
void RedisCollectionGetRangeRequestPB::SharedCtor() {
6616
30.5k
  _cached_size_ = 0;
6617
30.5k
  with_scores_ = false;
6618
30.5k
  request_type_ = 1;
6619
30.5k
}
6620
6621
13.3k
RedisCollectionGetRangeRequestPB::~RedisCollectionGetRangeRequestPB() {
6622
  // @@protoc_insertion_point(destructor:yb.RedisCollectionGetRangeRequestPB)
6623
13.3k
  SharedDtor();
6624
13.3k
}
6625
6626
13.3k
void RedisCollectionGetRangeRequestPB::SharedDtor() {
6627
13.3k
}
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
2.42k
    ::google::protobuf::io::CodedInputStream* input) {
6669
2.42k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6670
2.42k
  ::google::protobuf::uint32 tag;
6671
  // @@protoc_insertion_point(parse_start:yb.RedisCollectionGetRangeRequestPB)
6672
4.85k
  for (;;) {
6673
4.85k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6674
4.85k
    tag = p.first;
6675
4.85k
    if (!p.second) goto handle_unusual;
6676
2.42k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6677
      // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME];
6678
2.42k
      case 1: {
6679
2.42k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6680
2.42k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6681
2.42k
          int value;
6682
2.42k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6683
2.42k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6684
2.42k
                 input, &value)));
6685
2.42k
          if (::yb::RedisCollectionGetRangeRequestPB_GetRangeRequestType_IsValid(value)) {
6686
2.42k
            set_request_type(static_cast< ::yb::RedisCollectionGetRangeRequestPB_GetRangeRequestType >(value));
6687
0
          } else {
6688
0
            mutable_unknown_fields()->AddVarint(
6689
0
                1, static_cast< ::google::protobuf::uint64>(value));
6690
0
          }
6691
0
        } else {
6692
0
          goto handle_unusual;
6693
0
        }
6694
2.42k
        break;
6695
2.42k
      }
6696
6697
      // optional bool with_scores = 2 [default = false];
6698
6
      case 2: {
6699
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6700
6
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6701
6
          set_has_with_scores();
6702
6
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6703
6
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6704
6
                 input, &with_scores_)));
6705
0
        } else {
6706
0
          goto handle_unusual;
6707
0
        }
6708
6
        break;
6709
2.42k
      }
6710
6711
0
      default: {
6712
2.42k
      handle_unusual:
6713
2.42k
        if (tag == 0) {
6714
2.42k
          goto success;
6715
2.42k
        }
6716
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6717
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6718
0
        break;
6719
0
      }
6720
2.42k
    }
6721
2.42k
  }
6722
2.42k
success:
6723
  // @@protoc_insertion_point(parse_success:yb.RedisCollectionGetRangeRequestPB)
6724
2.42k
  return true;
6725
0
failure:
6726
  // @@protoc_insertion_point(parse_failure:yb.RedisCollectionGetRangeRequestPB)
6727
0
  return false;
6728
2.42k
#undef DO_
6729
2.42k
}
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
2.42k
    bool deterministic, ::google::protobuf::uint8* target) const {
6758
2.42k
  (void)deterministic; // Unused
6759
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisCollectionGetRangeRequestPB)
6760
2.42k
  ::google::protobuf::uint32 cached_has_bits = 0;
6761
2.42k
  (void) cached_has_bits;
6762
6763
2.42k
  cached_has_bits = _has_bits_[0];
6764
  // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME];
6765
2.42k
  if (cached_has_bits & 0x00000002u) {
6766
2.42k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6767
2.42k
      1, this->request_type(), target);
6768
2.42k
  }
6769
6770
  // optional bool with_scores = 2 [default = false];
6771
2.42k
  if (cached_has_bits & 0x00000001u) {
6772
6
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->with_scores(), target);
6773
6
  }
6774
6775
2.42k
  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
2.42k
  return target;
6781
2.42k
}
6782
6783
4.84k
size_t RedisCollectionGetRangeRequestPB::ByteSizeLong() const {
6784
// @@protoc_insertion_point(message_byte_size_start:yb.RedisCollectionGetRangeRequestPB)
6785
4.84k
  size_t total_size = 0;
6786
6787
4.84k
  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
4.84k
  if (_has_bits_[0 / 32] & 3u) {
6793
    // optional bool with_scores = 2 [default = false];
6794
4.84k
    if (has_with_scores()) {
6795
12
      total_size += 1 + 1;
6796
12
    }
6797
6798
    // optional .yb.RedisCollectionGetRangeRequestPB.GetRangeRequestType request_type = 1 [default = TSRANGEBYTIME];
6799
4.84k
    if (has_request_type()) {
6800
4.84k
      total_size += 1 +
6801
4.84k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type());
6802
4.84k
    }
6803
6804
4.84k
  }
6805
4.84k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6806
4.84k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6807
4.84k
  _cached_size_ = cached_size;
6808
4.84k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6809
4.84k
  return total_size;
6810
4.84k
}
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
5.47k
void RedisCollectionGetRangeRequestPB::MergeFrom(const RedisCollectionGetRangeRequestPB& from) {
6828
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisCollectionGetRangeRequestPB)
6829
5.47k
  GOOGLE_DCHECK_NE(&from, this);
6830
5.47k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6831
5.47k
  ::google::protobuf::uint32 cached_has_bits = 0;
6832
5.47k
  (void) cached_has_bits;
6833
6834
5.47k
  cached_has_bits = from._has_bits_[0];
6835
5.47k
  if (cached_has_bits & 3u) {
6836
5.47k
    if (cached_has_bits & 0x00000001u) {
6837
9
      with_scores_ = from.with_scores_;
6838
9
    }
6839
5.47k
    if (cached_has_bits & 0x00000002u) {
6840
5.47k
      request_type_ = from.request_type_;
6841
5.47k
    }
6842
5.47k
    _has_bits_[0] |= cached_has_bits;
6843
5.47k
  }
6844
5.47k
}
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
7.90k
::google::protobuf::Metadata RedisCollectionGetRangeRequestPB::GetMetadata() const {
6878
7.90k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6879
7.90k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6880
7.90k
}
6881
6882
6883
// ===================================================================
6884
6885
17.1k
void RedisNoOpRequestPB::InitAsDefaultInstance() {
6886
17.1k
}
6887
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6888
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6889
6890
RedisNoOpRequestPB::RedisNoOpRequestPB()
6891
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6892
5
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6893
5
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisNoOpRequestPB();
6894
5
  }
6895
17.1k
  SharedCtor();
6896
  // @@protoc_insertion_point(constructor:yb.RedisNoOpRequestPB)
6897
17.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
17.1k
void RedisNoOpRequestPB::SharedCtor() {
6908
17.1k
  _cached_size_ = 0;
6909
17.1k
}
6910
6911
5
RedisNoOpRequestPB::~RedisNoOpRequestPB() {
6912
  // @@protoc_insertion_point(destructor:yb.RedisNoOpRequestPB)
6913
5
  SharedDtor();
6914
5
}
6915
6916
5
void RedisNoOpRequestPB::SharedDtor() {
6917
5
}
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
2
    ::google::protobuf::io::CodedInputStream* input) {
6954
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6955
2
  ::google::protobuf::uint32 tag;
6956
  // @@protoc_insertion_point(parse_start:yb.RedisNoOpRequestPB)
6957
2
  for (;;) {
6958
2
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6959
2
    tag = p.first;
6960
2
    if (!p.second) goto handle_unusual;
6961
2
  handle_unusual:
6962
2
    if (tag == 0) {
6963
2
      goto success;
6964
2
    }
6965
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
6966
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
6967
0
  }
6968
2
success:
6969
  // @@protoc_insertion_point(parse_success:yb.RedisNoOpRequestPB)
6970
2
  return true;
6971
0
failure:
6972
  // @@protoc_insertion_point(parse_failure:yb.RedisNoOpRequestPB)
6973
0
  return false;
6974
2
#undef DO_
6975
2
}
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
2
    bool deterministic, ::google::protobuf::uint8* target) const {
6992
2
  (void)deterministic; // Unused
6993
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisNoOpRequestPB)
6994
2
  ::google::protobuf::uint32 cached_has_bits = 0;
6995
2
  (void) cached_has_bits;
6996
6997
2
  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
2
  return target;
7003
2
}
7004
7005
7
size_t RedisNoOpRequestPB::ByteSizeLong() const {
7006
// @@protoc_insertion_point(message_byte_size_start:yb.RedisNoOpRequestPB)
7007
7
  size_t total_size = 0;
7008
7009
7
  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
7
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7015
7
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7016
7
  _cached_size_ = cached_size;
7017
7
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7018
7
  return total_size;
7019
7
}
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
2
::google::protobuf::Metadata RedisNoOpRequestPB::GetMetadata() const {
7075
2
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7076
2
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
7077
2
}
7078
7079
7080
// ===================================================================
7081
7082
17.1k
void RedisSetTtlRequestPB::InitAsDefaultInstance() {
7083
17.1k
  ::yb::_RedisSetTtlRequestPB_default_instance_.ttl_ = GOOGLE_LONGLONG(-1);
7084
17.1k
  ::yb::_RedisSetTtlRequestPB_default_instance_.absolute_time_ = GOOGLE_LONGLONG(0);
7085
17.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
17.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7093
73
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7094
73
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetTtlRequestPB();
7095
73
  }
7096
17.2k
  SharedCtor();
7097
  // @@protoc_insertion_point(constructor:yb.RedisSetTtlRequestPB)
7098
17.2k
}
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
17.2k
void RedisSetTtlRequestPB::SharedCtor() {
7123
17.2k
  _cached_size_ = 0;
7124
17.2k
  clear_has_expiration();
7125
17.2k
}
7126
7127
73
RedisSetTtlRequestPB::~RedisSetTtlRequestPB() {
7128
  // @@protoc_insertion_point(destructor:yb.RedisSetTtlRequestPB)
7129
73
  SharedDtor();
7130
73
}
7131
7132
73
void RedisSetTtlRequestPB::SharedDtor() {
7133
73
  if (has_expiration()) {
7134
73
    clear_expiration();
7135
73
  }
7136
73
}
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
146
void RedisSetTtlRequestPB::clear_expiration() {
7162
// @@protoc_insertion_point(one_of_clear_start:yb.RedisSetTtlRequestPB)
7163
146
  switch (expiration_case()) {
7164
73
    case kTtl: {
7165
      // No need to clear
7166
73
      break;
7167
0
    }
7168
0
    case kAbsoluteTime: {
7169
      // No need to clear
7170
0
      break;
7171
0
    }
7172
73
    case EXPIRATION_NOT_SET: {
7173
73
      break;
7174
146
    }
7175
146
  }
7176
146
  _oneof_case_[0] = EXPIRATION_NOT_SET;
7177
146
}
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
25
    ::google::protobuf::io::CodedInputStream* input) {
7193
25
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7194
25
  ::google::protobuf::uint32 tag;
7195
  // @@protoc_insertion_point(parse_start:yb.RedisSetTtlRequestPB)
7196
50
  for (;;) {
7197
50
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7198
50
    tag = p.first;
7199
50
    if (!p.second) goto handle_unusual;
7200
25
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7201
      // optional int64 ttl = 1 [default = -1];
7202
25
      case 1: {
7203
25
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7204
25
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7205
25
          clear_expiration();
7206
25
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7207
25
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
7208
25
                 input, &expiration_.ttl_)));
7209
25
          set_has_ttl();
7210
0
        } else {
7211
0
          goto handle_unusual;
7212
0
        }
7213
25
        break;
7214
25
      }
7215
7216
      // optional int64 absolute_time = 2;
7217
0
      case 2: {
7218
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7219
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7220
0
          clear_expiration();
7221
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7222
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
7223
0
                 input, &expiration_.absolute_time_)));
7224
0
          set_has_absolute_time();
7225
0
        } else {
7226
0
          goto handle_unusual;
7227
0
        }
7228
0
        break;
7229
25
      }
7230
7231
0
      default: {
7232
25
      handle_unusual:
7233
25
        if (tag == 0) {
7234
25
          goto success;
7235
25
        }
7236
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7237
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7238
0
        break;
7239
0
      }
7240
25
    }
7241
25
  }
7242
25
success:
7243
  // @@protoc_insertion_point(parse_success:yb.RedisSetTtlRequestPB)
7244
25
  return true;
7245
0
failure:
7246
  // @@protoc_insertion_point(parse_failure:yb.RedisSetTtlRequestPB)
7247
0
  return false;
7248
25
#undef DO_
7249
25
}
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
25
    bool deterministic, ::google::protobuf::uint8* target) const {
7275
25
  (void)deterministic; // Unused
7276
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisSetTtlRequestPB)
7277
25
  ::google::protobuf::uint32 cached_has_bits = 0;
7278
25
  (void) cached_has_bits;
7279
7280
25
  switch (expiration_case()) {
7281
25
    case kTtl:
7282
25
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->ttl(), target);
7283
25
      break;
7284
0
    case kAbsoluteTime:
7285
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->absolute_time(), target);
7286
0
      break;
7287
0
    default: ;
7288
25
  }
7289
25
  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
25
  return target;
7295
25
}
7296
7297
98
size_t RedisSetTtlRequestPB::ByteSizeLong() const {
7298
// @@protoc_insertion_point(message_byte_size_start:yb.RedisSetTtlRequestPB)
7299
98
  size_t total_size = 0;
7300
7301
98
  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
98
  switch (expiration_case()) {
7307
    // optional int64 ttl = 1 [default = -1];
7308
98
    case kTtl: {
7309
98
      total_size += 1 +
7310
98
        ::google::protobuf::internal::WireFormatLite::Int64Size(
7311
98
          this->ttl());
7312
98
      break;
7313
0
    }
7314
    // optional int64 absolute_time = 2;
7315
0
    case kAbsoluteTime: {
7316
0
      total_size += 1 +
7317
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
7318
0
          this->absolute_time());
7319
0
      break;
7320
0
    }
7321
0
    case EXPIRATION_NOT_SET: {
7322
0
      break;
7323
98
    }
7324
98
  }
7325
98
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7326
98
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7327
98
  _cached_size_ = cached_size;
7328
98
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7329
98
  return total_size;
7330
98
}
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
25
::google::protobuf::Metadata RedisSetTtlRequestPB::GetMetadata() const {
7401
25
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7402
25
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
7403
25
}
7404
7405
7406
// ===================================================================
7407
7408
17.1k
void RedisGetTtlRequestPB::InitAsDefaultInstance() {
7409
17.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
17.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7416
338
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7417
338
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetTtlRequestPB();
7418
338
  }
7419
17.4k
  SharedCtor();
7420
  // @@protoc_insertion_point(constructor:yb.RedisGetTtlRequestPB)
7421
17.4k
}
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
17.4k
void RedisGetTtlRequestPB::SharedCtor() {
7433
17.4k
  _cached_size_ = 0;
7434
17.4k
  return_seconds_ = false;
7435
17.4k
}
7436
7437
338
RedisGetTtlRequestPB::~RedisGetTtlRequestPB() {
7438
  // @@protoc_insertion_point(destructor:yb.RedisGetTtlRequestPB)
7439
338
  SharedDtor();
7440
338
}
7441
7442
338
void RedisGetTtlRequestPB::SharedDtor() {
7443
338
}
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
74
    ::google::protobuf::io::CodedInputStream* input) {
7481
74
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7482
74
  ::google::protobuf::uint32 tag;
7483
  // @@protoc_insertion_point(parse_start:yb.RedisGetTtlRequestPB)
7484
148
  for (;;) {
7485
148
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7486
148
    tag = p.first;
7487
148
    if (!p.second) goto handle_unusual;
7488
74
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7489
      // optional bool return_seconds = 1 [default = false];
7490
74
      case 1: {
7491
74
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7492
74
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7493
74
          set_has_return_seconds();
7494
74
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7495
74
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7496
74
                 input, &return_seconds_)));
7497
0
        } else {
7498
0
          goto handle_unusual;
7499
0
        }
7500
74
        break;
7501
74
      }
7502
7503
0
      default: {
7504
74
      handle_unusual:
7505
74
        if (tag == 0) {
7506
74
          goto success;
7507
74
        }
7508
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7509
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7510
0
        break;
7511
0
      }
7512
74
    }
7513
74
  }
7514
74
success:
7515
  // @@protoc_insertion_point(parse_success:yb.RedisGetTtlRequestPB)
7516
74
  return true;
7517
0
failure:
7518
  // @@protoc_insertion_point(parse_failure:yb.RedisGetTtlRequestPB)
7519
0
  return false;
7520
74
#undef DO_
7521
74
}
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
74
    bool deterministic, ::google::protobuf::uint8* target) const {
7544
74
  (void)deterministic; // Unused
7545
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetTtlRequestPB)
7546
74
  ::google::protobuf::uint32 cached_has_bits = 0;
7547
74
  (void) cached_has_bits;
7548
7549
74
  cached_has_bits = _has_bits_[0];
7550
  // optional bool return_seconds = 1 [default = false];
7551
74
  if (cached_has_bits & 0x00000001u) {
7552
74
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->return_seconds(), target);
7553
74
  }
7554
7555
74
  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
74
  return target;
7561
74
}
7562
7563
148
size_t RedisGetTtlRequestPB::ByteSizeLong() const {
7564
// @@protoc_insertion_point(message_byte_size_start:yb.RedisGetTtlRequestPB)
7565
148
  size_t total_size = 0;
7566
7567
148
  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
148
  if (has_return_seconds()) {
7574
148
    total_size += 1 + 1;
7575
148
  }
7576
7577
148
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7578
148
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7579
148
  _cached_size_ = cached_size;
7580
148
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7581
148
  return total_size;
7582
148
}
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
132
void RedisGetTtlRequestPB::MergeFrom(const RedisGetTtlRequestPB& from) {
7600
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetTtlRequestPB)
7601
132
  GOOGLE_DCHECK_NE(&from, this);
7602
132
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7603
132
  ::google::protobuf::uint32 cached_has_bits = 0;
7604
132
  (void) cached_has_bits;
7605
7606
132
  if (from.has_return_seconds()) {
7607
132
    set_return_seconds(from.return_seconds());
7608
132
  }
7609
132
}
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
206
::google::protobuf::Metadata RedisGetTtlRequestPB::GetMetadata() const {
7642
206
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7643
206
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
7644
206
}
7645
7646
7647
// ===================================================================
7648
7649
17.1k
void RedisKeysRequestPB::InitAsDefaultInstance() {
7650
17.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
17.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7658
792
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7659
792
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisKeysRequestPB();
7660
792
  }
7661
17.9k
  SharedCtor();
7662
  // @@protoc_insertion_point(constructor:yb.RedisKeysRequestPB)
7663
17.9k
}
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
17.9k
void RedisKeysRequestPB::SharedCtor() {
7679
17.9k
  _cached_size_ = 0;
7680
17.9k
  pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7681
17.9k
  threshold_ = 0;
7682
17.9k
}
7683
7684
792
RedisKeysRequestPB::~RedisKeysRequestPB() {
7685
  // @@protoc_insertion_point(destructor:yb.RedisKeysRequestPB)
7686
792
  SharedDtor();
7687
792
}
7688
7689
792
void RedisKeysRequestPB::SharedDtor() {
7690
792
  pattern_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7691
792
}
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
198
    ::google::protobuf::io::CodedInputStream* input) {
7734
396
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7735
198
  ::google::protobuf::uint32 tag;
7736
  // @@protoc_insertion_point(parse_start:yb.RedisKeysRequestPB)
7737
594
  for (;;) {
7738
594
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7739
594
    tag = p.first;
7740
594
    if (!p.second) goto handle_unusual;
7741
396
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7742
      // optional string pattern = 1;
7743
198
      case 1: {
7744
198
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7745
198
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7746
198
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7747
198
                input, this->mutable_pattern()));
7748
198
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7749
198
            this->pattern().data(), static_cast<int>(this->pattern().length()),
7750
198
            ::google::protobuf::internal::WireFormat::PARSE,
7751
198
            "yb.RedisKeysRequestPB.pattern");
7752
0
        } else {
7753
0
          goto handle_unusual;
7754
0
        }
7755
198
        break;
7756
198
      }
7757
7758
      // optional int32 threshold = 2;
7759
198
      case 2: {
7760
198
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7761
198
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7762
198
          set_has_threshold();
7763
198
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7764
198
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7765
198
                 input, &threshold_)));
7766
0
        } else {
7767
0
          goto handle_unusual;
7768
0
        }
7769
198
        break;
7770
198
      }
7771
7772
0
      default: {
7773
198
      handle_unusual:
7774
198
        if (tag == 0) {
7775
198
          goto success;
7776
198
        }
7777
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7778
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7779
0
        break;
7780
0
      }
7781
396
    }
7782
396
  }
7783
198
success:
7784
  // @@protoc_insertion_point(parse_success:yb.RedisKeysRequestPB)
7785
198
  return true;
7786
0
failure:
7787
  // @@protoc_insertion_point(parse_failure:yb.RedisKeysRequestPB)
7788
0
  return false;
7789
198
#undef DO_
7790
198
}
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
198
    bool deterministic, ::google::protobuf::uint8* target) const {
7823
198
  (void)deterministic; // Unused
7824
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisKeysRequestPB)
7825
198
  ::google::protobuf::uint32 cached_has_bits = 0;
7826
198
  (void) cached_has_bits;
7827
7828
198
  cached_has_bits = _has_bits_[0];
7829
  // optional string pattern = 1;
7830
198
  if (cached_has_bits & 0x00000001u) {
7831
198
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7832
198
      this->pattern().data(), static_cast<int>(this->pattern().length()),
7833
198
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7834
198
      "yb.RedisKeysRequestPB.pattern");
7835
198
    target =
7836
198
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7837
198
        1, this->pattern(), target);
7838
198
  }
7839
7840
  // optional int32 threshold = 2;
7841
198
  if (cached_has_bits & 0x00000002u) {
7842
198
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->threshold(), target);
7843
198
  }
7844
7845
198
  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
198
  return target;
7851
198
}
7852
7853
396
size_t RedisKeysRequestPB::ByteSizeLong() const {
7854
// @@protoc_insertion_point(message_byte_size_start:yb.RedisKeysRequestPB)
7855
396
  size_t total_size = 0;
7856
7857
396
  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
396
  if (_has_bits_[0 / 32] & 3u) {
7863
    // optional string pattern = 1;
7864
396
    if (has_pattern()) {
7865
396
      total_size += 1 +
7866
396
        ::google::protobuf::internal::WireFormatLite::StringSize(
7867
396
          this->pattern());
7868
396
    }
7869
7870
    // optional int32 threshold = 2;
7871
396
    if (has_threshold()) {
7872
396
      total_size += 1 +
7873
396
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7874
396
          this->threshold());
7875
396
    }
7876
7877
396
  }
7878
396
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7879
396
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7880
396
  _cached_size_ = cached_size;
7881
396
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7882
396
  return total_size;
7883
396
}
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
297
void RedisKeysRequestPB::MergeFrom(const RedisKeysRequestPB& from) {
7901
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisKeysRequestPB)
7902
297
  GOOGLE_DCHECK_NE(&from, this);
7903
297
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7904
297
  ::google::protobuf::uint32 cached_has_bits = 0;
7905
297
  (void) cached_has_bits;
7906
7907
297
  cached_has_bits = from._has_bits_[0];
7908
297
  if (cached_has_bits & 3u) {
7909
297
    if (cached_has_bits & 0x00000001u) {
7910
297
      set_has_pattern();
7911
297
      pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_);
7912
297
    }
7913
297
    if (cached_has_bits & 0x00000002u) {
7914
297
      threshold_ = from.threshold_;
7915
297
    }
7916
297
    _has_bits_[0] |= cached_has_bits;
7917
297
  }
7918
297
}
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
198
::google::protobuf::Metadata RedisKeysRequestPB::GetMetadata() const {
7952
198
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7953
198
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
7954
198
}
7955
7956
7957
// ===================================================================
7958
7959
17.1k
void RedisGetForRenameRequestPB::InitAsDefaultInstance() {
7960
17.1k
}
7961
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7962
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7963
7964
RedisGetForRenameRequestPB::RedisGetForRenameRequestPB()
7965
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7966
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7967
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetForRenameRequestPB();
7968
0
  }
7969
17.1k
  SharedCtor();
7970
  // @@protoc_insertion_point(constructor:yb.RedisGetForRenameRequestPB)
7971
17.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
17.1k
void RedisGetForRenameRequestPB::SharedCtor() {
7982
17.1k
  _cached_size_ = 0;
7983
17.1k
}
7984
7985
0
RedisGetForRenameRequestPB::~RedisGetForRenameRequestPB() {
7986
  // @@protoc_insertion_point(destructor:yb.RedisGetForRenameRequestPB)
7987
0
  SharedDtor();
7988
0
}
7989
7990
0
void RedisGetForRenameRequestPB::SharedDtor() {
7991
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
8028
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8029
0
  ::google::protobuf::uint32 tag;
8030
  // @@protoc_insertion_point(parse_start:yb.RedisGetForRenameRequestPB)
8031
0
  for (;;) {
8032
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8033
0
    tag = p.first;
8034
0
    if (!p.second) goto handle_unusual;
8035
0
  handle_unusual:
8036
0
    if (tag == 0) {
8037
0
      goto success;
8038
0
    }
8039
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8040
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8041
0
  }
8042
0
success:
8043
  // @@protoc_insertion_point(parse_success:yb.RedisGetForRenameRequestPB)
8044
0
  return true;
8045
0
failure:
8046
  // @@protoc_insertion_point(parse_failure:yb.RedisGetForRenameRequestPB)
8047
0
  return false;
8048
0
#undef DO_
8049
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8066
0
  (void)deterministic; // Unused
8067
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetForRenameRequestPB)
8068
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8069
0
  (void) cached_has_bits;
8070
8071
0
  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
0
  return target;
8077
0
}
8078
8079
0
size_t RedisGetForRenameRequestPB::ByteSizeLong() const {
8080
// @@protoc_insertion_point(message_byte_size_start:yb.RedisGetForRenameRequestPB)
8081
0
  size_t total_size = 0;
8082
8083
0
  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
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8089
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8090
0
  _cached_size_ = cached_size;
8091
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8092
0
  return total_size;
8093
0
}
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
0
void RedisGetForRenameRequestPB::MergeFrom(const RedisGetForRenameRequestPB& from) {
8111
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetForRenameRequestPB)
8112
0
  GOOGLE_DCHECK_NE(&from, this);
8113
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8114
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8115
0
  (void) cached_has_bits;
8116
8117
0
}
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
0
::google::protobuf::Metadata RedisGetForRenameRequestPB::GetMetadata() const {
8149
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8150
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8151
0
}
8152
8153
8154
// ===================================================================
8155
8156
17.1k
void RedisGetSetRequestPB::InitAsDefaultInstance() {
8157
17.1k
}
8158
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8159
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8160
8161
RedisGetSetRequestPB::RedisGetSetRequestPB()
8162
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8163
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8164
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetSetRequestPB();
8165
0
  }
8166
17.1k
  SharedCtor();
8167
  // @@protoc_insertion_point(constructor:yb.RedisGetSetRequestPB)
8168
17.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
17.1k
void RedisGetSetRequestPB::SharedCtor() {
8179
17.1k
  _cached_size_ = 0;
8180
17.1k
}
8181
8182
0
RedisGetSetRequestPB::~RedisGetSetRequestPB() {
8183
  // @@protoc_insertion_point(destructor:yb.RedisGetSetRequestPB)
8184
0
  SharedDtor();
8185
0
}
8186
8187
0
void RedisGetSetRequestPB::SharedDtor() {
8188
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
8225
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8226
0
  ::google::protobuf::uint32 tag;
8227
  // @@protoc_insertion_point(parse_start:yb.RedisGetSetRequestPB)
8228
0
  for (;;) {
8229
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8230
0
    tag = p.first;
8231
0
    if (!p.second) goto handle_unusual;
8232
0
  handle_unusual:
8233
0
    if (tag == 0) {
8234
0
      goto success;
8235
0
    }
8236
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8237
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8238
0
  }
8239
0
success:
8240
  // @@protoc_insertion_point(parse_success:yb.RedisGetSetRequestPB)
8241
0
  return true;
8242
0
failure:
8243
  // @@protoc_insertion_point(parse_failure:yb.RedisGetSetRequestPB)
8244
0
  return false;
8245
0
#undef DO_
8246
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8263
0
  (void)deterministic; // Unused
8264
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisGetSetRequestPB)
8265
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8266
0
  (void) cached_has_bits;
8267
8268
0
  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
0
  return target;
8274
0
}
8275
8276
0
size_t RedisGetSetRequestPB::ByteSizeLong() const {
8277
// @@protoc_insertion_point(message_byte_size_start:yb.RedisGetSetRequestPB)
8278
0
  size_t total_size = 0;
8279
8280
0
  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
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8286
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8287
0
  _cached_size_ = cached_size;
8288
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8289
0
  return total_size;
8290
0
}
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
0
::google::protobuf::Metadata RedisGetSetRequestPB::GetMetadata() const {
8346
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8347
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8348
0
}
8349
8350
8351
// ===================================================================
8352
8353
17.1k
void RedisAppendRequestPB::InitAsDefaultInstance() {
8354
17.1k
}
8355
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8356
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8357
8358
RedisAppendRequestPB::RedisAppendRequestPB()
8359
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8360
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8361
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAppendRequestPB();
8362
0
  }
8363
17.1k
  SharedCtor();
8364
  // @@protoc_insertion_point(constructor:yb.RedisAppendRequestPB)
8365
17.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
17.1k
void RedisAppendRequestPB::SharedCtor() {
8376
17.1k
  _cached_size_ = 0;
8377
17.1k
}
8378
8379
0
RedisAppendRequestPB::~RedisAppendRequestPB() {
8380
  // @@protoc_insertion_point(destructor:yb.RedisAppendRequestPB)
8381
0
  SharedDtor();
8382
0
}
8383
8384
0
void RedisAppendRequestPB::SharedDtor() {
8385
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
8422
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8423
0
  ::google::protobuf::uint32 tag;
8424
  // @@protoc_insertion_point(parse_start:yb.RedisAppendRequestPB)
8425
0
  for (;;) {
8426
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8427
0
    tag = p.first;
8428
0
    if (!p.second) goto handle_unusual;
8429
0
  handle_unusual:
8430
0
    if (tag == 0) {
8431
0
      goto success;
8432
0
    }
8433
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8434
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8435
0
  }
8436
0
success:
8437
  // @@protoc_insertion_point(parse_success:yb.RedisAppendRequestPB)
8438
0
  return true;
8439
0
failure:
8440
  // @@protoc_insertion_point(parse_failure:yb.RedisAppendRequestPB)
8441
0
  return false;
8442
0
#undef DO_
8443
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8460
0
  (void)deterministic; // Unused
8461
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisAppendRequestPB)
8462
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8463
0
  (void) cached_has_bits;
8464
8465
0
  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
0
  return target;
8471
0
}
8472
8473
0
size_t RedisAppendRequestPB::ByteSizeLong() const {
8474
// @@protoc_insertion_point(message_byte_size_start:yb.RedisAppendRequestPB)
8475
0
  size_t total_size = 0;
8476
8477
0
  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
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8483
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8484
0
  _cached_size_ = cached_size;
8485
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8486
0
  return total_size;
8487
0
}
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
0
::google::protobuf::Metadata RedisAppendRequestPB::GetMetadata() const {
8543
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8544
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8545
0
}
8546
8547
8548
// ===================================================================
8549
8550
17.1k
void RedisStrLenRequestPB::InitAsDefaultInstance() {
8551
17.1k
}
8552
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8553
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8554
8555
RedisStrLenRequestPB::RedisStrLenRequestPB()
8556
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8557
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8558
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisStrLenRequestPB();
8559
0
  }
8560
17.1k
  SharedCtor();
8561
  // @@protoc_insertion_point(constructor:yb.RedisStrLenRequestPB)
8562
17.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
17.1k
void RedisStrLenRequestPB::SharedCtor() {
8573
17.1k
  _cached_size_ = 0;
8574
17.1k
}
8575
8576
0
RedisStrLenRequestPB::~RedisStrLenRequestPB() {
8577
  // @@protoc_insertion_point(destructor:yb.RedisStrLenRequestPB)
8578
0
  SharedDtor();
8579
0
}
8580
8581
0
void RedisStrLenRequestPB::SharedDtor() {
8582
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
8619
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8620
0
  ::google::protobuf::uint32 tag;
8621
  // @@protoc_insertion_point(parse_start:yb.RedisStrLenRequestPB)
8622
0
  for (;;) {
8623
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8624
0
    tag = p.first;
8625
0
    if (!p.second) goto handle_unusual;
8626
0
  handle_unusual:
8627
0
    if (tag == 0) {
8628
0
      goto success;
8629
0
    }
8630
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8631
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8632
0
  }
8633
0
success:
8634
  // @@protoc_insertion_point(parse_success:yb.RedisStrLenRequestPB)
8635
0
  return true;
8636
0
failure:
8637
  // @@protoc_insertion_point(parse_failure:yb.RedisStrLenRequestPB)
8638
0
  return false;
8639
0
#undef DO_
8640
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8657
0
  (void)deterministic; // Unused
8658
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisStrLenRequestPB)
8659
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8660
0
  (void) cached_has_bits;
8661
8662
0
  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
0
  return target;
8668
0
}
8669
8670
0
size_t RedisStrLenRequestPB::ByteSizeLong() const {
8671
// @@protoc_insertion_point(message_byte_size_start:yb.RedisStrLenRequestPB)
8672
0
  size_t total_size = 0;
8673
8674
0
  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
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8680
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8681
0
  _cached_size_ = cached_size;
8682
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8683
0
  return total_size;
8684
0
}
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
0
void RedisStrLenRequestPB::MergeFrom(const RedisStrLenRequestPB& from) {
8702
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisStrLenRequestPB)
8703
0
  GOOGLE_DCHECK_NE(&from, this);
8704
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8705
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8706
0
  (void) cached_has_bits;
8707
8708
0
}
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
0
::google::protobuf::Metadata RedisStrLenRequestPB::GetMetadata() const {
8740
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8741
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8742
0
}
8743
8744
8745
// ===================================================================
8746
8747
17.1k
void RedisDelRequestPB::InitAsDefaultInstance() {
8748
17.1k
}
8749
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8750
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8751
8752
RedisDelRequestPB::RedisDelRequestPB()
8753
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8754
28
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8755
28
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisDelRequestPB();
8756
28
  }
8757
17.1k
  SharedCtor();
8758
  // @@protoc_insertion_point(constructor:yb.RedisDelRequestPB)
8759
17.1k
}
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
17.1k
void RedisDelRequestPB::SharedCtor() {
8770
17.1k
  _cached_size_ = 0;
8771
17.1k
}
8772
8773
28
RedisDelRequestPB::~RedisDelRequestPB() {
8774
  // @@protoc_insertion_point(destructor:yb.RedisDelRequestPB)
8775
28
  SharedDtor();
8776
28
}
8777
8778
28
void RedisDelRequestPB::SharedDtor() {
8779
28
}
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
10
    ::google::protobuf::io::CodedInputStream* input) {
8816
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8817
10
  ::google::protobuf::uint32 tag;
8818
  // @@protoc_insertion_point(parse_start:yb.RedisDelRequestPB)
8819
10
  for (;;) {
8820
10
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8821
10
    tag = p.first;
8822
10
    if (!p.second) goto handle_unusual;
8823
10
  handle_unusual:
8824
10
    if (tag == 0) {
8825
10
      goto success;
8826
10
    }
8827
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8828
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8829
0
  }
8830
10
success:
8831
  // @@protoc_insertion_point(parse_success:yb.RedisDelRequestPB)
8832
10
  return true;
8833
0
failure:
8834
  // @@protoc_insertion_point(parse_failure:yb.RedisDelRequestPB)
8835
0
  return false;
8836
10
#undef DO_
8837
10
}
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
10
    bool deterministic, ::google::protobuf::uint8* target) const {
8854
10
  (void)deterministic; // Unused
8855
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisDelRequestPB)
8856
10
  ::google::protobuf::uint32 cached_has_bits = 0;
8857
10
  (void) cached_has_bits;
8858
8859
10
  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
10
  return target;
8865
10
}
8866
8867
38
size_t RedisDelRequestPB::ByteSizeLong() const {
8868
// @@protoc_insertion_point(message_byte_size_start:yb.RedisDelRequestPB)
8869
38
  size_t total_size = 0;
8870
8871
38
  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
38
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8877
38
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8878
38
  _cached_size_ = cached_size;
8879
38
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8880
38
  return total_size;
8881
38
}
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
10
::google::protobuf::Metadata RedisDelRequestPB::GetMetadata() const {
8937
10
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8938
10
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8939
10
}
8940
8941
8942
// ===================================================================
8943
8944
17.1k
void RedisExistsRequestPB::InitAsDefaultInstance() {
8945
17.1k
}
8946
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8947
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8948
8949
RedisExistsRequestPB::RedisExistsRequestPB()
8950
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8951
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8952
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisExistsRequestPB();
8953
0
  }
8954
17.1k
  SharedCtor();
8955
  // @@protoc_insertion_point(constructor:yb.RedisExistsRequestPB)
8956
17.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
17.1k
void RedisExistsRequestPB::SharedCtor() {
8967
17.1k
  _cached_size_ = 0;
8968
17.1k
}
8969
8970
0
RedisExistsRequestPB::~RedisExistsRequestPB() {
8971
  // @@protoc_insertion_point(destructor:yb.RedisExistsRequestPB)
8972
0
  SharedDtor();
8973
0
}
8974
8975
0
void RedisExistsRequestPB::SharedDtor() {
8976
0
}
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
0
void RedisExistsRequestPB::MergeFrom(const RedisExistsRequestPB& from) {
9096
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisExistsRequestPB)
9097
0
  GOOGLE_DCHECK_NE(&from, this);
9098
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9099
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9100
0
  (void) cached_has_bits;
9101
9102
0
}
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
0
::google::protobuf::Metadata RedisExistsRequestPB::GetMetadata() const {
9134
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
9135
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
9136
0
}
9137
9138
9139
// ===================================================================
9140
9141
17.1k
void RedisSetRangeRequestPB::InitAsDefaultInstance() {
9142
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9149
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9150
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisSetRangeRequestPB();
9151
0
  }
9152
17.1k
  SharedCtor();
9153
  // @@protoc_insertion_point(constructor:yb.RedisSetRangeRequestPB)
9154
17.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
17.1k
void RedisSetRangeRequestPB::SharedCtor() {
9166
17.1k
  _cached_size_ = 0;
9167
17.1k
  offset_ = 0;
9168
17.1k
}
9169
9170
0
RedisSetRangeRequestPB::~RedisSetRangeRequestPB() {
9171
  // @@protoc_insertion_point(destructor:yb.RedisSetRangeRequestPB)
9172
0
  SharedDtor();
9173
0
}
9174
9175
0
void RedisSetRangeRequestPB::SharedDtor() {
9176
0
}
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
0
size_t RedisSetRangeRequestPB::ByteSizeLong() const {
9297
// @@protoc_insertion_point(message_byte_size_start:yb.RedisSetRangeRequestPB)
9298
0
  size_t total_size = 0;
9299
9300
0
  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
0
  if (has_offset()) {
9307
0
    total_size += 1 +
9308
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
9309
0
        this->offset());
9310
0
  }
9311
9312
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9313
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9314
0
  _cached_size_ = cached_size;
9315
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9316
0
  return total_size;
9317
0
}
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
17.1k
void RedisGetRangeRequestPB::InitAsDefaultInstance() {
9385
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9393
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9394
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisGetRangeRequestPB();
9395
0
  }
9396
17.1k
  SharedCtor();
9397
  // @@protoc_insertion_point(constructor:yb.RedisGetRangeRequestPB)
9398
17.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
17.1k
void RedisGetRangeRequestPB::SharedCtor() {
9412
17.1k
  _cached_size_ = 0;
9413
17.1k
  ::memset(&start_, 0, static_cast<size_t>(
9414
17.1k
      reinterpret_cast<char*>(&end_) -
9415
17.1k
      reinterpret_cast<char*>(&start_)) + sizeof(end_));
9416
17.1k
}
9417
9418
0
RedisGetRangeRequestPB::~RedisGetRangeRequestPB() {
9419
  // @@protoc_insertion_point(destructor:yb.RedisGetRangeRequestPB)
9420
0
  SharedDtor();
9421
0
}
9422
9423
0
void RedisGetRangeRequestPB::SharedDtor() {
9424
0
}
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
0
void RedisGetRangeRequestPB::MergeFrom(const RedisGetRangeRequestPB& from) {
9621
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisGetRangeRequestPB)
9622
0
  GOOGLE_DCHECK_NE(&from, this);
9623
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9624
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9625
0
  (void) cached_has_bits;
9626
9627
0
  cached_has_bits = from._has_bits_[0];
9628
0
  if (cached_has_bits & 3u) {
9629
0
    if (cached_has_bits & 0x00000001u) {
9630
0
      start_ = from.start_;
9631
0
    }
9632
0
    if (cached_has_bits & 0x00000002u) {
9633
0
      end_ = from.end_;
9634
0
    }
9635
0
    _has_bits_[0] |= cached_has_bits;
9636
0
  }
9637
0
}
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
0
::google::protobuf::Metadata RedisGetRangeRequestPB::GetMetadata() const {
9671
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
9672
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
9673
0
}
9674
9675
9676
// ===================================================================
9677
9678
17.1k
void RedisIncrRequestPB::InitAsDefaultInstance() {
9679
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9687
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9688
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisIncrRequestPB();
9689
0
  }
9690
17.1k
  SharedCtor();
9691
  // @@protoc_insertion_point(constructor:yb.RedisIncrRequestPB)
9692
17.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
17.1k
void RedisIncrRequestPB::SharedCtor() {
9706
17.1k
  _cached_size_ = 0;
9707
17.1k
  increment_float_ = 0;
9708
17.1k
  increment_int_ = GOOGLE_LONGLONG(1);
9709
17.1k
}
9710
9711
0
RedisIncrRequestPB::~RedisIncrRequestPB() {
9712
  // @@protoc_insertion_point(destructor:yb.RedisIncrRequestPB)
9713
0
  SharedDtor();
9714
0
}
9715
9716
0
void RedisIncrRequestPB::SharedDtor() {
9717
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
9759
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9760
0
  ::google::protobuf::uint32 tag;
9761
  // @@protoc_insertion_point(parse_start:yb.RedisIncrRequestPB)
9762
0
  for (;;) {
9763
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9764
0
    tag = p.first;
9765
0
    if (!p.second) goto handle_unusual;
9766
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9767
      // optional int64 increment_int = 2 [default = 1];
9768
0
      case 2: {
9769
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9770
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9771
0
          set_has_increment_int();
9772
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9773
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
9774
0
                 input, &increment_int_)));
9775
0
        } else {
9776
0
          goto handle_unusual;
9777
0
        }
9778
0
        break;
9779
0
      }
9780
9781
      // optional double increment_float = 3;
9782
0
      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
0
      handle_unusual:
9797
0
        if (tag == 0) {
9798
0
          goto success;
9799
0
        }
9800
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9801
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9802
0
        break;
9803
0
      }
9804
0
    }
9805
0
  }
9806
0
success:
9807
  // @@protoc_insertion_point(parse_success:yb.RedisIncrRequestPB)
9808
0
  return true;
9809
0
failure:
9810
  // @@protoc_insertion_point(parse_failure:yb.RedisIncrRequestPB)
9811
0
  return false;
9812
0
#undef DO_
9813
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
9841
0
  (void)deterministic; // Unused
9842
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisIncrRequestPB)
9843
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9844
0
  (void) cached_has_bits;
9845
9846
0
  cached_has_bits = _has_bits_[0];
9847
  // optional int64 increment_int = 2 [default = 1];
9848
0
  if (cached_has_bits & 0x00000002u) {
9849
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->increment_int(), target);
9850
0
  }
9851
9852
  // optional double increment_float = 3;
9853
0
  if (cached_has_bits & 0x00000001u) {
9854
0
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->increment_float(), target);
9855
0
  }
9856
9857
0
  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
0
  return target;
9863
0
}
9864
9865
0
size_t RedisIncrRequestPB::ByteSizeLong() const {
9866
// @@protoc_insertion_point(message_byte_size_start:yb.RedisIncrRequestPB)
9867
0
  size_t total_size = 0;
9868
9869
0
  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
0
  if (_has_bits_[0 / 32] & 3u) {
9875
    // optional double increment_float = 3;
9876
0
    if (has_increment_float()) {
9877
0
      total_size += 1 + 8;
9878
0
    }
9879
9880
    // optional int64 increment_int = 2 [default = 1];
9881
0
    if (has_increment_int()) {
9882
0
      total_size += 1 +
9883
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
9884
0
          this->increment_int());
9885
0
    }
9886
9887
0
  }
9888
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9889
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9890
0
  _cached_size_ = cached_size;
9891
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9892
0
  return total_size;
9893
0
}
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
0
::google::protobuf::Metadata RedisIncrRequestPB::GetMetadata() const {
9961
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
9962
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
9963
0
}
9964
9965
9966
// ===================================================================
9967
9968
17.1k
void RedisPushRequestPB::InitAsDefaultInstance() {
9969
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9977
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9978
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPushRequestPB();
9979
0
  }
9980
17.1k
  SharedCtor();
9981
  // @@protoc_insertion_point(constructor:yb.RedisPushRequestPB)
9982
17.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
17.1k
void RedisPushRequestPB::SharedCtor() {
9996
17.1k
  _cached_size_ = 0;
9997
17.1k
  check_existence_ = false;
9998
17.1k
  side_ = 1;
9999
17.1k
}
10000
10001
0
RedisPushRequestPB::~RedisPushRequestPB() {
10002
  // @@protoc_insertion_point(destructor:yb.RedisPushRequestPB)
10003
0
  SharedDtor();
10004
0
}
10005
10006
0
void RedisPushRequestPB::SharedDtor() {
10007
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
10049
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10050
0
  ::google::protobuf::uint32 tag;
10051
  // @@protoc_insertion_point(parse_start:yb.RedisPushRequestPB)
10052
0
  for (;;) {
10053
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10054
0
    tag = p.first;
10055
0
    if (!p.second) goto handle_unusual;
10056
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10057
      // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT];
10058
0
      case 2: {
10059
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10060
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
10061
0
          int value;
10062
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10063
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10064
0
                 input, &value)));
10065
0
          if (::yb::RedisSide_IsValid(value)) {
10066
0
            set_side(static_cast< ::yb::RedisSide >(value));
10067
0
          } else {
10068
0
            mutable_unknown_fields()->AddVarint(
10069
0
                2, static_cast< ::google::protobuf::uint64>(value));
10070
0
          }
10071
0
        } else {
10072
0
          goto handle_unusual;
10073
0
        }
10074
0
        break;
10075
0
      }
10076
10077
      // optional bool check_existence = 3 [default = false];
10078
0
      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
0
      handle_unusual:
10093
0
        if (tag == 0) {
10094
0
          goto success;
10095
0
        }
10096
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10097
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10098
0
        break;
10099
0
      }
10100
0
    }
10101
0
  }
10102
0
success:
10103
  // @@protoc_insertion_point(parse_success:yb.RedisPushRequestPB)
10104
0
  return true;
10105
0
failure:
10106
  // @@protoc_insertion_point(parse_failure:yb.RedisPushRequestPB)
10107
0
  return false;
10108
0
#undef DO_
10109
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
10138
0
  (void)deterministic; // Unused
10139
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisPushRequestPB)
10140
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10141
0
  (void) cached_has_bits;
10142
10143
0
  cached_has_bits = _has_bits_[0];
10144
  // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT];
10145
0
  if (cached_has_bits & 0x00000002u) {
10146
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10147
0
      2, this->side(), target);
10148
0
  }
10149
10150
  // optional bool check_existence = 3 [default = false];
10151
0
  if (cached_has_bits & 0x00000001u) {
10152
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->check_existence(), target);
10153
0
  }
10154
10155
0
  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
0
  return target;
10161
0
}
10162
10163
0
size_t RedisPushRequestPB::ByteSizeLong() const {
10164
// @@protoc_insertion_point(message_byte_size_start:yb.RedisPushRequestPB)
10165
0
  size_t total_size = 0;
10166
10167
0
  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
0
  if (_has_bits_[0 / 32] & 3u) {
10173
    // optional bool check_existence = 3 [default = false];
10174
0
    if (has_check_existence()) {
10175
0
      total_size += 1 + 1;
10176
0
    }
10177
10178
    // optional .yb.RedisSide side = 2 [default = REDIS_SIDE_LEFT];
10179
0
    if (has_side()) {
10180
0
      total_size += 1 +
10181
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->side());
10182
0
    }
10183
10184
0
  }
10185
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10186
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10187
0
  _cached_size_ = cached_size;
10188
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10189
0
  return total_size;
10190
0
}
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
0
::google::protobuf::Metadata RedisPushRequestPB::GetMetadata() const {
10258
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
10259
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
10260
0
}
10261
10262
10263
// ===================================================================
10264
10265
17.1k
void RedisInsertRequestPB::InitAsDefaultInstance() {
10266
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10273
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10274
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisInsertRequestPB();
10275
0
  }
10276
17.1k
  SharedCtor();
10277
  // @@protoc_insertion_point(constructor:yb.RedisInsertRequestPB)
10278
17.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
17.1k
void RedisInsertRequestPB::SharedCtor() {
10290
17.1k
  _cached_size_ = 0;
10291
17.1k
  order_ = 1;
10292
17.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
17.1k
void RedisPopRequestPB::InitAsDefaultInstance() {
10516
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10524
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10525
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisPopRequestPB();
10526
0
  }
10527
17.1k
  SharedCtor();
10528
  // @@protoc_insertion_point(constructor:yb.RedisPopRequestPB)
10529
17.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
17.1k
void RedisPopRequestPB::SharedCtor() {
10543
17.1k
  _cached_size_ = 0;
10544
17.1k
  count_ = 0;
10545
17.1k
  side_ = 1;
10546
17.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
17.1k
void RedisAddRequestPB::InitAsDefaultInstance() {
10815
17.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
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10823
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10824
0
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisAddRequestPB();
10825
0
  }
10826
17.1k
  SharedCtor();
10827
  // @@protoc_insertion_point(constructor:yb.RedisAddRequestPB)
10828
17.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
17.1k
void RedisAddRequestPB::SharedCtor() {
10842
17.1k
  _cached_size_ = 0;
10843
17.1k
  ch_ = false;
10844
17.1k
  mode_ = 1;
10845
17.1k
}
10846
10847
0
RedisAddRequestPB::~RedisAddRequestPB() {
10848
  // @@protoc_insertion_point(destructor:yb.RedisAddRequestPB)
10849
0
  SharedDtor();
10850
0
}
10851
10852
0
void RedisAddRequestPB::SharedDtor() {
10853
0
}
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
0
    ::google::protobuf::io::CodedInputStream* input) {
10895
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10896
0
  ::google::protobuf::uint32 tag;
10897
  // @@protoc_insertion_point(parse_start:yb.RedisAddRequestPB)
10898
0
  for (;;) {
10899
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10900
0
    tag = p.first;
10901
0
    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
0
      handle_unusual:
10939
0
        if (tag == 0) {
10940
0
          goto success;
10941
0
        }
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
0
success:
10949
  // @@protoc_insertion_point(parse_success:yb.RedisAddRequestPB)
10950
0
  return true;
10951
0
failure:
10952
  // @@protoc_insertion_point(parse_failure:yb.RedisAddRequestPB)
10953
0
  return false;
10954
0
#undef DO_
10955
0
}
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
0
    bool deterministic, ::google::protobuf::uint8* target) const {
10984
0
  (void)deterministic; // Unused
10985
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisAddRequestPB)
10986
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10987
0
  (void) cached_has_bits;
10988
10989
0
  cached_has_bits = _has_bits_[0];
10990
  // optional .yb.RedisWriteMode mode = 2 [default = REDIS_WRITEMODE_UPSERT];
10991
0
  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
0
  if (cached_has_bits & 0x00000001u) {
10998
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->ch(), target);
10999
0
  }
11000
11001
0
  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
0
  return target;
11007
0
}
11008
11009
0
size_t RedisAddRequestPB::ByteSizeLong() const {
11010
// @@protoc_insertion_point(message_byte_size_start:yb.RedisAddRequestPB)
11011
0
  size_t total_size = 0;
11012
11013
0
  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
0
  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
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11032
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11033
0
  _cached_size_ = cached_size;
11034
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11035
0
  return total_size;
11036
0
}
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
0
::google::protobuf::Metadata RedisAddRequestPB::GetMetadata() const {
11104
0
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
11105
0
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
11106
0
}
11107
11108
11109
// ===================================================================
11110
11111
17.1k
void RedisResponsePB::InitAsDefaultInstance() {
11112
17.1k
  ::yb::_RedisResponsePB_default_instance_.int_response_ = GOOGLE_LONGLONG(0);
11113
17.1k
  ::yb::_RedisResponsePB_default_instance_.string_response_.UnsafeSetDefault(
11114
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
11115
17.1k
  ::yb::_RedisResponsePB_default_instance_.array_response_ = const_cast< ::yb::RedisArrayPB*>(
11116
17.1k
      ::yb::RedisArrayPB::internal_default_instance());
11117
17.1k
  ::yb::_RedisResponsePB_default_instance_.status_response_.UnsafeSetDefault(
11118
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
11119
17.1k
  ::yb::_RedisResponsePB_default_instance_.encoded_response_.UnsafeSetDefault(
11120
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
11121
17.1k
}
11122
10.9k
void RedisResponsePB::set_allocated_array_response(::yb::RedisArrayPB* array_response) {
11123
10.9k
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11124
10.9k
  clear_response_data();
11125
10.9k
  if (array_response) {
11126
10.9k
    ::google::protobuf::Arena* submessage_arena = NULL;
11127
10.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
10.9k
    set_has_array_response();
11132
10.9k
    response_data_.array_response_ = array_response;
11133
10.9k
  }
11134
  // @@protoc_insertion_point(field_set_allocated:yb.RedisResponsePB.array_response)
11135
10.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
467k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11149
450k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11150
450k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisResponsePB();
11151
450k
  }
11152
467k
  SharedCtor();
11153
  // @@protoc_insertion_point(constructor:yb.RedisResponsePB)
11154
467k
}
11155
RedisResponsePB::RedisResponsePB(const RedisResponsePB& from)
11156
  : ::google::protobuf::Message(),
11157
      _internal_metadata_(NULL),
11158
      _has_bits_(from._has_bits_),
11159
0
      _cached_size_(0) {
11160
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11161
0
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11162
0
  if (from.has_error_message()) {
11163
0
    error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
11164
0
  }
11165
0
  ::memcpy(&code_, &from.code_,
11166
0
    static_cast<size_t>(reinterpret_cast<char*>(&type_) -
11167
0
    reinterpret_cast<char*>(&code_)) + sizeof(type_));
11168
0
  clear_has_response_data();
11169
0
  switch (from.response_data_case()) {
11170
0
    case kIntResponse: {
11171
0
      set_int_response(from.int_response());
11172
0
      break;
11173
0
    }
11174
0
    case kStringResponse: {
11175
0
      set_string_response(from.string_response());
11176
0
      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
0
  }
11194
  // @@protoc_insertion_point(copy_constructor:yb.RedisResponsePB)
11195
0
}
11196
11197
467k
void RedisResponsePB::SharedCtor() {
11198
467k
  _cached_size_ = 0;
11199
467k
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11200
467k
  code_ = 1;
11201
467k
  type_ = 1;
11202
467k
  clear_has_response_data();
11203
467k
}
11204
11205
450k
RedisResponsePB::~RedisResponsePB() {
11206
  // @@protoc_insertion_point(destructor:yb.RedisResponsePB)
11207
450k
  SharedDtor();
11208
450k
}
11209
11210
450k
void RedisResponsePB::SharedDtor() {
11211
450k
  error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11212
450k
  if (has_response_data()) {
11213
111k
    clear_response_data();
11214
111k
  }
11215
450k
}
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
271k
void RedisResponsePB::clear_response_data() {
11241
// @@protoc_insertion_point(one_of_clear_start:yb.RedisResponsePB)
11242
271k
  switch (response_data_case()) {
11243
15.5k
    case kIntResponse: {
11244
      // No need to clear
11245
15.5k
      break;
11246
0
    }
11247
81.5k
    case kStringResponse: {
11248
81.5k
      response_data_.string_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11249
81.5k
      break;
11250
0
    }
11251
19.5k
    case kArrayResponse: {
11252
19.5k
      delete response_data_.array_response_;
11253
19.5k
      break;
11254
0
    }
11255
226
    case kStatusResponse: {
11256
226
      response_data_.status_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11257
226
      break;
11258
0
    }
11259
0
    case kEncodedResponse: {
11260
0
      response_data_.encoded_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11261
0
      break;
11262
0
    }
11263
154k
    case RESPONSE_DATA_NOT_SET: {
11264
154k
      break;
11265
271k
    }
11266
271k
  }
11267
271k
  _oneof_case_[0] = RESPONSE_DATA_NOT_SET;
11268
271k
}
11269
11270
11271
43.0k
void RedisResponsePB::Clear() {
11272
// @@protoc_insertion_point(message_clear_start:yb.RedisResponsePB)
11273
43.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
11274
  // Prevent compiler warnings about cached_has_bits being unused
11275
43.0k
  (void) cached_has_bits;
11276
11277
43.0k
  cached_has_bits = _has_bits_[0];
11278
43.0k
  if (cached_has_bits & 7u) {
11279
3
    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
3
    code_ = 1;
11284
3
    type_ = 1;
11285
3
  }
11286
43.0k
  clear_response_data();
11287
43.0k
  _has_bits_.Clear();
11288
43.0k
  _internal_metadata_.Clear();
11289
43.0k
}
11290
11291
bool RedisResponsePB::MergePartialFromCodedStream(
11292
31.6k
    ::google::protobuf::io::CodedInputStream* input) {
11293
46.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11294
31.6k
  ::google::protobuf::uint32 tag;
11295
  // @@protoc_insertion_point(parse_start:yb.RedisResponsePB)
11296
78.1k
  for (;;) {
11297
78.1k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11298
78.1k
    tag = p.first;
11299
78.1k
    if (!p.second) goto handle_unusual;
11300
46.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11301
      // optional .yb.RedisResponsePB.RedisStatusCode code = 1;
11302
31.5k
      case 1: {
11303
31.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11304
31.5k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11305
31.5k
          int value;
11306
31.5k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11307
31.5k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11308
31.5k
                 input, &value)));
11309
31.5k
          if (::yb::RedisResponsePB_RedisStatusCode_IsValid(value)) {
11310
31.5k
            set_code(static_cast< ::yb::RedisResponsePB_RedisStatusCode >(value));
11311
0
          } else {
11312
0
            mutable_unknown_fields()->AddVarint(
11313
0
                1, static_cast< ::google::protobuf::uint64>(value));
11314
0
          }
11315
0
        } else {
11316
0
          goto handle_unusual;
11317
0
        }
11318
31.5k
        break;
11319
31.5k
      }
11320
11321
      // optional int64 int_response = 2;
11322
4.73k
      case 2: {
11323
4.73k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11324
4.73k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11325
4.73k
          clear_response_data();
11326
4.73k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11327
4.73k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11328
4.73k
                 input, &response_data_.int_response_)));
11329
4.73k
          set_has_int_response();
11330
0
        } else {
11331
0
          goto handle_unusual;
11332
0
        }
11333
4.73k
        break;
11334
4.73k
      }
11335
11336
      // optional bytes string_response = 3;
11337
7.54k
      case 3: {
11338
7.54k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11339
7.54k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
11340
7.54k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11341
7.54k
                input, this->mutable_string_response()));
11342
0
        } else {
11343
0
          goto handle_unusual;
11344
0
        }
11345
7.54k
        break;
11346
7.54k
      }
11347
11348
      // optional .yb.RedisArrayPB array_response = 4;
11349
2.56k
      case 4: {
11350
2.56k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11351
2.56k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
11352
2.56k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11353
2.56k
               input, mutable_array_response()));
11354
0
        } else {
11355
0
          goto handle_unusual;
11356
0
        }
11357
2.56k
        break;
11358
2.56k
      }
11359
11360
      // optional bytes status_response = 5;
11361
0
      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
8
      case 6: {
11374
8
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11375
8
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
11376
8
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11377
8
                input, this->mutable_error_message()));
11378
0
        } else {
11379
0
          goto handle_unusual;
11380
0
        }
11381
8
        break;
11382
8
      }
11383
11384
      // optional bytes encoded_response = 7;
11385
0
      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
0
      case 8: {
11398
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11399
0
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
11400
0
          int value;
11401
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11402
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11403
0
                 input, &value)));
11404
0
          if (::yb::RedisDataType_IsValid(value)) {
11405
0
            set_type(static_cast< ::yb::RedisDataType >(value));
11406
0
          } else {
11407
0
            mutable_unknown_fields()->AddVarint(
11408
0
                8, static_cast< ::google::protobuf::uint64>(value));
11409
0
          }
11410
0
        } else {
11411
0
          goto handle_unusual;
11412
0
        }
11413
0
        break;
11414
31.6k
      }
11415
11416
0
      default: {
11417
31.6k
      handle_unusual:
11418
31.6k
        if (tag == 0) {
11419
31.6k
          goto success;
11420
31.6k
        }
11421
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11422
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11423
0
        break;
11424
0
      }
11425
46.4k
    }
11426
46.4k
  }
11427
31.6k
success:
11428
  // @@protoc_insertion_point(parse_success:yb.RedisResponsePB)
11429
31.6k
  return true;
11430
0
failure:
11431
  // @@protoc_insertion_point(parse_failure:yb.RedisResponsePB)
11432
0
  return false;
11433
31.6k
#undef DO_
11434
31.6k
}
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
31.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
11494
31.6k
  (void)deterministic; // Unused
11495
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisResponsePB)
11496
31.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
11497
31.6k
  (void) cached_has_bits;
11498
11499
31.6k
  cached_has_bits = _has_bits_[0];
11500
  // optional .yb.RedisResponsePB.RedisStatusCode code = 1;
11501
31.6k
  if (cached_has_bits & 0x00000002u) {
11502
31.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11503
31.5k
      1, this->code(), target);
11504
31.5k
  }
11505
11506
31.6k
  switch (response_data_case()) {
11507
4.73k
    case kIntResponse:
11508
4.73k
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->int_response(), target);
11509
4.73k
      break;
11510
7.54k
    case kStringResponse:
11511
7.54k
      target =
11512
7.54k
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11513
7.54k
          3, this->string_response(), target);
11514
7.54k
      break;
11515
2.56k
    case kArrayResponse:
11516
2.56k
      target = ::google::protobuf::internal::WireFormatLite::
11517
2.56k
        InternalWriteMessageToArray(
11518
2.56k
          4, *response_data_.array_response_, deterministic, target);
11519
2.56k
      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
16.8k
    default: ;
11526
31.6k
  }
11527
  // optional bytes error_message = 6;
11528
31.6k
  if (cached_has_bits & 0x00000001u) {
11529
8
    target =
11530
8
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11531
8
        6, this->error_message(), target);
11532
8
  }
11533
11534
  // optional bytes encoded_response = 7;
11535
31.6k
  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
31.6k
  if (cached_has_bits & 0x00000004u) {
11543
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11544
0
      8, this->type(), target);
11545
0
  }
11546
11547
31.6k
  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
31.6k
  return target;
11553
31.6k
}
11554
11555
63.3k
size_t RedisResponsePB::ByteSizeLong() const {
11556
// @@protoc_insertion_point(message_byte_size_start:yb.RedisResponsePB)
11557
63.3k
  size_t total_size = 0;
11558
11559
63.3k
  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
63.3k
  if (_has_bits_[0 / 32] & 7u) {
11565
    // optional bytes error_message = 6;
11566
63.1k
    if (has_error_message()) {
11567
16
      total_size += 1 +
11568
16
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11569
16
          this->error_message());
11570
16
    }
11571
11572
    // optional .yb.RedisResponsePB.RedisStatusCode code = 1;
11573
63.1k
    if (has_code()) {
11574
63.1k
      total_size += 1 +
11575
63.1k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->code());
11576
63.1k
    }
11577
11578
    // optional .yb.RedisDataType type = 8;
11579
63.1k
    if (has_type()) {
11580
0
      total_size += 1 +
11581
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
11582
0
    }
11583
11584
63.1k
  }
11585
63.3k
  switch (response_data_case()) {
11586
    // optional int64 int_response = 2;
11587
9.46k
    case kIntResponse: {
11588
9.46k
      total_size += 1 +
11589
9.46k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
11590
9.46k
          this->int_response());
11591
9.46k
      break;
11592
0
    }
11593
    // optional bytes string_response = 3;
11594
15.0k
    case kStringResponse: {
11595
15.0k
      total_size += 1 +
11596
15.0k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11597
15.0k
          this->string_response());
11598
15.0k
      break;
11599
0
    }
11600
    // optional .yb.RedisArrayPB array_response = 4;
11601
5.12k
    case kArrayResponse: {
11602
5.12k
      total_size += 1 +
11603
5.12k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
11604
5.12k
          *response_data_.array_response_);
11605
5.12k
      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
33.7k
    case RESPONSE_DATA_NOT_SET: {
11622
33.7k
      break;
11623
63.3k
    }
11624
63.3k
  }
11625
63.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11626
63.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11627
63.3k
  _cached_size_ = cached_size;
11628
63.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11629
63.3k
  return total_size;
11630
63.3k
}
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
42.9k
void RedisResponsePB::MergeFrom(const RedisResponsePB& from) {
11648
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisResponsePB)
11649
42.9k
  GOOGLE_DCHECK_NE(&from, this);
11650
42.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11651
42.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
11652
42.9k
  (void) cached_has_bits;
11653
11654
42.9k
  cached_has_bits = from._has_bits_[0];
11655
42.9k
  if (cached_has_bits & 7u) {
11656
42.8k
    if (cached_has_bits & 0x00000001u) {
11657
15
      set_has_error_message();
11658
15
      error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
11659
15
    }
11660
42.8k
    if (cached_has_bits & 0x00000002u) {
11661
42.8k
      code_ = from.code_;
11662
42.8k
    }
11663
42.8k
    if (cached_has_bits & 0x00000004u) {
11664
0
      type_ = from.type_;
11665
0
    }
11666
42.8k
    _has_bits_[0] |= cached_has_bits;
11667
42.8k
  }
11668
42.9k
  switch (from.response_data_case()) {
11669
147
    case kIntResponse: {
11670
147
      set_int_response(from.int_response());
11671
147
      break;
11672
0
    }
11673
37.0k
    case kStringResponse: {
11674
37.0k
      set_string_response(from.string_response());
11675
37.0k
      break;
11676
0
    }
11677
5.69k
    case kArrayResponse: {
11678
5.69k
      mutable_array_response()->::yb::RedisArrayPB::MergeFrom(from.array_response());
11679
5.69k
      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
99
    case RESPONSE_DATA_NOT_SET: {
11690
99
      break;
11691
0
    }
11692
42.9k
  }
11693
42.9k
}
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
42.9k
void RedisResponsePB::CopyFrom(const RedisResponsePB& from) {
11703
// @@protoc_insertion_point(class_specific_copy_from_start:yb.RedisResponsePB)
11704
42.9k
  if (&from == this) return;
11705
42.9k
  Clear();
11706
42.9k
  MergeFrom(from);
11707
42.9k
}
11708
11709
0
bool RedisResponsePB::IsInitialized() const {
11710
0
  return true;
11711
0
}
11712
11713
270k
void RedisResponsePB::Swap(RedisResponsePB* other) {
11714
270k
  if (other == this) return;
11715
270k
  InternalSwap(other);
11716
270k
}
11717
270k
void RedisResponsePB::InternalSwap(RedisResponsePB* other) {
11718
270k
  using std::swap;
11719
270k
  error_message_.Swap(&other->error_message_);
11720
270k
  swap(code_, other->code_);
11721
270k
  swap(type_, other->type_);
11722
270k
  swap(response_data_, other->response_data_);
11723
270k
  swap(_oneof_case_[0], other->_oneof_case_[0]);
11724
270k
  swap(_has_bits_[0], other->_has_bits_[0]);
11725
270k
  _internal_metadata_.Swap(&other->_internal_metadata_);
11726
270k
  swap(_cached_size_, other->_cached_size_);
11727
270k
}
11728
11729
104k
::google::protobuf::Metadata RedisResponsePB::GetMetadata() const {
11730
104k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
11731
104k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
11732
104k
}
11733
11734
11735
// ===================================================================
11736
11737
17.1k
void RedisArrayPB::InitAsDefaultInstance() {
11738
17.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
36.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11746
19.5k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11747
19.5k
    ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::InitDefaultsRedisArrayPB();
11748
19.5k
  }
11749
36.7k
  SharedCtor();
11750
  // @@protoc_insertion_point(constructor:yb.RedisArrayPB)
11751
36.7k
}
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
36.7k
void RedisArrayPB::SharedCtor() {
11764
36.7k
  _cached_size_ = 0;
11765
36.7k
  encoded_ = false;
11766
36.7k
}
11767
11768
19.5k
RedisArrayPB::~RedisArrayPB() {
11769
  // @@protoc_insertion_point(destructor:yb.RedisArrayPB)
11770
19.5k
  SharedDtor();
11771
19.5k
}
11772
11773
19.5k
void RedisArrayPB::SharedDtor() {
11774
19.5k
}
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
2.56k
    ::google::protobuf::io::CodedInputStream* input) {
11813
951k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11814
2.56k
  ::google::protobuf::uint32 tag;
11815
  // @@protoc_insertion_point(parse_start:yb.RedisArrayPB)
11816
953k
  for (;;) {
11817
953k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11818
953k
    tag = p.first;
11819
953k
    if (!p.second) goto handle_unusual;
11820
951k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11821
      // repeated bytes elements = 1;
11822
951k
      case 1: {
11823
951k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11824
951k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11825
951k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11826
951k
                input, this->add_elements()));
11827
0
        } else {
11828
0
          goto handle_unusual;
11829
0
        }
11830
951k
        break;
11831
951k
      }
11832
11833
      // optional bool encoded = 2;
11834
0
      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
2.56k
      }
11846
11847
0
      default: {
11848
2.56k
      handle_unusual:
11849
2.56k
        if (tag == 0) {
11850
2.56k
          goto success;
11851
2.56k
        }
11852
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11853
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11854
0
        break;
11855
0
      }
11856
951k
    }
11857
951k
  }
11858
2.56k
success:
11859
  // @@protoc_insertion_point(parse_success:yb.RedisArrayPB)
11860
2.56k
  return true;
11861
0
failure:
11862
  // @@protoc_insertion_point(parse_failure:yb.RedisArrayPB)
11863
0
  return false;
11864
2.56k
#undef DO_
11865
2.56k
}
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
2.56k
    bool deterministic, ::google::protobuf::uint8* target) const {
11894
2.56k
  (void)deterministic; // Unused
11895
  // @@protoc_insertion_point(serialize_to_array_start:yb.RedisArrayPB)
11896
2.56k
  ::google::protobuf::uint32 cached_has_bits = 0;
11897
2.56k
  (void) cached_has_bits;
11898
11899
  // repeated bytes elements = 1;
11900
953k
  for (int i = 0, n = this->elements_size(); i < n; i++) {
11901
951k
    target = ::google::protobuf::internal::WireFormatLite::
11902
951k
      WriteBytesToArray(1, this->elements(i), target);
11903
951k
  }
11904
11905
2.56k
  cached_has_bits = _has_bits_[0];
11906
  // optional bool encoded = 2;
11907
2.56k
  if (cached_has_bits & 0x00000001u) {
11908
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->encoded(), target);
11909
0
  }
11910
11911
2.56k
  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
2.56k
  return target;
11917
2.56k
}
11918
11919
5.12k
size_t RedisArrayPB::ByteSizeLong() const {
11920
// @@protoc_insertion_point(message_byte_size_start:yb.RedisArrayPB)
11921
5.12k
  size_t total_size = 0;
11922
11923
5.12k
  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
5.12k
  total_size += 1 *
11930
5.12k
      ::google::protobuf::internal::FromIntSize(this->elements_size());
11931
1.90M
  for (int i = 0, n = this->elements_size(); i < n; i++) {
11932
1.90M
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
11933
1.90M
      this->elements(i));
11934
1.90M
  }
11935
11936
  // optional bool encoded = 2;
11937
5.12k
  if (has_encoded()) {
11938
0
    total_size += 1 + 1;
11939
0
  }
11940
11941
5.12k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11942
5.12k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11943
5.12k
  _cached_size_ = cached_size;
11944
5.12k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11945
5.12k
  return total_size;
11946
5.12k
}
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
5.69k
void RedisArrayPB::MergeFrom(const RedisArrayPB& from) {
11964
// @@protoc_insertion_point(class_specific_merge_from_start:yb.RedisArrayPB)
11965
5.69k
  GOOGLE_DCHECK_NE(&from, this);
11966
5.69k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11967
5.69k
  ::google::protobuf::uint32 cached_has_bits = 0;
11968
5.69k
  (void) cached_has_bits;
11969
11970
5.69k
  elements_.MergeFrom(from.elements_);
11971
5.69k
  if (from.has_encoded()) {
11972
0
    set_encoded(from.encoded());
11973
0
  }
11974
5.69k
}
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
5.56k
::google::protobuf::Metadata RedisArrayPB::GetMetadata() const {
12008
5.56k
  protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
12009
5.56k
  return ::protobuf_yb_2fcommon_2fredis_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
12010
5.56k
}
12011
12012
12013
// @@protoc_insertion_point(namespace_scope)
12014
}  // namespace yb
12015
12016
// @@protoc_insertion_point(global_scope)