/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/rpc/rtest.messages.h
Line | Count | Source (jump to first uncovered line) |
1 | | // THIS FILE IS AUTOGENERATED FROM yb/rpc/rtest.proto |
2 | | |
3 | | #ifndef YB_RPC_RTEST_MESSAGES_H |
4 | | #define YB_RPC_RTEST_MESSAGES_H |
5 | | |
6 | | #include "yb/rpc/lightweight_message.h" |
7 | | #include "yb/util/memory/arena_list.h" |
8 | | #include "yb/util/memory/mc_types.h" |
9 | | #include "yb/rpc/rtest.pb.h" |
10 | | |
11 | | #include "yb/rpc/any.messages.h" |
12 | | #include "yb/rpc/rtest_diff_package.messages.h" |
13 | | |
14 | | namespace yb { |
15 | | namespace rpc_test { |
16 | | |
17 | | class LWAddRequestPB; |
18 | | class LWAddRequestPartialPB; |
19 | | class LWAddResponsePB; |
20 | | class LWSleepRequestPB; |
21 | | class LWSleepResponsePB; |
22 | | class LWSendStringsRequestPB; |
23 | | class LWSendStringsResponsePB; |
24 | | class LWEchoRequestPB; |
25 | | class LWEchoResponsePB; |
26 | | class LWWhoAmIRequestPB; |
27 | | class LWWhoAmIResponsePB; |
28 | | class LWCalculatorError; |
29 | | class LWPanicRequestPB; |
30 | | class LWPanicResponsePB; |
31 | | class LWPingRequestPB; |
32 | | class LWPingResponsePB; |
33 | | class LWDisconnectRequestPB; |
34 | | class LWDisconnectResponsePB; |
35 | | class LWForwardRequestPB; |
36 | | class LWForwardResponsePB; |
37 | | class LWConcatRequestPB; |
38 | | class LWConcatResponsePB; |
39 | | class LWLightweightSubMessagePB; |
40 | | class LWLightweightPairPB; |
41 | | class LWLightweightRequestPB_LWMapEntry_DoNotUse; |
42 | | class LWLightweightRequestPB; |
43 | | class LWLightweightResponsePB_LWMapEntry_DoNotUse; |
44 | | class LWLightweightResponsePB; |
45 | | class LWTrivialRequestPB; |
46 | | class LWTrivialErrorPB; |
47 | | class LWTrivialResponsePB; |
48 | | |
49 | | YB_DEFINE_ENUM(AddRequestPBFields, |
50 | | (kX) |
51 | | (kY) |
52 | | ); |
53 | | |
54 | | class LWAddRequestPB : public ::yb::rpc::LightweightMessage { |
55 | | public: |
56 | | explicit LWAddRequestPB(::yb::Arena* arena); |
57 | | LWAddRequestPB(::yb::Arena* arena, const LWAddRequestPB& rhs); |
58 | | |
59 | | LWAddRequestPB(::yb::Arena* arena, const AddRequestPB& rhs) |
60 | 0 | : LWAddRequestPB(arena) { |
61 | 0 | CopyFrom(rhs); |
62 | 0 | } |
63 | | |
64 | 0 | void operator=(const LWAddRequestPB& rhs) { |
65 | 0 | CopyFrom(rhs); |
66 | 0 | } |
67 | | |
68 | 0 | void operator=(const AddRequestPB& rhs) { |
69 | 0 | CopyFrom(rhs); |
70 | 0 | } |
71 | | |
72 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
73 | | size_t SerializedSize() const override; |
74 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
75 | | void AppendToDebugString(std::string* out) const override; |
76 | | |
77 | | void Clear() override; |
78 | | void CopyFrom(const LWAddRequestPB& rhs); |
79 | | void CopyFrom(const AddRequestPB& rhs); |
80 | | |
81 | | void ToGoogleProtobuf(AddRequestPB* out) const; |
82 | | |
83 | 0 | AddRequestPB ToGoogleProtobuf() const { |
84 | 0 | AddRequestPB result; |
85 | 0 | ToGoogleProtobuf(&result); |
86 | 0 | return result; |
87 | 0 | } |
88 | | |
89 | 0 | uint32_t x() const { |
90 | 0 | return x_; |
91 | 0 | } |
92 | | |
93 | 0 | void set_x(uint32_t value) { |
94 | 0 | has_fields_.Set(AddRequestPBFields::kX); |
95 | 0 | x_ = value; |
96 | 0 | } |
97 | | |
98 | 0 | uint32_t* mutable_x() { |
99 | 0 | has_fields_.Set(AddRequestPBFields::kX); |
100 | 0 | return &x_; |
101 | 0 | } |
102 | | |
103 | 0 | bool has_x() const { |
104 | 0 | return has_fields_.Test(AddRequestPBFields::kX); |
105 | 0 | } |
106 | | |
107 | 0 | void clear_x() { |
108 | 0 | x_ = uint32_t(); |
109 | 0 | has_fields_.Reset(AddRequestPBFields::kX); |
110 | 0 | } |
111 | | |
112 | 0 | uint32_t y() const { |
113 | 0 | return y_; |
114 | 0 | } |
115 | | |
116 | 0 | void set_y(uint32_t value) { |
117 | 0 | has_fields_.Set(AddRequestPBFields::kY); |
118 | 0 | y_ = value; |
119 | 0 | } |
120 | | |
121 | 0 | uint32_t* mutable_y() { |
122 | 0 | has_fields_.Set(AddRequestPBFields::kY); |
123 | 0 | return &y_; |
124 | 0 | } |
125 | | |
126 | 0 | bool has_y() const { |
127 | 0 | return has_fields_.Test(AddRequestPBFields::kY); |
128 | 0 | } |
129 | | |
130 | 0 | void clear_y() { |
131 | 0 | y_ = uint32_t(); |
132 | 0 | has_fields_.Reset(AddRequestPBFields::kY); |
133 | 0 | } |
134 | | |
135 | 0 | size_t cached_size() const { |
136 | 0 | return cached_size_; |
137 | 0 | } |
138 | | |
139 | | private: |
140 | | ::yb::EnumBitSet<AddRequestPBFields> has_fields_; |
141 | | mutable size_t cached_size_ = 0; |
142 | | uint32_t x_ = uint32_t(); |
143 | | uint32_t y_ = uint32_t(); |
144 | | }; |
145 | | |
146 | | YB_DEFINE_ENUM(AddRequestPartialPBFields, |
147 | | (kX) |
148 | | ); |
149 | | |
150 | | class LWAddRequestPartialPB : public ::yb::rpc::LightweightMessage { |
151 | | public: |
152 | | explicit LWAddRequestPartialPB(::yb::Arena* arena); |
153 | | LWAddRequestPartialPB(::yb::Arena* arena, const LWAddRequestPartialPB& rhs); |
154 | | |
155 | | LWAddRequestPartialPB(::yb::Arena* arena, const AddRequestPartialPB& rhs) |
156 | 0 | : LWAddRequestPartialPB(arena) { |
157 | 0 | CopyFrom(rhs); |
158 | 0 | } |
159 | | |
160 | 0 | void operator=(const LWAddRequestPartialPB& rhs) { |
161 | 0 | CopyFrom(rhs); |
162 | 0 | } |
163 | | |
164 | 0 | void operator=(const AddRequestPartialPB& rhs) { |
165 | 0 | CopyFrom(rhs); |
166 | 0 | } |
167 | | |
168 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
169 | | size_t SerializedSize() const override; |
170 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
171 | | void AppendToDebugString(std::string* out) const override; |
172 | | |
173 | | void Clear() override; |
174 | | void CopyFrom(const LWAddRequestPartialPB& rhs); |
175 | | void CopyFrom(const AddRequestPartialPB& rhs); |
176 | | |
177 | | void ToGoogleProtobuf(AddRequestPartialPB* out) const; |
178 | | |
179 | 0 | AddRequestPartialPB ToGoogleProtobuf() const { |
180 | 0 | AddRequestPartialPB result; |
181 | 0 | ToGoogleProtobuf(&result); |
182 | 0 | return result; |
183 | 0 | } |
184 | | |
185 | 0 | uint32_t x() const { |
186 | 0 | return x_; |
187 | 0 | } |
188 | | |
189 | 0 | void set_x(uint32_t value) { |
190 | 0 | has_fields_.Set(AddRequestPartialPBFields::kX); |
191 | 0 | x_ = value; |
192 | 0 | } |
193 | | |
194 | 0 | uint32_t* mutable_x() { |
195 | 0 | has_fields_.Set(AddRequestPartialPBFields::kX); |
196 | 0 | return &x_; |
197 | 0 | } |
198 | | |
199 | 0 | bool has_x() const { |
200 | 0 | return has_fields_.Test(AddRequestPartialPBFields::kX); |
201 | 0 | } |
202 | | |
203 | 0 | void clear_x() { |
204 | 0 | x_ = uint32_t(); |
205 | 0 | has_fields_.Reset(AddRequestPartialPBFields::kX); |
206 | 0 | } |
207 | | |
208 | 0 | size_t cached_size() const { |
209 | 0 | return cached_size_; |
210 | 0 | } |
211 | | |
212 | | private: |
213 | | ::yb::EnumBitSet<AddRequestPartialPBFields> has_fields_; |
214 | | mutable size_t cached_size_ = 0; |
215 | | uint32_t x_ = uint32_t(); |
216 | | }; |
217 | | |
218 | | YB_DEFINE_ENUM(AddResponsePBFields, |
219 | | (kResult) |
220 | | ); |
221 | | |
222 | | class LWAddResponsePB : public ::yb::rpc::LightweightMessage { |
223 | | public: |
224 | | explicit LWAddResponsePB(::yb::Arena* arena); |
225 | | LWAddResponsePB(::yb::Arena* arena, const LWAddResponsePB& rhs); |
226 | | |
227 | | LWAddResponsePB(::yb::Arena* arena, const AddResponsePB& rhs) |
228 | 0 | : LWAddResponsePB(arena) { |
229 | 0 | CopyFrom(rhs); |
230 | 0 | } |
231 | | |
232 | 0 | void operator=(const LWAddResponsePB& rhs) { |
233 | 0 | CopyFrom(rhs); |
234 | 0 | } |
235 | | |
236 | 0 | void operator=(const AddResponsePB& rhs) { |
237 | 0 | CopyFrom(rhs); |
238 | 0 | } |
239 | | |
240 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
241 | | size_t SerializedSize() const override; |
242 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
243 | | void AppendToDebugString(std::string* out) const override; |
244 | | |
245 | | void Clear() override; |
246 | | void CopyFrom(const LWAddResponsePB& rhs); |
247 | | void CopyFrom(const AddResponsePB& rhs); |
248 | | |
249 | | void ToGoogleProtobuf(AddResponsePB* out) const; |
250 | | |
251 | 0 | AddResponsePB ToGoogleProtobuf() const { |
252 | 0 | AddResponsePB result; |
253 | 0 | ToGoogleProtobuf(&result); |
254 | 0 | return result; |
255 | 0 | } |
256 | | |
257 | 0 | uint32_t result() const { |
258 | 0 | return result_; |
259 | 0 | } |
260 | | |
261 | 0 | void set_result(uint32_t value) { |
262 | 0 | has_fields_.Set(AddResponsePBFields::kResult); |
263 | 0 | result_ = value; |
264 | 0 | } |
265 | | |
266 | 0 | uint32_t* mutable_result() { |
267 | 0 | has_fields_.Set(AddResponsePBFields::kResult); |
268 | 0 | return &result_; |
269 | 0 | } |
270 | | |
271 | 0 | bool has_result() const { |
272 | 0 | return has_fields_.Test(AddResponsePBFields::kResult); |
273 | 0 | } |
274 | | |
275 | 0 | void clear_result() { |
276 | 0 | result_ = uint32_t(); |
277 | 0 | has_fields_.Reset(AddResponsePBFields::kResult); |
278 | 0 | } |
279 | | |
280 | 0 | size_t cached_size() const { |
281 | 0 | return cached_size_; |
282 | 0 | } |
283 | | |
284 | | private: |
285 | | ::yb::EnumBitSet<AddResponsePBFields> has_fields_; |
286 | | mutable size_t cached_size_ = 0; |
287 | | uint32_t result_ = uint32_t(); |
288 | | }; |
289 | | |
290 | | YB_DEFINE_ENUM(SleepRequestPBFields, |
291 | | (kSleepMicros) |
292 | | (kDeferred) |
293 | | (kReturnAppError) |
294 | | (kClientTimeoutDefined) |
295 | | ); |
296 | | |
297 | | class LWSleepRequestPB : public ::yb::rpc::LightweightMessage { |
298 | | public: |
299 | | explicit LWSleepRequestPB(::yb::Arena* arena); |
300 | | LWSleepRequestPB(::yb::Arena* arena, const LWSleepRequestPB& rhs); |
301 | | |
302 | | LWSleepRequestPB(::yb::Arena* arena, const SleepRequestPB& rhs) |
303 | 0 | : LWSleepRequestPB(arena) { |
304 | 0 | CopyFrom(rhs); |
305 | 0 | } |
306 | | |
307 | 0 | void operator=(const LWSleepRequestPB& rhs) { |
308 | 0 | CopyFrom(rhs); |
309 | 0 | } |
310 | | |
311 | 0 | void operator=(const SleepRequestPB& rhs) { |
312 | 0 | CopyFrom(rhs); |
313 | 0 | } |
314 | | |
315 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
316 | | size_t SerializedSize() const override; |
317 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
318 | | void AppendToDebugString(std::string* out) const override; |
319 | | |
320 | | void Clear() override; |
321 | | void CopyFrom(const LWSleepRequestPB& rhs); |
322 | | void CopyFrom(const SleepRequestPB& rhs); |
323 | | |
324 | | void ToGoogleProtobuf(SleepRequestPB* out) const; |
325 | | |
326 | 0 | SleepRequestPB ToGoogleProtobuf() const { |
327 | 0 | SleepRequestPB result; |
328 | 0 | ToGoogleProtobuf(&result); |
329 | 0 | return result; |
330 | 0 | } |
331 | | |
332 | 0 | uint32_t sleep_micros() const { |
333 | 0 | return sleep_micros_; |
334 | 0 | } |
335 | | |
336 | 0 | void set_sleep_micros(uint32_t value) { |
337 | 0 | has_fields_.Set(SleepRequestPBFields::kSleepMicros); |
338 | 0 | sleep_micros_ = value; |
339 | 0 | } |
340 | | |
341 | 0 | uint32_t* mutable_sleep_micros() { |
342 | 0 | has_fields_.Set(SleepRequestPBFields::kSleepMicros); |
343 | 0 | return &sleep_micros_; |
344 | 0 | } |
345 | | |
346 | 0 | bool has_sleep_micros() const { |
347 | 0 | return has_fields_.Test(SleepRequestPBFields::kSleepMicros); |
348 | 0 | } |
349 | | |
350 | 0 | void clear_sleep_micros() { |
351 | 0 | sleep_micros_ = uint32_t(); |
352 | 0 | has_fields_.Reset(SleepRequestPBFields::kSleepMicros); |
353 | 0 | } |
354 | | |
355 | 0 | bool deferred() const { |
356 | 0 | return deferred_; |
357 | 0 | } |
358 | | |
359 | 0 | void set_deferred(bool value) { |
360 | 0 | has_fields_.Set(SleepRequestPBFields::kDeferred); |
361 | 0 | deferred_ = value; |
362 | 0 | } |
363 | | |
364 | 0 | bool* mutable_deferred() { |
365 | 0 | has_fields_.Set(SleepRequestPBFields::kDeferred); |
366 | 0 | return &deferred_; |
367 | 0 | } |
368 | | |
369 | 0 | bool has_deferred() const { |
370 | 0 | return has_fields_.Test(SleepRequestPBFields::kDeferred); |
371 | 0 | } |
372 | | |
373 | 0 | void clear_deferred() { |
374 | 0 | deferred_ = bool(); |
375 | 0 | has_fields_.Reset(SleepRequestPBFields::kDeferred); |
376 | 0 | } |
377 | | |
378 | 0 | bool return_app_error() const { |
379 | 0 | return return_app_error_; |
380 | 0 | } |
381 | | |
382 | 0 | void set_return_app_error(bool value) { |
383 | 0 | has_fields_.Set(SleepRequestPBFields::kReturnAppError); |
384 | 0 | return_app_error_ = value; |
385 | 0 | } |
386 | | |
387 | 0 | bool* mutable_return_app_error() { |
388 | 0 | has_fields_.Set(SleepRequestPBFields::kReturnAppError); |
389 | 0 | return &return_app_error_; |
390 | 0 | } |
391 | | |
392 | 0 | bool has_return_app_error() const { |
393 | 0 | return has_fields_.Test(SleepRequestPBFields::kReturnAppError); |
394 | 0 | } |
395 | | |
396 | 0 | void clear_return_app_error() { |
397 | 0 | return_app_error_ = bool(); |
398 | 0 | has_fields_.Reset(SleepRequestPBFields::kReturnAppError); |
399 | 0 | } |
400 | | |
401 | 0 | bool client_timeout_defined() const { |
402 | 0 | return client_timeout_defined_; |
403 | 0 | } |
404 | | |
405 | 0 | void set_client_timeout_defined(bool value) { |
406 | 0 | has_fields_.Set(SleepRequestPBFields::kClientTimeoutDefined); |
407 | 0 | client_timeout_defined_ = value; |
408 | 0 | } |
409 | | |
410 | 0 | bool* mutable_client_timeout_defined() { |
411 | 0 | has_fields_.Set(SleepRequestPBFields::kClientTimeoutDefined); |
412 | 0 | return &client_timeout_defined_; |
413 | 0 | } |
414 | | |
415 | 0 | bool has_client_timeout_defined() const { |
416 | 0 | return has_fields_.Test(SleepRequestPBFields::kClientTimeoutDefined); |
417 | 0 | } |
418 | | |
419 | 0 | void clear_client_timeout_defined() { |
420 | 0 | client_timeout_defined_ = bool(); |
421 | 0 | has_fields_.Reset(SleepRequestPBFields::kClientTimeoutDefined); |
422 | 0 | } |
423 | | |
424 | 0 | size_t cached_size() const { |
425 | 0 | return cached_size_; |
426 | 0 | } |
427 | | |
428 | | private: |
429 | | ::yb::EnumBitSet<SleepRequestPBFields> has_fields_; |
430 | | mutable size_t cached_size_ = 0; |
431 | | uint32_t sleep_micros_ = uint32_t(); |
432 | | bool deferred_ = bool(); |
433 | | bool return_app_error_ = bool(); |
434 | | bool client_timeout_defined_ = bool(); |
435 | | }; |
436 | | |
437 | | class LWSleepResponsePB : public ::yb::rpc::LightweightMessage { |
438 | | public: |
439 | | explicit LWSleepResponsePB(::yb::Arena* arena); |
440 | | LWSleepResponsePB(::yb::Arena* arena, const LWSleepResponsePB& rhs); |
441 | | |
442 | | LWSleepResponsePB(::yb::Arena* arena, const SleepResponsePB& rhs) |
443 | 0 | : LWSleepResponsePB(arena) { |
444 | 0 | CopyFrom(rhs); |
445 | 0 | } |
446 | | |
447 | 0 | void operator=(const LWSleepResponsePB& rhs) { |
448 | 0 | CopyFrom(rhs); |
449 | 0 | } |
450 | | |
451 | 0 | void operator=(const SleepResponsePB& rhs) { |
452 | 0 | CopyFrom(rhs); |
453 | 0 | } |
454 | | |
455 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
456 | | size_t SerializedSize() const override; |
457 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
458 | | void AppendToDebugString(std::string* out) const override; |
459 | | |
460 | | void Clear() override; |
461 | | void CopyFrom(const LWSleepResponsePB& rhs); |
462 | | void CopyFrom(const SleepResponsePB& rhs); |
463 | | |
464 | | void ToGoogleProtobuf(SleepResponsePB* out) const; |
465 | | |
466 | 0 | SleepResponsePB ToGoogleProtobuf() const { |
467 | 0 | SleepResponsePB result; |
468 | 0 | ToGoogleProtobuf(&result); |
469 | 0 | return result; |
470 | 0 | } |
471 | | |
472 | 0 | size_t cached_size() const { |
473 | 0 | return cached_size_; |
474 | 0 | } |
475 | | |
476 | | private: |
477 | | mutable size_t cached_size_ = 0; |
478 | | }; |
479 | | |
480 | | YB_DEFINE_ENUM(SendStringsRequestPBFields, |
481 | | (kRandomSeed) |
482 | | ); |
483 | | |
484 | | class LWSendStringsRequestPB : public ::yb::rpc::LightweightMessage { |
485 | | public: |
486 | | explicit LWSendStringsRequestPB(::yb::Arena* arena); |
487 | | LWSendStringsRequestPB(::yb::Arena* arena, const LWSendStringsRequestPB& rhs); |
488 | | |
489 | | LWSendStringsRequestPB(::yb::Arena* arena, const SendStringsRequestPB& rhs) |
490 | 0 | : LWSendStringsRequestPB(arena) { |
491 | 0 | CopyFrom(rhs); |
492 | 0 | } |
493 | | |
494 | 0 | void operator=(const LWSendStringsRequestPB& rhs) { |
495 | 0 | CopyFrom(rhs); |
496 | 0 | } |
497 | | |
498 | 0 | void operator=(const SendStringsRequestPB& rhs) { |
499 | 0 | CopyFrom(rhs); |
500 | 0 | } |
501 | | |
502 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
503 | | size_t SerializedSize() const override; |
504 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
505 | | void AppendToDebugString(std::string* out) const override; |
506 | | |
507 | | void Clear() override; |
508 | | void CopyFrom(const LWSendStringsRequestPB& rhs); |
509 | | void CopyFrom(const SendStringsRequestPB& rhs); |
510 | | |
511 | | void ToGoogleProtobuf(SendStringsRequestPB* out) const; |
512 | | |
513 | 0 | SendStringsRequestPB ToGoogleProtobuf() const { |
514 | 0 | SendStringsRequestPB result; |
515 | 0 | ToGoogleProtobuf(&result); |
516 | 0 | return result; |
517 | 0 | } |
518 | | |
519 | 0 | uint32_t random_seed() const { |
520 | 0 | return random_seed_; |
521 | 0 | } |
522 | | |
523 | 0 | void set_random_seed(uint32_t value) { |
524 | 0 | has_fields_.Set(SendStringsRequestPBFields::kRandomSeed); |
525 | 0 | random_seed_ = value; |
526 | 0 | } |
527 | | |
528 | 0 | uint32_t* mutable_random_seed() { |
529 | 0 | has_fields_.Set(SendStringsRequestPBFields::kRandomSeed); |
530 | 0 | return &random_seed_; |
531 | 0 | } |
532 | | |
533 | 0 | bool has_random_seed() const { |
534 | 0 | return has_fields_.Test(SendStringsRequestPBFields::kRandomSeed); |
535 | 0 | } |
536 | | |
537 | 0 | void clear_random_seed() { |
538 | 0 | random_seed_ = uint32_t(); |
539 | 0 | has_fields_.Reset(SendStringsRequestPBFields::kRandomSeed); |
540 | 0 | } |
541 | | |
542 | 0 | const ::yb::MCVector<uint64_t>& sizes() const { |
543 | 0 | return sizes_; |
544 | 0 | } |
545 | | |
546 | 0 | ::yb::MCVector<uint64_t>* mutable_sizes() { |
547 | 0 | return &sizes_; |
548 | 0 | } |
549 | | |
550 | 0 | size_t cached_size() const { |
551 | 0 | return cached_size_; |
552 | 0 | } |
553 | | |
554 | | private: |
555 | | ::yb::EnumBitSet<SendStringsRequestPBFields> has_fields_; |
556 | | mutable size_t cached_size_ = 0; |
557 | | uint32_t random_seed_ = uint32_t(); |
558 | | ::yb::MCVector<uint64_t> sizes_; |
559 | | }; |
560 | | |
561 | | class LWSendStringsResponsePB : public ::yb::rpc::LightweightMessage { |
562 | | public: |
563 | | explicit LWSendStringsResponsePB(::yb::Arena* arena); |
564 | | LWSendStringsResponsePB(::yb::Arena* arena, const LWSendStringsResponsePB& rhs); |
565 | | |
566 | | LWSendStringsResponsePB(::yb::Arena* arena, const SendStringsResponsePB& rhs) |
567 | 0 | : LWSendStringsResponsePB(arena) { |
568 | 0 | CopyFrom(rhs); |
569 | 0 | } |
570 | | |
571 | 0 | void operator=(const LWSendStringsResponsePB& rhs) { |
572 | 0 | CopyFrom(rhs); |
573 | 0 | } |
574 | | |
575 | 0 | void operator=(const SendStringsResponsePB& rhs) { |
576 | 0 | CopyFrom(rhs); |
577 | 0 | } |
578 | | |
579 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
580 | | size_t SerializedSize() const override; |
581 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
582 | | void AppendToDebugString(std::string* out) const override; |
583 | | |
584 | | void Clear() override; |
585 | | void CopyFrom(const LWSendStringsResponsePB& rhs); |
586 | | void CopyFrom(const SendStringsResponsePB& rhs); |
587 | | |
588 | | void ToGoogleProtobuf(SendStringsResponsePB* out) const; |
589 | | |
590 | 0 | SendStringsResponsePB ToGoogleProtobuf() const { |
591 | 0 | SendStringsResponsePB result; |
592 | 0 | ToGoogleProtobuf(&result); |
593 | 0 | return result; |
594 | 0 | } |
595 | | |
596 | 0 | const ::yb::MCVector<uint32_t>& sidecars() const { |
597 | 0 | return sidecars_; |
598 | 0 | } |
599 | | |
600 | 0 | ::yb::MCVector<uint32_t>* mutable_sidecars() { |
601 | 0 | return &sidecars_; |
602 | 0 | } |
603 | | |
604 | 0 | size_t cached_size() const { |
605 | 0 | return cached_size_; |
606 | 0 | } |
607 | | |
608 | | private: |
609 | | mutable size_t cached_size_ = 0; |
610 | | ::yb::MCVector<uint32_t> sidecars_; |
611 | | }; |
612 | | |
613 | | YB_DEFINE_ENUM(EchoRequestPBFields, |
614 | | (kData) |
615 | | ); |
616 | | |
617 | | class LWEchoRequestPB : public ::yb::rpc::LightweightMessage { |
618 | | public: |
619 | | explicit LWEchoRequestPB(::yb::Arena* arena); |
620 | | LWEchoRequestPB(::yb::Arena* arena, const LWEchoRequestPB& rhs); |
621 | | |
622 | | LWEchoRequestPB(::yb::Arena* arena, const EchoRequestPB& rhs) |
623 | 0 | : LWEchoRequestPB(arena) { |
624 | 0 | CopyFrom(rhs); |
625 | 0 | } |
626 | | |
627 | 0 | void operator=(const LWEchoRequestPB& rhs) { |
628 | 0 | CopyFrom(rhs); |
629 | 0 | } |
630 | | |
631 | 0 | void operator=(const EchoRequestPB& rhs) { |
632 | 0 | CopyFrom(rhs); |
633 | 0 | } |
634 | | |
635 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
636 | | size_t SerializedSize() const override; |
637 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
638 | | void AppendToDebugString(std::string* out) const override; |
639 | | |
640 | | void Clear() override; |
641 | | void CopyFrom(const LWEchoRequestPB& rhs); |
642 | | void CopyFrom(const EchoRequestPB& rhs); |
643 | | |
644 | | void ToGoogleProtobuf(EchoRequestPB* out) const; |
645 | | |
646 | 0 | EchoRequestPB ToGoogleProtobuf() const { |
647 | 0 | EchoRequestPB result; |
648 | 0 | ToGoogleProtobuf(&result); |
649 | 0 | return result; |
650 | 0 | } |
651 | | |
652 | 0 | ::yb::Slice data() const { |
653 | 0 | return data_; |
654 | 0 | } |
655 | | |
656 | 0 | void dup_data(::yb::Slice value) { |
657 | 0 | has_fields_.Set(EchoRequestPBFields::kData); |
658 | 0 | data_ = arena_.DupSlice(value); |
659 | 0 | } |
660 | | |
661 | 0 | void ref_data(::yb::Slice value) { |
662 | 0 | has_fields_.Set(EchoRequestPBFields::kData); |
663 | 0 | data_ = value; |
664 | 0 | } |
665 | | |
666 | 0 | ::yb::Slice* mutable_data() { |
667 | 0 | has_fields_.Set(EchoRequestPBFields::kData); |
668 | 0 | return &data_; |
669 | 0 | } |
670 | | |
671 | 0 | bool has_data() const { |
672 | 0 | return has_fields_.Test(EchoRequestPBFields::kData); |
673 | 0 | } |
674 | | |
675 | 0 | void clear_data() { |
676 | 0 | data_ = ::yb::Slice(); |
677 | 0 | has_fields_.Reset(EchoRequestPBFields::kData); |
678 | 0 | } |
679 | | |
680 | 0 | ::yb::Arena& arena() const { |
681 | 0 | return arena_;} |
682 | | |
683 | 0 | size_t cached_size() const { |
684 | 0 | return cached_size_; |
685 | 0 | } |
686 | | |
687 | | private: |
688 | | ::yb::Arena& arena_; |
689 | | ::yb::EnumBitSet<EchoRequestPBFields> has_fields_; |
690 | | mutable size_t cached_size_ = 0; |
691 | | ::yb::Slice data_ = ::yb::Slice(); |
692 | | }; |
693 | | |
694 | | YB_DEFINE_ENUM(EchoResponsePBFields, |
695 | | (kData) |
696 | | ); |
697 | | |
698 | | class LWEchoResponsePB : public ::yb::rpc::LightweightMessage { |
699 | | public: |
700 | | explicit LWEchoResponsePB(::yb::Arena* arena); |
701 | | LWEchoResponsePB(::yb::Arena* arena, const LWEchoResponsePB& rhs); |
702 | | |
703 | | LWEchoResponsePB(::yb::Arena* arena, const EchoResponsePB& rhs) |
704 | 0 | : LWEchoResponsePB(arena) { |
705 | 0 | CopyFrom(rhs); |
706 | 0 | } |
707 | | |
708 | 0 | void operator=(const LWEchoResponsePB& rhs) { |
709 | 0 | CopyFrom(rhs); |
710 | 0 | } |
711 | | |
712 | 0 | void operator=(const EchoResponsePB& rhs) { |
713 | 0 | CopyFrom(rhs); |
714 | 0 | } |
715 | | |
716 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
717 | | size_t SerializedSize() const override; |
718 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
719 | | void AppendToDebugString(std::string* out) const override; |
720 | | |
721 | | void Clear() override; |
722 | | void CopyFrom(const LWEchoResponsePB& rhs); |
723 | | void CopyFrom(const EchoResponsePB& rhs); |
724 | | |
725 | | void ToGoogleProtobuf(EchoResponsePB* out) const; |
726 | | |
727 | 0 | EchoResponsePB ToGoogleProtobuf() const { |
728 | 0 | EchoResponsePB result; |
729 | 0 | ToGoogleProtobuf(&result); |
730 | 0 | return result; |
731 | 0 | } |
732 | | |
733 | 0 | ::yb::Slice data() const { |
734 | 0 | return data_; |
735 | 0 | } |
736 | | |
737 | 0 | void dup_data(::yb::Slice value) { |
738 | 0 | has_fields_.Set(EchoResponsePBFields::kData); |
739 | 0 | data_ = arena_.DupSlice(value); |
740 | 0 | } |
741 | | |
742 | 0 | void ref_data(::yb::Slice value) { |
743 | 0 | has_fields_.Set(EchoResponsePBFields::kData); |
744 | 0 | data_ = value; |
745 | 0 | } |
746 | | |
747 | 0 | ::yb::Slice* mutable_data() { |
748 | 0 | has_fields_.Set(EchoResponsePBFields::kData); |
749 | 0 | return &data_; |
750 | 0 | } |
751 | | |
752 | 0 | bool has_data() const { |
753 | 0 | return has_fields_.Test(EchoResponsePBFields::kData); |
754 | 0 | } |
755 | | |
756 | 0 | void clear_data() { |
757 | 0 | data_ = ::yb::Slice(); |
758 | 0 | has_fields_.Reset(EchoResponsePBFields::kData); |
759 | 0 | } |
760 | | |
761 | 0 | ::yb::Arena& arena() const { |
762 | 0 | return arena_;} |
763 | | |
764 | 0 | size_t cached_size() const { |
765 | 0 | return cached_size_; |
766 | 0 | } |
767 | | |
768 | | private: |
769 | | ::yb::Arena& arena_; |
770 | | ::yb::EnumBitSet<EchoResponsePBFields> has_fields_; |
771 | | mutable size_t cached_size_ = 0; |
772 | | ::yb::Slice data_ = ::yb::Slice(); |
773 | | }; |
774 | | |
775 | | class LWWhoAmIRequestPB : public ::yb::rpc::LightweightMessage { |
776 | | public: |
777 | | explicit LWWhoAmIRequestPB(::yb::Arena* arena); |
778 | | LWWhoAmIRequestPB(::yb::Arena* arena, const LWWhoAmIRequestPB& rhs); |
779 | | |
780 | | LWWhoAmIRequestPB(::yb::Arena* arena, const WhoAmIRequestPB& rhs) |
781 | 0 | : LWWhoAmIRequestPB(arena) { |
782 | 0 | CopyFrom(rhs); |
783 | 0 | } |
784 | | |
785 | 0 | void operator=(const LWWhoAmIRequestPB& rhs) { |
786 | 0 | CopyFrom(rhs); |
787 | 0 | } |
788 | | |
789 | 0 | void operator=(const WhoAmIRequestPB& rhs) { |
790 | 0 | CopyFrom(rhs); |
791 | 0 | } |
792 | | |
793 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
794 | | size_t SerializedSize() const override; |
795 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
796 | | void AppendToDebugString(std::string* out) const override; |
797 | | |
798 | | void Clear() override; |
799 | | void CopyFrom(const LWWhoAmIRequestPB& rhs); |
800 | | void CopyFrom(const WhoAmIRequestPB& rhs); |
801 | | |
802 | | void ToGoogleProtobuf(WhoAmIRequestPB* out) const; |
803 | | |
804 | 0 | WhoAmIRequestPB ToGoogleProtobuf() const { |
805 | 0 | WhoAmIRequestPB result; |
806 | 0 | ToGoogleProtobuf(&result); |
807 | 0 | return result; |
808 | 0 | } |
809 | | |
810 | 0 | size_t cached_size() const { |
811 | 0 | return cached_size_; |
812 | 0 | } |
813 | | |
814 | | private: |
815 | | mutable size_t cached_size_ = 0; |
816 | | }; |
817 | | |
818 | | YB_DEFINE_ENUM(WhoAmIResponsePBFields, |
819 | | (kAddress) |
820 | | ); |
821 | | |
822 | | class LWWhoAmIResponsePB : public ::yb::rpc::LightweightMessage { |
823 | | public: |
824 | | explicit LWWhoAmIResponsePB(::yb::Arena* arena); |
825 | | LWWhoAmIResponsePB(::yb::Arena* arena, const LWWhoAmIResponsePB& rhs); |
826 | | |
827 | | LWWhoAmIResponsePB(::yb::Arena* arena, const WhoAmIResponsePB& rhs) |
828 | 0 | : LWWhoAmIResponsePB(arena) { |
829 | 0 | CopyFrom(rhs); |
830 | 0 | } |
831 | | |
832 | 0 | void operator=(const LWWhoAmIResponsePB& rhs) { |
833 | 0 | CopyFrom(rhs); |
834 | 0 | } |
835 | | |
836 | 0 | void operator=(const WhoAmIResponsePB& rhs) { |
837 | 0 | CopyFrom(rhs); |
838 | 0 | } |
839 | | |
840 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
841 | | size_t SerializedSize() const override; |
842 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
843 | | void AppendToDebugString(std::string* out) const override; |
844 | | |
845 | | void Clear() override; |
846 | | void CopyFrom(const LWWhoAmIResponsePB& rhs); |
847 | | void CopyFrom(const WhoAmIResponsePB& rhs); |
848 | | |
849 | | void ToGoogleProtobuf(WhoAmIResponsePB* out) const; |
850 | | |
851 | 0 | WhoAmIResponsePB ToGoogleProtobuf() const { |
852 | 0 | WhoAmIResponsePB result; |
853 | 0 | ToGoogleProtobuf(&result); |
854 | 0 | return result; |
855 | 0 | } |
856 | | |
857 | 0 | ::yb::Slice address() const { |
858 | 0 | return address_; |
859 | 0 | } |
860 | | |
861 | 0 | void dup_address(::yb::Slice value) { |
862 | 0 | has_fields_.Set(WhoAmIResponsePBFields::kAddress); |
863 | 0 | address_ = arena_.DupSlice(value); |
864 | 0 | } |
865 | | |
866 | 0 | void ref_address(::yb::Slice value) { |
867 | 0 | has_fields_.Set(WhoAmIResponsePBFields::kAddress); |
868 | 0 | address_ = value; |
869 | 0 | } |
870 | | |
871 | 0 | ::yb::Slice* mutable_address() { |
872 | 0 | has_fields_.Set(WhoAmIResponsePBFields::kAddress); |
873 | 0 | return &address_; |
874 | 0 | } |
875 | | |
876 | 0 | bool has_address() const { |
877 | 0 | return has_fields_.Test(WhoAmIResponsePBFields::kAddress); |
878 | 0 | } |
879 | | |
880 | 0 | void clear_address() { |
881 | 0 | address_ = ::yb::Slice(); |
882 | 0 | has_fields_.Reset(WhoAmIResponsePBFields::kAddress); |
883 | 0 | } |
884 | | |
885 | 0 | ::yb::Arena& arena() const { |
886 | 0 | return arena_;} |
887 | | |
888 | 0 | size_t cached_size() const { |
889 | 0 | return cached_size_; |
890 | 0 | } |
891 | | |
892 | | private: |
893 | | ::yb::Arena& arena_; |
894 | | ::yb::EnumBitSet<WhoAmIResponsePBFields> has_fields_; |
895 | | mutable size_t cached_size_ = 0; |
896 | | ::yb::Slice address_ = ::yb::Slice(); |
897 | | }; |
898 | | |
899 | | YB_DEFINE_ENUM(CalculatorErrorFields, |
900 | | (kExtraErrorData) |
901 | | ); |
902 | | |
903 | | class LWCalculatorError : public ::yb::rpc::LightweightMessage { |
904 | | public: |
905 | | explicit LWCalculatorError(::yb::Arena* arena); |
906 | | LWCalculatorError(::yb::Arena* arena, const LWCalculatorError& rhs); |
907 | | |
908 | | LWCalculatorError(::yb::Arena* arena, const CalculatorError& rhs) |
909 | 0 | : LWCalculatorError(arena) { |
910 | 0 | CopyFrom(rhs); |
911 | 0 | } |
912 | | |
913 | 0 | void operator=(const LWCalculatorError& rhs) { |
914 | 0 | CopyFrom(rhs); |
915 | 0 | } |
916 | | |
917 | 0 | void operator=(const CalculatorError& rhs) { |
918 | 0 | CopyFrom(rhs); |
919 | 0 | } |
920 | | |
921 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
922 | | size_t SerializedSize() const override; |
923 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
924 | | void AppendToDebugString(std::string* out) const override; |
925 | | |
926 | | void Clear() override; |
927 | | void CopyFrom(const LWCalculatorError& rhs); |
928 | | void CopyFrom(const CalculatorError& rhs); |
929 | | |
930 | | void ToGoogleProtobuf(CalculatorError* out) const; |
931 | | |
932 | 0 | CalculatorError ToGoogleProtobuf() const { |
933 | 0 | CalculatorError result; |
934 | 0 | ToGoogleProtobuf(&result); |
935 | 0 | return result; |
936 | 0 | } |
937 | | |
938 | 0 | ::yb::Slice extra_error_data() const { |
939 | 0 | return extra_error_data_; |
940 | 0 | } |
941 | | |
942 | 0 | void dup_extra_error_data(::yb::Slice value) { |
943 | 0 | has_fields_.Set(CalculatorErrorFields::kExtraErrorData); |
944 | 0 | extra_error_data_ = arena_.DupSlice(value); |
945 | 0 | } |
946 | | |
947 | 0 | void ref_extra_error_data(::yb::Slice value) { |
948 | 0 | has_fields_.Set(CalculatorErrorFields::kExtraErrorData); |
949 | 0 | extra_error_data_ = value; |
950 | 0 | } |
951 | | |
952 | 0 | ::yb::Slice* mutable_extra_error_data() { |
953 | 0 | has_fields_.Set(CalculatorErrorFields::kExtraErrorData); |
954 | 0 | return &extra_error_data_; |
955 | 0 | } |
956 | | |
957 | 0 | bool has_extra_error_data() const { |
958 | 0 | return has_fields_.Test(CalculatorErrorFields::kExtraErrorData); |
959 | 0 | } |
960 | | |
961 | 0 | void clear_extra_error_data() { |
962 | 0 | extra_error_data_ = ::yb::Slice(); |
963 | 0 | has_fields_.Reset(CalculatorErrorFields::kExtraErrorData); |
964 | 0 | } |
965 | | |
966 | 0 | ::yb::Arena& arena() const { |
967 | 0 | return arena_;} |
968 | | |
969 | 0 | size_t cached_size() const { |
970 | 0 | return cached_size_; |
971 | 0 | } |
972 | | |
973 | | private: |
974 | | ::yb::Arena& arena_; |
975 | | ::yb::EnumBitSet<CalculatorErrorFields> has_fields_; |
976 | | mutable size_t cached_size_ = 0; |
977 | | ::yb::Slice extra_error_data_ = ::yb::Slice(); |
978 | | }; |
979 | | |
980 | | class LWPanicRequestPB : public ::yb::rpc::LightweightMessage { |
981 | | public: |
982 | | explicit LWPanicRequestPB(::yb::Arena* arena); |
983 | | LWPanicRequestPB(::yb::Arena* arena, const LWPanicRequestPB& rhs); |
984 | | |
985 | | LWPanicRequestPB(::yb::Arena* arena, const PanicRequestPB& rhs) |
986 | 0 | : LWPanicRequestPB(arena) { |
987 | 0 | CopyFrom(rhs); |
988 | 0 | } |
989 | | |
990 | 0 | void operator=(const LWPanicRequestPB& rhs) { |
991 | 0 | CopyFrom(rhs); |
992 | 0 | } |
993 | | |
994 | 0 | void operator=(const PanicRequestPB& rhs) { |
995 | 0 | CopyFrom(rhs); |
996 | 0 | } |
997 | | |
998 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
999 | | size_t SerializedSize() const override; |
1000 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1001 | | void AppendToDebugString(std::string* out) const override; |
1002 | | |
1003 | | void Clear() override; |
1004 | | void CopyFrom(const LWPanicRequestPB& rhs); |
1005 | | void CopyFrom(const PanicRequestPB& rhs); |
1006 | | |
1007 | | void ToGoogleProtobuf(PanicRequestPB* out) const; |
1008 | | |
1009 | 0 | PanicRequestPB ToGoogleProtobuf() const { |
1010 | 0 | PanicRequestPB result; |
1011 | 0 | ToGoogleProtobuf(&result); |
1012 | 0 | return result; |
1013 | 0 | } |
1014 | | |
1015 | 0 | size_t cached_size() const { |
1016 | 0 | return cached_size_; |
1017 | 0 | } |
1018 | | |
1019 | | private: |
1020 | | mutable size_t cached_size_ = 0; |
1021 | | }; |
1022 | | |
1023 | | class LWPanicResponsePB : public ::yb::rpc::LightweightMessage { |
1024 | | public: |
1025 | | explicit LWPanicResponsePB(::yb::Arena* arena); |
1026 | | LWPanicResponsePB(::yb::Arena* arena, const LWPanicResponsePB& rhs); |
1027 | | |
1028 | | LWPanicResponsePB(::yb::Arena* arena, const PanicResponsePB& rhs) |
1029 | 0 | : LWPanicResponsePB(arena) { |
1030 | 0 | CopyFrom(rhs); |
1031 | 0 | } |
1032 | | |
1033 | 0 | void operator=(const LWPanicResponsePB& rhs) { |
1034 | 0 | CopyFrom(rhs); |
1035 | 0 | } |
1036 | | |
1037 | 0 | void operator=(const PanicResponsePB& rhs) { |
1038 | 0 | CopyFrom(rhs); |
1039 | 0 | } |
1040 | | |
1041 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1042 | | size_t SerializedSize() const override; |
1043 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1044 | | void AppendToDebugString(std::string* out) const override; |
1045 | | |
1046 | | void Clear() override; |
1047 | | void CopyFrom(const LWPanicResponsePB& rhs); |
1048 | | void CopyFrom(const PanicResponsePB& rhs); |
1049 | | |
1050 | | void ToGoogleProtobuf(PanicResponsePB* out) const; |
1051 | | |
1052 | 0 | PanicResponsePB ToGoogleProtobuf() const { |
1053 | 0 | PanicResponsePB result; |
1054 | 0 | ToGoogleProtobuf(&result); |
1055 | 0 | return result; |
1056 | 0 | } |
1057 | | |
1058 | 0 | size_t cached_size() const { |
1059 | 0 | return cached_size_; |
1060 | 0 | } |
1061 | | |
1062 | | private: |
1063 | | mutable size_t cached_size_ = 0; |
1064 | | }; |
1065 | | |
1066 | | YB_DEFINE_ENUM(PingRequestPBFields, |
1067 | | (kId) |
1068 | | ); |
1069 | | |
1070 | | class LWPingRequestPB : public ::yb::rpc::LightweightMessage { |
1071 | | public: |
1072 | | explicit LWPingRequestPB(::yb::Arena* arena); |
1073 | | LWPingRequestPB(::yb::Arena* arena, const LWPingRequestPB& rhs); |
1074 | | |
1075 | | LWPingRequestPB(::yb::Arena* arena, const PingRequestPB& rhs) |
1076 | 0 | : LWPingRequestPB(arena) { |
1077 | 0 | CopyFrom(rhs); |
1078 | 0 | } |
1079 | | |
1080 | 0 | void operator=(const LWPingRequestPB& rhs) { |
1081 | 0 | CopyFrom(rhs); |
1082 | 0 | } |
1083 | | |
1084 | 0 | void operator=(const PingRequestPB& rhs) { |
1085 | 0 | CopyFrom(rhs); |
1086 | 0 | } |
1087 | | |
1088 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1089 | | size_t SerializedSize() const override; |
1090 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1091 | | void AppendToDebugString(std::string* out) const override; |
1092 | | |
1093 | | void Clear() override; |
1094 | | void CopyFrom(const LWPingRequestPB& rhs); |
1095 | | void CopyFrom(const PingRequestPB& rhs); |
1096 | | |
1097 | | void ToGoogleProtobuf(PingRequestPB* out) const; |
1098 | | |
1099 | 0 | PingRequestPB ToGoogleProtobuf() const { |
1100 | 0 | PingRequestPB result; |
1101 | 0 | ToGoogleProtobuf(&result); |
1102 | 0 | return result; |
1103 | 0 | } |
1104 | | |
1105 | 0 | uint64_t id() const { |
1106 | 0 | return id_; |
1107 | 0 | } |
1108 | | |
1109 | 0 | void set_id(uint64_t value) { |
1110 | 0 | has_fields_.Set(PingRequestPBFields::kId); |
1111 | 0 | id_ = value; |
1112 | 0 | } |
1113 | | |
1114 | 0 | uint64_t* mutable_id() { |
1115 | 0 | has_fields_.Set(PingRequestPBFields::kId); |
1116 | 0 | return &id_; |
1117 | 0 | } |
1118 | | |
1119 | 0 | bool has_id() const { |
1120 | 0 | return has_fields_.Test(PingRequestPBFields::kId); |
1121 | 0 | } |
1122 | | |
1123 | 0 | void clear_id() { |
1124 | 0 | id_ = uint64_t(); |
1125 | 0 | has_fields_.Reset(PingRequestPBFields::kId); |
1126 | 0 | } |
1127 | | |
1128 | 0 | size_t cached_size() const { |
1129 | 0 | return cached_size_; |
1130 | 0 | } |
1131 | | |
1132 | | private: |
1133 | | ::yb::EnumBitSet<PingRequestPBFields> has_fields_; |
1134 | | mutable size_t cached_size_ = 0; |
1135 | | uint64_t id_ = uint64_t(); |
1136 | | }; |
1137 | | |
1138 | | YB_DEFINE_ENUM(PingResponsePBFields, |
1139 | | (kTime) |
1140 | | ); |
1141 | | |
1142 | | class LWPingResponsePB : public ::yb::rpc::LightweightMessage { |
1143 | | public: |
1144 | | explicit LWPingResponsePB(::yb::Arena* arena); |
1145 | | LWPingResponsePB(::yb::Arena* arena, const LWPingResponsePB& rhs); |
1146 | | |
1147 | | LWPingResponsePB(::yb::Arena* arena, const PingResponsePB& rhs) |
1148 | 0 | : LWPingResponsePB(arena) { |
1149 | 0 | CopyFrom(rhs); |
1150 | 0 | } |
1151 | | |
1152 | 0 | void operator=(const LWPingResponsePB& rhs) { |
1153 | 0 | CopyFrom(rhs); |
1154 | 0 | } |
1155 | | |
1156 | 0 | void operator=(const PingResponsePB& rhs) { |
1157 | 0 | CopyFrom(rhs); |
1158 | 0 | } |
1159 | | |
1160 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1161 | | size_t SerializedSize() const override; |
1162 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1163 | | void AppendToDebugString(std::string* out) const override; |
1164 | | |
1165 | | void Clear() override; |
1166 | | void CopyFrom(const LWPingResponsePB& rhs); |
1167 | | void CopyFrom(const PingResponsePB& rhs); |
1168 | | |
1169 | | void ToGoogleProtobuf(PingResponsePB* out) const; |
1170 | | |
1171 | 0 | PingResponsePB ToGoogleProtobuf() const { |
1172 | 0 | PingResponsePB result; |
1173 | 0 | ToGoogleProtobuf(&result); |
1174 | 0 | return result; |
1175 | 0 | } |
1176 | | |
1177 | 0 | uint64_t time() const { |
1178 | 0 | return time_; |
1179 | 0 | } |
1180 | | |
1181 | 0 | void set_time(uint64_t value) { |
1182 | 0 | has_fields_.Set(PingResponsePBFields::kTime); |
1183 | 0 | time_ = value; |
1184 | 0 | } |
1185 | | |
1186 | 0 | uint64_t* mutable_time() { |
1187 | 0 | has_fields_.Set(PingResponsePBFields::kTime); |
1188 | 0 | return &time_; |
1189 | 0 | } |
1190 | | |
1191 | 0 | bool has_time() const { |
1192 | 0 | return has_fields_.Test(PingResponsePBFields::kTime); |
1193 | 0 | } |
1194 | | |
1195 | 0 | void clear_time() { |
1196 | 0 | time_ = uint64_t(); |
1197 | 0 | has_fields_.Reset(PingResponsePBFields::kTime); |
1198 | 0 | } |
1199 | | |
1200 | 0 | size_t cached_size() const { |
1201 | 0 | return cached_size_; |
1202 | 0 | } |
1203 | | |
1204 | | private: |
1205 | | ::yb::EnumBitSet<PingResponsePBFields> has_fields_; |
1206 | | mutable size_t cached_size_ = 0; |
1207 | | uint64_t time_ = uint64_t(); |
1208 | | }; |
1209 | | |
1210 | | class LWDisconnectRequestPB : public ::yb::rpc::LightweightMessage { |
1211 | | public: |
1212 | | explicit LWDisconnectRequestPB(::yb::Arena* arena); |
1213 | | LWDisconnectRequestPB(::yb::Arena* arena, const LWDisconnectRequestPB& rhs); |
1214 | | |
1215 | | LWDisconnectRequestPB(::yb::Arena* arena, const DisconnectRequestPB& rhs) |
1216 | 0 | : LWDisconnectRequestPB(arena) { |
1217 | 0 | CopyFrom(rhs); |
1218 | 0 | } |
1219 | | |
1220 | 0 | void operator=(const LWDisconnectRequestPB& rhs) { |
1221 | 0 | CopyFrom(rhs); |
1222 | 0 | } |
1223 | | |
1224 | 0 | void operator=(const DisconnectRequestPB& rhs) { |
1225 | 0 | CopyFrom(rhs); |
1226 | 0 | } |
1227 | | |
1228 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1229 | | size_t SerializedSize() const override; |
1230 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1231 | | void AppendToDebugString(std::string* out) const override; |
1232 | | |
1233 | | void Clear() override; |
1234 | | void CopyFrom(const LWDisconnectRequestPB& rhs); |
1235 | | void CopyFrom(const DisconnectRequestPB& rhs); |
1236 | | |
1237 | | void ToGoogleProtobuf(DisconnectRequestPB* out) const; |
1238 | | |
1239 | 0 | DisconnectRequestPB ToGoogleProtobuf() const { |
1240 | 0 | DisconnectRequestPB result; |
1241 | 0 | ToGoogleProtobuf(&result); |
1242 | 0 | return result; |
1243 | 0 | } |
1244 | | |
1245 | 0 | size_t cached_size() const { |
1246 | 0 | return cached_size_; |
1247 | 0 | } |
1248 | | |
1249 | | private: |
1250 | | mutable size_t cached_size_ = 0; |
1251 | | }; |
1252 | | |
1253 | | class LWDisconnectResponsePB : public ::yb::rpc::LightweightMessage { |
1254 | | public: |
1255 | | explicit LWDisconnectResponsePB(::yb::Arena* arena); |
1256 | | LWDisconnectResponsePB(::yb::Arena* arena, const LWDisconnectResponsePB& rhs); |
1257 | | |
1258 | | LWDisconnectResponsePB(::yb::Arena* arena, const DisconnectResponsePB& rhs) |
1259 | 0 | : LWDisconnectResponsePB(arena) { |
1260 | 0 | CopyFrom(rhs); |
1261 | 0 | } |
1262 | | |
1263 | 0 | void operator=(const LWDisconnectResponsePB& rhs) { |
1264 | 0 | CopyFrom(rhs); |
1265 | 0 | } |
1266 | | |
1267 | 0 | void operator=(const DisconnectResponsePB& rhs) { |
1268 | 0 | CopyFrom(rhs); |
1269 | 0 | } |
1270 | | |
1271 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1272 | | size_t SerializedSize() const override; |
1273 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1274 | | void AppendToDebugString(std::string* out) const override; |
1275 | | |
1276 | | void Clear() override; |
1277 | | void CopyFrom(const LWDisconnectResponsePB& rhs); |
1278 | | void CopyFrom(const DisconnectResponsePB& rhs); |
1279 | | |
1280 | | void ToGoogleProtobuf(DisconnectResponsePB* out) const; |
1281 | | |
1282 | 0 | DisconnectResponsePB ToGoogleProtobuf() const { |
1283 | 0 | DisconnectResponsePB result; |
1284 | 0 | ToGoogleProtobuf(&result); |
1285 | 0 | return result; |
1286 | 0 | } |
1287 | | |
1288 | 0 | size_t cached_size() const { |
1289 | 0 | return cached_size_; |
1290 | 0 | } |
1291 | | |
1292 | | private: |
1293 | | mutable size_t cached_size_ = 0; |
1294 | | }; |
1295 | | |
1296 | | YB_DEFINE_ENUM(ForwardRequestPBFields, |
1297 | | (kHost) |
1298 | | (kPort) |
1299 | | ); |
1300 | | |
1301 | | class LWForwardRequestPB : public ::yb::rpc::LightweightMessage { |
1302 | | public: |
1303 | | explicit LWForwardRequestPB(::yb::Arena* arena); |
1304 | | LWForwardRequestPB(::yb::Arena* arena, const LWForwardRequestPB& rhs); |
1305 | | |
1306 | | LWForwardRequestPB(::yb::Arena* arena, const ForwardRequestPB& rhs) |
1307 | 0 | : LWForwardRequestPB(arena) { |
1308 | 0 | CopyFrom(rhs); |
1309 | 0 | } |
1310 | | |
1311 | 0 | void operator=(const LWForwardRequestPB& rhs) { |
1312 | 0 | CopyFrom(rhs); |
1313 | 0 | } |
1314 | | |
1315 | 0 | void operator=(const ForwardRequestPB& rhs) { |
1316 | 0 | CopyFrom(rhs); |
1317 | 0 | } |
1318 | | |
1319 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1320 | | size_t SerializedSize() const override; |
1321 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1322 | | void AppendToDebugString(std::string* out) const override; |
1323 | | |
1324 | | void Clear() override; |
1325 | | void CopyFrom(const LWForwardRequestPB& rhs); |
1326 | | void CopyFrom(const ForwardRequestPB& rhs); |
1327 | | |
1328 | | void ToGoogleProtobuf(ForwardRequestPB* out) const; |
1329 | | |
1330 | 0 | ForwardRequestPB ToGoogleProtobuf() const { |
1331 | 0 | ForwardRequestPB result; |
1332 | 0 | ToGoogleProtobuf(&result); |
1333 | 0 | return result; |
1334 | 0 | } |
1335 | | |
1336 | 0 | ::yb::Slice host() const { |
1337 | 0 | return host_; |
1338 | 0 | } |
1339 | | |
1340 | 0 | void dup_host(::yb::Slice value) { |
1341 | 0 | has_fields_.Set(ForwardRequestPBFields::kHost); |
1342 | 0 | host_ = arena_.DupSlice(value); |
1343 | 0 | } |
1344 | | |
1345 | 0 | void ref_host(::yb::Slice value) { |
1346 | 0 | has_fields_.Set(ForwardRequestPBFields::kHost); |
1347 | 0 | host_ = value; |
1348 | 0 | } |
1349 | | |
1350 | 0 | ::yb::Slice* mutable_host() { |
1351 | 0 | has_fields_.Set(ForwardRequestPBFields::kHost); |
1352 | 0 | return &host_; |
1353 | 0 | } |
1354 | | |
1355 | 0 | bool has_host() const { |
1356 | 0 | return has_fields_.Test(ForwardRequestPBFields::kHost); |
1357 | 0 | } |
1358 | | |
1359 | 0 | void clear_host() { |
1360 | 0 | host_ = ::yb::Slice(); |
1361 | 0 | has_fields_.Reset(ForwardRequestPBFields::kHost); |
1362 | 0 | } |
1363 | | |
1364 | 0 | uint32_t port() const { |
1365 | 0 | return port_; |
1366 | 0 | } |
1367 | | |
1368 | 0 | void set_port(uint32_t value) { |
1369 | 0 | has_fields_.Set(ForwardRequestPBFields::kPort); |
1370 | 0 | port_ = value; |
1371 | 0 | } |
1372 | | |
1373 | 0 | uint32_t* mutable_port() { |
1374 | 0 | has_fields_.Set(ForwardRequestPBFields::kPort); |
1375 | 0 | return &port_; |
1376 | 0 | } |
1377 | | |
1378 | 0 | bool has_port() const { |
1379 | 0 | return has_fields_.Test(ForwardRequestPBFields::kPort); |
1380 | 0 | } |
1381 | | |
1382 | 0 | void clear_port() { |
1383 | 0 | port_ = uint32_t(); |
1384 | 0 | has_fields_.Reset(ForwardRequestPBFields::kPort); |
1385 | 0 | } |
1386 | | |
1387 | 0 | ::yb::Arena& arena() const { |
1388 | 0 | return arena_;} |
1389 | | |
1390 | 0 | size_t cached_size() const { |
1391 | 0 | return cached_size_; |
1392 | 0 | } |
1393 | | |
1394 | | private: |
1395 | | ::yb::Arena& arena_; |
1396 | | ::yb::EnumBitSet<ForwardRequestPBFields> has_fields_; |
1397 | | mutable size_t cached_size_ = 0; |
1398 | | ::yb::Slice host_ = ::yb::Slice(); |
1399 | | uint32_t port_ = uint32_t(); |
1400 | | }; |
1401 | | |
1402 | | YB_DEFINE_ENUM(ForwardResponsePBFields, |
1403 | | (kName) |
1404 | | ); |
1405 | | |
1406 | | class LWForwardResponsePB : public ::yb::rpc::LightweightMessage { |
1407 | | public: |
1408 | | explicit LWForwardResponsePB(::yb::Arena* arena); |
1409 | | LWForwardResponsePB(::yb::Arena* arena, const LWForwardResponsePB& rhs); |
1410 | | |
1411 | | LWForwardResponsePB(::yb::Arena* arena, const ForwardResponsePB& rhs) |
1412 | 0 | : LWForwardResponsePB(arena) { |
1413 | 0 | CopyFrom(rhs); |
1414 | 0 | } |
1415 | | |
1416 | 0 | void operator=(const LWForwardResponsePB& rhs) { |
1417 | 0 | CopyFrom(rhs); |
1418 | 0 | } |
1419 | | |
1420 | 0 | void operator=(const ForwardResponsePB& rhs) { |
1421 | 0 | CopyFrom(rhs); |
1422 | 0 | } |
1423 | | |
1424 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1425 | | size_t SerializedSize() const override; |
1426 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1427 | | void AppendToDebugString(std::string* out) const override; |
1428 | | |
1429 | | void Clear() override; |
1430 | | void CopyFrom(const LWForwardResponsePB& rhs); |
1431 | | void CopyFrom(const ForwardResponsePB& rhs); |
1432 | | |
1433 | | void ToGoogleProtobuf(ForwardResponsePB* out) const; |
1434 | | |
1435 | 0 | ForwardResponsePB ToGoogleProtobuf() const { |
1436 | 0 | ForwardResponsePB result; |
1437 | 0 | ToGoogleProtobuf(&result); |
1438 | 0 | return result; |
1439 | 0 | } |
1440 | | |
1441 | 0 | ::yb::Slice name() const { |
1442 | 0 | return name_; |
1443 | 0 | } |
1444 | | |
1445 | 0 | void dup_name(::yb::Slice value) { |
1446 | 0 | has_fields_.Set(ForwardResponsePBFields::kName); |
1447 | 0 | name_ = arena_.DupSlice(value); |
1448 | 0 | } |
1449 | | |
1450 | 0 | void ref_name(::yb::Slice value) { |
1451 | 0 | has_fields_.Set(ForwardResponsePBFields::kName); |
1452 | 0 | name_ = value; |
1453 | 0 | } |
1454 | | |
1455 | 0 | ::yb::Slice* mutable_name() { |
1456 | 0 | has_fields_.Set(ForwardResponsePBFields::kName); |
1457 | 0 | return &name_; |
1458 | 0 | } |
1459 | | |
1460 | 0 | bool has_name() const { |
1461 | 0 | return has_fields_.Test(ForwardResponsePBFields::kName); |
1462 | 0 | } |
1463 | | |
1464 | 0 | void clear_name() { |
1465 | 0 | name_ = ::yb::Slice(); |
1466 | 0 | has_fields_.Reset(ForwardResponsePBFields::kName); |
1467 | 0 | } |
1468 | | |
1469 | 0 | ::yb::Arena& arena() const { |
1470 | 0 | return arena_;} |
1471 | | |
1472 | 0 | size_t cached_size() const { |
1473 | 0 | return cached_size_; |
1474 | 0 | } |
1475 | | |
1476 | | private: |
1477 | | ::yb::Arena& arena_; |
1478 | | ::yb::EnumBitSet<ForwardResponsePBFields> has_fields_; |
1479 | | mutable size_t cached_size_ = 0; |
1480 | | ::yb::Slice name_ = ::yb::Slice(); |
1481 | | }; |
1482 | | |
1483 | | YB_DEFINE_ENUM(ConcatRequestPBFields, |
1484 | | (kLhs) |
1485 | | (kRhs) |
1486 | | ); |
1487 | | |
1488 | | class LWConcatRequestPB : public ::yb::rpc::LightweightMessage { |
1489 | | public: |
1490 | | explicit LWConcatRequestPB(::yb::Arena* arena); |
1491 | | LWConcatRequestPB(::yb::Arena* arena, const LWConcatRequestPB& rhs); |
1492 | | |
1493 | | LWConcatRequestPB(::yb::Arena* arena, const ConcatRequestPB& rhs) |
1494 | 0 | : LWConcatRequestPB(arena) { |
1495 | 0 | CopyFrom(rhs); |
1496 | 0 | } |
1497 | | |
1498 | 0 | void operator=(const LWConcatRequestPB& rhs) { |
1499 | 0 | CopyFrom(rhs); |
1500 | 0 | } |
1501 | | |
1502 | 0 | void operator=(const ConcatRequestPB& rhs) { |
1503 | 0 | CopyFrom(rhs); |
1504 | 0 | } |
1505 | | |
1506 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1507 | | size_t SerializedSize() const override; |
1508 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1509 | | void AppendToDebugString(std::string* out) const override; |
1510 | | |
1511 | | void Clear() override; |
1512 | | void CopyFrom(const LWConcatRequestPB& rhs); |
1513 | | void CopyFrom(const ConcatRequestPB& rhs); |
1514 | | |
1515 | | void ToGoogleProtobuf(ConcatRequestPB* out) const; |
1516 | | |
1517 | 0 | ConcatRequestPB ToGoogleProtobuf() const { |
1518 | 0 | ConcatRequestPB result; |
1519 | 0 | ToGoogleProtobuf(&result); |
1520 | 0 | return result; |
1521 | 0 | } |
1522 | | |
1523 | 0 | ::yb::Slice lhs() const { |
1524 | 0 | return lhs_; |
1525 | 0 | } |
1526 | | |
1527 | 0 | void dup_lhs(::yb::Slice value) { |
1528 | 0 | has_fields_.Set(ConcatRequestPBFields::kLhs); |
1529 | 0 | lhs_ = arena_.DupSlice(value); |
1530 | 0 | } |
1531 | | |
1532 | 0 | void ref_lhs(::yb::Slice value) { |
1533 | 0 | has_fields_.Set(ConcatRequestPBFields::kLhs); |
1534 | 0 | lhs_ = value; |
1535 | 0 | } |
1536 | | |
1537 | 0 | ::yb::Slice* mutable_lhs() { |
1538 | 0 | has_fields_.Set(ConcatRequestPBFields::kLhs); |
1539 | 0 | return &lhs_; |
1540 | 0 | } |
1541 | | |
1542 | 0 | bool has_lhs() const { |
1543 | 0 | return has_fields_.Test(ConcatRequestPBFields::kLhs); |
1544 | 0 | } |
1545 | | |
1546 | 0 | void clear_lhs() { |
1547 | 0 | lhs_ = ::yb::Slice(); |
1548 | 0 | has_fields_.Reset(ConcatRequestPBFields::kLhs); |
1549 | 0 | } |
1550 | | |
1551 | 0 | ::yb::Slice rhs() const { |
1552 | 0 | return rhs_; |
1553 | 0 | } |
1554 | | |
1555 | 0 | void dup_rhs(::yb::Slice value) { |
1556 | 0 | has_fields_.Set(ConcatRequestPBFields::kRhs); |
1557 | 0 | rhs_ = arena_.DupSlice(value); |
1558 | 0 | } |
1559 | | |
1560 | 0 | void ref_rhs(::yb::Slice value) { |
1561 | 0 | has_fields_.Set(ConcatRequestPBFields::kRhs); |
1562 | 0 | rhs_ = value; |
1563 | 0 | } |
1564 | | |
1565 | 0 | ::yb::Slice* mutable_rhs() { |
1566 | 0 | has_fields_.Set(ConcatRequestPBFields::kRhs); |
1567 | 0 | return &rhs_; |
1568 | 0 | } |
1569 | | |
1570 | 0 | bool has_rhs() const { |
1571 | 0 | return has_fields_.Test(ConcatRequestPBFields::kRhs); |
1572 | 0 | } |
1573 | | |
1574 | 0 | void clear_rhs() { |
1575 | 0 | rhs_ = ::yb::Slice(); |
1576 | 0 | has_fields_.Reset(ConcatRequestPBFields::kRhs); |
1577 | 0 | } |
1578 | | |
1579 | 0 | ::yb::Arena& arena() const { |
1580 | 0 | return arena_;} |
1581 | | |
1582 | 0 | size_t cached_size() const { |
1583 | 0 | return cached_size_; |
1584 | 0 | } |
1585 | | |
1586 | | private: |
1587 | | ::yb::Arena& arena_; |
1588 | | ::yb::EnumBitSet<ConcatRequestPBFields> has_fields_; |
1589 | | mutable size_t cached_size_ = 0; |
1590 | | ::yb::Slice lhs_ = ::yb::Slice(); |
1591 | | ::yb::Slice rhs_ = ::yb::Slice(); |
1592 | | }; |
1593 | | |
1594 | | YB_DEFINE_ENUM(ConcatResponsePBFields, |
1595 | | (kResult) |
1596 | | ); |
1597 | | |
1598 | | class LWConcatResponsePB : public ::yb::rpc::LightweightMessage { |
1599 | | public: |
1600 | | explicit LWConcatResponsePB(::yb::Arena* arena); |
1601 | | LWConcatResponsePB(::yb::Arena* arena, const LWConcatResponsePB& rhs); |
1602 | | |
1603 | | LWConcatResponsePB(::yb::Arena* arena, const ConcatResponsePB& rhs) |
1604 | 0 | : LWConcatResponsePB(arena) { |
1605 | 0 | CopyFrom(rhs); |
1606 | 0 | } |
1607 | | |
1608 | 0 | void operator=(const LWConcatResponsePB& rhs) { |
1609 | 0 | CopyFrom(rhs); |
1610 | 0 | } |
1611 | | |
1612 | 0 | void operator=(const ConcatResponsePB& rhs) { |
1613 | 0 | CopyFrom(rhs); |
1614 | 0 | } |
1615 | | |
1616 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1617 | | size_t SerializedSize() const override; |
1618 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1619 | | void AppendToDebugString(std::string* out) const override; |
1620 | | |
1621 | | void Clear() override; |
1622 | | void CopyFrom(const LWConcatResponsePB& rhs); |
1623 | | void CopyFrom(const ConcatResponsePB& rhs); |
1624 | | |
1625 | | void ToGoogleProtobuf(ConcatResponsePB* out) const; |
1626 | | |
1627 | 0 | ConcatResponsePB ToGoogleProtobuf() const { |
1628 | 0 | ConcatResponsePB result; |
1629 | 0 | ToGoogleProtobuf(&result); |
1630 | 0 | return result; |
1631 | 0 | } |
1632 | | |
1633 | 0 | ::yb::Slice result() const { |
1634 | 0 | return result_; |
1635 | 0 | } |
1636 | | |
1637 | 0 | void dup_result(::yb::Slice value) { |
1638 | 0 | has_fields_.Set(ConcatResponsePBFields::kResult); |
1639 | 0 | result_ = arena_.DupSlice(value); |
1640 | 0 | } |
1641 | | |
1642 | 0 | void ref_result(::yb::Slice value) { |
1643 | 0 | has_fields_.Set(ConcatResponsePBFields::kResult); |
1644 | 0 | result_ = value; |
1645 | 0 | } |
1646 | | |
1647 | 0 | ::yb::Slice* mutable_result() { |
1648 | 0 | has_fields_.Set(ConcatResponsePBFields::kResult); |
1649 | 0 | return &result_; |
1650 | 0 | } |
1651 | | |
1652 | 0 | bool has_result() const { |
1653 | 0 | return has_fields_.Test(ConcatResponsePBFields::kResult); |
1654 | 0 | } |
1655 | | |
1656 | 0 | void clear_result() { |
1657 | 0 | result_ = ::yb::Slice(); |
1658 | 0 | has_fields_.Reset(ConcatResponsePBFields::kResult); |
1659 | 0 | } |
1660 | | |
1661 | 0 | ::yb::Arena& arena() const { |
1662 | 0 | return arena_;} |
1663 | | |
1664 | 0 | size_t cached_size() const { |
1665 | 0 | return cached_size_; |
1666 | 0 | } |
1667 | | |
1668 | | private: |
1669 | | ::yb::Arena& arena_; |
1670 | | ::yb::EnumBitSet<ConcatResponsePBFields> has_fields_; |
1671 | | mutable size_t cached_size_ = 0; |
1672 | | ::yb::Slice result_ = ::yb::Slice(); |
1673 | | }; |
1674 | | |
1675 | | // CYCLE LightweightSubMessagePB |
1676 | | YB_DEFINE_ENUM(LightweightSubMessagePBFields, |
1677 | | (kSf32) |
1678 | | (kStr) |
1679 | | ); |
1680 | | |
1681 | | class LWLightweightSubMessagePB : public ::yb::rpc::LightweightMessage { |
1682 | | public: |
1683 | | explicit LWLightweightSubMessagePB(::yb::Arena* arena); |
1684 | | LWLightweightSubMessagePB(::yb::Arena* arena, const LWLightweightSubMessagePB& rhs); |
1685 | | |
1686 | | LWLightweightSubMessagePB(::yb::Arena* arena, const LightweightSubMessagePB& rhs) |
1687 | 10 | : LWLightweightSubMessagePB(arena) { |
1688 | 10 | CopyFrom(rhs); |
1689 | 10 | } Unexecuted instantiation: _ZN2yb8rpc_test25LWLightweightSubMessagePBC2EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_23LightweightSubMessagePBE _ZN2yb8rpc_test25LWLightweightSubMessagePBC1EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_23LightweightSubMessagePBE Line | Count | Source | 1687 | 10 | : LWLightweightSubMessagePB(arena) { | 1688 | 10 | CopyFrom(rhs); | 1689 | 10 | } |
|
1690 | | |
1691 | 0 | void operator=(const LWLightweightSubMessagePB& rhs) { |
1692 | 0 | CopyFrom(rhs); |
1693 | 0 | } |
1694 | | |
1695 | 0 | void operator=(const LightweightSubMessagePB& rhs) { |
1696 | 0 | CopyFrom(rhs); |
1697 | 0 | } |
1698 | | |
1699 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1700 | | size_t SerializedSize() const override; |
1701 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1702 | | void AppendToDebugString(std::string* out) const override; |
1703 | | |
1704 | | void Clear() override; |
1705 | | void CopyFrom(const LWLightweightSubMessagePB& rhs); |
1706 | | void CopyFrom(const LightweightSubMessagePB& rhs); |
1707 | | |
1708 | | void ToGoogleProtobuf(LightweightSubMessagePB* out) const; |
1709 | | |
1710 | 5 | LightweightSubMessagePB ToGoogleProtobuf() const { |
1711 | 5 | LightweightSubMessagePB result; |
1712 | 5 | ToGoogleProtobuf(&result); |
1713 | 5 | return result; |
1714 | 5 | } |
1715 | | |
1716 | 91 | int32_t sf32() const { |
1717 | 91 | return sf32_; |
1718 | 91 | } |
1719 | | |
1720 | 1 | void set_sf32(int32_t value) { |
1721 | 1 | has_fields_.Set(LightweightSubMessagePBFields::kSf32); |
1722 | 1 | sf32_ = value; |
1723 | 1 | } |
1724 | | |
1725 | 14 | int32_t* mutable_sf32() { |
1726 | 14 | has_fields_.Set(LightweightSubMessagePBFields::kSf32); |
1727 | 14 | return &sf32_; |
1728 | 14 | } |
1729 | | |
1730 | 221 | bool has_sf32() const { |
1731 | 221 | return has_fields_.Test(LightweightSubMessagePBFields::kSf32); |
1732 | 221 | } |
1733 | | |
1734 | 0 | void clear_sf32() { |
1735 | 0 | sf32_ = int32_t(); |
1736 | 0 | has_fields_.Reset(LightweightSubMessagePBFields::kSf32); |
1737 | 0 | } |
1738 | | |
1739 | 2 | const ::yb::MCVector<int32_t>& rsi32() const { |
1740 | 2 | return rsi32_; |
1741 | 2 | } |
1742 | | |
1743 | 1 | ::yb::MCVector<int32_t>* mutable_rsi32() { |
1744 | 1 | return &rsi32_; |
1745 | 1 | } |
1746 | | |
1747 | 91 | ::yb::Slice str() const { |
1748 | 91 | return str_; |
1749 | 91 | } |
1750 | | |
1751 | 1 | void dup_str(::yb::Slice value) { |
1752 | 1 | has_fields_.Set(LightweightSubMessagePBFields::kStr); |
1753 | 1 | str_ = arena_.DupSlice(value); |
1754 | 1 | } |
1755 | | |
1756 | 0 | void ref_str(::yb::Slice value) { |
1757 | 0 | has_fields_.Set(LightweightSubMessagePBFields::kStr); |
1758 | 0 | str_ = value; |
1759 | 0 | } |
1760 | | |
1761 | 14 | ::yb::Slice* mutable_str() { |
1762 | 14 | has_fields_.Set(LightweightSubMessagePBFields::kStr); |
1763 | 14 | return &str_; |
1764 | 14 | } |
1765 | | |
1766 | 221 | bool has_str() const { |
1767 | 221 | return has_fields_.Test(LightweightSubMessagePBFields::kStr); |
1768 | 221 | } |
1769 | | |
1770 | 0 | void clear_str() { |
1771 | 0 | str_ = ::yb::Slice(); |
1772 | 0 | has_fields_.Reset(LightweightSubMessagePBFields::kStr); |
1773 | 0 | } |
1774 | | |
1775 | 2 | const ::yb::MCVector<::yb::Slice>& rbytes() const { |
1776 | 2 | return rbytes_; |
1777 | 2 | } |
1778 | | |
1779 | 1 | ::yb::MCVector<::yb::Slice>* mutable_rbytes() { |
1780 | 1 | return &rbytes_; |
1781 | 1 | } |
1782 | | |
1783 | 75 | const ::yb::rpc_test::LWLightweightSubMessagePB& cycle() const { |
1784 | 75 | return cycle_ ? *cycle_ : ::yb::rpc::empty_message<::yb::rpc_test::LWLightweightSubMessagePB>(); |
1785 | 75 | } |
1786 | | |
1787 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB& ref_cycle(::yb::rpc_test::LWLightweightSubMessagePB* value) { |
1788 | 0 | cycle_ = value; |
1789 | 0 | return *cycle_; |
1790 | 0 | } |
1791 | | |
1792 | 20 | ::yb::rpc_test::LWLightweightSubMessagePB* mutable_cycle() { |
1793 | 20 | if (!cycle_) { |
1794 | 20 | cycle_ = arena_.NewObject<::yb::rpc_test::LWLightweightSubMessagePB>(&arena_); |
1795 | 20 | } |
1796 | 20 | return cycle_; |
1797 | 20 | } |
1798 | | |
1799 | 221 | bool has_cycle() const { |
1800 | 221 | return cycle_ != nullptr; |
1801 | 221 | } |
1802 | | |
1803 | 12 | void clear_cycle() { |
1804 | 12 | cycle_ = nullptr; |
1805 | 12 | } |
1806 | | |
1807 | 0 | ::yb::Arena& arena() const { |
1808 | 0 | return arena_;} |
1809 | | |
1810 | 24 | size_t cached_size() const { |
1811 | 24 | return cached_size_; |
1812 | 24 | } |
1813 | | |
1814 | | private: |
1815 | | ::yb::Arena& arena_; |
1816 | | ::yb::EnumBitSet<LightweightSubMessagePBFields> has_fields_; |
1817 | | mutable size_t cached_size_ = 0; |
1818 | | int32_t sf32_ = int32_t(); |
1819 | | ::yb::MCVector<int32_t> rsi32_; |
1820 | | ::yb::Slice str_ = ::yb::Slice(); |
1821 | | ::yb::MCVector<::yb::Slice> rbytes_; |
1822 | | ::yb::rpc_test::LWLightweightSubMessagePB* cycle_ = nullptr; |
1823 | | }; |
1824 | | |
1825 | | YB_DEFINE_ENUM(LightweightPairPBFields, |
1826 | | (kS1) |
1827 | | (kS2) |
1828 | | ); |
1829 | | |
1830 | | class LWLightweightPairPB : public ::yb::rpc::LightweightMessage { |
1831 | | public: |
1832 | | explicit LWLightweightPairPB(::yb::Arena* arena); |
1833 | | LWLightweightPairPB(::yb::Arena* arena, const LWLightweightPairPB& rhs); |
1834 | | |
1835 | | LWLightweightPairPB(::yb::Arena* arena, const LightweightPairPB& rhs) |
1836 | 13 | : LWLightweightPairPB(arena) { |
1837 | 13 | CopyFrom(rhs); |
1838 | 13 | } Unexecuted instantiation: _ZN2yb8rpc_test19LWLightweightPairPBC2EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_17LightweightPairPBE _ZN2yb8rpc_test19LWLightweightPairPBC1EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_17LightweightPairPBE Line | Count | Source | 1836 | 13 | : LWLightweightPairPB(arena) { | 1837 | 13 | CopyFrom(rhs); | 1838 | 13 | } |
|
1839 | | |
1840 | 0 | void operator=(const LWLightweightPairPB& rhs) { |
1841 | 0 | CopyFrom(rhs); |
1842 | 0 | } |
1843 | | |
1844 | 0 | void operator=(const LightweightPairPB& rhs) { |
1845 | 0 | CopyFrom(rhs); |
1846 | 0 | } |
1847 | | |
1848 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1849 | | size_t SerializedSize() const override; |
1850 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1851 | | void AppendToDebugString(std::string* out) const override; |
1852 | | |
1853 | | void Clear() override; |
1854 | | void CopyFrom(const LWLightweightPairPB& rhs); |
1855 | | void CopyFrom(const LightweightPairPB& rhs); |
1856 | | |
1857 | | void ToGoogleProtobuf(LightweightPairPB* out) const; |
1858 | | |
1859 | 0 | LightweightPairPB ToGoogleProtobuf() const { |
1860 | 0 | LightweightPairPB result; |
1861 | 0 | ToGoogleProtobuf(&result); |
1862 | 0 | return result; |
1863 | 0 | } |
1864 | | |
1865 | 78 | ::yb::Slice s1() const { |
1866 | 78 | return s1_; |
1867 | 78 | } |
1868 | | |
1869 | 0 | void dup_s1(::yb::Slice value) { |
1870 | 0 | has_fields_.Set(LightweightPairPBFields::kS1); |
1871 | 0 | s1_ = arena_.DupSlice(value); |
1872 | 0 | } |
1873 | | |
1874 | 0 | void ref_s1(::yb::Slice value) { |
1875 | 0 | has_fields_.Set(LightweightPairPBFields::kS1); |
1876 | 0 | s1_ = value; |
1877 | 0 | } |
1878 | | |
1879 | 26 | ::yb::Slice* mutable_s1() { |
1880 | 26 | has_fields_.Set(LightweightPairPBFields::kS1); |
1881 | 26 | return &s1_; |
1882 | 26 | } |
1883 | | |
1884 | 130 | bool has_s1() const { |
1885 | 130 | return has_fields_.Test(LightweightPairPBFields::kS1); |
1886 | 130 | } |
1887 | | |
1888 | 0 | void clear_s1() { |
1889 | 0 | s1_ = ::yb::Slice(); |
1890 | 0 | has_fields_.Reset(LightweightPairPBFields::kS1); |
1891 | 0 | } |
1892 | | |
1893 | 78 | ::yb::Slice s2() const { |
1894 | 78 | return s2_; |
1895 | 78 | } |
1896 | | |
1897 | 0 | void dup_s2(::yb::Slice value) { |
1898 | 0 | has_fields_.Set(LightweightPairPBFields::kS2); |
1899 | 0 | s2_ = arena_.DupSlice(value); |
1900 | 0 | } |
1901 | | |
1902 | 0 | void ref_s2(::yb::Slice value) { |
1903 | 0 | has_fields_.Set(LightweightPairPBFields::kS2); |
1904 | 0 | s2_ = value; |
1905 | 0 | } |
1906 | | |
1907 | 26 | ::yb::Slice* mutable_s2() { |
1908 | 26 | has_fields_.Set(LightweightPairPBFields::kS2); |
1909 | 26 | return &s2_; |
1910 | 26 | } |
1911 | | |
1912 | 130 | bool has_s2() const { |
1913 | 130 | return has_fields_.Test(LightweightPairPBFields::kS2); |
1914 | 130 | } |
1915 | | |
1916 | 0 | void clear_s2() { |
1917 | 0 | s2_ = ::yb::Slice(); |
1918 | 0 | has_fields_.Reset(LightweightPairPBFields::kS2); |
1919 | 0 | } |
1920 | | |
1921 | 0 | ::yb::Arena& arena() const { |
1922 | 0 | return arena_;} |
1923 | | |
1924 | 13 | size_t cached_size() const { |
1925 | 13 | return cached_size_; |
1926 | 13 | } |
1927 | | |
1928 | | private: |
1929 | | ::yb::Arena& arena_; |
1930 | | ::yb::EnumBitSet<LightweightPairPBFields> has_fields_; |
1931 | | mutable size_t cached_size_ = 0; |
1932 | | ::yb::Slice s1_ = ::yb::Slice(); |
1933 | | ::yb::Slice s2_ = ::yb::Slice(); |
1934 | | }; |
1935 | | |
1936 | | YB_DEFINE_ENUM(LightweightRequestPB_MapEntry_DoNotUseFields, |
1937 | | (kKey) |
1938 | | (kValue) |
1939 | | ); |
1940 | | |
1941 | | class LWLightweightRequestPB_LWMapEntry_DoNotUse : public ::yb::rpc::LightweightMessage { |
1942 | | public: |
1943 | | explicit LWLightweightRequestPB_LWMapEntry_DoNotUse(::yb::Arena* arena); |
1944 | | LWLightweightRequestPB_LWMapEntry_DoNotUse(::yb::Arena* arena, const LWLightweightRequestPB_LWMapEntry_DoNotUse& rhs); |
1945 | | |
1946 | | LWLightweightRequestPB_LWMapEntry_DoNotUse(::yb::Arena* arena, const ::google::protobuf::MapPair<std::string, int64_t>& rhs) |
1947 | 0 | : LWLightweightRequestPB_LWMapEntry_DoNotUse(arena) { |
1948 | 0 | CopyFrom(rhs); |
1949 | 0 | } Unexecuted instantiation: _ZN2yb8rpc_test42LWLightweightRequestPB_LWMapEntry_DoNotUseC2EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKN6google8protobuf7MapPairINSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEExEE Unexecuted instantiation: _ZN2yb8rpc_test42LWLightweightRequestPB_LWMapEntry_DoNotUseC1EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKN6google8protobuf7MapPairINSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEExEE |
1950 | | |
1951 | 0 | void operator=(const LWLightweightRequestPB_LWMapEntry_DoNotUse& rhs) { |
1952 | 0 | CopyFrom(rhs); |
1953 | 0 | } |
1954 | | |
1955 | 0 | void operator=(const ::google::protobuf::MapPair<std::string, int64_t>& rhs) { |
1956 | 0 | CopyFrom(rhs); |
1957 | 0 | } |
1958 | | |
1959 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
1960 | | size_t SerializedSize() const override; |
1961 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
1962 | | void AppendToDebugString(std::string* out) const override; |
1963 | | |
1964 | | void Clear() override; |
1965 | | void CopyFrom(const LWLightweightRequestPB_LWMapEntry_DoNotUse& rhs); |
1966 | | void CopyFrom(const ::google::protobuf::MapPair<std::string, int64_t>& rhs); |
1967 | | |
1968 | 11 | ::yb::Slice key() const { |
1969 | 11 | return key_; |
1970 | 11 | } |
1971 | | |
1972 | 0 | void dup_key(::yb::Slice value) { |
1973 | 0 | has_fields_.Set(LightweightRequestPB_MapEntry_DoNotUseFields::kKey); |
1974 | 0 | key_ = arena_.DupSlice(value); |
1975 | 0 | } |
1976 | | |
1977 | 0 | void ref_key(::yb::Slice value) { |
1978 | 0 | has_fields_.Set(LightweightRequestPB_MapEntry_DoNotUseFields::kKey); |
1979 | 0 | key_ = value; |
1980 | 0 | } |
1981 | | |
1982 | 11 | ::yb::Slice* mutable_key() { |
1983 | 11 | has_fields_.Set(LightweightRequestPB_MapEntry_DoNotUseFields::kKey); |
1984 | 11 | return &key_; |
1985 | 11 | } |
1986 | | |
1987 | 0 | bool has_key() const { |
1988 | 0 | return has_fields_.Test(LightweightRequestPB_MapEntry_DoNotUseFields::kKey); |
1989 | 0 | } |
1990 | | |
1991 | 0 | void clear_key() { |
1992 | 0 | key_ = ::yb::Slice(); |
1993 | 0 | has_fields_.Reset(LightweightRequestPB_MapEntry_DoNotUseFields::kKey); |
1994 | 0 | } |
1995 | | |
1996 | 11 | int64_t value() const { |
1997 | 11 | return value_; |
1998 | 11 | } |
1999 | | |
2000 | 0 | void set_value(int64_t value) { |
2001 | 0 | has_fields_.Set(LightweightRequestPB_MapEntry_DoNotUseFields::kValue); |
2002 | 0 | value_ = value; |
2003 | 0 | } |
2004 | | |
2005 | 11 | int64_t* mutable_value() { |
2006 | 11 | has_fields_.Set(LightweightRequestPB_MapEntry_DoNotUseFields::kValue); |
2007 | 11 | return &value_; |
2008 | 11 | } |
2009 | | |
2010 | 0 | bool has_value() const { |
2011 | 0 | return has_fields_.Test(LightweightRequestPB_MapEntry_DoNotUseFields::kValue); |
2012 | 0 | } |
2013 | | |
2014 | 0 | void clear_value() { |
2015 | 0 | value_ = int64_t(); |
2016 | 0 | has_fields_.Reset(LightweightRequestPB_MapEntry_DoNotUseFields::kValue); |
2017 | 0 | } |
2018 | | |
2019 | 0 | ::yb::Arena& arena() const { |
2020 | 0 | return arena_;} |
2021 | | |
2022 | 0 | size_t cached_size() const { |
2023 | 0 | return cached_size_; |
2024 | 0 | } |
2025 | | |
2026 | | private: |
2027 | | ::yb::Arena& arena_; |
2028 | | ::yb::EnumBitSet<LightweightRequestPB_MapEntry_DoNotUseFields> has_fields_; |
2029 | | mutable size_t cached_size_ = 0; |
2030 | | ::yb::Slice key_ = ::yb::Slice(); |
2031 | | int64_t value_ = int64_t(); |
2032 | | }; |
2033 | | |
2034 | | YB_DEFINE_ENUM(LightweightRequestPBFields, |
2035 | | (kI32) |
2036 | | (kI64) |
2037 | | (kF32) |
2038 | | (kF64) |
2039 | | (kU32) |
2040 | | (kU64) |
2041 | | (kR32) |
2042 | | (kR64) |
2043 | | (kStr) |
2044 | | (kBytes) |
2045 | | (kEn) |
2046 | | (kSf32) |
2047 | | (kSf64) |
2048 | | (kSi32) |
2049 | | (kSi64) |
2050 | | (kMessage) |
2051 | | (kExtraData) |
2052 | | ); |
2053 | | |
2054 | | class LWLightweightRequestPB : public ::yb::rpc::LightweightMessage { |
2055 | | public: |
2056 | | explicit LWLightweightRequestPB(::yb::Arena* arena); |
2057 | | LWLightweightRequestPB(::yb::Arena* arena, const LWLightweightRequestPB& rhs); |
2058 | | |
2059 | | LWLightweightRequestPB(::yb::Arena* arena, const LightweightRequestPB& rhs) |
2060 | 1 | : LWLightweightRequestPB(arena) { |
2061 | 1 | CopyFrom(rhs); |
2062 | 1 | } Unexecuted instantiation: _ZN2yb8rpc_test22LWLightweightRequestPBC2EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_20LightweightRequestPBE _ZN2yb8rpc_test22LWLightweightRequestPBC1EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKNS0_20LightweightRequestPBE Line | Count | Source | 2060 | 1 | : LWLightweightRequestPB(arena) { | 2061 | 1 | CopyFrom(rhs); | 2062 | 1 | } |
|
2063 | | |
2064 | 0 | void operator=(const LWLightweightRequestPB& rhs) { |
2065 | 0 | CopyFrom(rhs); |
2066 | 0 | } |
2067 | | |
2068 | 0 | void operator=(const LightweightRequestPB& rhs) { |
2069 | 0 | CopyFrom(rhs); |
2070 | 0 | } |
2071 | | |
2072 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
2073 | | size_t SerializedSize() const override; |
2074 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
2075 | | void AppendToDebugString(std::string* out) const override; |
2076 | | |
2077 | | void Clear() override; |
2078 | | void CopyFrom(const LWLightweightRequestPB& rhs); |
2079 | | void CopyFrom(const LightweightRequestPB& rhs); |
2080 | | |
2081 | | void ToGoogleProtobuf(LightweightRequestPB* out) const; |
2082 | | |
2083 | 0 | LightweightRequestPB ToGoogleProtobuf() const { |
2084 | 0 | LightweightRequestPB result; |
2085 | 0 | ToGoogleProtobuf(&result); |
2086 | 0 | return result; |
2087 | 0 | } |
2088 | | |
2089 | | using LWMapEntry = ::yb::rpc_test::LWLightweightRequestPB_LWMapEntry_DoNotUse; |
2090 | | |
2091 | 4 | int32_t i32() const { |
2092 | 4 | return i32_; |
2093 | 4 | } |
2094 | | |
2095 | 0 | void set_i32(int32_t value) { |
2096 | 0 | has_fields_.Set(LightweightRequestPBFields::kI32); |
2097 | 0 | i32_ = value; |
2098 | 0 | } |
2099 | | |
2100 | 1 | int32_t* mutable_i32() { |
2101 | 1 | has_fields_.Set(LightweightRequestPBFields::kI32); |
2102 | 1 | return &i32_; |
2103 | 1 | } |
2104 | | |
2105 | 3 | bool has_i32() const { |
2106 | 3 | return has_fields_.Test(LightweightRequestPBFields::kI32); |
2107 | 3 | } |
2108 | | |
2109 | 0 | void clear_i32() { |
2110 | 0 | i32_ = int32_t(); |
2111 | 0 | has_fields_.Reset(LightweightRequestPBFields::kI32); |
2112 | 0 | } |
2113 | | |
2114 | 4 | int64_t i64() const { |
2115 | 4 | return i64_; |
2116 | 4 | } |
2117 | | |
2118 | 0 | void set_i64(int64_t value) { |
2119 | 0 | has_fields_.Set(LightweightRequestPBFields::kI64); |
2120 | 0 | i64_ = value; |
2121 | 0 | } |
2122 | | |
2123 | 1 | int64_t* mutable_i64() { |
2124 | 1 | has_fields_.Set(LightweightRequestPBFields::kI64); |
2125 | 1 | return &i64_; |
2126 | 1 | } |
2127 | | |
2128 | 3 | bool has_i64() const { |
2129 | 3 | return has_fields_.Test(LightweightRequestPBFields::kI64); |
2130 | 3 | } |
2131 | | |
2132 | 0 | void clear_i64() { |
2133 | 0 | i64_ = int64_t(); |
2134 | 0 | has_fields_.Reset(LightweightRequestPBFields::kI64); |
2135 | 0 | } |
2136 | | |
2137 | 4 | uint32_t f32() const { |
2138 | 4 | return f32_; |
2139 | 4 | } |
2140 | | |
2141 | 0 | void set_f32(uint32_t value) { |
2142 | 0 | has_fields_.Set(LightweightRequestPBFields::kF32); |
2143 | 0 | f32_ = value; |
2144 | 0 | } |
2145 | | |
2146 | 1 | uint32_t* mutable_f32() { |
2147 | 1 | has_fields_.Set(LightweightRequestPBFields::kF32); |
2148 | 1 | return &f32_; |
2149 | 1 | } |
2150 | | |
2151 | 3 | bool has_f32() const { |
2152 | 3 | return has_fields_.Test(LightweightRequestPBFields::kF32); |
2153 | 3 | } |
2154 | | |
2155 | 0 | void clear_f32() { |
2156 | 0 | f32_ = uint32_t(); |
2157 | 0 | has_fields_.Reset(LightweightRequestPBFields::kF32); |
2158 | 0 | } |
2159 | | |
2160 | 4 | uint64_t f64() const { |
2161 | 4 | return f64_; |
2162 | 4 | } |
2163 | | |
2164 | 0 | void set_f64(uint64_t value) { |
2165 | 0 | has_fields_.Set(LightweightRequestPBFields::kF64); |
2166 | 0 | f64_ = value; |
2167 | 0 | } |
2168 | | |
2169 | 1 | uint64_t* mutable_f64() { |
2170 | 1 | has_fields_.Set(LightweightRequestPBFields::kF64); |
2171 | 1 | return &f64_; |
2172 | 1 | } |
2173 | | |
2174 | 3 | bool has_f64() const { |
2175 | 3 | return has_fields_.Test(LightweightRequestPBFields::kF64); |
2176 | 3 | } |
2177 | | |
2178 | 0 | void clear_f64() { |
2179 | 0 | f64_ = uint64_t(); |
2180 | 0 | has_fields_.Reset(LightweightRequestPBFields::kF64); |
2181 | 0 | } |
2182 | | |
2183 | 4 | uint32_t u32() const { |
2184 | 4 | return u32_; |
2185 | 4 | } |
2186 | | |
2187 | 0 | void set_u32(uint32_t value) { |
2188 | 0 | has_fields_.Set(LightweightRequestPBFields::kU32); |
2189 | 0 | u32_ = value; |
2190 | 0 | } |
2191 | | |
2192 | 1 | uint32_t* mutable_u32() { |
2193 | 1 | has_fields_.Set(LightweightRequestPBFields::kU32); |
2194 | 1 | return &u32_; |
2195 | 1 | } |
2196 | | |
2197 | 3 | bool has_u32() const { |
2198 | 3 | return has_fields_.Test(LightweightRequestPBFields::kU32); |
2199 | 3 | } |
2200 | | |
2201 | 0 | void clear_u32() { |
2202 | 0 | u32_ = uint32_t(); |
2203 | 0 | has_fields_.Reset(LightweightRequestPBFields::kU32); |
2204 | 0 | } |
2205 | | |
2206 | 4 | uint64_t u64() const { |
2207 | 4 | return u64_; |
2208 | 4 | } |
2209 | | |
2210 | 0 | void set_u64(uint64_t value) { |
2211 | 0 | has_fields_.Set(LightweightRequestPBFields::kU64); |
2212 | 0 | u64_ = value; |
2213 | 0 | } |
2214 | | |
2215 | 1 | uint64_t* mutable_u64() { |
2216 | 1 | has_fields_.Set(LightweightRequestPBFields::kU64); |
2217 | 1 | return &u64_; |
2218 | 1 | } |
2219 | | |
2220 | 3 | bool has_u64() const { |
2221 | 3 | return has_fields_.Test(LightweightRequestPBFields::kU64); |
2222 | 3 | } |
2223 | | |
2224 | 0 | void clear_u64() { |
2225 | 0 | u64_ = uint64_t(); |
2226 | 0 | has_fields_.Reset(LightweightRequestPBFields::kU64); |
2227 | 0 | } |
2228 | | |
2229 | 4 | float r32() const { |
2230 | 4 | return r32_; |
2231 | 4 | } |
2232 | | |
2233 | 0 | void set_r32(float value) { |
2234 | 0 | has_fields_.Set(LightweightRequestPBFields::kR32); |
2235 | 0 | r32_ = value; |
2236 | 0 | } |
2237 | | |
2238 | 1 | float* mutable_r32() { |
2239 | 1 | has_fields_.Set(LightweightRequestPBFields::kR32); |
2240 | 1 | return &r32_; |
2241 | 1 | } |
2242 | | |
2243 | 3 | bool has_r32() const { |
2244 | 3 | return has_fields_.Test(LightweightRequestPBFields::kR32); |
2245 | 3 | } |
2246 | | |
2247 | 0 | void clear_r32() { |
2248 | 0 | r32_ = float(); |
2249 | 0 | has_fields_.Reset(LightweightRequestPBFields::kR32); |
2250 | 0 | } |
2251 | | |
2252 | 4 | double r64() const { |
2253 | 4 | return r64_; |
2254 | 4 | } |
2255 | | |
2256 | 0 | void set_r64(double value) { |
2257 | 0 | has_fields_.Set(LightweightRequestPBFields::kR64); |
2258 | 0 | r64_ = value; |
2259 | 0 | } |
2260 | | |
2261 | 1 | double* mutable_r64() { |
2262 | 1 | has_fields_.Set(LightweightRequestPBFields::kR64); |
2263 | 1 | return &r64_; |
2264 | 1 | } |
2265 | | |
2266 | 3 | bool has_r64() const { |
2267 | 3 | return has_fields_.Test(LightweightRequestPBFields::kR64); |
2268 | 3 | } |
2269 | | |
2270 | 0 | void clear_r64() { |
2271 | 0 | r64_ = double(); |
2272 | 0 | has_fields_.Reset(LightweightRequestPBFields::kR64); |
2273 | 0 | } |
2274 | | |
2275 | 4 | ::yb::Slice str() const { |
2276 | 4 | return str_; |
2277 | 4 | } |
2278 | | |
2279 | 0 | void dup_str(::yb::Slice value) { |
2280 | 0 | has_fields_.Set(LightweightRequestPBFields::kStr); |
2281 | 0 | str_ = arena_.DupSlice(value); |
2282 | 0 | } |
2283 | | |
2284 | 0 | void ref_str(::yb::Slice value) { |
2285 | 0 | has_fields_.Set(LightweightRequestPBFields::kStr); |
2286 | 0 | str_ = value; |
2287 | 0 | } |
2288 | | |
2289 | 1 | ::yb::Slice* mutable_str() { |
2290 | 1 | has_fields_.Set(LightweightRequestPBFields::kStr); |
2291 | 1 | return &str_; |
2292 | 1 | } |
2293 | | |
2294 | 3 | bool has_str() const { |
2295 | 3 | return has_fields_.Test(LightweightRequestPBFields::kStr); |
2296 | 3 | } |
2297 | | |
2298 | 0 | void clear_str() { |
2299 | 0 | str_ = ::yb::Slice(); |
2300 | 0 | has_fields_.Reset(LightweightRequestPBFields::kStr); |
2301 | 0 | } |
2302 | | |
2303 | 4 | ::yb::Slice bytes() const { |
2304 | 4 | return bytes_; |
2305 | 4 | } |
2306 | | |
2307 | 0 | void dup_bytes(::yb::Slice value) { |
2308 | 0 | has_fields_.Set(LightweightRequestPBFields::kBytes); |
2309 | 0 | bytes_ = arena_.DupSlice(value); |
2310 | 0 | } |
2311 | | |
2312 | 0 | void ref_bytes(::yb::Slice value) { |
2313 | 0 | has_fields_.Set(LightweightRequestPBFields::kBytes); |
2314 | 0 | bytes_ = value; |
2315 | 0 | } |
2316 | | |
2317 | 1 | ::yb::Slice* mutable_bytes() { |
2318 | 1 | has_fields_.Set(LightweightRequestPBFields::kBytes); |
2319 | 1 | return &bytes_; |
2320 | 1 | } |
2321 | | |
2322 | 3 | bool has_bytes() const { |
2323 | 3 | return has_fields_.Test(LightweightRequestPBFields::kBytes); |
2324 | 3 | } |
2325 | | |
2326 | 0 | void clear_bytes() { |
2327 | 0 | bytes_ = ::yb::Slice(); |
2328 | 0 | has_fields_.Reset(LightweightRequestPBFields::kBytes); |
2329 | 0 | } |
2330 | | |
2331 | 4 | ::yb::rpc_test::LightweightEnum en() const { |
2332 | 4 | return en_; |
2333 | 4 | } |
2334 | | |
2335 | 0 | void set_en(::yb::rpc_test::LightweightEnum value) { |
2336 | 0 | has_fields_.Set(LightweightRequestPBFields::kEn); |
2337 | 0 | en_ = value; |
2338 | 0 | } |
2339 | | |
2340 | 1 | ::yb::rpc_test::LightweightEnum* mutable_en() { |
2341 | 1 | has_fields_.Set(LightweightRequestPBFields::kEn); |
2342 | 1 | return &en_; |
2343 | 1 | } |
2344 | | |
2345 | 3 | bool has_en() const { |
2346 | 3 | return has_fields_.Test(LightweightRequestPBFields::kEn); |
2347 | 3 | } |
2348 | | |
2349 | 0 | void clear_en() { |
2350 | 0 | en_ = ::yb::rpc_test::LightweightEnum(); |
2351 | 0 | has_fields_.Reset(LightweightRequestPBFields::kEn); |
2352 | 0 | } |
2353 | | |
2354 | 4 | int32_t sf32() const { |
2355 | 4 | return sf32_; |
2356 | 4 | } |
2357 | | |
2358 | 0 | void set_sf32(int32_t value) { |
2359 | 0 | has_fields_.Set(LightweightRequestPBFields::kSf32); |
2360 | 0 | sf32_ = value; |
2361 | 0 | } |
2362 | | |
2363 | 1 | int32_t* mutable_sf32() { |
2364 | 1 | has_fields_.Set(LightweightRequestPBFields::kSf32); |
2365 | 1 | return &sf32_; |
2366 | 1 | } |
2367 | | |
2368 | 3 | bool has_sf32() const { |
2369 | 3 | return has_fields_.Test(LightweightRequestPBFields::kSf32); |
2370 | 3 | } |
2371 | | |
2372 | 0 | void clear_sf32() { |
2373 | 0 | sf32_ = int32_t(); |
2374 | 0 | has_fields_.Reset(LightweightRequestPBFields::kSf32); |
2375 | 0 | } |
2376 | | |
2377 | 4 | int64_t sf64() const { |
2378 | 4 | return sf64_; |
2379 | 4 | } |
2380 | | |
2381 | 0 | void set_sf64(int64_t value) { |
2382 | 0 | has_fields_.Set(LightweightRequestPBFields::kSf64); |
2383 | 0 | sf64_ = value; |
2384 | 0 | } |
2385 | | |
2386 | 1 | int64_t* mutable_sf64() { |
2387 | 1 | has_fields_.Set(LightweightRequestPBFields::kSf64); |
2388 | 1 | return &sf64_; |
2389 | 1 | } |
2390 | | |
2391 | 3 | bool has_sf64() const { |
2392 | 3 | return has_fields_.Test(LightweightRequestPBFields::kSf64); |
2393 | 3 | } |
2394 | | |
2395 | 0 | void clear_sf64() { |
2396 | 0 | sf64_ = int64_t(); |
2397 | 0 | has_fields_.Reset(LightweightRequestPBFields::kSf64); |
2398 | 0 | } |
2399 | | |
2400 | 4 | int32_t si32() const { |
2401 | 4 | return si32_; |
2402 | 4 | } |
2403 | | |
2404 | 0 | void set_si32(int32_t value) { |
2405 | 0 | has_fields_.Set(LightweightRequestPBFields::kSi32); |
2406 | 0 | si32_ = value; |
2407 | 0 | } |
2408 | | |
2409 | 1 | int32_t* mutable_si32() { |
2410 | 1 | has_fields_.Set(LightweightRequestPBFields::kSi32); |
2411 | 1 | return &si32_; |
2412 | 1 | } |
2413 | | |
2414 | 3 | bool has_si32() const { |
2415 | 3 | return has_fields_.Test(LightweightRequestPBFields::kSi32); |
2416 | 3 | } |
2417 | | |
2418 | 0 | void clear_si32() { |
2419 | 0 | si32_ = int32_t(); |
2420 | 0 | has_fields_.Reset(LightweightRequestPBFields::kSi32); |
2421 | 0 | } |
2422 | | |
2423 | 4 | int64_t si64() const { |
2424 | 4 | return si64_; |
2425 | 4 | } |
2426 | | |
2427 | 0 | void set_si64(int64_t value) { |
2428 | 0 | has_fields_.Set(LightweightRequestPBFields::kSi64); |
2429 | 0 | si64_ = value; |
2430 | 0 | } |
2431 | | |
2432 | 1 | int64_t* mutable_si64() { |
2433 | 1 | has_fields_.Set(LightweightRequestPBFields::kSi64); |
2434 | 1 | return &si64_; |
2435 | 1 | } |
2436 | | |
2437 | 3 | bool has_si64() const { |
2438 | 3 | return has_fields_.Test(LightweightRequestPBFields::kSi64); |
2439 | 3 | } |
2440 | | |
2441 | 0 | void clear_si64() { |
2442 | 0 | si64_ = int64_t(); |
2443 | 0 | has_fields_.Reset(LightweightRequestPBFields::kSi64); |
2444 | 0 | } |
2445 | | |
2446 | 1 | const ::yb::MCVector<uint32_t>& ru32() const { |
2447 | 1 | return ru32_; |
2448 | 1 | } |
2449 | | |
2450 | 0 | ::yb::MCVector<uint32_t>* mutable_ru32() { |
2451 | 0 | return &ru32_; |
2452 | 0 | } |
2453 | | |
2454 | 1 | const ::yb::MCVector<uint32_t>& rf32() const { |
2455 | 1 | return rf32_; |
2456 | 1 | } |
2457 | | |
2458 | 0 | ::yb::MCVector<uint32_t>* mutable_rf32() { |
2459 | 0 | return &rf32_; |
2460 | 0 | } |
2461 | | |
2462 | 2 | const ::yb::MCVector<::yb::Slice>& rstr() const { |
2463 | 2 | return rstr_; |
2464 | 2 | } |
2465 | | |
2466 | 0 | ::yb::MCVector<::yb::Slice>* mutable_rstr() { |
2467 | 0 | return &rstr_; |
2468 | 0 | } |
2469 | | |
2470 | 4 | const ::yb::rpc_test::LWLightweightSubMessagePB& message() const { |
2471 | 4 | return message_; |
2472 | 4 | } |
2473 | | |
2474 | 1 | ::yb::rpc_test::LWLightweightSubMessagePB* mutable_message() { |
2475 | 1 | has_fields_.Set(LightweightRequestPBFields::kMessage); |
2476 | 1 | return &message_; |
2477 | 1 | } |
2478 | | |
2479 | 3 | bool has_message() const { |
2480 | 3 | return has_fields_.Test(LightweightRequestPBFields::kMessage); |
2481 | 3 | } |
2482 | | |
2483 | 0 | void clear_message() { |
2484 | 0 | message_.Clear(); |
2485 | 0 | has_fields_.Reset(LightweightRequestPBFields::kMessage); |
2486 | 0 | } |
2487 | | |
2488 | 1 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>& repeated_messages() const { |
2489 | 1 | return repeated_messages_; |
2490 | 1 | } |
2491 | | |
2492 | 7 | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>* mutable_repeated_messages() { |
2493 | 7 | return &repeated_messages_; |
2494 | 7 | } |
2495 | | |
2496 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB* add_repeated_messages() { |
2497 | 0 | return &repeated_messages_.emplace_back(); |
2498 | 0 | } |
2499 | | |
2500 | 2 | const ::yb::MCVector<uint64_t>& packed_u64() const { |
2501 | 2 | return packed_u64_; |
2502 | 2 | } |
2503 | | |
2504 | 0 | ::yb::MCVector<uint64_t>* mutable_packed_u64() { |
2505 | 0 | return &packed_u64_; |
2506 | 0 | } |
2507 | | |
2508 | 2 | const ::yb::MCVector<uint32_t>& packed_f32() const { |
2509 | 2 | return packed_f32_; |
2510 | 2 | } |
2511 | | |
2512 | 0 | ::yb::MCVector<uint32_t>* mutable_packed_f32() { |
2513 | 0 | return &packed_f32_; |
2514 | 0 | } |
2515 | | |
2516 | 1 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB>& pairs() const { |
2517 | 1 | return pairs_; |
2518 | 1 | } |
2519 | | |
2520 | 0 | ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB>* mutable_pairs() { |
2521 | 0 | return &pairs_; |
2522 | 0 | } |
2523 | | |
2524 | 0 | ::yb::rpc_test::LWLightweightPairPB* add_pairs() { |
2525 | 0 | return &pairs_.emplace_back(); |
2526 | 0 | } |
2527 | | |
2528 | 3 | const ::yb::rpc_test::LWLightweightSubMessagePB& ptr_message() const { |
2529 | 3 | return ptr_message_ ? *ptr_message_ : ::yb::rpc::empty_message<::yb::rpc_test::LWLightweightSubMessagePB>(); |
2530 | 3 | } |
2531 | | |
2532 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB& ref_ptr_message(::yb::rpc_test::LWLightweightSubMessagePB* value) { |
2533 | 0 | ptr_message_ = value; |
2534 | 0 | return *ptr_message_; |
2535 | 0 | } |
2536 | | |
2537 | 3 | ::yb::rpc_test::LWLightweightSubMessagePB* mutable_ptr_message() { |
2538 | 3 | if (!ptr_message_) { |
2539 | 2 | ptr_message_ = arena_.NewObject<::yb::rpc_test::LWLightweightSubMessagePB>(&arena_); |
2540 | 2 | } |
2541 | 3 | return ptr_message_; |
2542 | 3 | } |
2543 | | |
2544 | 3 | bool has_ptr_message() const { |
2545 | 3 | return ptr_message_ != nullptr; |
2546 | 3 | } |
2547 | | |
2548 | 0 | void clear_ptr_message() { |
2549 | 0 | ptr_message_ = nullptr; |
2550 | 0 | } |
2551 | | |
2552 | 1 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightRequestPB_LWMapEntry_DoNotUse>& map() const { |
2553 | 1 | return map_; |
2554 | 1 | } |
2555 | | |
2556 | 1 | ::yb::ArenaList<::yb::rpc_test::LWLightweightRequestPB_LWMapEntry_DoNotUse>* mutable_map() { |
2557 | 1 | return &map_; |
2558 | 1 | } |
2559 | | |
2560 | 0 | ::yb::rpc_test::LWLightweightRequestPB_LWMapEntry_DoNotUse* add_map() { |
2561 | 0 | return &map_.emplace_back(); |
2562 | 0 | } |
2563 | | |
2564 | 0 | const ::yb::rpc::LWAny& extra_data() const { |
2565 | 0 | return extra_data_; |
2566 | 0 | } |
2567 | | |
2568 | 0 | ::yb::rpc::LWAny* mutable_extra_data() { |
2569 | 0 | has_fields_.Set(LightweightRequestPBFields::kExtraData); |
2570 | 0 | return &extra_data_; |
2571 | 0 | } |
2572 | | |
2573 | 3 | bool has_extra_data() const { |
2574 | 3 | return has_fields_.Test(LightweightRequestPBFields::kExtraData); |
2575 | 3 | } |
2576 | | |
2577 | 1 | void clear_extra_data() { |
2578 | 1 | extra_data_.Clear(); |
2579 | 1 | has_fields_.Reset(LightweightRequestPBFields::kExtraData); |
2580 | 1 | } |
2581 | | |
2582 | 0 | ::yb::Arena& arena() const { |
2583 | 0 | return arena_;} |
2584 | | |
2585 | 0 | size_t cached_size() const { |
2586 | 0 | return cached_size_; |
2587 | 0 | } |
2588 | | |
2589 | | private: |
2590 | | ::yb::Arena& arena_; |
2591 | | ::yb::EnumBitSet<LightweightRequestPBFields> has_fields_; |
2592 | | mutable size_t cached_size_ = 0; |
2593 | | int32_t i32_ = int32_t(); |
2594 | | int64_t i64_ = int64_t(); |
2595 | | uint32_t f32_ = uint32_t(); |
2596 | | uint64_t f64_ = uint64_t(); |
2597 | | uint32_t u32_ = uint32_t(); |
2598 | | uint64_t u64_ = uint64_t(); |
2599 | | float r32_ = float(); |
2600 | | double r64_ = double(); |
2601 | | ::yb::Slice str_ = ::yb::Slice(); |
2602 | | ::yb::Slice bytes_ = ::yb::Slice(); |
2603 | | ::yb::rpc_test::LightweightEnum en_ = ::yb::rpc_test::LightweightEnum(); |
2604 | | int32_t sf32_ = int32_t(); |
2605 | | int64_t sf64_ = int64_t(); |
2606 | | int32_t si32_ = int32_t(); |
2607 | | int64_t si64_ = int64_t(); |
2608 | | ::yb::MCVector<uint32_t> ru32_; |
2609 | | ::yb::MCVector<uint32_t> rf32_; |
2610 | | ::yb::MCVector<::yb::Slice> rstr_; |
2611 | | ::yb::rpc_test::LWLightweightSubMessagePB message_; |
2612 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB> repeated_messages_; |
2613 | | ::yb::MCVector<uint64_t> packed_u64_; |
2614 | | mutable size_t packed_u64_cached_size_ = 0; |
2615 | | ::yb::MCVector<uint32_t> packed_f32_; |
2616 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB> pairs_; |
2617 | | ::yb::rpc_test::LWLightweightSubMessagePB* ptr_message_ = nullptr; |
2618 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightRequestPB_LWMapEntry_DoNotUse> map_; |
2619 | | ::yb::rpc::LWAny extra_data_; |
2620 | | }; |
2621 | | |
2622 | | YB_DEFINE_ENUM(LightweightResponsePB_MapEntry_DoNotUseFields, |
2623 | | (kKey) |
2624 | | (kValue) |
2625 | | ); |
2626 | | |
2627 | | class LWLightweightResponsePB_LWMapEntry_DoNotUse : public ::yb::rpc::LightweightMessage { |
2628 | | public: |
2629 | | explicit LWLightweightResponsePB_LWMapEntry_DoNotUse(::yb::Arena* arena); |
2630 | | LWLightweightResponsePB_LWMapEntry_DoNotUse(::yb::Arena* arena, const LWLightweightResponsePB_LWMapEntry_DoNotUse& rhs); |
2631 | | |
2632 | | LWLightweightResponsePB_LWMapEntry_DoNotUse(::yb::Arena* arena, const ::google::protobuf::MapPair<std::string, int64_t>& rhs) |
2633 | 0 | : LWLightweightResponsePB_LWMapEntry_DoNotUse(arena) { |
2634 | 0 | CopyFrom(rhs); |
2635 | 0 | } Unexecuted instantiation: _ZN2yb8rpc_test43LWLightweightResponsePB_LWMapEntry_DoNotUseC2EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKN6google8protobuf7MapPairINSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEExEE Unexecuted instantiation: _ZN2yb8rpc_test43LWLightweightResponsePB_LWMapEntry_DoNotUseC1EPNS_8internal9ArenaBaseINS2_11ArenaTraitsEEERKN6google8protobuf7MapPairINSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEExEE |
2636 | | |
2637 | 0 | void operator=(const LWLightweightResponsePB_LWMapEntry_DoNotUse& rhs) { |
2638 | 0 | CopyFrom(rhs); |
2639 | 0 | } |
2640 | | |
2641 | 0 | void operator=(const ::google::protobuf::MapPair<std::string, int64_t>& rhs) { |
2642 | 0 | CopyFrom(rhs); |
2643 | 0 | } |
2644 | | |
2645 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
2646 | | size_t SerializedSize() const override; |
2647 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
2648 | | void AppendToDebugString(std::string* out) const override; |
2649 | | |
2650 | | void Clear() override; |
2651 | | void CopyFrom(const LWLightweightResponsePB_LWMapEntry_DoNotUse& rhs); |
2652 | | void CopyFrom(const ::google::protobuf::MapPair<std::string, int64_t>& rhs); |
2653 | | |
2654 | 0 | ::yb::Slice key() const { |
2655 | 0 | return key_; |
2656 | 0 | } |
2657 | | |
2658 | 0 | void dup_key(::yb::Slice value) { |
2659 | 0 | has_fields_.Set(LightweightResponsePB_MapEntry_DoNotUseFields::kKey); |
2660 | 0 | key_ = arena_.DupSlice(value); |
2661 | 0 | } |
2662 | | |
2663 | 11 | void ref_key(::yb::Slice value) { |
2664 | 11 | has_fields_.Set(LightweightResponsePB_MapEntry_DoNotUseFields::kKey); |
2665 | 11 | key_ = value; |
2666 | 11 | } |
2667 | | |
2668 | 0 | ::yb::Slice* mutable_key() { |
2669 | 0 | has_fields_.Set(LightweightResponsePB_MapEntry_DoNotUseFields::kKey); |
2670 | 0 | return &key_; |
2671 | 0 | } |
2672 | | |
2673 | 33 | bool has_key() const { |
2674 | 33 | return has_fields_.Test(LightweightResponsePB_MapEntry_DoNotUseFields::kKey); |
2675 | 33 | } |
2676 | | |
2677 | 0 | void clear_key() { |
2678 | 0 | key_ = ::yb::Slice(); |
2679 | 0 | has_fields_.Reset(LightweightResponsePB_MapEntry_DoNotUseFields::kKey); |
2680 | 0 | } |
2681 | | |
2682 | 0 | int64_t value() const { |
2683 | 0 | return value_; |
2684 | 0 | } |
2685 | | |
2686 | 11 | void set_value(int64_t value) { |
2687 | 11 | has_fields_.Set(LightweightResponsePB_MapEntry_DoNotUseFields::kValue); |
2688 | 11 | value_ = value; |
2689 | 11 | } |
2690 | | |
2691 | 0 | int64_t* mutable_value() { |
2692 | 0 | has_fields_.Set(LightweightResponsePB_MapEntry_DoNotUseFields::kValue); |
2693 | 0 | return &value_; |
2694 | 0 | } |
2695 | | |
2696 | 33 | bool has_value() const { |
2697 | 33 | return has_fields_.Test(LightweightResponsePB_MapEntry_DoNotUseFields::kValue); |
2698 | 33 | } |
2699 | | |
2700 | 0 | void clear_value() { |
2701 | 0 | value_ = int64_t(); |
2702 | 0 | has_fields_.Reset(LightweightResponsePB_MapEntry_DoNotUseFields::kValue); |
2703 | 0 | } |
2704 | | |
2705 | 0 | ::yb::Arena& arena() const { |
2706 | 0 | return arena_;} |
2707 | | |
2708 | 11 | size_t cached_size() const { |
2709 | 11 | return cached_size_; |
2710 | 11 | } |
2711 | | |
2712 | | private: |
2713 | | ::yb::Arena& arena_; |
2714 | | ::yb::EnumBitSet<LightweightResponsePB_MapEntry_DoNotUseFields> has_fields_; |
2715 | | mutable size_t cached_size_ = 0; |
2716 | | ::yb::Slice key_ = ::yb::Slice(); |
2717 | | int64_t value_ = int64_t(); |
2718 | | }; |
2719 | | |
2720 | | YB_DEFINE_ENUM(LightweightResponsePBFields, |
2721 | | (kI32) |
2722 | | (kI64) |
2723 | | (kF32) |
2724 | | (kF64) |
2725 | | (kU32) |
2726 | | (kU64) |
2727 | | (kR32) |
2728 | | (kR64) |
2729 | | (kStr) |
2730 | | (kBytes) |
2731 | | (kEn) |
2732 | | (kSf32) |
2733 | | (kSf64) |
2734 | | (kSi32) |
2735 | | (kSi64) |
2736 | | (kMessage) |
2737 | | (kShortDebugString) |
2738 | | ); |
2739 | | |
2740 | | class LWLightweightResponsePB : public ::yb::rpc::LightweightMessage { |
2741 | | public: |
2742 | | explicit LWLightweightResponsePB(::yb::Arena* arena); |
2743 | | LWLightweightResponsePB(::yb::Arena* arena, const LWLightweightResponsePB& rhs); |
2744 | | |
2745 | | LWLightweightResponsePB(::yb::Arena* arena, const LightweightResponsePB& rhs) |
2746 | 0 | : LWLightweightResponsePB(arena) { |
2747 | 0 | CopyFrom(rhs); |
2748 | 0 | } |
2749 | | |
2750 | 0 | void operator=(const LWLightweightResponsePB& rhs) { |
2751 | 0 | CopyFrom(rhs); |
2752 | 0 | } |
2753 | | |
2754 | 0 | void operator=(const LightweightResponsePB& rhs) { |
2755 | 0 | CopyFrom(rhs); |
2756 | 0 | } |
2757 | | |
2758 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
2759 | | size_t SerializedSize() const override; |
2760 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
2761 | | void AppendToDebugString(std::string* out) const override; |
2762 | | |
2763 | | void Clear() override; |
2764 | | void CopyFrom(const LWLightweightResponsePB& rhs); |
2765 | | void CopyFrom(const LightweightResponsePB& rhs); |
2766 | | |
2767 | | void ToGoogleProtobuf(LightweightResponsePB* out) const; |
2768 | | |
2769 | 2 | LightweightResponsePB ToGoogleProtobuf() const { |
2770 | 2 | LightweightResponsePB result; |
2771 | 2 | ToGoogleProtobuf(&result); |
2772 | 2 | return result; |
2773 | 2 | } |
2774 | | |
2775 | | using LWMapEntry = ::yb::rpc_test::LWLightweightResponsePB_LWMapEntry_DoNotUse; |
2776 | | |
2777 | 2 | int32_t i32() const { |
2778 | 2 | return i32_; |
2779 | 2 | } |
2780 | | |
2781 | 1 | void set_i32(int32_t value) { |
2782 | 1 | has_fields_.Set(LightweightResponsePBFields::kI32); |
2783 | 1 | i32_ = value; |
2784 | 1 | } |
2785 | | |
2786 | 0 | int32_t* mutable_i32() { |
2787 | 0 | has_fields_.Set(LightweightResponsePBFields::kI32); |
2788 | 0 | return &i32_; |
2789 | 0 | } |
2790 | | |
2791 | 7 | bool has_i32() const { |
2792 | 7 | return has_fields_.Test(LightweightResponsePBFields::kI32); |
2793 | 7 | } |
2794 | | |
2795 | 0 | void clear_i32() { |
2796 | 0 | i32_ = int32_t(); |
2797 | 0 | has_fields_.Reset(LightweightResponsePBFields::kI32); |
2798 | 0 | } |
2799 | | |
2800 | 2 | int64_t i64() const { |
2801 | 2 | return i64_; |
2802 | 2 | } |
2803 | | |
2804 | 1 | void set_i64(int64_t value) { |
2805 | 1 | has_fields_.Set(LightweightResponsePBFields::kI64); |
2806 | 1 | i64_ = value; |
2807 | 1 | } |
2808 | | |
2809 | 0 | int64_t* mutable_i64() { |
2810 | 0 | has_fields_.Set(LightweightResponsePBFields::kI64); |
2811 | 0 | return &i64_; |
2812 | 0 | } |
2813 | | |
2814 | 7 | bool has_i64() const { |
2815 | 7 | return has_fields_.Test(LightweightResponsePBFields::kI64); |
2816 | 7 | } |
2817 | | |
2818 | 0 | void clear_i64() { |
2819 | 0 | i64_ = int64_t(); |
2820 | 0 | has_fields_.Reset(LightweightResponsePBFields::kI64); |
2821 | 0 | } |
2822 | | |
2823 | 2 | uint32_t f32() const { |
2824 | 2 | return f32_; |
2825 | 2 | } |
2826 | | |
2827 | 1 | void set_f32(uint32_t value) { |
2828 | 1 | has_fields_.Set(LightweightResponsePBFields::kF32); |
2829 | 1 | f32_ = value; |
2830 | 1 | } |
2831 | | |
2832 | 0 | uint32_t* mutable_f32() { |
2833 | 0 | has_fields_.Set(LightweightResponsePBFields::kF32); |
2834 | 0 | return &f32_; |
2835 | 0 | } |
2836 | | |
2837 | 7 | bool has_f32() const { |
2838 | 7 | return has_fields_.Test(LightweightResponsePBFields::kF32); |
2839 | 7 | } |
2840 | | |
2841 | 0 | void clear_f32() { |
2842 | 0 | f32_ = uint32_t(); |
2843 | 0 | has_fields_.Reset(LightweightResponsePBFields::kF32); |
2844 | 0 | } |
2845 | | |
2846 | 2 | uint64_t f64() const { |
2847 | 2 | return f64_; |
2848 | 2 | } |
2849 | | |
2850 | 1 | void set_f64(uint64_t value) { |
2851 | 1 | has_fields_.Set(LightweightResponsePBFields::kF64); |
2852 | 1 | f64_ = value; |
2853 | 1 | } |
2854 | | |
2855 | 0 | uint64_t* mutable_f64() { |
2856 | 0 | has_fields_.Set(LightweightResponsePBFields::kF64); |
2857 | 0 | return &f64_; |
2858 | 0 | } |
2859 | | |
2860 | 7 | bool has_f64() const { |
2861 | 7 | return has_fields_.Test(LightweightResponsePBFields::kF64); |
2862 | 7 | } |
2863 | | |
2864 | 0 | void clear_f64() { |
2865 | 0 | f64_ = uint64_t(); |
2866 | 0 | has_fields_.Reset(LightweightResponsePBFields::kF64); |
2867 | 0 | } |
2868 | | |
2869 | 2 | uint32_t u32() const { |
2870 | 2 | return u32_; |
2871 | 2 | } |
2872 | | |
2873 | 1 | void set_u32(uint32_t value) { |
2874 | 1 | has_fields_.Set(LightweightResponsePBFields::kU32); |
2875 | 1 | u32_ = value; |
2876 | 1 | } |
2877 | | |
2878 | 0 | uint32_t* mutable_u32() { |
2879 | 0 | has_fields_.Set(LightweightResponsePBFields::kU32); |
2880 | 0 | return &u32_; |
2881 | 0 | } |
2882 | | |
2883 | 7 | bool has_u32() const { |
2884 | 7 | return has_fields_.Test(LightweightResponsePBFields::kU32); |
2885 | 7 | } |
2886 | | |
2887 | 0 | void clear_u32() { |
2888 | 0 | u32_ = uint32_t(); |
2889 | 0 | has_fields_.Reset(LightweightResponsePBFields::kU32); |
2890 | 0 | } |
2891 | | |
2892 | 2 | uint64_t u64() const { |
2893 | 2 | return u64_; |
2894 | 2 | } |
2895 | | |
2896 | 1 | void set_u64(uint64_t value) { |
2897 | 1 | has_fields_.Set(LightweightResponsePBFields::kU64); |
2898 | 1 | u64_ = value; |
2899 | 1 | } |
2900 | | |
2901 | 0 | uint64_t* mutable_u64() { |
2902 | 0 | has_fields_.Set(LightweightResponsePBFields::kU64); |
2903 | 0 | return &u64_; |
2904 | 0 | } |
2905 | | |
2906 | 7 | bool has_u64() const { |
2907 | 7 | return has_fields_.Test(LightweightResponsePBFields::kU64); |
2908 | 7 | } |
2909 | | |
2910 | 0 | void clear_u64() { |
2911 | 0 | u64_ = uint64_t(); |
2912 | 0 | has_fields_.Reset(LightweightResponsePBFields::kU64); |
2913 | 0 | } |
2914 | | |
2915 | 2 | float r32() const { |
2916 | 2 | return r32_; |
2917 | 2 | } |
2918 | | |
2919 | 1 | void set_r32(float value) { |
2920 | 1 | has_fields_.Set(LightweightResponsePBFields::kR32); |
2921 | 1 | r32_ = value; |
2922 | 1 | } |
2923 | | |
2924 | 0 | float* mutable_r32() { |
2925 | 0 | has_fields_.Set(LightweightResponsePBFields::kR32); |
2926 | 0 | return &r32_; |
2927 | 0 | } |
2928 | | |
2929 | 7 | bool has_r32() const { |
2930 | 7 | return has_fields_.Test(LightweightResponsePBFields::kR32); |
2931 | 7 | } |
2932 | | |
2933 | 0 | void clear_r32() { |
2934 | 0 | r32_ = float(); |
2935 | 0 | has_fields_.Reset(LightweightResponsePBFields::kR32); |
2936 | 0 | } |
2937 | | |
2938 | 2 | double r64() const { |
2939 | 2 | return r64_; |
2940 | 2 | } |
2941 | | |
2942 | 1 | void set_r64(double value) { |
2943 | 1 | has_fields_.Set(LightweightResponsePBFields::kR64); |
2944 | 1 | r64_ = value; |
2945 | 1 | } |
2946 | | |
2947 | 0 | double* mutable_r64() { |
2948 | 0 | has_fields_.Set(LightweightResponsePBFields::kR64); |
2949 | 0 | return &r64_; |
2950 | 0 | } |
2951 | | |
2952 | 7 | bool has_r64() const { |
2953 | 7 | return has_fields_.Test(LightweightResponsePBFields::kR64); |
2954 | 7 | } |
2955 | | |
2956 | 0 | void clear_r64() { |
2957 | 0 | r64_ = double(); |
2958 | 0 | has_fields_.Reset(LightweightResponsePBFields::kR64); |
2959 | 0 | } |
2960 | | |
2961 | 2 | ::yb::Slice str() const { |
2962 | 2 | return str_; |
2963 | 2 | } |
2964 | | |
2965 | 0 | void dup_str(::yb::Slice value) { |
2966 | 0 | has_fields_.Set(LightweightResponsePBFields::kStr); |
2967 | 0 | str_ = arena_.DupSlice(value); |
2968 | 0 | } |
2969 | | |
2970 | 1 | void ref_str(::yb::Slice value) { |
2971 | 1 | has_fields_.Set(LightweightResponsePBFields::kStr); |
2972 | 1 | str_ = value; |
2973 | 1 | } |
2974 | | |
2975 | 0 | ::yb::Slice* mutable_str() { |
2976 | 0 | has_fields_.Set(LightweightResponsePBFields::kStr); |
2977 | 0 | return &str_; |
2978 | 0 | } |
2979 | | |
2980 | 7 | bool has_str() const { |
2981 | 7 | return has_fields_.Test(LightweightResponsePBFields::kStr); |
2982 | 7 | } |
2983 | | |
2984 | 0 | void clear_str() { |
2985 | 0 | str_ = ::yb::Slice(); |
2986 | 0 | has_fields_.Reset(LightweightResponsePBFields::kStr); |
2987 | 0 | } |
2988 | | |
2989 | 2 | ::yb::Slice bytes() const { |
2990 | 2 | return bytes_; |
2991 | 2 | } |
2992 | | |
2993 | 0 | void dup_bytes(::yb::Slice value) { |
2994 | 0 | has_fields_.Set(LightweightResponsePBFields::kBytes); |
2995 | 0 | bytes_ = arena_.DupSlice(value); |
2996 | 0 | } |
2997 | | |
2998 | 1 | void ref_bytes(::yb::Slice value) { |
2999 | 1 | has_fields_.Set(LightweightResponsePBFields::kBytes); |
3000 | 1 | bytes_ = value; |
3001 | 1 | } |
3002 | | |
3003 | 0 | ::yb::Slice* mutable_bytes() { |
3004 | 0 | has_fields_.Set(LightweightResponsePBFields::kBytes); |
3005 | 0 | return &bytes_; |
3006 | 0 | } |
3007 | | |
3008 | 7 | bool has_bytes() const { |
3009 | 7 | return has_fields_.Test(LightweightResponsePBFields::kBytes); |
3010 | 7 | } |
3011 | | |
3012 | 0 | void clear_bytes() { |
3013 | 0 | bytes_ = ::yb::Slice(); |
3014 | 0 | has_fields_.Reset(LightweightResponsePBFields::kBytes); |
3015 | 0 | } |
3016 | | |
3017 | 2 | ::yb::rpc_test::LightweightEnum en() const { |
3018 | 2 | return en_; |
3019 | 2 | } |
3020 | | |
3021 | 1 | void set_en(::yb::rpc_test::LightweightEnum value) { |
3022 | 1 | has_fields_.Set(LightweightResponsePBFields::kEn); |
3023 | 1 | en_ = value; |
3024 | 1 | } |
3025 | | |
3026 | 0 | ::yb::rpc_test::LightweightEnum* mutable_en() { |
3027 | 0 | has_fields_.Set(LightweightResponsePBFields::kEn); |
3028 | 0 | return &en_; |
3029 | 0 | } |
3030 | | |
3031 | 7 | bool has_en() const { |
3032 | 7 | return has_fields_.Test(LightweightResponsePBFields::kEn); |
3033 | 7 | } |
3034 | | |
3035 | 0 | void clear_en() { |
3036 | 0 | en_ = ::yb::rpc_test::LightweightEnum(); |
3037 | 0 | has_fields_.Reset(LightweightResponsePBFields::kEn); |
3038 | 0 | } |
3039 | | |
3040 | 2 | int32_t sf32() const { |
3041 | 2 | return sf32_; |
3042 | 2 | } |
3043 | | |
3044 | 1 | void set_sf32(int32_t value) { |
3045 | 1 | has_fields_.Set(LightweightResponsePBFields::kSf32); |
3046 | 1 | sf32_ = value; |
3047 | 1 | } |
3048 | | |
3049 | 0 | int32_t* mutable_sf32() { |
3050 | 0 | has_fields_.Set(LightweightResponsePBFields::kSf32); |
3051 | 0 | return &sf32_; |
3052 | 0 | } |
3053 | | |
3054 | 7 | bool has_sf32() const { |
3055 | 7 | return has_fields_.Test(LightweightResponsePBFields::kSf32); |
3056 | 7 | } |
3057 | | |
3058 | 0 | void clear_sf32() { |
3059 | 0 | sf32_ = int32_t(); |
3060 | 0 | has_fields_.Reset(LightweightResponsePBFields::kSf32); |
3061 | 0 | } |
3062 | | |
3063 | 2 | int64_t sf64() const { |
3064 | 2 | return sf64_; |
3065 | 2 | } |
3066 | | |
3067 | 1 | void set_sf64(int64_t value) { |
3068 | 1 | has_fields_.Set(LightweightResponsePBFields::kSf64); |
3069 | 1 | sf64_ = value; |
3070 | 1 | } |
3071 | | |
3072 | 0 | int64_t* mutable_sf64() { |
3073 | 0 | has_fields_.Set(LightweightResponsePBFields::kSf64); |
3074 | 0 | return &sf64_; |
3075 | 0 | } |
3076 | | |
3077 | 7 | bool has_sf64() const { |
3078 | 7 | return has_fields_.Test(LightweightResponsePBFields::kSf64); |
3079 | 7 | } |
3080 | | |
3081 | 0 | void clear_sf64() { |
3082 | 0 | sf64_ = int64_t(); |
3083 | 0 | has_fields_.Reset(LightweightResponsePBFields::kSf64); |
3084 | 0 | } |
3085 | | |
3086 | 2 | int32_t si32() const { |
3087 | 2 | return si32_; |
3088 | 2 | } |
3089 | | |
3090 | 1 | void set_si32(int32_t value) { |
3091 | 1 | has_fields_.Set(LightweightResponsePBFields::kSi32); |
3092 | 1 | si32_ = value; |
3093 | 1 | } |
3094 | | |
3095 | 0 | int32_t* mutable_si32() { |
3096 | 0 | has_fields_.Set(LightweightResponsePBFields::kSi32); |
3097 | 0 | return &si32_; |
3098 | 0 | } |
3099 | | |
3100 | 7 | bool has_si32() const { |
3101 | 7 | return has_fields_.Test(LightweightResponsePBFields::kSi32); |
3102 | 7 | } |
3103 | | |
3104 | 0 | void clear_si32() { |
3105 | 0 | si32_ = int32_t(); |
3106 | 0 | has_fields_.Reset(LightweightResponsePBFields::kSi32); |
3107 | 0 | } |
3108 | | |
3109 | 2 | int64_t si64() const { |
3110 | 2 | return si64_; |
3111 | 2 | } |
3112 | | |
3113 | 1 | void set_si64(int64_t value) { |
3114 | 1 | has_fields_.Set(LightweightResponsePBFields::kSi64); |
3115 | 1 | si64_ = value; |
3116 | 1 | } |
3117 | | |
3118 | 0 | int64_t* mutable_si64() { |
3119 | 0 | has_fields_.Set(LightweightResponsePBFields::kSi64); |
3120 | 0 | return &si64_; |
3121 | 0 | } |
3122 | | |
3123 | 7 | bool has_si64() const { |
3124 | 7 | return has_fields_.Test(LightweightResponsePBFields::kSi64); |
3125 | 7 | } |
3126 | | |
3127 | 0 | void clear_si64() { |
3128 | 0 | si64_ = int64_t(); |
3129 | 0 | has_fields_.Reset(LightweightResponsePBFields::kSi64); |
3130 | 0 | } |
3131 | | |
3132 | 0 | const ::yb::MCVector<uint32_t>& ru32() const { |
3133 | 0 | return ru32_; |
3134 | 0 | } |
3135 | | |
3136 | 1 | ::yb::MCVector<uint32_t>* mutable_ru32() { |
3137 | 1 | return &ru32_; |
3138 | 1 | } |
3139 | | |
3140 | 0 | const ::yb::MCVector<uint32_t>& rf32() const { |
3141 | 0 | return rf32_; |
3142 | 0 | } |
3143 | | |
3144 | 1 | ::yb::MCVector<uint32_t>* mutable_rf32() { |
3145 | 1 | return &rf32_; |
3146 | 1 | } |
3147 | | |
3148 | 0 | const ::yb::MCVector<::yb::Slice>& rstr() const { |
3149 | 0 | return rstr_; |
3150 | 0 | } |
3151 | | |
3152 | 1 | ::yb::MCVector<::yb::Slice>* mutable_rstr() { |
3153 | 1 | return &rstr_; |
3154 | 1 | } |
3155 | | |
3156 | 4 | const ::yb::rpc_test::LWLightweightSubMessagePB& message() const { |
3157 | 4 | return message_; |
3158 | 4 | } |
3159 | | |
3160 | 1 | ::yb::rpc_test::LWLightweightSubMessagePB* mutable_message() { |
3161 | 1 | has_fields_.Set(LightweightResponsePBFields::kMessage); |
3162 | 1 | return &message_; |
3163 | 1 | } |
3164 | | |
3165 | 7 | bool has_message() const { |
3166 | 7 | return has_fields_.Test(LightweightResponsePBFields::kMessage); |
3167 | 7 | } |
3168 | | |
3169 | 0 | void clear_message() { |
3170 | 0 | message_.Clear(); |
3171 | 0 | has_fields_.Reset(LightweightResponsePBFields::kMessage); |
3172 | 0 | } |
3173 | | |
3174 | 2 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>& repeated_messages() const { |
3175 | 2 | return repeated_messages_; |
3176 | 2 | } |
3177 | | |
3178 | 5 | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>* mutable_repeated_messages() { |
3179 | 5 | return &repeated_messages_; |
3180 | 5 | } |
3181 | | |
3182 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB* add_repeated_messages() { |
3183 | 0 | return &repeated_messages_.emplace_back(); |
3184 | 0 | } |
3185 | | |
3186 | 2 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>& repeated_messages_copy() const { |
3187 | 2 | return repeated_messages_copy_; |
3188 | 2 | } |
3189 | | |
3190 | 5 | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB>* mutable_repeated_messages_copy() { |
3191 | 5 | return &repeated_messages_copy_; |
3192 | 5 | } |
3193 | | |
3194 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB* add_repeated_messages_copy() { |
3195 | 0 | return &repeated_messages_copy_.emplace_back(); |
3196 | 0 | } |
3197 | | |
3198 | 0 | const ::yb::MCVector<uint64_t>& packed_u64() const { |
3199 | 0 | return packed_u64_; |
3200 | 0 | } |
3201 | | |
3202 | 1 | ::yb::MCVector<uint64_t>* mutable_packed_u64() { |
3203 | 1 | return &packed_u64_; |
3204 | 1 | } |
3205 | | |
3206 | 0 | const ::yb::MCVector<uint32_t>& packed_f32() const { |
3207 | 0 | return packed_f32_; |
3208 | 0 | } |
3209 | | |
3210 | 1 | ::yb::MCVector<uint32_t>* mutable_packed_f32() { |
3211 | 1 | return &packed_f32_; |
3212 | 1 | } |
3213 | | |
3214 | 2 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB>& pairs() const { |
3215 | 2 | return pairs_; |
3216 | 2 | } |
3217 | | |
3218 | 0 | ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB>* mutable_pairs() { |
3219 | 0 | return &pairs_; |
3220 | 0 | } |
3221 | | |
3222 | 13 | ::yb::rpc_test::LWLightweightPairPB* add_pairs() { |
3223 | 13 | return &pairs_.emplace_back(); |
3224 | 13 | } |
3225 | | |
3226 | 4 | const ::yb::rpc_test::LWLightweightSubMessagePB& ptr_message() const { |
3227 | 4 | return ptr_message_ ? *ptr_message_ : ::yb::rpc::empty_message<::yb::rpc_test::LWLightweightSubMessagePB>(); |
3228 | 4 | } |
3229 | | |
3230 | 1 | ::yb::rpc_test::LWLightweightSubMessagePB& ref_ptr_message(::yb::rpc_test::LWLightweightSubMessagePB* value) { |
3231 | 1 | ptr_message_ = value; |
3232 | 1 | return *ptr_message_; |
3233 | 1 | } |
3234 | | |
3235 | 0 | ::yb::rpc_test::LWLightweightSubMessagePB* mutable_ptr_message() { |
3236 | 0 | if (!ptr_message_) { |
3237 | 0 | ptr_message_ = arena_.NewObject<::yb::rpc_test::LWLightweightSubMessagePB>(&arena_); |
3238 | 0 | } |
3239 | 0 | return ptr_message_; |
3240 | 0 | } |
3241 | | |
3242 | 7 | bool has_ptr_message() const { |
3243 | 7 | return ptr_message_ != nullptr; |
3244 | 7 | } |
3245 | | |
3246 | 0 | void clear_ptr_message() { |
3247 | 0 | ptr_message_ = nullptr; |
3248 | 0 | } |
3249 | | |
3250 | 0 | const ::yb::ArenaList<::yb::rpc_test::LWLightweightResponsePB_LWMapEntry_DoNotUse>& map() const { |
3251 | 0 | return map_; |
3252 | 0 | } |
3253 | | |
3254 | 0 | ::yb::ArenaList<::yb::rpc_test::LWLightweightResponsePB_LWMapEntry_DoNotUse>* mutable_map() { |
3255 | 0 | return &map_; |
3256 | 0 | } |
3257 | | |
3258 | 11 | ::yb::rpc_test::LWLightweightResponsePB_LWMapEntry_DoNotUse* add_map() { |
3259 | 11 | return &map_.emplace_back(); |
3260 | 11 | } |
3261 | | |
3262 | 0 | ::yb::Slice short_debug_string() const { |
3263 | 0 | return short_debug_string_; |
3264 | 0 | } |
3265 | | |
3266 | 1 | void dup_short_debug_string(::yb::Slice value) { |
3267 | 1 | has_fields_.Set(LightweightResponsePBFields::kShortDebugString); |
3268 | 1 | short_debug_string_ = arena_.DupSlice(value); |
3269 | 1 | } |
3270 | | |
3271 | 0 | void ref_short_debug_string(::yb::Slice value) { |
3272 | 0 | has_fields_.Set(LightweightResponsePBFields::kShortDebugString); |
3273 | 0 | short_debug_string_ = value; |
3274 | 0 | } |
3275 | | |
3276 | 0 | ::yb::Slice* mutable_short_debug_string() { |
3277 | 0 | has_fields_.Set(LightweightResponsePBFields::kShortDebugString); |
3278 | 0 | return &short_debug_string_; |
3279 | 0 | } |
3280 | | |
3281 | 7 | bool has_short_debug_string() const { |
3282 | 7 | return has_fields_.Test(LightweightResponsePBFields::kShortDebugString); |
3283 | 7 | } |
3284 | | |
3285 | 0 | void clear_short_debug_string() { |
3286 | 0 | short_debug_string_ = ::yb::Slice(); |
3287 | 0 | has_fields_.Reset(LightweightResponsePBFields::kShortDebugString); |
3288 | 0 | } |
3289 | | |
3290 | 0 | ::yb::Arena& arena() const { |
3291 | 0 | return arena_;} |
3292 | | |
3293 | 0 | size_t cached_size() const { |
3294 | 0 | return cached_size_; |
3295 | 0 | } |
3296 | | |
3297 | | private: |
3298 | | ::yb::Arena& arena_; |
3299 | | ::yb::EnumBitSet<LightweightResponsePBFields> has_fields_; |
3300 | | mutable size_t cached_size_ = 0; |
3301 | | int32_t i32_ = int32_t(); |
3302 | | int64_t i64_ = int64_t(); |
3303 | | uint32_t f32_ = uint32_t(); |
3304 | | uint64_t f64_ = uint64_t(); |
3305 | | uint32_t u32_ = uint32_t(); |
3306 | | uint64_t u64_ = uint64_t(); |
3307 | | float r32_ = float(); |
3308 | | double r64_ = double(); |
3309 | | ::yb::Slice str_ = ::yb::Slice(); |
3310 | | ::yb::Slice bytes_ = ::yb::Slice(); |
3311 | | ::yb::rpc_test::LightweightEnum en_ = ::yb::rpc_test::LightweightEnum(); |
3312 | | int32_t sf32_ = int32_t(); |
3313 | | int64_t sf64_ = int64_t(); |
3314 | | int32_t si32_ = int32_t(); |
3315 | | int64_t si64_ = int64_t(); |
3316 | | ::yb::MCVector<uint32_t> ru32_; |
3317 | | ::yb::MCVector<uint32_t> rf32_; |
3318 | | ::yb::MCVector<::yb::Slice> rstr_; |
3319 | | ::yb::rpc_test::LWLightweightSubMessagePB message_; |
3320 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB> repeated_messages_; |
3321 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightSubMessagePB> repeated_messages_copy_; |
3322 | | ::yb::MCVector<uint64_t> packed_u64_; |
3323 | | mutable size_t packed_u64_cached_size_ = 0; |
3324 | | ::yb::MCVector<uint32_t> packed_f32_; |
3325 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightPairPB> pairs_; |
3326 | | ::yb::rpc_test::LWLightweightSubMessagePB* ptr_message_ = nullptr; |
3327 | | ::yb::ArenaList<::yb::rpc_test::LWLightweightResponsePB_LWMapEntry_DoNotUse> map_; |
3328 | | ::yb::Slice short_debug_string_ = ::yb::Slice(); |
3329 | | }; |
3330 | | |
3331 | | YB_DEFINE_ENUM(TrivialRequestPBFields, |
3332 | | (kValue) |
3333 | | ); |
3334 | | |
3335 | | class LWTrivialRequestPB : public ::yb::rpc::LightweightMessage { |
3336 | | public: |
3337 | | explicit LWTrivialRequestPB(::yb::Arena* arena); |
3338 | | LWTrivialRequestPB(::yb::Arena* arena, const LWTrivialRequestPB& rhs); |
3339 | | |
3340 | | LWTrivialRequestPB(::yb::Arena* arena, const TrivialRequestPB& rhs) |
3341 | 0 | : LWTrivialRequestPB(arena) { |
3342 | 0 | CopyFrom(rhs); |
3343 | 0 | } |
3344 | | |
3345 | 0 | void operator=(const LWTrivialRequestPB& rhs) { |
3346 | 0 | CopyFrom(rhs); |
3347 | 0 | } |
3348 | | |
3349 | 0 | void operator=(const TrivialRequestPB& rhs) { |
3350 | 0 | CopyFrom(rhs); |
3351 | 0 | } |
3352 | | |
3353 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
3354 | | size_t SerializedSize() const override; |
3355 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
3356 | | void AppendToDebugString(std::string* out) const override; |
3357 | | |
3358 | | void Clear() override; |
3359 | | void CopyFrom(const LWTrivialRequestPB& rhs); |
3360 | | void CopyFrom(const TrivialRequestPB& rhs); |
3361 | | |
3362 | | void ToGoogleProtobuf(TrivialRequestPB* out) const; |
3363 | | |
3364 | 0 | TrivialRequestPB ToGoogleProtobuf() const { |
3365 | 0 | TrivialRequestPB result; |
3366 | 0 | ToGoogleProtobuf(&result); |
3367 | 0 | return result; |
3368 | 0 | } |
3369 | | |
3370 | 0 | int32_t value() const { |
3371 | 0 | return value_; |
3372 | 0 | } |
3373 | | |
3374 | 0 | void set_value(int32_t value) { |
3375 | 0 | has_fields_.Set(TrivialRequestPBFields::kValue); |
3376 | 0 | value_ = value; |
3377 | 0 | } |
3378 | | |
3379 | 0 | int32_t* mutable_value() { |
3380 | 0 | has_fields_.Set(TrivialRequestPBFields::kValue); |
3381 | 0 | return &value_; |
3382 | 0 | } |
3383 | | |
3384 | 0 | bool has_value() const { |
3385 | 0 | return has_fields_.Test(TrivialRequestPBFields::kValue); |
3386 | 0 | } |
3387 | | |
3388 | 0 | void clear_value() { |
3389 | 0 | value_ = int32_t(); |
3390 | 0 | has_fields_.Reset(TrivialRequestPBFields::kValue); |
3391 | 0 | } |
3392 | | |
3393 | 0 | size_t cached_size() const { |
3394 | 0 | return cached_size_; |
3395 | 0 | } |
3396 | | |
3397 | | private: |
3398 | | ::yb::EnumBitSet<TrivialRequestPBFields> has_fields_; |
3399 | | mutable size_t cached_size_ = 0; |
3400 | | int32_t value_ = int32_t(); |
3401 | | }; |
3402 | | |
3403 | | YB_DEFINE_ENUM(TrivialErrorPBFields, |
3404 | | (kCode) |
3405 | | ); |
3406 | | |
3407 | | class LWTrivialErrorPB : public ::yb::rpc::LightweightMessage { |
3408 | | public: |
3409 | | explicit LWTrivialErrorPB(::yb::Arena* arena); |
3410 | | LWTrivialErrorPB(::yb::Arena* arena, const LWTrivialErrorPB& rhs); |
3411 | | |
3412 | | LWTrivialErrorPB(::yb::Arena* arena, const TrivialErrorPB& rhs) |
3413 | 0 | : LWTrivialErrorPB(arena) { |
3414 | 0 | CopyFrom(rhs); |
3415 | 0 | } |
3416 | | |
3417 | 0 | void operator=(const LWTrivialErrorPB& rhs) { |
3418 | 0 | CopyFrom(rhs); |
3419 | 0 | } |
3420 | | |
3421 | 0 | void operator=(const TrivialErrorPB& rhs) { |
3422 | 0 | CopyFrom(rhs); |
3423 | 0 | } |
3424 | | |
3425 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
3426 | | size_t SerializedSize() const override; |
3427 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
3428 | | void AppendToDebugString(std::string* out) const override; |
3429 | | |
3430 | | void Clear() override; |
3431 | | void CopyFrom(const LWTrivialErrorPB& rhs); |
3432 | | void CopyFrom(const TrivialErrorPB& rhs); |
3433 | | |
3434 | | void ToGoogleProtobuf(TrivialErrorPB* out) const; |
3435 | | |
3436 | 0 | TrivialErrorPB ToGoogleProtobuf() const { |
3437 | 0 | TrivialErrorPB result; |
3438 | 0 | ToGoogleProtobuf(&result); |
3439 | 0 | return result; |
3440 | 0 | } |
3441 | | |
3442 | 0 | int32_t code() const { |
3443 | 0 | return code_; |
3444 | 0 | } |
3445 | | |
3446 | 0 | void set_code(int32_t value) { |
3447 | 0 | has_fields_.Set(TrivialErrorPBFields::kCode); |
3448 | 0 | code_ = value; |
3449 | 0 | } |
3450 | | |
3451 | 0 | int32_t* mutable_code() { |
3452 | 0 | has_fields_.Set(TrivialErrorPBFields::kCode); |
3453 | 0 | return &code_; |
3454 | 0 | } |
3455 | | |
3456 | 0 | bool has_code() const { |
3457 | 0 | return has_fields_.Test(TrivialErrorPBFields::kCode); |
3458 | 0 | } |
3459 | | |
3460 | 0 | void clear_code() { |
3461 | 0 | code_ = int32_t(); |
3462 | 0 | has_fields_.Reset(TrivialErrorPBFields::kCode); |
3463 | 0 | } |
3464 | | |
3465 | 0 | size_t cached_size() const { |
3466 | 0 | return cached_size_; |
3467 | 0 | } |
3468 | | |
3469 | | private: |
3470 | | ::yb::EnumBitSet<TrivialErrorPBFields> has_fields_; |
3471 | | mutable size_t cached_size_ = 0; |
3472 | | int32_t code_ = int32_t(); |
3473 | | }; |
3474 | | |
3475 | | YB_DEFINE_ENUM(TrivialResponsePBFields, |
3476 | | (kError) |
3477 | | (kValue) |
3478 | | ); |
3479 | | |
3480 | | class LWTrivialResponsePB : public ::yb::rpc::LightweightMessage { |
3481 | | public: |
3482 | | explicit LWTrivialResponsePB(::yb::Arena* arena); |
3483 | | LWTrivialResponsePB(::yb::Arena* arena, const LWTrivialResponsePB& rhs); |
3484 | | |
3485 | | LWTrivialResponsePB(::yb::Arena* arena, const TrivialResponsePB& rhs) |
3486 | 0 | : LWTrivialResponsePB(arena) { |
3487 | 0 | CopyFrom(rhs); |
3488 | 0 | } |
3489 | | |
3490 | 0 | void operator=(const LWTrivialResponsePB& rhs) { |
3491 | 0 | CopyFrom(rhs); |
3492 | 0 | } |
3493 | | |
3494 | 0 | void operator=(const TrivialResponsePB& rhs) { |
3495 | 0 | CopyFrom(rhs); |
3496 | 0 | } |
3497 | | |
3498 | | CHECKED_STATUS ParseFromCodedStream(google::protobuf::io::CodedInputStream* cis) override; |
3499 | | size_t SerializedSize() const override; |
3500 | | uint8_t* SerializeToArray(uint8_t* out) const override; |
3501 | | void AppendToDebugString(std::string* out) const override; |
3502 | | |
3503 | | void Clear() override; |
3504 | | void CopyFrom(const LWTrivialResponsePB& rhs); |
3505 | | void CopyFrom(const TrivialResponsePB& rhs); |
3506 | | |
3507 | | void ToGoogleProtobuf(TrivialResponsePB* out) const; |
3508 | | |
3509 | 0 | TrivialResponsePB ToGoogleProtobuf() const { |
3510 | 0 | TrivialResponsePB result; |
3511 | 0 | ToGoogleProtobuf(&result); |
3512 | 0 | return result; |
3513 | 0 | } |
3514 | | |
3515 | 0 | const ::yb::rpc_test::LWTrivialErrorPB& error() const { |
3516 | 0 | return error_; |
3517 | 0 | } |
3518 | | |
3519 | 0 | ::yb::rpc_test::LWTrivialErrorPB* mutable_error() { |
3520 | 0 | has_fields_.Set(TrivialResponsePBFields::kError); |
3521 | 0 | return &error_; |
3522 | 0 | } |
3523 | | |
3524 | 0 | bool has_error() const { |
3525 | 0 | return has_fields_.Test(TrivialResponsePBFields::kError); |
3526 | 0 | } |
3527 | | |
3528 | 0 | void clear_error() { |
3529 | 0 | error_.Clear(); |
3530 | 0 | has_fields_.Reset(TrivialResponsePBFields::kError); |
3531 | 0 | } |
3532 | | |
3533 | 0 | int32_t value() const { |
3534 | 0 | return value_; |
3535 | 0 | } |
3536 | | |
3537 | 0 | void set_value(int32_t value) { |
3538 | 0 | has_fields_.Set(TrivialResponsePBFields::kValue); |
3539 | 0 | value_ = value; |
3540 | 0 | } |
3541 | | |
3542 | 0 | int32_t* mutable_value() { |
3543 | 0 | has_fields_.Set(TrivialResponsePBFields::kValue); |
3544 | 0 | return &value_; |
3545 | 0 | } |
3546 | | |
3547 | 0 | bool has_value() const { |
3548 | 0 | return has_fields_.Test(TrivialResponsePBFields::kValue); |
3549 | 0 | } |
3550 | | |
3551 | 0 | void clear_value() { |
3552 | 0 | value_ = int32_t(); |
3553 | 0 | has_fields_.Reset(TrivialResponsePBFields::kValue); |
3554 | 0 | } |
3555 | | |
3556 | 0 | ::yb::Arena& arena() const { |
3557 | 0 | return arena_;} |
3558 | | |
3559 | 0 | size_t cached_size() const { |
3560 | 0 | return cached_size_; |
3561 | 0 | } |
3562 | | |
3563 | | private: |
3564 | | ::yb::Arena& arena_; |
3565 | | ::yb::EnumBitSet<TrivialResponsePBFields> has_fields_; |
3566 | | mutable size_t cached_size_ = 0; |
3567 | | ::yb::rpc_test::LWTrivialErrorPB error_; |
3568 | | int32_t value_ = int32_t(); |
3569 | | }; |
3570 | | |
3571 | | } // namespace rpc_test |
3572 | | } // namespace yb |
3573 | | |
3574 | | #endif // YB_RPC_RTEST_MESSAGES_H |