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.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/rpc/rtest.proto
3
4
#include "yb/rpc/rtest.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace rpc_test {
25
class AddRequestPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<AddRequestPB>
28
      _instance;
29
} _AddRequestPB_default_instance_;
30
class AddRequestPartialPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<AddRequestPartialPB>
33
      _instance;
34
} _AddRequestPartialPB_default_instance_;
35
class AddResponsePBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<AddResponsePB>
38
      _instance;
39
} _AddResponsePB_default_instance_;
40
class SleepRequestPBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<SleepRequestPB>
43
      _instance;
44
} _SleepRequestPB_default_instance_;
45
class SleepResponsePBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<SleepResponsePB>
48
      _instance;
49
} _SleepResponsePB_default_instance_;
50
class SendStringsRequestPBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<SendStringsRequestPB>
53
      _instance;
54
} _SendStringsRequestPB_default_instance_;
55
class SendStringsResponsePBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<SendStringsResponsePB>
58
      _instance;
59
} _SendStringsResponsePB_default_instance_;
60
class EchoRequestPBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<EchoRequestPB>
63
      _instance;
64
} _EchoRequestPB_default_instance_;
65
class EchoResponsePBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<EchoResponsePB>
68
      _instance;
69
} _EchoResponsePB_default_instance_;
70
class WhoAmIRequestPBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<WhoAmIRequestPB>
73
      _instance;
74
} _WhoAmIRequestPB_default_instance_;
75
class WhoAmIResponsePBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<WhoAmIResponsePB>
78
      _instance;
79
} _WhoAmIResponsePB_default_instance_;
80
class CalculatorErrorDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<CalculatorError>
83
      _instance;
84
} _CalculatorError_default_instance_;
85
class PanicRequestPBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<PanicRequestPB>
88
      _instance;
89
} _PanicRequestPB_default_instance_;
90
class PanicResponsePBDefaultTypeInternal {
91
 public:
92
  ::google::protobuf::internal::ExplicitlyConstructed<PanicResponsePB>
93
      _instance;
94
} _PanicResponsePB_default_instance_;
95
class PingRequestPBDefaultTypeInternal {
96
 public:
97
  ::google::protobuf::internal::ExplicitlyConstructed<PingRequestPB>
98
      _instance;
99
} _PingRequestPB_default_instance_;
100
class PingResponsePBDefaultTypeInternal {
101
 public:
102
  ::google::protobuf::internal::ExplicitlyConstructed<PingResponsePB>
103
      _instance;
104
} _PingResponsePB_default_instance_;
105
class DisconnectRequestPBDefaultTypeInternal {
106
 public:
107
  ::google::protobuf::internal::ExplicitlyConstructed<DisconnectRequestPB>
108
      _instance;
109
} _DisconnectRequestPB_default_instance_;
110
class DisconnectResponsePBDefaultTypeInternal {
111
 public:
112
  ::google::protobuf::internal::ExplicitlyConstructed<DisconnectResponsePB>
113
      _instance;
114
} _DisconnectResponsePB_default_instance_;
115
class ForwardRequestPBDefaultTypeInternal {
116
 public:
117
  ::google::protobuf::internal::ExplicitlyConstructed<ForwardRequestPB>
118
      _instance;
119
} _ForwardRequestPB_default_instance_;
120
class ForwardResponsePBDefaultTypeInternal {
121
 public:
122
  ::google::protobuf::internal::ExplicitlyConstructed<ForwardResponsePB>
123
      _instance;
124
} _ForwardResponsePB_default_instance_;
125
class ConcatRequestPBDefaultTypeInternal {
126
 public:
127
  ::google::protobuf::internal::ExplicitlyConstructed<ConcatRequestPB>
128
      _instance;
129
} _ConcatRequestPB_default_instance_;
130
class ConcatResponsePBDefaultTypeInternal {
131
 public:
132
  ::google::protobuf::internal::ExplicitlyConstructed<ConcatResponsePB>
133
      _instance;
134
} _ConcatResponsePB_default_instance_;
135
class LightweightSubMessagePBDefaultTypeInternal {
136
 public:
137
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightSubMessagePB>
138
      _instance;
139
} _LightweightSubMessagePB_default_instance_;
140
class LightweightPairPBDefaultTypeInternal {
141
 public:
142
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightPairPB>
143
      _instance;
144
} _LightweightPairPB_default_instance_;
145
class LightweightRequestPB_MapEntry_DoNotUseDefaultTypeInternal {
146
 public:
147
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightRequestPB_MapEntry_DoNotUse>
148
      _instance;
149
} _LightweightRequestPB_MapEntry_DoNotUse_default_instance_;
150
class LightweightRequestPBDefaultTypeInternal {
151
 public:
152
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightRequestPB>
153
      _instance;
154
} _LightweightRequestPB_default_instance_;
155
class LightweightResponsePB_MapEntry_DoNotUseDefaultTypeInternal {
156
 public:
157
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightResponsePB_MapEntry_DoNotUse>
158
      _instance;
159
} _LightweightResponsePB_MapEntry_DoNotUse_default_instance_;
160
class LightweightResponsePBDefaultTypeInternal {
161
 public:
162
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightResponsePB>
163
      _instance;
164
} _LightweightResponsePB_default_instance_;
165
class TrivialRequestPBDefaultTypeInternal {
166
 public:
167
  ::google::protobuf::internal::ExplicitlyConstructed<TrivialRequestPB>
168
      _instance;
169
} _TrivialRequestPB_default_instance_;
170
class TrivialErrorPBDefaultTypeInternal {
171
 public:
172
  ::google::protobuf::internal::ExplicitlyConstructed<TrivialErrorPB>
173
      _instance;
174
} _TrivialErrorPB_default_instance_;
175
class TrivialResponsePBDefaultTypeInternal {
176
 public:
177
  ::google::protobuf::internal::ExplicitlyConstructed<TrivialResponsePB>
178
      _instance;
179
} _TrivialResponsePB_default_instance_;
180
}  // namespace rpc_test
181
}  // namespace yb
182
namespace protobuf_yb_2frpc_2frtest_2eproto {
183
123
void InitDefaultsAddRequestPBImpl() {
184
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
185
186
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
187
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
188
#else
189
123
  ::google::protobuf::internal::InitProtobufDefaults();
190
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
191
123
  {
192
123
    void* ptr = &::yb::rpc_test::_AddRequestPB_default_instance_;
193
123
    new (ptr) ::yb::rpc_test::AddRequestPB();
194
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
195
123
  }
196
123
  ::yb::rpc_test::AddRequestPB::InitAsDefaultInstance();
197
123
}
198
199
3.53k
void InitDefaultsAddRequestPB() {
200
3.53k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
201
3.53k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAddRequestPBImpl);
202
3.53k
}
203
204
123
void InitDefaultsAddRequestPartialPBImpl() {
205
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
206
207
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
208
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
209
#else
210
123
  ::google::protobuf::internal::InitProtobufDefaults();
211
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
212
123
  {
213
123
    void* ptr = &::yb::rpc_test::_AddRequestPartialPB_default_instance_;
214
123
    new (ptr) ::yb::rpc_test::AddRequestPartialPB();
215
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
216
123
  }
217
123
  ::yb::rpc_test::AddRequestPartialPB::InitAsDefaultInstance();
218
123
}
219
220
124
void InitDefaultsAddRequestPartialPB() {
221
124
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
222
124
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAddRequestPartialPBImpl);
223
124
}
224
225
123
void InitDefaultsAddResponsePBImpl() {
226
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
227
228
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
229
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
230
#else
231
123
  ::google::protobuf::internal::InitProtobufDefaults();
232
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
233
123
  {
234
123
    void* ptr = &::yb::rpc_test::_AddResponsePB_default_instance_;
235
123
    new (ptr) ::yb::rpc_test::AddResponsePB();
236
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
237
123
  }
238
123
  ::yb::rpc_test::AddResponsePB::InitAsDefaultInstance();
239
123
}
240
241
3.53k
void InitDefaultsAddResponsePB() {
242
3.53k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
243
3.53k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAddResponsePBImpl);
244
3.53k
}
245
246
123
void InitDefaultsSleepRequestPBImpl() {
247
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
248
249
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
250
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
251
#else
252
123
  ::google::protobuf::internal::InitProtobufDefaults();
253
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
254
123
  {
255
123
    void* ptr = &::yb::rpc_test::_SleepRequestPB_default_instance_;
256
123
    new (ptr) ::yb::rpc_test::SleepRequestPB();
257
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
258
123
  }
259
123
  ::yb::rpc_test::SleepRequestPB::InitAsDefaultInstance();
260
123
}
261
262
243
void InitDefaultsSleepRequestPB() {
263
243
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
264
243
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSleepRequestPBImpl);
265
243
}
266
267
123
void InitDefaultsSleepResponsePBImpl() {
268
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
269
270
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
271
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
272
#else
273
123
  ::google::protobuf::internal::InitProtobufDefaults();
274
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
275
123
  {
276
123
    void* ptr = &::yb::rpc_test::_SleepResponsePB_default_instance_;
277
123
    new (ptr) ::yb::rpc_test::SleepResponsePB();
278
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
279
123
  }
280
123
  ::yb::rpc_test::SleepResponsePB::InitAsDefaultInstance();
281
123
}
282
283
243
void InitDefaultsSleepResponsePB() {
284
243
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
285
243
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSleepResponsePBImpl);
286
243
}
287
288
123
void InitDefaultsSendStringsRequestPBImpl() {
289
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
290
291
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
292
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
293
#else
294
123
  ::google::protobuf::internal::InitProtobufDefaults();
295
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
296
123
  {
297
123
    void* ptr = &::yb::rpc_test::_SendStringsRequestPB_default_instance_;
298
123
    new (ptr) ::yb::rpc_test::SendStringsRequestPB();
299
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
300
123
  }
301
123
  ::yb::rpc_test::SendStringsRequestPB::InitAsDefaultInstance();
302
123
}
303
304
129
void InitDefaultsSendStringsRequestPB() {
305
129
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
306
129
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSendStringsRequestPBImpl);
307
129
}
308
309
123
void InitDefaultsSendStringsResponsePBImpl() {
310
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
311
312
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
313
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
314
#else
315
123
  ::google::protobuf::internal::InitProtobufDefaults();
316
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
317
123
  {
318
123
    void* ptr = &::yb::rpc_test::_SendStringsResponsePB_default_instance_;
319
123
    new (ptr) ::yb::rpc_test::SendStringsResponsePB();
320
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
321
123
  }
322
123
  ::yb::rpc_test::SendStringsResponsePB::InitAsDefaultInstance();
323
123
}
324
325
129
void InitDefaultsSendStringsResponsePB() {
326
129
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
327
129
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSendStringsResponsePBImpl);
328
129
}
329
330
123
void InitDefaultsEchoRequestPBImpl() {
331
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
332
333
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
334
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
335
#else
336
123
  ::google::protobuf::internal::InitProtobufDefaults();
337
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
338
123
  {
339
123
    void* ptr = &::yb::rpc_test::_EchoRequestPB_default_instance_;
340
123
    new (ptr) ::yb::rpc_test::EchoRequestPB();
341
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
342
123
  }
343
123
  ::yb::rpc_test::EchoRequestPB::InitAsDefaultInstance();
344
123
}
345
346
295k
void InitDefaultsEchoRequestPB() {
347
295k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
348
295k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEchoRequestPBImpl);
349
295k
}
350
351
123
void InitDefaultsEchoResponsePBImpl() {
352
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
353
354
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
355
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
356
#else
357
123
  ::google::protobuf::internal::InitProtobufDefaults();
358
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
359
123
  {
360
123
    void* ptr = &::yb::rpc_test::_EchoResponsePB_default_instance_;
361
123
    new (ptr) ::yb::rpc_test::EchoResponsePB();
362
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
363
123
  }
364
123
  ::yb::rpc_test::EchoResponsePB::InitAsDefaultInstance();
365
123
}
366
367
556k
void InitDefaultsEchoResponsePB() {
368
556k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
369
556k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEchoResponsePBImpl);
370
556k
}
371
372
123
void InitDefaultsWhoAmIRequestPBImpl() {
373
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
374
375
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
376
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
377
#else
378
123
  ::google::protobuf::internal::InitProtobufDefaults();
379
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
380
123
  {
381
123
    void* ptr = &::yb::rpc_test::_WhoAmIRequestPB_default_instance_;
382
123
    new (ptr) ::yb::rpc_test::WhoAmIRequestPB();
383
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
384
123
  }
385
123
  ::yb::rpc_test::WhoAmIRequestPB::InitAsDefaultInstance();
386
123
}
387
388
131
void InitDefaultsWhoAmIRequestPB() {
389
131
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
390
131
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWhoAmIRequestPBImpl);
391
131
}
392
393
123
void InitDefaultsWhoAmIResponsePBImpl() {
394
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
395
396
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
397
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
398
#else
399
123
  ::google::protobuf::internal::InitProtobufDefaults();
400
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
401
123
  {
402
123
    void* ptr = &::yb::rpc_test::_WhoAmIResponsePB_default_instance_;
403
123
    new (ptr) ::yb::rpc_test::WhoAmIResponsePB();
404
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
405
123
  }
406
123
  ::yb::rpc_test::WhoAmIResponsePB::InitAsDefaultInstance();
407
123
}
408
409
131
void InitDefaultsWhoAmIResponsePB() {
410
131
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
411
131
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWhoAmIResponsePBImpl);
412
131
}
413
414
123
void InitDefaultsCalculatorErrorImpl() {
415
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
416
417
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
418
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
419
#else
420
123
  ::google::protobuf::internal::InitProtobufDefaults();
421
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
422
123
  {
423
123
    void* ptr = &::yb::rpc_test::_CalculatorError_default_instance_;
424
123
    new (ptr) ::yb::rpc_test::CalculatorError();
425
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
426
123
  }
427
123
  ::yb::rpc_test::CalculatorError::InitAsDefaultInstance();
428
123
}
429
430
252
void InitDefaultsCalculatorError() {
431
252
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
432
252
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCalculatorErrorImpl);
433
252
}
434
435
123
void InitDefaultsPanicRequestPBImpl() {
436
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
437
438
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
439
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
440
#else
441
123
  ::google::protobuf::internal::InitProtobufDefaults();
442
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
443
123
  {
444
123
    void* ptr = &::yb::rpc_test::_PanicRequestPB_default_instance_;
445
123
    new (ptr) ::yb::rpc_test::PanicRequestPB();
446
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
447
123
  }
448
123
  ::yb::rpc_test::PanicRequestPB::InitAsDefaultInstance();
449
123
}
450
451
125
void InitDefaultsPanicRequestPB() {
452
125
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
453
125
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPanicRequestPBImpl);
454
125
}
455
456
123
void InitDefaultsPanicResponsePBImpl() {
457
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
458
459
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
460
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
461
#else
462
123
  ::google::protobuf::internal::InitProtobufDefaults();
463
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
464
123
  {
465
123
    void* ptr = &::yb::rpc_test::_PanicResponsePB_default_instance_;
466
123
    new (ptr) ::yb::rpc_test::PanicResponsePB();
467
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
468
123
  }
469
123
  ::yb::rpc_test::PanicResponsePB::InitAsDefaultInstance();
470
123
}
471
472
125
void InitDefaultsPanicResponsePB() {
473
125
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
474
125
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPanicResponsePBImpl);
475
125
}
476
477
123
void InitDefaultsPingRequestPBImpl() {
478
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
479
480
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
481
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
482
#else
483
123
  ::google::protobuf::internal::InitProtobufDefaults();
484
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
485
123
  {
486
123
    void* ptr = &::yb::rpc_test::_PingRequestPB_default_instance_;
487
123
    new (ptr) ::yb::rpc_test::PingRequestPB();
488
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
489
123
  }
490
123
  ::yb::rpc_test::PingRequestPB::InitAsDefaultInstance();
491
123
}
492
493
99.7k
void InitDefaultsPingRequestPB() {
494
99.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
495
99.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPingRequestPBImpl);
496
99.7k
}
497
498
123
void InitDefaultsPingResponsePBImpl() {
499
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
500
501
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
502
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
503
#else
504
123
  ::google::protobuf::internal::InitProtobufDefaults();
505
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
506
123
  {
507
123
    void* ptr = &::yb::rpc_test::_PingResponsePB_default_instance_;
508
123
    new (ptr) ::yb::rpc_test::PingResponsePB();
509
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
510
123
  }
511
123
  ::yb::rpc_test::PingResponsePB::InitAsDefaultInstance();
512
123
}
513
514
99.9k
void InitDefaultsPingResponsePB() {
515
99.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
516
99.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPingResponsePBImpl);
517
99.9k
}
518
519
123
void InitDefaultsDisconnectRequestPBImpl() {
520
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
521
522
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
523
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
524
#else
525
123
  ::google::protobuf::internal::InitProtobufDefaults();
526
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
527
123
  {
528
123
    void* ptr = &::yb::rpc_test::_DisconnectRequestPB_default_instance_;
529
123
    new (ptr) ::yb::rpc_test::DisconnectRequestPB();
530
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
531
123
  }
532
123
  ::yb::rpc_test::DisconnectRequestPB::InitAsDefaultInstance();
533
123
}
534
535
15.3k
void InitDefaultsDisconnectRequestPB() {
536
15.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
537
15.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDisconnectRequestPBImpl);
538
15.3k
}
539
540
123
void InitDefaultsDisconnectResponsePBImpl() {
541
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
542
543
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
544
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
545
#else
546
123
  ::google::protobuf::internal::InitProtobufDefaults();
547
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
548
123
  {
549
123
    void* ptr = &::yb::rpc_test::_DisconnectResponsePB_default_instance_;
550
123
    new (ptr) ::yb::rpc_test::DisconnectResponsePB();
551
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
552
123
  }
553
123
  ::yb::rpc_test::DisconnectResponsePB::InitAsDefaultInstance();
554
123
}
555
556
31.6k
void InitDefaultsDisconnectResponsePB() {
557
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
558
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDisconnectResponsePBImpl);
559
31.6k
}
560
561
123
void InitDefaultsForwardRequestPBImpl() {
562
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
563
564
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
565
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
566
#else
567
123
  ::google::protobuf::internal::InitProtobufDefaults();
568
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
569
123
  {
570
123
    void* ptr = &::yb::rpc_test::_ForwardRequestPB_default_instance_;
571
123
    new (ptr) ::yb::rpc_test::ForwardRequestPB();
572
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
573
123
  }
574
123
  ::yb::rpc_test::ForwardRequestPB::InitAsDefaultInstance();
575
123
}
576
577
149
void InitDefaultsForwardRequestPB() {
578
149
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
579
149
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsForwardRequestPBImpl);
580
149
}
581
582
123
void InitDefaultsForwardResponsePBImpl() {
583
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
584
585
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
586
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
587
#else
588
123
  ::google::protobuf::internal::InitProtobufDefaults();
589
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
590
123
  {
591
123
    void* ptr = &::yb::rpc_test::_ForwardResponsePB_default_instance_;
592
123
    new (ptr) ::yb::rpc_test::ForwardResponsePB();
593
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
594
123
  }
595
123
  ::yb::rpc_test::ForwardResponsePB::InitAsDefaultInstance();
596
123
}
597
598
149
void InitDefaultsForwardResponsePB() {
599
149
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
600
149
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsForwardResponsePBImpl);
601
149
}
602
603
123
void InitDefaultsConcatRequestPBImpl() {
604
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
605
606
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
607
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
608
#else
609
123
  ::google::protobuf::internal::InitProtobufDefaults();
610
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
611
123
  {
612
123
    void* ptr = &::yb::rpc_test::_ConcatRequestPB_default_instance_;
613
123
    new (ptr) ::yb::rpc_test::ConcatRequestPB();
614
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
615
123
  }
616
123
  ::yb::rpc_test::ConcatRequestPB::InitAsDefaultInstance();
617
123
}
618
619
125
void InitDefaultsConcatRequestPB() {
620
125
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
621
125
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConcatRequestPBImpl);
622
125
}
623
624
123
void InitDefaultsConcatResponsePBImpl() {
625
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
626
627
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
628
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
629
#else
630
123
  ::google::protobuf::internal::InitProtobufDefaults();
631
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
632
123
  {
633
123
    void* ptr = &::yb::rpc_test::_ConcatResponsePB_default_instance_;
634
123
    new (ptr) ::yb::rpc_test::ConcatResponsePB();
635
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
636
123
  }
637
123
  ::yb::rpc_test::ConcatResponsePB::InitAsDefaultInstance();
638
123
}
639
640
125
void InitDefaultsConcatResponsePB() {
641
125
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
642
125
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConcatResponsePBImpl);
643
125
}
644
645
123
void InitDefaultsLightweightSubMessagePBImpl() {
646
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
647
648
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
649
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
650
#else
651
123
  ::google::protobuf::internal::InitProtobufDefaults();
652
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
653
123
  {
654
123
    void* ptr = &::yb::rpc_test::_LightweightSubMessagePB_default_instance_;
655
123
    new (ptr) ::yb::rpc_test::LightweightSubMessagePB();
656
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
657
123
  }
658
123
  ::yb::rpc_test::LightweightSubMessagePB::InitAsDefaultInstance();
659
123
}
660
661
452
void InitDefaultsLightweightSubMessagePB() {
662
452
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
663
452
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightSubMessagePBImpl);
664
452
}
665
666
123
void InitDefaultsLightweightPairPBImpl() {
667
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
668
669
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
670
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
671
#else
672
123
  ::google::protobuf::internal::InitProtobufDefaults();
673
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
674
123
  {
675
123
    void* ptr = &::yb::rpc_test::_LightweightPairPB_default_instance_;
676
123
    new (ptr) ::yb::rpc_test::LightweightPairPB();
677
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
678
123
  }
679
123
  ::yb::rpc_test::LightweightPairPB::InitAsDefaultInstance();
680
123
}
681
682
421
void InitDefaultsLightweightPairPB() {
683
421
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
684
421
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightPairPBImpl);
685
421
}
686
687
123
void InitDefaultsLightweightRequestPB_MapEntry_DoNotUseImpl() {
688
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
689
690
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
691
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
692
#else
693
123
  ::google::protobuf::internal::InitProtobufDefaults();
694
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
695
123
  {
696
123
    void* ptr = &::yb::rpc_test::_LightweightRequestPB_MapEntry_DoNotUse_default_instance_;
697
123
    new (ptr) ::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse();
698
123
  }
699
123
  ::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse::InitAsDefaultInstance();
700
123
}
701
702
246
void InitDefaultsLightweightRequestPB_MapEntry_DoNotUse() {
703
246
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
704
246
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightRequestPB_MapEntry_DoNotUseImpl);
705
246
}
706
707
123
void InitDefaultsLightweightRequestPBImpl() {
708
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
709
710
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
711
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
712
#else
713
123
  ::google::protobuf::internal::InitProtobufDefaults();
714
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
715
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightSubMessagePB();
716
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightPairPB();
717
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightRequestPB_MapEntry_DoNotUse();
718
123
  protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
719
123
  {
720
123
    void* ptr = &::yb::rpc_test::_LightweightRequestPB_default_instance_;
721
123
    new (ptr) ::yb::rpc_test::LightweightRequestPB();
722
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
723
123
  }
724
123
  ::yb::rpc_test::LightweightRequestPB::InitAsDefaultInstance();
725
123
}
726
727
124
void InitDefaultsLightweightRequestPB() {
728
124
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
729
124
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightRequestPBImpl);
730
124
}
731
732
123
void InitDefaultsLightweightResponsePB_MapEntry_DoNotUseImpl() {
733
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
734
735
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
736
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
737
#else
738
123
  ::google::protobuf::internal::InitProtobufDefaults();
739
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
740
123
  {
741
123
    void* ptr = &::yb::rpc_test::_LightweightResponsePB_MapEntry_DoNotUse_default_instance_;
742
123
    new (ptr) ::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse();
743
123
  }
744
123
  ::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse::InitAsDefaultInstance();
745
123
}
746
747
246
void InitDefaultsLightweightResponsePB_MapEntry_DoNotUse() {
748
246
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
749
246
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightResponsePB_MapEntry_DoNotUseImpl);
750
246
}
751
752
123
void InitDefaultsLightweightResponsePBImpl() {
753
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
754
755
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
756
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
757
#else
758
123
  ::google::protobuf::internal::InitProtobufDefaults();
759
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
760
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightSubMessagePB();
761
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightPairPB();
762
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightResponsePB_MapEntry_DoNotUse();
763
123
  {
764
123
    void* ptr = &::yb::rpc_test::_LightweightResponsePB_default_instance_;
765
123
    new (ptr) ::yb::rpc_test::LightweightResponsePB();
766
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
767
123
  }
768
123
  ::yb::rpc_test::LightweightResponsePB::InitAsDefaultInstance();
769
123
}
770
771
126
void InitDefaultsLightweightResponsePB() {
772
126
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
773
126
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightResponsePBImpl);
774
126
}
775
776
123
void InitDefaultsTrivialRequestPBImpl() {
777
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
778
779
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
780
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
781
#else
782
123
  ::google::protobuf::internal::InitProtobufDefaults();
783
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
784
123
  {
785
123
    void* ptr = &::yb::rpc_test::_TrivialRequestPB_default_instance_;
786
123
    new (ptr) ::yb::rpc_test::TrivialRequestPB();
787
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
788
123
  }
789
123
  ::yb::rpc_test::TrivialRequestPB::InitAsDefaultInstance();
790
123
}
791
792
126
void InitDefaultsTrivialRequestPB() {
793
126
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
794
126
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTrivialRequestPBImpl);
795
126
}
796
797
123
void InitDefaultsTrivialErrorPBImpl() {
798
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
799
800
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
801
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
802
#else
803
123
  ::google::protobuf::internal::InitProtobufDefaults();
804
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
805
123
  {
806
123
    void* ptr = &::yb::rpc_test::_TrivialErrorPB_default_instance_;
807
123
    new (ptr) ::yb::rpc_test::TrivialErrorPB();
808
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
809
123
  }
810
123
  ::yb::rpc_test::TrivialErrorPB::InitAsDefaultInstance();
811
123
}
812
813
248
void InitDefaultsTrivialErrorPB() {
814
248
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
815
248
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTrivialErrorPBImpl);
816
248
}
817
818
123
void InitDefaultsTrivialResponsePBImpl() {
819
123
  GOOGLE_PROTOBUF_VERIFY_VERSION;
820
821
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
822
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
823
#else
824
123
  ::google::protobuf::internal::InitProtobufDefaults();
825
123
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
826
123
  protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialErrorPB();
827
123
  {
828
123
    void* ptr = &::yb::rpc_test::_TrivialResponsePB_default_instance_;
829
123
    new (ptr) ::yb::rpc_test::TrivialResponsePB();
830
123
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
831
123
  }
832
123
  ::yb::rpc_test::TrivialResponsePB::InitAsDefaultInstance();
833
123
}
834
835
128
void InitDefaultsTrivialResponsePB() {
836
128
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
837
128
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTrivialResponsePBImpl);
838
128
}
839
840
::google::protobuf::Metadata file_level_metadata[31];
841
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
842
843
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
844
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPB, _has_bits_),
845
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPB, _internal_metadata_),
846
  ~0u,  // no _extensions_
847
  ~0u,  // no _oneof_case_
848
  ~0u,  // no _weak_field_map_
849
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPB, x_),
850
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPB, y_),
851
  0,
852
  1,
853
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPartialPB, _has_bits_),
854
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPartialPB, _internal_metadata_),
855
  ~0u,  // no _extensions_
856
  ~0u,  // no _oneof_case_
857
  ~0u,  // no _weak_field_map_
858
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddRequestPartialPB, x_),
859
  0,
860
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddResponsePB, _has_bits_),
861
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddResponsePB, _internal_metadata_),
862
  ~0u,  // no _extensions_
863
  ~0u,  // no _oneof_case_
864
  ~0u,  // no _weak_field_map_
865
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::AddResponsePB, result_),
866
  0,
867
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, _has_bits_),
868
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, _internal_metadata_),
869
  ~0u,  // no _extensions_
870
  ~0u,  // no _oneof_case_
871
  ~0u,  // no _weak_field_map_
872
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, sleep_micros_),
873
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, deferred_),
874
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, return_app_error_),
875
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepRequestPB, client_timeout_defined_),
876
  0,
877
  1,
878
  2,
879
  3,
880
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepResponsePB, _has_bits_),
881
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SleepResponsePB, _internal_metadata_),
882
  ~0u,  // no _extensions_
883
  ~0u,  // no _oneof_case_
884
  ~0u,  // no _weak_field_map_
885
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsRequestPB, _has_bits_),
886
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsRequestPB, _internal_metadata_),
887
  ~0u,  // no _extensions_
888
  ~0u,  // no _oneof_case_
889
  ~0u,  // no _weak_field_map_
890
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsRequestPB, random_seed_),
891
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsRequestPB, sizes_),
892
  0,
893
  ~0u,
894
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsResponsePB, _has_bits_),
895
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsResponsePB, _internal_metadata_),
896
  ~0u,  // no _extensions_
897
  ~0u,  // no _oneof_case_
898
  ~0u,  // no _weak_field_map_
899
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::SendStringsResponsePB, sidecars_),
900
  ~0u,
901
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoRequestPB, _has_bits_),
902
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoRequestPB, _internal_metadata_),
903
  ~0u,  // no _extensions_
904
  ~0u,  // no _oneof_case_
905
  ~0u,  // no _weak_field_map_
906
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoRequestPB, data_),
907
  0,
908
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoResponsePB, _has_bits_),
909
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoResponsePB, _internal_metadata_),
910
  ~0u,  // no _extensions_
911
  ~0u,  // no _oneof_case_
912
  ~0u,  // no _weak_field_map_
913
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::EchoResponsePB, data_),
914
  0,
915
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::WhoAmIRequestPB, _has_bits_),
916
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::WhoAmIRequestPB, _internal_metadata_),
917
  ~0u,  // no _extensions_
918
  ~0u,  // no _oneof_case_
919
  ~0u,  // no _weak_field_map_
920
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::WhoAmIResponsePB, _has_bits_),
921
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::WhoAmIResponsePB, _internal_metadata_),
922
  ~0u,  // no _extensions_
923
  ~0u,  // no _oneof_case_
924
  ~0u,  // no _weak_field_map_
925
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::WhoAmIResponsePB, address_),
926
  0,
927
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::CalculatorError, _has_bits_),
928
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::CalculatorError, _internal_metadata_),
929
  ~0u,  // no _extensions_
930
  ~0u,  // no _oneof_case_
931
  ~0u,  // no _weak_field_map_
932
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::CalculatorError, extra_error_data_),
933
  0,
934
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PanicRequestPB, _has_bits_),
935
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PanicRequestPB, _internal_metadata_),
936
  ~0u,  // no _extensions_
937
  ~0u,  // no _oneof_case_
938
  ~0u,  // no _weak_field_map_
939
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PanicResponsePB, _has_bits_),
940
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PanicResponsePB, _internal_metadata_),
941
  ~0u,  // no _extensions_
942
  ~0u,  // no _oneof_case_
943
  ~0u,  // no _weak_field_map_
944
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingRequestPB, _has_bits_),
945
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingRequestPB, _internal_metadata_),
946
  ~0u,  // no _extensions_
947
  ~0u,  // no _oneof_case_
948
  ~0u,  // no _weak_field_map_
949
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingRequestPB, id_),
950
  0,
951
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingResponsePB, _has_bits_),
952
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingResponsePB, _internal_metadata_),
953
  ~0u,  // no _extensions_
954
  ~0u,  // no _oneof_case_
955
  ~0u,  // no _weak_field_map_
956
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::PingResponsePB, time_),
957
  0,
958
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::DisconnectRequestPB, _has_bits_),
959
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::DisconnectRequestPB, _internal_metadata_),
960
  ~0u,  // no _extensions_
961
  ~0u,  // no _oneof_case_
962
  ~0u,  // no _weak_field_map_
963
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::DisconnectResponsePB, _has_bits_),
964
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::DisconnectResponsePB, _internal_metadata_),
965
  ~0u,  // no _extensions_
966
  ~0u,  // no _oneof_case_
967
  ~0u,  // no _weak_field_map_
968
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardRequestPB, _has_bits_),
969
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardRequestPB, _internal_metadata_),
970
  ~0u,  // no _extensions_
971
  ~0u,  // no _oneof_case_
972
  ~0u,  // no _weak_field_map_
973
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardRequestPB, host_),
974
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardRequestPB, port_),
975
  0,
976
  1,
977
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardResponsePB, _has_bits_),
978
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardResponsePB, _internal_metadata_),
979
  ~0u,  // no _extensions_
980
  ~0u,  // no _oneof_case_
981
  ~0u,  // no _weak_field_map_
982
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ForwardResponsePB, name_),
983
  0,
984
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatRequestPB, _has_bits_),
985
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatRequestPB, _internal_metadata_),
986
  ~0u,  // no _extensions_
987
  ~0u,  // no _oneof_case_
988
  ~0u,  // no _weak_field_map_
989
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatRequestPB, lhs_),
990
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatRequestPB, rhs_),
991
  0,
992
  1,
993
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatResponsePB, _has_bits_),
994
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatResponsePB, _internal_metadata_),
995
  ~0u,  // no _extensions_
996
  ~0u,  // no _oneof_case_
997
  ~0u,  // no _weak_field_map_
998
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::ConcatResponsePB, result_),
999
  0,
1000
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, _has_bits_),
1001
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, _internal_metadata_),
1002
  ~0u,  // no _extensions_
1003
  ~0u,  // no _oneof_case_
1004
  ~0u,  // no _weak_field_map_
1005
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, sf32_),
1006
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, rsi32_),
1007
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, str_),
1008
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, rbytes_),
1009
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightSubMessagePB, cycle_),
1010
  2,
1011
  ~0u,
1012
  0,
1013
  ~0u,
1014
  1,
1015
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightPairPB, _has_bits_),
1016
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightPairPB, _internal_metadata_),
1017
  ~0u,  // no _extensions_
1018
  ~0u,  // no _oneof_case_
1019
  ~0u,  // no _weak_field_map_
1020
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightPairPB, s1_),
1021
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightPairPB, s2_),
1022
  0,
1023
  1,
1024
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse, _has_bits_),
1025
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse, _internal_metadata_),
1026
  ~0u,  // no _extensions_
1027
  ~0u,  // no _oneof_case_
1028
  ~0u,  // no _weak_field_map_
1029
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse, key_),
1030
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse, value_),
1031
  0,
1032
  1,
1033
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, _has_bits_),
1034
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, _internal_metadata_),
1035
  ~0u,  // no _extensions_
1036
  ~0u,  // no _oneof_case_
1037
  ~0u,  // no _weak_field_map_
1038
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, i32_),
1039
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, i64_),
1040
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, f32_),
1041
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, f64_),
1042
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, u32_),
1043
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, u64_),
1044
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, r32_),
1045
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, r64_),
1046
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, str_),
1047
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, bytes_),
1048
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, en_),
1049
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, sf32_),
1050
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, sf64_),
1051
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, si32_),
1052
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, si64_),
1053
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, ru32_),
1054
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, rf32_),
1055
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, rstr_),
1056
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, message_),
1057
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, repeated_messages_),
1058
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, packed_u64_),
1059
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, packed_f32_),
1060
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, pairs_),
1061
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, ptr_message_),
1062
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, map_),
1063
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightRequestPB, extra_data_),
1064
  6,
1065
  5,
1066
  7,
1067
  8,
1068
  10,
1069
  9,
1070
  11,
1071
  12,
1072
  0,
1073
  1,
1074
  13,
1075
  14,
1076
  15,
1077
  17,
1078
  16,
1079
  ~0u,
1080
  ~0u,
1081
  ~0u,
1082
  2,
1083
  ~0u,
1084
  ~0u,
1085
  ~0u,
1086
  ~0u,
1087
  3,
1088
  ~0u,
1089
  4,
1090
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse, _has_bits_),
1091
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse, _internal_metadata_),
1092
  ~0u,  // no _extensions_
1093
  ~0u,  // no _oneof_case_
1094
  ~0u,  // no _weak_field_map_
1095
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse, key_),
1096
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse, value_),
1097
  0,
1098
  1,
1099
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, _has_bits_),
1100
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, _internal_metadata_),
1101
  ~0u,  // no _extensions_
1102
  ~0u,  // no _oneof_case_
1103
  ~0u,  // no _weak_field_map_
1104
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, i32_),
1105
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, i64_),
1106
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, f32_),
1107
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, f64_),
1108
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, u32_),
1109
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, u64_),
1110
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, r32_),
1111
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, r64_),
1112
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, str_),
1113
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, bytes_),
1114
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, en_),
1115
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, sf32_),
1116
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, sf64_),
1117
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, si32_),
1118
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, si64_),
1119
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, ru32_),
1120
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, rf32_),
1121
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, rstr_),
1122
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, message_),
1123
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, repeated_messages_),
1124
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, repeated_messages_copy_),
1125
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, packed_u64_),
1126
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, packed_f32_),
1127
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, pairs_),
1128
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, ptr_message_),
1129
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, map_),
1130
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::LightweightResponsePB, short_debug_string_),
1131
  6,
1132
  5,
1133
  7,
1134
  8,
1135
  10,
1136
  9,
1137
  11,
1138
  12,
1139
  0,
1140
  1,
1141
  13,
1142
  14,
1143
  15,
1144
  17,
1145
  16,
1146
  ~0u,
1147
  ~0u,
1148
  ~0u,
1149
  3,
1150
  ~0u,
1151
  ~0u,
1152
  ~0u,
1153
  ~0u,
1154
  ~0u,
1155
  4,
1156
  ~0u,
1157
  2,
1158
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialRequestPB, _has_bits_),
1159
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialRequestPB, _internal_metadata_),
1160
  ~0u,  // no _extensions_
1161
  ~0u,  // no _oneof_case_
1162
  ~0u,  // no _weak_field_map_
1163
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialRequestPB, value_),
1164
  0,
1165
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialErrorPB, _has_bits_),
1166
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialErrorPB, _internal_metadata_),
1167
  ~0u,  // no _extensions_
1168
  ~0u,  // no _oneof_case_
1169
  ~0u,  // no _weak_field_map_
1170
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialErrorPB, code_),
1171
  0,
1172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialResponsePB, _has_bits_),
1173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialResponsePB, _internal_metadata_),
1174
  ~0u,  // no _extensions_
1175
  ~0u,  // no _oneof_case_
1176
  ~0u,  // no _weak_field_map_
1177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialResponsePB, error_),
1178
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc_test::TrivialResponsePB, value_),
1179
  0,
1180
  1,
1181
};
1182
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1183
  { 0, 7, sizeof(::yb::rpc_test::AddRequestPB)},
1184
  { 9, 15, sizeof(::yb::rpc_test::AddRequestPartialPB)},
1185
  { 16, 22, sizeof(::yb::rpc_test::AddResponsePB)},
1186
  { 23, 32, sizeof(::yb::rpc_test::SleepRequestPB)},
1187
  { 36, 41, sizeof(::yb::rpc_test::SleepResponsePB)},
1188
  { 41, 48, sizeof(::yb::rpc_test::SendStringsRequestPB)},
1189
  { 50, 56, sizeof(::yb::rpc_test::SendStringsResponsePB)},
1190
  { 57, 63, sizeof(::yb::rpc_test::EchoRequestPB)},
1191
  { 64, 70, sizeof(::yb::rpc_test::EchoResponsePB)},
1192
  { 71, 76, sizeof(::yb::rpc_test::WhoAmIRequestPB)},
1193
  { 76, 82, sizeof(::yb::rpc_test::WhoAmIResponsePB)},
1194
  { 83, 89, sizeof(::yb::rpc_test::CalculatorError)},
1195
  { 90, 95, sizeof(::yb::rpc_test::PanicRequestPB)},
1196
  { 95, 100, sizeof(::yb::rpc_test::PanicResponsePB)},
1197
  { 100, 106, sizeof(::yb::rpc_test::PingRequestPB)},
1198
  { 107, 113, sizeof(::yb::rpc_test::PingResponsePB)},
1199
  { 114, 119, sizeof(::yb::rpc_test::DisconnectRequestPB)},
1200
  { 119, 124, sizeof(::yb::rpc_test::DisconnectResponsePB)},
1201
  { 124, 131, sizeof(::yb::rpc_test::ForwardRequestPB)},
1202
  { 133, 139, sizeof(::yb::rpc_test::ForwardResponsePB)},
1203
  { 140, 147, sizeof(::yb::rpc_test::ConcatRequestPB)},
1204
  { 149, 155, sizeof(::yb::rpc_test::ConcatResponsePB)},
1205
  { 156, 166, sizeof(::yb::rpc_test::LightweightSubMessagePB)},
1206
  { 171, 178, sizeof(::yb::rpc_test::LightweightPairPB)},
1207
  { 180, 187, sizeof(::yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUse)},
1208
  { 189, 220, sizeof(::yb::rpc_test::LightweightRequestPB)},
1209
  { 246, 253, sizeof(::yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUse)},
1210
  { 255, 287, sizeof(::yb::rpc_test::LightweightResponsePB)},
1211
  { 314, 320, sizeof(::yb::rpc_test::TrivialRequestPB)},
1212
  { 321, 327, sizeof(::yb::rpc_test::TrivialErrorPB)},
1213
  { 328, 335, sizeof(::yb::rpc_test::TrivialResponsePB)},
1214
};
1215
1216
static ::google::protobuf::Message const * const file_default_instances[] = {
1217
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_AddRequestPB_default_instance_),
1218
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_AddRequestPartialPB_default_instance_),
1219
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_AddResponsePB_default_instance_),
1220
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_SleepRequestPB_default_instance_),
1221
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_SleepResponsePB_default_instance_),
1222
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_SendStringsRequestPB_default_instance_),
1223
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_SendStringsResponsePB_default_instance_),
1224
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_EchoRequestPB_default_instance_),
1225
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_EchoResponsePB_default_instance_),
1226
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_WhoAmIRequestPB_default_instance_),
1227
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_WhoAmIResponsePB_default_instance_),
1228
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_CalculatorError_default_instance_),
1229
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_PanicRequestPB_default_instance_),
1230
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_PanicResponsePB_default_instance_),
1231
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_PingRequestPB_default_instance_),
1232
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_PingResponsePB_default_instance_),
1233
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_DisconnectRequestPB_default_instance_),
1234
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_DisconnectResponsePB_default_instance_),
1235
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_ForwardRequestPB_default_instance_),
1236
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_ForwardResponsePB_default_instance_),
1237
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_ConcatRequestPB_default_instance_),
1238
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_ConcatResponsePB_default_instance_),
1239
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightSubMessagePB_default_instance_),
1240
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightPairPB_default_instance_),
1241
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightRequestPB_MapEntry_DoNotUse_default_instance_),
1242
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightRequestPB_default_instance_),
1243
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightResponsePB_MapEntry_DoNotUse_default_instance_),
1244
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_LightweightResponsePB_default_instance_),
1245
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_TrivialRequestPB_default_instance_),
1246
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_TrivialErrorPB_default_instance_),
1247
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc_test::_TrivialResponsePB_default_instance_),
1248
};
1249
1250
66
void protobuf_AssignDescriptors() {
1251
66
  AddDescriptors();
1252
66
  ::google::protobuf::MessageFactory* factory = NULL;
1253
66
  AssignDescriptors(
1254
66
      "yb/rpc/rtest.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1255
66
      file_level_metadata, file_level_enum_descriptors, NULL);
1256
66
}
1257
1258
69.7k
void protobuf_AssignDescriptorsOnce() {
1259
69.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1260
69.7k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1261
69.7k
}
1262
1263
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
1264
2
void protobuf_RegisterTypes(const ::std::string&) {
1265
2
  protobuf_AssignDescriptorsOnce();
1266
2
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 31);
1267
2
}
1268
1269
123
void AddDescriptorsImpl() {
1270
123
  InitDefaults();
1271
123
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1272
123
      "\n\022yb/rpc/rtest.proto\022\013yb.rpc_test\032\031googl"
1273
123
      "e/protobuf/any.proto\032 yb/rpc/lightweight"
1274
123
      "_message.proto\032\027yb/rpc/rpc_header.proto\032"
1275
123
      "\037yb/rpc/rtest_diff_package.proto\032\024yb/rpc"
1276
123
      "/service.proto\"$\n\014AddRequestPB\022\t\n\001x\030\001 \002("
1277
123
      "\r\022\t\n\001y\030\002 \002(\r\" \n\023AddRequestPartialPB\022\t\n\001x"
1278
123
      "\030\001 \002(\r\"\037\n\rAddResponsePB\022\016\n\006result\030\001 \002(\r\""
1279
123
      "\207\001\n\016SleepRequestPB\022\024\n\014sleep_micros\030\001 \002(\r"
1280
123
      "\022\027\n\010deferred\030\002 \001(\010:\005false\022\037\n\020return_app_"
1281
123
      "error\030\003 \001(\010:\005false\022%\n\026client_timeout_def"
1282
123
      "ined\030\004 \001(\010:\005false\"\021\n\017SleepResponsePB\":\n\024"
1283
123
      "SendStringsRequestPB\022\023\n\013random_seed\030\001 \001("
1284
123
      "\r\022\r\n\005sizes\030\002 \003(\004\")\n\025SendStringsResponseP"
1285
123
      "B\022\020\n\010sidecars\030\001 \003(\r\"\035\n\rEchoRequestPB\022\014\n\004"
1286
123
      "data\030\001 \002(\t\"\036\n\016EchoResponsePB\022\014\n\004data\030\001 \002"
1287
123
      "(\t\"\021\n\017WhoAmIRequestPB\"#\n\020WhoAmIResponseP"
1288
123
      "B\022\017\n\007address\030\002 \002(\t\"w\n\017CalculatorError\022\030\n"
1289
123
      "\020extra_error_data\030\001 \002(\t2J\n\rapp_error_ext"
1290
123
      "\022\025.yb.rpc.ErrorStatusPB\030e \001(\0132\034.yb.rpc_t"
1291
123
      "est.CalculatorError\"\020\n\016PanicRequestPB\"\021\n"
1292
123
      "\017PanicResponsePB\"\033\n\rPingRequestPB\022\n\n\002id\030"
1293
123
      "\001 \002(\004\"\036\n\016PingResponsePB\022\014\n\004time\030\001 \002(\004\"\025\n"
1294
123
      "\023DisconnectRequestPB\"\026\n\024DisconnectRespon"
1295
123
      "sePB\".\n\020ForwardRequestPB\022\014\n\004host\030\001 \001(\t\022\014"
1296
123
      "\n\004port\030\002 \001(\r\"!\n\021ForwardResponsePB\022\014\n\004nam"
1297
123
      "e\030\001 \001(\t\"+\n\017ConcatRequestPB\022\013\n\003lhs\030\001 \001(\t\022"
1298
123
      "\013\n\003rhs\030\002 \001(\t\"\"\n\020ConcatResponsePB\022\016\n\006resu"
1299
123
      "lt\030\001 \001(\t\"\210\001\n\027LightweightSubMessagePB\022\014\n\004"
1300
123
      "sf32\030\001 \001(\017\022\r\n\005rsi32\030\002 \003(\021\022\013\n\003str\030\003 \001(\t\022\016"
1301
123
      "\n\006rbytes\030\004 \003(\014\0223\n\005cycle\030\005 \001(\0132$.yb.rpc_t"
1302
123
      "est.LightweightSubMessagePB\"+\n\021Lightweig"
1303
123
      "htPairPB\022\n\n\002s1\030\001 \001(\t\022\n\n\002s2\030\002 \001(\t\"\317\005\n\024Lig"
1304
123
      "htweightRequestPB\022\013\n\003i32\030\001 \001(\005\022\013\n\003i64\030\002 "
1305
123
      "\001(\003\022\013\n\003f32\030\003 \001(\007\022\013\n\003f64\030\004 \001(\006\022\013\n\003u32\030\005 \001"
1306
123
      "(\r\022\013\n\003u64\030\006 \001(\004\022\013\n\003r32\030\007 \001(\002\022\013\n\003r64\030\010 \001("
1307
123
      "\001\022\013\n\003str\030\t \001(\t\022\r\n\005bytes\030\n \001(\014\022(\n\002en\030\013 \001("
1308
123
      "\0162\034.yb.rpc_test.LightweightEnum\022\014\n\004sf32\030"
1309
123
      "\014 \001(\017\022\014\n\004sf64\030\r \001(\020\022\014\n\004si32\030\016 \001(\021\022\014\n\004si6"
1310
123
      "4\030\017 \001(\022\022\014\n\004ru32\030\020 \003(\r\022\014\n\004rf32\030\021 \003(\007\022\014\n\004r"
1311
123
      "str\030\022 \003(\t\0225\n\007message\030\023 \001(\0132$.yb.rpc_test"
1312
123
      ".LightweightSubMessagePB\022\?\n\021repeated_mes"
1313
123
      "sages\030\024 \003(\0132$.yb.rpc_test.LightweightSub"
1314
123
      "MessagePB\022\026\n\npacked_u64\030\025 \003(\004B\002\020\001\022\026\n\npac"
1315
123
      "ked_f32\030\026 \003(\007B\002\020\001\022-\n\005pairs\030\027 \003(\0132\036.yb.rp"
1316
123
      "c_test.LightweightPairPB\022A\n\013ptr_message\030"
1317
123
      "\030 \001(\0132$.yb.rpc_test.LightweightSubMessag"
1318
123
      "ePBB\006\202\265\030\002\010\001\0227\n\003map\030\031 \003(\0132*.yb.rpc_test.L"
1319
123
      "ightweightRequestPB.MapEntry\022(\n\nextra_da"
1320
123
      "ta\030\032 \001(\0132\024.google.protobuf.Any\032*\n\010MapEnt"
1321
123
      "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\211\006\n\025L"
1322
123
      "ightweightResponsePB\022\013\n\003i32\030\001 \001(\005\022\013\n\003i64"
1323
123
      "\030\002 \001(\003\022\013\n\003f32\030\003 \001(\007\022\013\n\003f64\030\004 \001(\006\022\013\n\003u32\030"
1324
123
      "\005 \001(\r\022\013\n\003u64\030\006 \001(\004\022\013\n\003r32\030\007 \001(\002\022\013\n\003r64\030\010"
1325
123
      " \001(\001\022\013\n\003str\030\t \001(\t\022\r\n\005bytes\030\n \001(\014\022(\n\002en\030\013"
1326
123
      " \001(\0162\034.yb.rpc_test.LightweightEnum\022\014\n\004sf"
1327
123
      "32\030\014 \001(\017\022\014\n\004sf64\030\r \001(\020\022\014\n\004si32\030\016 \001(\021\022\014\n\004"
1328
123
      "si64\030\017 \001(\022\022\014\n\004ru32\030\020 \003(\r\022\014\n\004rf32\030\021 \003(\007\022\014"
1329
123
      "\n\004rstr\030\022 \003(\t\0225\n\007message\030\023 \001(\0132$.yb.rpc_t"
1330
123
      "est.LightweightSubMessagePB\022\?\n\021repeated_"
1331
123
      "messages\030\024 \003(\0132$.yb.rpc_test.Lightweight"
1332
123
      "SubMessagePB\022D\n\026repeated_messages_copy\030x"
1333
123
      " \003(\0132$.yb.rpc_test.LightweightSubMessage"
1334
123
      "PB\022\026\n\npacked_u64\030\025 \003(\004B\002\020\001\022\026\n\npacked_f32"
1335
123
      "\030\026 \003(\007B\002\020\001\022-\n\005pairs\030\027 \003(\0132\036.yb.rpc_test."
1336
123
      "LightweightPairPB\022A\n\013ptr_message\030\030 \001(\0132$"
1337
123
      ".yb.rpc_test.LightweightSubMessagePBB\006\202\265"
1338
123
      "\030\002\010\001\0228\n\003map\030\031 \003(\0132+.yb.rpc_test.Lightwei"
1339
123
      "ghtResponsePB.MapEntry\022\032\n\022short_debug_st"
1340
123
      "ring\030d \001(\t\032*\n\010MapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
1341
123
      "alue\030\002 \001(\003:\0028\001\"!\n\020TrivialRequestPB\022\r\n\005va"
1342
123
      "lue\030\001 \001(\005\"\036\n\016TrivialErrorPB\022\014\n\004code\030\001 \001("
1343
123
      "\005\"N\n\021TrivialResponsePB\022*\n\005error\030\001 \001(\0132\033."
1344
123
      "yb.rpc_test.TrivialErrorPB\022\r\n\005value\030\002 \001("
1345
123
      "\005*B\n\017LightweightEnum\022\010\n\004ZERO\020\000\022\007\n\003ONE\020\001\022"
1346
123
      "\007\n\003TWO\020\002\022\t\n\005THREE\020\003\022\010\n\004FOUR\020\0042\344\006\n\021Calcul"
1347
123
      "atorService\022<\n\003Add\022\031.yb.rpc_test.AddRequ"
1348
123
      "estPB\032\032.yb.rpc_test.AddResponsePB\022B\n\005Sle"
1349
123
      "ep\022\033.yb.rpc_test.SleepRequestPB\032\034.yb.rpc"
1350
123
      "_test.SleepResponsePB\022\?\n\004Echo\022\032.yb.rpc_t"
1351
123
      "est.EchoRequestPB\032\033.yb.rpc_test.EchoResp"
1352
123
      "onsePB\022E\n\006WhoAmI\022\034.yb.rpc_test.WhoAmIReq"
1353
123
      "uestPB\032\035.yb.rpc_test.WhoAmIResponsePB\022u\n"
1354
123
      "\032TestArgumentsInDiffPackage\022*.yb.rpc_tes"
1355
123
      "t_diff_package.ReqDiffPackagePB\032+.yb.rpc"
1356
123
      "_test_diff_package.RespDiffPackagePB\022B\n\005"
1357
123
      "Panic\022\033.yb.rpc_test.PanicRequestPB\032\034.yb."
1358
123
      "rpc_test.PanicResponsePB\022\?\n\004Ping\022\032.yb.rp"
1359
123
      "c_test.PingRequestPB\032\033.yb.rpc_test.PingR"
1360
123
      "esponsePB\022Q\n\nDisconnect\022 .yb.rpc_test.Di"
1361
123
      "sconnectRequestPB\032!.yb.rpc_test.Disconne"
1362
123
      "ctResponsePB\022H\n\007Forward\022\035.yb.rpc_test.Fo"
1363
123
      "rwardRequestPB\032\036.yb.rpc_test.ForwardResp"
1364
123
      "onsePB\022\\\n\013Lightweight\022!.yb.rpc_test.Ligh"
1365
123
      "tweightRequestPB\032\".yb.rpc_test.Lightweig"
1366
123
      "htResponsePB\"\006\202\265\030\002\010\001\022N\n\007Trivial\022\035.yb.rpc"
1367
123
      "_test.TrivialRequestPB\032\036.yb.rpc_test.Tri"
1368
123
      "vialResponsePB\"\004\210\265\030\0012y\n\rAbacusService\022E\n"
1369
123
      "\006Concat\022\034.yb.rpc_test.ConcatRequestPB\032\035."
1370
123
      "yb.rpc_test.ConcatResponsePB\032!\332\265\030\035yb.rpc"
1371
123
      "_test.CalculatorService"
1372
123
  };
1373
123
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1374
123
      descriptor, 3983);
1375
123
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1376
123
    "yb/rpc/rtest.proto", &protobuf_RegisterTypes);
1377
123
  ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
1378
123
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::AddDescriptors();
1379
123
  ::protobuf_yb_2frpc_2frpc_5fheader_2eproto::AddDescriptors();
1380
123
  ::protobuf_yb_2frpc_2frtest_5fdiff_5fpackage_2eproto::AddDescriptors();
1381
123
  ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors();
1382
123
}
1383
1384
189
void AddDescriptors() {
1385
189
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1386
189
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1387
189
}
1388
// Force AddDescriptors() to be called at dynamic initialization time.
1389
struct StaticDescriptorInitializer {
1390
123
  StaticDescriptorInitializer() {
1391
123
    AddDescriptors();
1392
123
  }
1393
} static_descriptor_initializer;
1394
}  // namespace protobuf_yb_2frpc_2frtest_2eproto
1395
namespace yb {
1396
namespace rpc_test {
1397
5
const ::google::protobuf::EnumDescriptor* LightweightEnum_descriptor() {
1398
5
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
1399
5
  return protobuf_yb_2frpc_2frtest_2eproto::file_level_enum_descriptors[0];
1400
5
}
1401
5
bool LightweightEnum_IsValid(int value) {
1402
5
  switch (value) {
1403
0
    case 0:
1404
0
    case 1:
1405
1
    case 2:
1406
5
    case 3:
1407
5
    case 4:
1408
5
      return true;
1409
0
    default:
1410
0
      return false;
1411
5
  }
1412
5
}
1413
1414
1415
// ===================================================================
1416
1417
123
void AddRequestPB::InitAsDefaultInstance() {
1418
123
}
1419
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1420
const int AddRequestPB::kXFieldNumber;
1421
const int AddRequestPB::kYFieldNumber;
1422
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1423
1424
AddRequestPB::AddRequestPB()
1425
3.53k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1426
3.53k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1427
3.41k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddRequestPB();
1428
3.41k
  }
1429
3.53k
  SharedCtor();
1430
  // @@protoc_insertion_point(constructor:yb.rpc_test.AddRequestPB)
1431
3.53k
}
1432
AddRequestPB::AddRequestPB(const AddRequestPB& from)
1433
  : ::google::protobuf::Message(),
1434
      _internal_metadata_(NULL),
1435
      _has_bits_(from._has_bits_),
1436
0
      _cached_size_(0) {
1437
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1438
0
  ::memcpy(&x_, &from.x_,
1439
0
    static_cast<size_t>(reinterpret_cast<char*>(&y_) -
1440
0
    reinterpret_cast<char*>(&x_)) + sizeof(y_));
1441
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.AddRequestPB)
1442
0
}
1443
1444
3.53k
void AddRequestPB::SharedCtor() {
1445
3.53k
  _cached_size_ = 0;
1446
3.53k
  ::memset(&x_, 0, static_cast<size_t>(
1447
3.53k
      reinterpret_cast<char*>(&y_) -
1448
3.53k
      reinterpret_cast<char*>(&x_)) + sizeof(y_));
1449
3.53k
}
1450
1451
3.40k
AddRequestPB::~AddRequestPB() {
1452
  // @@protoc_insertion_point(destructor:yb.rpc_test.AddRequestPB)
1453
3.40k
  SharedDtor();
1454
3.40k
}
1455
1456
3.40k
void AddRequestPB::SharedDtor() {
1457
3.40k
}
1458
1459
0
void AddRequestPB::SetCachedSize(int size) const {
1460
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1461
0
  _cached_size_ = size;
1462
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1463
0
}
1464
0
const ::google::protobuf::Descriptor* AddRequestPB::descriptor() {
1465
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
1466
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1467
0
}
1468
1469
0
const AddRequestPB& AddRequestPB::default_instance() {
1470
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddRequestPB();
1471
0
  return *internal_default_instance();
1472
0
}
1473
1474
0
AddRequestPB* AddRequestPB::New(::google::protobuf::Arena* arena) const {
1475
0
  AddRequestPB* n = new AddRequestPB;
1476
0
  if (arena != NULL) {
1477
0
    arena->Own(n);
1478
0
  }
1479
0
  return n;
1480
0
}
1481
1482
1.45k
void AddRequestPB::Clear() {
1483
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.AddRequestPB)
1484
1.45k
  ::google::protobuf::uint32 cached_has_bits = 0;
1485
  // Prevent compiler warnings about cached_has_bits being unused
1486
1.45k
  (void) cached_has_bits;
1487
1488
1.45k
  cached_has_bits = _has_bits_[0];
1489
1.45k
  if (cached_has_bits & 3u) {
1490
0
    ::memset(&x_, 0, static_cast<size_t>(
1491
0
        reinterpret_cast<char*>(&y_) -
1492
0
        reinterpret_cast<char*>(&x_)) + sizeof(y_));
1493
0
  }
1494
1.45k
  _has_bits_.Clear();
1495
1.45k
  _internal_metadata_.Clear();
1496
1.45k
}
1497
1498
bool AddRequestPB::MergePartialFromCodedStream(
1499
1.45k
    ::google::protobuf::io::CodedInputStream* input) {
1500
2.91k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1501
1.45k
  ::google::protobuf::uint32 tag;
1502
  // @@protoc_insertion_point(parse_start:yb.rpc_test.AddRequestPB)
1503
4.33k
  for (;;) {
1504
4.33k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1505
4.33k
    tag = p.first;
1506
4.33k
    if (!p.second) 
goto handle_unusual1.45k
;
1507
2.88k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1508
      // required uint32 x = 1;
1509
1.45k
      case 1: {
1510
1.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1511
1.45k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1512
1.45k
          set_has_x();
1513
1.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1514
1.45k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1515
1.45k
                 input, &x_)));
1516
1.45k
        } else {
1517
1
          goto handle_unusual;
1518
1
        }
1519
1.45k
        break;
1520
1.45k
      }
1521
1522
      // required uint32 y = 2;
1523
1.45k
      case 2: {
1524
1.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1525
1.45k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1526
1.45k
          set_has_y();
1527
1.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1528
1.45k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1529
1.45k
                 input, &y_)));
1530
1.45k
        } else {
1531
0
          goto handle_unusual;
1532
0
        }
1533
1.45k
        break;
1534
1.45k
      }
1535
1536
1.45k
      default: {
1537
1.45k
      handle_unusual:
1538
1.46k
        if (
tag == 01.45k
) {
1539
1.46k
          goto success;
1540
1.46k
        }
1541
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1542
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1543
18.4E
        break;
1544
18.4E
      }
1545
2.88k
    }
1546
2.88k
  }
1547
1.46k
success:
1548
  // @@protoc_insertion_point(parse_success:yb.rpc_test.AddRequestPB)
1549
1.46k
  return true;
1550
0
failure:
1551
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.AddRequestPB)
1552
0
  return false;
1553
1.45k
#undef DO_
1554
1.45k
}
1555
1556
void AddRequestPB::SerializeWithCachedSizes(
1557
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1558
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.AddRequestPB)
1559
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1560
0
  (void) cached_has_bits;
1561
1562
0
  cached_has_bits = _has_bits_[0];
1563
  // required uint32 x = 1;
1564
0
  if (cached_has_bits & 0x00000001u) {
1565
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->x(), output);
1566
0
  }
1567
1568
  // required uint32 y = 2;
1569
0
  if (cached_has_bits & 0x00000002u) {
1570
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->y(), output);
1571
0
  }
1572
1573
0
  if (_internal_metadata_.have_unknown_fields()) {
1574
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1575
0
        _internal_metadata_.unknown_fields(), output);
1576
0
  }
1577
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.AddRequestPB)
1578
0
}
1579
1580
::google::protobuf::uint8* AddRequestPB::InternalSerializeWithCachedSizesToArray(
1581
2.00k
    bool deterministic, ::google::protobuf::uint8* target) const {
1582
2.00k
  (void)deterministic; // Unused
1583
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.AddRequestPB)
1584
2.00k
  ::google::protobuf::uint32 cached_has_bits = 0;
1585
2.00k
  (void) cached_has_bits;
1586
1587
2.00k
  cached_has_bits = _has_bits_[0];
1588
  // required uint32 x = 1;
1589
2.00k
  if (cached_has_bits & 0x00000001u) {
1590
2.00k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->x(), target);
1591
2.00k
  }
1592
1593
  // required uint32 y = 2;
1594
2.00k
  if (cached_has_bits & 0x00000002u) {
1595
2.00k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->y(), target);
1596
2.00k
  }
1597
1598
2.00k
  if (_internal_metadata_.have_unknown_fields()) {
1599
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1600
0
        _internal_metadata_.unknown_fields(), target);
1601
0
  }
1602
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.AddRequestPB)
1603
2.00k
  return target;
1604
2.00k
}
1605
1606
2
size_t AddRequestPB::RequiredFieldsByteSizeFallback() const {
1607
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.rpc_test.AddRequestPB)
1608
2
  size_t total_size = 0;
1609
1610
2
  if (has_x()) {
1611
    // required uint32 x = 1;
1612
2
    total_size += 1 +
1613
2
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1614
2
        this->x());
1615
2
  }
1616
1617
2
  if (has_y()) {
1618
    // required uint32 y = 2;
1619
0
    total_size += 1 +
1620
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1621
0
        this->y());
1622
0
  }
1623
1624
2
  return total_size;
1625
2
}
1626
4.01k
size_t AddRequestPB::ByteSizeLong() const {
1627
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.AddRequestPB)
1628
4.01k
  size_t total_size = 0;
1629
1630
4.01k
  if (_internal_metadata_.have_unknown_fields()) {
1631
0
    total_size +=
1632
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1633
0
        _internal_metadata_.unknown_fields());
1634
0
  }
1635
4.01k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
1636
    // required uint32 x = 1;
1637
4.00k
    total_size += 1 +
1638
4.00k
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1639
4.00k
        this->x());
1640
1641
    // required uint32 y = 2;
1642
4.00k
    total_size += 1 +
1643
4.00k
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1644
4.00k
        this->y());
1645
1646
4.00k
  } else {
1647
6
    total_size += RequiredFieldsByteSizeFallback();
1648
6
  }
1649
4.01k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1650
4.01k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1651
4.01k
  _cached_size_ = cached_size;
1652
4.01k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1653
4.01k
  return total_size;
1654
4.01k
}
1655
1656
0
void AddRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
1657
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.AddRequestPB)
1658
0
  GOOGLE_DCHECK_NE(&from, this);
1659
0
  const AddRequestPB* source =
1660
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AddRequestPB>(
1661
0
          &from);
1662
0
  if (source == NULL) {
1663
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.AddRequestPB)
1664
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1665
0
  } else {
1666
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.AddRequestPB)
1667
0
    MergeFrom(*source);
1668
0
  }
1669
0
}
1670
1671
0
void AddRequestPB::MergeFrom(const AddRequestPB& from) {
1672
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.AddRequestPB)
1673
0
  GOOGLE_DCHECK_NE(&from, this);
1674
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1675
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1676
0
  (void) cached_has_bits;
1677
1678
0
  cached_has_bits = from._has_bits_[0];
1679
0
  if (cached_has_bits & 3u) {
1680
0
    if (cached_has_bits & 0x00000001u) {
1681
0
      x_ = from.x_;
1682
0
    }
1683
0
    if (cached_has_bits & 0x00000002u) {
1684
0
      y_ = from.y_;
1685
0
    }
1686
0
    _has_bits_[0] |= cached_has_bits;
1687
0
  }
1688
0
}
1689
1690
0
void AddRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
1691
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.AddRequestPB)
1692
0
  if (&from == this) return;
1693
0
  Clear();
1694
0
  MergeFrom(from);
1695
0
}
1696
1697
0
void AddRequestPB::CopyFrom(const AddRequestPB& from) {
1698
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.AddRequestPB)
1699
0
  if (&from == this) return;
1700
0
  Clear();
1701
0
  MergeFrom(from);
1702
0
}
1703
1704
3.46k
bool AddRequestPB::IsInitialized() const {
1705
3.46k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) 
return false2
;
1706
3.46k
  return true;
1707
3.46k
}
1708
1709
0
void AddRequestPB::Swap(AddRequestPB* other) {
1710
0
  if (other == this) return;
1711
0
  InternalSwap(other);
1712
0
}
1713
0
void AddRequestPB::InternalSwap(AddRequestPB* other) {
1714
0
  using std::swap;
1715
0
  swap(x_, other->x_);
1716
0
  swap(y_, other->y_);
1717
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1718
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1719
0
  swap(_cached_size_, other->_cached_size_);
1720
0
}
1721
1722
647
::google::protobuf::Metadata AddRequestPB::GetMetadata() const {
1723
647
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
1724
647
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
1725
647
}
1726
1727
1728
// ===================================================================
1729
1730
123
void AddRequestPartialPB::InitAsDefaultInstance() {
1731
123
}
1732
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1733
const int AddRequestPartialPB::kXFieldNumber;
1734
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1735
1736
AddRequestPartialPB::AddRequestPartialPB()
1737
124
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1738
124
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1739
1
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddRequestPartialPB();
1740
1
  }
1741
124
  SharedCtor();
1742
  // @@protoc_insertion_point(constructor:yb.rpc_test.AddRequestPartialPB)
1743
124
}
1744
AddRequestPartialPB::AddRequestPartialPB(const AddRequestPartialPB& from)
1745
  : ::google::protobuf::Message(),
1746
      _internal_metadata_(NULL),
1747
      _has_bits_(from._has_bits_),
1748
0
      _cached_size_(0) {
1749
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1750
0
  x_ = from.x_;
1751
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.AddRequestPartialPB)
1752
0
}
1753
1754
124
void AddRequestPartialPB::SharedCtor() {
1755
124
  _cached_size_ = 0;
1756
124
  x_ = 0u;
1757
124
}
1758
1759
1
AddRequestPartialPB::~AddRequestPartialPB() {
1760
  // @@protoc_insertion_point(destructor:yb.rpc_test.AddRequestPartialPB)
1761
1
  SharedDtor();
1762
1
}
1763
1764
1
void AddRequestPartialPB::SharedDtor() {
1765
1
}
1766
1767
0
void AddRequestPartialPB::SetCachedSize(int size) const {
1768
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1769
0
  _cached_size_ = size;
1770
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1771
0
}
1772
0
const ::google::protobuf::Descriptor* AddRequestPartialPB::descriptor() {
1773
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
1774
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1775
0
}
1776
1777
0
const AddRequestPartialPB& AddRequestPartialPB::default_instance() {
1778
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddRequestPartialPB();
1779
0
  return *internal_default_instance();
1780
0
}
1781
1782
0
AddRequestPartialPB* AddRequestPartialPB::New(::google::protobuf::Arena* arena) const {
1783
0
  AddRequestPartialPB* n = new AddRequestPartialPB;
1784
0
  if (arena != NULL) {
1785
0
    arena->Own(n);
1786
0
  }
1787
0
  return n;
1788
0
}
1789
1790
0
void AddRequestPartialPB::Clear() {
1791
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.AddRequestPartialPB)
1792
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1793
  // Prevent compiler warnings about cached_has_bits being unused
1794
0
  (void) cached_has_bits;
1795
1796
0
  x_ = 0u;
1797
0
  _has_bits_.Clear();
1798
0
  _internal_metadata_.Clear();
1799
0
}
1800
1801
bool AddRequestPartialPB::MergePartialFromCodedStream(
1802
0
    ::google::protobuf::io::CodedInputStream* input) {
1803
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1804
0
  ::google::protobuf::uint32 tag;
1805
  // @@protoc_insertion_point(parse_start:yb.rpc_test.AddRequestPartialPB)
1806
0
  for (;;) {
1807
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1808
0
    tag = p.first;
1809
0
    if (!p.second) goto handle_unusual;
1810
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1811
      // required uint32 x = 1;
1812
0
      case 1: {
1813
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1814
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1815
0
          set_has_x();
1816
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1817
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1818
0
                 input, &x_)));
1819
0
        } else {
1820
0
          goto handle_unusual;
1821
0
        }
1822
0
        break;
1823
0
      }
1824
1825
0
      default: {
1826
0
      handle_unusual:
1827
0
        if (tag == 0) {
1828
0
          goto success;
1829
0
        }
1830
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1831
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1832
0
        break;
1833
0
      }
1834
0
    }
1835
0
  }
1836
0
success:
1837
  // @@protoc_insertion_point(parse_success:yb.rpc_test.AddRequestPartialPB)
1838
0
  return true;
1839
0
failure:
1840
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.AddRequestPartialPB)
1841
0
  return false;
1842
0
#undef DO_
1843
0
}
1844
1845
void AddRequestPartialPB::SerializeWithCachedSizes(
1846
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1847
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.AddRequestPartialPB)
1848
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1849
0
  (void) cached_has_bits;
1850
1851
0
  cached_has_bits = _has_bits_[0];
1852
  // required uint32 x = 1;
1853
0
  if (cached_has_bits & 0x00000001u) {
1854
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->x(), output);
1855
0
  }
1856
1857
0
  if (_internal_metadata_.have_unknown_fields()) {
1858
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1859
0
        _internal_metadata_.unknown_fields(), output);
1860
0
  }
1861
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.AddRequestPartialPB)
1862
0
}
1863
1864
::google::protobuf::uint8* AddRequestPartialPB::InternalSerializeWithCachedSizesToArray(
1865
1
    bool deterministic, ::google::protobuf::uint8* target) const {
1866
1
  (void)deterministic; // Unused
1867
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.AddRequestPartialPB)
1868
1
  ::google::protobuf::uint32 cached_has_bits = 0;
1869
1
  (void) cached_has_bits;
1870
1871
1
  cached_has_bits = _has_bits_[0];
1872
  // required uint32 x = 1;
1873
1
  if (cached_has_bits & 0x00000001u) {
1874
1
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->x(), target);
1875
1
  }
1876
1877
1
  if (_internal_metadata_.have_unknown_fields()) {
1878
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1879
0
        _internal_metadata_.unknown_fields(), target);
1880
0
  }
1881
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.AddRequestPartialPB)
1882
1
  return target;
1883
1
}
1884
1885
2
size_t AddRequestPartialPB::ByteSizeLong() const {
1886
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.AddRequestPartialPB)
1887
2
  size_t total_size = 0;
1888
1889
2
  if (_internal_metadata_.have_unknown_fields()) {
1890
0
    total_size +=
1891
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1892
0
        _internal_metadata_.unknown_fields());
1893
0
  }
1894
  // required uint32 x = 1;
1895
2
  if (has_x()) {
1896
2
    total_size += 1 +
1897
2
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1898
2
        this->x());
1899
2
  }
1900
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1901
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1902
2
  _cached_size_ = cached_size;
1903
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1904
2
  return total_size;
1905
2
}
1906
1907
0
void AddRequestPartialPB::MergeFrom(const ::google::protobuf::Message& from) {
1908
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.AddRequestPartialPB)
1909
0
  GOOGLE_DCHECK_NE(&from, this);
1910
0
  const AddRequestPartialPB* source =
1911
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AddRequestPartialPB>(
1912
0
          &from);
1913
0
  if (source == NULL) {
1914
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.AddRequestPartialPB)
1915
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1916
0
  } else {
1917
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.AddRequestPartialPB)
1918
0
    MergeFrom(*source);
1919
0
  }
1920
0
}
1921
1922
0
void AddRequestPartialPB::MergeFrom(const AddRequestPartialPB& from) {
1923
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.AddRequestPartialPB)
1924
0
  GOOGLE_DCHECK_NE(&from, this);
1925
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1926
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1927
0
  (void) cached_has_bits;
1928
1929
0
  if (from.has_x()) {
1930
0
    set_x(from.x());
1931
0
  }
1932
0
}
1933
1934
0
void AddRequestPartialPB::CopyFrom(const ::google::protobuf::Message& from) {
1935
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.AddRequestPartialPB)
1936
0
  if (&from == this) return;
1937
0
  Clear();
1938
0
  MergeFrom(from);
1939
0
}
1940
1941
0
void AddRequestPartialPB::CopyFrom(const AddRequestPartialPB& from) {
1942
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.AddRequestPartialPB)
1943
0
  if (&from == this) return;
1944
0
  Clear();
1945
0
  MergeFrom(from);
1946
0
}
1947
1948
1
bool AddRequestPartialPB::IsInitialized() const {
1949
1
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
1950
1
  return true;
1951
1
}
1952
1953
0
void AddRequestPartialPB::Swap(AddRequestPartialPB* other) {
1954
0
  if (other == this) return;
1955
0
  InternalSwap(other);
1956
0
}
1957
0
void AddRequestPartialPB::InternalSwap(AddRequestPartialPB* other) {
1958
0
  using std::swap;
1959
0
  swap(x_, other->x_);
1960
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1961
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1962
0
  swap(_cached_size_, other->_cached_size_);
1963
0
}
1964
1965
0
::google::protobuf::Metadata AddRequestPartialPB::GetMetadata() const {
1966
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
1967
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
1968
0
}
1969
1970
1971
// ===================================================================
1972
1973
123
void AddResponsePB::InitAsDefaultInstance() {
1974
123
}
1975
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1976
const int AddResponsePB::kResultFieldNumber;
1977
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1978
1979
AddResponsePB::AddResponsePB()
1980
3.53k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1981
3.53k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1982
3.41k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddResponsePB();
1983
3.41k
  }
1984
3.53k
  SharedCtor();
1985
  // @@protoc_insertion_point(constructor:yb.rpc_test.AddResponsePB)
1986
3.53k
}
1987
AddResponsePB::AddResponsePB(const AddResponsePB& from)
1988
  : ::google::protobuf::Message(),
1989
      _internal_metadata_(NULL),
1990
      _has_bits_(from._has_bits_),
1991
0
      _cached_size_(0) {
1992
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1993
0
  result_ = from.result_;
1994
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.AddResponsePB)
1995
0
}
1996
1997
3.53k
void AddResponsePB::SharedCtor() {
1998
3.53k
  _cached_size_ = 0;
1999
3.53k
  result_ = 0u;
2000
3.53k
}
2001
2002
3.40k
AddResponsePB::~AddResponsePB() {
2003
  // @@protoc_insertion_point(destructor:yb.rpc_test.AddResponsePB)
2004
3.40k
  SharedDtor();
2005
3.40k
}
2006
2007
3.40k
void AddResponsePB::SharedDtor() {
2008
3.40k
}
2009
2010
0
void AddResponsePB::SetCachedSize(int size) const {
2011
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2012
0
  _cached_size_ = size;
2013
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2014
0
}
2015
0
const ::google::protobuf::Descriptor* AddResponsePB::descriptor() {
2016
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2017
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2018
0
}
2019
2020
0
const AddResponsePB& AddResponsePB::default_instance() {
2021
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsAddResponsePB();
2022
0
  return *internal_default_instance();
2023
0
}
2024
2025
0
AddResponsePB* AddResponsePB::New(::google::protobuf::Arena* arena) const {
2026
0
  AddResponsePB* n = new AddResponsePB;
2027
0
  if (arena != NULL) {
2028
0
    arena->Own(n);
2029
0
  }
2030
0
  return n;
2031
0
}
2032
2033
1.46k
void AddResponsePB::Clear() {
2034
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.AddResponsePB)
2035
1.46k
  ::google::protobuf::uint32 cached_has_bits = 0;
2036
  // Prevent compiler warnings about cached_has_bits being unused
2037
1.46k
  (void) cached_has_bits;
2038
2039
1.46k
  result_ = 0u;
2040
1.46k
  _has_bits_.Clear();
2041
1.46k
  _internal_metadata_.Clear();
2042
1.46k
}
2043
2044
bool AddResponsePB::MergePartialFromCodedStream(
2045
1.46k
    ::google::protobuf::io::CodedInputStream* input) {
2046
1.46k
#define DO_(EXPRESSION) 
if (1.45k
!GOOGLE_PREDICT_TRUE1.45k
(EXPRESSION))
goto failure0
2047
1.46k
  ::google::protobuf::uint32 tag;
2048
  // @@protoc_insertion_point(parse_start:yb.rpc_test.AddResponsePB)
2049
2.91k
  for (;;) {
2050
2.91k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2051
2.91k
    tag = p.first;
2052
2.91k
    if (!p.second) 
goto handle_unusual1.45k
;
2053
1.46k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2054
      // required uint32 result = 1;
2055
1.45k
      case 1: {
2056
1.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2057
1.45k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2058
1.45k
          set_has_result();
2059
1.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2060
1.45k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2061
1.45k
                 input, &result_)));
2062
1.45k
        } else {
2063
0
          goto handle_unusual;
2064
0
        }
2065
1.45k
        break;
2066
1.45k
      }
2067
2068
1.45k
      default: {
2069
1.46k
      handle_unusual:
2070
1.46k
        if (tag == 0) {
2071
1.46k
          goto success;
2072
1.46k
        }
2073
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2074
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2075
0
        break;
2076
0
      }
2077
1.46k
    }
2078
1.46k
  }
2079
1.46k
success:
2080
  // @@protoc_insertion_point(parse_success:yb.rpc_test.AddResponsePB)
2081
1.46k
  return true;
2082
0
failure:
2083
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.AddResponsePB)
2084
0
  return false;
2085
1.46k
#undef DO_
2086
1.46k
}
2087
2088
void AddResponsePB::SerializeWithCachedSizes(
2089
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2090
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.AddResponsePB)
2091
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2092
0
  (void) cached_has_bits;
2093
2094
0
  cached_has_bits = _has_bits_[0];
2095
  // required uint32 result = 1;
2096
0
  if (cached_has_bits & 0x00000001u) {
2097
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->result(), output);
2098
0
  }
2099
2100
0
  if (_internal_metadata_.have_unknown_fields()) {
2101
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2102
0
        _internal_metadata_.unknown_fields(), output);
2103
0
  }
2104
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.AddResponsePB)
2105
0
}
2106
2107
::google::protobuf::uint8* AddResponsePB::InternalSerializeWithCachedSizesToArray(
2108
1.44k
    bool deterministic, ::google::protobuf::uint8* target) const {
2109
1.44k
  (void)deterministic; // Unused
2110
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.AddResponsePB)
2111
1.44k
  ::google::protobuf::uint32 cached_has_bits = 0;
2112
1.44k
  (void) cached_has_bits;
2113
2114
1.44k
  cached_has_bits = _has_bits_[0];
2115
  // required uint32 result = 1;
2116
1.44k
  if (cached_has_bits & 0x00000001u) {
2117
1.44k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->result(), target);
2118
1.44k
  }
2119
2120
1.44k
  if (_internal_metadata_.have_unknown_fields()) {
2121
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2122
0
        _internal_metadata_.unknown_fields(), target);
2123
0
  }
2124
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.AddResponsePB)
2125
1.44k
  return target;
2126
1.44k
}
2127
2128
2.88k
size_t AddResponsePB::ByteSizeLong() const {
2129
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.AddResponsePB)
2130
2.88k
  size_t total_size = 0;
2131
2132
2.88k
  if (_internal_metadata_.have_unknown_fields()) {
2133
0
    total_size +=
2134
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2135
0
        _internal_metadata_.unknown_fields());
2136
0
  }
2137
  // required uint32 result = 1;
2138
2.88k
  if (has_result()) {
2139
2.88k
    total_size += 1 +
2140
2.88k
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
2141
2.88k
        this->result());
2142
2.88k
  }
2143
2.88k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2144
2.88k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2145
2.88k
  _cached_size_ = cached_size;
2146
2.88k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2147
2.88k
  return total_size;
2148
2.88k
}
2149
2150
0
void AddResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2151
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.AddResponsePB)
2152
0
  GOOGLE_DCHECK_NE(&from, this);
2153
0
  const AddResponsePB* source =
2154
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AddResponsePB>(
2155
0
          &from);
2156
0
  if (source == NULL) {
2157
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.AddResponsePB)
2158
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2159
0
  } else {
2160
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.AddResponsePB)
2161
0
    MergeFrom(*source);
2162
0
  }
2163
0
}
2164
2165
0
void AddResponsePB::MergeFrom(const AddResponsePB& from) {
2166
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.AddResponsePB)
2167
0
  GOOGLE_DCHECK_NE(&from, this);
2168
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2169
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2170
0
  (void) cached_has_bits;
2171
2172
0
  if (from.has_result()) {
2173
0
    set_result(from.result());
2174
0
  }
2175
0
}
2176
2177
0
void AddResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2178
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.AddResponsePB)
2179
0
  if (&from == this) return;
2180
0
  Clear();
2181
0
  MergeFrom(from);
2182
0
}
2183
2184
0
void AddResponsePB::CopyFrom(const AddResponsePB& from) {
2185
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.AddResponsePB)
2186
0
  if (&from == this) return;
2187
0
  Clear();
2188
0
  MergeFrom(from);
2189
0
}
2190
2191
2.91k
bool AddResponsePB::IsInitialized() const {
2192
2.91k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
2193
2.91k
  return true;
2194
2.91k
}
2195
2196
0
void AddResponsePB::Swap(AddResponsePB* other) {
2197
0
  if (other == this) return;
2198
0
  InternalSwap(other);
2199
0
}
2200
0
void AddResponsePB::InternalSwap(AddResponsePB* other) {
2201
0
  using std::swap;
2202
0
  swap(result_, other->result_);
2203
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2204
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2205
0
  swap(_cached_size_, other->_cached_size_);
2206
0
}
2207
2208
0
::google::protobuf::Metadata AddResponsePB::GetMetadata() const {
2209
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2210
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
2211
0
}
2212
2213
2214
// ===================================================================
2215
2216
123
void SleepRequestPB::InitAsDefaultInstance() {
2217
123
}
2218
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2219
const int SleepRequestPB::kSleepMicrosFieldNumber;
2220
const int SleepRequestPB::kDeferredFieldNumber;
2221
const int SleepRequestPB::kReturnAppErrorFieldNumber;
2222
const int SleepRequestPB::kClientTimeoutDefinedFieldNumber;
2223
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2224
2225
SleepRequestPB::SleepRequestPB()
2226
240
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2227
240
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2228
120
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSleepRequestPB();
2229
120
  }
2230
240
  SharedCtor();
2231
  // @@protoc_insertion_point(constructor:yb.rpc_test.SleepRequestPB)
2232
240
}
2233
SleepRequestPB::SleepRequestPB(const SleepRequestPB& from)
2234
  : ::google::protobuf::Message(),
2235
      _internal_metadata_(NULL),
2236
      _has_bits_(from._has_bits_),
2237
0
      _cached_size_(0) {
2238
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2239
0
  ::memcpy(&sleep_micros_, &from.sleep_micros_,
2240
0
    static_cast<size_t>(reinterpret_cast<char*>(&client_timeout_defined_) -
2241
0
    reinterpret_cast<char*>(&sleep_micros_)) + sizeof(client_timeout_defined_));
2242
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.SleepRequestPB)
2243
0
}
2244
2245
242
void SleepRequestPB::SharedCtor() {
2246
242
  _cached_size_ = 0;
2247
242
  ::memset(&sleep_micros_, 0, static_cast<size_t>(
2248
242
      reinterpret_cast<char*>(&client_timeout_defined_) -
2249
242
      reinterpret_cast<char*>(&sleep_micros_)) + sizeof(client_timeout_defined_));
2250
242
}
2251
2252
120
SleepRequestPB::~SleepRequestPB() {
2253
  // @@protoc_insertion_point(destructor:yb.rpc_test.SleepRequestPB)
2254
120
  SharedDtor();
2255
120
}
2256
2257
120
void SleepRequestPB::SharedDtor() {
2258
120
}
2259
2260
0
void SleepRequestPB::SetCachedSize(int size) const {
2261
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2262
0
  _cached_size_ = size;
2263
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2264
0
}
2265
0
const ::google::protobuf::Descriptor* SleepRequestPB::descriptor() {
2266
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2267
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2268
0
}
2269
2270
0
const SleepRequestPB& SleepRequestPB::default_instance() {
2271
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSleepRequestPB();
2272
0
  return *internal_default_instance();
2273
0
}
2274
2275
0
SleepRequestPB* SleepRequestPB::New(::google::protobuf::Arena* arena) const {
2276
0
  SleepRequestPB* n = new SleepRequestPB;
2277
0
  if (arena != NULL) {
2278
0
    arena->Own(n);
2279
0
  }
2280
0
  return n;
2281
0
}
2282
2283
43
void SleepRequestPB::Clear() {
2284
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.SleepRequestPB)
2285
43
  ::google::protobuf::uint32 cached_has_bits = 0;
2286
  // Prevent compiler warnings about cached_has_bits being unused
2287
43
  (void) cached_has_bits;
2288
2289
43
  cached_has_bits = _has_bits_[0];
2290
43
  if (cached_has_bits & 15u) {
2291
0
    ::memset(&sleep_micros_, 0, static_cast<size_t>(
2292
0
        reinterpret_cast<char*>(&client_timeout_defined_) -
2293
0
        reinterpret_cast<char*>(&sleep_micros_)) + sizeof(client_timeout_defined_));
2294
0
  }
2295
43
  _has_bits_.Clear();
2296
43
  _internal_metadata_.Clear();
2297
43
}
2298
2299
bool SleepRequestPB::MergePartialFromCodedStream(
2300
37
    ::google::protobuf::io::CodedInputStream* input) {
2301
47
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2302
37
  ::google::protobuf::uint32 tag;
2303
  // @@protoc_insertion_point(parse_start:yb.rpc_test.SleepRequestPB)
2304
89
  for (;;) {
2305
89
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2306
89
    tag = p.first;
2307
89
    if (!p.second) 
goto handle_unusual42
;
2308
47
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2309
      // required uint32 sleep_micros = 1;
2310
38
      case 1: {
2311
38
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2312
39
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2313
39
          set_has_sleep_micros();
2314
39
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2315
39
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2316
39
                 input, &sleep_micros_)));
2317
18.4E
        } else {
2318
18.4E
          goto handle_unusual;
2319
18.4E
        }
2320
39
        break;
2321
38
      }
2322
2323
      // optional bool deferred = 2 [default = false];
2324
39
      case 2: {
2325
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2326
3
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2327
3
          set_has_deferred();
2328
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2329
3
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2330
3
                 input, &deferred_)));
2331
3
        } else {
2332
0
          goto handle_unusual;
2333
0
        }
2334
3
        break;
2335
3
      }
2336
2337
      // optional bool return_app_error = 3 [default = false];
2338
3
      case 3: {
2339
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2340
1
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2341
1
          set_has_return_app_error();
2342
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2343
1
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2344
1
                 input, &return_app_error_)));
2345
1
        } else {
2346
0
          goto handle_unusual;
2347
0
        }
2348
1
        break;
2349
1
      }
2350
2351
      // optional bool client_timeout_defined = 4 [default = false];
2352
3
      case 4: {
2353
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2354
3
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2355
3
          set_has_client_timeout_defined();
2356
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2357
3
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2358
3
                 input, &client_timeout_defined_)));
2359
3
        } else {
2360
0
          goto handle_unusual;
2361
0
        }
2362
3
        break;
2363
3
      }
2364
2365
3
      default: {
2366
42
      handle_unusual:
2367
42
        if (tag == 0) {
2368
41
          goto success;
2369
41
        }
2370
1
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2371
1
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2372
1
        break;
2373
1
      }
2374
47
    }
2375
47
  }
2376
18.4E
success:
2377
  // @@protoc_insertion_point(parse_success:yb.rpc_test.SleepRequestPB)
2378
42
  return true;
2379
0
failure:
2380
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.SleepRequestPB)
2381
0
  return false;
2382
37
#undef DO_
2383
37
}
2384
2385
void SleepRequestPB::SerializeWithCachedSizes(
2386
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2387
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.SleepRequestPB)
2388
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2389
0
  (void) cached_has_bits;
2390
2391
0
  cached_has_bits = _has_bits_[0];
2392
  // required uint32 sleep_micros = 1;
2393
0
  if (cached_has_bits & 0x00000001u) {
2394
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->sleep_micros(), output);
2395
0
  }
2396
2397
  // optional bool deferred = 2 [default = false];
2398
0
  if (cached_has_bits & 0x00000002u) {
2399
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->deferred(), output);
2400
0
  }
2401
2402
  // optional bool return_app_error = 3 [default = false];
2403
0
  if (cached_has_bits & 0x00000004u) {
2404
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->return_app_error(), output);
2405
0
  }
2406
2407
  // optional bool client_timeout_defined = 4 [default = false];
2408
0
  if (cached_has_bits & 0x00000008u) {
2409
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->client_timeout_defined(), output);
2410
0
  }
2411
2412
0
  if (_internal_metadata_.have_unknown_fields()) {
2413
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2414
0
        _internal_metadata_.unknown_fields(), output);
2415
0
  }
2416
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.SleepRequestPB)
2417
0
}
2418
2419
::google::protobuf::uint8* SleepRequestPB::InternalSerializeWithCachedSizesToArray(
2420
58
    bool deterministic, ::google::protobuf::uint8* target) const {
2421
58
  (void)deterministic; // Unused
2422
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.SleepRequestPB)
2423
58
  ::google::protobuf::uint32 cached_has_bits = 0;
2424
58
  (void) cached_has_bits;
2425
2426
58
  cached_has_bits = _has_bits_[0];
2427
  // required uint32 sleep_micros = 1;
2428
58
  if (cached_has_bits & 0x00000001u) {
2429
58
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->sleep_micros(), target);
2430
58
  }
2431
2432
  // optional bool deferred = 2 [default = false];
2433
58
  if (cached_has_bits & 0x00000002u) {
2434
3
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->deferred(), target);
2435
3
  }
2436
2437
  // optional bool return_app_error = 3 [default = false];
2438
58
  if (cached_has_bits & 0x00000004u) {
2439
1
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->return_app_error(), target);
2440
1
  }
2441
2442
  // optional bool client_timeout_defined = 4 [default = false];
2443
58
  if (cached_has_bits & 0x00000008u) {
2444
12
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->client_timeout_defined(), target);
2445
12
  }
2446
2447
58
  if (_internal_metadata_.have_unknown_fields()) {
2448
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2449
0
        _internal_metadata_.unknown_fields(), target);
2450
0
  }
2451
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.SleepRequestPB)
2452
58
  return target;
2453
58
}
2454
2455
136
size_t SleepRequestPB::ByteSizeLong() const {
2456
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.SleepRequestPB)
2457
136
  size_t total_size = 0;
2458
2459
136
  if (_internal_metadata_.have_unknown_fields()) {
2460
0
    total_size +=
2461
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2462
0
        _internal_metadata_.unknown_fields());
2463
0
  }
2464
  // required uint32 sleep_micros = 1;
2465
136
  if (has_sleep_micros()) {
2466
136
    total_size += 1 +
2467
136
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
2468
136
        this->sleep_micros());
2469
136
  }
2470
136
  if (_has_bits_[0 / 32] & 14u) {
2471
    // optional bool deferred = 2 [default = false];
2472
32
    if (has_deferred()) {
2473
6
      total_size += 1 + 1;
2474
6
    }
2475
2476
    // optional bool return_app_error = 3 [default = false];
2477
32
    if (has_return_app_error()) {
2478
2
      total_size += 1 + 1;
2479
2
    }
2480
2481
    // optional bool client_timeout_defined = 4 [default = false];
2482
32
    if (has_client_timeout_defined()) {
2483
24
      total_size += 1 + 1;
2484
24
    }
2485
2486
32
  }
2487
136
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2488
136
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2489
136
  _cached_size_ = cached_size;
2490
136
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2491
136
  return total_size;
2492
136
}
2493
2494
0
void SleepRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2495
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.SleepRequestPB)
2496
0
  GOOGLE_DCHECK_NE(&from, this);
2497
0
  const SleepRequestPB* source =
2498
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SleepRequestPB>(
2499
0
          &from);
2500
0
  if (source == NULL) {
2501
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.SleepRequestPB)
2502
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2503
0
  } else {
2504
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.SleepRequestPB)
2505
0
    MergeFrom(*source);
2506
0
  }
2507
0
}
2508
2509
0
void SleepRequestPB::MergeFrom(const SleepRequestPB& from) {
2510
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.SleepRequestPB)
2511
0
  GOOGLE_DCHECK_NE(&from, this);
2512
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2513
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2514
0
  (void) cached_has_bits;
2515
2516
0
  cached_has_bits = from._has_bits_[0];
2517
0
  if (cached_has_bits & 15u) {
2518
0
    if (cached_has_bits & 0x00000001u) {
2519
0
      sleep_micros_ = from.sleep_micros_;
2520
0
    }
2521
0
    if (cached_has_bits & 0x00000002u) {
2522
0
      deferred_ = from.deferred_;
2523
0
    }
2524
0
    if (cached_has_bits & 0x00000004u) {
2525
0
      return_app_error_ = from.return_app_error_;
2526
0
    }
2527
0
    if (cached_has_bits & 0x00000008u) {
2528
0
      client_timeout_defined_ = from.client_timeout_defined_;
2529
0
    }
2530
0
    _has_bits_[0] |= cached_has_bits;
2531
0
  }
2532
0
}
2533
2534
0
void SleepRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2535
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.SleepRequestPB)
2536
0
  if (&from == this) return;
2537
0
  Clear();
2538
0
  MergeFrom(from);
2539
0
}
2540
2541
0
void SleepRequestPB::CopyFrom(const SleepRequestPB& from) {
2542
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.SleepRequestPB)
2543
0
  if (&from == this) return;
2544
0
  Clear();
2545
0
  MergeFrom(from);
2546
0
}
2547
2548
101
bool SleepRequestPB::IsInitialized() const {
2549
101
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
2550
101
  return true;
2551
101
}
2552
2553
0
void SleepRequestPB::Swap(SleepRequestPB* other) {
2554
0
  if (other == this) return;
2555
0
  InternalSwap(other);
2556
0
}
2557
0
void SleepRequestPB::InternalSwap(SleepRequestPB* other) {
2558
0
  using std::swap;
2559
0
  swap(sleep_micros_, other->sleep_micros_);
2560
0
  swap(deferred_, other->deferred_);
2561
0
  swap(return_app_error_, other->return_app_error_);
2562
0
  swap(client_timeout_defined_, other->client_timeout_defined_);
2563
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2564
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2565
0
  swap(_cached_size_, other->_cached_size_);
2566
0
}
2567
2568
41
::google::protobuf::Metadata SleepRequestPB::GetMetadata() const {
2569
41
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2570
41
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
2571
41
}
2572
2573
2574
// ===================================================================
2575
2576
123
void SleepResponsePB::InitAsDefaultInstance() {
2577
123
}
2578
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2579
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2580
2581
SleepResponsePB::SleepResponsePB()
2582
243
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2583
243
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2584
120
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSleepResponsePB();
2585
120
  }
2586
243
  SharedCtor();
2587
  // @@protoc_insertion_point(constructor:yb.rpc_test.SleepResponsePB)
2588
243
}
2589
SleepResponsePB::SleepResponsePB(const SleepResponsePB& from)
2590
  : ::google::protobuf::Message(),
2591
      _internal_metadata_(NULL),
2592
      _has_bits_(from._has_bits_),
2593
0
      _cached_size_(0) {
2594
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2595
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.SleepResponsePB)
2596
0
}
2597
2598
237
void SleepResponsePB::SharedCtor() {
2599
237
  _cached_size_ = 0;
2600
237
}
2601
2602
120
SleepResponsePB::~SleepResponsePB() {
2603
  // @@protoc_insertion_point(destructor:yb.rpc_test.SleepResponsePB)
2604
120
  SharedDtor();
2605
120
}
2606
2607
119
void SleepResponsePB::SharedDtor() {
2608
119
}
2609
2610
0
void SleepResponsePB::SetCachedSize(int size) const {
2611
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2612
0
  _cached_size_ = size;
2613
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2614
0
}
2615
0
const ::google::protobuf::Descriptor* SleepResponsePB::descriptor() {
2616
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2617
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2618
0
}
2619
2620
0
const SleepResponsePB& SleepResponsePB::default_instance() {
2621
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSleepResponsePB();
2622
0
  return *internal_default_instance();
2623
0
}
2624
2625
0
SleepResponsePB* SleepResponsePB::New(::google::protobuf::Arena* arena) const {
2626
0
  SleepResponsePB* n = new SleepResponsePB;
2627
0
  if (arena != NULL) {
2628
0
    arena->Own(n);
2629
0
  }
2630
0
  return n;
2631
0
}
2632
2633
37
void SleepResponsePB::Clear() {
2634
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.SleepResponsePB)
2635
37
  ::google::protobuf::uint32 cached_has_bits = 0;
2636
  // Prevent compiler warnings about cached_has_bits being unused
2637
37
  (void) cached_has_bits;
2638
2639
37
  _has_bits_.Clear();
2640
37
  _internal_metadata_.Clear();
2641
37
}
2642
2643
bool SleepResponsePB::MergePartialFromCodedStream(
2644
37
    ::google::protobuf::io::CodedInputStream* input) {
2645
37
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
2646
37
  ::google::protobuf::uint32 tag;
2647
  // @@protoc_insertion_point(parse_start:yb.rpc_test.SleepResponsePB)
2648
37
  for (;;) {
2649
37
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2650
37
    tag = p.first;
2651
37
    if (!p.second) goto handle_unusual;
2652
37
  handle_unusual:
2653
37
    if (tag == 0) {
2654
37
      goto success;
2655
37
    }
2656
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
2657
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
2658
0
  }
2659
37
success:
2660
  // @@protoc_insertion_point(parse_success:yb.rpc_test.SleepResponsePB)
2661
37
  return true;
2662
0
failure:
2663
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.SleepResponsePB)
2664
0
  return false;
2665
37
#undef DO_
2666
37
}
2667
2668
void SleepResponsePB::SerializeWithCachedSizes(
2669
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2670
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.SleepResponsePB)
2671
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2672
0
  (void) cached_has_bits;
2673
2674
0
  if (_internal_metadata_.have_unknown_fields()) {
2675
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2676
0
        _internal_metadata_.unknown_fields(), output);
2677
0
  }
2678
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.SleepResponsePB)
2679
0
}
2680
2681
::google::protobuf::uint8* SleepResponsePB::InternalSerializeWithCachedSizesToArray(
2682
37
    bool deterministic, ::google::protobuf::uint8* target) const {
2683
37
  (void)deterministic; // Unused
2684
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.SleepResponsePB)
2685
37
  ::google::protobuf::uint32 cached_has_bits = 0;
2686
37
  (void) cached_has_bits;
2687
2688
37
  if (_internal_metadata_.have_unknown_fields()) {
2689
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2690
0
        _internal_metadata_.unknown_fields(), target);
2691
0
  }
2692
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.SleepResponsePB)
2693
37
  return target;
2694
37
}
2695
2696
72
size_t SleepResponsePB::ByteSizeLong() const {
2697
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.SleepResponsePB)
2698
72
  size_t total_size = 0;
2699
2700
72
  if (_internal_metadata_.have_unknown_fields()) {
2701
0
    total_size +=
2702
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2703
0
        _internal_metadata_.unknown_fields());
2704
0
  }
2705
72
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2706
72
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2707
72
  _cached_size_ = cached_size;
2708
72
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2709
72
  return total_size;
2710
72
}
2711
2712
0
void SleepResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2713
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.SleepResponsePB)
2714
0
  GOOGLE_DCHECK_NE(&from, this);
2715
0
  const SleepResponsePB* source =
2716
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SleepResponsePB>(
2717
0
          &from);
2718
0
  if (source == NULL) {
2719
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.SleepResponsePB)
2720
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2721
0
  } else {
2722
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.SleepResponsePB)
2723
0
    MergeFrom(*source);
2724
0
  }
2725
0
}
2726
2727
0
void SleepResponsePB::MergeFrom(const SleepResponsePB& from) {
2728
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.SleepResponsePB)
2729
0
  GOOGLE_DCHECK_NE(&from, this);
2730
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2731
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2732
0
  (void) cached_has_bits;
2733
2734
0
}
2735
2736
0
void SleepResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2737
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.SleepResponsePB)
2738
0
  if (&from == this) return;
2739
0
  Clear();
2740
0
  MergeFrom(from);
2741
0
}
2742
2743
0
void SleepResponsePB::CopyFrom(const SleepResponsePB& from) {
2744
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.SleepResponsePB)
2745
0
  if (&from == this) return;
2746
0
  Clear();
2747
0
  MergeFrom(from);
2748
0
}
2749
2750
78
bool SleepResponsePB::IsInitialized() const {
2751
78
  return true;
2752
78
}
2753
2754
0
void SleepResponsePB::Swap(SleepResponsePB* other) {
2755
0
  if (other == this) return;
2756
0
  InternalSwap(other);
2757
0
}
2758
0
void SleepResponsePB::InternalSwap(SleepResponsePB* other) {
2759
0
  using std::swap;
2760
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2761
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2762
0
  swap(_cached_size_, other->_cached_size_);
2763
0
}
2764
2765
0
::google::protobuf::Metadata SleepResponsePB::GetMetadata() const {
2766
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2767
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
2768
0
}
2769
2770
2771
// ===================================================================
2772
2773
123
void SendStringsRequestPB::InitAsDefaultInstance() {
2774
123
}
2775
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2776
const int SendStringsRequestPB::kRandomSeedFieldNumber;
2777
const int SendStringsRequestPB::kSizesFieldNumber;
2778
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2779
2780
SendStringsRequestPB::SendStringsRequestPB()
2781
129
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2782
129
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2783
6
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSendStringsRequestPB();
2784
6
  }
2785
129
  SharedCtor();
2786
  // @@protoc_insertion_point(constructor:yb.rpc_test.SendStringsRequestPB)
2787
129
}
2788
SendStringsRequestPB::SendStringsRequestPB(const SendStringsRequestPB& from)
2789
  : ::google::protobuf::Message(),
2790
      _internal_metadata_(NULL),
2791
      _has_bits_(from._has_bits_),
2792
      _cached_size_(0),
2793
0
      sizes_(from.sizes_) {
2794
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2795
0
  random_seed_ = from.random_seed_;
2796
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.SendStringsRequestPB)
2797
0
}
2798
2799
129
void SendStringsRequestPB::SharedCtor() {
2800
129
  _cached_size_ = 0;
2801
129
  random_seed_ = 0u;
2802
129
}
2803
2804
6
SendStringsRequestPB::~SendStringsRequestPB() {
2805
  // @@protoc_insertion_point(destructor:yb.rpc_test.SendStringsRequestPB)
2806
6
  SharedDtor();
2807
6
}
2808
2809
6
void SendStringsRequestPB::SharedDtor() {
2810
6
}
2811
2812
0
void SendStringsRequestPB::SetCachedSize(int size) const {
2813
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2814
0
  _cached_size_ = size;
2815
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2816
0
}
2817
0
const ::google::protobuf::Descriptor* SendStringsRequestPB::descriptor() {
2818
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
2819
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2820
0
}
2821
2822
0
const SendStringsRequestPB& SendStringsRequestPB::default_instance() {
2823
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSendStringsRequestPB();
2824
0
  return *internal_default_instance();
2825
0
}
2826
2827
0
SendStringsRequestPB* SendStringsRequestPB::New(::google::protobuf::Arena* arena) const {
2828
0
  SendStringsRequestPB* n = new SendStringsRequestPB;
2829
0
  if (arena != NULL) {
2830
0
    arena->Own(n);
2831
0
  }
2832
0
  return n;
2833
0
}
2834
2835
3
void SendStringsRequestPB::Clear() {
2836
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.SendStringsRequestPB)
2837
3
  ::google::protobuf::uint32 cached_has_bits = 0;
2838
  // Prevent compiler warnings about cached_has_bits being unused
2839
3
  (void) cached_has_bits;
2840
2841
3
  sizes_.Clear();
2842
3
  random_seed_ = 0u;
2843
3
  _has_bits_.Clear();
2844
3
  _internal_metadata_.Clear();
2845
3
}
2846
2847
bool SendStringsRequestPB::MergePartialFromCodedStream(
2848
3
    ::google::protobuf::io::CodedInputStream* input) {
2849
9
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2850
3
  ::google::protobuf::uint32 tag;
2851
  // @@protoc_insertion_point(parse_start:yb.rpc_test.SendStringsRequestPB)
2852
12
  for (;;) {
2853
12
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2854
12
    tag = p.first;
2855
12
    if (!p.second) 
goto handle_unusual3
;
2856
9
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2857
      // optional uint32 random_seed = 1;
2858
3
      case 1: {
2859
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2860
3
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2861
3
          set_has_random_seed();
2862
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2863
3
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2864
3
                 input, &random_seed_)));
2865
3
        } else {
2866
0
          goto handle_unusual;
2867
0
        }
2868
3
        break;
2869
3
      }
2870
2871
      // repeated uint64 sizes = 2;
2872
6
      case 2: {
2873
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2874
6
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2875
6
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
2876
6
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2877
6
                 1, 16u, input, this->mutable_sizes())));
2878
6
        } else if (
2879
0
            static_cast< ::google::protobuf::uint8>(tag) ==
2880
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2881
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
2882
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2883
0
                 input, this->mutable_sizes())));
2884
0
        } else {
2885
0
          goto handle_unusual;
2886
0
        }
2887
6
        break;
2888
6
      }
2889
2890
6
      default: {
2891
3
      handle_unusual:
2892
3
        if (tag == 0) {
2893
3
          goto success;
2894
3
        }
2895
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2896
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2897
0
        break;
2898
0
      }
2899
9
    }
2900
9
  }
2901
3
success:
2902
  // @@protoc_insertion_point(parse_success:yb.rpc_test.SendStringsRequestPB)
2903
3
  return true;
2904
0
failure:
2905
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.SendStringsRequestPB)
2906
0
  return false;
2907
3
#undef DO_
2908
3
}
2909
2910
void SendStringsRequestPB::SerializeWithCachedSizes(
2911
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2912
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.SendStringsRequestPB)
2913
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2914
0
  (void) cached_has_bits;
2915
2916
0
  cached_has_bits = _has_bits_[0];
2917
  // optional uint32 random_seed = 1;
2918
0
  if (cached_has_bits & 0x00000001u) {
2919
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->random_seed(), output);
2920
0
  }
2921
2922
  // repeated uint64 sizes = 2;
2923
0
  for (int i = 0, n = this->sizes_size(); i < n; i++) {
2924
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(
2925
0
      2, this->sizes(i), output);
2926
0
  }
2927
2928
0
  if (_internal_metadata_.have_unknown_fields()) {
2929
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2930
0
        _internal_metadata_.unknown_fields(), output);
2931
0
  }
2932
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.SendStringsRequestPB)
2933
0
}
2934
2935
::google::protobuf::uint8* SendStringsRequestPB::InternalSerializeWithCachedSizesToArray(
2936
3
    bool deterministic, ::google::protobuf::uint8* target) const {
2937
3
  (void)deterministic; // Unused
2938
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.SendStringsRequestPB)
2939
3
  ::google::protobuf::uint32 cached_has_bits = 0;
2940
3
  (void) cached_has_bits;
2941
2942
3
  cached_has_bits = _has_bits_[0];
2943
  // optional uint32 random_seed = 1;
2944
3
  if (cached_has_bits & 0x00000001u) {
2945
3
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->random_seed(), target);
2946
3
  }
2947
2948
  // repeated uint64 sizes = 2;
2949
3
  target = ::google::protobuf::internal::WireFormatLite::
2950
3
    WriteUInt64ToArray(2, this->sizes_, target);
2951
2952
3
  if (_internal_metadata_.have_unknown_fields()) {
2953
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2954
0
        _internal_metadata_.unknown_fields(), target);
2955
0
  }
2956
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.SendStringsRequestPB)
2957
3
  return target;
2958
3
}
2959
2960
6
size_t SendStringsRequestPB::ByteSizeLong() const {
2961
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.SendStringsRequestPB)
2962
6
  size_t total_size = 0;
2963
2964
6
  if (_internal_metadata_.have_unknown_fields()) {
2965
0
    total_size +=
2966
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2967
0
        _internal_metadata_.unknown_fields());
2968
0
  }
2969
  // repeated uint64 sizes = 2;
2970
6
  {
2971
6
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
2972
6
      UInt64Size(this->sizes_);
2973
6
    total_size += 1 *
2974
6
                  ::google::protobuf::internal::FromIntSize(this->sizes_size());
2975
6
    total_size += data_size;
2976
6
  }
2977
2978
  // optional uint32 random_seed = 1;
2979
6
  if (has_random_seed()) {
2980
6
    total_size += 1 +
2981
6
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
2982
6
        this->random_seed());
2983
6
  }
2984
2985
6
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2986
6
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2987
6
  _cached_size_ = cached_size;
2988
6
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2989
6
  return total_size;
2990
6
}
2991
2992
0
void SendStringsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2993
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.SendStringsRequestPB)
2994
0
  GOOGLE_DCHECK_NE(&from, this);
2995
0
  const SendStringsRequestPB* source =
2996
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SendStringsRequestPB>(
2997
0
          &from);
2998
0
  if (source == NULL) {
2999
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.SendStringsRequestPB)
3000
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3001
0
  } else {
3002
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.SendStringsRequestPB)
3003
0
    MergeFrom(*source);
3004
0
  }
3005
0
}
3006
3007
0
void SendStringsRequestPB::MergeFrom(const SendStringsRequestPB& from) {
3008
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.SendStringsRequestPB)
3009
0
  GOOGLE_DCHECK_NE(&from, this);
3010
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3011
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3012
0
  (void) cached_has_bits;
3013
3014
0
  sizes_.MergeFrom(from.sizes_);
3015
0
  if (from.has_random_seed()) {
3016
0
    set_random_seed(from.random_seed());
3017
0
  }
3018
0
}
3019
3020
0
void SendStringsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3021
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.SendStringsRequestPB)
3022
0
  if (&from == this) return;
3023
0
  Clear();
3024
0
  MergeFrom(from);
3025
0
}
3026
3027
0
void SendStringsRequestPB::CopyFrom(const SendStringsRequestPB& from) {
3028
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.SendStringsRequestPB)
3029
0
  if (&from == this) return;
3030
0
  Clear();
3031
0
  MergeFrom(from);
3032
0
}
3033
3034
6
bool SendStringsRequestPB::IsInitialized() const {
3035
6
  return true;
3036
6
}
3037
3038
0
void SendStringsRequestPB::Swap(SendStringsRequestPB* other) {
3039
0
  if (other == this) return;
3040
0
  InternalSwap(other);
3041
0
}
3042
0
void SendStringsRequestPB::InternalSwap(SendStringsRequestPB* other) {
3043
0
  using std::swap;
3044
0
  sizes_.InternalSwap(&other->sizes_);
3045
0
  swap(random_seed_, other->random_seed_);
3046
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3047
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3048
0
  swap(_cached_size_, other->_cached_size_);
3049
0
}
3050
3051
0
::google::protobuf::Metadata SendStringsRequestPB::GetMetadata() const {
3052
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3053
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
3054
0
}
3055
3056
3057
// ===================================================================
3058
3059
123
void SendStringsResponsePB::InitAsDefaultInstance() {
3060
123
}
3061
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3062
const int SendStringsResponsePB::kSidecarsFieldNumber;
3063
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3064
3065
SendStringsResponsePB::SendStringsResponsePB()
3066
129
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3067
129
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3068
6
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSendStringsResponsePB();
3069
6
  }
3070
129
  SharedCtor();
3071
  // @@protoc_insertion_point(constructor:yb.rpc_test.SendStringsResponsePB)
3072
129
}
3073
SendStringsResponsePB::SendStringsResponsePB(const SendStringsResponsePB& from)
3074
  : ::google::protobuf::Message(),
3075
      _internal_metadata_(NULL),
3076
      _has_bits_(from._has_bits_),
3077
      _cached_size_(0),
3078
0
      sidecars_(from.sidecars_) {
3079
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3080
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.SendStringsResponsePB)
3081
0
}
3082
3083
129
void SendStringsResponsePB::SharedCtor() {
3084
129
  _cached_size_ = 0;
3085
129
}
3086
3087
6
SendStringsResponsePB::~SendStringsResponsePB() {
3088
  // @@protoc_insertion_point(destructor:yb.rpc_test.SendStringsResponsePB)
3089
6
  SharedDtor();
3090
6
}
3091
3092
6
void SendStringsResponsePB::SharedDtor() {
3093
6
}
3094
3095
0
void SendStringsResponsePB::SetCachedSize(int size) const {
3096
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3097
0
  _cached_size_ = size;
3098
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3099
0
}
3100
0
const ::google::protobuf::Descriptor* SendStringsResponsePB::descriptor() {
3101
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3102
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3103
0
}
3104
3105
0
const SendStringsResponsePB& SendStringsResponsePB::default_instance() {
3106
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsSendStringsResponsePB();
3107
0
  return *internal_default_instance();
3108
0
}
3109
3110
0
SendStringsResponsePB* SendStringsResponsePB::New(::google::protobuf::Arena* arena) const {
3111
0
  SendStringsResponsePB* n = new SendStringsResponsePB;
3112
0
  if (arena != NULL) {
3113
0
    arena->Own(n);
3114
0
  }
3115
0
  return n;
3116
0
}
3117
3118
3
void SendStringsResponsePB::Clear() {
3119
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.SendStringsResponsePB)
3120
3
  ::google::protobuf::uint32 cached_has_bits = 0;
3121
  // Prevent compiler warnings about cached_has_bits being unused
3122
3
  (void) cached_has_bits;
3123
3124
3
  sidecars_.Clear();
3125
3
  _has_bits_.Clear();
3126
3
  _internal_metadata_.Clear();
3127
3
}
3128
3129
bool SendStringsResponsePB::MergePartialFromCodedStream(
3130
3
    ::google::protobuf::io::CodedInputStream* input) {
3131
6
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3132
3
  ::google::protobuf::uint32 tag;
3133
  // @@protoc_insertion_point(parse_start:yb.rpc_test.SendStringsResponsePB)
3134
9
  for (;;) {
3135
9
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3136
9
    tag = p.first;
3137
9
    if (!p.second) 
goto handle_unusual3
;
3138
6
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3139
      // repeated uint32 sidecars = 1;
3140
6
      case 1: {
3141
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3142
6
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3143
6
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
3144
6
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3145
6
                 1, 8u, input, this->mutable_sidecars())));
3146
6
        } else if (
3147
0
            static_cast< ::google::protobuf::uint8>(tag) ==
3148
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3149
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
3150
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3151
0
                 input, this->mutable_sidecars())));
3152
0
        } else {
3153
0
          goto handle_unusual;
3154
0
        }
3155
6
        break;
3156
6
      }
3157
3158
6
      default: {
3159
3
      handle_unusual:
3160
3
        if (tag == 0) {
3161
3
          goto success;
3162
3
        }
3163
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3164
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3165
0
        break;
3166
0
      }
3167
6
    }
3168
6
  }
3169
3
success:
3170
  // @@protoc_insertion_point(parse_success:yb.rpc_test.SendStringsResponsePB)
3171
3
  return true;
3172
0
failure:
3173
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.SendStringsResponsePB)
3174
0
  return false;
3175
3
#undef DO_
3176
3
}
3177
3178
void SendStringsResponsePB::SerializeWithCachedSizes(
3179
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3180
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.SendStringsResponsePB)
3181
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3182
0
  (void) cached_has_bits;
3183
3184
  // repeated uint32 sidecars = 1;
3185
0
  for (int i = 0, n = this->sidecars_size(); i < n; i++) {
3186
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
3187
0
      1, this->sidecars(i), output);
3188
0
  }
3189
3190
0
  if (_internal_metadata_.have_unknown_fields()) {
3191
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3192
0
        _internal_metadata_.unknown_fields(), output);
3193
0
  }
3194
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.SendStringsResponsePB)
3195
0
}
3196
3197
::google::protobuf::uint8* SendStringsResponsePB::InternalSerializeWithCachedSizesToArray(
3198
3
    bool deterministic, ::google::protobuf::uint8* target) const {
3199
3
  (void)deterministic; // Unused
3200
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.SendStringsResponsePB)
3201
3
  ::google::protobuf::uint32 cached_has_bits = 0;
3202
3
  (void) cached_has_bits;
3203
3204
  // repeated uint32 sidecars = 1;
3205
3
  target = ::google::protobuf::internal::WireFormatLite::
3206
3
    WriteUInt32ToArray(1, this->sidecars_, target);
3207
3208
3
  if (_internal_metadata_.have_unknown_fields()) {
3209
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3210
0
        _internal_metadata_.unknown_fields(), target);
3211
0
  }
3212
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.SendStringsResponsePB)
3213
3
  return target;
3214
3
}
3215
3216
6
size_t SendStringsResponsePB::ByteSizeLong() const {
3217
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.SendStringsResponsePB)
3218
6
  size_t total_size = 0;
3219
3220
6
  if (_internal_metadata_.have_unknown_fields()) {
3221
0
    total_size +=
3222
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3223
0
        _internal_metadata_.unknown_fields());
3224
0
  }
3225
  // repeated uint32 sidecars = 1;
3226
6
  {
3227
6
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
3228
6
      UInt32Size(this->sidecars_);
3229
6
    total_size += 1 *
3230
6
                  ::google::protobuf::internal::FromIntSize(this->sidecars_size());
3231
6
    total_size += data_size;
3232
6
  }
3233
3234
6
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3235
6
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3236
6
  _cached_size_ = cached_size;
3237
6
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3238
6
  return total_size;
3239
6
}
3240
3241
0
void SendStringsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
3242
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.SendStringsResponsePB)
3243
0
  GOOGLE_DCHECK_NE(&from, this);
3244
0
  const SendStringsResponsePB* source =
3245
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SendStringsResponsePB>(
3246
0
          &from);
3247
0
  if (source == NULL) {
3248
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.SendStringsResponsePB)
3249
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3250
0
  } else {
3251
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.SendStringsResponsePB)
3252
0
    MergeFrom(*source);
3253
0
  }
3254
0
}
3255
3256
0
void SendStringsResponsePB::MergeFrom(const SendStringsResponsePB& from) {
3257
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.SendStringsResponsePB)
3258
0
  GOOGLE_DCHECK_NE(&from, this);
3259
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3260
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3261
0
  (void) cached_has_bits;
3262
3263
0
  sidecars_.MergeFrom(from.sidecars_);
3264
0
}
3265
3266
0
void SendStringsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
3267
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.SendStringsResponsePB)
3268
0
  if (&from == this) return;
3269
0
  Clear();
3270
0
  MergeFrom(from);
3271
0
}
3272
3273
0
void SendStringsResponsePB::CopyFrom(const SendStringsResponsePB& from) {
3274
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.SendStringsResponsePB)
3275
0
  if (&from == this) return;
3276
0
  Clear();
3277
0
  MergeFrom(from);
3278
0
}
3279
3280
6
bool SendStringsResponsePB::IsInitialized() const {
3281
6
  return true;
3282
6
}
3283
3284
0
void SendStringsResponsePB::Swap(SendStringsResponsePB* other) {
3285
0
  if (other == this) return;
3286
0
  InternalSwap(other);
3287
0
}
3288
0
void SendStringsResponsePB::InternalSwap(SendStringsResponsePB* other) {
3289
0
  using std::swap;
3290
0
  sidecars_.InternalSwap(&other->sidecars_);
3291
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3292
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3293
0
  swap(_cached_size_, other->_cached_size_);
3294
0
}
3295
3296
0
::google::protobuf::Metadata SendStringsResponsePB::GetMetadata() const {
3297
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3298
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
3299
0
}
3300
3301
3302
// ===================================================================
3303
3304
123
void EchoRequestPB::InitAsDefaultInstance() {
3305
123
}
3306
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3307
const int EchoRequestPB::kDataFieldNumber;
3308
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3309
3310
EchoRequestPB::EchoRequestPB()
3311
295k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3312
295k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3313
295k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsEchoRequestPB();
3314
295k
  }
3315
295k
  SharedCtor();
3316
  // @@protoc_insertion_point(constructor:yb.rpc_test.EchoRequestPB)
3317
295k
}
3318
EchoRequestPB::EchoRequestPB(const EchoRequestPB& from)
3319
  : ::google::protobuf::Message(),
3320
      _internal_metadata_(NULL),
3321
      _has_bits_(from._has_bits_),
3322
0
      _cached_size_(0) {
3323
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3324
0
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3325
0
  if (from.has_data()) {
3326
0
    data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
3327
0
  }
3328
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.EchoRequestPB)
3329
0
}
3330
3331
295k
void EchoRequestPB::SharedCtor() {
3332
295k
  _cached_size_ = 0;
3333
295k
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3334
295k
}
3335
3336
295k
EchoRequestPB::~EchoRequestPB() {
3337
  // @@protoc_insertion_point(destructor:yb.rpc_test.EchoRequestPB)
3338
295k
  SharedDtor();
3339
295k
}
3340
3341
295k
void EchoRequestPB::SharedDtor() {
3342
295k
  data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3343
295k
}
3344
3345
0
void EchoRequestPB::SetCachedSize(int size) const {
3346
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3347
0
  _cached_size_ = size;
3348
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3349
0
}
3350
0
const ::google::protobuf::Descriptor* EchoRequestPB::descriptor() {
3351
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3352
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3353
0
}
3354
3355
0
const EchoRequestPB& EchoRequestPB::default_instance() {
3356
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsEchoRequestPB();
3357
0
  return *internal_default_instance();
3358
0
}
3359
3360
0
EchoRequestPB* EchoRequestPB::New(::google::protobuf::Arena* arena) const {
3361
0
  EchoRequestPB* n = new EchoRequestPB;
3362
0
  if (arena != NULL) {
3363
0
    arena->Own(n);
3364
0
  }
3365
0
  return n;
3366
0
}
3367
3368
275k
void EchoRequestPB::Clear() {
3369
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.EchoRequestPB)
3370
275k
  ::google::protobuf::uint32 cached_has_bits = 0;
3371
  // Prevent compiler warnings about cached_has_bits being unused
3372
275k
  (void) cached_has_bits;
3373
3374
275k
  cached_has_bits = _has_bits_[0];
3375
275k
  if (cached_has_bits & 0x00000001u) {
3376
0
    GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3377
0
    (*data_.UnsafeRawStringPointer())->clear();
3378
0
  }
3379
275k
  _has_bits_.Clear();
3380
275k
  _internal_metadata_.Clear();
3381
275k
}
3382
3383
bool EchoRequestPB::MergePartialFromCodedStream(
3384
275k
    ::google::protobuf::io::CodedInputStream* input) {
3385
275k
#define DO_(EXPRESSION) 
if (275k
!GOOGLE_PREDICT_TRUE275k
(EXPRESSION))
goto failure0
3386
275k
  ::google::protobuf::uint32 tag;
3387
  // @@protoc_insertion_point(parse_start:yb.rpc_test.EchoRequestPB)
3388
551k
  for (;;) {
3389
551k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3390
551k
    tag = p.first;
3391
551k
    if (!p.second) 
goto handle_unusual275k
;
3392
275k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3393
      // required string data = 1;
3394
275k
      case 1: {
3395
275k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3396
275k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3397
275k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3398
275k
                input, this->mutable_data()));
3399
275k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3400
275k
            this->data().data(), static_cast<int>(this->data().length()),
3401
275k
            ::google::protobuf::internal::WireFormat::PARSE,
3402
275k
            "yb.rpc_test.EchoRequestPB.data");
3403
18.4E
        } else {
3404
18.4E
          goto handle_unusual;
3405
18.4E
        }
3406
275k
        break;
3407
275k
      }
3408
3409
275k
      default: {
3410
275k
      handle_unusual:
3411
275k
        if (
tag == 0275k
) {
3412
275k
          goto success;
3413
275k
        }
3414
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3415
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3416
18.4E
        break;
3417
18.4E
      }
3418
275k
    }
3419
275k
  }
3420
275k
success:
3421
  // @@protoc_insertion_point(parse_success:yb.rpc_test.EchoRequestPB)
3422
275k
  return true;
3423
0
failure:
3424
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.EchoRequestPB)
3425
0
  return false;
3426
275k
#undef DO_
3427
275k
}
3428
3429
void EchoRequestPB::SerializeWithCachedSizes(
3430
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3431
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.EchoRequestPB)
3432
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3433
0
  (void) cached_has_bits;
3434
3435
0
  cached_has_bits = _has_bits_[0];
3436
  // required string data = 1;
3437
0
  if (cached_has_bits & 0x00000001u) {
3438
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3439
0
      this->data().data(), static_cast<int>(this->data().length()),
3440
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3441
0
      "yb.rpc_test.EchoRequestPB.data");
3442
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3443
0
      1, this->data(), output);
3444
0
  }
3445
3446
0
  if (_internal_metadata_.have_unknown_fields()) {
3447
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3448
0
        _internal_metadata_.unknown_fields(), output);
3449
0
  }
3450
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.EchoRequestPB)
3451
0
}
3452
3453
::google::protobuf::uint8* EchoRequestPB::InternalSerializeWithCachedSizesToArray(
3454
278k
    bool deterministic, ::google::protobuf::uint8* target) const {
3455
278k
  (void)deterministic; // Unused
3456
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.EchoRequestPB)
3457
278k
  ::google::protobuf::uint32 cached_has_bits = 0;
3458
278k
  (void) cached_has_bits;
3459
3460
278k
  cached_has_bits = _has_bits_[0];
3461
  // required string data = 1;
3462
278k
  if (
cached_has_bits & 0x00000001u278k
) {
3463
278k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3464
278k
      this->data().data(), static_cast<int>(this->data().length()),
3465
278k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3466
278k
      "yb.rpc_test.EchoRequestPB.data");
3467
278k
    target =
3468
278k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3469
278k
        1, this->data(), target);
3470
278k
  }
3471
3472
278k
  if (_internal_metadata_.have_unknown_fields()) {
3473
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3474
0
        _internal_metadata_.unknown_fields(), target);
3475
0
  }
3476
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.EchoRequestPB)
3477
278k
  return target;
3478
278k
}
3479
3480
555k
size_t EchoRequestPB::ByteSizeLong() const {
3481
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.EchoRequestPB)
3482
555k
  size_t total_size = 0;
3483
3484
555k
  if (_internal_metadata_.have_unknown_fields()) {
3485
0
    total_size +=
3486
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3487
0
        _internal_metadata_.unknown_fields());
3488
0
  }
3489
  // required string data = 1;
3490
555k
  if (has_data()) {
3491
550k
    total_size += 1 +
3492
550k
      ::google::protobuf::internal::WireFormatLite::StringSize(
3493
550k
        this->data());
3494
550k
  }
3495
555k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3496
555k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3497
555k
  _cached_size_ = cached_size;
3498
555k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3499
555k
  return total_size;
3500
555k
}
3501
3502
0
void EchoRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3503
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.EchoRequestPB)
3504
0
  GOOGLE_DCHECK_NE(&from, this);
3505
0
  const EchoRequestPB* source =
3506
0
      ::google::protobuf::internal::DynamicCastToGenerated<const EchoRequestPB>(
3507
0
          &from);
3508
0
  if (source == NULL) {
3509
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.EchoRequestPB)
3510
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3511
0
  } else {
3512
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.EchoRequestPB)
3513
0
    MergeFrom(*source);
3514
0
  }
3515
0
}
3516
3517
0
void EchoRequestPB::MergeFrom(const EchoRequestPB& from) {
3518
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.EchoRequestPB)
3519
0
  GOOGLE_DCHECK_NE(&from, this);
3520
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3521
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3522
0
  (void) cached_has_bits;
3523
3524
0
  if (from.has_data()) {
3525
0
    set_has_data();
3526
0
    data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
3527
0
  }
3528
0
}
3529
3530
0
void EchoRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3531
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.EchoRequestPB)
3532
0
  if (&from == this) return;
3533
0
  Clear();
3534
0
  MergeFrom(from);
3535
0
}
3536
3537
0
void EchoRequestPB::CopyFrom(const EchoRequestPB& from) {
3538
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.EchoRequestPB)
3539
0
  if (&from == this) return;
3540
0
  Clear();
3541
0
  MergeFrom(from);
3542
0
}
3543
3544
553k
bool EchoRequestPB::IsInitialized() const {
3545
553k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
3546
553k
  return true;
3547
553k
}
3548
3549
0
void EchoRequestPB::Swap(EchoRequestPB* other) {
3550
0
  if (other == this) return;
3551
0
  InternalSwap(other);
3552
0
}
3553
0
void EchoRequestPB::InternalSwap(EchoRequestPB* other) {
3554
0
  using std::swap;
3555
0
  data_.Swap(&other->data_);
3556
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3557
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3558
0
  swap(_cached_size_, other->_cached_size_);
3559
0
}
3560
3561
13.6k
::google::protobuf::Metadata EchoRequestPB::GetMetadata() const {
3562
13.6k
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3563
13.6k
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
3564
13.6k
}
3565
3566
3567
// ===================================================================
3568
3569
123
void EchoResponsePB::InitAsDefaultInstance() {
3570
123
}
3571
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3572
const int EchoResponsePB::kDataFieldNumber;
3573
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3574
3575
EchoResponsePB::EchoResponsePB()
3576
557k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3577
557k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3578
557k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsEchoResponsePB();
3579
557k
  }
3580
557k
  SharedCtor();
3581
  // @@protoc_insertion_point(constructor:yb.rpc_test.EchoResponsePB)
3582
557k
}
3583
EchoResponsePB::EchoResponsePB(const EchoResponsePB& from)
3584
  : ::google::protobuf::Message(),
3585
      _internal_metadata_(NULL),
3586
      _has_bits_(from._has_bits_),
3587
0
      _cached_size_(0) {
3588
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3589
0
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3590
0
  if (from.has_data()) {
3591
0
    data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
3592
0
  }
3593
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.EchoResponsePB)
3594
0
}
3595
3596
557k
void EchoResponsePB::SharedCtor() {
3597
557k
  _cached_size_ = 0;
3598
557k
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3599
557k
}
3600
3601
556k
EchoResponsePB::~EchoResponsePB() {
3602
  // @@protoc_insertion_point(destructor:yb.rpc_test.EchoResponsePB)
3603
556k
  SharedDtor();
3604
556k
}
3605
3606
556k
void EchoResponsePB::SharedDtor() {
3607
556k
  data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3608
556k
}
3609
3610
0
void EchoResponsePB::SetCachedSize(int size) const {
3611
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3612
0
  _cached_size_ = size;
3613
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3614
0
}
3615
0
const ::google::protobuf::Descriptor* EchoResponsePB::descriptor() {
3616
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3617
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3618
0
}
3619
3620
0
const EchoResponsePB& EchoResponsePB::default_instance() {
3621
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsEchoResponsePB();
3622
0
  return *internal_default_instance();
3623
0
}
3624
3625
0
EchoResponsePB* EchoResponsePB::New(::google::protobuf::Arena* arena) const {
3626
0
  EchoResponsePB* n = new EchoResponsePB;
3627
0
  if (arena != NULL) {
3628
0
    arena->Own(n);
3629
0
  }
3630
0
  return n;
3631
0
}
3632
3633
272k
void EchoResponsePB::Clear() {
3634
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.EchoResponsePB)
3635
272k
  ::google::protobuf::uint32 cached_has_bits = 0;
3636
  // Prevent compiler warnings about cached_has_bits being unused
3637
272k
  (void) cached_has_bits;
3638
3639
272k
  cached_has_bits = _has_bits_[0];
3640
272k
  if (cached_has_bits & 0x00000001u) {
3641
114
    GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3642
114
    (*data_.UnsafeRawStringPointer())->clear();
3643
114
  }
3644
272k
  _has_bits_.Clear();
3645
272k
  _internal_metadata_.Clear();
3646
272k
}
3647
3648
bool EchoResponsePB::MergePartialFromCodedStream(
3649
272k
    ::google::protobuf::io::CodedInputStream* input) {
3650
272k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3651
272k
  ::google::protobuf::uint32 tag;
3652
  // @@protoc_insertion_point(parse_start:yb.rpc_test.EchoResponsePB)
3653
544k
  for (;;) {
3654
544k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3655
544k
    tag = p.first;
3656
544k
    if (!p.second) 
goto handle_unusual272k
;
3657
272k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3658
      // required string data = 1;
3659
272k
      case 1: {
3660
272k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3661
272k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3662
272k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3663
272k
                input, this->mutable_data()));
3664
272k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3665
272k
            this->data().data(), static_cast<int>(this->data().length()),
3666
272k
            ::google::protobuf::internal::WireFormat::PARSE,
3667
272k
            "yb.rpc_test.EchoResponsePB.data");
3668
272k
        } else {
3669
0
          goto handle_unusual;
3670
0
        }
3671
272k
        break;
3672
272k
      }
3673
3674
272k
      default: {
3675
272k
      handle_unusual:
3676
272k
        if (tag == 0) {
3677
272k
          goto success;
3678
272k
        }
3679
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3680
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3681
0
        break;
3682
0
      }
3683
272k
    }
3684
272k
  }
3685
272k
success:
3686
  // @@protoc_insertion_point(parse_success:yb.rpc_test.EchoResponsePB)
3687
272k
  return true;
3688
0
failure:
3689
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.EchoResponsePB)
3690
0
  return false;
3691
272k
#undef DO_
3692
272k
}
3693
3694
void EchoResponsePB::SerializeWithCachedSizes(
3695
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3696
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.EchoResponsePB)
3697
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3698
0
  (void) cached_has_bits;
3699
3700
0
  cached_has_bits = _has_bits_[0];
3701
  // required string data = 1;
3702
0
  if (cached_has_bits & 0x00000001u) {
3703
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3704
0
      this->data().data(), static_cast<int>(this->data().length()),
3705
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3706
0
      "yb.rpc_test.EchoResponsePB.data");
3707
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3708
0
      1, this->data(), output);
3709
0
  }
3710
3711
0
  if (_internal_metadata_.have_unknown_fields()) {
3712
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3713
0
        _internal_metadata_.unknown_fields(), output);
3714
0
  }
3715
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.EchoResponsePB)
3716
0
}
3717
3718
::google::protobuf::uint8* EchoResponsePB::InternalSerializeWithCachedSizesToArray(
3719
275k
    bool deterministic, ::google::protobuf::uint8* target) const {
3720
275k
  (void)deterministic; // Unused
3721
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.EchoResponsePB)
3722
275k
  ::google::protobuf::uint32 cached_has_bits = 0;
3723
275k
  (void) cached_has_bits;
3724
3725
275k
  cached_has_bits = _has_bits_[0];
3726
  // required string data = 1;
3727
275k
  if (
cached_has_bits & 0x00000001u275k
) {
3728
275k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3729
275k
      this->data().data(), static_cast<int>(this->data().length()),
3730
275k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3731
275k
      "yb.rpc_test.EchoResponsePB.data");
3732
275k
    target =
3733
275k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3734
275k
        1, this->data(), target);
3735
275k
  }
3736
3737
275k
  if (_internal_metadata_.have_unknown_fields()) {
3738
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3739
0
        _internal_metadata_.unknown_fields(), target);
3740
0
  }
3741
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.EchoResponsePB)
3742
275k
  return target;
3743
275k
}
3744
3745
550k
size_t EchoResponsePB::ByteSizeLong() const {
3746
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.EchoResponsePB)
3747
550k
  size_t total_size = 0;
3748
3749
550k
  if (_internal_metadata_.have_unknown_fields()) {
3750
0
    total_size +=
3751
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3752
0
        _internal_metadata_.unknown_fields());
3753
0
  }
3754
  // required string data = 1;
3755
550k
  if (
has_data()550k
) {
3756
550k
    total_size += 1 +
3757
550k
      ::google::protobuf::internal::WireFormatLite::StringSize(
3758
550k
        this->data());
3759
550k
  }
3760
550k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3761
550k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3762
550k
  _cached_size_ = cached_size;
3763
550k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3764
550k
  return total_size;
3765
550k
}
3766
3767
0
void EchoResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
3768
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.EchoResponsePB)
3769
0
  GOOGLE_DCHECK_NE(&from, this);
3770
0
  const EchoResponsePB* source =
3771
0
      ::google::protobuf::internal::DynamicCastToGenerated<const EchoResponsePB>(
3772
0
          &from);
3773
0
  if (source == NULL) {
3774
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.EchoResponsePB)
3775
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3776
0
  } else {
3777
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.EchoResponsePB)
3778
0
    MergeFrom(*source);
3779
0
  }
3780
0
}
3781
3782
0
void EchoResponsePB::MergeFrom(const EchoResponsePB& from) {
3783
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.EchoResponsePB)
3784
0
  GOOGLE_DCHECK_NE(&from, this);
3785
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3786
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3787
0
  (void) cached_has_bits;
3788
3789
0
  if (from.has_data()) {
3790
0
    set_has_data();
3791
0
    data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
3792
0
  }
3793
0
}
3794
3795
0
void EchoResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
3796
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.EchoResponsePB)
3797
0
  if (&from == this) return;
3798
0
  Clear();
3799
0
  MergeFrom(from);
3800
0
}
3801
3802
0
void EchoResponsePB::CopyFrom(const EchoResponsePB& from) {
3803
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.EchoResponsePB)
3804
0
  if (&from == this) return;
3805
0
  Clear();
3806
0
  MergeFrom(from);
3807
0
}
3808
3809
547k
bool EchoResponsePB::IsInitialized() const {
3810
547k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
3811
547k
  return true;
3812
547k
}
3813
3814
0
void EchoResponsePB::Swap(EchoResponsePB* other) {
3815
0
  if (other == this) return;
3816
0
  InternalSwap(other);
3817
0
}
3818
0
void EchoResponsePB::InternalSwap(EchoResponsePB* other) {
3819
0
  using std::swap;
3820
0
  data_.Swap(&other->data_);
3821
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3822
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3823
0
  swap(_cached_size_, other->_cached_size_);
3824
0
}
3825
3826
0
::google::protobuf::Metadata EchoResponsePB::GetMetadata() const {
3827
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3828
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
3829
0
}
3830
3831
3832
// ===================================================================
3833
3834
123
void WhoAmIRequestPB::InitAsDefaultInstance() {
3835
123
}
3836
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3837
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3838
3839
WhoAmIRequestPB::WhoAmIRequestPB()
3840
131
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3841
131
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3842
8
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsWhoAmIRequestPB();
3843
8
  }
3844
131
  SharedCtor();
3845
  // @@protoc_insertion_point(constructor:yb.rpc_test.WhoAmIRequestPB)
3846
131
}
3847
WhoAmIRequestPB::WhoAmIRequestPB(const WhoAmIRequestPB& from)
3848
  : ::google::protobuf::Message(),
3849
      _internal_metadata_(NULL),
3850
      _has_bits_(from._has_bits_),
3851
0
      _cached_size_(0) {
3852
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3853
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.WhoAmIRequestPB)
3854
0
}
3855
3856
131
void WhoAmIRequestPB::SharedCtor() {
3857
131
  _cached_size_ = 0;
3858
131
}
3859
3860
8
WhoAmIRequestPB::~WhoAmIRequestPB() {
3861
  // @@protoc_insertion_point(destructor:yb.rpc_test.WhoAmIRequestPB)
3862
8
  SharedDtor();
3863
8
}
3864
3865
8
void WhoAmIRequestPB::SharedDtor() {
3866
8
}
3867
3868
0
void WhoAmIRequestPB::SetCachedSize(int size) const {
3869
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3870
0
  _cached_size_ = size;
3871
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3872
0
}
3873
0
const ::google::protobuf::Descriptor* WhoAmIRequestPB::descriptor() {
3874
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
3875
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3876
0
}
3877
3878
0
const WhoAmIRequestPB& WhoAmIRequestPB::default_instance() {
3879
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsWhoAmIRequestPB();
3880
0
  return *internal_default_instance();
3881
0
}
3882
3883
0
WhoAmIRequestPB* WhoAmIRequestPB::New(::google::protobuf::Arena* arena) const {
3884
0
  WhoAmIRequestPB* n = new WhoAmIRequestPB;
3885
0
  if (arena != NULL) {
3886
0
    arena->Own(n);
3887
0
  }
3888
0
  return n;
3889
0
}
3890
3891
4
void WhoAmIRequestPB::Clear() {
3892
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.WhoAmIRequestPB)
3893
4
  ::google::protobuf::uint32 cached_has_bits = 0;
3894
  // Prevent compiler warnings about cached_has_bits being unused
3895
4
  (void) cached_has_bits;
3896
3897
4
  _has_bits_.Clear();
3898
4
  _internal_metadata_.Clear();
3899
4
}
3900
3901
bool WhoAmIRequestPB::MergePartialFromCodedStream(
3902
4
    ::google::protobuf::io::CodedInputStream* input) {
3903
4
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
3904
4
  ::google::protobuf::uint32 tag;
3905
  // @@protoc_insertion_point(parse_start:yb.rpc_test.WhoAmIRequestPB)
3906
4
  for (;;) {
3907
4
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3908
4
    tag = p.first;
3909
4
    if (!p.second) goto handle_unusual;
3910
4
  handle_unusual:
3911
4
    if (tag == 0) {
3912
4
      goto success;
3913
4
    }
3914
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
3915
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
3916
0
  }
3917
4
success:
3918
  // @@protoc_insertion_point(parse_success:yb.rpc_test.WhoAmIRequestPB)
3919
4
  return true;
3920
0
failure:
3921
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.WhoAmIRequestPB)
3922
0
  return false;
3923
4
#undef DO_
3924
4
}
3925
3926
void WhoAmIRequestPB::SerializeWithCachedSizes(
3927
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3928
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.WhoAmIRequestPB)
3929
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3930
0
  (void) cached_has_bits;
3931
3932
0
  if (_internal_metadata_.have_unknown_fields()) {
3933
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3934
0
        _internal_metadata_.unknown_fields(), output);
3935
0
  }
3936
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.WhoAmIRequestPB)
3937
0
}
3938
3939
::google::protobuf::uint8* WhoAmIRequestPB::InternalSerializeWithCachedSizesToArray(
3940
4
    bool deterministic, ::google::protobuf::uint8* target) const {
3941
4
  (void)deterministic; // Unused
3942
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.WhoAmIRequestPB)
3943
4
  ::google::protobuf::uint32 cached_has_bits = 0;
3944
4
  (void) cached_has_bits;
3945
3946
4
  if (_internal_metadata_.have_unknown_fields()) {
3947
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3948
0
        _internal_metadata_.unknown_fields(), target);
3949
0
  }
3950
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.WhoAmIRequestPB)
3951
4
  return target;
3952
4
}
3953
3954
8
size_t WhoAmIRequestPB::ByteSizeLong() const {
3955
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.WhoAmIRequestPB)
3956
8
  size_t total_size = 0;
3957
3958
8
  if (_internal_metadata_.have_unknown_fields()) {
3959
0
    total_size +=
3960
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3961
0
        _internal_metadata_.unknown_fields());
3962
0
  }
3963
8
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3964
8
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3965
8
  _cached_size_ = cached_size;
3966
8
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3967
8
  return total_size;
3968
8
}
3969
3970
0
void WhoAmIRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3971
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.WhoAmIRequestPB)
3972
0
  GOOGLE_DCHECK_NE(&from, this);
3973
0
  const WhoAmIRequestPB* source =
3974
0
      ::google::protobuf::internal::DynamicCastToGenerated<const WhoAmIRequestPB>(
3975
0
          &from);
3976
0
  if (source == NULL) {
3977
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.WhoAmIRequestPB)
3978
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3979
0
  } else {
3980
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.WhoAmIRequestPB)
3981
0
    MergeFrom(*source);
3982
0
  }
3983
0
}
3984
3985
0
void WhoAmIRequestPB::MergeFrom(const WhoAmIRequestPB& from) {
3986
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.WhoAmIRequestPB)
3987
0
  GOOGLE_DCHECK_NE(&from, this);
3988
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3989
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3990
0
  (void) cached_has_bits;
3991
3992
0
}
3993
3994
0
void WhoAmIRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3995
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.WhoAmIRequestPB)
3996
0
  if (&from == this) return;
3997
0
  Clear();
3998
0
  MergeFrom(from);
3999
0
}
4000
4001
0
void WhoAmIRequestPB::CopyFrom(const WhoAmIRequestPB& from) {
4002
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.WhoAmIRequestPB)
4003
0
  if (&from == this) return;
4004
0
  Clear();
4005
0
  MergeFrom(from);
4006
0
}
4007
4008
8
bool WhoAmIRequestPB::IsInitialized() const {
4009
8
  return true;
4010
8
}
4011
4012
0
void WhoAmIRequestPB::Swap(WhoAmIRequestPB* other) {
4013
0
  if (other == this) return;
4014
0
  InternalSwap(other);
4015
0
}
4016
0
void WhoAmIRequestPB::InternalSwap(WhoAmIRequestPB* other) {
4017
0
  using std::swap;
4018
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4019
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4020
0
  swap(_cached_size_, other->_cached_size_);
4021
0
}
4022
4023
4
::google::protobuf::Metadata WhoAmIRequestPB::GetMetadata() const {
4024
4
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4025
4
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
4026
4
}
4027
4028
4029
// ===================================================================
4030
4031
123
void WhoAmIResponsePB::InitAsDefaultInstance() {
4032
123
}
4033
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4034
const int WhoAmIResponsePB::kAddressFieldNumber;
4035
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4036
4037
WhoAmIResponsePB::WhoAmIResponsePB()
4038
131
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4039
131
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4040
8
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsWhoAmIResponsePB();
4041
8
  }
4042
131
  SharedCtor();
4043
  // @@protoc_insertion_point(constructor:yb.rpc_test.WhoAmIResponsePB)
4044
131
}
4045
WhoAmIResponsePB::WhoAmIResponsePB(const WhoAmIResponsePB& from)
4046
  : ::google::protobuf::Message(),
4047
      _internal_metadata_(NULL),
4048
      _has_bits_(from._has_bits_),
4049
0
      _cached_size_(0) {
4050
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4051
0
  address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4052
0
  if (from.has_address()) {
4053
0
    address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
4054
0
  }
4055
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.WhoAmIResponsePB)
4056
0
}
4057
4058
131
void WhoAmIResponsePB::SharedCtor() {
4059
131
  _cached_size_ = 0;
4060
131
  address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4061
131
}
4062
4063
8
WhoAmIResponsePB::~WhoAmIResponsePB() {
4064
  // @@protoc_insertion_point(destructor:yb.rpc_test.WhoAmIResponsePB)
4065
8
  SharedDtor();
4066
8
}
4067
4068
8
void WhoAmIResponsePB::SharedDtor() {
4069
8
  address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4070
8
}
4071
4072
0
void WhoAmIResponsePB::SetCachedSize(int size) const {
4073
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4074
0
  _cached_size_ = size;
4075
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4076
0
}
4077
0
const ::google::protobuf::Descriptor* WhoAmIResponsePB::descriptor() {
4078
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4079
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4080
0
}
4081
4082
0
const WhoAmIResponsePB& WhoAmIResponsePB::default_instance() {
4083
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsWhoAmIResponsePB();
4084
0
  return *internal_default_instance();
4085
0
}
4086
4087
0
WhoAmIResponsePB* WhoAmIResponsePB::New(::google::protobuf::Arena* arena) const {
4088
0
  WhoAmIResponsePB* n = new WhoAmIResponsePB;
4089
0
  if (arena != NULL) {
4090
0
    arena->Own(n);
4091
0
  }
4092
0
  return n;
4093
0
}
4094
4095
4
void WhoAmIResponsePB::Clear() {
4096
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.WhoAmIResponsePB)
4097
4
  ::google::protobuf::uint32 cached_has_bits = 0;
4098
  // Prevent compiler warnings about cached_has_bits being unused
4099
4
  (void) cached_has_bits;
4100
4101
4
  cached_has_bits = _has_bits_[0];
4102
4
  if (cached_has_bits & 0x00000001u) {
4103
0
    GOOGLE_DCHECK(!address_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4104
0
    (*address_.UnsafeRawStringPointer())->clear();
4105
0
  }
4106
4
  _has_bits_.Clear();
4107
4
  _internal_metadata_.Clear();
4108
4
}
4109
4110
bool WhoAmIResponsePB::MergePartialFromCodedStream(
4111
4
    ::google::protobuf::io::CodedInputStream* input) {
4112
4
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
4113
4
  ::google::protobuf::uint32 tag;
4114
  // @@protoc_insertion_point(parse_start:yb.rpc_test.WhoAmIResponsePB)
4115
8
  for (;;) {
4116
8
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4117
8
    tag = p.first;
4118
8
    if (!p.second) 
goto handle_unusual4
;
4119
4
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4120
      // required string address = 2;
4121
4
      case 2: {
4122
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4123
4
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4124
4
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4125
4
                input, this->mutable_address()));
4126
4
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4127
4
            this->address().data(), static_cast<int>(this->address().length()),
4128
4
            ::google::protobuf::internal::WireFormat::PARSE,
4129
4
            "yb.rpc_test.WhoAmIResponsePB.address");
4130
4
        } else {
4131
0
          goto handle_unusual;
4132
0
        }
4133
4
        break;
4134
4
      }
4135
4136
4
      default: {
4137
4
      handle_unusual:
4138
4
        if (tag == 0) {
4139
4
          goto success;
4140
4
        }
4141
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4142
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4143
0
        break;
4144
0
      }
4145
4
    }
4146
4
  }
4147
4
success:
4148
  // @@protoc_insertion_point(parse_success:yb.rpc_test.WhoAmIResponsePB)
4149
4
  return true;
4150
0
failure:
4151
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.WhoAmIResponsePB)
4152
0
  return false;
4153
4
#undef DO_
4154
4
}
4155
4156
void WhoAmIResponsePB::SerializeWithCachedSizes(
4157
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4158
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.WhoAmIResponsePB)
4159
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4160
0
  (void) cached_has_bits;
4161
4162
0
  cached_has_bits = _has_bits_[0];
4163
  // required string address = 2;
4164
0
  if (cached_has_bits & 0x00000001u) {
4165
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4166
0
      this->address().data(), static_cast<int>(this->address().length()),
4167
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4168
0
      "yb.rpc_test.WhoAmIResponsePB.address");
4169
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4170
0
      2, this->address(), output);
4171
0
  }
4172
4173
0
  if (_internal_metadata_.have_unknown_fields()) {
4174
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4175
0
        _internal_metadata_.unknown_fields(), output);
4176
0
  }
4177
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.WhoAmIResponsePB)
4178
0
}
4179
4180
::google::protobuf::uint8* WhoAmIResponsePB::InternalSerializeWithCachedSizesToArray(
4181
4
    bool deterministic, ::google::protobuf::uint8* target) const {
4182
4
  (void)deterministic; // Unused
4183
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.WhoAmIResponsePB)
4184
4
  ::google::protobuf::uint32 cached_has_bits = 0;
4185
4
  (void) cached_has_bits;
4186
4187
4
  cached_has_bits = _has_bits_[0];
4188
  // required string address = 2;
4189
4
  if (cached_has_bits & 0x00000001u) {
4190
4
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4191
4
      this->address().data(), static_cast<int>(this->address().length()),
4192
4
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4193
4
      "yb.rpc_test.WhoAmIResponsePB.address");
4194
4
    target =
4195
4
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4196
4
        2, this->address(), target);
4197
4
  }
4198
4199
4
  if (_internal_metadata_.have_unknown_fields()) {
4200
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4201
0
        _internal_metadata_.unknown_fields(), target);
4202
0
  }
4203
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.WhoAmIResponsePB)
4204
4
  return target;
4205
4
}
4206
4207
8
size_t WhoAmIResponsePB::ByteSizeLong() const {
4208
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.WhoAmIResponsePB)
4209
8
  size_t total_size = 0;
4210
4211
8
  if (_internal_metadata_.have_unknown_fields()) {
4212
0
    total_size +=
4213
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4214
0
        _internal_metadata_.unknown_fields());
4215
0
  }
4216
  // required string address = 2;
4217
8
  if (has_address()) {
4218
8
    total_size += 1 +
4219
8
      ::google::protobuf::internal::WireFormatLite::StringSize(
4220
8
        this->address());
4221
8
  }
4222
8
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4223
8
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4224
8
  _cached_size_ = cached_size;
4225
8
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4226
8
  return total_size;
4227
8
}
4228
4229
0
void WhoAmIResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4230
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.WhoAmIResponsePB)
4231
0
  GOOGLE_DCHECK_NE(&from, this);
4232
0
  const WhoAmIResponsePB* source =
4233
0
      ::google::protobuf::internal::DynamicCastToGenerated<const WhoAmIResponsePB>(
4234
0
          &from);
4235
0
  if (source == NULL) {
4236
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.WhoAmIResponsePB)
4237
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4238
0
  } else {
4239
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.WhoAmIResponsePB)
4240
0
    MergeFrom(*source);
4241
0
  }
4242
0
}
4243
4244
0
void WhoAmIResponsePB::MergeFrom(const WhoAmIResponsePB& from) {
4245
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.WhoAmIResponsePB)
4246
0
  GOOGLE_DCHECK_NE(&from, this);
4247
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4248
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4249
0
  (void) cached_has_bits;
4250
4251
0
  if (from.has_address()) {
4252
0
    set_has_address();
4253
0
    address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
4254
0
  }
4255
0
}
4256
4257
0
void WhoAmIResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4258
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.WhoAmIResponsePB)
4259
0
  if (&from == this) return;
4260
0
  Clear();
4261
0
  MergeFrom(from);
4262
0
}
4263
4264
0
void WhoAmIResponsePB::CopyFrom(const WhoAmIResponsePB& from) {
4265
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.WhoAmIResponsePB)
4266
0
  if (&from == this) return;
4267
0
  Clear();
4268
0
  MergeFrom(from);
4269
0
}
4270
4271
8
bool WhoAmIResponsePB::IsInitialized() const {
4272
8
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
4273
8
  return true;
4274
8
}
4275
4276
0
void WhoAmIResponsePB::Swap(WhoAmIResponsePB* other) {
4277
0
  if (other == this) return;
4278
0
  InternalSwap(other);
4279
0
}
4280
0
void WhoAmIResponsePB::InternalSwap(WhoAmIResponsePB* other) {
4281
0
  using std::swap;
4282
0
  address_.Swap(&other->address_);
4283
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4284
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4285
0
  swap(_cached_size_, other->_cached_size_);
4286
0
}
4287
4288
0
::google::protobuf::Metadata WhoAmIResponsePB::GetMetadata() const {
4289
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4290
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
4291
0
}
4292
4293
4294
// ===================================================================
4295
4296
123
void CalculatorError::InitAsDefaultInstance() {
4297
123
}
4298
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4299
const int CalculatorError::kExtraErrorDataFieldNumber;
4300
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4301
4302
CalculatorError::CalculatorError()
4303
129
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4304
129
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4305
6
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsCalculatorError();
4306
6
  }
4307
129
  SharedCtor();
4308
  // @@protoc_insertion_point(constructor:yb.rpc_test.CalculatorError)
4309
129
}
4310
CalculatorError::CalculatorError(const CalculatorError& from)
4311
  : ::google::protobuf::Message(),
4312
      _internal_metadata_(NULL),
4313
      _has_bits_(from._has_bits_),
4314
0
      _cached_size_(0) {
4315
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4316
0
  extra_error_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4317
0
  if (from.has_extra_error_data()) {
4318
0
    extra_error_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_error_data_);
4319
0
  }
4320
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.CalculatorError)
4321
0
}
4322
4323
129
void CalculatorError::SharedCtor() {
4324
129
  _cached_size_ = 0;
4325
129
  extra_error_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4326
129
}
4327
4328
6
CalculatorError::~CalculatorError() {
4329
  // @@protoc_insertion_point(destructor:yb.rpc_test.CalculatorError)
4330
6
  SharedDtor();
4331
6
}
4332
4333
6
void CalculatorError::SharedDtor() {
4334
6
  extra_error_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4335
6
}
4336
4337
0
void CalculatorError::SetCachedSize(int size) const {
4338
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4339
0
  _cached_size_ = size;
4340
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4341
0
}
4342
0
const ::google::protobuf::Descriptor* CalculatorError::descriptor() {
4343
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4344
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4345
0
}
4346
4347
123
const CalculatorError& CalculatorError::default_instance() {
4348
123
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsCalculatorError();
4349
123
  return *internal_default_instance();
4350
123
}
4351
4352
4
CalculatorError* CalculatorError::New(::google::protobuf::Arena* arena) const {
4353
4
  CalculatorError* n = new CalculatorError;
4354
4
  if (arena != NULL) {
4355
0
    arena->Own(n);
4356
0
  }
4357
4
  return n;
4358
4
}
4359
4360
0
void CalculatorError::Clear() {
4361
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.CalculatorError)
4362
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4363
  // Prevent compiler warnings about cached_has_bits being unused
4364
0
  (void) cached_has_bits;
4365
4366
0
  cached_has_bits = _has_bits_[0];
4367
0
  if (cached_has_bits & 0x00000001u) {
4368
0
    GOOGLE_DCHECK(!extra_error_data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4369
0
    (*extra_error_data_.UnsafeRawStringPointer())->clear();
4370
0
  }
4371
0
  _has_bits_.Clear();
4372
0
  _internal_metadata_.Clear();
4373
0
}
4374
4375
bool CalculatorError::MergePartialFromCodedStream(
4376
2
    ::google::protobuf::io::CodedInputStream* input) {
4377
2
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
4378
2
  ::google::protobuf::uint32 tag;
4379
  // @@protoc_insertion_point(parse_start:yb.rpc_test.CalculatorError)
4380
4
  for (;;) {
4381
4
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4382
4
    tag = p.first;
4383
4
    if (!p.second) 
goto handle_unusual2
;
4384
2
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4385
      // required string extra_error_data = 1;
4386
2
      case 1: {
4387
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4388
2
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4389
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4390
2
                input, this->mutable_extra_error_data()));
4391
2
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4392
2
            this->extra_error_data().data(), static_cast<int>(this->extra_error_data().length()),
4393
2
            ::google::protobuf::internal::WireFormat::PARSE,
4394
2
            "yb.rpc_test.CalculatorError.extra_error_data");
4395
2
        } else {
4396
0
          goto handle_unusual;
4397
0
        }
4398
2
        break;
4399
2
      }
4400
4401
2
      default: {
4402
2
      handle_unusual:
4403
2
        if (tag == 0) {
4404
2
          goto success;
4405
2
        }
4406
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4407
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4408
0
        break;
4409
0
      }
4410
2
    }
4411
2
  }
4412
2
success:
4413
  // @@protoc_insertion_point(parse_success:yb.rpc_test.CalculatorError)
4414
2
  return true;
4415
0
failure:
4416
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.CalculatorError)
4417
0
  return false;
4418
2
#undef DO_
4419
2
}
4420
4421
void CalculatorError::SerializeWithCachedSizes(
4422
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4423
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.CalculatorError)
4424
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4425
0
  (void) cached_has_bits;
4426
4427
0
  cached_has_bits = _has_bits_[0];
4428
  // required string extra_error_data = 1;
4429
0
  if (cached_has_bits & 0x00000001u) {
4430
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4431
0
      this->extra_error_data().data(), static_cast<int>(this->extra_error_data().length()),
4432
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4433
0
      "yb.rpc_test.CalculatorError.extra_error_data");
4434
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4435
0
      1, this->extra_error_data(), output);
4436
0
  }
4437
4438
0
  if (_internal_metadata_.have_unknown_fields()) {
4439
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4440
0
        _internal_metadata_.unknown_fields(), output);
4441
0
  }
4442
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.CalculatorError)
4443
0
}
4444
4445
::google::protobuf::uint8* CalculatorError::InternalSerializeWithCachedSizesToArray(
4446
2
    bool deterministic, ::google::protobuf::uint8* target) const {
4447
2
  (void)deterministic; // Unused
4448
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.CalculatorError)
4449
2
  ::google::protobuf::uint32 cached_has_bits = 0;
4450
2
  (void) cached_has_bits;
4451
4452
2
  cached_has_bits = _has_bits_[0];
4453
  // required string extra_error_data = 1;
4454
2
  if (cached_has_bits & 0x00000001u) {
4455
2
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4456
2
      this->extra_error_data().data(), static_cast<int>(this->extra_error_data().length()),
4457
2
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4458
2
      "yb.rpc_test.CalculatorError.extra_error_data");
4459
2
    target =
4460
2
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4461
2
        1, this->extra_error_data(), target);
4462
2
  }
4463
4464
2
  if (_internal_metadata_.have_unknown_fields()) {
4465
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4466
0
        _internal_metadata_.unknown_fields(), target);
4467
0
  }
4468
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.CalculatorError)
4469
2
  return target;
4470
2
}
4471
4472
4
size_t CalculatorError::ByteSizeLong() const {
4473
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.CalculatorError)
4474
4
  size_t total_size = 0;
4475
4476
4
  if (_internal_metadata_.have_unknown_fields()) {
4477
0
    total_size +=
4478
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4479
0
        _internal_metadata_.unknown_fields());
4480
0
  }
4481
  // required string extra_error_data = 1;
4482
4
  if (has_extra_error_data()) {
4483
4
    total_size += 1 +
4484
4
      ::google::protobuf::internal::WireFormatLite::StringSize(
4485
4
        this->extra_error_data());
4486
4
  }
4487
4
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4488
4
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4489
4
  _cached_size_ = cached_size;
4490
4
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4491
4
  return total_size;
4492
4
}
4493
4494
2
void CalculatorError::MergeFrom(const ::google::protobuf::Message& from) {
4495
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.CalculatorError)
4496
2
  GOOGLE_DCHECK_NE(&from, this);
4497
2
  const CalculatorError* source =
4498
2
      ::google::protobuf::internal::DynamicCastToGenerated<const CalculatorError>(
4499
2
          &from);
4500
2
  if (source == NULL) {
4501
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.CalculatorError)
4502
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4503
2
  } else {
4504
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.CalculatorError)
4505
2
    MergeFrom(*source);
4506
2
  }
4507
2
}
4508
4509
2
void CalculatorError::MergeFrom(const CalculatorError& from) {
4510
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.CalculatorError)
4511
2
  GOOGLE_DCHECK_NE(&from, this);
4512
2
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4513
2
  ::google::protobuf::uint32 cached_has_bits = 0;
4514
2
  (void) cached_has_bits;
4515
4516
2
  if (from.has_extra_error_data()) {
4517
2
    set_has_extra_error_data();
4518
2
    extra_error_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extra_error_data_);
4519
2
  }
4520
2
}
4521
4522
0
void CalculatorError::CopyFrom(const ::google::protobuf::Message& from) {
4523
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.CalculatorError)
4524
0
  if (&from == this) return;
4525
0
  Clear();
4526
0
  MergeFrom(from);
4527
0
}
4528
4529
0
void CalculatorError::CopyFrom(const CalculatorError& from) {
4530
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.CalculatorError)
4531
0
  if (&from == this) return;
4532
0
  Clear();
4533
0
  MergeFrom(from);
4534
0
}
4535
4536
4
bool CalculatorError::IsInitialized() const {
4537
4
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
4538
4
  return true;
4539
4
}
4540
4541
0
void CalculatorError::Swap(CalculatorError* other) {
4542
0
  if (other == this) return;
4543
0
  InternalSwap(other);
4544
0
}
4545
0
void CalculatorError::InternalSwap(CalculatorError* other) {
4546
0
  using std::swap;
4547
0
  extra_error_data_.Swap(&other->extra_error_data_);
4548
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4549
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4550
0
  swap(_cached_size_, other->_cached_size_);
4551
0
}
4552
4553
2
::google::protobuf::Metadata CalculatorError::GetMetadata() const {
4554
2
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4555
2
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
4556
2
}
4557
4558
4559
// ===================================================================
4560
4561
123
void PanicRequestPB::InitAsDefaultInstance() {
4562
123
}
4563
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4564
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4565
4566
PanicRequestPB::PanicRequestPB()
4567
125
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4568
125
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4569
2
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPanicRequestPB();
4570
2
  }
4571
125
  SharedCtor();
4572
  // @@protoc_insertion_point(constructor:yb.rpc_test.PanicRequestPB)
4573
125
}
4574
PanicRequestPB::PanicRequestPB(const PanicRequestPB& from)
4575
  : ::google::protobuf::Message(),
4576
      _internal_metadata_(NULL),
4577
      _has_bits_(from._has_bits_),
4578
0
      _cached_size_(0) {
4579
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4580
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.PanicRequestPB)
4581
0
}
4582
4583
125
void PanicRequestPB::SharedCtor() {
4584
125
  _cached_size_ = 0;
4585
125
}
4586
4587
0
PanicRequestPB::~PanicRequestPB() {
4588
  // @@protoc_insertion_point(destructor:yb.rpc_test.PanicRequestPB)
4589
0
  SharedDtor();
4590
0
}
4591
4592
0
void PanicRequestPB::SharedDtor() {
4593
0
}
4594
4595
0
void PanicRequestPB::SetCachedSize(int size) const {
4596
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4597
0
  _cached_size_ = size;
4598
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4599
0
}
4600
0
const ::google::protobuf::Descriptor* PanicRequestPB::descriptor() {
4601
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4602
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4603
0
}
4604
4605
0
const PanicRequestPB& PanicRequestPB::default_instance() {
4606
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPanicRequestPB();
4607
0
  return *internal_default_instance();
4608
0
}
4609
4610
0
PanicRequestPB* PanicRequestPB::New(::google::protobuf::Arena* arena) const {
4611
0
  PanicRequestPB* n = new PanicRequestPB;
4612
0
  if (arena != NULL) {
4613
0
    arena->Own(n);
4614
0
  }
4615
0
  return n;
4616
0
}
4617
4618
1
void PanicRequestPB::Clear() {
4619
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.PanicRequestPB)
4620
1
  ::google::protobuf::uint32 cached_has_bits = 0;
4621
  // Prevent compiler warnings about cached_has_bits being unused
4622
1
  (void) cached_has_bits;
4623
4624
1
  _has_bits_.Clear();
4625
1
  _internal_metadata_.Clear();
4626
1
}
4627
4628
bool PanicRequestPB::MergePartialFromCodedStream(
4629
1
    ::google::protobuf::io::CodedInputStream* input) {
4630
1
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
4631
1
  ::google::protobuf::uint32 tag;
4632
  // @@protoc_insertion_point(parse_start:yb.rpc_test.PanicRequestPB)
4633
1
  for (;;) {
4634
1
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4635
1
    tag = p.first;
4636
1
    if (!p.second) goto handle_unusual;
4637
1
  handle_unusual:
4638
1
    if (tag == 0) {
4639
1
      goto success;
4640
1
    }
4641
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
4642
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
4643
0
  }
4644
1
success:
4645
  // @@protoc_insertion_point(parse_success:yb.rpc_test.PanicRequestPB)
4646
1
  return true;
4647
0
failure:
4648
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.PanicRequestPB)
4649
0
  return false;
4650
1
#undef DO_
4651
1
}
4652
4653
void PanicRequestPB::SerializeWithCachedSizes(
4654
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4655
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.PanicRequestPB)
4656
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4657
0
  (void) cached_has_bits;
4658
4659
0
  if (_internal_metadata_.have_unknown_fields()) {
4660
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4661
0
        _internal_metadata_.unknown_fields(), output);
4662
0
  }
4663
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.PanicRequestPB)
4664
0
}
4665
4666
::google::protobuf::uint8* PanicRequestPB::InternalSerializeWithCachedSizesToArray(
4667
1
    bool deterministic, ::google::protobuf::uint8* target) const {
4668
1
  (void)deterministic; // Unused
4669
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.PanicRequestPB)
4670
1
  ::google::protobuf::uint32 cached_has_bits = 0;
4671
1
  (void) cached_has_bits;
4672
4673
1
  if (_internal_metadata_.have_unknown_fields()) {
4674
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4675
0
        _internal_metadata_.unknown_fields(), target);
4676
0
  }
4677
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.PanicRequestPB)
4678
1
  return target;
4679
1
}
4680
4681
2
size_t PanicRequestPB::ByteSizeLong() const {
4682
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.PanicRequestPB)
4683
2
  size_t total_size = 0;
4684
4685
2
  if (_internal_metadata_.have_unknown_fields()) {
4686
0
    total_size +=
4687
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4688
0
        _internal_metadata_.unknown_fields());
4689
0
  }
4690
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4691
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4692
2
  _cached_size_ = cached_size;
4693
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4694
2
  return total_size;
4695
2
}
4696
4697
0
void PanicRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
4698
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.PanicRequestPB)
4699
0
  GOOGLE_DCHECK_NE(&from, this);
4700
0
  const PanicRequestPB* source =
4701
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PanicRequestPB>(
4702
0
          &from);
4703
0
  if (source == NULL) {
4704
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.PanicRequestPB)
4705
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4706
0
  } else {
4707
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.PanicRequestPB)
4708
0
    MergeFrom(*source);
4709
0
  }
4710
0
}
4711
4712
0
void PanicRequestPB::MergeFrom(const PanicRequestPB& from) {
4713
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.PanicRequestPB)
4714
0
  GOOGLE_DCHECK_NE(&from, this);
4715
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4716
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4717
0
  (void) cached_has_bits;
4718
4719
0
}
4720
4721
0
void PanicRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
4722
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.PanicRequestPB)
4723
0
  if (&from == this) return;
4724
0
  Clear();
4725
0
  MergeFrom(from);
4726
0
}
4727
4728
0
void PanicRequestPB::CopyFrom(const PanicRequestPB& from) {
4729
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.PanicRequestPB)
4730
0
  if (&from == this) return;
4731
0
  Clear();
4732
0
  MergeFrom(from);
4733
0
}
4734
4735
2
bool PanicRequestPB::IsInitialized() const {
4736
2
  return true;
4737
2
}
4738
4739
0
void PanicRequestPB::Swap(PanicRequestPB* other) {
4740
0
  if (other == this) return;
4741
0
  InternalSwap(other);
4742
0
}
4743
0
void PanicRequestPB::InternalSwap(PanicRequestPB* other) {
4744
0
  using std::swap;
4745
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4746
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4747
0
  swap(_cached_size_, other->_cached_size_);
4748
0
}
4749
4750
1
::google::protobuf::Metadata PanicRequestPB::GetMetadata() const {
4751
1
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4752
1
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
4753
1
}
4754
4755
4756
// ===================================================================
4757
4758
123
void PanicResponsePB::InitAsDefaultInstance() {
4759
123
}
4760
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4761
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4762
4763
PanicResponsePB::PanicResponsePB()
4764
125
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4765
125
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4766
2
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPanicResponsePB();
4767
2
  }
4768
125
  SharedCtor();
4769
  // @@protoc_insertion_point(constructor:yb.rpc_test.PanicResponsePB)
4770
125
}
4771
PanicResponsePB::PanicResponsePB(const PanicResponsePB& from)
4772
  : ::google::protobuf::Message(),
4773
      _internal_metadata_(NULL),
4774
      _has_bits_(from._has_bits_),
4775
0
      _cached_size_(0) {
4776
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4777
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.PanicResponsePB)
4778
0
}
4779
4780
125
void PanicResponsePB::SharedCtor() {
4781
125
  _cached_size_ = 0;
4782
125
}
4783
4784
0
PanicResponsePB::~PanicResponsePB() {
4785
  // @@protoc_insertion_point(destructor:yb.rpc_test.PanicResponsePB)
4786
0
  SharedDtor();
4787
0
}
4788
4789
0
void PanicResponsePB::SharedDtor() {
4790
0
}
4791
4792
0
void PanicResponsePB::SetCachedSize(int size) const {
4793
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4794
0
  _cached_size_ = size;
4795
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4796
0
}
4797
0
const ::google::protobuf::Descriptor* PanicResponsePB::descriptor() {
4798
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4799
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4800
0
}
4801
4802
0
const PanicResponsePB& PanicResponsePB::default_instance() {
4803
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPanicResponsePB();
4804
0
  return *internal_default_instance();
4805
0
}
4806
4807
0
PanicResponsePB* PanicResponsePB::New(::google::protobuf::Arena* arena) const {
4808
0
  PanicResponsePB* n = new PanicResponsePB;
4809
0
  if (arena != NULL) {
4810
0
    arena->Own(n);
4811
0
  }
4812
0
  return n;
4813
0
}
4814
4815
0
void PanicResponsePB::Clear() {
4816
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.PanicResponsePB)
4817
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4818
  // Prevent compiler warnings about cached_has_bits being unused
4819
0
  (void) cached_has_bits;
4820
4821
0
  _has_bits_.Clear();
4822
0
  _internal_metadata_.Clear();
4823
0
}
4824
4825
bool PanicResponsePB::MergePartialFromCodedStream(
4826
0
    ::google::protobuf::io::CodedInputStream* input) {
4827
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4828
0
  ::google::protobuf::uint32 tag;
4829
  // @@protoc_insertion_point(parse_start:yb.rpc_test.PanicResponsePB)
4830
0
  for (;;) {
4831
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4832
0
    tag = p.first;
4833
0
    if (!p.second) goto handle_unusual;
4834
0
  handle_unusual:
4835
0
    if (tag == 0) {
4836
0
      goto success;
4837
0
    }
4838
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
4839
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
4840
0
  }
4841
0
success:
4842
  // @@protoc_insertion_point(parse_success:yb.rpc_test.PanicResponsePB)
4843
0
  return true;
4844
0
failure:
4845
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.PanicResponsePB)
4846
0
  return false;
4847
0
#undef DO_
4848
0
}
4849
4850
void PanicResponsePB::SerializeWithCachedSizes(
4851
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4852
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.PanicResponsePB)
4853
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4854
0
  (void) cached_has_bits;
4855
4856
0
  if (_internal_metadata_.have_unknown_fields()) {
4857
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4858
0
        _internal_metadata_.unknown_fields(), output);
4859
0
  }
4860
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.PanicResponsePB)
4861
0
}
4862
4863
::google::protobuf::uint8* PanicResponsePB::InternalSerializeWithCachedSizesToArray(
4864
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4865
0
  (void)deterministic; // Unused
4866
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.PanicResponsePB)
4867
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4868
0
  (void) cached_has_bits;
4869
4870
0
  if (_internal_metadata_.have_unknown_fields()) {
4871
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4872
0
        _internal_metadata_.unknown_fields(), target);
4873
0
  }
4874
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.PanicResponsePB)
4875
0
  return target;
4876
0
}
4877
4878
0
size_t PanicResponsePB::ByteSizeLong() const {
4879
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.PanicResponsePB)
4880
0
  size_t total_size = 0;
4881
4882
0
  if (_internal_metadata_.have_unknown_fields()) {
4883
0
    total_size +=
4884
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4885
0
        _internal_metadata_.unknown_fields());
4886
0
  }
4887
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4888
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4889
0
  _cached_size_ = cached_size;
4890
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4891
0
  return total_size;
4892
0
}
4893
4894
0
void PanicResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4895
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.PanicResponsePB)
4896
0
  GOOGLE_DCHECK_NE(&from, this);
4897
0
  const PanicResponsePB* source =
4898
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PanicResponsePB>(
4899
0
          &from);
4900
0
  if (source == NULL) {
4901
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.PanicResponsePB)
4902
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4903
0
  } else {
4904
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.PanicResponsePB)
4905
0
    MergeFrom(*source);
4906
0
  }
4907
0
}
4908
4909
0
void PanicResponsePB::MergeFrom(const PanicResponsePB& from) {
4910
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.PanicResponsePB)
4911
0
  GOOGLE_DCHECK_NE(&from, this);
4912
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4913
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4914
0
  (void) cached_has_bits;
4915
4916
0
}
4917
4918
0
void PanicResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4919
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.PanicResponsePB)
4920
0
  if (&from == this) return;
4921
0
  Clear();
4922
0
  MergeFrom(from);
4923
0
}
4924
4925
0
void PanicResponsePB::CopyFrom(const PanicResponsePB& from) {
4926
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.PanicResponsePB)
4927
0
  if (&from == this) return;
4928
0
  Clear();
4929
0
  MergeFrom(from);
4930
0
}
4931
4932
0
bool PanicResponsePB::IsInitialized() const {
4933
0
  return true;
4934
0
}
4935
4936
0
void PanicResponsePB::Swap(PanicResponsePB* other) {
4937
0
  if (other == this) return;
4938
0
  InternalSwap(other);
4939
0
}
4940
0
void PanicResponsePB::InternalSwap(PanicResponsePB* other) {
4941
0
  using std::swap;
4942
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4943
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4944
0
  swap(_cached_size_, other->_cached_size_);
4945
0
}
4946
4947
0
::google::protobuf::Metadata PanicResponsePB::GetMetadata() const {
4948
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4949
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
4950
0
}
4951
4952
4953
// ===================================================================
4954
4955
123
void PingRequestPB::InitAsDefaultInstance() {
4956
123
}
4957
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4958
const int PingRequestPB::kIdFieldNumber;
4959
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4960
4961
PingRequestPB::PingRequestPB()
4962
99.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4963
99.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4964
99.4k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPingRequestPB();
4965
99.4k
  }
4966
99.7k
  SharedCtor();
4967
  // @@protoc_insertion_point(constructor:yb.rpc_test.PingRequestPB)
4968
99.7k
}
4969
PingRequestPB::PingRequestPB(const PingRequestPB& from)
4970
  : ::google::protobuf::Message(),
4971
      _internal_metadata_(NULL),
4972
      _has_bits_(from._has_bits_),
4973
0
      _cached_size_(0) {
4974
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4975
0
  id_ = from.id_;
4976
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.PingRequestPB)
4977
0
}
4978
4979
99.5k
void PingRequestPB::SharedCtor() {
4980
99.5k
  _cached_size_ = 0;
4981
99.5k
  id_ = GOOGLE_ULONGLONG(0);
4982
99.5k
}
4983
4984
99.5k
PingRequestPB::~PingRequestPB() {
4985
  // @@protoc_insertion_point(destructor:yb.rpc_test.PingRequestPB)
4986
99.5k
  SharedDtor();
4987
99.5k
}
4988
4989
99.5k
void PingRequestPB::SharedDtor() {
4990
99.5k
}
4991
4992
0
void PingRequestPB::SetCachedSize(int size) const {
4993
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4994
0
  _cached_size_ = size;
4995
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4996
0
}
4997
0
const ::google::protobuf::Descriptor* PingRequestPB::descriptor() {
4998
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
4999
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5000
0
}
5001
5002
0
const PingRequestPB& PingRequestPB::default_instance() {
5003
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPingRequestPB();
5004
0
  return *internal_default_instance();
5005
0
}
5006
5007
0
PingRequestPB* PingRequestPB::New(::google::protobuf::Arena* arena) const {
5008
0
  PingRequestPB* n = new PingRequestPB;
5009
0
  if (arena != NULL) {
5010
0
    arena->Own(n);
5011
0
  }
5012
0
  return n;
5013
0
}
5014
5015
49.9k
void PingRequestPB::Clear() {
5016
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.PingRequestPB)
5017
49.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
5018
  // Prevent compiler warnings about cached_has_bits being unused
5019
49.9k
  (void) cached_has_bits;
5020
5021
49.9k
  id_ = GOOGLE_ULONGLONG(0);
5022
49.9k
  _has_bits_.Clear();
5023
49.9k
  _internal_metadata_.Clear();
5024
49.9k
}
5025
5026
bool PingRequestPB::MergePartialFromCodedStream(
5027
49.7k
    ::google::protobuf::io::CodedInputStream* input) {
5028
49.7k
#define DO_(EXPRESSION) 
if (49.7k
!GOOGLE_PREDICT_TRUE49.7k
(EXPRESSION))
goto failure0
5029
49.7k
  ::google::protobuf::uint32 tag;
5030
  // @@protoc_insertion_point(parse_start:yb.rpc_test.PingRequestPB)
5031
99.2k
  for (;;) {
5032
99.2k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5033
99.2k
    tag = p.first;
5034
99.2k
    if (!p.second) 
goto handle_unusual49.8k
;
5035
49.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5036
      // required uint64 id = 1;
5037
49.7k
      case 1: {
5038
49.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5039
49.7k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5040
49.7k
          set_has_id();
5041
49.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5042
49.7k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5043
49.7k
                 input, &id_)));
5044
18.4E
        } else {
5045
18.4E
          goto handle_unusual;
5046
18.4E
        }
5047
49.7k
        break;
5048
49.7k
      }
5049
5050
49.7k
      default: {
5051
49.8k
      handle_unusual:
5052
49.8k
        if (
tag == 049.8k
) {
5053
49.8k
          goto success;
5054
49.8k
        }
5055
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5056
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5057
18.4E
        break;
5058
18.4E
      }
5059
49.4k
    }
5060
49.4k
  }
5061
49.8k
success:
5062
  // @@protoc_insertion_point(parse_success:yb.rpc_test.PingRequestPB)
5063
49.8k
  return true;
5064
0
failure:
5065
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.PingRequestPB)
5066
0
  return false;
5067
49.7k
#undef DO_
5068
49.7k
}
5069
5070
void PingRequestPB::SerializeWithCachedSizes(
5071
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5072
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.PingRequestPB)
5073
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5074
0
  (void) cached_has_bits;
5075
5076
0
  cached_has_bits = _has_bits_[0];
5077
  // required uint64 id = 1;
5078
0
  if (cached_has_bits & 0x00000001u) {
5079
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output);
5080
0
  }
5081
5082
0
  if (_internal_metadata_.have_unknown_fields()) {
5083
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5084
0
        _internal_metadata_.unknown_fields(), output);
5085
0
  }
5086
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.PingRequestPB)
5087
0
}
5088
5089
::google::protobuf::uint8* PingRequestPB::InternalSerializeWithCachedSizesToArray(
5090
49.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
5091
49.6k
  (void)deterministic; // Unused
5092
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.PingRequestPB)
5093
49.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
5094
49.6k
  (void) cached_has_bits;
5095
5096
49.6k
  cached_has_bits = _has_bits_[0];
5097
  // required uint64 id = 1;
5098
49.6k
  if (cached_has_bits & 0x00000001u) {
5099
49.6k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target);
5100
49.6k
  }
5101
5102
49.6k
  if (_internal_metadata_.have_unknown_fields()) {
5103
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5104
0
        _internal_metadata_.unknown_fields(), target);
5105
0
  }
5106
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.PingRequestPB)
5107
49.6k
  return target;
5108
49.6k
}
5109
5110
99.1k
size_t PingRequestPB::ByteSizeLong() const {
5111
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.PingRequestPB)
5112
99.1k
  size_t total_size = 0;
5113
5114
99.1k
  if (_internal_metadata_.have_unknown_fields()) {
5115
0
    total_size +=
5116
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5117
0
        _internal_metadata_.unknown_fields());
5118
0
  }
5119
  // required uint64 id = 1;
5120
99.1k
  if (has_id()) {
5121
98.7k
    total_size += 1 +
5122
98.7k
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
5123
98.7k
        this->id());
5124
98.7k
  }
5125
99.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5126
99.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5127
99.1k
  _cached_size_ = cached_size;
5128
99.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5129
99.1k
  return total_size;
5130
99.1k
}
5131
5132
0
void PingRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5133
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.PingRequestPB)
5134
0
  GOOGLE_DCHECK_NE(&from, this);
5135
0
  const PingRequestPB* source =
5136
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PingRequestPB>(
5137
0
          &from);
5138
0
  if (source == NULL) {
5139
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.PingRequestPB)
5140
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5141
0
  } else {
5142
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.PingRequestPB)
5143
0
    MergeFrom(*source);
5144
0
  }
5145
0
}
5146
5147
0
void PingRequestPB::MergeFrom(const PingRequestPB& from) {
5148
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.PingRequestPB)
5149
0
  GOOGLE_DCHECK_NE(&from, this);
5150
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5151
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5152
0
  (void) cached_has_bits;
5153
5154
0
  if (from.has_id()) {
5155
0
    set_id(from.id());
5156
0
  }
5157
0
}
5158
5159
0
void PingRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5160
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.PingRequestPB)
5161
0
  if (&from == this) return;
5162
0
  Clear();
5163
0
  MergeFrom(from);
5164
0
}
5165
5166
0
void PingRequestPB::CopyFrom(const PingRequestPB& from) {
5167
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.PingRequestPB)
5168
0
  if (&from == this) return;
5169
0
  Clear();
5170
0
  MergeFrom(from);
5171
0
}
5172
5173
99.4k
bool PingRequestPB::IsInitialized() const {
5174
99.4k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
5175
99.4k
  return true;
5176
99.4k
}
5177
5178
0
void PingRequestPB::Swap(PingRequestPB* other) {
5179
0
  if (other == this) return;
5180
0
  InternalSwap(other);
5181
0
}
5182
0
void PingRequestPB::InternalSwap(PingRequestPB* other) {
5183
0
  using std::swap;
5184
0
  swap(id_, other->id_);
5185
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5186
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5187
0
  swap(_cached_size_, other->_cached_size_);
5188
0
}
5189
5190
49.8k
::google::protobuf::Metadata PingRequestPB::GetMetadata() const {
5191
49.8k
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5192
49.8k
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
5193
49.8k
}
5194
5195
5196
// ===================================================================
5197
5198
123
void PingResponsePB::InitAsDefaultInstance() {
5199
123
}
5200
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5201
const int PingResponsePB::kTimeFieldNumber;
5202
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5203
5204
PingResponsePB::PingResponsePB()
5205
99.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5206
99.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5207
99.7k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPingResponsePB();
5208
99.7k
  }
5209
99.8k
  SharedCtor();
5210
  // @@protoc_insertion_point(constructor:yb.rpc_test.PingResponsePB)
5211
99.8k
}
5212
PingResponsePB::PingResponsePB(const PingResponsePB& from)
5213
  : ::google::protobuf::Message(),
5214
      _internal_metadata_(NULL),
5215
      _has_bits_(from._has_bits_),
5216
0
      _cached_size_(0) {
5217
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5218
0
  time_ = from.time_;
5219
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.PingResponsePB)
5220
0
}
5221
5222
99.9k
void PingResponsePB::SharedCtor() {
5223
99.9k
  _cached_size_ = 0;
5224
99.9k
  time_ = GOOGLE_ULONGLONG(0);
5225
99.9k
}
5226
5227
99.9k
PingResponsePB::~PingResponsePB() {
5228
  // @@protoc_insertion_point(destructor:yb.rpc_test.PingResponsePB)
5229
99.9k
  SharedDtor();
5230
99.9k
}
5231
5232
99.9k
void PingResponsePB::SharedDtor() {
5233
99.9k
}
5234
5235
0
void PingResponsePB::SetCachedSize(int size) const {
5236
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5237
0
  _cached_size_ = size;
5238
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5239
0
}
5240
0
const ::google::protobuf::Descriptor* PingResponsePB::descriptor() {
5241
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5242
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5243
0
}
5244
5245
0
const PingResponsePB& PingResponsePB::default_instance() {
5246
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsPingResponsePB();
5247
0
  return *internal_default_instance();
5248
0
}
5249
5250
0
PingResponsePB* PingResponsePB::New(::google::protobuf::Arena* arena) const {
5251
0
  PingResponsePB* n = new PingResponsePB;
5252
0
  if (arena != NULL) {
5253
0
    arena->Own(n);
5254
0
  }
5255
0
  return n;
5256
0
}
5257
5258
49.7k
void PingResponsePB::Clear() {
5259
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.PingResponsePB)
5260
49.7k
  ::google::protobuf::uint32 cached_has_bits = 0;
5261
  // Prevent compiler warnings about cached_has_bits being unused
5262
49.7k
  (void) cached_has_bits;
5263
5264
49.7k
  time_ = GOOGLE_ULONGLONG(0);
5265
49.7k
  _has_bits_.Clear();
5266
49.7k
  _internal_metadata_.Clear();
5267
49.7k
}
5268
5269
bool PingResponsePB::MergePartialFromCodedStream(
5270
49.7k
    ::google::protobuf::io::CodedInputStream* input) {
5271
49.7k
#define DO_(EXPRESSION) 
if (49.7k
!GOOGLE_PREDICT_TRUE49.7k
(EXPRESSION))
goto failure0
5272
49.7k
  ::google::protobuf::uint32 tag;
5273
  // @@protoc_insertion_point(parse_start:yb.rpc_test.PingResponsePB)
5274
99.2k
  for (;;) {
5275
99.2k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5276
99.2k
    tag = p.first;
5277
99.2k
    if (!p.second) 
goto handle_unusual49.8k
;
5278
49.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5279
      // required uint64 time = 1;
5280
49.7k
      case 1: {
5281
49.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5282
49.7k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5283
49.7k
          set_has_time();
5284
49.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5285
49.7k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5286
49.7k
                 input, &time_)));
5287
18.4E
        } else {
5288
18.4E
          goto handle_unusual;
5289
18.4E
        }
5290
49.7k
        break;
5291
49.7k
      }
5292
5293
49.7k
      default: {
5294
49.8k
      handle_unusual:
5295
49.8k
        if (
tag == 049.8k
) {
5296
49.8k
          goto success;
5297
49.8k
        }
5298
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5299
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5300
18.4E
        break;
5301
18.4E
      }
5302
49.4k
    }
5303
49.4k
  }
5304
49.8k
success:
5305
  // @@protoc_insertion_point(parse_success:yb.rpc_test.PingResponsePB)
5306
49.8k
  return true;
5307
0
failure:
5308
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.PingResponsePB)
5309
0
  return false;
5310
49.7k
#undef DO_
5311
49.7k
}
5312
5313
void PingResponsePB::SerializeWithCachedSizes(
5314
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5315
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.PingResponsePB)
5316
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5317
0
  (void) cached_has_bits;
5318
5319
0
  cached_has_bits = _has_bits_[0];
5320
  // required uint64 time = 1;
5321
0
  if (cached_has_bits & 0x00000001u) {
5322
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->time(), output);
5323
0
  }
5324
5325
0
  if (_internal_metadata_.have_unknown_fields()) {
5326
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5327
0
        _internal_metadata_.unknown_fields(), output);
5328
0
  }
5329
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.PingResponsePB)
5330
0
}
5331
5332
::google::protobuf::uint8* PingResponsePB::InternalSerializeWithCachedSizesToArray(
5333
49.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
5334
49.6k
  (void)deterministic; // Unused
5335
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.PingResponsePB)
5336
49.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
5337
49.6k
  (void) cached_has_bits;
5338
5339
49.6k
  cached_has_bits = _has_bits_[0];
5340
  // required uint64 time = 1;
5341
49.6k
  if (cached_has_bits & 0x00000001u) {
5342
49.6k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->time(), target);
5343
49.6k
  }
5344
5345
49.6k
  if (_internal_metadata_.have_unknown_fields()) {
5346
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5347
0
        _internal_metadata_.unknown_fields(), target);
5348
0
  }
5349
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.PingResponsePB)
5350
49.6k
  return target;
5351
49.6k
}
5352
5353
99.3k
size_t PingResponsePB::ByteSizeLong() const {
5354
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.PingResponsePB)
5355
99.3k
  size_t total_size = 0;
5356
5357
99.3k
  if (_internal_metadata_.have_unknown_fields()) {
5358
0
    total_size +=
5359
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5360
0
        _internal_metadata_.unknown_fields());
5361
0
  }
5362
  // required uint64 time = 1;
5363
99.3k
  if (has_time()) {
5364
99.2k
    total_size += 1 +
5365
99.2k
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
5366
99.2k
        this->time());
5367
99.2k
  }
5368
99.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5369
99.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5370
99.3k
  _cached_size_ = cached_size;
5371
99.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5372
99.3k
  return total_size;
5373
99.3k
}
5374
5375
0
void PingResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
5376
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.PingResponsePB)
5377
0
  GOOGLE_DCHECK_NE(&from, this);
5378
0
  const PingResponsePB* source =
5379
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PingResponsePB>(
5380
0
          &from);
5381
0
  if (source == NULL) {
5382
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.PingResponsePB)
5383
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5384
0
  } else {
5385
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.PingResponsePB)
5386
0
    MergeFrom(*source);
5387
0
  }
5388
0
}
5389
5390
0
void PingResponsePB::MergeFrom(const PingResponsePB& from) {
5391
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.PingResponsePB)
5392
0
  GOOGLE_DCHECK_NE(&from, this);
5393
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5394
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5395
0
  (void) cached_has_bits;
5396
5397
0
  if (from.has_time()) {
5398
0
    set_time(from.time());
5399
0
  }
5400
0
}
5401
5402
0
void PingResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
5403
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.PingResponsePB)
5404
0
  if (&from == this) return;
5405
0
  Clear();
5406
0
  MergeFrom(from);
5407
0
}
5408
5409
0
void PingResponsePB::CopyFrom(const PingResponsePB& from) {
5410
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.PingResponsePB)
5411
0
  if (&from == this) return;
5412
0
  Clear();
5413
0
  MergeFrom(from);
5414
0
}
5415
5416
99.5k
bool PingResponsePB::IsInitialized() const {
5417
99.5k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
5418
99.5k
  return true;
5419
99.5k
}
5420
5421
0
void PingResponsePB::Swap(PingResponsePB* other) {
5422
0
  if (other == this) return;
5423
0
  InternalSwap(other);
5424
0
}
5425
0
void PingResponsePB::InternalSwap(PingResponsePB* other) {
5426
0
  using std::swap;
5427
0
  swap(time_, other->time_);
5428
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5429
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5430
0
  swap(_cached_size_, other->_cached_size_);
5431
0
}
5432
5433
0
::google::protobuf::Metadata PingResponsePB::GetMetadata() const {
5434
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5435
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
5436
0
}
5437
5438
5439
// ===================================================================
5440
5441
123
void DisconnectRequestPB::InitAsDefaultInstance() {
5442
123
}
5443
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5444
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5445
5446
DisconnectRequestPB::DisconnectRequestPB()
5447
15.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5448
15.3k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5449
15.1k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsDisconnectRequestPB();
5450
15.1k
  }
5451
15.3k
  SharedCtor();
5452
  // @@protoc_insertion_point(constructor:yb.rpc_test.DisconnectRequestPB)
5453
15.3k
}
5454
DisconnectRequestPB::DisconnectRequestPB(const DisconnectRequestPB& from)
5455
  : ::google::protobuf::Message(),
5456
      _internal_metadata_(NULL),
5457
      _has_bits_(from._has_bits_),
5458
0
      _cached_size_(0) {
5459
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5460
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.DisconnectRequestPB)
5461
0
}
5462
5463
15.2k
void DisconnectRequestPB::SharedCtor() {
5464
15.2k
  _cached_size_ = 0;
5465
15.2k
}
5466
5467
15.2k
DisconnectRequestPB::~DisconnectRequestPB() {
5468
  // @@protoc_insertion_point(destructor:yb.rpc_test.DisconnectRequestPB)
5469
15.2k
  SharedDtor();
5470
15.2k
}
5471
5472
15.2k
void DisconnectRequestPB::SharedDtor() {
5473
15.2k
}
5474
5475
0
void DisconnectRequestPB::SetCachedSize(int size) const {
5476
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5477
0
  _cached_size_ = size;
5478
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5479
0
}
5480
0
const ::google::protobuf::Descriptor* DisconnectRequestPB::descriptor() {
5481
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5482
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5483
0
}
5484
5485
0
const DisconnectRequestPB& DisconnectRequestPB::default_instance() {
5486
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsDisconnectRequestPB();
5487
0
  return *internal_default_instance();
5488
0
}
5489
5490
0
DisconnectRequestPB* DisconnectRequestPB::New(::google::protobuf::Arena* arena) const {
5491
0
  DisconnectRequestPB* n = new DisconnectRequestPB;
5492
0
  if (arena != NULL) {
5493
0
    arena->Own(n);
5494
0
  }
5495
0
  return n;
5496
0
}
5497
5498
5.24k
void DisconnectRequestPB::Clear() {
5499
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.DisconnectRequestPB)
5500
5.24k
  ::google::protobuf::uint32 cached_has_bits = 0;
5501
  // Prevent compiler warnings about cached_has_bits being unused
5502
5.24k
  (void) cached_has_bits;
5503
5504
5.24k
  _has_bits_.Clear();
5505
5.24k
  _internal_metadata_.Clear();
5506
5.24k
}
5507
5508
bool DisconnectRequestPB::MergePartialFromCodedStream(
5509
5.21k
    ::google::protobuf::io::CodedInputStream* input) {
5510
5.21k
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
5511
5.21k
  ::google::protobuf::uint32 tag;
5512
  // @@protoc_insertion_point(parse_start:yb.rpc_test.DisconnectRequestPB)
5513
5.23k
  for (;;) {
5514
5.23k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5515
5.23k
    tag = p.first;
5516
5.23k
    if (!p.second) 
goto handle_unusual5.21k
;
5517
5.21k
  handle_unusual:
5518
5.21k
    if (tag == 0) {
5519
5.21k
      goto success;
5520
5.21k
    }
5521
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
5522
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
5523
0
  }
5524
18.4E
success:
5525
  // @@protoc_insertion_point(parse_success:yb.rpc_test.DisconnectRequestPB)
5526
5.21k
  return true;
5527
0
failure:
5528
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.DisconnectRequestPB)
5529
0
  return false;
5530
5.21k
#undef DO_
5531
5.21k
}
5532
5533
void DisconnectRequestPB::SerializeWithCachedSizes(
5534
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5535
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.DisconnectRequestPB)
5536
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5537
0
  (void) cached_has_bits;
5538
5539
0
  if (_internal_metadata_.have_unknown_fields()) {
5540
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5541
0
        _internal_metadata_.unknown_fields(), output);
5542
0
  }
5543
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.DisconnectRequestPB)
5544
0
}
5545
5546
::google::protobuf::uint8* DisconnectRequestPB::InternalSerializeWithCachedSizesToArray(
5547
10.0k
    bool deterministic, ::google::protobuf::uint8* target) const {
5548
10.0k
  (void)deterministic; // Unused
5549
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.DisconnectRequestPB)
5550
10.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
5551
10.0k
  (void) cached_has_bits;
5552
5553
10.0k
  if (_internal_metadata_.have_unknown_fields()) {
5554
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5555
0
        _internal_metadata_.unknown_fields(), target);
5556
0
  }
5557
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.DisconnectRequestPB)
5558
10.0k
  return target;
5559
10.0k
}
5560
5561
20.0k
size_t DisconnectRequestPB::ByteSizeLong() const {
5562
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.DisconnectRequestPB)
5563
20.0k
  size_t total_size = 0;
5564
5565
20.0k
  if (_internal_metadata_.have_unknown_fields()) {
5566
0
    total_size +=
5567
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5568
0
        _internal_metadata_.unknown_fields());
5569
0
  }
5570
20.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5571
20.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5572
20.0k
  _cached_size_ = cached_size;
5573
20.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5574
20.0k
  return total_size;
5575
20.0k
}
5576
5577
0
void DisconnectRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5578
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.DisconnectRequestPB)
5579
0
  GOOGLE_DCHECK_NE(&from, this);
5580
0
  const DisconnectRequestPB* source =
5581
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DisconnectRequestPB>(
5582
0
          &from);
5583
0
  if (source == NULL) {
5584
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.DisconnectRequestPB)
5585
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5586
0
  } else {
5587
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.DisconnectRequestPB)
5588
0
    MergeFrom(*source);
5589
0
  }
5590
0
}
5591
5592
0
void DisconnectRequestPB::MergeFrom(const DisconnectRequestPB& from) {
5593
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.DisconnectRequestPB)
5594
0
  GOOGLE_DCHECK_NE(&from, this);
5595
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5596
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5597
0
  (void) cached_has_bits;
5598
5599
0
}
5600
5601
0
void DisconnectRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5602
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.DisconnectRequestPB)
5603
0
  if (&from == this) return;
5604
0
  Clear();
5605
0
  MergeFrom(from);
5606
0
}
5607
5608
0
void DisconnectRequestPB::CopyFrom(const DisconnectRequestPB& from) {
5609
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.DisconnectRequestPB)
5610
0
  if (&from == this) return;
5611
0
  Clear();
5612
0
  MergeFrom(from);
5613
0
}
5614
5615
15.2k
bool DisconnectRequestPB::IsInitialized() const {
5616
15.2k
  return true;
5617
15.2k
}
5618
5619
0
void DisconnectRequestPB::Swap(DisconnectRequestPB* other) {
5620
0
  if (other == this) return;
5621
0
  InternalSwap(other);
5622
0
}
5623
0
void DisconnectRequestPB::InternalSwap(DisconnectRequestPB* other) {
5624
0
  using std::swap;
5625
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5626
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5627
0
  swap(_cached_size_, other->_cached_size_);
5628
0
}
5629
5630
5.21k
::google::protobuf::Metadata DisconnectRequestPB::GetMetadata() const {
5631
5.21k
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5632
5.21k
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
5633
5.21k
}
5634
5635
5636
// ===================================================================
5637
5638
123
void DisconnectResponsePB::InitAsDefaultInstance() {
5639
123
}
5640
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5641
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5642
5643
DisconnectResponsePB::DisconnectResponsePB()
5644
31.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5645
31.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5646
31.5k
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsDisconnectResponsePB();
5647
31.5k
  }
5648
31.6k
  SharedCtor();
5649
  // @@protoc_insertion_point(constructor:yb.rpc_test.DisconnectResponsePB)
5650
31.6k
}
5651
DisconnectResponsePB::DisconnectResponsePB(const DisconnectResponsePB& from)
5652
  : ::google::protobuf::Message(),
5653
      _internal_metadata_(NULL),
5654
      _has_bits_(from._has_bits_),
5655
0
      _cached_size_(0) {
5656
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5657
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.DisconnectResponsePB)
5658
0
}
5659
5660
31.6k
void DisconnectResponsePB::SharedCtor() {
5661
31.6k
  _cached_size_ = 0;
5662
31.6k
}
5663
5664
31.6k
DisconnectResponsePB::~DisconnectResponsePB() {
5665
  // @@protoc_insertion_point(destructor:yb.rpc_test.DisconnectResponsePB)
5666
31.6k
  SharedDtor();
5667
31.6k
}
5668
5669
31.6k
void DisconnectResponsePB::SharedDtor() {
5670
31.6k
}
5671
5672
0
void DisconnectResponsePB::SetCachedSize(int size) const {
5673
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5674
0
  _cached_size_ = size;
5675
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5676
0
}
5677
0
const ::google::protobuf::Descriptor* DisconnectResponsePB::descriptor() {
5678
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5679
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5680
0
}
5681
5682
0
const DisconnectResponsePB& DisconnectResponsePB::default_instance() {
5683
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsDisconnectResponsePB();
5684
0
  return *internal_default_instance();
5685
0
}
5686
5687
0
DisconnectResponsePB* DisconnectResponsePB::New(::google::protobuf::Arena* arena) const {
5688
0
  DisconnectResponsePB* n = new DisconnectResponsePB;
5689
0
  if (arena != NULL) {
5690
0
    arena->Own(n);
5691
0
  }
5692
0
  return n;
5693
0
}
5694
5695
0
void DisconnectResponsePB::Clear() {
5696
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.DisconnectResponsePB)
5697
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5698
  // Prevent compiler warnings about cached_has_bits being unused
5699
0
  (void) cached_has_bits;
5700
5701
0
  _has_bits_.Clear();
5702
0
  _internal_metadata_.Clear();
5703
0
}
5704
5705
bool DisconnectResponsePB::MergePartialFromCodedStream(
5706
0
    ::google::protobuf::io::CodedInputStream* input) {
5707
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5708
0
  ::google::protobuf::uint32 tag;
5709
  // @@protoc_insertion_point(parse_start:yb.rpc_test.DisconnectResponsePB)
5710
0
  for (;;) {
5711
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5712
0
    tag = p.first;
5713
0
    if (!p.second) goto handle_unusual;
5714
0
  handle_unusual:
5715
0
    if (tag == 0) {
5716
0
      goto success;
5717
0
    }
5718
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
5719
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
5720
0
  }
5721
0
success:
5722
  // @@protoc_insertion_point(parse_success:yb.rpc_test.DisconnectResponsePB)
5723
0
  return true;
5724
0
failure:
5725
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.DisconnectResponsePB)
5726
0
  return false;
5727
0
#undef DO_
5728
0
}
5729
5730
void DisconnectResponsePB::SerializeWithCachedSizes(
5731
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5732
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.DisconnectResponsePB)
5733
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5734
0
  (void) cached_has_bits;
5735
5736
0
  if (_internal_metadata_.have_unknown_fields()) {
5737
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5738
0
        _internal_metadata_.unknown_fields(), output);
5739
0
  }
5740
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.DisconnectResponsePB)
5741
0
}
5742
5743
::google::protobuf::uint8* DisconnectResponsePB::InternalSerializeWithCachedSizesToArray(
5744
5.19k
    bool deterministic, ::google::protobuf::uint8* target) const {
5745
5.19k
  (void)deterministic; // Unused
5746
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.DisconnectResponsePB)
5747
5.19k
  ::google::protobuf::uint32 cached_has_bits = 0;
5748
5.19k
  (void) cached_has_bits;
5749
5750
5.19k
  if (_internal_metadata_.have_unknown_fields()) {
5751
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5752
0
        _internal_metadata_.unknown_fields(), target);
5753
0
  }
5754
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.DisconnectResponsePB)
5755
5.19k
  return target;
5756
5.19k
}
5757
5758
10.3k
size_t DisconnectResponsePB::ByteSizeLong() const {
5759
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.DisconnectResponsePB)
5760
10.3k
  size_t total_size = 0;
5761
5762
10.3k
  if (_internal_metadata_.have_unknown_fields()) {
5763
0
    total_size +=
5764
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5765
0
        _internal_metadata_.unknown_fields());
5766
0
  }
5767
10.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5768
10.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5769
10.3k
  _cached_size_ = cached_size;
5770
10.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5771
10.3k
  return total_size;
5772
10.3k
}
5773
5774
0
void DisconnectResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
5775
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.DisconnectResponsePB)
5776
0
  GOOGLE_DCHECK_NE(&from, this);
5777
0
  const DisconnectResponsePB* source =
5778
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DisconnectResponsePB>(
5779
0
          &from);
5780
0
  if (source == NULL) {
5781
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.DisconnectResponsePB)
5782
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5783
0
  } else {
5784
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.DisconnectResponsePB)
5785
0
    MergeFrom(*source);
5786
0
  }
5787
0
}
5788
5789
0
void DisconnectResponsePB::MergeFrom(const DisconnectResponsePB& from) {
5790
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.DisconnectResponsePB)
5791
0
  GOOGLE_DCHECK_NE(&from, this);
5792
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5793
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5794
0
  (void) cached_has_bits;
5795
5796
0
}
5797
5798
0
void DisconnectResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
5799
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.DisconnectResponsePB)
5800
0
  if (&from == this) return;
5801
0
  Clear();
5802
0
  MergeFrom(from);
5803
0
}
5804
5805
0
void DisconnectResponsePB::CopyFrom(const DisconnectResponsePB& from) {
5806
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.DisconnectResponsePB)
5807
0
  if (&from == this) return;
5808
0
  Clear();
5809
0
  MergeFrom(from);
5810
0
}
5811
5812
5.21k
bool DisconnectResponsePB::IsInitialized() const {
5813
5.21k
  return true;
5814
5.21k
}
5815
5816
0
void DisconnectResponsePB::Swap(DisconnectResponsePB* other) {
5817
0
  if (other == this) return;
5818
0
  InternalSwap(other);
5819
0
}
5820
16.3k
void DisconnectResponsePB::InternalSwap(DisconnectResponsePB* other) {
5821
16.3k
  using std::swap;
5822
16.3k
  swap(_has_bits_[0], other->_has_bits_[0]);
5823
16.3k
  _internal_metadata_.Swap(&other->_internal_metadata_);
5824
16.3k
  swap(_cached_size_, other->_cached_size_);
5825
16.3k
}
5826
5827
0
::google::protobuf::Metadata DisconnectResponsePB::GetMetadata() const {
5828
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5829
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
5830
0
}
5831
5832
5833
// ===================================================================
5834
5835
123
void ForwardRequestPB::InitAsDefaultInstance() {
5836
123
}
5837
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5838
const int ForwardRequestPB::kHostFieldNumber;
5839
const int ForwardRequestPB::kPortFieldNumber;
5840
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5841
5842
ForwardRequestPB::ForwardRequestPB()
5843
149
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5844
149
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5845
26
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsForwardRequestPB();
5846
26
  }
5847
149
  SharedCtor();
5848
  // @@protoc_insertion_point(constructor:yb.rpc_test.ForwardRequestPB)
5849
149
}
5850
ForwardRequestPB::ForwardRequestPB(const ForwardRequestPB& from)
5851
  : ::google::protobuf::Message(),
5852
      _internal_metadata_(NULL),
5853
      _has_bits_(from._has_bits_),
5854
0
      _cached_size_(0) {
5855
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5856
0
  host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5857
0
  if (from.has_host()) {
5858
0
    host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_);
5859
0
  }
5860
0
  port_ = from.port_;
5861
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.ForwardRequestPB)
5862
0
}
5863
5864
149
void ForwardRequestPB::SharedCtor() {
5865
149
  _cached_size_ = 0;
5866
149
  host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5867
149
  port_ = 0u;
5868
149
}
5869
5870
26
ForwardRequestPB::~ForwardRequestPB() {
5871
  // @@protoc_insertion_point(destructor:yb.rpc_test.ForwardRequestPB)
5872
26
  SharedDtor();
5873
26
}
5874
5875
26
void ForwardRequestPB::SharedDtor() {
5876
26
  host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5877
26
}
5878
5879
0
void ForwardRequestPB::SetCachedSize(int size) const {
5880
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5881
0
  _cached_size_ = size;
5882
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5883
0
}
5884
0
const ::google::protobuf::Descriptor* ForwardRequestPB::descriptor() {
5885
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
5886
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5887
0
}
5888
5889
0
const ForwardRequestPB& ForwardRequestPB::default_instance() {
5890
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsForwardRequestPB();
5891
0
  return *internal_default_instance();
5892
0
}
5893
5894
0
ForwardRequestPB* ForwardRequestPB::New(::google::protobuf::Arena* arena) const {
5895
0
  ForwardRequestPB* n = new ForwardRequestPB;
5896
0
  if (arena != NULL) {
5897
0
    arena->Own(n);
5898
0
  }
5899
0
  return n;
5900
0
}
5901
5902
12
void ForwardRequestPB::Clear() {
5903
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.ForwardRequestPB)
5904
12
  ::google::protobuf::uint32 cached_has_bits = 0;
5905
  // Prevent compiler warnings about cached_has_bits being unused
5906
12
  (void) cached_has_bits;
5907
5908
12
  cached_has_bits = _has_bits_[0];
5909
12
  if (cached_has_bits & 0x00000001u) {
5910
0
    GOOGLE_DCHECK(!host_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5911
0
    (*host_.UnsafeRawStringPointer())->clear();
5912
0
  }
5913
12
  port_ = 0u;
5914
12
  _has_bits_.Clear();
5915
12
  _internal_metadata_.Clear();
5916
12
}
5917
5918
bool ForwardRequestPB::MergePartialFromCodedStream(
5919
12
    ::google::protobuf::io::CodedInputStream* input) {
5920
12
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
5921
12
  ::google::protobuf::uint32 tag;
5922
  // @@protoc_insertion_point(parse_start:yb.rpc_test.ForwardRequestPB)
5923
24
  for (;;) {
5924
24
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5925
24
    tag = p.first;
5926
24
    if (!p.second) 
goto handle_unusual12
;
5927
12
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5928
      // optional string host = 1;
5929
6
      case 1: {
5930
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5931
6
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5932
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5933
6
                input, this->mutable_host()));
5934
6
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5935
6
            this->host().data(), static_cast<int>(this->host().length()),
5936
6
            ::google::protobuf::internal::WireFormat::PARSE,
5937
6
            "yb.rpc_test.ForwardRequestPB.host");
5938
6
        } else {
5939
0
          goto handle_unusual;
5940
0
        }
5941
6
        break;
5942
6
      }
5943
5944
      // optional uint32 port = 2;
5945
6
      case 2: {
5946
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5947
6
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5948
6
          set_has_port();
5949
6
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5950
6
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5951
6
                 input, &port_)));
5952
6
        } else {
5953
0
          goto handle_unusual;
5954
0
        }
5955
6
        break;
5956
6
      }
5957
5958
6
      default: {
5959
12
      handle_unusual:
5960
12
        if (tag == 0) {
5961
12
          goto success;
5962
12
        }
5963
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5964
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5965
0
        break;
5966
0
      }
5967
12
    }
5968
12
  }
5969
12
success:
5970
  // @@protoc_insertion_point(parse_success:yb.rpc_test.ForwardRequestPB)
5971
12
  return true;
5972
0
failure:
5973
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.ForwardRequestPB)
5974
0
  return false;
5975
12
#undef DO_
5976
12
}
5977
5978
void ForwardRequestPB::SerializeWithCachedSizes(
5979
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5980
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.ForwardRequestPB)
5981
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5982
0
  (void) cached_has_bits;
5983
5984
0
  cached_has_bits = _has_bits_[0];
5985
  // optional string host = 1;
5986
0
  if (cached_has_bits & 0x00000001u) {
5987
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5988
0
      this->host().data(), static_cast<int>(this->host().length()),
5989
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5990
0
      "yb.rpc_test.ForwardRequestPB.host");
5991
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5992
0
      1, this->host(), output);
5993
0
  }
5994
5995
  // optional uint32 port = 2;
5996
0
  if (cached_has_bits & 0x00000002u) {
5997
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->port(), output);
5998
0
  }
5999
6000
0
  if (_internal_metadata_.have_unknown_fields()) {
6001
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6002
0
        _internal_metadata_.unknown_fields(), output);
6003
0
  }
6004
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.ForwardRequestPB)
6005
0
}
6006
6007
::google::protobuf::uint8* ForwardRequestPB::InternalSerializeWithCachedSizesToArray(
6008
14
    bool deterministic, ::google::protobuf::uint8* target) const {
6009
14
  (void)deterministic; // Unused
6010
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.ForwardRequestPB)
6011
14
  ::google::protobuf::uint32 cached_has_bits = 0;
6012
14
  (void) cached_has_bits;
6013
6014
14
  cached_has_bits = _has_bits_[0];
6015
  // optional string host = 1;
6016
14
  if (cached_has_bits & 0x00000001u) {
6017
6
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6018
6
      this->host().data(), static_cast<int>(this->host().length()),
6019
6
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6020
6
      "yb.rpc_test.ForwardRequestPB.host");
6021
6
    target =
6022
6
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6023
6
        1, this->host(), target);
6024
6
  }
6025
6026
  // optional uint32 port = 2;
6027
14
  if (cached_has_bits & 0x00000002u) {
6028
6
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->port(), target);
6029
6
  }
6030
6031
14
  if (_internal_metadata_.have_unknown_fields()) {
6032
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6033
0
        _internal_metadata_.unknown_fields(), target);
6034
0
  }
6035
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.ForwardRequestPB)
6036
14
  return target;
6037
14
}
6038
6039
28
size_t ForwardRequestPB::ByteSizeLong() const {
6040
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.ForwardRequestPB)
6041
28
  size_t total_size = 0;
6042
6043
28
  if (_internal_metadata_.have_unknown_fields()) {
6044
0
    total_size +=
6045
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6046
0
        _internal_metadata_.unknown_fields());
6047
0
  }
6048
28
  if (_has_bits_[0 / 32] & 3u) {
6049
    // optional string host = 1;
6050
12
    if (has_host()) {
6051
12
      total_size += 1 +
6052
12
        ::google::protobuf::internal::WireFormatLite::StringSize(
6053
12
          this->host());
6054
12
    }
6055
6056
    // optional uint32 port = 2;
6057
12
    if (has_port()) {
6058
12
      total_size += 1 +
6059
12
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
6060
12
          this->port());
6061
12
    }
6062
6063
12
  }
6064
28
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6065
28
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6066
28
  _cached_size_ = cached_size;
6067
28
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6068
28
  return total_size;
6069
28
}
6070
6071
0
void ForwardRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
6072
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.ForwardRequestPB)
6073
0
  GOOGLE_DCHECK_NE(&from, this);
6074
0
  const ForwardRequestPB* source =
6075
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ForwardRequestPB>(
6076
0
          &from);
6077
0
  if (source == NULL) {
6078
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.ForwardRequestPB)
6079
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6080
0
  } else {
6081
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.ForwardRequestPB)
6082
0
    MergeFrom(*source);
6083
0
  }
6084
0
}
6085
6086
0
void ForwardRequestPB::MergeFrom(const ForwardRequestPB& from) {
6087
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.ForwardRequestPB)
6088
0
  GOOGLE_DCHECK_NE(&from, this);
6089
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6090
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6091
0
  (void) cached_has_bits;
6092
6093
0
  cached_has_bits = from._has_bits_[0];
6094
0
  if (cached_has_bits & 3u) {
6095
0
    if (cached_has_bits & 0x00000001u) {
6096
0
      set_has_host();
6097
0
      host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_);
6098
0
    }
6099
0
    if (cached_has_bits & 0x00000002u) {
6100
0
      port_ = from.port_;
6101
0
    }
6102
0
    _has_bits_[0] |= cached_has_bits;
6103
0
  }
6104
0
}
6105
6106
0
void ForwardRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6107
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.ForwardRequestPB)
6108
0
  if (&from == this) return;
6109
0
  Clear();
6110
0
  MergeFrom(from);
6111
0
}
6112
6113
0
void ForwardRequestPB::CopyFrom(const ForwardRequestPB& from) {
6114
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.ForwardRequestPB)
6115
0
  if (&from == this) return;
6116
0
  Clear();
6117
0
  MergeFrom(from);
6118
0
}
6119
6120
26
bool ForwardRequestPB::IsInitialized() const {
6121
26
  return true;
6122
26
}
6123
6124
0
void ForwardRequestPB::Swap(ForwardRequestPB* other) {
6125
0
  if (other == this) return;
6126
0
  InternalSwap(other);
6127
0
}
6128
0
void ForwardRequestPB::InternalSwap(ForwardRequestPB* other) {
6129
0
  using std::swap;
6130
0
  host_.Swap(&other->host_);
6131
0
  swap(port_, other->port_);
6132
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6133
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6134
0
  swap(_cached_size_, other->_cached_size_);
6135
0
}
6136
6137
12
::google::protobuf::Metadata ForwardRequestPB::GetMetadata() const {
6138
12
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6139
12
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
6140
12
}
6141
6142
6143
// ===================================================================
6144
6145
123
void ForwardResponsePB::InitAsDefaultInstance() {
6146
123
}
6147
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6148
const int ForwardResponsePB::kNameFieldNumber;
6149
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6150
6151
ForwardResponsePB::ForwardResponsePB()
6152
149
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6153
149
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6154
26
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsForwardResponsePB();
6155
26
  }
6156
149
  SharedCtor();
6157
  // @@protoc_insertion_point(constructor:yb.rpc_test.ForwardResponsePB)
6158
149
}
6159
ForwardResponsePB::ForwardResponsePB(const ForwardResponsePB& from)
6160
  : ::google::protobuf::Message(),
6161
      _internal_metadata_(NULL),
6162
      _has_bits_(from._has_bits_),
6163
0
      _cached_size_(0) {
6164
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6165
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6166
0
  if (from.has_name()) {
6167
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6168
0
  }
6169
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.ForwardResponsePB)
6170
0
}
6171
6172
149
void ForwardResponsePB::SharedCtor() {
6173
149
  _cached_size_ = 0;
6174
149
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6175
149
}
6176
6177
26
ForwardResponsePB::~ForwardResponsePB() {
6178
  // @@protoc_insertion_point(destructor:yb.rpc_test.ForwardResponsePB)
6179
26
  SharedDtor();
6180
26
}
6181
6182
26
void ForwardResponsePB::SharedDtor() {
6183
26
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6184
26
}
6185
6186
0
void ForwardResponsePB::SetCachedSize(int size) const {
6187
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6188
0
  _cached_size_ = size;
6189
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6190
0
}
6191
0
const ::google::protobuf::Descriptor* ForwardResponsePB::descriptor() {
6192
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6193
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6194
0
}
6195
6196
0
const ForwardResponsePB& ForwardResponsePB::default_instance() {
6197
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsForwardResponsePB();
6198
0
  return *internal_default_instance();
6199
0
}
6200
6201
0
ForwardResponsePB* ForwardResponsePB::New(::google::protobuf::Arena* arena) const {
6202
0
  ForwardResponsePB* n = new ForwardResponsePB;
6203
0
  if (arena != NULL) {
6204
0
    arena->Own(n);
6205
0
  }
6206
0
  return n;
6207
0
}
6208
6209
10
void ForwardResponsePB::Clear() {
6210
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.ForwardResponsePB)
6211
10
  ::google::protobuf::uint32 cached_has_bits = 0;
6212
  // Prevent compiler warnings about cached_has_bits being unused
6213
10
  (void) cached_has_bits;
6214
6215
10
  cached_has_bits = _has_bits_[0];
6216
10
  if (cached_has_bits & 0x00000001u) {
6217
0
    GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6218
0
    (*name_.UnsafeRawStringPointer())->clear();
6219
0
  }
6220
10
  _has_bits_.Clear();
6221
10
  _internal_metadata_.Clear();
6222
10
}
6223
6224
bool ForwardResponsePB::MergePartialFromCodedStream(
6225
10
    ::google::protobuf::io::CodedInputStream* input) {
6226
10
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6227
10
  ::google::protobuf::uint32 tag;
6228
  // @@protoc_insertion_point(parse_start:yb.rpc_test.ForwardResponsePB)
6229
20
  for (;;) {
6230
20
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6231
20
    tag = p.first;
6232
20
    if (!p.second) 
goto handle_unusual10
;
6233
10
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6234
      // optional string name = 1;
6235
10
      case 1: {
6236
10
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6237
10
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6238
10
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6239
10
                input, this->mutable_name()));
6240
10
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6241
10
            this->name().data(), static_cast<int>(this->name().length()),
6242
10
            ::google::protobuf::internal::WireFormat::PARSE,
6243
10
            "yb.rpc_test.ForwardResponsePB.name");
6244
10
        } else {
6245
0
          goto handle_unusual;
6246
0
        }
6247
10
        break;
6248
10
      }
6249
6250
10
      default: {
6251
10
      handle_unusual:
6252
10
        if (tag == 0) {
6253
10
          goto success;
6254
10
        }
6255
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6256
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6257
0
        break;
6258
0
      }
6259
10
    }
6260
10
  }
6261
10
success:
6262
  // @@protoc_insertion_point(parse_success:yb.rpc_test.ForwardResponsePB)
6263
10
  return true;
6264
0
failure:
6265
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.ForwardResponsePB)
6266
0
  return false;
6267
10
#undef DO_
6268
10
}
6269
6270
void ForwardResponsePB::SerializeWithCachedSizes(
6271
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6272
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.ForwardResponsePB)
6273
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6274
0
  (void) cached_has_bits;
6275
6276
0
  cached_has_bits = _has_bits_[0];
6277
  // optional string name = 1;
6278
0
  if (cached_has_bits & 0x00000001u) {
6279
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6280
0
      this->name().data(), static_cast<int>(this->name().length()),
6281
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6282
0
      "yb.rpc_test.ForwardResponsePB.name");
6283
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6284
0
      1, this->name(), output);
6285
0
  }
6286
6287
0
  if (_internal_metadata_.have_unknown_fields()) {
6288
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6289
0
        _internal_metadata_.unknown_fields(), output);
6290
0
  }
6291
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.ForwardResponsePB)
6292
0
}
6293
6294
::google::protobuf::uint8* ForwardResponsePB::InternalSerializeWithCachedSizesToArray(
6295
10
    bool deterministic, ::google::protobuf::uint8* target) const {
6296
10
  (void)deterministic; // Unused
6297
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.ForwardResponsePB)
6298
10
  ::google::protobuf::uint32 cached_has_bits = 0;
6299
10
  (void) cached_has_bits;
6300
6301
10
  cached_has_bits = _has_bits_[0];
6302
  // optional string name = 1;
6303
10
  if (cached_has_bits & 0x00000001u) {
6304
10
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6305
10
      this->name().data(), static_cast<int>(this->name().length()),
6306
10
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6307
10
      "yb.rpc_test.ForwardResponsePB.name");
6308
10
    target =
6309
10
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6310
10
        1, this->name(), target);
6311
10
  }
6312
6313
10
  if (_internal_metadata_.have_unknown_fields()) {
6314
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6315
0
        _internal_metadata_.unknown_fields(), target);
6316
0
  }
6317
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.ForwardResponsePB)
6318
10
  return target;
6319
10
}
6320
6321
20
size_t ForwardResponsePB::ByteSizeLong() const {
6322
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.ForwardResponsePB)
6323
20
  size_t total_size = 0;
6324
6325
20
  if (_internal_metadata_.have_unknown_fields()) {
6326
0
    total_size +=
6327
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6328
0
        _internal_metadata_.unknown_fields());
6329
0
  }
6330
  // optional string name = 1;
6331
20
  if (has_name()) {
6332
20
    total_size += 1 +
6333
20
      ::google::protobuf::internal::WireFormatLite::StringSize(
6334
20
        this->name());
6335
20
  }
6336
6337
20
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6338
20
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6339
20
  _cached_size_ = cached_size;
6340
20
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6341
20
  return total_size;
6342
20
}
6343
6344
0
void ForwardResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6345
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.ForwardResponsePB)
6346
0
  GOOGLE_DCHECK_NE(&from, this);
6347
0
  const ForwardResponsePB* source =
6348
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ForwardResponsePB>(
6349
0
          &from);
6350
0
  if (source == NULL) {
6351
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.ForwardResponsePB)
6352
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6353
0
  } else {
6354
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.ForwardResponsePB)
6355
0
    MergeFrom(*source);
6356
0
  }
6357
0
}
6358
6359
0
void ForwardResponsePB::MergeFrom(const ForwardResponsePB& from) {
6360
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.ForwardResponsePB)
6361
0
  GOOGLE_DCHECK_NE(&from, this);
6362
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6363
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6364
0
  (void) cached_has_bits;
6365
6366
0
  if (from.has_name()) {
6367
0
    set_has_name();
6368
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6369
0
  }
6370
0
}
6371
6372
0
void ForwardResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6373
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.ForwardResponsePB)
6374
0
  if (&from == this) return;
6375
0
  Clear();
6376
0
  MergeFrom(from);
6377
0
}
6378
6379
0
void ForwardResponsePB::CopyFrom(const ForwardResponsePB& from) {
6380
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.ForwardResponsePB)
6381
0
  if (&from == this) return;
6382
0
  Clear();
6383
0
  MergeFrom(from);
6384
0
}
6385
6386
20
bool ForwardResponsePB::IsInitialized() const {
6387
20
  return true;
6388
20
}
6389
6390
0
void ForwardResponsePB::Swap(ForwardResponsePB* other) {
6391
0
  if (other == this) return;
6392
0
  InternalSwap(other);
6393
0
}
6394
0
void ForwardResponsePB::InternalSwap(ForwardResponsePB* other) {
6395
0
  using std::swap;
6396
0
  name_.Swap(&other->name_);
6397
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6398
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6399
0
  swap(_cached_size_, other->_cached_size_);
6400
0
}
6401
6402
0
::google::protobuf::Metadata ForwardResponsePB::GetMetadata() const {
6403
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6404
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
6405
0
}
6406
6407
6408
// ===================================================================
6409
6410
123
void ConcatRequestPB::InitAsDefaultInstance() {
6411
123
}
6412
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6413
const int ConcatRequestPB::kLhsFieldNumber;
6414
const int ConcatRequestPB::kRhsFieldNumber;
6415
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6416
6417
ConcatRequestPB::ConcatRequestPB()
6418
125
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6419
125
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6420
2
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsConcatRequestPB();
6421
2
  }
6422
125
  SharedCtor();
6423
  // @@protoc_insertion_point(constructor:yb.rpc_test.ConcatRequestPB)
6424
125
}
6425
ConcatRequestPB::ConcatRequestPB(const ConcatRequestPB& from)
6426
  : ::google::protobuf::Message(),
6427
      _internal_metadata_(NULL),
6428
      _has_bits_(from._has_bits_),
6429
0
      _cached_size_(0) {
6430
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6431
0
  lhs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6432
0
  if (from.has_lhs()) {
6433
0
    lhs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lhs_);
6434
0
  }
6435
0
  rhs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6436
0
  if (from.has_rhs()) {
6437
0
    rhs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rhs_);
6438
0
  }
6439
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.ConcatRequestPB)
6440
0
}
6441
6442
125
void ConcatRequestPB::SharedCtor() {
6443
125
  _cached_size_ = 0;
6444
125
  lhs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6445
125
  rhs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6446
125
}
6447
6448
2
ConcatRequestPB::~ConcatRequestPB() {
6449
  // @@protoc_insertion_point(destructor:yb.rpc_test.ConcatRequestPB)
6450
2
  SharedDtor();
6451
2
}
6452
6453
2
void ConcatRequestPB::SharedDtor() {
6454
2
  lhs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6455
2
  rhs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6456
2
}
6457
6458
0
void ConcatRequestPB::SetCachedSize(int size) const {
6459
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6460
0
  _cached_size_ = size;
6461
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6462
0
}
6463
0
const ::google::protobuf::Descriptor* ConcatRequestPB::descriptor() {
6464
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6465
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6466
0
}
6467
6468
0
const ConcatRequestPB& ConcatRequestPB::default_instance() {
6469
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsConcatRequestPB();
6470
0
  return *internal_default_instance();
6471
0
}
6472
6473
0
ConcatRequestPB* ConcatRequestPB::New(::google::protobuf::Arena* arena) const {
6474
0
  ConcatRequestPB* n = new ConcatRequestPB;
6475
0
  if (arena != NULL) {
6476
0
    arena->Own(n);
6477
0
  }
6478
0
  return n;
6479
0
}
6480
6481
1
void ConcatRequestPB::Clear() {
6482
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.ConcatRequestPB)
6483
1
  ::google::protobuf::uint32 cached_has_bits = 0;
6484
  // Prevent compiler warnings about cached_has_bits being unused
6485
1
  (void) cached_has_bits;
6486
6487
1
  cached_has_bits = _has_bits_[0];
6488
1
  if (cached_has_bits & 3u) {
6489
0
    if (cached_has_bits & 0x00000001u) {
6490
0
      GOOGLE_DCHECK(!lhs_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6491
0
      (*lhs_.UnsafeRawStringPointer())->clear();
6492
0
    }
6493
0
    if (cached_has_bits & 0x00000002u) {
6494
0
      GOOGLE_DCHECK(!rhs_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6495
0
      (*rhs_.UnsafeRawStringPointer())->clear();
6496
0
    }
6497
0
  }
6498
1
  _has_bits_.Clear();
6499
1
  _internal_metadata_.Clear();
6500
1
}
6501
6502
bool ConcatRequestPB::MergePartialFromCodedStream(
6503
1
    ::google::protobuf::io::CodedInputStream* input) {
6504
2
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6505
1
  ::google::protobuf::uint32 tag;
6506
  // @@protoc_insertion_point(parse_start:yb.rpc_test.ConcatRequestPB)
6507
3
  for (;;) {
6508
3
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6509
3
    tag = p.first;
6510
3
    if (!p.second) 
goto handle_unusual1
;
6511
2
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6512
      // optional string lhs = 1;
6513
1
      case 1: {
6514
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6515
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6516
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6517
1
                input, this->mutable_lhs()));
6518
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6519
1
            this->lhs().data(), static_cast<int>(this->lhs().length()),
6520
1
            ::google::protobuf::internal::WireFormat::PARSE,
6521
1
            "yb.rpc_test.ConcatRequestPB.lhs");
6522
1
        } else {
6523
0
          goto handle_unusual;
6524
0
        }
6525
1
        break;
6526
1
      }
6527
6528
      // optional string rhs = 2;
6529
1
      case 2: {
6530
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6531
1
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6532
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6533
1
                input, this->mutable_rhs()));
6534
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6535
1
            this->rhs().data(), static_cast<int>(this->rhs().length()),
6536
1
            ::google::protobuf::internal::WireFormat::PARSE,
6537
1
            "yb.rpc_test.ConcatRequestPB.rhs");
6538
1
        } else {
6539
0
          goto handle_unusual;
6540
0
        }
6541
1
        break;
6542
1
      }
6543
6544
1
      default: {
6545
1
      handle_unusual:
6546
1
        if (tag == 0) {
6547
1
          goto success;
6548
1
        }
6549
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6550
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6551
0
        break;
6552
0
      }
6553
2
    }
6554
2
  }
6555
1
success:
6556
  // @@protoc_insertion_point(parse_success:yb.rpc_test.ConcatRequestPB)
6557
1
  return true;
6558
0
failure:
6559
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.ConcatRequestPB)
6560
0
  return false;
6561
1
#undef DO_
6562
1
}
6563
6564
void ConcatRequestPB::SerializeWithCachedSizes(
6565
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6566
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.ConcatRequestPB)
6567
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6568
0
  (void) cached_has_bits;
6569
6570
0
  cached_has_bits = _has_bits_[0];
6571
  // optional string lhs = 1;
6572
0
  if (cached_has_bits & 0x00000001u) {
6573
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6574
0
      this->lhs().data(), static_cast<int>(this->lhs().length()),
6575
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6576
0
      "yb.rpc_test.ConcatRequestPB.lhs");
6577
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6578
0
      1, this->lhs(), output);
6579
0
  }
6580
6581
  // optional string rhs = 2;
6582
0
  if (cached_has_bits & 0x00000002u) {
6583
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6584
0
      this->rhs().data(), static_cast<int>(this->rhs().length()),
6585
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6586
0
      "yb.rpc_test.ConcatRequestPB.rhs");
6587
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6588
0
      2, this->rhs(), output);
6589
0
  }
6590
6591
0
  if (_internal_metadata_.have_unknown_fields()) {
6592
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6593
0
        _internal_metadata_.unknown_fields(), output);
6594
0
  }
6595
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.ConcatRequestPB)
6596
0
}
6597
6598
::google::protobuf::uint8* ConcatRequestPB::InternalSerializeWithCachedSizesToArray(
6599
1
    bool deterministic, ::google::protobuf::uint8* target) const {
6600
1
  (void)deterministic; // Unused
6601
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.ConcatRequestPB)
6602
1
  ::google::protobuf::uint32 cached_has_bits = 0;
6603
1
  (void) cached_has_bits;
6604
6605
1
  cached_has_bits = _has_bits_[0];
6606
  // optional string lhs = 1;
6607
1
  if (cached_has_bits & 0x00000001u) {
6608
1
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6609
1
      this->lhs().data(), static_cast<int>(this->lhs().length()),
6610
1
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6611
1
      "yb.rpc_test.ConcatRequestPB.lhs");
6612
1
    target =
6613
1
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6614
1
        1, this->lhs(), target);
6615
1
  }
6616
6617
  // optional string rhs = 2;
6618
1
  if (cached_has_bits & 0x00000002u) {
6619
1
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6620
1
      this->rhs().data(), static_cast<int>(this->rhs().length()),
6621
1
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6622
1
      "yb.rpc_test.ConcatRequestPB.rhs");
6623
1
    target =
6624
1
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6625
1
        2, this->rhs(), target);
6626
1
  }
6627
6628
1
  if (_internal_metadata_.have_unknown_fields()) {
6629
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6630
0
        _internal_metadata_.unknown_fields(), target);
6631
0
  }
6632
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.ConcatRequestPB)
6633
1
  return target;
6634
1
}
6635
6636
2
size_t ConcatRequestPB::ByteSizeLong() const {
6637
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.ConcatRequestPB)
6638
2
  size_t total_size = 0;
6639
6640
2
  if (_internal_metadata_.have_unknown_fields()) {
6641
0
    total_size +=
6642
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6643
0
        _internal_metadata_.unknown_fields());
6644
0
  }
6645
2
  if (_has_bits_[0 / 32] & 3u) {
6646
    // optional string lhs = 1;
6647
2
    if (has_lhs()) {
6648
2
      total_size += 1 +
6649
2
        ::google::protobuf::internal::WireFormatLite::StringSize(
6650
2
          this->lhs());
6651
2
    }
6652
6653
    // optional string rhs = 2;
6654
2
    if (has_rhs()) {
6655
2
      total_size += 1 +
6656
2
        ::google::protobuf::internal::WireFormatLite::StringSize(
6657
2
          this->rhs());
6658
2
    }
6659
6660
2
  }
6661
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6662
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6663
2
  _cached_size_ = cached_size;
6664
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6665
2
  return total_size;
6666
2
}
6667
6668
0
void ConcatRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
6669
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.ConcatRequestPB)
6670
0
  GOOGLE_DCHECK_NE(&from, this);
6671
0
  const ConcatRequestPB* source =
6672
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConcatRequestPB>(
6673
0
          &from);
6674
0
  if (source == NULL) {
6675
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.ConcatRequestPB)
6676
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6677
0
  } else {
6678
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.ConcatRequestPB)
6679
0
    MergeFrom(*source);
6680
0
  }
6681
0
}
6682
6683
0
void ConcatRequestPB::MergeFrom(const ConcatRequestPB& from) {
6684
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.ConcatRequestPB)
6685
0
  GOOGLE_DCHECK_NE(&from, this);
6686
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6687
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6688
0
  (void) cached_has_bits;
6689
6690
0
  cached_has_bits = from._has_bits_[0];
6691
0
  if (cached_has_bits & 3u) {
6692
0
    if (cached_has_bits & 0x00000001u) {
6693
0
      set_has_lhs();
6694
0
      lhs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lhs_);
6695
0
    }
6696
0
    if (cached_has_bits & 0x00000002u) {
6697
0
      set_has_rhs();
6698
0
      rhs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rhs_);
6699
0
    }
6700
0
  }
6701
0
}
6702
6703
0
void ConcatRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6704
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.ConcatRequestPB)
6705
0
  if (&from == this) return;
6706
0
  Clear();
6707
0
  MergeFrom(from);
6708
0
}
6709
6710
0
void ConcatRequestPB::CopyFrom(const ConcatRequestPB& from) {
6711
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.ConcatRequestPB)
6712
0
  if (&from == this) return;
6713
0
  Clear();
6714
0
  MergeFrom(from);
6715
0
}
6716
6717
2
bool ConcatRequestPB::IsInitialized() const {
6718
2
  return true;
6719
2
}
6720
6721
0
void ConcatRequestPB::Swap(ConcatRequestPB* other) {
6722
0
  if (other == this) return;
6723
0
  InternalSwap(other);
6724
0
}
6725
0
void ConcatRequestPB::InternalSwap(ConcatRequestPB* other) {
6726
0
  using std::swap;
6727
0
  lhs_.Swap(&other->lhs_);
6728
0
  rhs_.Swap(&other->rhs_);
6729
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6730
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6731
0
  swap(_cached_size_, other->_cached_size_);
6732
0
}
6733
6734
1
::google::protobuf::Metadata ConcatRequestPB::GetMetadata() const {
6735
1
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6736
1
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
6737
1
}
6738
6739
6740
// ===================================================================
6741
6742
123
void ConcatResponsePB::InitAsDefaultInstance() {
6743
123
}
6744
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6745
const int ConcatResponsePB::kResultFieldNumber;
6746
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6747
6748
ConcatResponsePB::ConcatResponsePB()
6749
125
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6750
125
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6751
2
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsConcatResponsePB();
6752
2
  }
6753
125
  SharedCtor();
6754
  // @@protoc_insertion_point(constructor:yb.rpc_test.ConcatResponsePB)
6755
125
}
6756
ConcatResponsePB::ConcatResponsePB(const ConcatResponsePB& from)
6757
  : ::google::protobuf::Message(),
6758
      _internal_metadata_(NULL),
6759
      _has_bits_(from._has_bits_),
6760
0
      _cached_size_(0) {
6761
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6762
0
  result_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6763
0
  if (from.has_result()) {
6764
0
    result_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.result_);
6765
0
  }
6766
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.ConcatResponsePB)
6767
0
}
6768
6769
125
void ConcatResponsePB::SharedCtor() {
6770
125
  _cached_size_ = 0;
6771
125
  result_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6772
125
}
6773
6774
2
ConcatResponsePB::~ConcatResponsePB() {
6775
  // @@protoc_insertion_point(destructor:yb.rpc_test.ConcatResponsePB)
6776
2
  SharedDtor();
6777
2
}
6778
6779
2
void ConcatResponsePB::SharedDtor() {
6780
2
  result_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6781
2
}
6782
6783
0
void ConcatResponsePB::SetCachedSize(int size) const {
6784
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6785
0
  _cached_size_ = size;
6786
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6787
0
}
6788
0
const ::google::protobuf::Descriptor* ConcatResponsePB::descriptor() {
6789
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
6790
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6791
0
}
6792
6793
0
const ConcatResponsePB& ConcatResponsePB::default_instance() {
6794
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsConcatResponsePB();
6795
0
  return *internal_default_instance();
6796
0
}
6797
6798
0
ConcatResponsePB* ConcatResponsePB::New(::google::protobuf::Arena* arena) const {
6799
0
  ConcatResponsePB* n = new ConcatResponsePB;
6800
0
  if (arena != NULL) {
6801
0
    arena->Own(n);
6802
0
  }
6803
0
  return n;
6804
0
}
6805
6806
1
void ConcatResponsePB::Clear() {
6807
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.ConcatResponsePB)
6808
1
  ::google::protobuf::uint32 cached_has_bits = 0;
6809
  // Prevent compiler warnings about cached_has_bits being unused
6810
1
  (void) cached_has_bits;
6811
6812
1
  cached_has_bits = _has_bits_[0];
6813
1
  if (cached_has_bits & 0x00000001u) {
6814
0
    GOOGLE_DCHECK(!result_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6815
0
    (*result_.UnsafeRawStringPointer())->clear();
6816
0
  }
6817
1
  _has_bits_.Clear();
6818
1
  _internal_metadata_.Clear();
6819
1
}
6820
6821
bool ConcatResponsePB::MergePartialFromCodedStream(
6822
1
    ::google::protobuf::io::CodedInputStream* input) {
6823
1
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6824
1
  ::google::protobuf::uint32 tag;
6825
  // @@protoc_insertion_point(parse_start:yb.rpc_test.ConcatResponsePB)
6826
2
  for (;;) {
6827
2
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6828
2
    tag = p.first;
6829
2
    if (!p.second) 
goto handle_unusual1
;
6830
1
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6831
      // optional string result = 1;
6832
1
      case 1: {
6833
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6834
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6835
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6836
1
                input, this->mutable_result()));
6837
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6838
1
            this->result().data(), static_cast<int>(this->result().length()),
6839
1
            ::google::protobuf::internal::WireFormat::PARSE,
6840
1
            "yb.rpc_test.ConcatResponsePB.result");
6841
1
        } else {
6842
0
          goto handle_unusual;
6843
0
        }
6844
1
        break;
6845
1
      }
6846
6847
1
      default: {
6848
1
      handle_unusual:
6849
1
        if (tag == 0) {
6850
1
          goto success;
6851
1
        }
6852
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6853
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6854
0
        break;
6855
0
      }
6856
1
    }
6857
1
  }
6858
1
success:
6859
  // @@protoc_insertion_point(parse_success:yb.rpc_test.ConcatResponsePB)
6860
1
  return true;
6861
0
failure:
6862
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.ConcatResponsePB)
6863
0
  return false;
6864
1
#undef DO_
6865
1
}
6866
6867
void ConcatResponsePB::SerializeWithCachedSizes(
6868
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6869
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.ConcatResponsePB)
6870
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6871
0
  (void) cached_has_bits;
6872
6873
0
  cached_has_bits = _has_bits_[0];
6874
  // optional string result = 1;
6875
0
  if (cached_has_bits & 0x00000001u) {
6876
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6877
0
      this->result().data(), static_cast<int>(this->result().length()),
6878
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6879
0
      "yb.rpc_test.ConcatResponsePB.result");
6880
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6881
0
      1, this->result(), output);
6882
0
  }
6883
6884
0
  if (_internal_metadata_.have_unknown_fields()) {
6885
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6886
0
        _internal_metadata_.unknown_fields(), output);
6887
0
  }
6888
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.ConcatResponsePB)
6889
0
}
6890
6891
::google::protobuf::uint8* ConcatResponsePB::InternalSerializeWithCachedSizesToArray(
6892
1
    bool deterministic, ::google::protobuf::uint8* target) const {
6893
1
  (void)deterministic; // Unused
6894
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.ConcatResponsePB)
6895
1
  ::google::protobuf::uint32 cached_has_bits = 0;
6896
1
  (void) cached_has_bits;
6897
6898
1
  cached_has_bits = _has_bits_[0];
6899
  // optional string result = 1;
6900
1
  if (cached_has_bits & 0x00000001u) {
6901
1
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6902
1
      this->result().data(), static_cast<int>(this->result().length()),
6903
1
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6904
1
      "yb.rpc_test.ConcatResponsePB.result");
6905
1
    target =
6906
1
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6907
1
        1, this->result(), target);
6908
1
  }
6909
6910
1
  if (_internal_metadata_.have_unknown_fields()) {
6911
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6912
0
        _internal_metadata_.unknown_fields(), target);
6913
0
  }
6914
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.ConcatResponsePB)
6915
1
  return target;
6916
1
}
6917
6918
2
size_t ConcatResponsePB::ByteSizeLong() const {
6919
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.ConcatResponsePB)
6920
2
  size_t total_size = 0;
6921
6922
2
  if (_internal_metadata_.have_unknown_fields()) {
6923
0
    total_size +=
6924
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6925
0
        _internal_metadata_.unknown_fields());
6926
0
  }
6927
  // optional string result = 1;
6928
2
  if (has_result()) {
6929
2
    total_size += 1 +
6930
2
      ::google::protobuf::internal::WireFormatLite::StringSize(
6931
2
        this->result());
6932
2
  }
6933
6934
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6935
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6936
2
  _cached_size_ = cached_size;
6937
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6938
2
  return total_size;
6939
2
}
6940
6941
0
void ConcatResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6942
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.ConcatResponsePB)
6943
0
  GOOGLE_DCHECK_NE(&from, this);
6944
0
  const ConcatResponsePB* source =
6945
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConcatResponsePB>(
6946
0
          &from);
6947
0
  if (source == NULL) {
6948
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.ConcatResponsePB)
6949
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6950
0
  } else {
6951
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.ConcatResponsePB)
6952
0
    MergeFrom(*source);
6953
0
  }
6954
0
}
6955
6956
0
void ConcatResponsePB::MergeFrom(const ConcatResponsePB& from) {
6957
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.ConcatResponsePB)
6958
0
  GOOGLE_DCHECK_NE(&from, this);
6959
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6960
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6961
0
  (void) cached_has_bits;
6962
6963
0
  if (from.has_result()) {
6964
0
    set_has_result();
6965
0
    result_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.result_);
6966
0
  }
6967
0
}
6968
6969
0
void ConcatResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6970
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.ConcatResponsePB)
6971
0
  if (&from == this) return;
6972
0
  Clear();
6973
0
  MergeFrom(from);
6974
0
}
6975
6976
0
void ConcatResponsePB::CopyFrom(const ConcatResponsePB& from) {
6977
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.ConcatResponsePB)
6978
0
  if (&from == this) return;
6979
0
  Clear();
6980
0
  MergeFrom(from);
6981
0
}
6982
6983
2
bool ConcatResponsePB::IsInitialized() const {
6984
2
  return true;
6985
2
}
6986
6987
0
void ConcatResponsePB::Swap(ConcatResponsePB* other) {
6988
0
  if (other == this) return;
6989
0
  InternalSwap(other);
6990
0
}
6991
0
void ConcatResponsePB::InternalSwap(ConcatResponsePB* other) {
6992
0
  using std::swap;
6993
0
  result_.Swap(&other->result_);
6994
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6995
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6996
0
  swap(_cached_size_, other->_cached_size_);
6997
0
}
6998
6999
0
::google::protobuf::Metadata ConcatResponsePB::GetMetadata() const {
7000
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7001
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
7002
0
}
7003
7004
7005
// ===================================================================
7006
7007
123
void LightweightSubMessagePB::InitAsDefaultInstance() {
7008
123
  ::yb::rpc_test::_LightweightSubMessagePB_default_instance_._instance.get_mutable()->cycle_ = const_cast< ::yb::rpc_test::LightweightSubMessagePB*>(
7009
123
      ::yb::rpc_test::LightweightSubMessagePB::internal_default_instance());
7010
123
}
7011
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7012
const int LightweightSubMessagePB::kSf32FieldNumber;
7013
const int LightweightSubMessagePB::kRsi32FieldNumber;
7014
const int LightweightSubMessagePB::kStrFieldNumber;
7015
const int LightweightSubMessagePB::kRbytesFieldNumber;
7016
const int LightweightSubMessagePB::kCycleFieldNumber;
7017
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7018
7019
LightweightSubMessagePB::LightweightSubMessagePB()
7020
206
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7021
206
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7022
83
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightSubMessagePB();
7023
83
  }
7024
206
  SharedCtor();
7025
  // @@protoc_insertion_point(constructor:yb.rpc_test.LightweightSubMessagePB)
7026
206
}
7027
LightweightSubMessagePB::LightweightSubMessagePB(const LightweightSubMessagePB& from)
7028
  : ::google::protobuf::Message(),
7029
      _internal_metadata_(NULL),
7030
      _has_bits_(from._has_bits_),
7031
      _cached_size_(0),
7032
      rsi32_(from.rsi32_),
7033
0
      rbytes_(from.rbytes_) {
7034
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7035
0
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7036
0
  if (from.has_str()) {
7037
0
    str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
7038
0
  }
7039
0
  if (from.has_cycle()) {
7040
0
    cycle_ = new ::yb::rpc_test::LightweightSubMessagePB(*from.cycle_);
7041
0
  } else {
7042
0
    cycle_ = NULL;
7043
0
  }
7044
0
  sf32_ = from.sf32_;
7045
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.LightweightSubMessagePB)
7046
0
}
7047
7048
206
void LightweightSubMessagePB::SharedCtor() {
7049
206
  _cached_size_ = 0;
7050
206
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7051
206
  ::memset(&cycle_, 0, static_cast<size_t>(
7052
206
      reinterpret_cast<char*>(&sf32_) -
7053
206
      reinterpret_cast<char*>(&cycle_)) + sizeof(sf32_));
7054
206
}
7055
7056
83
LightweightSubMessagePB::~LightweightSubMessagePB() {
7057
  // @@protoc_insertion_point(destructor:yb.rpc_test.LightweightSubMessagePB)
7058
83
  SharedDtor();
7059
83
}
7060
7061
83
void LightweightSubMessagePB::SharedDtor() {
7062
83
  str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7063
83
  if (this != internal_default_instance()) delete cycle_;
7064
83
}
7065
7066
0
void LightweightSubMessagePB::SetCachedSize(int size) const {
7067
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7068
0
  _cached_size_ = size;
7069
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7070
0
}
7071
0
const ::google::protobuf::Descriptor* LightweightSubMessagePB::descriptor() {
7072
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7073
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7074
0
}
7075
7076
0
const LightweightSubMessagePB& LightweightSubMessagePB::default_instance() {
7077
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightSubMessagePB();
7078
0
  return *internal_default_instance();
7079
0
}
7080
7081
0
LightweightSubMessagePB* LightweightSubMessagePB::New(::google::protobuf::Arena* arena) const {
7082
0
  LightweightSubMessagePB* n = new LightweightSubMessagePB;
7083
0
  if (arena != NULL) {
7084
0
    arena->Own(n);
7085
0
  }
7086
0
  return n;
7087
0
}
7088
7089
11
void LightweightSubMessagePB::Clear() {
7090
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.LightweightSubMessagePB)
7091
11
  ::google::protobuf::uint32 cached_has_bits = 0;
7092
  // Prevent compiler warnings about cached_has_bits being unused
7093
11
  (void) cached_has_bits;
7094
7095
11
  rsi32_.Clear();
7096
11
  rbytes_.Clear();
7097
11
  cached_has_bits = _has_bits_[0];
7098
11
  if (cached_has_bits & 3u) {
7099
11
    if (cached_has_bits & 0x00000001u) {
7100
11
      GOOGLE_DCHECK(!str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7101
11
      (*str_.UnsafeRawStringPointer())->clear();
7102
11
    }
7103
11
    if (cached_has_bits & 0x00000002u) {
7104
4
      GOOGLE_DCHECK(cycle_ != NULL);
7105
4
      cycle_->Clear();
7106
4
    }
7107
11
  }
7108
11
  sf32_ = 0;
7109
11
  _has_bits_.Clear();
7110
11
  _internal_metadata_.Clear();
7111
11
}
7112
7113
bool LightweightSubMessagePB::MergePartialFromCodedStream(
7114
17
    ::google::protobuf::io::CodedInputStream* input) {
7115
277
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
7116
17
  ::google::protobuf::uint32 tag;
7117
  // @@protoc_insertion_point(parse_start:yb.rpc_test.LightweightSubMessagePB)
7118
294
  for (;;) {
7119
294
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7120
294
    tag = p.first;
7121
294
    if (!p.second) 
goto handle_unusual17
;
7122
277
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7123
      // optional sfixed32 sf32 = 1;
7124
17
      case 1: {
7125
17
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7126
17
            static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
7127
17
          set_has_sf32();
7128
17
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7129
17
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32>(
7130
17
                 input, &sf32_)));
7131
17
        } else {
7132
0
          goto handle_unusual;
7133
0
        }
7134
17
        break;
7135
17
      }
7136
7137
      // repeated sint32 rsi32 = 2;
7138
51
      case 2: {
7139
51
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7140
51
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7141
51
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
7142
51
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
7143
51
                 1, 16u, input, this->mutable_rsi32())));
7144
51
        } else if (
7145
0
            static_cast< ::google::protobuf::uint8>(tag) ==
7146
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7147
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
7148
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
7149
0
                 input, this->mutable_rsi32())));
7150
0
        } else {
7151
0
          goto handle_unusual;
7152
0
        }
7153
51
        break;
7154
51
      }
7155
7156
      // optional string str = 3;
7157
51
      case 3: {
7158
17
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7159
17
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7160
17
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7161
17
                input, this->mutable_str()));
7162
17
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7163
17
            this->str().data(), static_cast<int>(this->str().length()),
7164
17
            ::google::protobuf::internal::WireFormat::PARSE,
7165
17
            "yb.rpc_test.LightweightSubMessagePB.str");
7166
17
        } else {
7167
0
          goto handle_unusual;
7168
0
        }
7169
17
        break;
7170
17
      }
7171
7172
      // repeated bytes rbytes = 4;
7173
187
      case 4: {
7174
187
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7175
187
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
7176
187
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7177
187
                input, this->add_rbytes()));
7178
187
        } else {
7179
0
          goto handle_unusual;
7180
0
        }
7181
187
        break;
7182
187
      }
7183
7184
      // optional .yb.rpc_test.LightweightSubMessagePB cycle = 5;
7185
187
      case 5: {
7186
5
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7187
5
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
7188
5
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7189
5
               input, mutable_cycle()));
7190
5
        } else {
7191
0
          goto handle_unusual;
7192
0
        }
7193
5
        break;
7194
5
      }
7195
7196
5
      default: {
7197
17
      handle_unusual:
7198
17
        if (tag == 0) {
7199
17
          goto success;
7200
17
        }
7201
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7202
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7203
0
        break;
7204
0
      }
7205
277
    }
7206
277
  }
7207
17
success:
7208
  // @@protoc_insertion_point(parse_success:yb.rpc_test.LightweightSubMessagePB)
7209
17
  return true;
7210
0
failure:
7211
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.LightweightSubMessagePB)
7212
0
  return false;
7213
17
#undef DO_
7214
17
}
7215
7216
void LightweightSubMessagePB::SerializeWithCachedSizes(
7217
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7218
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.LightweightSubMessagePB)
7219
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7220
0
  (void) cached_has_bits;
7221
7222
0
  cached_has_bits = _has_bits_[0];
7223
  // optional sfixed32 sf32 = 1;
7224
0
  if (cached_has_bits & 0x00000004u) {
7225
0
    ::google::protobuf::internal::WireFormatLite::WriteSFixed32(1, this->sf32(), output);
7226
0
  }
7227
7228
  // repeated sint32 rsi32 = 2;
7229
0
  for (int i = 0, n = this->rsi32_size(); i < n; i++) {
7230
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt32(
7231
0
      2, this->rsi32(i), output);
7232
0
  }
7233
7234
  // optional string str = 3;
7235
0
  if (cached_has_bits & 0x00000001u) {
7236
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7237
0
      this->str().data(), static_cast<int>(this->str().length()),
7238
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7239
0
      "yb.rpc_test.LightweightSubMessagePB.str");
7240
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7241
0
      3, this->str(), output);
7242
0
  }
7243
7244
  // repeated bytes rbytes = 4;
7245
0
  for (int i = 0, n = this->rbytes_size(); i < n; i++) {
7246
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
7247
0
      4, this->rbytes(i), output);
7248
0
  }
7249
7250
  // optional .yb.rpc_test.LightweightSubMessagePB cycle = 5;
7251
0
  if (cached_has_bits & 0x00000002u) {
7252
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7253
0
      5, *this->cycle_, output);
7254
0
  }
7255
7256
0
  if (_internal_metadata_.have_unknown_fields()) {
7257
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7258
0
        _internal_metadata_.unknown_fields(), output);
7259
0
  }
7260
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.LightweightSubMessagePB)
7261
0
}
7262
7263
::google::protobuf::uint8* LightweightSubMessagePB::InternalSerializeWithCachedSizesToArray(
7264
11
    bool deterministic, ::google::protobuf::uint8* target) const {
7265
11
  (void)deterministic; // Unused
7266
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.LightweightSubMessagePB)
7267
11
  ::google::protobuf::uint32 cached_has_bits = 0;
7268
11
  (void) cached_has_bits;
7269
7270
11
  cached_has_bits = _has_bits_[0];
7271
  // optional sfixed32 sf32 = 1;
7272
11
  if (cached_has_bits & 0x00000004u) {
7273
11
    target = ::google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray(1, this->sf32(), target);
7274
11
  }
7275
7276
  // repeated sint32 rsi32 = 2;
7277
11
  target = ::google::protobuf::internal::WireFormatLite::
7278
11
    WriteSInt32ToArray(2, this->rsi32_, target);
7279
7280
  // optional string str = 3;
7281
11
  if (cached_has_bits & 0x00000001u) {
7282
11
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7283
11
      this->str().data(), static_cast<int>(this->str().length()),
7284
11
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7285
11
      "yb.rpc_test.LightweightSubMessagePB.str");
7286
11
    target =
7287
11
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7288
11
        3, this->str(), target);
7289
11
  }
7290
7291
  // repeated bytes rbytes = 4;
7292
132
  for (int i = 0, n = this->rbytes_size(); i < n; 
i++121
) {
7293
121
    target = ::google::protobuf::internal::WireFormatLite::
7294
121
      WriteBytesToArray(4, this->rbytes(i), target);
7295
121
  }
7296
7297
  // optional .yb.rpc_test.LightweightSubMessagePB cycle = 5;
7298
11
  if (cached_has_bits & 0x00000002u) {
7299
4
    target = ::google::protobuf::internal::WireFormatLite::
7300
4
      InternalWriteMessageToArray(
7301
4
        5, *this->cycle_, deterministic, target);
7302
4
  }
7303
7304
11
  if (_internal_metadata_.have_unknown_fields()) {
7305
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7306
0
        _internal_metadata_.unknown_fields(), target);
7307
0
  }
7308
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.LightweightSubMessagePB)
7309
11
  return target;
7310
11
}
7311
7312
22
size_t LightweightSubMessagePB::ByteSizeLong() const {
7313
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.LightweightSubMessagePB)
7314
22
  size_t total_size = 0;
7315
7316
22
  if (_internal_metadata_.have_unknown_fields()) {
7317
0
    total_size +=
7318
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7319
0
        _internal_metadata_.unknown_fields());
7320
0
  }
7321
  // repeated sint32 rsi32 = 2;
7322
22
  {
7323
22
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
7324
22
      SInt32Size(this->rsi32_);
7325
22
    total_size += 1 *
7326
22
                  ::google::protobuf::internal::FromIntSize(this->rsi32_size());
7327
22
    total_size += data_size;
7328
22
  }
7329
7330
  // repeated bytes rbytes = 4;
7331
22
  total_size += 1 *
7332
22
      ::google::protobuf::internal::FromIntSize(this->rbytes_size());
7333
264
  for (int i = 0, n = this->rbytes_size(); i < n; 
i++242
) {
7334
242
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
7335
242
      this->rbytes(i));
7336
242
  }
7337
7338
22
  if (_has_bits_[0 / 32] & 7u) {
7339
    // optional string str = 3;
7340
22
    if (has_str()) {
7341
22
      total_size += 1 +
7342
22
        ::google::protobuf::internal::WireFormatLite::StringSize(
7343
22
          this->str());
7344
22
    }
7345
7346
    // optional .yb.rpc_test.LightweightSubMessagePB cycle = 5;
7347
22
    if (has_cycle()) {
7348
8
      total_size += 1 +
7349
8
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7350
8
          *this->cycle_);
7351
8
    }
7352
7353
    // optional sfixed32 sf32 = 1;
7354
22
    if (has_sf32()) {
7355
22
      total_size += 1 + 4;
7356
22
    }
7357
7358
22
  }
7359
22
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7360
22
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7361
22
  _cached_size_ = cached_size;
7362
22
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7363
22
  return total_size;
7364
22
}
7365
7366
0
void LightweightSubMessagePB::MergeFrom(const ::google::protobuf::Message& from) {
7367
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.LightweightSubMessagePB)
7368
0
  GOOGLE_DCHECK_NE(&from, this);
7369
0
  const LightweightSubMessagePB* source =
7370
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightSubMessagePB>(
7371
0
          &from);
7372
0
  if (source == NULL) {
7373
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.LightweightSubMessagePB)
7374
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7375
0
  } else {
7376
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.LightweightSubMessagePB)
7377
0
    MergeFrom(*source);
7378
0
  }
7379
0
}
7380
7381
14
void LightweightSubMessagePB::MergeFrom(const LightweightSubMessagePB& from) {
7382
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.LightweightSubMessagePB)
7383
14
  GOOGLE_DCHECK_NE(&from, this);
7384
14
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7385
14
  ::google::protobuf::uint32 cached_has_bits = 0;
7386
14
  (void) cached_has_bits;
7387
7388
14
  rsi32_.MergeFrom(from.rsi32_);
7389
14
  rbytes_.MergeFrom(from.rbytes_);
7390
14
  cached_has_bits = from._has_bits_[0];
7391
14
  if (cached_has_bits & 7u) {
7392
14
    if (cached_has_bits & 0x00000001u) {
7393
14
      set_has_str();
7394
14
      str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
7395
14
    }
7396
14
    if (cached_has_bits & 0x00000002u) {
7397
4
      mutable_cycle()->::yb::rpc_test::LightweightSubMessagePB::MergeFrom(from.cycle());
7398
4
    }
7399
14
    if (cached_has_bits & 0x00000004u) {
7400
14
      sf32_ = from.sf32_;
7401
14
    }
7402
14
    _has_bits_[0] |= cached_has_bits;
7403
14
  }
7404
14
}
7405
7406
0
void LightweightSubMessagePB::CopyFrom(const ::google::protobuf::Message& from) {
7407
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.LightweightSubMessagePB)
7408
0
  if (&from == this) return;
7409
0
  Clear();
7410
0
  MergeFrom(from);
7411
0
}
7412
7413
0
void LightweightSubMessagePB::CopyFrom(const LightweightSubMessagePB& from) {
7414
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.LightweightSubMessagePB)
7415
0
  if (&from == this) return;
7416
0
  Clear();
7417
0
  MergeFrom(from);
7418
0
}
7419
7420
0
bool LightweightSubMessagePB::IsInitialized() const {
7421
0
  return true;
7422
0
}
7423
7424
4
void LightweightSubMessagePB::Swap(LightweightSubMessagePB* other) {
7425
4
  if (other == this) 
return0
;
7426
4
  InternalSwap(other);
7427
4
}
7428
4
void LightweightSubMessagePB::InternalSwap(LightweightSubMessagePB* other) {
7429
4
  using std::swap;
7430
4
  rsi32_.InternalSwap(&other->rsi32_);
7431
4
  rbytes_.InternalSwap(&other->rbytes_);
7432
4
  str_.Swap(&other->str_);
7433
4
  swap(cycle_, other->cycle_);
7434
4
  swap(sf32_, other->sf32_);
7435
4
  swap(_has_bits_[0], other->_has_bits_[0]);
7436
4
  _internal_metadata_.Swap(&other->_internal_metadata_);
7437
4
  swap(_cached_size_, other->_cached_size_);
7438
4
}
7439
7440
218
::google::protobuf::Metadata LightweightSubMessagePB::GetMetadata() const {
7441
218
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7442
218
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
7443
218
}
7444
7445
7446
// ===================================================================
7447
7448
123
void LightweightPairPB::InitAsDefaultInstance() {
7449
123
}
7450
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7451
const int LightweightPairPB::kS1FieldNumber;
7452
const int LightweightPairPB::kS2FieldNumber;
7453
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7454
7455
LightweightPairPB::LightweightPairPB()
7456
175
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7457
175
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7458
52
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightPairPB();
7459
52
  }
7460
175
  SharedCtor();
7461
  // @@protoc_insertion_point(constructor:yb.rpc_test.LightweightPairPB)
7462
175
}
7463
LightweightPairPB::LightweightPairPB(const LightweightPairPB& from)
7464
  : ::google::protobuf::Message(),
7465
      _internal_metadata_(NULL),
7466
      _has_bits_(from._has_bits_),
7467
0
      _cached_size_(0) {
7468
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7469
0
  s1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7470
0
  if (from.has_s1()) {
7471
0
    s1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s1_);
7472
0
  }
7473
0
  s2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7474
0
  if (from.has_s2()) {
7475
0
    s2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s2_);
7476
0
  }
7477
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.LightweightPairPB)
7478
0
}
7479
7480
175
void LightweightPairPB::SharedCtor() {
7481
175
  _cached_size_ = 0;
7482
175
  s1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7483
175
  s2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7484
175
}
7485
7486
52
LightweightPairPB::~LightweightPairPB() {
7487
  // @@protoc_insertion_point(destructor:yb.rpc_test.LightweightPairPB)
7488
52
  SharedDtor();
7489
52
}
7490
7491
52
void LightweightPairPB::SharedDtor() {
7492
52
  s1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7493
52
  s2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7494
52
}
7495
7496
0
void LightweightPairPB::SetCachedSize(int size) const {
7497
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7498
0
  _cached_size_ = size;
7499
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7500
0
}
7501
0
const ::google::protobuf::Descriptor* LightweightPairPB::descriptor() {
7502
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7503
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7504
0
}
7505
7506
0
const LightweightPairPB& LightweightPairPB::default_instance() {
7507
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightPairPB();
7508
0
  return *internal_default_instance();
7509
0
}
7510
7511
0
LightweightPairPB* LightweightPairPB::New(::google::protobuf::Arena* arena) const {
7512
0
  LightweightPairPB* n = new LightweightPairPB;
7513
0
  if (arena != NULL) {
7514
0
    arena->Own(n);
7515
0
  }
7516
0
  return n;
7517
0
}
7518
7519
13
void LightweightPairPB::Clear() {
7520
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.LightweightPairPB)
7521
13
  ::google::protobuf::uint32 cached_has_bits = 0;
7522
  // Prevent compiler warnings about cached_has_bits being unused
7523
13
  (void) cached_has_bits;
7524
7525
13
  cached_has_bits = _has_bits_[0];
7526
13
  if (cached_has_bits & 3u) {
7527
13
    if (cached_has_bits & 0x00000001u) {
7528
13
      GOOGLE_DCHECK(!s1_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7529
13
      (*s1_.UnsafeRawStringPointer())->clear();
7530
13
    }
7531
13
    if (cached_has_bits & 0x00000002u) {
7532
13
      GOOGLE_DCHECK(!s2_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7533
13
      (*s2_.UnsafeRawStringPointer())->clear();
7534
13
    }
7535
13
  }
7536
13
  _has_bits_.Clear();
7537
13
  _internal_metadata_.Clear();
7538
13
}
7539
7540
bool LightweightPairPB::MergePartialFromCodedStream(
7541
13
    ::google::protobuf::io::CodedInputStream* input) {
7542
26
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
7543
13
  ::google::protobuf::uint32 tag;
7544
  // @@protoc_insertion_point(parse_start:yb.rpc_test.LightweightPairPB)
7545
39
  for (;;) {
7546
39
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7547
39
    tag = p.first;
7548
39
    if (!p.second) 
goto handle_unusual13
;
7549
26
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7550
      // optional string s1 = 1;
7551
13
      case 1: {
7552
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7553
13
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7554
13
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7555
13
                input, this->mutable_s1()));
7556
13
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7557
13
            this->s1().data(), static_cast<int>(this->s1().length()),
7558
13
            ::google::protobuf::internal::WireFormat::PARSE,
7559
13
            "yb.rpc_test.LightweightPairPB.s1");
7560
13
        } else {
7561
0
          goto handle_unusual;
7562
0
        }
7563
13
        break;
7564
13
      }
7565
7566
      // optional string s2 = 2;
7567
13
      case 2: {
7568
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7569
13
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7570
13
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7571
13
                input, this->mutable_s2()));
7572
13
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7573
13
            this->s2().data(), static_cast<int>(this->s2().length()),
7574
13
            ::google::protobuf::internal::WireFormat::PARSE,
7575
13
            "yb.rpc_test.LightweightPairPB.s2");
7576
13
        } else {
7577
0
          goto handle_unusual;
7578
0
        }
7579
13
        break;
7580
13
      }
7581
7582
13
      default: {
7583
13
      handle_unusual:
7584
13
        if (tag == 0) {
7585
13
          goto success;
7586
13
        }
7587
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7588
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7589
0
        break;
7590
0
      }
7591
26
    }
7592
26
  }
7593
13
success:
7594
  // @@protoc_insertion_point(parse_success:yb.rpc_test.LightweightPairPB)
7595
13
  return true;
7596
0
failure:
7597
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.LightweightPairPB)
7598
0
  return false;
7599
13
#undef DO_
7600
13
}
7601
7602
void LightweightPairPB::SerializeWithCachedSizes(
7603
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7604
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.LightweightPairPB)
7605
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7606
0
  (void) cached_has_bits;
7607
7608
0
  cached_has_bits = _has_bits_[0];
7609
  // optional string s1 = 1;
7610
0
  if (cached_has_bits & 0x00000001u) {
7611
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7612
0
      this->s1().data(), static_cast<int>(this->s1().length()),
7613
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7614
0
      "yb.rpc_test.LightweightPairPB.s1");
7615
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7616
0
      1, this->s1(), output);
7617
0
  }
7618
7619
  // optional string s2 = 2;
7620
0
  if (cached_has_bits & 0x00000002u) {
7621
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7622
0
      this->s2().data(), static_cast<int>(this->s2().length()),
7623
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7624
0
      "yb.rpc_test.LightweightPairPB.s2");
7625
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7626
0
      2, this->s2(), output);
7627
0
  }
7628
7629
0
  if (_internal_metadata_.have_unknown_fields()) {
7630
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7631
0
        _internal_metadata_.unknown_fields(), output);
7632
0
  }
7633
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.LightweightPairPB)
7634
0
}
7635
7636
::google::protobuf::uint8* LightweightPairPB::InternalSerializeWithCachedSizesToArray(
7637
13
    bool deterministic, ::google::protobuf::uint8* target) const {
7638
13
  (void)deterministic; // Unused
7639
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.LightweightPairPB)
7640
13
  ::google::protobuf::uint32 cached_has_bits = 0;
7641
13
  (void) cached_has_bits;
7642
7643
13
  cached_has_bits = _has_bits_[0];
7644
  // optional string s1 = 1;
7645
13
  if (cached_has_bits & 0x00000001u) {
7646
13
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7647
13
      this->s1().data(), static_cast<int>(this->s1().length()),
7648
13
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7649
13
      "yb.rpc_test.LightweightPairPB.s1");
7650
13
    target =
7651
13
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7652
13
        1, this->s1(), target);
7653
13
  }
7654
7655
  // optional string s2 = 2;
7656
13
  if (cached_has_bits & 0x00000002u) {
7657
13
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7658
13
      this->s2().data(), static_cast<int>(this->s2().length()),
7659
13
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7660
13
      "yb.rpc_test.LightweightPairPB.s2");
7661
13
    target =
7662
13
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7663
13
        2, this->s2(), target);
7664
13
  }
7665
7666
13
  if (_internal_metadata_.have_unknown_fields()) {
7667
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7668
0
        _internal_metadata_.unknown_fields(), target);
7669
0
  }
7670
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.LightweightPairPB)
7671
13
  return target;
7672
13
}
7673
7674
26
size_t LightweightPairPB::ByteSizeLong() const {
7675
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.LightweightPairPB)
7676
26
  size_t total_size = 0;
7677
7678
26
  if (_internal_metadata_.have_unknown_fields()) {
7679
0
    total_size +=
7680
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7681
0
        _internal_metadata_.unknown_fields());
7682
0
  }
7683
26
  if (_has_bits_[0 / 32] & 3u) {
7684
    // optional string s1 = 1;
7685
26
    if (has_s1()) {
7686
26
      total_size += 1 +
7687
26
        ::google::protobuf::internal::WireFormatLite::StringSize(
7688
26
          this->s1());
7689
26
    }
7690
7691
    // optional string s2 = 2;
7692
26
    if (has_s2()) {
7693
26
      total_size += 1 +
7694
26
        ::google::protobuf::internal::WireFormatLite::StringSize(
7695
26
          this->s2());
7696
26
    }
7697
7698
26
  }
7699
26
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7700
26
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7701
26
  _cached_size_ = cached_size;
7702
26
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7703
26
  return total_size;
7704
26
}
7705
7706
0
void LightweightPairPB::MergeFrom(const ::google::protobuf::Message& from) {
7707
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.LightweightPairPB)
7708
0
  GOOGLE_DCHECK_NE(&from, this);
7709
0
  const LightweightPairPB* source =
7710
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightPairPB>(
7711
0
          &from);
7712
0
  if (source == NULL) {
7713
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.LightweightPairPB)
7714
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7715
0
  } else {
7716
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.LightweightPairPB)
7717
0
    MergeFrom(*source);
7718
0
  }
7719
0
}
7720
7721
0
void LightweightPairPB::MergeFrom(const LightweightPairPB& from) {
7722
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.LightweightPairPB)
7723
0
  GOOGLE_DCHECK_NE(&from, this);
7724
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7725
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7726
0
  (void) cached_has_bits;
7727
7728
0
  cached_has_bits = from._has_bits_[0];
7729
0
  if (cached_has_bits & 3u) {
7730
0
    if (cached_has_bits & 0x00000001u) {
7731
0
      set_has_s1();
7732
0
      s1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s1_);
7733
0
    }
7734
0
    if (cached_has_bits & 0x00000002u) {
7735
0
      set_has_s2();
7736
0
      s2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s2_);
7737
0
    }
7738
0
  }
7739
0
}
7740
7741
0
void LightweightPairPB::CopyFrom(const ::google::protobuf::Message& from) {
7742
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.LightweightPairPB)
7743
0
  if (&from == this) return;
7744
0
  Clear();
7745
0
  MergeFrom(from);
7746
0
}
7747
7748
0
void LightweightPairPB::CopyFrom(const LightweightPairPB& from) {
7749
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.LightweightPairPB)
7750
0
  if (&from == this) return;
7751
0
  Clear();
7752
0
  MergeFrom(from);
7753
0
}
7754
7755
0
bool LightweightPairPB::IsInitialized() const {
7756
0
  return true;
7757
0
}
7758
7759
0
void LightweightPairPB::Swap(LightweightPairPB* other) {
7760
0
  if (other == this) return;
7761
0
  InternalSwap(other);
7762
0
}
7763
0
void LightweightPairPB::InternalSwap(LightweightPairPB* other) {
7764
0
  using std::swap;
7765
0
  s1_.Swap(&other->s1_);
7766
0
  s2_.Swap(&other->s2_);
7767
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7768
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7769
0
  swap(_cached_size_, other->_cached_size_);
7770
0
}
7771
7772
78
::google::protobuf::Metadata LightweightPairPB::GetMetadata() const {
7773
78
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7774
78
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
7775
78
}
7776
7777
7778
// ===================================================================
7779
7780
123
LightweightRequestPB_MapEntry_DoNotUse::LightweightRequestPB_MapEntry_DoNotUse() {}
7781
33
LightweightRequestPB_MapEntry_DoNotUse::LightweightRequestPB_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
7782
0
void LightweightRequestPB_MapEntry_DoNotUse::MergeFrom(const LightweightRequestPB_MapEntry_DoNotUse& other) {
7783
0
  MergeFromInternal(other);
7784
0
}
7785
0
::google::protobuf::Metadata LightweightRequestPB_MapEntry_DoNotUse::GetMetadata() const {
7786
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7787
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[24];
7788
0
}
7789
void LightweightRequestPB_MapEntry_DoNotUse::MergeFrom(
7790
0
    const ::google::protobuf::Message& other) {
7791
0
  ::google::protobuf::Message::MergeFrom(other);
7792
0
}
7793
7794
7795
// ===================================================================
7796
7797
123
void LightweightRequestPB::InitAsDefaultInstance() {
7798
123
  ::yb::rpc_test::_LightweightRequestPB_default_instance_._instance.get_mutable()->message_ = const_cast< ::yb::rpc_test::LightweightSubMessagePB*>(
7799
123
      ::yb::rpc_test::LightweightSubMessagePB::internal_default_instance());
7800
123
  ::yb::rpc_test::_LightweightRequestPB_default_instance_._instance.get_mutable()->ptr_message_ = const_cast< ::yb::rpc_test::LightweightSubMessagePB*>(
7801
123
      ::yb::rpc_test::LightweightSubMessagePB::internal_default_instance());
7802
123
  ::yb::rpc_test::_LightweightRequestPB_default_instance_._instance.get_mutable()->extra_data_ = const_cast< ::google::protobuf::Any*>(
7803
123
      ::google::protobuf::Any::internal_default_instance());
7804
123
}
7805
0
void LightweightRequestPB::clear_extra_data() {
7806
0
  if (extra_data_ != NULL) extra_data_->Clear();
7807
0
  clear_has_extra_data();
7808
0
}
7809
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7810
const int LightweightRequestPB::kI32FieldNumber;
7811
const int LightweightRequestPB::kI64FieldNumber;
7812
const int LightweightRequestPB::kF32FieldNumber;
7813
const int LightweightRequestPB::kF64FieldNumber;
7814
const int LightweightRequestPB::kU32FieldNumber;
7815
const int LightweightRequestPB::kU64FieldNumber;
7816
const int LightweightRequestPB::kR32FieldNumber;
7817
const int LightweightRequestPB::kR64FieldNumber;
7818
const int LightweightRequestPB::kStrFieldNumber;
7819
const int LightweightRequestPB::kBytesFieldNumber;
7820
const int LightweightRequestPB::kEnFieldNumber;
7821
const int LightweightRequestPB::kSf32FieldNumber;
7822
const int LightweightRequestPB::kSf64FieldNumber;
7823
const int LightweightRequestPB::kSi32FieldNumber;
7824
const int LightweightRequestPB::kSi64FieldNumber;
7825
const int LightweightRequestPB::kRu32FieldNumber;
7826
const int LightweightRequestPB::kRf32FieldNumber;
7827
const int LightweightRequestPB::kRstrFieldNumber;
7828
const int LightweightRequestPB::kMessageFieldNumber;
7829
const int LightweightRequestPB::kRepeatedMessagesFieldNumber;
7830
const int LightweightRequestPB::kPackedU64FieldNumber;
7831
const int LightweightRequestPB::kPackedF32FieldNumber;
7832
const int LightweightRequestPB::kPairsFieldNumber;
7833
const int LightweightRequestPB::kPtrMessageFieldNumber;
7834
const int LightweightRequestPB::kMapFieldNumber;
7835
const int LightweightRequestPB::kExtraDataFieldNumber;
7836
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7837
7838
LightweightRequestPB::LightweightRequestPB()
7839
124
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7840
124
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7841
1
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightRequestPB();
7842
1
  }
7843
124
  SharedCtor();
7844
  // @@protoc_insertion_point(constructor:yb.rpc_test.LightweightRequestPB)
7845
124
}
7846
LightweightRequestPB::LightweightRequestPB(const LightweightRequestPB& from)
7847
  : ::google::protobuf::Message(),
7848
      _internal_metadata_(NULL),
7849
      _has_bits_(from._has_bits_),
7850
      _cached_size_(0),
7851
      ru32_(from.ru32_),
7852
      rf32_(from.rf32_),
7853
      rstr_(from.rstr_),
7854
      repeated_messages_(from.repeated_messages_),
7855
      packed_u64_(from.packed_u64_),
7856
      packed_f32_(from.packed_f32_),
7857
0
      pairs_(from.pairs_) {
7858
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7859
0
  map_.MergeFrom(from.map_);
7860
0
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7861
0
  if (from.has_str()) {
7862
0
    str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
7863
0
  }
7864
0
  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7865
0
  if (from.has_bytes()) {
7866
0
    bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bytes_);
7867
0
  }
7868
0
  if (from.has_message()) {
7869
0
    message_ = new ::yb::rpc_test::LightweightSubMessagePB(*from.message_);
7870
0
  } else {
7871
0
    message_ = NULL;
7872
0
  }
7873
0
  if (from.has_ptr_message()) {
7874
0
    ptr_message_ = new ::yb::rpc_test::LightweightSubMessagePB(*from.ptr_message_);
7875
0
  } else {
7876
0
    ptr_message_ = NULL;
7877
0
  }
7878
0
  if (from.has_extra_data()) {
7879
0
    extra_data_ = new ::google::protobuf::Any(*from.extra_data_);
7880
0
  } else {
7881
0
    extra_data_ = NULL;
7882
0
  }
7883
0
  ::memcpy(&i64_, &from.i64_,
7884
0
    static_cast<size_t>(reinterpret_cast<char*>(&si32_) -
7885
0
    reinterpret_cast<char*>(&i64_)) + sizeof(si32_));
7886
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.LightweightRequestPB)
7887
0
}
7888
7889
124
void LightweightRequestPB::SharedCtor() {
7890
124
  _cached_size_ = 0;
7891
124
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7892
124
  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7893
124
  ::memset(&message_, 0, static_cast<size_t>(
7894
124
      reinterpret_cast<char*>(&si32_) -
7895
124
      reinterpret_cast<char*>(&message_)) + sizeof(si32_));
7896
124
}
7897
7898
1
LightweightRequestPB::~LightweightRequestPB() {
7899
  // @@protoc_insertion_point(destructor:yb.rpc_test.LightweightRequestPB)
7900
1
  SharedDtor();
7901
1
}
7902
7903
1
void LightweightRequestPB::SharedDtor() {
7904
1
  str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7905
1
  bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7906
1
  if (this != internal_default_instance()) delete message_;
7907
1
  if (this != internal_default_instance()) delete ptr_message_;
7908
1
  if (this != internal_default_instance()) delete extra_data_;
7909
1
}
7910
7911
0
void LightweightRequestPB::SetCachedSize(int size) const {
7912
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7913
0
  _cached_size_ = size;
7914
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7915
0
}
7916
0
const ::google::protobuf::Descriptor* LightweightRequestPB::descriptor() {
7917
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
7918
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7919
0
}
7920
7921
0
const LightweightRequestPB& LightweightRequestPB::default_instance() {
7922
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightRequestPB();
7923
0
  return *internal_default_instance();
7924
0
}
7925
7926
0
LightweightRequestPB* LightweightRequestPB::New(::google::protobuf::Arena* arena) const {
7927
0
  LightweightRequestPB* n = new LightweightRequestPB;
7928
0
  if (arena != NULL) {
7929
0
    arena->Own(n);
7930
0
  }
7931
0
  return n;
7932
0
}
7933
7934
1
void LightweightRequestPB::Clear() {
7935
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.LightweightRequestPB)
7936
1
  ::google::protobuf::uint32 cached_has_bits = 0;
7937
  // Prevent compiler warnings about cached_has_bits being unused
7938
1
  (void) cached_has_bits;
7939
7940
1
  ru32_.Clear();
7941
1
  rf32_.Clear();
7942
1
  rstr_.Clear();
7943
1
  repeated_messages_.Clear();
7944
1
  packed_u64_.Clear();
7945
1
  packed_f32_.Clear();
7946
1
  pairs_.Clear();
7947
1
  map_.Clear();
7948
1
  cached_has_bits = _has_bits_[0];
7949
1
  if (cached_has_bits & 31u) {
7950
1
    if (cached_has_bits & 0x00000001u) {
7951
1
      GOOGLE_DCHECK(!str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7952
1
      (*str_.UnsafeRawStringPointer())->clear();
7953
1
    }
7954
1
    if (cached_has_bits & 0x00000002u) {
7955
1
      GOOGLE_DCHECK(!bytes_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7956
1
      (*bytes_.UnsafeRawStringPointer())->clear();
7957
1
    }
7958
1
    if (cached_has_bits & 0x00000004u) {
7959
1
      GOOGLE_DCHECK(message_ != NULL);
7960
1
      message_->Clear();
7961
1
    }
7962
1
    if (cached_has_bits & 0x00000008u) {
7963
1
      GOOGLE_DCHECK(ptr_message_ != NULL);
7964
1
      ptr_message_->Clear();
7965
1
    }
7966
1
    if (cached_has_bits & 0x00000010u) {
7967
0
      GOOGLE_DCHECK(extra_data_ != NULL);
7968
0
      extra_data_->Clear();
7969
0
    }
7970
1
  }
7971
1
  if (cached_has_bits & 224u) {
7972
1
    ::memset(&i64_, 0, static_cast<size_t>(
7973
1
        reinterpret_cast<char*>(&f32_) -
7974
1
        reinterpret_cast<char*>(&i64_)) + sizeof(f32_));
7975
1
  }
7976
1
  if (cached_has_bits & 65280u) {
7977
1
    ::memset(&f64_, 0, static_cast<size_t>(
7978
1
        reinterpret_cast<char*>(&sf64_) -
7979
1
        reinterpret_cast<char*>(&f64_)) + sizeof(sf64_));
7980
1
  }
7981
1
  if (cached_has_bits & 196608u) {
7982
1
    ::memset(&si64_, 0, static_cast<size_t>(
7983
1
        reinterpret_cast<char*>(&si32_) -
7984
1
        reinterpret_cast<char*>(&si64_)) + sizeof(si32_));
7985
1
  }
7986
1
  _has_bits_.Clear();
7987
1
  _internal_metadata_.Clear();
7988
1
}
7989
7990
bool LightweightRequestPB::MergePartialFromCodedStream(
7991
0
    ::google::protobuf::io::CodedInputStream* input) {
7992
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7993
0
  ::google::protobuf::uint32 tag;
7994
  // @@protoc_insertion_point(parse_start:yb.rpc_test.LightweightRequestPB)
7995
0
  for (;;) {
7996
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
7997
0
    tag = p.first;
7998
0
    if (!p.second) goto handle_unusual;
7999
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8000
      // optional int32 i32 = 1;
8001
0
      case 1: {
8002
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8003
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8004
0
          set_has_i32();
8005
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8006
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8007
0
                 input, &i32_)));
8008
0
        } else {
8009
0
          goto handle_unusual;
8010
0
        }
8011
0
        break;
8012
0
      }
8013
8014
      // optional int64 i64 = 2;
8015
0
      case 2: {
8016
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8017
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8018
0
          set_has_i64();
8019
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8020
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8021
0
                 input, &i64_)));
8022
0
        } else {
8023
0
          goto handle_unusual;
8024
0
        }
8025
0
        break;
8026
0
      }
8027
8028
      // optional fixed32 f32 = 3;
8029
0
      case 3: {
8030
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8031
0
            static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
8032
0
          set_has_f32();
8033
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8034
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
8035
0
                 input, &f32_)));
8036
0
        } else {
8037
0
          goto handle_unusual;
8038
0
        }
8039
0
        break;
8040
0
      }
8041
8042
      // optional fixed64 f64 = 4;
8043
0
      case 4: {
8044
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8045
0
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
8046
0
          set_has_f64();
8047
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8048
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8049
0
                 input, &f64_)));
8050
0
        } else {
8051
0
          goto handle_unusual;
8052
0
        }
8053
0
        break;
8054
0
      }
8055
8056
      // optional uint32 u32 = 5;
8057
0
      case 5: {
8058
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8059
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
8060
0
          set_has_u32();
8061
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8062
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8063
0
                 input, &u32_)));
8064
0
        } else {
8065
0
          goto handle_unusual;
8066
0
        }
8067
0
        break;
8068
0
      }
8069
8070
      // optional uint64 u64 = 6;
8071
0
      case 6: {
8072
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8073
0
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8074
0
          set_has_u64();
8075
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8076
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8077
0
                 input, &u64_)));
8078
0
        } else {
8079
0
          goto handle_unusual;
8080
0
        }
8081
0
        break;
8082
0
      }
8083
8084
      // optional float r32 = 7;
8085
0
      case 7: {
8086
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8087
0
            static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
8088
0
          set_has_r32();
8089
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8090
0
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8091
0
                 input, &r32_)));
8092
0
        } else {
8093
0
          goto handle_unusual;
8094
0
        }
8095
0
        break;
8096
0
      }
8097
8098
      // optional double r64 = 8;
8099
0
      case 8: {
8100
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8101
0
            static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
8102
0
          set_has_r64();
8103
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8104
0
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
8105
0
                 input, &r64_)));
8106
0
        } else {
8107
0
          goto handle_unusual;
8108
0
        }
8109
0
        break;
8110
0
      }
8111
8112
      // optional string str = 9;
8113
0
      case 9: {
8114
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8115
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
8116
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8117
0
                input, this->mutable_str()));
8118
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8119
0
            this->str().data(), static_cast<int>(this->str().length()),
8120
0
            ::google::protobuf::internal::WireFormat::PARSE,
8121
0
            "yb.rpc_test.LightweightRequestPB.str");
8122
0
        } else {
8123
0
          goto handle_unusual;
8124
0
        }
8125
0
        break;
8126
0
      }
8127
8128
      // optional bytes bytes = 10;
8129
0
      case 10: {
8130
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8131
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
8132
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8133
0
                input, this->mutable_bytes()));
8134
0
        } else {
8135
0
          goto handle_unusual;
8136
0
        }
8137
0
        break;
8138
0
      }
8139
8140
      // optional .yb.rpc_test.LightweightEnum en = 11;
8141
0
      case 11: {
8142
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8143
0
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
8144
0
          int value;
8145
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8146
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8147
0
                 input, &value)));
8148
0
          if (::yb::rpc_test::LightweightEnum_IsValid(value)) {
8149
0
            set_en(static_cast< ::yb::rpc_test::LightweightEnum >(value));
8150
0
          } else {
8151
0
            mutable_unknown_fields()->AddVarint(
8152
0
                11, static_cast< ::google::protobuf::uint64>(value));
8153
0
          }
8154
0
        } else {
8155
0
          goto handle_unusual;
8156
0
        }
8157
0
        break;
8158
0
      }
8159
8160
      // optional sfixed32 sf32 = 12;
8161
0
      case 12: {
8162
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8163
0
            static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
8164
0
          set_has_sf32();
8165
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8166
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32>(
8167
0
                 input, &sf32_)));
8168
0
        } else {
8169
0
          goto handle_unusual;
8170
0
        }
8171
0
        break;
8172
0
      }
8173
8174
      // optional sfixed64 sf64 = 13;
8175
0
      case 13: {
8176
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8177
0
            static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) {
8178
0
          set_has_sf64();
8179
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8180
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
8181
0
                 input, &sf64_)));
8182
0
        } else {
8183
0
          goto handle_unusual;
8184
0
        }
8185
0
        break;
8186
0
      }
8187
8188
      // optional sint32 si32 = 14;
8189
0
      case 14: {
8190
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8191
0
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
8192
0
          set_has_si32();
8193
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8194
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
8195
0
                 input, &si32_)));
8196
0
        } else {
8197
0
          goto handle_unusual;
8198
0
        }
8199
0
        break;
8200
0
      }
8201
8202
      // optional sint64 si64 = 15;
8203
0
      case 15: {
8204
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8205
0
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
8206
0
          set_has_si64();
8207
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8208
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
8209
0
                 input, &si64_)));
8210
0
        } else {
8211
0
          goto handle_unusual;
8212
0
        }
8213
0
        break;
8214
0
      }
8215
8216
      // repeated uint32 ru32 = 16;
8217
0
      case 16: {
8218
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8219
0
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
8220
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8221
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8222
0
                 2, 128u, input, this->mutable_ru32())));
8223
0
        } else if (
8224
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8225
0
            static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
8226
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8227
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8228
0
                 input, this->mutable_ru32())));
8229
0
        } else {
8230
0
          goto handle_unusual;
8231
0
        }
8232
0
        break;
8233
0
      }
8234
8235
      // repeated fixed32 rf32 = 17;
8236
0
      case 17: {
8237
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8238
0
            static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
8239
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8240
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
8241
0
                 2, 141u, input, this->mutable_rf32())));
8242
0
        } else if (
8243
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8244
0
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
8245
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8246
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
8247
0
                 input, this->mutable_rf32())));
8248
0
        } else {
8249
0
          goto handle_unusual;
8250
0
        }
8251
0
        break;
8252
0
      }
8253
8254
      // repeated string rstr = 18;
8255
0
      case 18: {
8256
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8257
0
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
8258
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8259
0
                input, this->add_rstr()));
8260
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8261
0
            this->rstr(this->rstr_size() - 1).data(),
8262
0
            static_cast<int>(this->rstr(this->rstr_size() - 1).length()),
8263
0
            ::google::protobuf::internal::WireFormat::PARSE,
8264
0
            "yb.rpc_test.LightweightRequestPB.rstr");
8265
0
        } else {
8266
0
          goto handle_unusual;
8267
0
        }
8268
0
        break;
8269
0
      }
8270
8271
      // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
8272
0
      case 19: {
8273
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8274
0
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
8275
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8276
0
               input, mutable_message()));
8277
0
        } else {
8278
0
          goto handle_unusual;
8279
0
        }
8280
0
        break;
8281
0
      }
8282
8283
      // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
8284
0
      case 20: {
8285
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8286
0
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
8287
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_repeated_messages()));
8288
0
        } else {
8289
0
          goto handle_unusual;
8290
0
        }
8291
0
        break;
8292
0
      }
8293
8294
      // repeated uint64 packed_u64 = 21 [packed = true];
8295
0
      case 21: {
8296
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8297
0
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
8298
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
8299
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8300
0
                 input, this->mutable_packed_u64())));
8301
0
        } else if (
8302
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8303
0
            static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
8304
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
8305
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8306
0
                 2, 170u, input, this->mutable_packed_u64())));
8307
0
        } else {
8308
0
          goto handle_unusual;
8309
0
        }
8310
0
        break;
8311
0
      }
8312
8313
      // repeated fixed32 packed_f32 = 22 [packed = true];
8314
0
      case 22: {
8315
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8316
0
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
8317
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
8318
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
8319
0
                 input, this->mutable_packed_f32())));
8320
0
        } else if (
8321
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8322
0
            static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
8323
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
8324
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
8325
0
                 2, 178u, input, this->mutable_packed_f32())));
8326
0
        } else {
8327
0
          goto handle_unusual;
8328
0
        }
8329
0
        break;
8330
0
      }
8331
8332
      // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
8333
0
      case 23: {
8334
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8335
0
            static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
8336
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pairs()));
8337
0
        } else {
8338
0
          goto handle_unusual;
8339
0
        }
8340
0
        break;
8341
0
      }
8342
8343
      // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
8344
0
      case 24: {
8345
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8346
0
            static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
8347
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8348
0
               input, mutable_ptr_message()));
8349
0
        } else {
8350
0
          goto handle_unusual;
8351
0
        }
8352
0
        break;
8353
0
      }
8354
8355
      // map<string, int64> map = 25;
8356
0
      case 25: {
8357
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8358
0
            static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
8359
0
          LightweightRequestPB_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
8360
0
              LightweightRequestPB_MapEntry_DoNotUse,
8361
0
              ::std::string, ::google::protobuf::int64,
8362
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
8363
0
              ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
8364
0
              0 >,
8365
0
            ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 > > parser(&map_);
8366
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8367
0
              input, &parser));
8368
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8369
0
            parser.key().data(), static_cast<int>(parser.key().length()),
8370
0
            ::google::protobuf::internal::WireFormat::PARSE,
8371
0
            "yb.rpc_test.LightweightRequestPB.MapEntry.key");
8372
0
        } else {
8373
0
          goto handle_unusual;
8374
0
        }
8375
0
        break;
8376
0
      }
8377
8378
      // optional .google.protobuf.Any extra_data = 26;
8379
0
      case 26: {
8380
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8381
0
            static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
8382
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8383
0
               input, mutable_extra_data()));
8384
0
        } else {
8385
0
          goto handle_unusual;
8386
0
        }
8387
0
        break;
8388
0
      }
8389
8390
0
      default: {
8391
0
      handle_unusual:
8392
0
        if (tag == 0) {
8393
0
          goto success;
8394
0
        }
8395
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8396
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8397
0
        break;
8398
0
      }
8399
0
    }
8400
0
  }
8401
0
success:
8402
  // @@protoc_insertion_point(parse_success:yb.rpc_test.LightweightRequestPB)
8403
0
  return true;
8404
0
failure:
8405
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.LightweightRequestPB)
8406
0
  return false;
8407
0
#undef DO_
8408
0
}
8409
8410
void LightweightRequestPB::SerializeWithCachedSizes(
8411
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8412
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.LightweightRequestPB)
8413
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8414
0
  (void) cached_has_bits;
8415
8416
0
  cached_has_bits = _has_bits_[0];
8417
  // optional int32 i32 = 1;
8418
0
  if (cached_has_bits & 0x00000040u) {
8419
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->i32(), output);
8420
0
  }
8421
8422
  // optional int64 i64 = 2;
8423
0
  if (cached_has_bits & 0x00000020u) {
8424
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->i64(), output);
8425
0
  }
8426
8427
  // optional fixed32 f32 = 3;
8428
0
  if (cached_has_bits & 0x00000080u) {
8429
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->f32(), output);
8430
0
  }
8431
8432
  // optional fixed64 f64 = 4;
8433
0
  if (cached_has_bits & 0x00000100u) {
8434
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->f64(), output);
8435
0
  }
8436
8437
  // optional uint32 u32 = 5;
8438
0
  if (cached_has_bits & 0x00000400u) {
8439
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->u32(), output);
8440
0
  }
8441
8442
  // optional uint64 u64 = 6;
8443
0
  if (cached_has_bits & 0x00000200u) {
8444
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->u64(), output);
8445
0
  }
8446
8447
  // optional float r32 = 7;
8448
0
  if (cached_has_bits & 0x00000800u) {
8449
0
    ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->r32(), output);
8450
0
  }
8451
8452
  // optional double r64 = 8;
8453
0
  if (cached_has_bits & 0x00001000u) {
8454
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->r64(), output);
8455
0
  }
8456
8457
  // optional string str = 9;
8458
0
  if (cached_has_bits & 0x00000001u) {
8459
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8460
0
      this->str().data(), static_cast<int>(this->str().length()),
8461
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8462
0
      "yb.rpc_test.LightweightRequestPB.str");
8463
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8464
0
      9, this->str(), output);
8465
0
  }
8466
8467
  // optional bytes bytes = 10;
8468
0
  if (cached_has_bits & 0x00000002u) {
8469
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8470
0
      10, this->bytes(), output);
8471
0
  }
8472
8473
  // optional .yb.rpc_test.LightweightEnum en = 11;
8474
0
  if (cached_has_bits & 0x00002000u) {
8475
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8476
0
      11, this->en(), output);
8477
0
  }
8478
8479
  // optional sfixed32 sf32 = 12;
8480
0
  if (cached_has_bits & 0x00004000u) {
8481
0
    ::google::protobuf::internal::WireFormatLite::WriteSFixed32(12, this->sf32(), output);
8482
0
  }
8483
8484
  // optional sfixed64 sf64 = 13;
8485
0
  if (cached_has_bits & 0x00008000u) {
8486
0
    ::google::protobuf::internal::WireFormatLite::WriteSFixed64(13, this->sf64(), output);
8487
0
  }
8488
8489
  // optional sint32 si32 = 14;
8490
0
  if (cached_has_bits & 0x00020000u) {
8491
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt32(14, this->si32(), output);
8492
0
  }
8493
8494
  // optional sint64 si64 = 15;
8495
0
  if (cached_has_bits & 0x00010000u) {
8496
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt64(15, this->si64(), output);
8497
0
  }
8498
8499
  // repeated uint32 ru32 = 16;
8500
0
  for (int i = 0, n = this->ru32_size(); i < n; i++) {
8501
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
8502
0
      16, this->ru32(i), output);
8503
0
  }
8504
8505
  // repeated fixed32 rf32 = 17;
8506
0
  for (int i = 0, n = this->rf32_size(); i < n; i++) {
8507
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(
8508
0
      17, this->rf32(i), output);
8509
0
  }
8510
8511
  // repeated string rstr = 18;
8512
0
  for (int i = 0, n = this->rstr_size(); i < n; i++) {
8513
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8514
0
      this->rstr(i).data(), static_cast<int>(this->rstr(i).length()),
8515
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8516
0
      "yb.rpc_test.LightweightRequestPB.rstr");
8517
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
8518
0
      18, this->rstr(i), output);
8519
0
  }
8520
8521
  // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
8522
0
  if (cached_has_bits & 0x00000004u) {
8523
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8524
0
      19, *this->message_, output);
8525
0
  }
8526
8527
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
8528
0
  for (unsigned int i = 0,
8529
0
      n = static_cast<unsigned int>(this->repeated_messages_size()); i < n; i++) {
8530
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8531
0
      20, this->repeated_messages(static_cast<int>(i)), output);
8532
0
  }
8533
8534
  // repeated uint64 packed_u64 = 21 [packed = true];
8535
0
  if (this->packed_u64_size() > 0) {
8536
0
    ::google::protobuf::internal::WireFormatLite::WriteTag(21, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
8537
0
    output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
8538
0
        _packed_u64_cached_byte_size_));
8539
0
  }
8540
0
  for (int i = 0, n = this->packed_u64_size(); i < n; i++) {
8541
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
8542
0
      this->packed_u64(i), output);
8543
0
  }
8544
8545
  // repeated fixed32 packed_f32 = 22 [packed = true];
8546
0
  if (this->packed_f32_size() > 0) {
8547
0
    ::google::protobuf::internal::WireFormatLite::WriteTag(22, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
8548
0
    output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
8549
0
        _packed_f32_cached_byte_size_));
8550
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32Array(
8551
0
      this->packed_f32().data(), this->packed_f32_size(), output);
8552
0
  }
8553
8554
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
8555
0
  for (unsigned int i = 0,
8556
0
      n = static_cast<unsigned int>(this->pairs_size()); i < n; i++) {
8557
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8558
0
      23, this->pairs(static_cast<int>(i)), output);
8559
0
  }
8560
8561
  // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
8562
0
  if (cached_has_bits & 0x00000008u) {
8563
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8564
0
      24, *this->ptr_message_, output);
8565
0
  }
8566
8567
  // map<string, int64> map = 25;
8568
0
  if (!this->map().empty()) {
8569
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_pointer
8570
0
        ConstPtr;
8571
0
    typedef ConstPtr SortItem;
8572
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
8573
0
    struct Utf8Check {
8574
0
      static void Check(ConstPtr p) {
8575
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8576
0
          p->first.data(), static_cast<int>(p->first.length()),
8577
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
8578
0
          "yb.rpc_test.LightweightRequestPB.MapEntry.key");
8579
0
      }
8580
0
    };
8581
8582
0
    if (output->IsSerializationDeterministic() &&
8583
0
        this->map().size() > 1) {
8584
0
      ::google::protobuf::scoped_array<SortItem> items(
8585
0
          new SortItem[this->map().size()]);
8586
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::size_type size_type;
8587
0
      size_type n = 0;
8588
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
8589
0
          it = this->map().begin();
8590
0
          it != this->map().end(); ++it, ++n) {
8591
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
8592
0
      }
8593
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
8594
0
      ::google::protobuf::scoped_ptr<LightweightRequestPB_MapEntry_DoNotUse> entry;
8595
0
      for (size_type i = 0; i < n; i++) {
8596
0
        entry.reset(map_.NewEntryWrapper(
8597
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
8598
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8599
0
            25, *entry, output);
8600
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
8601
0
      }
8602
0
    } else {
8603
0
      ::google::protobuf::scoped_ptr<LightweightRequestPB_MapEntry_DoNotUse> entry;
8604
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
8605
0
          it = this->map().begin();
8606
0
          it != this->map().end(); ++it) {
8607
0
        entry.reset(map_.NewEntryWrapper(
8608
0
            it->first, it->second));
8609
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8610
0
            25, *entry, output);
8611
0
        Utf8Check::Check(&*it);
8612
0
      }
8613
0
    }
8614
0
  }
8615
8616
  // optional .google.protobuf.Any extra_data = 26;
8617
0
  if (cached_has_bits & 0x00000010u) {
8618
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8619
0
      26, *this->extra_data_, output);
8620
0
  }
8621
8622
0
  if (_internal_metadata_.have_unknown_fields()) {
8623
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8624
0
        _internal_metadata_.unknown_fields(), output);
8625
0
  }
8626
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.LightweightRequestPB)
8627
0
}
8628
8629
::google::protobuf::uint8* LightweightRequestPB::InternalSerializeWithCachedSizesToArray(
8630
1
    bool deterministic, ::google::protobuf::uint8* target) const {
8631
1
  (void)deterministic; // Unused
8632
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.LightweightRequestPB)
8633
1
  ::google::protobuf::uint32 cached_has_bits = 0;
8634
1
  (void) cached_has_bits;
8635
8636
1
  cached_has_bits = _has_bits_[0];
8637
  // optional int32 i32 = 1;
8638
1
  if (cached_has_bits & 0x00000040u) {
8639
1
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->i32(), target);
8640
1
  }
8641
8642
  // optional int64 i64 = 2;
8643
1
  if (cached_has_bits & 0x00000020u) {
8644
1
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->i64(), target);
8645
1
  }
8646
8647
  // optional fixed32 f32 = 3;
8648
1
  if (cached_has_bits & 0x00000080u) {
8649
1
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->f32(), target);
8650
1
  }
8651
8652
  // optional fixed64 f64 = 4;
8653
1
  if (cached_has_bits & 0x00000100u) {
8654
1
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->f64(), target);
8655
1
  }
8656
8657
  // optional uint32 u32 = 5;
8658
1
  if (cached_has_bits & 0x00000400u) {
8659
1
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->u32(), target);
8660
1
  }
8661
8662
  // optional uint64 u64 = 6;
8663
1
  if (cached_has_bits & 0x00000200u) {
8664
1
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->u64(), target);
8665
1
  }
8666
8667
  // optional float r32 = 7;
8668
1
  if (cached_has_bits & 0x00000800u) {
8669
1
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->r32(), target);
8670
1
  }
8671
8672
  // optional double r64 = 8;
8673
1
  if (cached_has_bits & 0x00001000u) {
8674
1
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->r64(), target);
8675
1
  }
8676
8677
  // optional string str = 9;
8678
1
  if (cached_has_bits & 0x00000001u) {
8679
1
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8680
1
      this->str().data(), static_cast<int>(this->str().length()),
8681
1
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8682
1
      "yb.rpc_test.LightweightRequestPB.str");
8683
1
    target =
8684
1
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8685
1
        9, this->str(), target);
8686
1
  }
8687
8688
  // optional bytes bytes = 10;
8689
1
  if (cached_has_bits & 0x00000002u) {
8690
1
    target =
8691
1
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8692
1
        10, this->bytes(), target);
8693
1
  }
8694
8695
  // optional .yb.rpc_test.LightweightEnum en = 11;
8696
1
  if (cached_has_bits & 0x00002000u) {
8697
1
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8698
1
      11, this->en(), target);
8699
1
  }
8700
8701
  // optional sfixed32 sf32 = 12;
8702
1
  if (cached_has_bits & 0x00004000u) {
8703
1
    target = ::google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray(12, this->sf32(), target);
8704
1
  }
8705
8706
  // optional sfixed64 sf64 = 13;
8707
1
  if (cached_has_bits & 0x00008000u) {
8708
1
    target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(13, this->sf64(), target);
8709
1
  }
8710
8711
  // optional sint32 si32 = 14;
8712
1
  if (cached_has_bits & 0x00020000u) {
8713
1
    target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(14, this->si32(), target);
8714
1
  }
8715
8716
  // optional sint64 si64 = 15;
8717
1
  if (cached_has_bits & 0x00010000u) {
8718
1
    target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(15, this->si64(), target);
8719
1
  }
8720
8721
  // repeated uint32 ru32 = 16;
8722
1
  target = ::google::protobuf::internal::WireFormatLite::
8723
1
    WriteUInt32ToArray(16, this->ru32_, target);
8724
8725
  // repeated fixed32 rf32 = 17;
8726
1
  target = ::google::protobuf::internal::WireFormatLite::
8727
1
    WriteFixed32ToArray(17, this->rf32_, target);
8728
8729
  // repeated string rstr = 18;
8730
8
  for (int i = 0, n = this->rstr_size(); i < n; 
i++7
) {
8731
7
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8732
7
      this->rstr(i).data(), static_cast<int>(this->rstr(i).length()),
8733
7
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8734
7
      "yb.rpc_test.LightweightRequestPB.rstr");
8735
7
    target = ::google::protobuf::internal::WireFormatLite::
8736
7
      WriteStringToArray(18, this->rstr(i), target);
8737
7
  }
8738
8739
  // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
8740
1
  if (cached_has_bits & 0x00000004u) {
8741
1
    target = ::google::protobuf::internal::WireFormatLite::
8742
1
      InternalWriteMessageToArray(
8743
1
        19, *this->message_, deterministic, target);
8744
1
  }
8745
8746
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
8747
1
  for (unsigned int i = 0,
8748
6
      n = static_cast<unsigned int>(this->repeated_messages_size()); i < n; 
i++5
) {
8749
5
    target = ::google::protobuf::internal::WireFormatLite::
8750
5
      InternalWriteMessageToArray(
8751
5
        20, this->repeated_messages(static_cast<int>(i)), deterministic, target);
8752
5
  }
8753
8754
  // repeated uint64 packed_u64 = 21 [packed = true];
8755
1
  if (this->packed_u64_size() > 0) {
8756
1
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8757
1
      21,
8758
1
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
8759
1
      target);
8760
1
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
8761
1
        static_cast< ::google::protobuf::int32>(
8762
1
            _packed_u64_cached_byte_size_), target);
8763
1
    target = ::google::protobuf::internal::WireFormatLite::
8764
1
      WriteUInt64NoTagToArray(this->packed_u64_, target);
8765
1
  }
8766
8767
  // repeated fixed32 packed_f32 = 22 [packed = true];
8768
1
  if (this->packed_f32_size() > 0) {
8769
1
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8770
1
      22,
8771
1
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
8772
1
      target);
8773
1
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
8774
1
        static_cast< ::google::protobuf::int32>(
8775
1
            _packed_f32_cached_byte_size_), target);
8776
1
    target = ::google::protobuf::internal::WireFormatLite::
8777
1
      WriteFixed32NoTagToArray(this->packed_f32_, target);
8778
1
  }
8779
8780
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
8781
1
  for (unsigned int i = 0,
8782
14
      n = static_cast<unsigned int>(this->pairs_size()); i < n; 
i++13
) {
8783
13
    target = ::google::protobuf::internal::WireFormatLite::
8784
13
      InternalWriteMessageToArray(
8785
13
        23, this->pairs(static_cast<int>(i)), deterministic, target);
8786
13
  }
8787
8788
  // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
8789
1
  if (cached_has_bits & 0x00000008u) {
8790
1
    target = ::google::protobuf::internal::WireFormatLite::
8791
1
      InternalWriteMessageToArray(
8792
1
        24, *this->ptr_message_, deterministic, target);
8793
1
  }
8794
8795
  // map<string, int64> map = 25;
8796
1
  if (!this->map().empty()) {
8797
1
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_pointer
8798
1
        ConstPtr;
8799
1
    typedef ConstPtr SortItem;
8800
1
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
8801
1
    struct Utf8Check {
8802
11
      static void Check(ConstPtr p) {
8803
11
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8804
11
          p->first.data(), static_cast<int>(p->first.length()),
8805
11
          ::google::protobuf::internal::WireFormat::SERIALIZE,
8806
11
          "yb.rpc_test.LightweightRequestPB.MapEntry.key");
8807
11
      }
8808
1
    };
8809
8810
1
    if (deterministic &&
8811
1
        
this->map().size() > 10
) {
8812
0
      ::google::protobuf::scoped_array<SortItem> items(
8813
0
          new SortItem[this->map().size()]);
8814
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::size_type size_type;
8815
0
      size_type n = 0;
8816
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
8817
0
          it = this->map().begin();
8818
0
          it != this->map().end(); ++it, ++n) {
8819
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
8820
0
      }
8821
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
8822
0
      ::google::protobuf::scoped_ptr<LightweightRequestPB_MapEntry_DoNotUse> entry;
8823
0
      for (size_type i = 0; i < n; i++) {
8824
0
        entry.reset(map_.NewEntryWrapper(
8825
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
8826
0
        target = ::google::protobuf::internal::WireFormatLite::
8827
0
                   InternalWriteMessageNoVirtualToArray(
8828
0
                       25, *entry, deterministic, target);
8829
0
;
8830
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
8831
0
      }
8832
1
    } else {
8833
1
      ::google::protobuf::scoped_ptr<LightweightRequestPB_MapEntry_DoNotUse> entry;
8834
1
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
8835
1
          it = this->map().begin();
8836
12
          it != this->map().end(); 
++it11
) {
8837
11
        entry.reset(map_.NewEntryWrapper(
8838
11
            it->first, it->second));
8839
11
        target = ::google::protobuf::internal::WireFormatLite::
8840
11
                   InternalWriteMessageNoVirtualToArray(
8841
11
                       25, *entry, deterministic, target);
8842
11
;
8843
11
        Utf8Check::Check(&*it);
8844
11
      }
8845
1
    }
8846
1
  }
8847
8848
  // optional .google.protobuf.Any extra_data = 26;
8849
1
  if (cached_has_bits & 0x00000010u) {
8850
0
    target = ::google::protobuf::internal::WireFormatLite::
8851
0
      InternalWriteMessageToArray(
8852
0
        26, *this->extra_data_, deterministic, target);
8853
0
  }
8854
8855
1
  if (_internal_metadata_.have_unknown_fields()) {
8856
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8857
0
        _internal_metadata_.unknown_fields(), target);
8858
0
  }
8859
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.LightweightRequestPB)
8860
1
  return target;
8861
1
}
8862
8863
2
size_t LightweightRequestPB::ByteSizeLong() const {
8864
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.LightweightRequestPB)
8865
2
  size_t total_size = 0;
8866
8867
2
  if (_internal_metadata_.have_unknown_fields()) {
8868
0
    total_size +=
8869
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8870
0
        _internal_metadata_.unknown_fields());
8871
0
  }
8872
  // repeated uint32 ru32 = 16;
8873
2
  {
8874
2
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
8875
2
      UInt32Size(this->ru32_);
8876
2
    total_size += 2 *
8877
2
                  ::google::protobuf::internal::FromIntSize(this->ru32_size());
8878
2
    total_size += data_size;
8879
2
  }
8880
8881
  // repeated fixed32 rf32 = 17;
8882
2
  {
8883
2
    unsigned int count = static_cast<unsigned int>(this->rf32_size());
8884
2
    size_t data_size = 4UL * count;
8885
2
    total_size += 2 *
8886
2
                  ::google::protobuf::internal::FromIntSize(this->rf32_size());
8887
2
    total_size += data_size;
8888
2
  }
8889
8890
  // repeated string rstr = 18;
8891
2
  total_size += 2 *
8892
2
      ::google::protobuf::internal::FromIntSize(this->rstr_size());
8893
16
  for (int i = 0, n = this->rstr_size(); i < n; 
i++14
) {
8894
14
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
8895
14
      this->rstr(i));
8896
14
  }
8897
8898
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
8899
2
  {
8900
2
    unsigned int count = static_cast<unsigned int>(this->repeated_messages_size());
8901
2
    total_size += 2UL * count;
8902
12
    for (unsigned int i = 0; i < count; 
i++10
) {
8903
10
      total_size +=
8904
10
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8905
10
          this->repeated_messages(static_cast<int>(i)));
8906
10
    }
8907
2
  }
8908
8909
  // repeated uint64 packed_u64 = 21 [packed = true];
8910
2
  {
8911
2
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
8912
2
      UInt64Size(this->packed_u64_);
8913
2
    if (data_size > 0) {
8914
2
      total_size += 2 +
8915
2
        ::google::protobuf::internal::WireFormatLite::Int32Size(
8916
2
            static_cast< ::google::protobuf::int32>(data_size));
8917
2
    }
8918
2
    int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
8919
2
    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8920
2
    _packed_u64_cached_byte_size_ = cached_size;
8921
2
    GOOGLE_SAFE_CONCURRENT_WRITES_END();
8922
2
    total_size += data_size;
8923
2
  }
8924
8925
  // repeated fixed32 packed_f32 = 22 [packed = true];
8926
2
  {
8927
2
    unsigned int count = static_cast<unsigned int>(this->packed_f32_size());
8928
2
    size_t data_size = 4UL * count;
8929
2
    if (data_size > 0) {
8930
2
      total_size += 2 +
8931
2
        ::google::protobuf::internal::WireFormatLite::Int32Size(
8932
2
            static_cast< ::google::protobuf::int32>(data_size));
8933
2
    }
8934
2
    int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
8935
2
    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8936
2
    _packed_f32_cached_byte_size_ = cached_size;
8937
2
    GOOGLE_SAFE_CONCURRENT_WRITES_END();
8938
2
    total_size += data_size;
8939
2
  }
8940
8941
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
8942
2
  {
8943
2
    unsigned int count = static_cast<unsigned int>(this->pairs_size());
8944
2
    total_size += 2UL * count;
8945
28
    for (unsigned int i = 0; i < count; 
i++26
) {
8946
26
      total_size +=
8947
26
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8948
26
          this->pairs(static_cast<int>(i)));
8949
26
    }
8950
2
  }
8951
8952
  // map<string, int64> map = 25;
8953
2
  total_size += 2 *
8954
2
      ::google::protobuf::internal::FromIntSize(this->map_size());
8955
2
  {
8956
2
    ::google::protobuf::scoped_ptr<LightweightRequestPB_MapEntry_DoNotUse> entry;
8957
2
    for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
8958
2
        it = this->map().begin();
8959
24
        it != this->map().end(); 
++it22
) {
8960
22
      entry.reset(map_.NewEntryWrapper(it->first, it->second));
8961
22
      total_size += ::google::protobuf::internal::WireFormatLite::
8962
22
          MessageSizeNoVirtual(*entry);
8963
22
    }
8964
2
  }
8965
8966
2
  if (_has_bits_[0 / 32] & 255u) {
8967
    // optional string str = 9;
8968
2
    if (has_str()) {
8969
2
      total_size += 1 +
8970
2
        ::google::protobuf::internal::WireFormatLite::StringSize(
8971
2
          this->str());
8972
2
    }
8973
8974
    // optional bytes bytes = 10;
8975
2
    if (has_bytes()) {
8976
2
      total_size += 1 +
8977
2
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8978
2
          this->bytes());
8979
2
    }
8980
8981
    // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
8982
2
    if (has_message()) {
8983
2
      total_size += 2 +
8984
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8985
2
          *this->message_);
8986
2
    }
8987
8988
    // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
8989
2
    if (has_ptr_message()) {
8990
2
      total_size += 2 +
8991
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8992
2
          *this->ptr_message_);
8993
2
    }
8994
8995
    // optional .google.protobuf.Any extra_data = 26;
8996
2
    if (has_extra_data()) {
8997
0
      total_size += 2 +
8998
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8999
0
          *this->extra_data_);
9000
0
    }
9001
9002
    // optional int64 i64 = 2;
9003
2
    if (has_i64()) {
9004
2
      total_size += 1 +
9005
2
        ::google::protobuf::internal::WireFormatLite::Int64Size(
9006
2
          this->i64());
9007
2
    }
9008
9009
    // optional int32 i32 = 1;
9010
2
    if (has_i32()) {
9011
2
      total_size += 1 +
9012
2
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9013
2
          this->i32());
9014
2
    }
9015
9016
    // optional fixed32 f32 = 3;
9017
2
    if (has_f32()) {
9018
2
      total_size += 1 + 4;
9019
2
    }
9020
9021
2
  }
9022
2
  if (_has_bits_[8 / 32] & 65280u) {
9023
    // optional fixed64 f64 = 4;
9024
2
    if (has_f64()) {
9025
2
      total_size += 1 + 8;
9026
2
    }
9027
9028
    // optional uint64 u64 = 6;
9029
2
    if (has_u64()) {
9030
2
      total_size += 1 +
9031
2
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9032
2
          this->u64());
9033
2
    }
9034
9035
    // optional uint32 u32 = 5;
9036
2
    if (has_u32()) {
9037
2
      total_size += 1 +
9038
2
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
9039
2
          this->u32());
9040
2
    }
9041
9042
    // optional float r32 = 7;
9043
2
    if (has_r32()) {
9044
2
      total_size += 1 + 4;
9045
2
    }
9046
9047
    // optional double r64 = 8;
9048
2
    if (has_r64()) {
9049
2
      total_size += 1 + 8;
9050
2
    }
9051
9052
    // optional .yb.rpc_test.LightweightEnum en = 11;
9053
2
    if (has_en()) {
9054
2
      total_size += 1 +
9055
2
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->en());
9056
2
    }
9057
9058
    // optional sfixed32 sf32 = 12;
9059
2
    if (has_sf32()) {
9060
2
      total_size += 1 + 4;
9061
2
    }
9062
9063
    // optional sfixed64 sf64 = 13;
9064
2
    if (has_sf64()) {
9065
2
      total_size += 1 + 8;
9066
2
    }
9067
9068
2
  }
9069
2
  if (_has_bits_[16 / 32] & 196608u) {
9070
    // optional sint64 si64 = 15;
9071
2
    if (has_si64()) {
9072
2
      total_size += 1 +
9073
2
        ::google::protobuf::internal::WireFormatLite::SInt64Size(
9074
2
          this->si64());
9075
2
    }
9076
9077
    // optional sint32 si32 = 14;
9078
2
    if (has_si32()) {
9079
2
      total_size += 1 +
9080
2
        ::google::protobuf::internal::WireFormatLite::SInt32Size(
9081
2
          this->si32());
9082
2
    }
9083
9084
2
  }
9085
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9086
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9087
2
  _cached_size_ = cached_size;
9088
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9089
2
  return total_size;
9090
2
}
9091
9092
0
void LightweightRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
9093
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.LightweightRequestPB)
9094
0
  GOOGLE_DCHECK_NE(&from, this);
9095
0
  const LightweightRequestPB* source =
9096
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightRequestPB>(
9097
0
          &from);
9098
0
  if (source == NULL) {
9099
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.LightweightRequestPB)
9100
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9101
0
  } else {
9102
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.LightweightRequestPB)
9103
0
    MergeFrom(*source);
9104
0
  }
9105
0
}
9106
9107
0
void LightweightRequestPB::MergeFrom(const LightweightRequestPB& from) {
9108
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.LightweightRequestPB)
9109
0
  GOOGLE_DCHECK_NE(&from, this);
9110
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9111
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9112
0
  (void) cached_has_bits;
9113
9114
0
  ru32_.MergeFrom(from.ru32_);
9115
0
  rf32_.MergeFrom(from.rf32_);
9116
0
  rstr_.MergeFrom(from.rstr_);
9117
0
  repeated_messages_.MergeFrom(from.repeated_messages_);
9118
0
  packed_u64_.MergeFrom(from.packed_u64_);
9119
0
  packed_f32_.MergeFrom(from.packed_f32_);
9120
0
  pairs_.MergeFrom(from.pairs_);
9121
0
  map_.MergeFrom(from.map_);
9122
0
  cached_has_bits = from._has_bits_[0];
9123
0
  if (cached_has_bits & 255u) {
9124
0
    if (cached_has_bits & 0x00000001u) {
9125
0
      set_has_str();
9126
0
      str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
9127
0
    }
9128
0
    if (cached_has_bits & 0x00000002u) {
9129
0
      set_has_bytes();
9130
0
      bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bytes_);
9131
0
    }
9132
0
    if (cached_has_bits & 0x00000004u) {
9133
0
      mutable_message()->::yb::rpc_test::LightweightSubMessagePB::MergeFrom(from.message());
9134
0
    }
9135
0
    if (cached_has_bits & 0x00000008u) {
9136
0
      mutable_ptr_message()->::yb::rpc_test::LightweightSubMessagePB::MergeFrom(from.ptr_message());
9137
0
    }
9138
0
    if (cached_has_bits & 0x00000010u) {
9139
0
      mutable_extra_data()->::google::protobuf::Any::MergeFrom(from.extra_data());
9140
0
    }
9141
0
    if (cached_has_bits & 0x00000020u) {
9142
0
      i64_ = from.i64_;
9143
0
    }
9144
0
    if (cached_has_bits & 0x00000040u) {
9145
0
      i32_ = from.i32_;
9146
0
    }
9147
0
    if (cached_has_bits & 0x00000080u) {
9148
0
      f32_ = from.f32_;
9149
0
    }
9150
0
    _has_bits_[0] |= cached_has_bits;
9151
0
  }
9152
0
  if (cached_has_bits & 65280u) {
9153
0
    if (cached_has_bits & 0x00000100u) {
9154
0
      f64_ = from.f64_;
9155
0
    }
9156
0
    if (cached_has_bits & 0x00000200u) {
9157
0
      u64_ = from.u64_;
9158
0
    }
9159
0
    if (cached_has_bits & 0x00000400u) {
9160
0
      u32_ = from.u32_;
9161
0
    }
9162
0
    if (cached_has_bits & 0x00000800u) {
9163
0
      r32_ = from.r32_;
9164
0
    }
9165
0
    if (cached_has_bits & 0x00001000u) {
9166
0
      r64_ = from.r64_;
9167
0
    }
9168
0
    if (cached_has_bits & 0x00002000u) {
9169
0
      en_ = from.en_;
9170
0
    }
9171
0
    if (cached_has_bits & 0x00004000u) {
9172
0
      sf32_ = from.sf32_;
9173
0
    }
9174
0
    if (cached_has_bits & 0x00008000u) {
9175
0
      sf64_ = from.sf64_;
9176
0
    }
9177
0
    _has_bits_[0] |= cached_has_bits;
9178
0
  }
9179
0
  if (cached_has_bits & 196608u) {
9180
0
    if (cached_has_bits & 0x00010000u) {
9181
0
      si64_ = from.si64_;
9182
0
    }
9183
0
    if (cached_has_bits & 0x00020000u) {
9184
0
      si32_ = from.si32_;
9185
0
    }
9186
0
    _has_bits_[0] |= cached_has_bits;
9187
0
  }
9188
0
}
9189
9190
0
void LightweightRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
9191
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.LightweightRequestPB)
9192
0
  if (&from == this) return;
9193
0
  Clear();
9194
0
  MergeFrom(from);
9195
0
}
9196
9197
0
void LightweightRequestPB::CopyFrom(const LightweightRequestPB& from) {
9198
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.LightweightRequestPB)
9199
0
  if (&from == this) return;
9200
0
  Clear();
9201
0
  MergeFrom(from);
9202
0
}
9203
9204
1
bool LightweightRequestPB::IsInitialized() const {
9205
1
  return true;
9206
1
}
9207
9208
0
void LightweightRequestPB::Swap(LightweightRequestPB* other) {
9209
0
  if (other == this) return;
9210
0
  InternalSwap(other);
9211
0
}
9212
0
void LightweightRequestPB::InternalSwap(LightweightRequestPB* other) {
9213
0
  using std::swap;
9214
0
  ru32_.InternalSwap(&other->ru32_);
9215
0
  rf32_.InternalSwap(&other->rf32_);
9216
0
  rstr_.InternalSwap(&other->rstr_);
9217
0
  repeated_messages_.InternalSwap(&other->repeated_messages_);
9218
0
  packed_u64_.InternalSwap(&other->packed_u64_);
9219
0
  packed_f32_.InternalSwap(&other->packed_f32_);
9220
0
  pairs_.InternalSwap(&other->pairs_);
9221
0
  map_.Swap(&other->map_);
9222
0
  str_.Swap(&other->str_);
9223
0
  bytes_.Swap(&other->bytes_);
9224
0
  swap(message_, other->message_);
9225
0
  swap(ptr_message_, other->ptr_message_);
9226
0
  swap(extra_data_, other->extra_data_);
9227
0
  swap(i64_, other->i64_);
9228
0
  swap(i32_, other->i32_);
9229
0
  swap(f32_, other->f32_);
9230
0
  swap(f64_, other->f64_);
9231
0
  swap(u64_, other->u64_);
9232
0
  swap(u32_, other->u32_);
9233
0
  swap(r32_, other->r32_);
9234
0
  swap(r64_, other->r64_);
9235
0
  swap(en_, other->en_);
9236
0
  swap(sf32_, other->sf32_);
9237
0
  swap(sf64_, other->sf64_);
9238
0
  swap(si64_, other->si64_);
9239
0
  swap(si32_, other->si32_);
9240
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9241
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9242
0
  swap(_cached_size_, other->_cached_size_);
9243
0
}
9244
9245
2
::google::protobuf::Metadata LightweightRequestPB::GetMetadata() const {
9246
2
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
9247
2
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
9248
2
}
9249
9250
9251
// ===================================================================
9252
9253
123
LightweightResponsePB_MapEntry_DoNotUse::LightweightResponsePB_MapEntry_DoNotUse() {}
9254
0
LightweightResponsePB_MapEntry_DoNotUse::LightweightResponsePB_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
9255
0
void LightweightResponsePB_MapEntry_DoNotUse::MergeFrom(const LightweightResponsePB_MapEntry_DoNotUse& other) {
9256
0
  MergeFromInternal(other);
9257
0
}
9258
0
::google::protobuf::Metadata LightweightResponsePB_MapEntry_DoNotUse::GetMetadata() const {
9259
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
9260
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[26];
9261
0
}
9262
void LightweightResponsePB_MapEntry_DoNotUse::MergeFrom(
9263
0
    const ::google::protobuf::Message& other) {
9264
0
  ::google::protobuf::Message::MergeFrom(other);
9265
0
}
9266
9267
9268
// ===================================================================
9269
9270
123
void LightweightResponsePB::InitAsDefaultInstance() {
9271
123
  ::yb::rpc_test::_LightweightResponsePB_default_instance_._instance.get_mutable()->message_ = const_cast< ::yb::rpc_test::LightweightSubMessagePB*>(
9272
123
      ::yb::rpc_test::LightweightSubMessagePB::internal_default_instance());
9273
123
  ::yb::rpc_test::_LightweightResponsePB_default_instance_._instance.get_mutable()->ptr_message_ = const_cast< ::yb::rpc_test::LightweightSubMessagePB*>(
9274
123
      ::yb::rpc_test::LightweightSubMessagePB::internal_default_instance());
9275
123
}
9276
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9277
const int LightweightResponsePB::kI32FieldNumber;
9278
const int LightweightResponsePB::kI64FieldNumber;
9279
const int LightweightResponsePB::kF32FieldNumber;
9280
const int LightweightResponsePB::kF64FieldNumber;
9281
const int LightweightResponsePB::kU32FieldNumber;
9282
const int LightweightResponsePB::kU64FieldNumber;
9283
const int LightweightResponsePB::kR32FieldNumber;
9284
const int LightweightResponsePB::kR64FieldNumber;
9285
const int LightweightResponsePB::kStrFieldNumber;
9286
const int LightweightResponsePB::kBytesFieldNumber;
9287
const int LightweightResponsePB::kEnFieldNumber;
9288
const int LightweightResponsePB::kSf32FieldNumber;
9289
const int LightweightResponsePB::kSf64FieldNumber;
9290
const int LightweightResponsePB::kSi32FieldNumber;
9291
const int LightweightResponsePB::kSi64FieldNumber;
9292
const int LightweightResponsePB::kRu32FieldNumber;
9293
const int LightweightResponsePB::kRf32FieldNumber;
9294
const int LightweightResponsePB::kRstrFieldNumber;
9295
const int LightweightResponsePB::kMessageFieldNumber;
9296
const int LightweightResponsePB::kRepeatedMessagesFieldNumber;
9297
const int LightweightResponsePB::kRepeatedMessagesCopyFieldNumber;
9298
const int LightweightResponsePB::kPackedU64FieldNumber;
9299
const int LightweightResponsePB::kPackedF32FieldNumber;
9300
const int LightweightResponsePB::kPairsFieldNumber;
9301
const int LightweightResponsePB::kPtrMessageFieldNumber;
9302
const int LightweightResponsePB::kMapFieldNumber;
9303
const int LightweightResponsePB::kShortDebugStringFieldNumber;
9304
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9305
9306
LightweightResponsePB::LightweightResponsePB()
9307
126
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9308
126
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9309
3
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightResponsePB();
9310
3
  }
9311
126
  SharedCtor();
9312
  // @@protoc_insertion_point(constructor:yb.rpc_test.LightweightResponsePB)
9313
126
}
9314
LightweightResponsePB::LightweightResponsePB(const LightweightResponsePB& from)
9315
  : ::google::protobuf::Message(),
9316
      _internal_metadata_(NULL),
9317
      _has_bits_(from._has_bits_),
9318
      _cached_size_(0),
9319
      ru32_(from.ru32_),
9320
      rf32_(from.rf32_),
9321
      rstr_(from.rstr_),
9322
      repeated_messages_(from.repeated_messages_),
9323
      packed_u64_(from.packed_u64_),
9324
      packed_f32_(from.packed_f32_),
9325
      pairs_(from.pairs_),
9326
0
      repeated_messages_copy_(from.repeated_messages_copy_) {
9327
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9328
0
  map_.MergeFrom(from.map_);
9329
0
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9330
0
  if (from.has_str()) {
9331
0
    str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
9332
0
  }
9333
0
  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9334
0
  if (from.has_bytes()) {
9335
0
    bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bytes_);
9336
0
  }
9337
0
  short_debug_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9338
0
  if (from.has_short_debug_string()) {
9339
0
    short_debug_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_debug_string_);
9340
0
  }
9341
0
  if (from.has_message()) {
9342
0
    message_ = new ::yb::rpc_test::LightweightSubMessagePB(*from.message_);
9343
0
  } else {
9344
0
    message_ = NULL;
9345
0
  }
9346
0
  if (from.has_ptr_message()) {
9347
0
    ptr_message_ = new ::yb::rpc_test::LightweightSubMessagePB(*from.ptr_message_);
9348
0
  } else {
9349
0
    ptr_message_ = NULL;
9350
0
  }
9351
0
  ::memcpy(&i64_, &from.i64_,
9352
0
    static_cast<size_t>(reinterpret_cast<char*>(&si32_) -
9353
0
    reinterpret_cast<char*>(&i64_)) + sizeof(si32_));
9354
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.LightweightResponsePB)
9355
0
}
9356
9357
126
void LightweightResponsePB::SharedCtor() {
9358
126
  _cached_size_ = 0;
9359
126
  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9360
126
  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9361
126
  short_debug_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9362
126
  ::memset(&message_, 0, static_cast<size_t>(
9363
126
      reinterpret_cast<char*>(&si32_) -
9364
126
      reinterpret_cast<char*>(&message_)) + sizeof(si32_));
9365
126
}
9366
9367
3
LightweightResponsePB::~LightweightResponsePB() {
9368
  // @@protoc_insertion_point(destructor:yb.rpc_test.LightweightResponsePB)
9369
3
  SharedDtor();
9370
3
}
9371
9372
3
void LightweightResponsePB::SharedDtor() {
9373
3
  str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9374
3
  bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9375
3
  short_debug_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9376
3
  if (this != internal_default_instance()) delete message_;
9377
3
  if (this != internal_default_instance()) delete ptr_message_;
9378
3
}
9379
9380
0
void LightweightResponsePB::SetCachedSize(int size) const {
9381
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9382
0
  _cached_size_ = size;
9383
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9384
0
}
9385
0
const ::google::protobuf::Descriptor* LightweightResponsePB::descriptor() {
9386
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
9387
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9388
0
}
9389
9390
0
const LightweightResponsePB& LightweightResponsePB::default_instance() {
9391
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsLightweightResponsePB();
9392
0
  return *internal_default_instance();
9393
0
}
9394
9395
0
LightweightResponsePB* LightweightResponsePB::New(::google::protobuf::Arena* arena) const {
9396
0
  LightweightResponsePB* n = new LightweightResponsePB;
9397
0
  if (arena != NULL) {
9398
0
    arena->Own(n);
9399
0
  }
9400
0
  return n;
9401
0
}
9402
9403
1
void LightweightResponsePB::Clear() {
9404
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.LightweightResponsePB)
9405
1
  ::google::protobuf::uint32 cached_has_bits = 0;
9406
  // Prevent compiler warnings about cached_has_bits being unused
9407
1
  (void) cached_has_bits;
9408
9409
1
  ru32_.Clear();
9410
1
  rf32_.Clear();
9411
1
  rstr_.Clear();
9412
1
  repeated_messages_.Clear();
9413
1
  packed_u64_.Clear();
9414
1
  packed_f32_.Clear();
9415
1
  pairs_.Clear();
9416
1
  map_.Clear();
9417
1
  repeated_messages_copy_.Clear();
9418
1
  cached_has_bits = _has_bits_[0];
9419
1
  if (cached_has_bits & 31u) {
9420
0
    if (cached_has_bits & 0x00000001u) {
9421
0
      GOOGLE_DCHECK(!str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9422
0
      (*str_.UnsafeRawStringPointer())->clear();
9423
0
    }
9424
0
    if (cached_has_bits & 0x00000002u) {
9425
0
      GOOGLE_DCHECK(!bytes_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9426
0
      (*bytes_.UnsafeRawStringPointer())->clear();
9427
0
    }
9428
0
    if (cached_has_bits & 0x00000004u) {
9429
0
      GOOGLE_DCHECK(!short_debug_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9430
0
      (*short_debug_string_.UnsafeRawStringPointer())->clear();
9431
0
    }
9432
0
    if (cached_has_bits & 0x00000008u) {
9433
0
      GOOGLE_DCHECK(message_ != NULL);
9434
0
      message_->Clear();
9435
0
    }
9436
0
    if (cached_has_bits & 0x00000010u) {
9437
0
      GOOGLE_DCHECK(ptr_message_ != NULL);
9438
0
      ptr_message_->Clear();
9439
0
    }
9440
0
  }
9441
1
  if (cached_has_bits & 224u) {
9442
0
    ::memset(&i64_, 0, static_cast<size_t>(
9443
0
        reinterpret_cast<char*>(&f32_) -
9444
0
        reinterpret_cast<char*>(&i64_)) + sizeof(f32_));
9445
0
  }
9446
1
  if (cached_has_bits & 65280u) {
9447
0
    ::memset(&f64_, 0, static_cast<size_t>(
9448
0
        reinterpret_cast<char*>(&sf64_) -
9449
0
        reinterpret_cast<char*>(&f64_)) + sizeof(sf64_));
9450
0
  }
9451
1
  if (cached_has_bits & 196608u) {
9452
0
    ::memset(&si64_, 0, static_cast<size_t>(
9453
0
        reinterpret_cast<char*>(&si32_) -
9454
0
        reinterpret_cast<char*>(&si64_)) + sizeof(si32_));
9455
0
  }
9456
1
  _has_bits_.Clear();
9457
1
  _internal_metadata_.Clear();
9458
1
}
9459
9460
bool LightweightResponsePB::MergePartialFromCodedStream(
9461
1
    ::google::protobuf::io::CodedInputStream* input) {
9462
68
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
9463
1
  ::google::protobuf::uint32 tag;
9464
  // @@protoc_insertion_point(parse_start:yb.rpc_test.LightweightResponsePB)
9465
69
  for (;;) {
9466
69
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
9467
69
    tag = p.first;
9468
69
    if (!p.second) 
goto handle_unusual1
;
9469
68
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9470
      // optional int32 i32 = 1;
9471
1
      case 1: {
9472
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9473
1
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9474
1
          set_has_i32();
9475
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9476
1
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9477
1
                 input, &i32_)));
9478
1
        } else {
9479
0
          goto handle_unusual;
9480
0
        }
9481
1
        break;
9482
1
      }
9483
9484
      // optional int64 i64 = 2;
9485
1
      case 2: {
9486
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9487
1
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9488
1
          set_has_i64();
9489
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9490
1
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
9491
1
                 input, &i64_)));
9492
1
        } else {
9493
0
          goto handle_unusual;
9494
0
        }
9495
1
        break;
9496
1
      }
9497
9498
      // optional fixed32 f32 = 3;
9499
1
      case 3: {
9500
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9501
1
            static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
9502
1
          set_has_f32();
9503
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9504
1
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
9505
1
                 input, &f32_)));
9506
1
        } else {
9507
0
          goto handle_unusual;
9508
0
        }
9509
1
        break;
9510
1
      }
9511
9512
      // optional fixed64 f64 = 4;
9513
1
      case 4: {
9514
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9515
1
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
9516
1
          set_has_f64();
9517
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9518
1
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
9519
1
                 input, &f64_)));
9520
1
        } else {
9521
0
          goto handle_unusual;
9522
0
        }
9523
1
        break;
9524
1
      }
9525
9526
      // optional uint32 u32 = 5;
9527
1
      case 5: {
9528
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9529
1
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
9530
1
          set_has_u32();
9531
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9532
1
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
9533
1
                 input, &u32_)));
9534
1
        } else {
9535
0
          goto handle_unusual;
9536
0
        }
9537
1
        break;
9538
1
      }
9539
9540
      // optional uint64 u64 = 6;
9541
1
      case 6: {
9542
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9543
1
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
9544
1
          set_has_u64();
9545
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9546
1
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9547
1
                 input, &u64_)));
9548
1
        } else {
9549
0
          goto handle_unusual;
9550
0
        }
9551
1
        break;
9552
1
      }
9553
9554
      // optional float r32 = 7;
9555
1
      case 7: {
9556
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9557
1
            static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
9558
1
          set_has_r32();
9559
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9560
1
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
9561
1
                 input, &r32_)));
9562
1
        } else {
9563
0
          goto handle_unusual;
9564
0
        }
9565
1
        break;
9566
1
      }
9567
9568
      // optional double r64 = 8;
9569
1
      case 8: {
9570
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9571
1
            static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
9572
1
          set_has_r64();
9573
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9574
1
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
9575
1
                 input, &r64_)));
9576
1
        } else {
9577
0
          goto handle_unusual;
9578
0
        }
9579
1
        break;
9580
1
      }
9581
9582
      // optional string str = 9;
9583
1
      case 9: {
9584
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9585
1
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
9586
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9587
1
                input, this->mutable_str()));
9588
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9589
1
            this->str().data(), static_cast<int>(this->str().length()),
9590
1
            ::google::protobuf::internal::WireFormat::PARSE,
9591
1
            "yb.rpc_test.LightweightResponsePB.str");
9592
1
        } else {
9593
0
          goto handle_unusual;
9594
0
        }
9595
1
        break;
9596
1
      }
9597
9598
      // optional bytes bytes = 10;
9599
1
      case 10: {
9600
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9601
1
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
9602
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9603
1
                input, this->mutable_bytes()));
9604
1
        } else {
9605
0
          goto handle_unusual;
9606
0
        }
9607
1
        break;
9608
1
      }
9609
9610
      // optional .yb.rpc_test.LightweightEnum en = 11;
9611
1
      case 11: {
9612
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9613
1
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
9614
1
          int value;
9615
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9616
1
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9617
1
                 input, &value)));
9618
1
          if (::yb::rpc_test::LightweightEnum_IsValid(value)) {
9619
1
            set_en(static_cast< ::yb::rpc_test::LightweightEnum >(value));
9620
1
          } else {
9621
0
            mutable_unknown_fields()->AddVarint(
9622
0
                11, static_cast< ::google::protobuf::uint64>(value));
9623
0
          }
9624
1
        } else {
9625
0
          goto handle_unusual;
9626
0
        }
9627
1
        break;
9628
1
      }
9629
9630
      // optional sfixed32 sf32 = 12;
9631
1
      case 12: {
9632
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9633
1
            static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
9634
1
          set_has_sf32();
9635
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9636
1
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32>(
9637
1
                 input, &sf32_)));
9638
1
        } else {
9639
0
          goto handle_unusual;
9640
0
        }
9641
1
        break;
9642
1
      }
9643
9644
      // optional sfixed64 sf64 = 13;
9645
1
      case 13: {
9646
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9647
1
            static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) {
9648
1
          set_has_sf64();
9649
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9650
1
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
9651
1
                 input, &sf64_)));
9652
1
        } else {
9653
0
          goto handle_unusual;
9654
0
        }
9655
1
        break;
9656
1
      }
9657
9658
      // optional sint32 si32 = 14;
9659
1
      case 14: {
9660
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9661
1
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
9662
1
          set_has_si32();
9663
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9664
1
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
9665
1
                 input, &si32_)));
9666
1
        } else {
9667
0
          goto handle_unusual;
9668
0
        }
9669
1
        break;
9670
1
      }
9671
9672
      // optional sint64 si64 = 15;
9673
1
      case 15: {
9674
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9675
1
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
9676
1
          set_has_si64();
9677
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9678
1
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
9679
1
                 input, &si64_)));
9680
1
        } else {
9681
0
          goto handle_unusual;
9682
0
        }
9683
1
        break;
9684
1
      }
9685
9686
      // repeated uint32 ru32 = 16;
9687
4
      case 16: {
9688
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9689
4
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
9690
4
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
9691
4
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
9692
4
                 2, 128u, input, this->mutable_ru32())));
9693
4
        } else if (
9694
0
            static_cast< ::google::protobuf::uint8>(tag) ==
9695
0
            static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
9696
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
9697
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
9698
0
                 input, this->mutable_ru32())));
9699
0
        } else {
9700
0
          goto handle_unusual;
9701
0
        }
9702
4
        break;
9703
4
      }
9704
9705
      // repeated fixed32 rf32 = 17;
9706
4
      case 17: {
9707
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9708
3
            static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
9709
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
9710
3
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
9711
3
                 2, 141u, input, this->mutable_rf32())));
9712
3
        } else if (
9713
0
            static_cast< ::google::protobuf::uint8>(tag) ==
9714
0
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
9715
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
9716
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
9717
0
                 input, this->mutable_rf32())));
9718
0
        } else {
9719
0
          goto handle_unusual;
9720
0
        }
9721
3
        break;
9722
3
      }
9723
9724
      // repeated string rstr = 18;
9725
7
      case 18: {
9726
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9727
7
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
9728
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9729
7
                input, this->add_rstr()));
9730
7
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9731
7
            this->rstr(this->rstr_size() - 1).data(),
9732
7
            static_cast<int>(this->rstr(this->rstr_size() - 1).length()),
9733
7
            ::google::protobuf::internal::WireFormat::PARSE,
9734
7
            "yb.rpc_test.LightweightResponsePB.rstr");
9735
7
        } else {
9736
0
          goto handle_unusual;
9737
0
        }
9738
7
        break;
9739
7
      }
9740
9741
      // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
9742
7
      case 19: {
9743
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9744
1
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
9745
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9746
1
               input, mutable_message()));
9747
1
        } else {
9748
0
          goto handle_unusual;
9749
0
        }
9750
1
        break;
9751
1
      }
9752
9753
      // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
9754
5
      case 20: {
9755
5
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9756
5
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
9757
5
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_repeated_messages()));
9758
5
        } else {
9759
0
          goto handle_unusual;
9760
0
        }
9761
5
        break;
9762
5
      }
9763
9764
      // repeated uint64 packed_u64 = 21 [packed = true];
9765
5
      case 21: {
9766
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9767
1
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
9768
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
9769
1
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9770
1
                 input, this->mutable_packed_u64())));
9771
1
        } else if (
9772
0
            static_cast< ::google::protobuf::uint8>(tag) ==
9773
0
            static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
9774
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
9775
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9776
0
                 2, 170u, input, this->mutable_packed_u64())));
9777
0
        } else {
9778
0
          goto handle_unusual;
9779
0
        }
9780
1
        break;
9781
1
      }
9782
9783
      // repeated fixed32 packed_f32 = 22 [packed = true];
9784
1
      case 22: {
9785
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9786
1
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
9787
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
9788
1
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
9789
1
                 input, this->mutable_packed_f32())));
9790
1
        } else if (
9791
0
            static_cast< ::google::protobuf::uint8>(tag) ==
9792
0
            static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
9793
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
9794
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
9795
0
                 2, 178u, input, this->mutable_packed_f32())));
9796
0
        } else {
9797
0
          goto handle_unusual;
9798
0
        }
9799
1
        break;
9800
1
      }
9801
9802
      // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
9803
13
      case 23: {
9804
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9805
13
            static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
9806
13
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_pairs()));
9807
13
        } else {
9808
0
          goto handle_unusual;
9809
0
        }
9810
13
        break;
9811
13
      }
9812
9813
      // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
9814
13
      case 24: {
9815
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9816
1
            static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
9817
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9818
1
               input, mutable_ptr_message()));
9819
1
        } else {
9820
0
          goto handle_unusual;
9821
0
        }
9822
1
        break;
9823
1
      }
9824
9825
      // map<string, int64> map = 25;
9826
11
      case 25: {
9827
11
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9828
11
            static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
9829
11
          LightweightResponsePB_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
9830
11
              LightweightResponsePB_MapEntry_DoNotUse,
9831
11
              ::std::string, ::google::protobuf::int64,
9832
11
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
9833
11
              ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
9834
11
              0 >,
9835
11
            ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 > > parser(&map_);
9836
11
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9837
11
              input, &parser));
9838
11
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9839
11
            parser.key().data(), static_cast<int>(parser.key().length()),
9840
11
            ::google::protobuf::internal::WireFormat::PARSE,
9841
11
            "yb.rpc_test.LightweightResponsePB.MapEntry.key");
9842
11
        } else {
9843
0
          goto handle_unusual;
9844
0
        }
9845
11
        break;
9846
11
      }
9847
9848
      // optional string short_debug_string = 100;
9849
11
      case 100: {
9850
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9851
1
            static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) {
9852
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9853
1
                input, this->mutable_short_debug_string()));
9854
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9855
1
            this->short_debug_string().data(), static_cast<int>(this->short_debug_string().length()),
9856
1
            ::google::protobuf::internal::WireFormat::PARSE,
9857
1
            "yb.rpc_test.LightweightResponsePB.short_debug_string");
9858
1
        } else {
9859
0
          goto handle_unusual;
9860
0
        }
9861
1
        break;
9862
1
      }
9863
9864
      // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages_copy = 120;
9865
5
      case 120: {
9866
5
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9867
5
            static_cast< ::google::protobuf::uint8>(194u /* 962 & 0xFF */)) {
9868
5
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_repeated_messages_copy()));
9869
5
        } else {
9870
0
          goto handle_unusual;
9871
0
        }
9872
5
        break;
9873
5
      }
9874
9875
5
      default: {
9876
1
      handle_unusual:
9877
1
        if (tag == 0) {
9878
1
          goto success;
9879
1
        }
9880
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9881
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9882
0
        break;
9883
0
      }
9884
68
    }
9885
68
  }
9886
1
success:
9887
  // @@protoc_insertion_point(parse_success:yb.rpc_test.LightweightResponsePB)
9888
1
  return true;
9889
0
failure:
9890
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.LightweightResponsePB)
9891
0
  return false;
9892
1
#undef DO_
9893
1
}
9894
9895
void LightweightResponsePB::SerializeWithCachedSizes(
9896
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9897
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.LightweightResponsePB)
9898
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9899
0
  (void) cached_has_bits;
9900
9901
0
  cached_has_bits = _has_bits_[0];
9902
  // optional int32 i32 = 1;
9903
0
  if (cached_has_bits & 0x00000040u) {
9904
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->i32(), output);
9905
0
  }
9906
9907
  // optional int64 i64 = 2;
9908
0
  if (cached_has_bits & 0x00000020u) {
9909
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->i64(), output);
9910
0
  }
9911
9912
  // optional fixed32 f32 = 3;
9913
0
  if (cached_has_bits & 0x00000080u) {
9914
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(3, this->f32(), output);
9915
0
  }
9916
9917
  // optional fixed64 f64 = 4;
9918
0
  if (cached_has_bits & 0x00000100u) {
9919
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->f64(), output);
9920
0
  }
9921
9922
  // optional uint32 u32 = 5;
9923
0
  if (cached_has_bits & 0x00000400u) {
9924
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->u32(), output);
9925
0
  }
9926
9927
  // optional uint64 u64 = 6;
9928
0
  if (cached_has_bits & 0x00000200u) {
9929
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->u64(), output);
9930
0
  }
9931
9932
  // optional float r32 = 7;
9933
0
  if (cached_has_bits & 0x00000800u) {
9934
0
    ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->r32(), output);
9935
0
  }
9936
9937
  // optional double r64 = 8;
9938
0
  if (cached_has_bits & 0x00001000u) {
9939
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->r64(), output);
9940
0
  }
9941
9942
  // optional string str = 9;
9943
0
  if (cached_has_bits & 0x00000001u) {
9944
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9945
0
      this->str().data(), static_cast<int>(this->str().length()),
9946
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9947
0
      "yb.rpc_test.LightweightResponsePB.str");
9948
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9949
0
      9, this->str(), output);
9950
0
  }
9951
9952
  // optional bytes bytes = 10;
9953
0
  if (cached_has_bits & 0x00000002u) {
9954
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9955
0
      10, this->bytes(), output);
9956
0
  }
9957
9958
  // optional .yb.rpc_test.LightweightEnum en = 11;
9959
0
  if (cached_has_bits & 0x00002000u) {
9960
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
9961
0
      11, this->en(), output);
9962
0
  }
9963
9964
  // optional sfixed32 sf32 = 12;
9965
0
  if (cached_has_bits & 0x00004000u) {
9966
0
    ::google::protobuf::internal::WireFormatLite::WriteSFixed32(12, this->sf32(), output);
9967
0
  }
9968
9969
  // optional sfixed64 sf64 = 13;
9970
0
  if (cached_has_bits & 0x00008000u) {
9971
0
    ::google::protobuf::internal::WireFormatLite::WriteSFixed64(13, this->sf64(), output);
9972
0
  }
9973
9974
  // optional sint32 si32 = 14;
9975
0
  if (cached_has_bits & 0x00020000u) {
9976
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt32(14, this->si32(), output);
9977
0
  }
9978
9979
  // optional sint64 si64 = 15;
9980
0
  if (cached_has_bits & 0x00010000u) {
9981
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt64(15, this->si64(), output);
9982
0
  }
9983
9984
  // repeated uint32 ru32 = 16;
9985
0
  for (int i = 0, n = this->ru32_size(); i < n; i++) {
9986
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
9987
0
      16, this->ru32(i), output);
9988
0
  }
9989
9990
  // repeated fixed32 rf32 = 17;
9991
0
  for (int i = 0, n = this->rf32_size(); i < n; i++) {
9992
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(
9993
0
      17, this->rf32(i), output);
9994
0
  }
9995
9996
  // repeated string rstr = 18;
9997
0
  for (int i = 0, n = this->rstr_size(); i < n; i++) {
9998
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9999
0
      this->rstr(i).data(), static_cast<int>(this->rstr(i).length()),
10000
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10001
0
      "yb.rpc_test.LightweightResponsePB.rstr");
10002
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
10003
0
      18, this->rstr(i), output);
10004
0
  }
10005
10006
  // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
10007
0
  if (cached_has_bits & 0x00000008u) {
10008
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10009
0
      19, *this->message_, output);
10010
0
  }
10011
10012
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
10013
0
  for (unsigned int i = 0,
10014
0
      n = static_cast<unsigned int>(this->repeated_messages_size()); i < n; i++) {
10015
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10016
0
      20, this->repeated_messages(static_cast<int>(i)), output);
10017
0
  }
10018
10019
  // repeated uint64 packed_u64 = 21 [packed = true];
10020
0
  if (this->packed_u64_size() > 0) {
10021
0
    ::google::protobuf::internal::WireFormatLite::WriteTag(21, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
10022
0
    output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
10023
0
        _packed_u64_cached_byte_size_));
10024
0
  }
10025
0
  for (int i = 0, n = this->packed_u64_size(); i < n; i++) {
10026
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
10027
0
      this->packed_u64(i), output);
10028
0
  }
10029
10030
  // repeated fixed32 packed_f32 = 22 [packed = true];
10031
0
  if (this->packed_f32_size() > 0) {
10032
0
    ::google::protobuf::internal::WireFormatLite::WriteTag(22, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
10033
0
    output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
10034
0
        _packed_f32_cached_byte_size_));
10035
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32Array(
10036
0
      this->packed_f32().data(), this->packed_f32_size(), output);
10037
0
  }
10038
10039
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
10040
0
  for (unsigned int i = 0,
10041
0
      n = static_cast<unsigned int>(this->pairs_size()); i < n; i++) {
10042
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10043
0
      23, this->pairs(static_cast<int>(i)), output);
10044
0
  }
10045
10046
  // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
10047
0
  if (cached_has_bits & 0x00000010u) {
10048
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10049
0
      24, *this->ptr_message_, output);
10050
0
  }
10051
10052
  // map<string, int64> map = 25;
10053
0
  if (!this->map().empty()) {
10054
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_pointer
10055
0
        ConstPtr;
10056
0
    typedef ConstPtr SortItem;
10057
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
10058
0
    struct Utf8Check {
10059
0
      static void Check(ConstPtr p) {
10060
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10061
0
          p->first.data(), static_cast<int>(p->first.length()),
10062
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
10063
0
          "yb.rpc_test.LightweightResponsePB.MapEntry.key");
10064
0
      }
10065
0
    };
10066
10067
0
    if (output->IsSerializationDeterministic() &&
10068
0
        this->map().size() > 1) {
10069
0
      ::google::protobuf::scoped_array<SortItem> items(
10070
0
          new SortItem[this->map().size()]);
10071
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::size_type size_type;
10072
0
      size_type n = 0;
10073
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
10074
0
          it = this->map().begin();
10075
0
          it != this->map().end(); ++it, ++n) {
10076
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
10077
0
      }
10078
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
10079
0
      ::google::protobuf::scoped_ptr<LightweightResponsePB_MapEntry_DoNotUse> entry;
10080
0
      for (size_type i = 0; i < n; i++) {
10081
0
        entry.reset(map_.NewEntryWrapper(
10082
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
10083
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10084
0
            25, *entry, output);
10085
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
10086
0
      }
10087
0
    } else {
10088
0
      ::google::protobuf::scoped_ptr<LightweightResponsePB_MapEntry_DoNotUse> entry;
10089
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
10090
0
          it = this->map().begin();
10091
0
          it != this->map().end(); ++it) {
10092
0
        entry.reset(map_.NewEntryWrapper(
10093
0
            it->first, it->second));
10094
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10095
0
            25, *entry, output);
10096
0
        Utf8Check::Check(&*it);
10097
0
      }
10098
0
    }
10099
0
  }
10100
10101
  // optional string short_debug_string = 100;
10102
0
  if (cached_has_bits & 0x00000004u) {
10103
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10104
0
      this->short_debug_string().data(), static_cast<int>(this->short_debug_string().length()),
10105
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10106
0
      "yb.rpc_test.LightweightResponsePB.short_debug_string");
10107
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10108
0
      100, this->short_debug_string(), output);
10109
0
  }
10110
10111
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages_copy = 120;
10112
0
  for (unsigned int i = 0,
10113
0
      n = static_cast<unsigned int>(this->repeated_messages_copy_size()); i < n; i++) {
10114
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10115
0
      120, this->repeated_messages_copy(static_cast<int>(i)), output);
10116
0
  }
10117
10118
0
  if (_internal_metadata_.have_unknown_fields()) {
10119
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10120
0
        _internal_metadata_.unknown_fields(), output);
10121
0
  }
10122
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.LightweightResponsePB)
10123
0
}
10124
10125
::google::protobuf::uint8* LightweightResponsePB::InternalSerializeWithCachedSizesToArray(
10126
0
    bool deterministic, ::google::protobuf::uint8* target) const {
10127
0
  (void)deterministic; // Unused
10128
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.LightweightResponsePB)
10129
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10130
0
  (void) cached_has_bits;
10131
10132
0
  cached_has_bits = _has_bits_[0];
10133
  // optional int32 i32 = 1;
10134
0
  if (cached_has_bits & 0x00000040u) {
10135
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->i32(), target);
10136
0
  }
10137
10138
  // optional int64 i64 = 2;
10139
0
  if (cached_has_bits & 0x00000020u) {
10140
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->i64(), target);
10141
0
  }
10142
10143
  // optional fixed32 f32 = 3;
10144
0
  if (cached_has_bits & 0x00000080u) {
10145
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(3, this->f32(), target);
10146
0
  }
10147
10148
  // optional fixed64 f64 = 4;
10149
0
  if (cached_has_bits & 0x00000100u) {
10150
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->f64(), target);
10151
0
  }
10152
10153
  // optional uint32 u32 = 5;
10154
0
  if (cached_has_bits & 0x00000400u) {
10155
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->u32(), target);
10156
0
  }
10157
10158
  // optional uint64 u64 = 6;
10159
0
  if (cached_has_bits & 0x00000200u) {
10160
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->u64(), target);
10161
0
  }
10162
10163
  // optional float r32 = 7;
10164
0
  if (cached_has_bits & 0x00000800u) {
10165
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->r32(), target);
10166
0
  }
10167
10168
  // optional double r64 = 8;
10169
0
  if (cached_has_bits & 0x00001000u) {
10170
0
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->r64(), target);
10171
0
  }
10172
10173
  // optional string str = 9;
10174
0
  if (cached_has_bits & 0x00000001u) {
10175
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10176
0
      this->str().data(), static_cast<int>(this->str().length()),
10177
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10178
0
      "yb.rpc_test.LightweightResponsePB.str");
10179
0
    target =
10180
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10181
0
        9, this->str(), target);
10182
0
  }
10183
10184
  // optional bytes bytes = 10;
10185
0
  if (cached_has_bits & 0x00000002u) {
10186
0
    target =
10187
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10188
0
        10, this->bytes(), target);
10189
0
  }
10190
10191
  // optional .yb.rpc_test.LightweightEnum en = 11;
10192
0
  if (cached_has_bits & 0x00002000u) {
10193
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10194
0
      11, this->en(), target);
10195
0
  }
10196
10197
  // optional sfixed32 sf32 = 12;
10198
0
  if (cached_has_bits & 0x00004000u) {
10199
0
    target = ::google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray(12, this->sf32(), target);
10200
0
  }
10201
10202
  // optional sfixed64 sf64 = 13;
10203
0
  if (cached_has_bits & 0x00008000u) {
10204
0
    target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(13, this->sf64(), target);
10205
0
  }
10206
10207
  // optional sint32 si32 = 14;
10208
0
  if (cached_has_bits & 0x00020000u) {
10209
0
    target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(14, this->si32(), target);
10210
0
  }
10211
10212
  // optional sint64 si64 = 15;
10213
0
  if (cached_has_bits & 0x00010000u) {
10214
0
    target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(15, this->si64(), target);
10215
0
  }
10216
10217
  // repeated uint32 ru32 = 16;
10218
0
  target = ::google::protobuf::internal::WireFormatLite::
10219
0
    WriteUInt32ToArray(16, this->ru32_, target);
10220
10221
  // repeated fixed32 rf32 = 17;
10222
0
  target = ::google::protobuf::internal::WireFormatLite::
10223
0
    WriteFixed32ToArray(17, this->rf32_, target);
10224
10225
  // repeated string rstr = 18;
10226
0
  for (int i = 0, n = this->rstr_size(); i < n; i++) {
10227
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10228
0
      this->rstr(i).data(), static_cast<int>(this->rstr(i).length()),
10229
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10230
0
      "yb.rpc_test.LightweightResponsePB.rstr");
10231
0
    target = ::google::protobuf::internal::WireFormatLite::
10232
0
      WriteStringToArray(18, this->rstr(i), target);
10233
0
  }
10234
10235
  // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
10236
0
  if (cached_has_bits & 0x00000008u) {
10237
0
    target = ::google::protobuf::internal::WireFormatLite::
10238
0
      InternalWriteMessageToArray(
10239
0
        19, *this->message_, deterministic, target);
10240
0
  }
10241
10242
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
10243
0
  for (unsigned int i = 0,
10244
0
      n = static_cast<unsigned int>(this->repeated_messages_size()); i < n; i++) {
10245
0
    target = ::google::protobuf::internal::WireFormatLite::
10246
0
      InternalWriteMessageToArray(
10247
0
        20, this->repeated_messages(static_cast<int>(i)), deterministic, target);
10248
0
  }
10249
10250
  // repeated uint64 packed_u64 = 21 [packed = true];
10251
0
  if (this->packed_u64_size() > 0) {
10252
0
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
10253
0
      21,
10254
0
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
10255
0
      target);
10256
0
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
10257
0
        static_cast< ::google::protobuf::int32>(
10258
0
            _packed_u64_cached_byte_size_), target);
10259
0
    target = ::google::protobuf::internal::WireFormatLite::
10260
0
      WriteUInt64NoTagToArray(this->packed_u64_, target);
10261
0
  }
10262
10263
  // repeated fixed32 packed_f32 = 22 [packed = true];
10264
0
  if (this->packed_f32_size() > 0) {
10265
0
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
10266
0
      22,
10267
0
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
10268
0
      target);
10269
0
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
10270
0
        static_cast< ::google::protobuf::int32>(
10271
0
            _packed_f32_cached_byte_size_), target);
10272
0
    target = ::google::protobuf::internal::WireFormatLite::
10273
0
      WriteFixed32NoTagToArray(this->packed_f32_, target);
10274
0
  }
10275
10276
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
10277
0
  for (unsigned int i = 0,
10278
0
      n = static_cast<unsigned int>(this->pairs_size()); i < n; i++) {
10279
0
    target = ::google::protobuf::internal::WireFormatLite::
10280
0
      InternalWriteMessageToArray(
10281
0
        23, this->pairs(static_cast<int>(i)), deterministic, target);
10282
0
  }
10283
10284
  // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
10285
0
  if (cached_has_bits & 0x00000010u) {
10286
0
    target = ::google::protobuf::internal::WireFormatLite::
10287
0
      InternalWriteMessageToArray(
10288
0
        24, *this->ptr_message_, deterministic, target);
10289
0
  }
10290
10291
  // map<string, int64> map = 25;
10292
0
  if (!this->map().empty()) {
10293
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_pointer
10294
0
        ConstPtr;
10295
0
    typedef ConstPtr SortItem;
10296
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
10297
0
    struct Utf8Check {
10298
0
      static void Check(ConstPtr p) {
10299
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10300
0
          p->first.data(), static_cast<int>(p->first.length()),
10301
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
10302
0
          "yb.rpc_test.LightweightResponsePB.MapEntry.key");
10303
0
      }
10304
0
    };
10305
10306
0
    if (deterministic &&
10307
0
        this->map().size() > 1) {
10308
0
      ::google::protobuf::scoped_array<SortItem> items(
10309
0
          new SortItem[this->map().size()]);
10310
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::size_type size_type;
10311
0
      size_type n = 0;
10312
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
10313
0
          it = this->map().begin();
10314
0
          it != this->map().end(); ++it, ++n) {
10315
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
10316
0
      }
10317
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
10318
0
      ::google::protobuf::scoped_ptr<LightweightResponsePB_MapEntry_DoNotUse> entry;
10319
0
      for (size_type i = 0; i < n; i++) {
10320
0
        entry.reset(map_.NewEntryWrapper(
10321
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
10322
0
        target = ::google::protobuf::internal::WireFormatLite::
10323
0
                   InternalWriteMessageNoVirtualToArray(
10324
0
                       25, *entry, deterministic, target);
10325
0
;
10326
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
10327
0
      }
10328
0
    } else {
10329
0
      ::google::protobuf::scoped_ptr<LightweightResponsePB_MapEntry_DoNotUse> entry;
10330
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
10331
0
          it = this->map().begin();
10332
0
          it != this->map().end(); ++it) {
10333
0
        entry.reset(map_.NewEntryWrapper(
10334
0
            it->first, it->second));
10335
0
        target = ::google::protobuf::internal::WireFormatLite::
10336
0
                   InternalWriteMessageNoVirtualToArray(
10337
0
                       25, *entry, deterministic, target);
10338
0
;
10339
0
        Utf8Check::Check(&*it);
10340
0
      }
10341
0
    }
10342
0
  }
10343
10344
  // optional string short_debug_string = 100;
10345
0
  if (cached_has_bits & 0x00000004u) {
10346
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10347
0
      this->short_debug_string().data(), static_cast<int>(this->short_debug_string().length()),
10348
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10349
0
      "yb.rpc_test.LightweightResponsePB.short_debug_string");
10350
0
    target =
10351
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10352
0
        100, this->short_debug_string(), target);
10353
0
  }
10354
10355
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages_copy = 120;
10356
0
  for (unsigned int i = 0,
10357
0
      n = static_cast<unsigned int>(this->repeated_messages_copy_size()); i < n; i++) {
10358
0
    target = ::google::protobuf::internal::WireFormatLite::
10359
0
      InternalWriteMessageToArray(
10360
0
        120, this->repeated_messages_copy(static_cast<int>(i)), deterministic, target);
10361
0
  }
10362
10363
0
  if (_internal_metadata_.have_unknown_fields()) {
10364
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10365
0
        _internal_metadata_.unknown_fields(), target);
10366
0
  }
10367
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.LightweightResponsePB)
10368
0
  return target;
10369
0
}
10370
10371
0
size_t LightweightResponsePB::ByteSizeLong() const {
10372
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.LightweightResponsePB)
10373
0
  size_t total_size = 0;
10374
10375
0
  if (_internal_metadata_.have_unknown_fields()) {
10376
0
    total_size +=
10377
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10378
0
        _internal_metadata_.unknown_fields());
10379
0
  }
10380
  // repeated uint32 ru32 = 16;
10381
0
  {
10382
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
10383
0
      UInt32Size(this->ru32_);
10384
0
    total_size += 2 *
10385
0
                  ::google::protobuf::internal::FromIntSize(this->ru32_size());
10386
0
    total_size += data_size;
10387
0
  }
10388
10389
  // repeated fixed32 rf32 = 17;
10390
0
  {
10391
0
    unsigned int count = static_cast<unsigned int>(this->rf32_size());
10392
0
    size_t data_size = 4UL * count;
10393
0
    total_size += 2 *
10394
0
                  ::google::protobuf::internal::FromIntSize(this->rf32_size());
10395
0
    total_size += data_size;
10396
0
  }
10397
10398
  // repeated string rstr = 18;
10399
0
  total_size += 2 *
10400
0
      ::google::protobuf::internal::FromIntSize(this->rstr_size());
10401
0
  for (int i = 0, n = this->rstr_size(); i < n; i++) {
10402
0
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
10403
0
      this->rstr(i));
10404
0
  }
10405
10406
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages = 20;
10407
0
  {
10408
0
    unsigned int count = static_cast<unsigned int>(this->repeated_messages_size());
10409
0
    total_size += 2UL * count;
10410
0
    for (unsigned int i = 0; i < count; i++) {
10411
0
      total_size +=
10412
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10413
0
          this->repeated_messages(static_cast<int>(i)));
10414
0
    }
10415
0
  }
10416
10417
  // repeated uint64 packed_u64 = 21 [packed = true];
10418
0
  {
10419
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
10420
0
      UInt64Size(this->packed_u64_);
10421
0
    if (data_size > 0) {
10422
0
      total_size += 2 +
10423
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
10424
0
            static_cast< ::google::protobuf::int32>(data_size));
10425
0
    }
10426
0
    int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
10427
0
    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10428
0
    _packed_u64_cached_byte_size_ = cached_size;
10429
0
    GOOGLE_SAFE_CONCURRENT_WRITES_END();
10430
0
    total_size += data_size;
10431
0
  }
10432
10433
  // repeated fixed32 packed_f32 = 22 [packed = true];
10434
0
  {
10435
0
    unsigned int count = static_cast<unsigned int>(this->packed_f32_size());
10436
0
    size_t data_size = 4UL * count;
10437
0
    if (data_size > 0) {
10438
0
      total_size += 2 +
10439
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
10440
0
            static_cast< ::google::protobuf::int32>(data_size));
10441
0
    }
10442
0
    int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
10443
0
    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10444
0
    _packed_f32_cached_byte_size_ = cached_size;
10445
0
    GOOGLE_SAFE_CONCURRENT_WRITES_END();
10446
0
    total_size += data_size;
10447
0
  }
10448
10449
  // repeated .yb.rpc_test.LightweightPairPB pairs = 23;
10450
0
  {
10451
0
    unsigned int count = static_cast<unsigned int>(this->pairs_size());
10452
0
    total_size += 2UL * count;
10453
0
    for (unsigned int i = 0; i < count; i++) {
10454
0
      total_size +=
10455
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10456
0
          this->pairs(static_cast<int>(i)));
10457
0
    }
10458
0
  }
10459
10460
  // map<string, int64> map = 25;
10461
0
  total_size += 2 *
10462
0
      ::google::protobuf::internal::FromIntSize(this->map_size());
10463
0
  {
10464
0
    ::google::protobuf::scoped_ptr<LightweightResponsePB_MapEntry_DoNotUse> entry;
10465
0
    for (::google::protobuf::Map< ::std::string, ::google::protobuf::int64 >::const_iterator
10466
0
        it = this->map().begin();
10467
0
        it != this->map().end(); ++it) {
10468
0
      entry.reset(map_.NewEntryWrapper(it->first, it->second));
10469
0
      total_size += ::google::protobuf::internal::WireFormatLite::
10470
0
          MessageSizeNoVirtual(*entry);
10471
0
    }
10472
0
  }
10473
10474
  // repeated .yb.rpc_test.LightweightSubMessagePB repeated_messages_copy = 120;
10475
0
  {
10476
0
    unsigned int count = static_cast<unsigned int>(this->repeated_messages_copy_size());
10477
0
    total_size += 2UL * count;
10478
0
    for (unsigned int i = 0; i < count; i++) {
10479
0
      total_size +=
10480
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10481
0
          this->repeated_messages_copy(static_cast<int>(i)));
10482
0
    }
10483
0
  }
10484
10485
0
  if (_has_bits_[0 / 32] & 255u) {
10486
    // optional string str = 9;
10487
0
    if (has_str()) {
10488
0
      total_size += 1 +
10489
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
10490
0
          this->str());
10491
0
    }
10492
10493
    // optional bytes bytes = 10;
10494
0
    if (has_bytes()) {
10495
0
      total_size += 1 +
10496
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10497
0
          this->bytes());
10498
0
    }
10499
10500
    // optional string short_debug_string = 100;
10501
0
    if (has_short_debug_string()) {
10502
0
      total_size += 2 +
10503
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
10504
0
          this->short_debug_string());
10505
0
    }
10506
10507
    // optional .yb.rpc_test.LightweightSubMessagePB message = 19;
10508
0
    if (has_message()) {
10509
0
      total_size += 2 +
10510
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10511
0
          *this->message_);
10512
0
    }
10513
10514
    // optional .yb.rpc_test.LightweightSubMessagePB ptr_message = 24 [(.yb.rpc.lightweight_field) = {
10515
0
    if (has_ptr_message()) {
10516
0
      total_size += 2 +
10517
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10518
0
          *this->ptr_message_);
10519
0
    }
10520
10521
    // optional int64 i64 = 2;
10522
0
    if (has_i64()) {
10523
0
      total_size += 1 +
10524
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
10525
0
          this->i64());
10526
0
    }
10527
10528
    // optional int32 i32 = 1;
10529
0
    if (has_i32()) {
10530
0
      total_size += 1 +
10531
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
10532
0
          this->i32());
10533
0
    }
10534
10535
    // optional fixed32 f32 = 3;
10536
0
    if (has_f32()) {
10537
0
      total_size += 1 + 4;
10538
0
    }
10539
10540
0
  }
10541
0
  if (_has_bits_[8 / 32] & 65280u) {
10542
    // optional fixed64 f64 = 4;
10543
0
    if (has_f64()) {
10544
0
      total_size += 1 + 8;
10545
0
    }
10546
10547
    // optional uint64 u64 = 6;
10548
0
    if (has_u64()) {
10549
0
      total_size += 1 +
10550
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
10551
0
          this->u64());
10552
0
    }
10553
10554
    // optional uint32 u32 = 5;
10555
0
    if (has_u32()) {
10556
0
      total_size += 1 +
10557
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
10558
0
          this->u32());
10559
0
    }
10560
10561
    // optional float r32 = 7;
10562
0
    if (has_r32()) {
10563
0
      total_size += 1 + 4;
10564
0
    }
10565
10566
    // optional double r64 = 8;
10567
0
    if (has_r64()) {
10568
0
      total_size += 1 + 8;
10569
0
    }
10570
10571
    // optional .yb.rpc_test.LightweightEnum en = 11;
10572
0
    if (has_en()) {
10573
0
      total_size += 1 +
10574
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->en());
10575
0
    }
10576
10577
    // optional sfixed32 sf32 = 12;
10578
0
    if (has_sf32()) {
10579
0
      total_size += 1 + 4;
10580
0
    }
10581
10582
    // optional sfixed64 sf64 = 13;
10583
0
    if (has_sf64()) {
10584
0
      total_size += 1 + 8;
10585
0
    }
10586
10587
0
  }
10588
0
  if (_has_bits_[16 / 32] & 196608u) {
10589
    // optional sint64 si64 = 15;
10590
0
    if (has_si64()) {
10591
0
      total_size += 1 +
10592
0
        ::google::protobuf::internal::WireFormatLite::SInt64Size(
10593
0
          this->si64());
10594
0
    }
10595
10596
    // optional sint32 si32 = 14;
10597
0
    if (has_si32()) {
10598
0
      total_size += 1 +
10599
0
        ::google::protobuf::internal::WireFormatLite::SInt32Size(
10600
0
          this->si32());
10601
0
    }
10602
10603
0
  }
10604
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10605
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10606
0
  _cached_size_ = cached_size;
10607
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10608
0
  return total_size;
10609
0
}
10610
10611
0
void LightweightResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
10612
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.LightweightResponsePB)
10613
0
  GOOGLE_DCHECK_NE(&from, this);
10614
0
  const LightweightResponsePB* source =
10615
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightResponsePB>(
10616
0
          &from);
10617
0
  if (source == NULL) {
10618
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.LightweightResponsePB)
10619
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10620
0
  } else {
10621
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.LightweightResponsePB)
10622
0
    MergeFrom(*source);
10623
0
  }
10624
0
}
10625
10626
0
void LightweightResponsePB::MergeFrom(const LightweightResponsePB& from) {
10627
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.LightweightResponsePB)
10628
0
  GOOGLE_DCHECK_NE(&from, this);
10629
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10630
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10631
0
  (void) cached_has_bits;
10632
10633
0
  ru32_.MergeFrom(from.ru32_);
10634
0
  rf32_.MergeFrom(from.rf32_);
10635
0
  rstr_.MergeFrom(from.rstr_);
10636
0
  repeated_messages_.MergeFrom(from.repeated_messages_);
10637
0
  packed_u64_.MergeFrom(from.packed_u64_);
10638
0
  packed_f32_.MergeFrom(from.packed_f32_);
10639
0
  pairs_.MergeFrom(from.pairs_);
10640
0
  map_.MergeFrom(from.map_);
10641
0
  repeated_messages_copy_.MergeFrom(from.repeated_messages_copy_);
10642
0
  cached_has_bits = from._has_bits_[0];
10643
0
  if (cached_has_bits & 255u) {
10644
0
    if (cached_has_bits & 0x00000001u) {
10645
0
      set_has_str();
10646
0
      str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
10647
0
    }
10648
0
    if (cached_has_bits & 0x00000002u) {
10649
0
      set_has_bytes();
10650
0
      bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bytes_);
10651
0
    }
10652
0
    if (cached_has_bits & 0x00000004u) {
10653
0
      set_has_short_debug_string();
10654
0
      short_debug_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_debug_string_);
10655
0
    }
10656
0
    if (cached_has_bits & 0x00000008u) {
10657
0
      mutable_message()->::yb::rpc_test::LightweightSubMessagePB::MergeFrom(from.message());
10658
0
    }
10659
0
    if (cached_has_bits & 0x00000010u) {
10660
0
      mutable_ptr_message()->::yb::rpc_test::LightweightSubMessagePB::MergeFrom(from.ptr_message());
10661
0
    }
10662
0
    if (cached_has_bits & 0x00000020u) {
10663
0
      i64_ = from.i64_;
10664
0
    }
10665
0
    if (cached_has_bits & 0x00000040u) {
10666
0
      i32_ = from.i32_;
10667
0
    }
10668
0
    if (cached_has_bits & 0x00000080u) {
10669
0
      f32_ = from.f32_;
10670
0
    }
10671
0
    _has_bits_[0] |= cached_has_bits;
10672
0
  }
10673
0
  if (cached_has_bits & 65280u) {
10674
0
    if (cached_has_bits & 0x00000100u) {
10675
0
      f64_ = from.f64_;
10676
0
    }
10677
0
    if (cached_has_bits & 0x00000200u) {
10678
0
      u64_ = from.u64_;
10679
0
    }
10680
0
    if (cached_has_bits & 0x00000400u) {
10681
0
      u32_ = from.u32_;
10682
0
    }
10683
0
    if (cached_has_bits & 0x00000800u) {
10684
0
      r32_ = from.r32_;
10685
0
    }
10686
0
    if (cached_has_bits & 0x00001000u) {
10687
0
      r64_ = from.r64_;
10688
0
    }
10689
0
    if (cached_has_bits & 0x00002000u) {
10690
0
      en_ = from.en_;
10691
0
    }
10692
0
    if (cached_has_bits & 0x00004000u) {
10693
0
      sf32_ = from.sf32_;
10694
0
    }
10695
0
    if (cached_has_bits & 0x00008000u) {
10696
0
      sf64_ = from.sf64_;
10697
0
    }
10698
0
    _has_bits_[0] |= cached_has_bits;
10699
0
  }
10700
0
  if (cached_has_bits & 196608u) {
10701
0
    if (cached_has_bits & 0x00010000u) {
10702
0
      si64_ = from.si64_;
10703
0
    }
10704
0
    if (cached_has_bits & 0x00020000u) {
10705
0
      si32_ = from.si32_;
10706
0
    }
10707
0
    _has_bits_[0] |= cached_has_bits;
10708
0
  }
10709
0
}
10710
10711
0
void LightweightResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
10712
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.LightweightResponsePB)
10713
0
  if (&from == this) return;
10714
0
  Clear();
10715
0
  MergeFrom(from);
10716
0
}
10717
10718
0
void LightweightResponsePB::CopyFrom(const LightweightResponsePB& from) {
10719
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.LightweightResponsePB)
10720
0
  if (&from == this) return;
10721
0
  Clear();
10722
0
  MergeFrom(from);
10723
0
}
10724
10725
1
bool LightweightResponsePB::IsInitialized() const {
10726
1
  return true;
10727
1
}
10728
10729
0
void LightweightResponsePB::Swap(LightweightResponsePB* other) {
10730
0
  if (other == this) return;
10731
0
  InternalSwap(other);
10732
0
}
10733
0
void LightweightResponsePB::InternalSwap(LightweightResponsePB* other) {
10734
0
  using std::swap;
10735
0
  ru32_.InternalSwap(&other->ru32_);
10736
0
  rf32_.InternalSwap(&other->rf32_);
10737
0
  rstr_.InternalSwap(&other->rstr_);
10738
0
  repeated_messages_.InternalSwap(&other->repeated_messages_);
10739
0
  packed_u64_.InternalSwap(&other->packed_u64_);
10740
0
  packed_f32_.InternalSwap(&other->packed_f32_);
10741
0
  pairs_.InternalSwap(&other->pairs_);
10742
0
  map_.Swap(&other->map_);
10743
0
  repeated_messages_copy_.InternalSwap(&other->repeated_messages_copy_);
10744
0
  str_.Swap(&other->str_);
10745
0
  bytes_.Swap(&other->bytes_);
10746
0
  short_debug_string_.Swap(&other->short_debug_string_);
10747
0
  swap(message_, other->message_);
10748
0
  swap(ptr_message_, other->ptr_message_);
10749
0
  swap(i64_, other->i64_);
10750
0
  swap(i32_, other->i32_);
10751
0
  swap(f32_, other->f32_);
10752
0
  swap(f64_, other->f64_);
10753
0
  swap(u64_, other->u64_);
10754
0
  swap(u32_, other->u32_);
10755
0
  swap(r32_, other->r32_);
10756
0
  swap(r64_, other->r64_);
10757
0
  swap(en_, other->en_);
10758
0
  swap(sf32_, other->sf32_);
10759
0
  swap(sf64_, other->sf64_);
10760
0
  swap(si64_, other->si64_);
10761
0
  swap(si32_, other->si32_);
10762
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10763
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10764
0
  swap(_cached_size_, other->_cached_size_);
10765
0
}
10766
10767
4
::google::protobuf::Metadata LightweightResponsePB::GetMetadata() const {
10768
4
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
10769
4
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
10770
4
}
10771
10772
10773
// ===================================================================
10774
10775
123
void TrivialRequestPB::InitAsDefaultInstance() {
10776
123
}
10777
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10778
const int TrivialRequestPB::kValueFieldNumber;
10779
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10780
10781
TrivialRequestPB::TrivialRequestPB()
10782
126
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10783
126
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10784
3
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialRequestPB();
10785
3
  }
10786
126
  SharedCtor();
10787
  // @@protoc_insertion_point(constructor:yb.rpc_test.TrivialRequestPB)
10788
126
}
10789
TrivialRequestPB::TrivialRequestPB(const TrivialRequestPB& from)
10790
  : ::google::protobuf::Message(),
10791
      _internal_metadata_(NULL),
10792
      _has_bits_(from._has_bits_),
10793
0
      _cached_size_(0) {
10794
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10795
0
  value_ = from.value_;
10796
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.TrivialRequestPB)
10797
0
}
10798
10799
126
void TrivialRequestPB::SharedCtor() {
10800
126
  _cached_size_ = 0;
10801
126
  value_ = 0;
10802
126
}
10803
10804
3
TrivialRequestPB::~TrivialRequestPB() {
10805
  // @@protoc_insertion_point(destructor:yb.rpc_test.TrivialRequestPB)
10806
3
  SharedDtor();
10807
3
}
10808
10809
3
void TrivialRequestPB::SharedDtor() {
10810
3
}
10811
10812
0
void TrivialRequestPB::SetCachedSize(int size) const {
10813
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10814
0
  _cached_size_ = size;
10815
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10816
0
}
10817
0
const ::google::protobuf::Descriptor* TrivialRequestPB::descriptor() {
10818
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
10819
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10820
0
}
10821
10822
0
const TrivialRequestPB& TrivialRequestPB::default_instance() {
10823
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialRequestPB();
10824
0
  return *internal_default_instance();
10825
0
}
10826
10827
0
TrivialRequestPB* TrivialRequestPB::New(::google::protobuf::Arena* arena) const {
10828
0
  TrivialRequestPB* n = new TrivialRequestPB;
10829
0
  if (arena != NULL) {
10830
0
    arena->Own(n);
10831
0
  }
10832
0
  return n;
10833
0
}
10834
10835
2
void TrivialRequestPB::Clear() {
10836
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.TrivialRequestPB)
10837
2
  ::google::protobuf::uint32 cached_has_bits = 0;
10838
  // Prevent compiler warnings about cached_has_bits being unused
10839
2
  (void) cached_has_bits;
10840
10841
2
  value_ = 0;
10842
2
  _has_bits_.Clear();
10843
2
  _internal_metadata_.Clear();
10844
2
}
10845
10846
bool TrivialRequestPB::MergePartialFromCodedStream(
10847
2
    ::google::protobuf::io::CodedInputStream* input) {
10848
2
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
10849
2
  ::google::protobuf::uint32 tag;
10850
  // @@protoc_insertion_point(parse_start:yb.rpc_test.TrivialRequestPB)
10851
4
  for (;;) {
10852
4
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10853
4
    tag = p.first;
10854
4
    if (!p.second) 
goto handle_unusual2
;
10855
2
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10856
      // optional int32 value = 1;
10857
2
      case 1: {
10858
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10859
2
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10860
2
          set_has_value();
10861
2
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10862
2
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10863
2
                 input, &value_)));
10864
2
        } else {
10865
0
          goto handle_unusual;
10866
0
        }
10867
2
        break;
10868
2
      }
10869
10870
2
      default: {
10871
2
      handle_unusual:
10872
2
        if (tag == 0) {
10873
2
          goto success;
10874
2
        }
10875
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10876
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10877
0
        break;
10878
0
      }
10879
2
    }
10880
2
  }
10881
2
success:
10882
  // @@protoc_insertion_point(parse_success:yb.rpc_test.TrivialRequestPB)
10883
2
  return true;
10884
0
failure:
10885
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.TrivialRequestPB)
10886
0
  return false;
10887
2
#undef DO_
10888
2
}
10889
10890
void TrivialRequestPB::SerializeWithCachedSizes(
10891
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10892
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.TrivialRequestPB)
10893
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10894
0
  (void) cached_has_bits;
10895
10896
0
  cached_has_bits = _has_bits_[0];
10897
  // optional int32 value = 1;
10898
0
  if (cached_has_bits & 0x00000001u) {
10899
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output);
10900
0
  }
10901
10902
0
  if (_internal_metadata_.have_unknown_fields()) {
10903
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10904
0
        _internal_metadata_.unknown_fields(), output);
10905
0
  }
10906
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.TrivialRequestPB)
10907
0
}
10908
10909
::google::protobuf::uint8* TrivialRequestPB::InternalSerializeWithCachedSizesToArray(
10910
2
    bool deterministic, ::google::protobuf::uint8* target) const {
10911
2
  (void)deterministic; // Unused
10912
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.TrivialRequestPB)
10913
2
  ::google::protobuf::uint32 cached_has_bits = 0;
10914
2
  (void) cached_has_bits;
10915
10916
2
  cached_has_bits = _has_bits_[0];
10917
  // optional int32 value = 1;
10918
2
  if (cached_has_bits & 0x00000001u) {
10919
2
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target);
10920
2
  }
10921
10922
2
  if (_internal_metadata_.have_unknown_fields()) {
10923
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10924
0
        _internal_metadata_.unknown_fields(), target);
10925
0
  }
10926
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.TrivialRequestPB)
10927
2
  return target;
10928
2
}
10929
10930
4
size_t TrivialRequestPB::ByteSizeLong() const {
10931
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.TrivialRequestPB)
10932
4
  size_t total_size = 0;
10933
10934
4
  if (_internal_metadata_.have_unknown_fields()) {
10935
0
    total_size +=
10936
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10937
0
        _internal_metadata_.unknown_fields());
10938
0
  }
10939
  // optional int32 value = 1;
10940
4
  if (has_value()) {
10941
4
    total_size += 1 +
10942
4
      ::google::protobuf::internal::WireFormatLite::Int32Size(
10943
4
        this->value());
10944
4
  }
10945
10946
4
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10947
4
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10948
4
  _cached_size_ = cached_size;
10949
4
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10950
4
  return total_size;
10951
4
}
10952
10953
0
void TrivialRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
10954
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.TrivialRequestPB)
10955
0
  GOOGLE_DCHECK_NE(&from, this);
10956
0
  const TrivialRequestPB* source =
10957
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TrivialRequestPB>(
10958
0
          &from);
10959
0
  if (source == NULL) {
10960
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.TrivialRequestPB)
10961
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10962
0
  } else {
10963
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.TrivialRequestPB)
10964
0
    MergeFrom(*source);
10965
0
  }
10966
0
}
10967
10968
0
void TrivialRequestPB::MergeFrom(const TrivialRequestPB& from) {
10969
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.TrivialRequestPB)
10970
0
  GOOGLE_DCHECK_NE(&from, this);
10971
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10972
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10973
0
  (void) cached_has_bits;
10974
10975
0
  if (from.has_value()) {
10976
0
    set_value(from.value());
10977
0
  }
10978
0
}
10979
10980
0
void TrivialRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
10981
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.TrivialRequestPB)
10982
0
  if (&from == this) return;
10983
0
  Clear();
10984
0
  MergeFrom(from);
10985
0
}
10986
10987
0
void TrivialRequestPB::CopyFrom(const TrivialRequestPB& from) {
10988
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.TrivialRequestPB)
10989
0
  if (&from == this) return;
10990
0
  Clear();
10991
0
  MergeFrom(from);
10992
0
}
10993
10994
4
bool TrivialRequestPB::IsInitialized() const {
10995
4
  return true;
10996
4
}
10997
10998
0
void TrivialRequestPB::Swap(TrivialRequestPB* other) {
10999
0
  if (other == this) return;
11000
0
  InternalSwap(other);
11001
0
}
11002
0
void TrivialRequestPB::InternalSwap(TrivialRequestPB* other) {
11003
0
  using std::swap;
11004
0
  swap(value_, other->value_);
11005
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11006
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11007
0
  swap(_cached_size_, other->_cached_size_);
11008
0
}
11009
11010
2
::google::protobuf::Metadata TrivialRequestPB::GetMetadata() const {
11011
2
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
11012
2
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
11013
2
}
11014
11015
11016
// ===================================================================
11017
11018
123
void TrivialErrorPB::InitAsDefaultInstance() {
11019
123
}
11020
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11021
const int TrivialErrorPB::kCodeFieldNumber;
11022
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11023
11024
TrivialErrorPB::TrivialErrorPB()
11025
125
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11026
125
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11027
2
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialErrorPB();
11028
2
  }
11029
125
  SharedCtor();
11030
  // @@protoc_insertion_point(constructor:yb.rpc_test.TrivialErrorPB)
11031
125
}
11032
TrivialErrorPB::TrivialErrorPB(const TrivialErrorPB& from)
11033
  : ::google::protobuf::Message(),
11034
      _internal_metadata_(NULL),
11035
      _has_bits_(from._has_bits_),
11036
0
      _cached_size_(0) {
11037
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11038
0
  code_ = from.code_;
11039
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.TrivialErrorPB)
11040
0
}
11041
11042
125
void TrivialErrorPB::SharedCtor() {
11043
125
  _cached_size_ = 0;
11044
125
  code_ = 0;
11045
125
}
11046
11047
2
TrivialErrorPB::~TrivialErrorPB() {
11048
  // @@protoc_insertion_point(destructor:yb.rpc_test.TrivialErrorPB)
11049
2
  SharedDtor();
11050
2
}
11051
11052
2
void TrivialErrorPB::SharedDtor() {
11053
2
}
11054
11055
0
void TrivialErrorPB::SetCachedSize(int size) const {
11056
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11057
0
  _cached_size_ = size;
11058
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11059
0
}
11060
0
const ::google::protobuf::Descriptor* TrivialErrorPB::descriptor() {
11061
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
11062
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11063
0
}
11064
11065
0
const TrivialErrorPB& TrivialErrorPB::default_instance() {
11066
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialErrorPB();
11067
0
  return *internal_default_instance();
11068
0
}
11069
11070
0
TrivialErrorPB* TrivialErrorPB::New(::google::protobuf::Arena* arena) const {
11071
0
  TrivialErrorPB* n = new TrivialErrorPB;
11072
0
  if (arena != NULL) {
11073
0
    arena->Own(n);
11074
0
  }
11075
0
  return n;
11076
0
}
11077
11078
0
void TrivialErrorPB::Clear() {
11079
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.TrivialErrorPB)
11080
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11081
  // Prevent compiler warnings about cached_has_bits being unused
11082
0
  (void) cached_has_bits;
11083
11084
0
  code_ = 0;
11085
0
  _has_bits_.Clear();
11086
0
  _internal_metadata_.Clear();
11087
0
}
11088
11089
bool TrivialErrorPB::MergePartialFromCodedStream(
11090
1
    ::google::protobuf::io::CodedInputStream* input) {
11091
1
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
11092
1
  ::google::protobuf::uint32 tag;
11093
  // @@protoc_insertion_point(parse_start:yb.rpc_test.TrivialErrorPB)
11094
2
  for (;;) {
11095
2
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11096
2
    tag = p.first;
11097
2
    if (!p.second) 
goto handle_unusual1
;
11098
1
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11099
      // optional int32 code = 1;
11100
1
      case 1: {
11101
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11102
1
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11103
1
          set_has_code();
11104
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11105
1
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11106
1
                 input, &code_)));
11107
1
        } else {
11108
0
          goto handle_unusual;
11109
0
        }
11110
1
        break;
11111
1
      }
11112
11113
1
      default: {
11114
1
      handle_unusual:
11115
1
        if (tag == 0) {
11116
1
          goto success;
11117
1
        }
11118
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11119
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11120
0
        break;
11121
0
      }
11122
1
    }
11123
1
  }
11124
1
success:
11125
  // @@protoc_insertion_point(parse_success:yb.rpc_test.TrivialErrorPB)
11126
1
  return true;
11127
0
failure:
11128
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.TrivialErrorPB)
11129
0
  return false;
11130
1
#undef DO_
11131
1
}
11132
11133
void TrivialErrorPB::SerializeWithCachedSizes(
11134
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11135
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.TrivialErrorPB)
11136
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11137
0
  (void) cached_has_bits;
11138
11139
0
  cached_has_bits = _has_bits_[0];
11140
  // optional int32 code = 1;
11141
0
  if (cached_has_bits & 0x00000001u) {
11142
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->code(), output);
11143
0
  }
11144
11145
0
  if (_internal_metadata_.have_unknown_fields()) {
11146
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11147
0
        _internal_metadata_.unknown_fields(), output);
11148
0
  }
11149
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.TrivialErrorPB)
11150
0
}
11151
11152
::google::protobuf::uint8* TrivialErrorPB::InternalSerializeWithCachedSizesToArray(
11153
1
    bool deterministic, ::google::protobuf::uint8* target) const {
11154
1
  (void)deterministic; // Unused
11155
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.TrivialErrorPB)
11156
1
  ::google::protobuf::uint32 cached_has_bits = 0;
11157
1
  (void) cached_has_bits;
11158
11159
1
  cached_has_bits = _has_bits_[0];
11160
  // optional int32 code = 1;
11161
1
  if (cached_has_bits & 0x00000001u) {
11162
1
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->code(), target);
11163
1
  }
11164
11165
1
  if (_internal_metadata_.have_unknown_fields()) {
11166
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11167
0
        _internal_metadata_.unknown_fields(), target);
11168
0
  }
11169
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.TrivialErrorPB)
11170
1
  return target;
11171
1
}
11172
11173
2
size_t TrivialErrorPB::ByteSizeLong() const {
11174
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.TrivialErrorPB)
11175
2
  size_t total_size = 0;
11176
11177
2
  if (_internal_metadata_.have_unknown_fields()) {
11178
0
    total_size +=
11179
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11180
0
        _internal_metadata_.unknown_fields());
11181
0
  }
11182
  // optional int32 code = 1;
11183
2
  if (has_code()) {
11184
2
    total_size += 1 +
11185
2
      ::google::protobuf::internal::WireFormatLite::Int32Size(
11186
2
        this->code());
11187
2
  }
11188
11189
2
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11190
2
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11191
2
  _cached_size_ = cached_size;
11192
2
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11193
2
  return total_size;
11194
2
}
11195
11196
0
void TrivialErrorPB::MergeFrom(const ::google::protobuf::Message& from) {
11197
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.TrivialErrorPB)
11198
0
  GOOGLE_DCHECK_NE(&from, this);
11199
0
  const TrivialErrorPB* source =
11200
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TrivialErrorPB>(
11201
0
          &from);
11202
0
  if (source == NULL) {
11203
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.TrivialErrorPB)
11204
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11205
0
  } else {
11206
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.TrivialErrorPB)
11207
0
    MergeFrom(*source);
11208
0
  }
11209
0
}
11210
11211
0
void TrivialErrorPB::MergeFrom(const TrivialErrorPB& from) {
11212
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.TrivialErrorPB)
11213
0
  GOOGLE_DCHECK_NE(&from, this);
11214
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11215
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11216
0
  (void) cached_has_bits;
11217
11218
0
  if (from.has_code()) {
11219
0
    set_code(from.code());
11220
0
  }
11221
0
}
11222
11223
0
void TrivialErrorPB::CopyFrom(const ::google::protobuf::Message& from) {
11224
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.TrivialErrorPB)
11225
0
  if (&from == this) return;
11226
0
  Clear();
11227
0
  MergeFrom(from);
11228
0
}
11229
11230
0
void TrivialErrorPB::CopyFrom(const TrivialErrorPB& from) {
11231
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.TrivialErrorPB)
11232
0
  if (&from == this) return;
11233
0
  Clear();
11234
0
  MergeFrom(from);
11235
0
}
11236
11237
0
bool TrivialErrorPB::IsInitialized() const {
11238
0
  return true;
11239
0
}
11240
11241
0
void TrivialErrorPB::Swap(TrivialErrorPB* other) {
11242
0
  if (other == this) return;
11243
0
  InternalSwap(other);
11244
0
}
11245
0
void TrivialErrorPB::InternalSwap(TrivialErrorPB* other) {
11246
0
  using std::swap;
11247
0
  swap(code_, other->code_);
11248
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11249
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11250
0
  swap(_cached_size_, other->_cached_size_);
11251
0
}
11252
11253
0
::google::protobuf::Metadata TrivialErrorPB::GetMetadata() const {
11254
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
11255
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
11256
0
}
11257
11258
11259
// ===================================================================
11260
11261
123
void TrivialResponsePB::InitAsDefaultInstance() {
11262
123
  ::yb::rpc_test::_TrivialResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::rpc_test::TrivialErrorPB*>(
11263
123
      ::yb::rpc_test::TrivialErrorPB::internal_default_instance());
11264
123
}
11265
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11266
const int TrivialResponsePB::kErrorFieldNumber;
11267
const int TrivialResponsePB::kValueFieldNumber;
11268
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11269
11270
TrivialResponsePB::TrivialResponsePB()
11271
128
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11272
128
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11273
5
    ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialResponsePB();
11274
5
  }
11275
128
  SharedCtor();
11276
  // @@protoc_insertion_point(constructor:yb.rpc_test.TrivialResponsePB)
11277
128
}
11278
TrivialResponsePB::TrivialResponsePB(const TrivialResponsePB& from)
11279
  : ::google::protobuf::Message(),
11280
      _internal_metadata_(NULL),
11281
      _has_bits_(from._has_bits_),
11282
0
      _cached_size_(0) {
11283
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11284
0
  if (from.has_error()) {
11285
0
    error_ = new ::yb::rpc_test::TrivialErrorPB(*from.error_);
11286
0
  } else {
11287
0
    error_ = NULL;
11288
0
  }
11289
0
  value_ = from.value_;
11290
  // @@protoc_insertion_point(copy_constructor:yb.rpc_test.TrivialResponsePB)
11291
0
}
11292
11293
128
void TrivialResponsePB::SharedCtor() {
11294
128
  _cached_size_ = 0;
11295
128
  ::memset(&error_, 0, static_cast<size_t>(
11296
128
      reinterpret_cast<char*>(&value_) -
11297
128
      reinterpret_cast<char*>(&error_)) + sizeof(value_));
11298
128
}
11299
11300
5
TrivialResponsePB::~TrivialResponsePB() {
11301
  // @@protoc_insertion_point(destructor:yb.rpc_test.TrivialResponsePB)
11302
5
  SharedDtor();
11303
5
}
11304
11305
5
void TrivialResponsePB::SharedDtor() {
11306
5
  if (this != internal_default_instance()) delete error_;
11307
5
}
11308
11309
0
void TrivialResponsePB::SetCachedSize(int size) const {
11310
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11311
0
  _cached_size_ = size;
11312
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11313
0
}
11314
0
const ::google::protobuf::Descriptor* TrivialResponsePB::descriptor() {
11315
0
  ::protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
11316
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11317
0
}
11318
11319
0
const TrivialResponsePB& TrivialResponsePB::default_instance() {
11320
0
  ::protobuf_yb_2frpc_2frtest_2eproto::InitDefaultsTrivialResponsePB();
11321
0
  return *internal_default_instance();
11322
0
}
11323
11324
0
TrivialResponsePB* TrivialResponsePB::New(::google::protobuf::Arena* arena) const {
11325
0
  TrivialResponsePB* n = new TrivialResponsePB;
11326
0
  if (arena != NULL) {
11327
0
    arena->Own(n);
11328
0
  }
11329
0
  return n;
11330
0
}
11331
11332
2
void TrivialResponsePB::Clear() {
11333
// @@protoc_insertion_point(message_clear_start:yb.rpc_test.TrivialResponsePB)
11334
2
  ::google::protobuf::uint32 cached_has_bits = 0;
11335
  // Prevent compiler warnings about cached_has_bits being unused
11336
2
  (void) cached_has_bits;
11337
11338
2
  cached_has_bits = _has_bits_[0];
11339
2
  if (cached_has_bits & 0x00000001u) {
11340
0
    GOOGLE_DCHECK(error_ != NULL);
11341
0
    error_->Clear();
11342
0
  }
11343
2
  value_ = 0;
11344
2
  _has_bits_.Clear();
11345
2
  _internal_metadata_.Clear();
11346
2
}
11347
11348
bool TrivialResponsePB::MergePartialFromCodedStream(
11349
2
    ::google::protobuf::io::CodedInputStream* input) {
11350
2
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
11351
2
  ::google::protobuf::uint32 tag;
11352
  // @@protoc_insertion_point(parse_start:yb.rpc_test.TrivialResponsePB)
11353
4
  for (;;) {
11354
4
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11355
4
    tag = p.first;
11356
4
    if (!p.second) 
goto handle_unusual2
;
11357
2
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11358
      // optional .yb.rpc_test.TrivialErrorPB error = 1;
11359
1
      case 1: {
11360
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11361
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11362
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11363
1
               input, mutable_error()));
11364
1
        } else {
11365
0
          goto handle_unusual;
11366
0
        }
11367
1
        break;
11368
1
      }
11369
11370
      // optional int32 value = 2;
11371
1
      case 2: {
11372
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11373
1
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11374
1
          set_has_value();
11375
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11376
1
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11377
1
                 input, &value_)));
11378
1
        } else {
11379
0
          goto handle_unusual;
11380
0
        }
11381
1
        break;
11382
1
      }
11383
11384
1
      default: {
11385
2
      handle_unusual:
11386
2
        if (tag == 0) {
11387
2
          goto success;
11388
2
        }
11389
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11390
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11391
0
        break;
11392
0
      }
11393
2
    }
11394
2
  }
11395
2
success:
11396
  // @@protoc_insertion_point(parse_success:yb.rpc_test.TrivialResponsePB)
11397
2
  return true;
11398
0
failure:
11399
  // @@protoc_insertion_point(parse_failure:yb.rpc_test.TrivialResponsePB)
11400
0
  return false;
11401
2
#undef DO_
11402
2
}
11403
11404
void TrivialResponsePB::SerializeWithCachedSizes(
11405
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11406
  // @@protoc_insertion_point(serialize_start:yb.rpc_test.TrivialResponsePB)
11407
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11408
0
  (void) cached_has_bits;
11409
11410
0
  cached_has_bits = _has_bits_[0];
11411
  // optional .yb.rpc_test.TrivialErrorPB error = 1;
11412
0
  if (cached_has_bits & 0x00000001u) {
11413
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11414
0
      1, *this->error_, output);
11415
0
  }
11416
11417
  // optional int32 value = 2;
11418
0
  if (cached_has_bits & 0x00000002u) {
11419
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->value(), output);
11420
0
  }
11421
11422
0
  if (_internal_metadata_.have_unknown_fields()) {
11423
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11424
0
        _internal_metadata_.unknown_fields(), output);
11425
0
  }
11426
  // @@protoc_insertion_point(serialize_end:yb.rpc_test.TrivialResponsePB)
11427
0
}
11428
11429
::google::protobuf::uint8* TrivialResponsePB::InternalSerializeWithCachedSizesToArray(
11430
2
    bool deterministic, ::google::protobuf::uint8* target) const {
11431
2
  (void)deterministic; // Unused
11432
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc_test.TrivialResponsePB)
11433
2
  ::google::protobuf::uint32 cached_has_bits = 0;
11434
2
  (void) cached_has_bits;
11435
11436
2
  cached_has_bits = _has_bits_[0];
11437
  // optional .yb.rpc_test.TrivialErrorPB error = 1;
11438
2
  if (cached_has_bits & 0x00000001u) {
11439
1
    target = ::google::protobuf::internal::WireFormatLite::
11440
1
      InternalWriteMessageToArray(
11441
1
        1, *this->error_, deterministic, target);
11442
1
  }
11443
11444
  // optional int32 value = 2;
11445
2
  if (cached_has_bits & 0x00000002u) {
11446
1
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->value(), target);
11447
1
  }
11448
11449
2
  if (_internal_metadata_.have_unknown_fields()) {
11450
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11451
0
        _internal_metadata_.unknown_fields(), target);
11452
0
  }
11453
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc_test.TrivialResponsePB)
11454
2
  return target;
11455
2
}
11456
11457
4
size_t TrivialResponsePB::ByteSizeLong() const {
11458
// @@protoc_insertion_point(message_byte_size_start:yb.rpc_test.TrivialResponsePB)
11459
4
  size_t total_size = 0;
11460
11461
4
  if (_internal_metadata_.have_unknown_fields()) {
11462
0
    total_size +=
11463
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11464
0
        _internal_metadata_.unknown_fields());
11465
0
  }
11466
4
  if (_has_bits_[0 / 32] & 3u) {
11467
    // optional .yb.rpc_test.TrivialErrorPB error = 1;
11468
4
    if (has_error()) {
11469
2
      total_size += 1 +
11470
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
11471
2
          *this->error_);
11472
2
    }
11473
11474
    // optional int32 value = 2;
11475
4
    if (has_value()) {
11476
2
      total_size += 1 +
11477
2
        ::google::protobuf::internal::WireFormatLite::Int32Size(
11478
2
          this->value());
11479
2
    }
11480
11481
4
  }
11482
4
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11483
4
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11484
4
  _cached_size_ = cached_size;
11485
4
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11486
4
  return total_size;
11487
4
}
11488
11489
0
void TrivialResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
11490
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc_test.TrivialResponsePB)
11491
0
  GOOGLE_DCHECK_NE(&from, this);
11492
0
  const TrivialResponsePB* source =
11493
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TrivialResponsePB>(
11494
0
          &from);
11495
0
  if (source == NULL) {
11496
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc_test.TrivialResponsePB)
11497
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11498
0
  } else {
11499
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc_test.TrivialResponsePB)
11500
0
    MergeFrom(*source);
11501
0
  }
11502
0
}
11503
11504
0
void TrivialResponsePB::MergeFrom(const TrivialResponsePB& from) {
11505
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc_test.TrivialResponsePB)
11506
0
  GOOGLE_DCHECK_NE(&from, this);
11507
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11508
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11509
0
  (void) cached_has_bits;
11510
11511
0
  cached_has_bits = from._has_bits_[0];
11512
0
  if (cached_has_bits & 3u) {
11513
0
    if (cached_has_bits & 0x00000001u) {
11514
0
      mutable_error()->::yb::rpc_test::TrivialErrorPB::MergeFrom(from.error());
11515
0
    }
11516
0
    if (cached_has_bits & 0x00000002u) {
11517
0
      value_ = from.value_;
11518
0
    }
11519
0
    _has_bits_[0] |= cached_has_bits;
11520
0
  }
11521
0
}
11522
11523
0
void TrivialResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
11524
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc_test.TrivialResponsePB)
11525
0
  if (&from == this) return;
11526
0
  Clear();
11527
0
  MergeFrom(from);
11528
0
}
11529
11530
0
void TrivialResponsePB::CopyFrom(const TrivialResponsePB& from) {
11531
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc_test.TrivialResponsePB)
11532
0
  if (&from == this) return;
11533
0
  Clear();
11534
0
  MergeFrom(from);
11535
0
}
11536
11537
4
bool TrivialResponsePB::IsInitialized() const {
11538
4
  return true;
11539
4
}
11540
11541
1
void TrivialResponsePB::Swap(TrivialResponsePB* other) {
11542
1
  if (other == this) 
return0
;
11543
1
  InternalSwap(other);
11544
1
}
11545
2
void TrivialResponsePB::InternalSwap(TrivialResponsePB* other) {
11546
2
  using std::swap;
11547
2
  swap(error_, other->error_);
11548
2
  swap(value_, other->value_);
11549
2
  swap(_has_bits_[0], other->_has_bits_[0]);
11550
2
  _internal_metadata_.Swap(&other->_internal_metadata_);
11551
2
  swap(_cached_size_, other->_cached_size_);
11552
2
}
11553
11554
0
::google::protobuf::Metadata TrivialResponsePB::GetMetadata() const {
11555
0
  protobuf_yb_2frpc_2frtest_2eproto::protobuf_AssignDescriptorsOnce();
11556
0
  return ::protobuf_yb_2frpc_2frtest_2eproto::file_level_metadata[kIndexInFileMessages];
11557
0
}
11558
11559
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11560
const int CalculatorError::kAppErrorExtFieldNumber;
11561
#endif
11562
::google::protobuf::internal::ExtensionIdentifier< ::yb::rpc::ErrorStatusPB,
11563
    ::google::protobuf::internal::MessageTypeTraits< ::yb::rpc_test::CalculatorError >, 11, false >
11564
  CalculatorError::app_error_ext(kAppErrorExtFieldNumber, *::yb::rpc_test::CalculatorError::internal_default_instance());
11565
11566
// @@protoc_insertion_point(namespace_scope)
11567
}  // namespace rpc_test
11568
}  // namespace yb
11569
11570
// @@protoc_insertion_point(global_scope)