YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

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