Coverage Report

Created: 2025-12-17 06:32

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/test/echo.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: echo.proto
3
4
#include "echo.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/io/coded_stream.h>
9
#include <google/protobuf/extension_set.h>
10
#include <google/protobuf/wire_format_lite.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/generated_message_reflection.h>
13
#include <google/protobuf/reflection_ops.h>
14
#include <google/protobuf/wire_format.h>
15
// @@protoc_insertion_point(includes)
16
#include <google/protobuf/port_def.inc>
17
18
PROTOBUF_PRAGMA_INIT_SEG
19
20
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21
namespace _pbi = _pb::internal;
22
23
namespace test {
24
PROTOBUF_CONSTEXPR EchoRequest::EchoRequest(
25
    ::_pbi::ConstantInitialized): _impl_{
26
    /*decltype(_impl_._has_bits_)*/{}
27
  , /*decltype(_impl_._cached_size_)*/{}
28
  , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29
  , /*decltype(_impl_.code_)*/0
30
  , /*decltype(_impl_.close_fd_)*/false
31
  , /*decltype(_impl_.sleep_us_)*/0
32
  , /*decltype(_impl_.server_fail_)*/0} {}
33
struct EchoRequestDefaultTypeInternal {
34
  PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal()
35
0
      : _instance(::_pbi::ConstantInitialized{}) {}
36
0
  ~EchoRequestDefaultTypeInternal() {}
37
  union {
38
    EchoRequest _instance;
39
  };
40
};
41
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_;
42
PROTOBUF_CONSTEXPR EchoResponse::EchoResponse(
43
    ::_pbi::ConstantInitialized): _impl_{
44
    /*decltype(_impl_._has_bits_)*/{}
45
  , /*decltype(_impl_._cached_size_)*/{}
46
  , /*decltype(_impl_.code_list_)*/{}
47
  , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
48
  , /*decltype(_impl_.receiving_socket_id_)*/uint64_t{0u}} {}
49
struct EchoResponseDefaultTypeInternal {
50
  PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal()
51
0
      : _instance(::_pbi::ConstantInitialized{}) {}
52
0
  ~EchoResponseDefaultTypeInternal() {}
53
  union {
54
    EchoResponse _instance;
55
  };
56
};
57
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_;
58
PROTOBUF_CONSTEXPR ComboRequest::ComboRequest(
59
    ::_pbi::ConstantInitialized): _impl_{
60
    /*decltype(_impl_.requests_)*/{}
61
  , /*decltype(_impl_._cached_size_)*/{}} {}
62
struct ComboRequestDefaultTypeInternal {
63
  PROTOBUF_CONSTEXPR ComboRequestDefaultTypeInternal()
64
0
      : _instance(::_pbi::ConstantInitialized{}) {}
65
0
  ~ComboRequestDefaultTypeInternal() {}
66
  union {
67
    ComboRequest _instance;
68
  };
69
};
70
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComboRequestDefaultTypeInternal _ComboRequest_default_instance_;
71
PROTOBUF_CONSTEXPR BytesRequest::BytesRequest(
72
    ::_pbi::ConstantInitialized): _impl_{
73
    /*decltype(_impl_._has_bits_)*/{}
74
  , /*decltype(_impl_._cached_size_)*/{}
75
  , /*decltype(_impl_.databytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
76
struct BytesRequestDefaultTypeInternal {
77
  PROTOBUF_CONSTEXPR BytesRequestDefaultTypeInternal()
78
0
      : _instance(::_pbi::ConstantInitialized{}) {}
79
0
  ~BytesRequestDefaultTypeInternal() {}
80
  union {
81
    BytesRequest _instance;
82
  };
83
};
84
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BytesRequestDefaultTypeInternal _BytesRequest_default_instance_;
85
PROTOBUF_CONSTEXPR BytesResponse::BytesResponse(
86
    ::_pbi::ConstantInitialized): _impl_{
87
    /*decltype(_impl_._has_bits_)*/{}
88
  , /*decltype(_impl_._cached_size_)*/{}
89
  , /*decltype(_impl_.databytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
90
struct BytesResponseDefaultTypeInternal {
91
  PROTOBUF_CONSTEXPR BytesResponseDefaultTypeInternal()
92
0
      : _instance(::_pbi::ConstantInitialized{}) {}
93
0
  ~BytesResponseDefaultTypeInternal() {}
94
  union {
95
    BytesResponse _instance;
96
  };
97
};
98
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BytesResponseDefaultTypeInternal _BytesResponse_default_instance_;
99
PROTOBUF_CONSTEXPR ComboResponse::ComboResponse(
100
    ::_pbi::ConstantInitialized): _impl_{
101
    /*decltype(_impl_.responses_)*/{}
102
  , /*decltype(_impl_._cached_size_)*/{}} {}
103
struct ComboResponseDefaultTypeInternal {
104
  PROTOBUF_CONSTEXPR ComboResponseDefaultTypeInternal()
105
0
      : _instance(::_pbi::ConstantInitialized{}) {}
106
0
  ~ComboResponseDefaultTypeInternal() {}
107
  union {
108
    ComboResponse _instance;
109
  };
110
};
111
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComboResponseDefaultTypeInternal _ComboResponse_default_instance_;
112
PROTOBUF_CONSTEXPR HttpRequest::HttpRequest(
113
    ::_pbi::ConstantInitialized) {}
114
struct HttpRequestDefaultTypeInternal {
115
  PROTOBUF_CONSTEXPR HttpRequestDefaultTypeInternal()
116
0
      : _instance(::_pbi::ConstantInitialized{}) {}
117
0
  ~HttpRequestDefaultTypeInternal() {}
118
  union {
119
    HttpRequest _instance;
120
  };
121
};
122
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRequestDefaultTypeInternal _HttpRequest_default_instance_;
123
PROTOBUF_CONSTEXPR HttpResponse::HttpResponse(
124
    ::_pbi::ConstantInitialized) {}
125
struct HttpResponseDefaultTypeInternal {
126
  PROTOBUF_CONSTEXPR HttpResponseDefaultTypeInternal()
127
0
      : _instance(::_pbi::ConstantInitialized{}) {}
128
0
  ~HttpResponseDefaultTypeInternal() {}
129
  union {
130
    HttpResponse _instance;
131
  };
132
};
133
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpResponseDefaultTypeInternal _HttpResponse_default_instance_;
134
PROTOBUF_CONSTEXPR Message1::Message1(
135
    ::_pbi::ConstantInitialized): _impl_{
136
    /*decltype(_impl_._has_bits_)*/{}
137
  , /*decltype(_impl_._cached_size_)*/{}
138
  , /*decltype(_impl_.stat_)*/0} {}
139
struct Message1DefaultTypeInternal {
140
  PROTOBUF_CONSTEXPR Message1DefaultTypeInternal()
141
0
      : _instance(::_pbi::ConstantInitialized{}) {}
142
0
  ~Message1DefaultTypeInternal() {}
143
  union {
144
    Message1 _instance;
145
  };
146
};
147
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Message1DefaultTypeInternal _Message1_default_instance_;
148
PROTOBUF_CONSTEXPR Message2::Message2(
149
    ::_pbi::ConstantInitialized): _impl_{
150
    /*decltype(_impl_._has_bits_)*/{}
151
  , /*decltype(_impl_._cached_size_)*/{}
152
  , /*decltype(_impl_.stat_)*/0} {}
153
struct Message2DefaultTypeInternal {
154
  PROTOBUF_CONSTEXPR Message2DefaultTypeInternal()
155
0
      : _instance(::_pbi::ConstantInitialized{}) {}
156
0
  ~Message2DefaultTypeInternal() {}
157
  union {
158
    Message2 _instance;
159
  };
160
};
161
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Message2DefaultTypeInternal _Message2_default_instance_;
162
PROTOBUF_CONSTEXPR RecursiveMessage::RecursiveMessage(
163
    ::_pbi::ConstantInitialized): _impl_{
164
    /*decltype(_impl_._has_bits_)*/{}
165
  , /*decltype(_impl_._cached_size_)*/{}
166
  , /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
167
  , /*decltype(_impl_.child_)*/nullptr} {}
168
struct RecursiveMessageDefaultTypeInternal {
169
  PROTOBUF_CONSTEXPR RecursiveMessageDefaultTypeInternal()
170
0
      : _instance(::_pbi::ConstantInitialized{}) {}
171
0
  ~RecursiveMessageDefaultTypeInternal() {}
172
  union {
173
    RecursiveMessage _instance;
174
  };
175
};
176
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecursiveMessageDefaultTypeInternal _RecursiveMessage_default_instance_;
177
}  // namespace test
178
static ::_pb::Metadata file_level_metadata_echo_2eproto[11];
179
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_echo_2eproto[2];
180
static const ::_pb::ServiceDescriptor* file_level_service_descriptors_echo_2eproto[7];
181
182
const uint32_t TableStruct_echo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
183
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_._has_bits_),
184
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _internal_metadata_),
185
  ~0u,  // no _extensions_
186
  ~0u,  // no _oneof_case_
187
  ~0u,  // no _weak_field_map_
188
  ~0u,  // no _inlined_string_donated_
189
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.message_),
190
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.code_),
191
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.close_fd_),
192
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.sleep_us_),
193
  PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.server_fail_),
194
  0,
195
  1,
196
  2,
197
  3,
198
  4,
199
  PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_._has_bits_),
200
  PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _internal_metadata_),
201
  ~0u,  // no _extensions_
202
  ~0u,  // no _oneof_case_
203
  ~0u,  // no _weak_field_map_
204
  ~0u,  // no _inlined_string_donated_
205
  PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.message_),
206
  PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.code_list_),
207
  PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.receiving_socket_id_),
208
  0,
209
  ~0u,
210
  1,
211
  ~0u,  // no _has_bits_
212
  PROTOBUF_FIELD_OFFSET(::test::ComboRequest, _internal_metadata_),
213
  ~0u,  // no _extensions_
214
  ~0u,  // no _oneof_case_
215
  ~0u,  // no _weak_field_map_
216
  ~0u,  // no _inlined_string_donated_
217
  PROTOBUF_FIELD_OFFSET(::test::ComboRequest, _impl_.requests_),
218
  PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _impl_._has_bits_),
219
  PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _internal_metadata_),
220
  ~0u,  // no _extensions_
221
  ~0u,  // no _oneof_case_
222
  ~0u,  // no _weak_field_map_
223
  ~0u,  // no _inlined_string_donated_
224
  PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _impl_.databytes_),
225
  0,
226
  PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _impl_._has_bits_),
227
  PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _internal_metadata_),
228
  ~0u,  // no _extensions_
229
  ~0u,  // no _oneof_case_
230
  ~0u,  // no _weak_field_map_
231
  ~0u,  // no _inlined_string_donated_
232
  PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _impl_.databytes_),
233
  0,
234
  ~0u,  // no _has_bits_
235
  PROTOBUF_FIELD_OFFSET(::test::ComboResponse, _internal_metadata_),
236
  ~0u,  // no _extensions_
237
  ~0u,  // no _oneof_case_
238
  ~0u,  // no _weak_field_map_
239
  ~0u,  // no _inlined_string_donated_
240
  PROTOBUF_FIELD_OFFSET(::test::ComboResponse, _impl_.responses_),
241
  ~0u,  // no _has_bits_
242
  PROTOBUF_FIELD_OFFSET(::test::HttpRequest, _internal_metadata_),
243
  ~0u,  // no _extensions_
244
  ~0u,  // no _oneof_case_
245
  ~0u,  // no _weak_field_map_
246
  ~0u,  // no _inlined_string_donated_
247
  ~0u,  // no _has_bits_
248
  PROTOBUF_FIELD_OFFSET(::test::HttpResponse, _internal_metadata_),
249
  ~0u,  // no _extensions_
250
  ~0u,  // no _oneof_case_
251
  ~0u,  // no _weak_field_map_
252
  ~0u,  // no _inlined_string_donated_
253
  PROTOBUF_FIELD_OFFSET(::test::Message1, _impl_._has_bits_),
254
  PROTOBUF_FIELD_OFFSET(::test::Message1, _internal_metadata_),
255
  ~0u,  // no _extensions_
256
  ~0u,  // no _oneof_case_
257
  ~0u,  // no _weak_field_map_
258
  ~0u,  // no _inlined_string_donated_
259
  PROTOBUF_FIELD_OFFSET(::test::Message1, _impl_.stat_),
260
  0,
261
  PROTOBUF_FIELD_OFFSET(::test::Message2, _impl_._has_bits_),
262
  PROTOBUF_FIELD_OFFSET(::test::Message2, _internal_metadata_),
263
  ~0u,  // no _extensions_
264
  ~0u,  // no _oneof_case_
265
  ~0u,  // no _weak_field_map_
266
  ~0u,  // no _inlined_string_donated_
267
  PROTOBUF_FIELD_OFFSET(::test::Message2, _impl_.stat_),
268
  0,
269
  PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_._has_bits_),
270
  PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _internal_metadata_),
271
  ~0u,  // no _extensions_
272
  ~0u,  // no _oneof_case_
273
  ~0u,  // no _weak_field_map_
274
  ~0u,  // no _inlined_string_donated_
275
  PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_.child_),
276
  PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_.data_),
277
  1,
278
  0,
279
};
280
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
281
  { 0, 11, -1, sizeof(::test::EchoRequest)},
282
  { 16, 25, -1, sizeof(::test::EchoResponse)},
283
  { 28, -1, -1, sizeof(::test::ComboRequest)},
284
  { 35, 42, -1, sizeof(::test::BytesRequest)},
285
  { 43, 50, -1, sizeof(::test::BytesResponse)},
286
  { 51, -1, -1, sizeof(::test::ComboResponse)},
287
  { 58, -1, -1, sizeof(::test::HttpRequest)},
288
  { 64, -1, -1, sizeof(::test::HttpResponse)},
289
  { 70, 77, -1, sizeof(::test::Message1)},
290
  { 78, 85, -1, sizeof(::test::Message2)},
291
  { 86, 94, -1, sizeof(::test::RecursiveMessage)},
292
};
293
294
static const ::_pb::Message* const file_default_instances[] = {
295
  &::test::_EchoRequest_default_instance_._instance,
296
  &::test::_EchoResponse_default_instance_._instance,
297
  &::test::_ComboRequest_default_instance_._instance,
298
  &::test::_BytesRequest_default_instance_._instance,
299
  &::test::_BytesResponse_default_instance_._instance,
300
  &::test::_ComboResponse_default_instance_._instance,
301
  &::test::_HttpRequest_default_instance_._instance,
302
  &::test::_HttpResponse_default_instance_._instance,
303
  &::test::_Message1_default_instance_._instance,
304
  &::test::_Message2_default_instance_._instance,
305
  &::test::_RecursiveMessage_default_instance_._instance,
306
};
307
308
const char descriptor_table_protodef_echo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
309
  "\n\necho.proto\022\004test\032\021idl_options.proto\"e\n"
310
  "\013EchoRequest\022\017\n\007message\030\001 \002(\t\022\014\n\004code\030\002 "
311
  "\001(\005\022\020\n\010close_fd\030\003 \001(\010\022\020\n\010sleep_us\030\004 \001(\005\022"
312
  "\023\n\013server_fail\030\005 \001(\005\"O\n\014EchoResponse\022\017\n\007"
313
  "message\030\001 \002(\t\022\021\n\tcode_list\030\002 \003(\005\022\033\n\023rece"
314
  "iving_socket_id\030\003 \001(\004\"3\n\014ComboRequest\022#\n"
315
  "\010requests\030\001 \003(\0132\021.test.EchoRequest\"!\n\014By"
316
  "tesRequest\022\021\n\tdatabytes\030\001 \002(\014\"\"\n\rBytesRe"
317
  "sponse\022\021\n\tdatabytes\030\001 \002(\014\"6\n\rComboRespon"
318
  "se\022%\n\tresponses\030\001 \003(\0132\022.test.EchoRespons"
319
  "e\"\r\n\013HttpRequest\"\016\n\014HttpResponse\"&\n\010Mess"
320
  "age1\022\032\n\004stat\030\001 \002(\0162\014.test.State0\"&\n\010Mess"
321
  "age2\022\032\n\004stat\030\001 \002(\0162\014.test.State1\"G\n\020Recu"
322
  "rsiveMessage\022%\n\005child\030\001 \001(\0132\026.test.Recur"
323
  "siveMessage\022\014\n\004data\030\002 \001(\t*>\n\006State0\022\020\n\014S"
324
  "TATE0_NUM_0\020\000\022\020\n\014STATE0_NUM_1\020\001\022\020\n\014STATE"
325
  "0_NUM_2\020\002*,\n\006State1\022\020\n\014STATE1_NUM_0\020\000\022\020\n"
326
  "\014STATE1_NUM_1\020\0012\340\001\n\013EchoService\022-\n\004Echo\022"
327
  "\021.test.EchoRequest\032\022.test.EchoResponse\0224"
328
  "\n\tComboEcho\022\022.test.ComboRequest\032\023.test.C"
329
  "omboResponse\0225\n\nBytesEcho1\022\022.test.BytesR"
330
  "equest\032\023.test.BytesResponse\0225\n\nBytesEcho"
331
  "2\022\022.test.BytesRequest\032\023.test.BytesRespon"
332
  "se2}\n\017DownloadService\0221\n\010Download\022\021.test"
333
  ".HttpRequest\032\022.test.HttpResponse\0227\n\016Down"
334
  "loadFailed\022\021.test.HttpRequest\032\022.test.Htt"
335
  "pResponse2w\n\rUploadService\022/\n\006Upload\022\021.t"
336
  "est.HttpRequest\032\022.test.HttpResponse\0225\n\014U"
337
  "ploadFailed\022\021.test.HttpRequest\032\022.test.Ht"
338
  "tpResponse2w\n\021UserNamingService\0222\n\tListN"
339
  "ames\022\021.test.HttpRequest\032\022.test.HttpRespo"
340
  "nse\022.\n\005Touch\022\021.test.HttpRequest\032\022.test.H"
341
  "ttpResponse2\215\002\n\026DiscoveryNamingService\022."
342
  "\n\005Nodes\022\021.test.HttpRequest\032\022.test.HttpRe"
343
  "sponse\022/\n\006Fetchs\022\021.test.HttpRequest\032\022.te"
344
  "st.HttpResponse\0221\n\010Register\022\021.test.HttpR"
345
  "equest\032\022.test.HttpResponse\022.\n\005Renew\022\021.te"
346
  "st.HttpRequest\032\022.test.HttpResponse\022/\n\006Ca"
347
  "ncel\022\021.test.HttpRequest\032\022.test.HttpRespo"
348
  "nse2s\n\022NacosNamingService\022.\n\005Login\022\021.tes"
349
  "t.HttpRequest\032\022.test.HttpResponse\022-\n\004Lis"
350
  "t\022\021.test.HttpRequest\032\022.test.HttpResponse"
351
  "2m\n\013HttpService\022-\n\004Head\022\021.test.HttpReque"
352
  "st\032\022.test.HttpResponse\022/\n\006Expect\022\021.test."
353
  "HttpRequest\032\022.test.HttpResponseB\007\200\001\001\300\267,\001"
354
  ;
355
static const ::_pbi::DescriptorTable* const descriptor_table_echo_2eproto_deps[1] = {
356
  &::descriptor_table_idl_5foptions_2eproto,
357
};
358
static ::_pbi::once_flag descriptor_table_echo_2eproto_once;
359
const ::_pbi::DescriptorTable descriptor_table_echo_2eproto = {
360
    false, false, 1800, descriptor_table_protodef_echo_2eproto,
361
    "echo.proto",
362
    &descriptor_table_echo_2eproto_once, descriptor_table_echo_2eproto_deps, 1, 11,
363
    schemas, file_default_instances, TableStruct_echo_2eproto::offsets,
364
    file_level_metadata_echo_2eproto, file_level_enum_descriptors_echo_2eproto,
365
    file_level_service_descriptors_echo_2eproto,
366
};
367
0
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_echo_2eproto_getter() {
368
0
  return &descriptor_table_echo_2eproto;
369
0
}
370
371
// Force running AddDescriptors() at dynamic initialization time.
372
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_echo_2eproto(&descriptor_table_echo_2eproto);
373
namespace test {
374
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State0_descriptor() {
375
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
376
0
  return file_level_enum_descriptors_echo_2eproto[0];
377
0
}
378
0
bool State0_IsValid(int value) {
379
0
  switch (value) {
380
0
    case 0:
381
0
    case 1:
382
0
    case 2:
383
0
      return true;
384
0
    default:
385
0
      return false;
386
0
  }
387
0
}
388
389
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State1_descriptor() {
390
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
391
0
  return file_level_enum_descriptors_echo_2eproto[1];
392
0
}
393
0
bool State1_IsValid(int value) {
394
0
  switch (value) {
395
0
    case 0:
396
0
    case 1:
397
0
      return true;
398
0
    default:
399
0
      return false;
400
0
  }
401
0
}
402
403
404
// ===================================================================
405
406
class EchoRequest::_Internal {
407
 public:
408
  using HasBits = decltype(std::declval<EchoRequest>()._impl_._has_bits_);
409
0
  static void set_has_message(HasBits* has_bits) {
410
0
    (*has_bits)[0] |= 1u;
411
0
  }
412
0
  static void set_has_code(HasBits* has_bits) {
413
0
    (*has_bits)[0] |= 2u;
414
0
  }
415
0
  static void set_has_close_fd(HasBits* has_bits) {
416
0
    (*has_bits)[0] |= 4u;
417
0
  }
418
0
  static void set_has_sleep_us(HasBits* has_bits) {
419
0
    (*has_bits)[0] |= 8u;
420
0
  }
421
0
  static void set_has_server_fail(HasBits* has_bits) {
422
0
    (*has_bits)[0] |= 16u;
423
0
  }
424
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
425
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
426
0
  }
427
};
428
429
EchoRequest::EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
430
                         bool is_message_owned)
431
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
432
0
  SharedCtor(arena, is_message_owned);
433
  // @@protoc_insertion_point(arena_constructor:test.EchoRequest)
434
0
}
435
EchoRequest::EchoRequest(const EchoRequest& from)
436
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
437
0
  EchoRequest* const _this = this; (void)_this;
438
0
  new (&_impl_) Impl_{
439
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
440
0
    , /*decltype(_impl_._cached_size_)*/{}
441
0
    , decltype(_impl_.message_){}
442
0
    , decltype(_impl_.code_){}
443
0
    , decltype(_impl_.close_fd_){}
444
0
    , decltype(_impl_.sleep_us_){}
445
0
    , decltype(_impl_.server_fail_){}};
446
447
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
448
0
  _impl_.message_.InitDefault();
449
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
450
    _impl_.message_.Set("", GetArenaForAllocation());
451
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
452
0
  if (from._internal_has_message()) {
453
0
    _this->_impl_.message_.Set(from._internal_message(), 
454
0
      _this->GetArenaForAllocation());
455
0
  }
456
0
  ::memcpy(&_impl_.code_, &from._impl_.code_,
457
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.server_fail_) -
458
0
    reinterpret_cast<char*>(&_impl_.code_)) + sizeof(_impl_.server_fail_));
459
  // @@protoc_insertion_point(copy_constructor:test.EchoRequest)
460
0
}
461
462
inline void EchoRequest::SharedCtor(
463
0
    ::_pb::Arena* arena, bool is_message_owned) {
464
0
  (void)arena;
465
0
  (void)is_message_owned;
466
0
  new (&_impl_) Impl_{
467
0
      decltype(_impl_._has_bits_){}
468
0
    , /*decltype(_impl_._cached_size_)*/{}
469
0
    , decltype(_impl_.message_){}
470
0
    , decltype(_impl_.code_){0}
471
0
    , decltype(_impl_.close_fd_){false}
472
0
    , decltype(_impl_.sleep_us_){0}
473
0
    , decltype(_impl_.server_fail_){0}
474
0
  };
475
0
  _impl_.message_.InitDefault();
476
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
477
    _impl_.message_.Set("", GetArenaForAllocation());
478
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
479
0
}
480
481
0
EchoRequest::~EchoRequest() {
482
  // @@protoc_insertion_point(destructor:test.EchoRequest)
483
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
484
0
  (void)arena;
485
0
    return;
486
0
  }
487
0
  SharedDtor();
488
0
}
489
490
0
inline void EchoRequest::SharedDtor() {
491
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
492
0
  _impl_.message_.Destroy();
493
0
}
494
495
0
void EchoRequest::SetCachedSize(int size) const {
496
0
  _impl_._cached_size_.Set(size);
497
0
}
498
499
0
void EchoRequest::Clear() {
500
// @@protoc_insertion_point(message_clear_start:test.EchoRequest)
501
0
  uint32_t cached_has_bits = 0;
502
  // Prevent compiler warnings about cached_has_bits being unused
503
0
  (void) cached_has_bits;
504
505
0
  cached_has_bits = _impl_._has_bits_[0];
506
0
  if (cached_has_bits & 0x00000001u) {
507
0
    _impl_.message_.ClearNonDefaultToEmpty();
508
0
  }
509
0
  if (cached_has_bits & 0x0000001eu) {
510
0
    ::memset(&_impl_.code_, 0, static_cast<size_t>(
511
0
        reinterpret_cast<char*>(&_impl_.server_fail_) -
512
0
        reinterpret_cast<char*>(&_impl_.code_)) + sizeof(_impl_.server_fail_));
513
0
  }
514
0
  _impl_._has_bits_.Clear();
515
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
516
0
}
517
518
0
const char* EchoRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
519
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
520
0
  _Internal::HasBits has_bits{};
521
0
  while (!ctx->Done(&ptr)) {
522
0
    uint32_t tag;
523
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
524
0
    switch (tag >> 3) {
525
      // required string message = 1;
526
0
      case 1:
527
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
528
0
          auto str = _internal_mutable_message();
529
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
530
0
          CHK_(ptr);
531
0
          #ifndef NDEBUG
532
0
          ::_pbi::VerifyUTF8(str, "test.EchoRequest.message");
533
0
          #endif  // !NDEBUG
534
0
        } else
535
0
          goto handle_unusual;
536
0
        continue;
537
      // optional int32 code = 2;
538
0
      case 2:
539
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
540
0
          _Internal::set_has_code(&has_bits);
541
0
          _impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
542
0
          CHK_(ptr);
543
0
        } else
544
0
          goto handle_unusual;
545
0
        continue;
546
      // optional bool close_fd = 3;
547
0
      case 3:
548
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
549
0
          _Internal::set_has_close_fd(&has_bits);
550
0
          _impl_.close_fd_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
551
0
          CHK_(ptr);
552
0
        } else
553
0
          goto handle_unusual;
554
0
        continue;
555
      // optional int32 sleep_us = 4;
556
0
      case 4:
557
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
558
0
          _Internal::set_has_sleep_us(&has_bits);
559
0
          _impl_.sleep_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
560
0
          CHK_(ptr);
561
0
        } else
562
0
          goto handle_unusual;
563
0
        continue;
564
      // optional int32 server_fail = 5;
565
0
      case 5:
566
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
567
0
          _Internal::set_has_server_fail(&has_bits);
568
0
          _impl_.server_fail_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
569
0
          CHK_(ptr);
570
0
        } else
571
0
          goto handle_unusual;
572
0
        continue;
573
0
      default:
574
0
        goto handle_unusual;
575
0
    }  // switch
576
0
  handle_unusual:
577
0
    if ((tag == 0) || ((tag & 7) == 4)) {
578
0
      CHK_(ptr);
579
0
      ctx->SetLastTag(tag);
580
0
      goto message_done;
581
0
    }
582
0
    ptr = UnknownFieldParse(
583
0
        tag,
584
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
585
0
        ptr, ctx);
586
0
    CHK_(ptr != nullptr);
587
0
  }  // while
588
0
message_done:
589
0
  _impl_._has_bits_.Or(has_bits);
590
0
  return ptr;
591
0
failure:
592
0
  ptr = nullptr;
593
0
  goto message_done;
594
0
#undef CHK_
595
0
}
596
597
uint8_t* EchoRequest::_InternalSerialize(
598
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
599
  // @@protoc_insertion_point(serialize_to_array_start:test.EchoRequest)
600
0
  uint32_t cached_has_bits = 0;
601
0
  (void) cached_has_bits;
602
603
0
  cached_has_bits = _impl_._has_bits_[0];
604
  // required string message = 1;
605
0
  if (cached_has_bits & 0x00000001u) {
606
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
607
0
      this->_internal_message().data(), static_cast<int>(this->_internal_message().length()),
608
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
609
0
      "test.EchoRequest.message");
610
0
    target = stream->WriteStringMaybeAliased(
611
0
        1, this->_internal_message(), target);
612
0
  }
613
614
  // optional int32 code = 2;
615
0
  if (cached_has_bits & 0x00000002u) {
616
0
    target = stream->EnsureSpace(target);
617
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_code(), target);
618
0
  }
619
620
  // optional bool close_fd = 3;
621
0
  if (cached_has_bits & 0x00000004u) {
622
0
    target = stream->EnsureSpace(target);
623
0
    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_close_fd(), target);
624
0
  }
625
626
  // optional int32 sleep_us = 4;
627
0
  if (cached_has_bits & 0x00000008u) {
628
0
    target = stream->EnsureSpace(target);
629
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_sleep_us(), target);
630
0
  }
631
632
  // optional int32 server_fail = 5;
633
0
  if (cached_has_bits & 0x00000010u) {
634
0
    target = stream->EnsureSpace(target);
635
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_server_fail(), target);
636
0
  }
637
638
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
639
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
640
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
641
0
  }
642
  // @@protoc_insertion_point(serialize_to_array_end:test.EchoRequest)
643
0
  return target;
644
0
}
645
646
0
size_t EchoRequest::ByteSizeLong() const {
647
// @@protoc_insertion_point(message_byte_size_start:test.EchoRequest)
648
0
  size_t total_size = 0;
649
650
  // required string message = 1;
651
0
  if (_internal_has_message()) {
652
0
    total_size += 1 +
653
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
654
0
        this->_internal_message());
655
0
  }
656
0
  uint32_t cached_has_bits = 0;
657
  // Prevent compiler warnings about cached_has_bits being unused
658
0
  (void) cached_has_bits;
659
660
0
  cached_has_bits = _impl_._has_bits_[0];
661
0
  if (cached_has_bits & 0x0000001eu) {
662
    // optional int32 code = 2;
663
0
    if (cached_has_bits & 0x00000002u) {
664
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_code());
665
0
    }
666
667
    // optional bool close_fd = 3;
668
0
    if (cached_has_bits & 0x00000004u) {
669
0
      total_size += 1 + 1;
670
0
    }
671
672
    // optional int32 sleep_us = 4;
673
0
    if (cached_has_bits & 0x00000008u) {
674
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_sleep_us());
675
0
    }
676
677
    // optional int32 server_fail = 5;
678
0
    if (cached_has_bits & 0x00000010u) {
679
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_server_fail());
680
0
    }
681
682
0
  }
683
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
684
0
}
685
686
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoRequest::_class_data_ = {
687
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
688
    EchoRequest::MergeImpl
689
};
690
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoRequest::GetClassData() const { return &_class_data_; }
691
692
693
0
void EchoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
694
0
  auto* const _this = static_cast<EchoRequest*>(&to_msg);
695
0
  auto& from = static_cast<const EchoRequest&>(from_msg);
696
  // @@protoc_insertion_point(class_specific_merge_from_start:test.EchoRequest)
697
0
  GOOGLE_DCHECK_NE(&from, _this);
698
0
  uint32_t cached_has_bits = 0;
699
0
  (void) cached_has_bits;
700
701
0
  cached_has_bits = from._impl_._has_bits_[0];
702
0
  if (cached_has_bits & 0x0000001fu) {
703
0
    if (cached_has_bits & 0x00000001u) {
704
0
      _this->_internal_set_message(from._internal_message());
705
0
    }
706
0
    if (cached_has_bits & 0x00000002u) {
707
0
      _this->_impl_.code_ = from._impl_.code_;
708
0
    }
709
0
    if (cached_has_bits & 0x00000004u) {
710
0
      _this->_impl_.close_fd_ = from._impl_.close_fd_;
711
0
    }
712
0
    if (cached_has_bits & 0x00000008u) {
713
0
      _this->_impl_.sleep_us_ = from._impl_.sleep_us_;
714
0
    }
715
0
    if (cached_has_bits & 0x00000010u) {
716
0
      _this->_impl_.server_fail_ = from._impl_.server_fail_;
717
0
    }
718
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
719
0
  }
720
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
721
0
}
722
723
0
void EchoRequest::CopyFrom(const EchoRequest& from) {
724
// @@protoc_insertion_point(class_specific_copy_from_start:test.EchoRequest)
725
0
  if (&from == this) return;
726
0
  Clear();
727
0
  MergeFrom(from);
728
0
}
729
730
0
bool EchoRequest::IsInitialized() const {
731
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
732
0
  return true;
733
0
}
734
735
0
void EchoRequest::InternalSwap(EchoRequest* other) {
736
0
  using std::swap;
737
0
  auto* lhs_arena = GetArenaForAllocation();
738
0
  auto* rhs_arena = other->GetArenaForAllocation();
739
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
740
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
741
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
742
0
      &_impl_.message_, lhs_arena,
743
0
      &other->_impl_.message_, rhs_arena
744
0
  );
745
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
746
0
      PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.server_fail_)
747
0
      + sizeof(EchoRequest::_impl_.server_fail_)
748
0
      - PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.code_)>(
749
0
          reinterpret_cast<char*>(&_impl_.code_),
750
0
          reinterpret_cast<char*>(&other->_impl_.code_));
751
0
}
752
753
0
::PROTOBUF_NAMESPACE_ID::Metadata EchoRequest::GetMetadata() const {
754
0
  return ::_pbi::AssignDescriptors(
755
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
756
0
      file_level_metadata_echo_2eproto[0]);
757
0
}
758
759
// ===================================================================
760
761
class EchoResponse::_Internal {
762
 public:
763
  using HasBits = decltype(std::declval<EchoResponse>()._impl_._has_bits_);
764
0
  static void set_has_message(HasBits* has_bits) {
765
0
    (*has_bits)[0] |= 1u;
766
0
  }
767
0
  static void set_has_receiving_socket_id(HasBits* has_bits) {
768
0
    (*has_bits)[0] |= 2u;
769
0
  }
770
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
771
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
772
0
  }
773
};
774
775
EchoResponse::EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
776
                         bool is_message_owned)
777
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
778
0
  SharedCtor(arena, is_message_owned);
779
  // @@protoc_insertion_point(arena_constructor:test.EchoResponse)
780
0
}
781
EchoResponse::EchoResponse(const EchoResponse& from)
782
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
783
0
  EchoResponse* const _this = this; (void)_this;
784
0
  new (&_impl_) Impl_{
785
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
786
0
    , /*decltype(_impl_._cached_size_)*/{}
787
0
    , decltype(_impl_.code_list_){from._impl_.code_list_}
788
0
    , decltype(_impl_.message_){}
789
0
    , decltype(_impl_.receiving_socket_id_){}};
790
791
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
792
0
  _impl_.message_.InitDefault();
793
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
794
    _impl_.message_.Set("", GetArenaForAllocation());
795
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
796
0
  if (from._internal_has_message()) {
797
0
    _this->_impl_.message_.Set(from._internal_message(), 
798
0
      _this->GetArenaForAllocation());
799
0
  }
800
0
  _this->_impl_.receiving_socket_id_ = from._impl_.receiving_socket_id_;
801
  // @@protoc_insertion_point(copy_constructor:test.EchoResponse)
802
0
}
803
804
inline void EchoResponse::SharedCtor(
805
0
    ::_pb::Arena* arena, bool is_message_owned) {
806
0
  (void)arena;
807
0
  (void)is_message_owned;
808
0
  new (&_impl_) Impl_{
809
0
      decltype(_impl_._has_bits_){}
810
0
    , /*decltype(_impl_._cached_size_)*/{}
811
0
    , decltype(_impl_.code_list_){arena}
812
0
    , decltype(_impl_.message_){}
813
0
    , decltype(_impl_.receiving_socket_id_){uint64_t{0u}}
814
0
  };
815
0
  _impl_.message_.InitDefault();
816
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
817
    _impl_.message_.Set("", GetArenaForAllocation());
818
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
819
0
}
820
821
0
EchoResponse::~EchoResponse() {
822
  // @@protoc_insertion_point(destructor:test.EchoResponse)
823
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
824
0
  (void)arena;
825
0
    return;
826
0
  }
827
0
  SharedDtor();
828
0
}
829
830
0
inline void EchoResponse::SharedDtor() {
831
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
832
0
  _impl_.code_list_.~RepeatedField();
833
0
  _impl_.message_.Destroy();
834
0
}
835
836
0
void EchoResponse::SetCachedSize(int size) const {
837
0
  _impl_._cached_size_.Set(size);
838
0
}
839
840
0
void EchoResponse::Clear() {
841
// @@protoc_insertion_point(message_clear_start:test.EchoResponse)
842
0
  uint32_t cached_has_bits = 0;
843
  // Prevent compiler warnings about cached_has_bits being unused
844
0
  (void) cached_has_bits;
845
846
0
  _impl_.code_list_.Clear();
847
0
  cached_has_bits = _impl_._has_bits_[0];
848
0
  if (cached_has_bits & 0x00000001u) {
849
0
    _impl_.message_.ClearNonDefaultToEmpty();
850
0
  }
851
0
  _impl_.receiving_socket_id_ = uint64_t{0u};
852
0
  _impl_._has_bits_.Clear();
853
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
854
0
}
855
856
0
const char* EchoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
857
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
858
0
  _Internal::HasBits has_bits{};
859
0
  while (!ctx->Done(&ptr)) {
860
0
    uint32_t tag;
861
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
862
0
    switch (tag >> 3) {
863
      // required string message = 1;
864
0
      case 1:
865
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
866
0
          auto str = _internal_mutable_message();
867
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
868
0
          CHK_(ptr);
869
0
          #ifndef NDEBUG
870
0
          ::_pbi::VerifyUTF8(str, "test.EchoResponse.message");
871
0
          #endif  // !NDEBUG
872
0
        } else
873
0
          goto handle_unusual;
874
0
        continue;
875
      // repeated int32 code_list = 2;
876
0
      case 2:
877
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
878
0
          ptr -= 1;
879
0
          do {
880
0
            ptr += 1;
881
0
            _internal_add_code_list(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
882
0
            CHK_(ptr);
883
0
            if (!ctx->DataAvailable(ptr)) break;
884
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr));
885
0
        } else if (static_cast<uint8_t>(tag) == 18) {
886
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_code_list(), ptr, ctx);
887
0
          CHK_(ptr);
888
0
        } else
889
0
          goto handle_unusual;
890
0
        continue;
891
      // optional uint64 receiving_socket_id = 3;
892
0
      case 3:
893
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
894
0
          _Internal::set_has_receiving_socket_id(&has_bits);
895
0
          _impl_.receiving_socket_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
896
0
          CHK_(ptr);
897
0
        } else
898
0
          goto handle_unusual;
899
0
        continue;
900
0
      default:
901
0
        goto handle_unusual;
902
0
    }  // switch
903
0
  handle_unusual:
904
0
    if ((tag == 0) || ((tag & 7) == 4)) {
905
0
      CHK_(ptr);
906
0
      ctx->SetLastTag(tag);
907
0
      goto message_done;
908
0
    }
909
0
    ptr = UnknownFieldParse(
910
0
        tag,
911
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
912
0
        ptr, ctx);
913
0
    CHK_(ptr != nullptr);
914
0
  }  // while
915
0
message_done:
916
0
  _impl_._has_bits_.Or(has_bits);
917
0
  return ptr;
918
0
failure:
919
0
  ptr = nullptr;
920
0
  goto message_done;
921
0
#undef CHK_
922
0
}
923
924
uint8_t* EchoResponse::_InternalSerialize(
925
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
926
  // @@protoc_insertion_point(serialize_to_array_start:test.EchoResponse)
927
0
  uint32_t cached_has_bits = 0;
928
0
  (void) cached_has_bits;
929
930
0
  cached_has_bits = _impl_._has_bits_[0];
931
  // required string message = 1;
932
0
  if (cached_has_bits & 0x00000001u) {
933
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
934
0
      this->_internal_message().data(), static_cast<int>(this->_internal_message().length()),
935
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
936
0
      "test.EchoResponse.message");
937
0
    target = stream->WriteStringMaybeAliased(
938
0
        1, this->_internal_message(), target);
939
0
  }
940
941
  // repeated int32 code_list = 2;
942
0
  for (int i = 0, n = this->_internal_code_list_size(); i < n; i++) {
943
0
    target = stream->EnsureSpace(target);
944
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_code_list(i), target);
945
0
  }
946
947
  // optional uint64 receiving_socket_id = 3;
948
0
  if (cached_has_bits & 0x00000002u) {
949
0
    target = stream->EnsureSpace(target);
950
0
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_receiving_socket_id(), target);
951
0
  }
952
953
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
954
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
955
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
956
0
  }
957
  // @@protoc_insertion_point(serialize_to_array_end:test.EchoResponse)
958
0
  return target;
959
0
}
960
961
0
size_t EchoResponse::ByteSizeLong() const {
962
// @@protoc_insertion_point(message_byte_size_start:test.EchoResponse)
963
0
  size_t total_size = 0;
964
965
  // required string message = 1;
966
0
  if (_internal_has_message()) {
967
0
    total_size += 1 +
968
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
969
0
        this->_internal_message());
970
0
  }
971
0
  uint32_t cached_has_bits = 0;
972
  // Prevent compiler warnings about cached_has_bits being unused
973
0
  (void) cached_has_bits;
974
975
  // repeated int32 code_list = 2;
976
0
  {
977
0
    size_t data_size = ::_pbi::WireFormatLite::
978
0
      Int32Size(this->_impl_.code_list_);
979
0
    total_size += 1 *
980
0
                  ::_pbi::FromIntSize(this->_internal_code_list_size());
981
0
    total_size += data_size;
982
0
  }
983
984
  // optional uint64 receiving_socket_id = 3;
985
0
  cached_has_bits = _impl_._has_bits_[0];
986
0
  if (cached_has_bits & 0x00000002u) {
987
0
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_receiving_socket_id());
988
0
  }
989
990
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
991
0
}
992
993
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResponse::_class_data_ = {
994
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
995
    EchoResponse::MergeImpl
996
};
997
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResponse::GetClassData() const { return &_class_data_; }
998
999
1000
0
void EchoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1001
0
  auto* const _this = static_cast<EchoResponse*>(&to_msg);
1002
0
  auto& from = static_cast<const EchoResponse&>(from_msg);
1003
  // @@protoc_insertion_point(class_specific_merge_from_start:test.EchoResponse)
1004
0
  GOOGLE_DCHECK_NE(&from, _this);
1005
0
  uint32_t cached_has_bits = 0;
1006
0
  (void) cached_has_bits;
1007
1008
0
  _this->_impl_.code_list_.MergeFrom(from._impl_.code_list_);
1009
0
  cached_has_bits = from._impl_._has_bits_[0];
1010
0
  if (cached_has_bits & 0x00000003u) {
1011
0
    if (cached_has_bits & 0x00000001u) {
1012
0
      _this->_internal_set_message(from._internal_message());
1013
0
    }
1014
0
    if (cached_has_bits & 0x00000002u) {
1015
0
      _this->_impl_.receiving_socket_id_ = from._impl_.receiving_socket_id_;
1016
0
    }
1017
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
1018
0
  }
1019
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1020
0
}
1021
1022
0
void EchoResponse::CopyFrom(const EchoResponse& from) {
1023
// @@protoc_insertion_point(class_specific_copy_from_start:test.EchoResponse)
1024
0
  if (&from == this) return;
1025
0
  Clear();
1026
0
  MergeFrom(from);
1027
0
}
1028
1029
0
bool EchoResponse::IsInitialized() const {
1030
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1031
0
  return true;
1032
0
}
1033
1034
0
void EchoResponse::InternalSwap(EchoResponse* other) {
1035
0
  using std::swap;
1036
0
  auto* lhs_arena = GetArenaForAllocation();
1037
0
  auto* rhs_arena = other->GetArenaForAllocation();
1038
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1039
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1040
0
  _impl_.code_list_.InternalSwap(&other->_impl_.code_list_);
1041
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1042
0
      &_impl_.message_, lhs_arena,
1043
0
      &other->_impl_.message_, rhs_arena
1044
0
  );
1045
0
  swap(_impl_.receiving_socket_id_, other->_impl_.receiving_socket_id_);
1046
0
}
1047
1048
0
::PROTOBUF_NAMESPACE_ID::Metadata EchoResponse::GetMetadata() const {
1049
0
  return ::_pbi::AssignDescriptors(
1050
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1051
0
      file_level_metadata_echo_2eproto[1]);
1052
0
}
1053
1054
// ===================================================================
1055
1056
class ComboRequest::_Internal {
1057
 public:
1058
};
1059
1060
ComboRequest::ComboRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1061
                         bool is_message_owned)
1062
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1063
0
  SharedCtor(arena, is_message_owned);
1064
  // @@protoc_insertion_point(arena_constructor:test.ComboRequest)
1065
0
}
1066
ComboRequest::ComboRequest(const ComboRequest& from)
1067
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1068
0
  ComboRequest* const _this = this; (void)_this;
1069
0
  new (&_impl_) Impl_{
1070
0
      decltype(_impl_.requests_){from._impl_.requests_}
1071
0
    , /*decltype(_impl_._cached_size_)*/{}};
1072
1073
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1074
  // @@protoc_insertion_point(copy_constructor:test.ComboRequest)
1075
0
}
1076
1077
inline void ComboRequest::SharedCtor(
1078
0
    ::_pb::Arena* arena, bool is_message_owned) {
1079
0
  (void)arena;
1080
0
  (void)is_message_owned;
1081
0
  new (&_impl_) Impl_{
1082
0
      decltype(_impl_.requests_){arena}
1083
0
    , /*decltype(_impl_._cached_size_)*/{}
1084
0
  };
1085
0
}
1086
1087
0
ComboRequest::~ComboRequest() {
1088
  // @@protoc_insertion_point(destructor:test.ComboRequest)
1089
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1090
0
  (void)arena;
1091
0
    return;
1092
0
  }
1093
0
  SharedDtor();
1094
0
}
1095
1096
0
inline void ComboRequest::SharedDtor() {
1097
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1098
0
  _impl_.requests_.~RepeatedPtrField();
1099
0
}
1100
1101
0
void ComboRequest::SetCachedSize(int size) const {
1102
0
  _impl_._cached_size_.Set(size);
1103
0
}
1104
1105
0
void ComboRequest::Clear() {
1106
// @@protoc_insertion_point(message_clear_start:test.ComboRequest)
1107
0
  uint32_t cached_has_bits = 0;
1108
  // Prevent compiler warnings about cached_has_bits being unused
1109
0
  (void) cached_has_bits;
1110
1111
0
  _impl_.requests_.Clear();
1112
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1113
0
}
1114
1115
0
const char* ComboRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1116
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1117
0
  while (!ctx->Done(&ptr)) {
1118
0
    uint32_t tag;
1119
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1120
0
    switch (tag >> 3) {
1121
      // repeated .test.EchoRequest requests = 1;
1122
0
      case 1:
1123
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1124
0
          ptr -= 1;
1125
0
          do {
1126
0
            ptr += 1;
1127
0
            ptr = ctx->ParseMessage(_internal_add_requests(), ptr);
1128
0
            CHK_(ptr);
1129
0
            if (!ctx->DataAvailable(ptr)) break;
1130
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1131
0
        } else
1132
0
          goto handle_unusual;
1133
0
        continue;
1134
0
      default:
1135
0
        goto handle_unusual;
1136
0
    }  // switch
1137
0
  handle_unusual:
1138
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1139
0
      CHK_(ptr);
1140
0
      ctx->SetLastTag(tag);
1141
0
      goto message_done;
1142
0
    }
1143
0
    ptr = UnknownFieldParse(
1144
0
        tag,
1145
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1146
0
        ptr, ctx);
1147
0
    CHK_(ptr != nullptr);
1148
0
  }  // while
1149
0
message_done:
1150
0
  return ptr;
1151
0
failure:
1152
0
  ptr = nullptr;
1153
0
  goto message_done;
1154
0
#undef CHK_
1155
0
}
1156
1157
uint8_t* ComboRequest::_InternalSerialize(
1158
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1159
  // @@protoc_insertion_point(serialize_to_array_start:test.ComboRequest)
1160
0
  uint32_t cached_has_bits = 0;
1161
0
  (void) cached_has_bits;
1162
1163
  // repeated .test.EchoRequest requests = 1;
1164
0
  for (unsigned i = 0,
1165
0
      n = static_cast<unsigned>(this->_internal_requests_size()); i < n; i++) {
1166
0
    const auto& repfield = this->_internal_requests(i);
1167
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1168
0
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1169
0
  }
1170
1171
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1172
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1173
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1174
0
  }
1175
  // @@protoc_insertion_point(serialize_to_array_end:test.ComboRequest)
1176
0
  return target;
1177
0
}
1178
1179
0
size_t ComboRequest::ByteSizeLong() const {
1180
// @@protoc_insertion_point(message_byte_size_start:test.ComboRequest)
1181
0
  size_t total_size = 0;
1182
1183
0
  uint32_t cached_has_bits = 0;
1184
  // Prevent compiler warnings about cached_has_bits being unused
1185
0
  (void) cached_has_bits;
1186
1187
  // repeated .test.EchoRequest requests = 1;
1188
0
  total_size += 1UL * this->_internal_requests_size();
1189
0
  for (const auto& msg : this->_impl_.requests_) {
1190
0
    total_size +=
1191
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1192
0
  }
1193
1194
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1195
0
}
1196
1197
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComboRequest::_class_data_ = {
1198
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1199
    ComboRequest::MergeImpl
1200
};
1201
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComboRequest::GetClassData() const { return &_class_data_; }
1202
1203
1204
0
void ComboRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1205
0
  auto* const _this = static_cast<ComboRequest*>(&to_msg);
1206
0
  auto& from = static_cast<const ComboRequest&>(from_msg);
1207
  // @@protoc_insertion_point(class_specific_merge_from_start:test.ComboRequest)
1208
0
  GOOGLE_DCHECK_NE(&from, _this);
1209
0
  uint32_t cached_has_bits = 0;
1210
0
  (void) cached_has_bits;
1211
1212
0
  _this->_impl_.requests_.MergeFrom(from._impl_.requests_);
1213
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1214
0
}
1215
1216
0
void ComboRequest::CopyFrom(const ComboRequest& from) {
1217
// @@protoc_insertion_point(class_specific_copy_from_start:test.ComboRequest)
1218
0
  if (&from == this) return;
1219
0
  Clear();
1220
0
  MergeFrom(from);
1221
0
}
1222
1223
0
bool ComboRequest::IsInitialized() const {
1224
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.requests_))
1225
0
    return false;
1226
0
  return true;
1227
0
}
1228
1229
0
void ComboRequest::InternalSwap(ComboRequest* other) {
1230
0
  using std::swap;
1231
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1232
0
  _impl_.requests_.InternalSwap(&other->_impl_.requests_);
1233
0
}
1234
1235
0
::PROTOBUF_NAMESPACE_ID::Metadata ComboRequest::GetMetadata() const {
1236
0
  return ::_pbi::AssignDescriptors(
1237
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1238
0
      file_level_metadata_echo_2eproto[2]);
1239
0
}
1240
1241
// ===================================================================
1242
1243
class BytesRequest::_Internal {
1244
 public:
1245
  using HasBits = decltype(std::declval<BytesRequest>()._impl_._has_bits_);
1246
0
  static void set_has_databytes(HasBits* has_bits) {
1247
0
    (*has_bits)[0] |= 1u;
1248
0
  }
1249
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
1250
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
1251
0
  }
1252
};
1253
1254
BytesRequest::BytesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1255
                         bool is_message_owned)
1256
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1257
0
  SharedCtor(arena, is_message_owned);
1258
  // @@protoc_insertion_point(arena_constructor:test.BytesRequest)
1259
0
}
1260
BytesRequest::BytesRequest(const BytesRequest& from)
1261
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1262
0
  BytesRequest* const _this = this; (void)_this;
1263
0
  new (&_impl_) Impl_{
1264
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1265
0
    , /*decltype(_impl_._cached_size_)*/{}
1266
0
    , decltype(_impl_.databytes_){}};
1267
1268
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1269
0
  _impl_.databytes_.InitDefault();
1270
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1271
    _impl_.databytes_.Set("", GetArenaForAllocation());
1272
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1273
0
  if (from._internal_has_databytes()) {
1274
0
    _this->_impl_.databytes_.Set(from._internal_databytes(), 
1275
0
      _this->GetArenaForAllocation());
1276
0
  }
1277
  // @@protoc_insertion_point(copy_constructor:test.BytesRequest)
1278
0
}
1279
1280
inline void BytesRequest::SharedCtor(
1281
0
    ::_pb::Arena* arena, bool is_message_owned) {
1282
0
  (void)arena;
1283
0
  (void)is_message_owned;
1284
0
  new (&_impl_) Impl_{
1285
0
      decltype(_impl_._has_bits_){}
1286
0
    , /*decltype(_impl_._cached_size_)*/{}
1287
0
    , decltype(_impl_.databytes_){}
1288
0
  };
1289
0
  _impl_.databytes_.InitDefault();
1290
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1291
    _impl_.databytes_.Set("", GetArenaForAllocation());
1292
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1293
0
}
1294
1295
0
BytesRequest::~BytesRequest() {
1296
  // @@protoc_insertion_point(destructor:test.BytesRequest)
1297
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1298
0
  (void)arena;
1299
0
    return;
1300
0
  }
1301
0
  SharedDtor();
1302
0
}
1303
1304
0
inline void BytesRequest::SharedDtor() {
1305
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1306
0
  _impl_.databytes_.Destroy();
1307
0
}
1308
1309
0
void BytesRequest::SetCachedSize(int size) const {
1310
0
  _impl_._cached_size_.Set(size);
1311
0
}
1312
1313
0
void BytesRequest::Clear() {
1314
// @@protoc_insertion_point(message_clear_start:test.BytesRequest)
1315
0
  uint32_t cached_has_bits = 0;
1316
  // Prevent compiler warnings about cached_has_bits being unused
1317
0
  (void) cached_has_bits;
1318
1319
0
  cached_has_bits = _impl_._has_bits_[0];
1320
0
  if (cached_has_bits & 0x00000001u) {
1321
0
    _impl_.databytes_.ClearNonDefaultToEmpty();
1322
0
  }
1323
0
  _impl_._has_bits_.Clear();
1324
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1325
0
}
1326
1327
0
const char* BytesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1328
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1329
0
  _Internal::HasBits has_bits{};
1330
0
  while (!ctx->Done(&ptr)) {
1331
0
    uint32_t tag;
1332
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1333
0
    switch (tag >> 3) {
1334
      // required bytes databytes = 1;
1335
0
      case 1:
1336
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1337
0
          auto str = _internal_mutable_databytes();
1338
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1339
0
          CHK_(ptr);
1340
0
        } else
1341
0
          goto handle_unusual;
1342
0
        continue;
1343
0
      default:
1344
0
        goto handle_unusual;
1345
0
    }  // switch
1346
0
  handle_unusual:
1347
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1348
0
      CHK_(ptr);
1349
0
      ctx->SetLastTag(tag);
1350
0
      goto message_done;
1351
0
    }
1352
0
    ptr = UnknownFieldParse(
1353
0
        tag,
1354
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1355
0
        ptr, ctx);
1356
0
    CHK_(ptr != nullptr);
1357
0
  }  // while
1358
0
message_done:
1359
0
  _impl_._has_bits_.Or(has_bits);
1360
0
  return ptr;
1361
0
failure:
1362
0
  ptr = nullptr;
1363
0
  goto message_done;
1364
0
#undef CHK_
1365
0
}
1366
1367
uint8_t* BytesRequest::_InternalSerialize(
1368
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1369
  // @@protoc_insertion_point(serialize_to_array_start:test.BytesRequest)
1370
0
  uint32_t cached_has_bits = 0;
1371
0
  (void) cached_has_bits;
1372
1373
0
  cached_has_bits = _impl_._has_bits_[0];
1374
  // required bytes databytes = 1;
1375
0
  if (cached_has_bits & 0x00000001u) {
1376
0
    target = stream->WriteBytesMaybeAliased(
1377
0
        1, this->_internal_databytes(), target);
1378
0
  }
1379
1380
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1381
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1382
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1383
0
  }
1384
  // @@protoc_insertion_point(serialize_to_array_end:test.BytesRequest)
1385
0
  return target;
1386
0
}
1387
1388
0
size_t BytesRequest::ByteSizeLong() const {
1389
// @@protoc_insertion_point(message_byte_size_start:test.BytesRequest)
1390
0
  size_t total_size = 0;
1391
1392
  // required bytes databytes = 1;
1393
0
  if (_internal_has_databytes()) {
1394
0
    total_size += 1 +
1395
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
1396
0
        this->_internal_databytes());
1397
0
  }
1398
0
  uint32_t cached_has_bits = 0;
1399
  // Prevent compiler warnings about cached_has_bits being unused
1400
0
  (void) cached_has_bits;
1401
1402
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1403
0
}
1404
1405
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BytesRequest::_class_data_ = {
1406
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1407
    BytesRequest::MergeImpl
1408
};
1409
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesRequest::GetClassData() const { return &_class_data_; }
1410
1411
1412
0
void BytesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1413
0
  auto* const _this = static_cast<BytesRequest*>(&to_msg);
1414
0
  auto& from = static_cast<const BytesRequest&>(from_msg);
1415
  // @@protoc_insertion_point(class_specific_merge_from_start:test.BytesRequest)
1416
0
  GOOGLE_DCHECK_NE(&from, _this);
1417
0
  uint32_t cached_has_bits = 0;
1418
0
  (void) cached_has_bits;
1419
1420
0
  if (from._internal_has_databytes()) {
1421
0
    _this->_internal_set_databytes(from._internal_databytes());
1422
0
  }
1423
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1424
0
}
1425
1426
0
void BytesRequest::CopyFrom(const BytesRequest& from) {
1427
// @@protoc_insertion_point(class_specific_copy_from_start:test.BytesRequest)
1428
0
  if (&from == this) return;
1429
0
  Clear();
1430
0
  MergeFrom(from);
1431
0
}
1432
1433
0
bool BytesRequest::IsInitialized() const {
1434
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1435
0
  return true;
1436
0
}
1437
1438
0
void BytesRequest::InternalSwap(BytesRequest* other) {
1439
0
  using std::swap;
1440
0
  auto* lhs_arena = GetArenaForAllocation();
1441
0
  auto* rhs_arena = other->GetArenaForAllocation();
1442
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1443
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1444
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1445
0
      &_impl_.databytes_, lhs_arena,
1446
0
      &other->_impl_.databytes_, rhs_arena
1447
0
  );
1448
0
}
1449
1450
0
::PROTOBUF_NAMESPACE_ID::Metadata BytesRequest::GetMetadata() const {
1451
0
  return ::_pbi::AssignDescriptors(
1452
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1453
0
      file_level_metadata_echo_2eproto[3]);
1454
0
}
1455
1456
// ===================================================================
1457
1458
class BytesResponse::_Internal {
1459
 public:
1460
  using HasBits = decltype(std::declval<BytesResponse>()._impl_._has_bits_);
1461
0
  static void set_has_databytes(HasBits* has_bits) {
1462
0
    (*has_bits)[0] |= 1u;
1463
0
  }
1464
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
1465
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
1466
0
  }
1467
};
1468
1469
BytesResponse::BytesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1470
                         bool is_message_owned)
1471
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1472
0
  SharedCtor(arena, is_message_owned);
1473
  // @@protoc_insertion_point(arena_constructor:test.BytesResponse)
1474
0
}
1475
BytesResponse::BytesResponse(const BytesResponse& from)
1476
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1477
0
  BytesResponse* const _this = this; (void)_this;
1478
0
  new (&_impl_) Impl_{
1479
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1480
0
    , /*decltype(_impl_._cached_size_)*/{}
1481
0
    , decltype(_impl_.databytes_){}};
1482
1483
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1484
0
  _impl_.databytes_.InitDefault();
1485
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1486
    _impl_.databytes_.Set("", GetArenaForAllocation());
1487
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1488
0
  if (from._internal_has_databytes()) {
1489
0
    _this->_impl_.databytes_.Set(from._internal_databytes(), 
1490
0
      _this->GetArenaForAllocation());
1491
0
  }
1492
  // @@protoc_insertion_point(copy_constructor:test.BytesResponse)
1493
0
}
1494
1495
inline void BytesResponse::SharedCtor(
1496
0
    ::_pb::Arena* arena, bool is_message_owned) {
1497
0
  (void)arena;
1498
0
  (void)is_message_owned;
1499
0
  new (&_impl_) Impl_{
1500
0
      decltype(_impl_._has_bits_){}
1501
0
    , /*decltype(_impl_._cached_size_)*/{}
1502
0
    , decltype(_impl_.databytes_){}
1503
0
  };
1504
0
  _impl_.databytes_.InitDefault();
1505
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1506
    _impl_.databytes_.Set("", GetArenaForAllocation());
1507
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1508
0
}
1509
1510
0
BytesResponse::~BytesResponse() {
1511
  // @@protoc_insertion_point(destructor:test.BytesResponse)
1512
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1513
0
  (void)arena;
1514
0
    return;
1515
0
  }
1516
0
  SharedDtor();
1517
0
}
1518
1519
0
inline void BytesResponse::SharedDtor() {
1520
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1521
0
  _impl_.databytes_.Destroy();
1522
0
}
1523
1524
0
void BytesResponse::SetCachedSize(int size) const {
1525
0
  _impl_._cached_size_.Set(size);
1526
0
}
1527
1528
0
void BytesResponse::Clear() {
1529
// @@protoc_insertion_point(message_clear_start:test.BytesResponse)
1530
0
  uint32_t cached_has_bits = 0;
1531
  // Prevent compiler warnings about cached_has_bits being unused
1532
0
  (void) cached_has_bits;
1533
1534
0
  cached_has_bits = _impl_._has_bits_[0];
1535
0
  if (cached_has_bits & 0x00000001u) {
1536
0
    _impl_.databytes_.ClearNonDefaultToEmpty();
1537
0
  }
1538
0
  _impl_._has_bits_.Clear();
1539
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1540
0
}
1541
1542
0
const char* BytesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1543
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1544
0
  _Internal::HasBits has_bits{};
1545
0
  while (!ctx->Done(&ptr)) {
1546
0
    uint32_t tag;
1547
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1548
0
    switch (tag >> 3) {
1549
      // required bytes databytes = 1;
1550
0
      case 1:
1551
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1552
0
          auto str = _internal_mutable_databytes();
1553
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1554
0
          CHK_(ptr);
1555
0
        } else
1556
0
          goto handle_unusual;
1557
0
        continue;
1558
0
      default:
1559
0
        goto handle_unusual;
1560
0
    }  // switch
1561
0
  handle_unusual:
1562
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1563
0
      CHK_(ptr);
1564
0
      ctx->SetLastTag(tag);
1565
0
      goto message_done;
1566
0
    }
1567
0
    ptr = UnknownFieldParse(
1568
0
        tag,
1569
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1570
0
        ptr, ctx);
1571
0
    CHK_(ptr != nullptr);
1572
0
  }  // while
1573
0
message_done:
1574
0
  _impl_._has_bits_.Or(has_bits);
1575
0
  return ptr;
1576
0
failure:
1577
0
  ptr = nullptr;
1578
0
  goto message_done;
1579
0
#undef CHK_
1580
0
}
1581
1582
uint8_t* BytesResponse::_InternalSerialize(
1583
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1584
  // @@protoc_insertion_point(serialize_to_array_start:test.BytesResponse)
1585
0
  uint32_t cached_has_bits = 0;
1586
0
  (void) cached_has_bits;
1587
1588
0
  cached_has_bits = _impl_._has_bits_[0];
1589
  // required bytes databytes = 1;
1590
0
  if (cached_has_bits & 0x00000001u) {
1591
0
    target = stream->WriteBytesMaybeAliased(
1592
0
        1, this->_internal_databytes(), target);
1593
0
  }
1594
1595
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1596
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1597
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1598
0
  }
1599
  // @@protoc_insertion_point(serialize_to_array_end:test.BytesResponse)
1600
0
  return target;
1601
0
}
1602
1603
0
size_t BytesResponse::ByteSizeLong() const {
1604
// @@protoc_insertion_point(message_byte_size_start:test.BytesResponse)
1605
0
  size_t total_size = 0;
1606
1607
  // required bytes databytes = 1;
1608
0
  if (_internal_has_databytes()) {
1609
0
    total_size += 1 +
1610
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
1611
0
        this->_internal_databytes());
1612
0
  }
1613
0
  uint32_t cached_has_bits = 0;
1614
  // Prevent compiler warnings about cached_has_bits being unused
1615
0
  (void) cached_has_bits;
1616
1617
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1618
0
}
1619
1620
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BytesResponse::_class_data_ = {
1621
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1622
    BytesResponse::MergeImpl
1623
};
1624
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesResponse::GetClassData() const { return &_class_data_; }
1625
1626
1627
0
void BytesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1628
0
  auto* const _this = static_cast<BytesResponse*>(&to_msg);
1629
0
  auto& from = static_cast<const BytesResponse&>(from_msg);
1630
  // @@protoc_insertion_point(class_specific_merge_from_start:test.BytesResponse)
1631
0
  GOOGLE_DCHECK_NE(&from, _this);
1632
0
  uint32_t cached_has_bits = 0;
1633
0
  (void) cached_has_bits;
1634
1635
0
  if (from._internal_has_databytes()) {
1636
0
    _this->_internal_set_databytes(from._internal_databytes());
1637
0
  }
1638
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1639
0
}
1640
1641
0
void BytesResponse::CopyFrom(const BytesResponse& from) {
1642
// @@protoc_insertion_point(class_specific_copy_from_start:test.BytesResponse)
1643
0
  if (&from == this) return;
1644
0
  Clear();
1645
0
  MergeFrom(from);
1646
0
}
1647
1648
0
bool BytesResponse::IsInitialized() const {
1649
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1650
0
  return true;
1651
0
}
1652
1653
0
void BytesResponse::InternalSwap(BytesResponse* other) {
1654
0
  using std::swap;
1655
0
  auto* lhs_arena = GetArenaForAllocation();
1656
0
  auto* rhs_arena = other->GetArenaForAllocation();
1657
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1658
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1659
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1660
0
      &_impl_.databytes_, lhs_arena,
1661
0
      &other->_impl_.databytes_, rhs_arena
1662
0
  );
1663
0
}
1664
1665
0
::PROTOBUF_NAMESPACE_ID::Metadata BytesResponse::GetMetadata() const {
1666
0
  return ::_pbi::AssignDescriptors(
1667
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1668
0
      file_level_metadata_echo_2eproto[4]);
1669
0
}
1670
1671
// ===================================================================
1672
1673
class ComboResponse::_Internal {
1674
 public:
1675
};
1676
1677
ComboResponse::ComboResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1678
                         bool is_message_owned)
1679
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1680
0
  SharedCtor(arena, is_message_owned);
1681
  // @@protoc_insertion_point(arena_constructor:test.ComboResponse)
1682
0
}
1683
ComboResponse::ComboResponse(const ComboResponse& from)
1684
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1685
0
  ComboResponse* const _this = this; (void)_this;
1686
0
  new (&_impl_) Impl_{
1687
0
      decltype(_impl_.responses_){from._impl_.responses_}
1688
0
    , /*decltype(_impl_._cached_size_)*/{}};
1689
1690
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1691
  // @@protoc_insertion_point(copy_constructor:test.ComboResponse)
1692
0
}
1693
1694
inline void ComboResponse::SharedCtor(
1695
0
    ::_pb::Arena* arena, bool is_message_owned) {
1696
0
  (void)arena;
1697
0
  (void)is_message_owned;
1698
0
  new (&_impl_) Impl_{
1699
0
      decltype(_impl_.responses_){arena}
1700
0
    , /*decltype(_impl_._cached_size_)*/{}
1701
0
  };
1702
0
}
1703
1704
0
ComboResponse::~ComboResponse() {
1705
  // @@protoc_insertion_point(destructor:test.ComboResponse)
1706
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1707
0
  (void)arena;
1708
0
    return;
1709
0
  }
1710
0
  SharedDtor();
1711
0
}
1712
1713
0
inline void ComboResponse::SharedDtor() {
1714
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1715
0
  _impl_.responses_.~RepeatedPtrField();
1716
0
}
1717
1718
0
void ComboResponse::SetCachedSize(int size) const {
1719
0
  _impl_._cached_size_.Set(size);
1720
0
}
1721
1722
0
void ComboResponse::Clear() {
1723
// @@protoc_insertion_point(message_clear_start:test.ComboResponse)
1724
0
  uint32_t cached_has_bits = 0;
1725
  // Prevent compiler warnings about cached_has_bits being unused
1726
0
  (void) cached_has_bits;
1727
1728
0
  _impl_.responses_.Clear();
1729
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1730
0
}
1731
1732
0
const char* ComboResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1733
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1734
0
  while (!ctx->Done(&ptr)) {
1735
0
    uint32_t tag;
1736
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1737
0
    switch (tag >> 3) {
1738
      // repeated .test.EchoResponse responses = 1;
1739
0
      case 1:
1740
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1741
0
          ptr -= 1;
1742
0
          do {
1743
0
            ptr += 1;
1744
0
            ptr = ctx->ParseMessage(_internal_add_responses(), ptr);
1745
0
            CHK_(ptr);
1746
0
            if (!ctx->DataAvailable(ptr)) break;
1747
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1748
0
        } else
1749
0
          goto handle_unusual;
1750
0
        continue;
1751
0
      default:
1752
0
        goto handle_unusual;
1753
0
    }  // switch
1754
0
  handle_unusual:
1755
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1756
0
      CHK_(ptr);
1757
0
      ctx->SetLastTag(tag);
1758
0
      goto message_done;
1759
0
    }
1760
0
    ptr = UnknownFieldParse(
1761
0
        tag,
1762
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1763
0
        ptr, ctx);
1764
0
    CHK_(ptr != nullptr);
1765
0
  }  // while
1766
0
message_done:
1767
0
  return ptr;
1768
0
failure:
1769
0
  ptr = nullptr;
1770
0
  goto message_done;
1771
0
#undef CHK_
1772
0
}
1773
1774
uint8_t* ComboResponse::_InternalSerialize(
1775
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1776
  // @@protoc_insertion_point(serialize_to_array_start:test.ComboResponse)
1777
0
  uint32_t cached_has_bits = 0;
1778
0
  (void) cached_has_bits;
1779
1780
  // repeated .test.EchoResponse responses = 1;
1781
0
  for (unsigned i = 0,
1782
0
      n = static_cast<unsigned>(this->_internal_responses_size()); i < n; i++) {
1783
0
    const auto& repfield = this->_internal_responses(i);
1784
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1785
0
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1786
0
  }
1787
1788
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1789
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1790
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1791
0
  }
1792
  // @@protoc_insertion_point(serialize_to_array_end:test.ComboResponse)
1793
0
  return target;
1794
0
}
1795
1796
0
size_t ComboResponse::ByteSizeLong() const {
1797
// @@protoc_insertion_point(message_byte_size_start:test.ComboResponse)
1798
0
  size_t total_size = 0;
1799
1800
0
  uint32_t cached_has_bits = 0;
1801
  // Prevent compiler warnings about cached_has_bits being unused
1802
0
  (void) cached_has_bits;
1803
1804
  // repeated .test.EchoResponse responses = 1;
1805
0
  total_size += 1UL * this->_internal_responses_size();
1806
0
  for (const auto& msg : this->_impl_.responses_) {
1807
0
    total_size +=
1808
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1809
0
  }
1810
1811
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1812
0
}
1813
1814
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComboResponse::_class_data_ = {
1815
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1816
    ComboResponse::MergeImpl
1817
};
1818
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComboResponse::GetClassData() const { return &_class_data_; }
1819
1820
1821
0
void ComboResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1822
0
  auto* const _this = static_cast<ComboResponse*>(&to_msg);
1823
0
  auto& from = static_cast<const ComboResponse&>(from_msg);
1824
  // @@protoc_insertion_point(class_specific_merge_from_start:test.ComboResponse)
1825
0
  GOOGLE_DCHECK_NE(&from, _this);
1826
0
  uint32_t cached_has_bits = 0;
1827
0
  (void) cached_has_bits;
1828
1829
0
  _this->_impl_.responses_.MergeFrom(from._impl_.responses_);
1830
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1831
0
}
1832
1833
0
void ComboResponse::CopyFrom(const ComboResponse& from) {
1834
// @@protoc_insertion_point(class_specific_copy_from_start:test.ComboResponse)
1835
0
  if (&from == this) return;
1836
0
  Clear();
1837
0
  MergeFrom(from);
1838
0
}
1839
1840
0
bool ComboResponse::IsInitialized() const {
1841
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.responses_))
1842
0
    return false;
1843
0
  return true;
1844
0
}
1845
1846
0
void ComboResponse::InternalSwap(ComboResponse* other) {
1847
0
  using std::swap;
1848
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1849
0
  _impl_.responses_.InternalSwap(&other->_impl_.responses_);
1850
0
}
1851
1852
0
::PROTOBUF_NAMESPACE_ID::Metadata ComboResponse::GetMetadata() const {
1853
0
  return ::_pbi::AssignDescriptors(
1854
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1855
0
      file_level_metadata_echo_2eproto[5]);
1856
0
}
1857
1858
// ===================================================================
1859
1860
class HttpRequest::_Internal {
1861
 public:
1862
};
1863
1864
HttpRequest::HttpRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1865
                         bool is_message_owned)
1866
0
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
1867
  // @@protoc_insertion_point(arena_constructor:test.HttpRequest)
1868
0
}
1869
HttpRequest::HttpRequest(const HttpRequest& from)
1870
0
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
1871
0
  HttpRequest* const _this = this; (void)_this;
1872
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1873
  // @@protoc_insertion_point(copy_constructor:test.HttpRequest)
1874
0
}
1875
1876
1877
1878
1879
1880
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRequest::_class_data_ = {
1881
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
1882
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
1883
};
1884
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRequest::GetClassData() const { return &_class_data_; }
1885
1886
1887
1888
1889
1890
1891
1892
0
::PROTOBUF_NAMESPACE_ID::Metadata HttpRequest::GetMetadata() const {
1893
0
  return ::_pbi::AssignDescriptors(
1894
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1895
0
      file_level_metadata_echo_2eproto[6]);
1896
0
}
1897
1898
// ===================================================================
1899
1900
class HttpResponse::_Internal {
1901
 public:
1902
};
1903
1904
HttpResponse::HttpResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1905
                         bool is_message_owned)
1906
0
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
1907
  // @@protoc_insertion_point(arena_constructor:test.HttpResponse)
1908
0
}
1909
HttpResponse::HttpResponse(const HttpResponse& from)
1910
0
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
1911
0
  HttpResponse* const _this = this; (void)_this;
1912
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1913
  // @@protoc_insertion_point(copy_constructor:test.HttpResponse)
1914
0
}
1915
1916
1917
1918
1919
1920
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpResponse::_class_data_ = {
1921
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
1922
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
1923
};
1924
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpResponse::GetClassData() const { return &_class_data_; }
1925
1926
1927
1928
1929
1930
1931
1932
0
::PROTOBUF_NAMESPACE_ID::Metadata HttpResponse::GetMetadata() const {
1933
0
  return ::_pbi::AssignDescriptors(
1934
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
1935
0
      file_level_metadata_echo_2eproto[7]);
1936
0
}
1937
1938
// ===================================================================
1939
1940
class Message1::_Internal {
1941
 public:
1942
  using HasBits = decltype(std::declval<Message1>()._impl_._has_bits_);
1943
0
  static void set_has_stat(HasBits* has_bits) {
1944
0
    (*has_bits)[0] |= 1u;
1945
0
  }
1946
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
1947
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
1948
0
  }
1949
};
1950
1951
Message1::Message1(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1952
                         bool is_message_owned)
1953
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1954
0
  SharedCtor(arena, is_message_owned);
1955
  // @@protoc_insertion_point(arena_constructor:test.Message1)
1956
0
}
1957
Message1::Message1(const Message1& from)
1958
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1959
0
  Message1* const _this = this; (void)_this;
1960
0
  new (&_impl_) Impl_{
1961
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1962
0
    , /*decltype(_impl_._cached_size_)*/{}
1963
0
    , decltype(_impl_.stat_){}};
1964
1965
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1966
0
  _this->_impl_.stat_ = from._impl_.stat_;
1967
  // @@protoc_insertion_point(copy_constructor:test.Message1)
1968
0
}
1969
1970
inline void Message1::SharedCtor(
1971
0
    ::_pb::Arena* arena, bool is_message_owned) {
1972
0
  (void)arena;
1973
0
  (void)is_message_owned;
1974
0
  new (&_impl_) Impl_{
1975
0
      decltype(_impl_._has_bits_){}
1976
0
    , /*decltype(_impl_._cached_size_)*/{}
1977
0
    , decltype(_impl_.stat_){0}
1978
0
  };
1979
0
}
1980
1981
0
Message1::~Message1() {
1982
  // @@protoc_insertion_point(destructor:test.Message1)
1983
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1984
0
  (void)arena;
1985
0
    return;
1986
0
  }
1987
0
  SharedDtor();
1988
0
}
1989
1990
0
inline void Message1::SharedDtor() {
1991
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1992
0
}
1993
1994
0
void Message1::SetCachedSize(int size) const {
1995
0
  _impl_._cached_size_.Set(size);
1996
0
}
1997
1998
0
void Message1::Clear() {
1999
// @@protoc_insertion_point(message_clear_start:test.Message1)
2000
0
  uint32_t cached_has_bits = 0;
2001
  // Prevent compiler warnings about cached_has_bits being unused
2002
0
  (void) cached_has_bits;
2003
2004
0
  _impl_.stat_ = 0;
2005
0
  _impl_._has_bits_.Clear();
2006
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2007
0
}
2008
2009
0
const char* Message1::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2010
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2011
0
  _Internal::HasBits has_bits{};
2012
0
  while (!ctx->Done(&ptr)) {
2013
0
    uint32_t tag;
2014
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2015
0
    switch (tag >> 3) {
2016
      // required .test.State0 stat = 1;
2017
0
      case 1:
2018
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2019
0
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2020
0
          CHK_(ptr);
2021
0
          if (PROTOBUF_PREDICT_TRUE(::test::State0_IsValid(val))) {
2022
0
            _internal_set_stat(static_cast<::test::State0>(val));
2023
0
          } else {
2024
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
2025
0
          }
2026
0
        } else
2027
0
          goto handle_unusual;
2028
0
        continue;
2029
0
      default:
2030
0
        goto handle_unusual;
2031
0
    }  // switch
2032
0
  handle_unusual:
2033
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2034
0
      CHK_(ptr);
2035
0
      ctx->SetLastTag(tag);
2036
0
      goto message_done;
2037
0
    }
2038
0
    ptr = UnknownFieldParse(
2039
0
        tag,
2040
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2041
0
        ptr, ctx);
2042
0
    CHK_(ptr != nullptr);
2043
0
  }  // while
2044
0
message_done:
2045
0
  _impl_._has_bits_.Or(has_bits);
2046
0
  return ptr;
2047
0
failure:
2048
0
  ptr = nullptr;
2049
0
  goto message_done;
2050
0
#undef CHK_
2051
0
}
2052
2053
uint8_t* Message1::_InternalSerialize(
2054
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2055
  // @@protoc_insertion_point(serialize_to_array_start:test.Message1)
2056
0
  uint32_t cached_has_bits = 0;
2057
0
  (void) cached_has_bits;
2058
2059
0
  cached_has_bits = _impl_._has_bits_[0];
2060
  // required .test.State0 stat = 1;
2061
0
  if (cached_has_bits & 0x00000001u) {
2062
0
    target = stream->EnsureSpace(target);
2063
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
2064
0
      1, this->_internal_stat(), target);
2065
0
  }
2066
2067
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2068
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2069
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2070
0
  }
2071
  // @@protoc_insertion_point(serialize_to_array_end:test.Message1)
2072
0
  return target;
2073
0
}
2074
2075
0
size_t Message1::ByteSizeLong() const {
2076
// @@protoc_insertion_point(message_byte_size_start:test.Message1)
2077
0
  size_t total_size = 0;
2078
2079
  // required .test.State0 stat = 1;
2080
0
  if (_internal_has_stat()) {
2081
0
    total_size += 1 +
2082
0
      ::_pbi::WireFormatLite::EnumSize(this->_internal_stat());
2083
0
  }
2084
0
  uint32_t cached_has_bits = 0;
2085
  // Prevent compiler warnings about cached_has_bits being unused
2086
0
  (void) cached_has_bits;
2087
2088
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2089
0
}
2090
2091
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message1::_class_data_ = {
2092
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2093
    Message1::MergeImpl
2094
};
2095
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message1::GetClassData() const { return &_class_data_; }
2096
2097
2098
0
void Message1::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2099
0
  auto* const _this = static_cast<Message1*>(&to_msg);
2100
0
  auto& from = static_cast<const Message1&>(from_msg);
2101
  // @@protoc_insertion_point(class_specific_merge_from_start:test.Message1)
2102
0
  GOOGLE_DCHECK_NE(&from, _this);
2103
0
  uint32_t cached_has_bits = 0;
2104
0
  (void) cached_has_bits;
2105
2106
0
  if (from._internal_has_stat()) {
2107
0
    _this->_internal_set_stat(from._internal_stat());
2108
0
  }
2109
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2110
0
}
2111
2112
0
void Message1::CopyFrom(const Message1& from) {
2113
// @@protoc_insertion_point(class_specific_copy_from_start:test.Message1)
2114
0
  if (&from == this) return;
2115
0
  Clear();
2116
0
  MergeFrom(from);
2117
0
}
2118
2119
0
bool Message1::IsInitialized() const {
2120
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
2121
0
  return true;
2122
0
}
2123
2124
0
void Message1::InternalSwap(Message1* other) {
2125
0
  using std::swap;
2126
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2127
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2128
0
  swap(_impl_.stat_, other->_impl_.stat_);
2129
0
}
2130
2131
0
::PROTOBUF_NAMESPACE_ID::Metadata Message1::GetMetadata() const {
2132
0
  return ::_pbi::AssignDescriptors(
2133
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
2134
0
      file_level_metadata_echo_2eproto[8]);
2135
0
}
2136
2137
// ===================================================================
2138
2139
class Message2::_Internal {
2140
 public:
2141
  using HasBits = decltype(std::declval<Message2>()._impl_._has_bits_);
2142
0
  static void set_has_stat(HasBits* has_bits) {
2143
0
    (*has_bits)[0] |= 1u;
2144
0
  }
2145
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
2146
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
2147
0
  }
2148
};
2149
2150
Message2::Message2(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2151
                         bool is_message_owned)
2152
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2153
0
  SharedCtor(arena, is_message_owned);
2154
  // @@protoc_insertion_point(arena_constructor:test.Message2)
2155
0
}
2156
Message2::Message2(const Message2& from)
2157
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2158
0
  Message2* const _this = this; (void)_this;
2159
0
  new (&_impl_) Impl_{
2160
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2161
0
    , /*decltype(_impl_._cached_size_)*/{}
2162
0
    , decltype(_impl_.stat_){}};
2163
2164
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2165
0
  _this->_impl_.stat_ = from._impl_.stat_;
2166
  // @@protoc_insertion_point(copy_constructor:test.Message2)
2167
0
}
2168
2169
inline void Message2::SharedCtor(
2170
0
    ::_pb::Arena* arena, bool is_message_owned) {
2171
0
  (void)arena;
2172
0
  (void)is_message_owned;
2173
0
  new (&_impl_) Impl_{
2174
0
      decltype(_impl_._has_bits_){}
2175
0
    , /*decltype(_impl_._cached_size_)*/{}
2176
0
    , decltype(_impl_.stat_){0}
2177
0
  };
2178
0
}
2179
2180
0
Message2::~Message2() {
2181
  // @@protoc_insertion_point(destructor:test.Message2)
2182
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2183
0
  (void)arena;
2184
0
    return;
2185
0
  }
2186
0
  SharedDtor();
2187
0
}
2188
2189
0
inline void Message2::SharedDtor() {
2190
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2191
0
}
2192
2193
0
void Message2::SetCachedSize(int size) const {
2194
0
  _impl_._cached_size_.Set(size);
2195
0
}
2196
2197
0
void Message2::Clear() {
2198
// @@protoc_insertion_point(message_clear_start:test.Message2)
2199
0
  uint32_t cached_has_bits = 0;
2200
  // Prevent compiler warnings about cached_has_bits being unused
2201
0
  (void) cached_has_bits;
2202
2203
0
  _impl_.stat_ = 0;
2204
0
  _impl_._has_bits_.Clear();
2205
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2206
0
}
2207
2208
0
const char* Message2::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2209
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2210
0
  _Internal::HasBits has_bits{};
2211
0
  while (!ctx->Done(&ptr)) {
2212
0
    uint32_t tag;
2213
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2214
0
    switch (tag >> 3) {
2215
      // required .test.State1 stat = 1;
2216
0
      case 1:
2217
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2218
0
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2219
0
          CHK_(ptr);
2220
0
          if (PROTOBUF_PREDICT_TRUE(::test::State1_IsValid(val))) {
2221
0
            _internal_set_stat(static_cast<::test::State1>(val));
2222
0
          } else {
2223
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
2224
0
          }
2225
0
        } else
2226
0
          goto handle_unusual;
2227
0
        continue;
2228
0
      default:
2229
0
        goto handle_unusual;
2230
0
    }  // switch
2231
0
  handle_unusual:
2232
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2233
0
      CHK_(ptr);
2234
0
      ctx->SetLastTag(tag);
2235
0
      goto message_done;
2236
0
    }
2237
0
    ptr = UnknownFieldParse(
2238
0
        tag,
2239
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2240
0
        ptr, ctx);
2241
0
    CHK_(ptr != nullptr);
2242
0
  }  // while
2243
0
message_done:
2244
0
  _impl_._has_bits_.Or(has_bits);
2245
0
  return ptr;
2246
0
failure:
2247
0
  ptr = nullptr;
2248
0
  goto message_done;
2249
0
#undef CHK_
2250
0
}
2251
2252
uint8_t* Message2::_InternalSerialize(
2253
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2254
  // @@protoc_insertion_point(serialize_to_array_start:test.Message2)
2255
0
  uint32_t cached_has_bits = 0;
2256
0
  (void) cached_has_bits;
2257
2258
0
  cached_has_bits = _impl_._has_bits_[0];
2259
  // required .test.State1 stat = 1;
2260
0
  if (cached_has_bits & 0x00000001u) {
2261
0
    target = stream->EnsureSpace(target);
2262
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
2263
0
      1, this->_internal_stat(), target);
2264
0
  }
2265
2266
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2267
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2268
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2269
0
  }
2270
  // @@protoc_insertion_point(serialize_to_array_end:test.Message2)
2271
0
  return target;
2272
0
}
2273
2274
0
size_t Message2::ByteSizeLong() const {
2275
// @@protoc_insertion_point(message_byte_size_start:test.Message2)
2276
0
  size_t total_size = 0;
2277
2278
  // required .test.State1 stat = 1;
2279
0
  if (_internal_has_stat()) {
2280
0
    total_size += 1 +
2281
0
      ::_pbi::WireFormatLite::EnumSize(this->_internal_stat());
2282
0
  }
2283
0
  uint32_t cached_has_bits = 0;
2284
  // Prevent compiler warnings about cached_has_bits being unused
2285
0
  (void) cached_has_bits;
2286
2287
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2288
0
}
2289
2290
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message2::_class_data_ = {
2291
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2292
    Message2::MergeImpl
2293
};
2294
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message2::GetClassData() const { return &_class_data_; }
2295
2296
2297
0
void Message2::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2298
0
  auto* const _this = static_cast<Message2*>(&to_msg);
2299
0
  auto& from = static_cast<const Message2&>(from_msg);
2300
  // @@protoc_insertion_point(class_specific_merge_from_start:test.Message2)
2301
0
  GOOGLE_DCHECK_NE(&from, _this);
2302
0
  uint32_t cached_has_bits = 0;
2303
0
  (void) cached_has_bits;
2304
2305
0
  if (from._internal_has_stat()) {
2306
0
    _this->_internal_set_stat(from._internal_stat());
2307
0
  }
2308
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2309
0
}
2310
2311
0
void Message2::CopyFrom(const Message2& from) {
2312
// @@protoc_insertion_point(class_specific_copy_from_start:test.Message2)
2313
0
  if (&from == this) return;
2314
0
  Clear();
2315
0
  MergeFrom(from);
2316
0
}
2317
2318
0
bool Message2::IsInitialized() const {
2319
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
2320
0
  return true;
2321
0
}
2322
2323
0
void Message2::InternalSwap(Message2* other) {
2324
0
  using std::swap;
2325
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2326
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2327
0
  swap(_impl_.stat_, other->_impl_.stat_);
2328
0
}
2329
2330
0
::PROTOBUF_NAMESPACE_ID::Metadata Message2::GetMetadata() const {
2331
0
  return ::_pbi::AssignDescriptors(
2332
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
2333
0
      file_level_metadata_echo_2eproto[9]);
2334
0
}
2335
2336
// ===================================================================
2337
2338
class RecursiveMessage::_Internal {
2339
 public:
2340
  using HasBits = decltype(std::declval<RecursiveMessage>()._impl_._has_bits_);
2341
  static const ::test::RecursiveMessage& child(const RecursiveMessage* msg);
2342
0
  static void set_has_child(HasBits* has_bits) {
2343
0
    (*has_bits)[0] |= 2u;
2344
0
  }
2345
0
  static void set_has_data(HasBits* has_bits) {
2346
0
    (*has_bits)[0] |= 1u;
2347
0
  }
2348
};
2349
2350
const ::test::RecursiveMessage&
2351
0
RecursiveMessage::_Internal::child(const RecursiveMessage* msg) {
2352
0
  return *msg->_impl_.child_;
2353
0
}
2354
RecursiveMessage::RecursiveMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2355
                         bool is_message_owned)
2356
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2357
0
  SharedCtor(arena, is_message_owned);
2358
  // @@protoc_insertion_point(arena_constructor:test.RecursiveMessage)
2359
0
}
2360
RecursiveMessage::RecursiveMessage(const RecursiveMessage& from)
2361
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2362
0
  RecursiveMessage* const _this = this; (void)_this;
2363
0
  new (&_impl_) Impl_{
2364
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2365
0
    , /*decltype(_impl_._cached_size_)*/{}
2366
0
    , decltype(_impl_.data_){}
2367
0
    , decltype(_impl_.child_){nullptr}};
2368
2369
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2370
0
  _impl_.data_.InitDefault();
2371
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2372
    _impl_.data_.Set("", GetArenaForAllocation());
2373
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2374
0
  if (from._internal_has_data()) {
2375
0
    _this->_impl_.data_.Set(from._internal_data(), 
2376
0
      _this->GetArenaForAllocation());
2377
0
  }
2378
0
  if (from._internal_has_child()) {
2379
0
    _this->_impl_.child_ = new ::test::RecursiveMessage(*from._impl_.child_);
2380
0
  }
2381
  // @@protoc_insertion_point(copy_constructor:test.RecursiveMessage)
2382
0
}
2383
2384
inline void RecursiveMessage::SharedCtor(
2385
0
    ::_pb::Arena* arena, bool is_message_owned) {
2386
0
  (void)arena;
2387
0
  (void)is_message_owned;
2388
0
  new (&_impl_) Impl_{
2389
0
      decltype(_impl_._has_bits_){}
2390
0
    , /*decltype(_impl_._cached_size_)*/{}
2391
0
    , decltype(_impl_.data_){}
2392
0
    , decltype(_impl_.child_){nullptr}
2393
0
  };
2394
0
  _impl_.data_.InitDefault();
2395
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2396
    _impl_.data_.Set("", GetArenaForAllocation());
2397
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2398
0
}
2399
2400
0
RecursiveMessage::~RecursiveMessage() {
2401
  // @@protoc_insertion_point(destructor:test.RecursiveMessage)
2402
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2403
0
  (void)arena;
2404
0
    return;
2405
0
  }
2406
0
  SharedDtor();
2407
0
}
2408
2409
0
inline void RecursiveMessage::SharedDtor() {
2410
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2411
0
  _impl_.data_.Destroy();
2412
0
  if (this != internal_default_instance()) delete _impl_.child_;
2413
0
}
2414
2415
0
void RecursiveMessage::SetCachedSize(int size) const {
2416
0
  _impl_._cached_size_.Set(size);
2417
0
}
2418
2419
0
void RecursiveMessage::Clear() {
2420
// @@protoc_insertion_point(message_clear_start:test.RecursiveMessage)
2421
0
  uint32_t cached_has_bits = 0;
2422
  // Prevent compiler warnings about cached_has_bits being unused
2423
0
  (void) cached_has_bits;
2424
2425
0
  cached_has_bits = _impl_._has_bits_[0];
2426
0
  if (cached_has_bits & 0x00000003u) {
2427
0
    if (cached_has_bits & 0x00000001u) {
2428
0
      _impl_.data_.ClearNonDefaultToEmpty();
2429
0
    }
2430
0
    if (cached_has_bits & 0x00000002u) {
2431
0
      GOOGLE_DCHECK(_impl_.child_ != nullptr);
2432
0
      _impl_.child_->Clear();
2433
0
    }
2434
0
  }
2435
0
  _impl_._has_bits_.Clear();
2436
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2437
0
}
2438
2439
0
const char* RecursiveMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2440
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2441
0
  _Internal::HasBits has_bits{};
2442
0
  while (!ctx->Done(&ptr)) {
2443
0
    uint32_t tag;
2444
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2445
0
    switch (tag >> 3) {
2446
      // optional .test.RecursiveMessage child = 1;
2447
0
      case 1:
2448
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
2449
0
          ptr = ctx->ParseMessage(_internal_mutable_child(), ptr);
2450
0
          CHK_(ptr);
2451
0
        } else
2452
0
          goto handle_unusual;
2453
0
        continue;
2454
      // optional string data = 2;
2455
0
      case 2:
2456
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2457
0
          auto str = _internal_mutable_data();
2458
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2459
0
          CHK_(ptr);
2460
0
          #ifndef NDEBUG
2461
0
          ::_pbi::VerifyUTF8(str, "test.RecursiveMessage.data");
2462
0
          #endif  // !NDEBUG
2463
0
        } else
2464
0
          goto handle_unusual;
2465
0
        continue;
2466
0
      default:
2467
0
        goto handle_unusual;
2468
0
    }  // switch
2469
0
  handle_unusual:
2470
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2471
0
      CHK_(ptr);
2472
0
      ctx->SetLastTag(tag);
2473
0
      goto message_done;
2474
0
    }
2475
0
    ptr = UnknownFieldParse(
2476
0
        tag,
2477
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2478
0
        ptr, ctx);
2479
0
    CHK_(ptr != nullptr);
2480
0
  }  // while
2481
0
message_done:
2482
0
  _impl_._has_bits_.Or(has_bits);
2483
0
  return ptr;
2484
0
failure:
2485
0
  ptr = nullptr;
2486
0
  goto message_done;
2487
0
#undef CHK_
2488
0
}
2489
2490
uint8_t* RecursiveMessage::_InternalSerialize(
2491
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2492
  // @@protoc_insertion_point(serialize_to_array_start:test.RecursiveMessage)
2493
0
  uint32_t cached_has_bits = 0;
2494
0
  (void) cached_has_bits;
2495
2496
0
  cached_has_bits = _impl_._has_bits_[0];
2497
  // optional .test.RecursiveMessage child = 1;
2498
0
  if (cached_has_bits & 0x00000002u) {
2499
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2500
0
      InternalWriteMessage(1, _Internal::child(this),
2501
0
        _Internal::child(this).GetCachedSize(), target, stream);
2502
0
  }
2503
2504
  // optional string data = 2;
2505
0
  if (cached_has_bits & 0x00000001u) {
2506
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
2507
0
      this->_internal_data().data(), static_cast<int>(this->_internal_data().length()),
2508
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
2509
0
      "test.RecursiveMessage.data");
2510
0
    target = stream->WriteStringMaybeAliased(
2511
0
        2, this->_internal_data(), target);
2512
0
  }
2513
2514
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2515
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2516
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2517
0
  }
2518
  // @@protoc_insertion_point(serialize_to_array_end:test.RecursiveMessage)
2519
0
  return target;
2520
0
}
2521
2522
0
size_t RecursiveMessage::ByteSizeLong() const {
2523
// @@protoc_insertion_point(message_byte_size_start:test.RecursiveMessage)
2524
0
  size_t total_size = 0;
2525
2526
0
  uint32_t cached_has_bits = 0;
2527
  // Prevent compiler warnings about cached_has_bits being unused
2528
0
  (void) cached_has_bits;
2529
2530
0
  cached_has_bits = _impl_._has_bits_[0];
2531
0
  if (cached_has_bits & 0x00000003u) {
2532
    // optional string data = 2;
2533
0
    if (cached_has_bits & 0x00000001u) {
2534
0
      total_size += 1 +
2535
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2536
0
          this->_internal_data());
2537
0
    }
2538
2539
    // optional .test.RecursiveMessage child = 1;
2540
0
    if (cached_has_bits & 0x00000002u) {
2541
0
      total_size += 1 +
2542
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2543
0
          *_impl_.child_);
2544
0
    }
2545
2546
0
  }
2547
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2548
0
}
2549
2550
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecursiveMessage::_class_data_ = {
2551
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2552
    RecursiveMessage::MergeImpl
2553
};
2554
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecursiveMessage::GetClassData() const { return &_class_data_; }
2555
2556
2557
0
void RecursiveMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2558
0
  auto* const _this = static_cast<RecursiveMessage*>(&to_msg);
2559
0
  auto& from = static_cast<const RecursiveMessage&>(from_msg);
2560
  // @@protoc_insertion_point(class_specific_merge_from_start:test.RecursiveMessage)
2561
0
  GOOGLE_DCHECK_NE(&from, _this);
2562
0
  uint32_t cached_has_bits = 0;
2563
0
  (void) cached_has_bits;
2564
2565
0
  cached_has_bits = from._impl_._has_bits_[0];
2566
0
  if (cached_has_bits & 0x00000003u) {
2567
0
    if (cached_has_bits & 0x00000001u) {
2568
0
      _this->_internal_set_data(from._internal_data());
2569
0
    }
2570
0
    if (cached_has_bits & 0x00000002u) {
2571
0
      _this->_internal_mutable_child()->::test::RecursiveMessage::MergeFrom(
2572
0
          from._internal_child());
2573
0
    }
2574
0
  }
2575
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2576
0
}
2577
2578
0
void RecursiveMessage::CopyFrom(const RecursiveMessage& from) {
2579
// @@protoc_insertion_point(class_specific_copy_from_start:test.RecursiveMessage)
2580
0
  if (&from == this) return;
2581
0
  Clear();
2582
0
  MergeFrom(from);
2583
0
}
2584
2585
0
bool RecursiveMessage::IsInitialized() const {
2586
0
  return true;
2587
0
}
2588
2589
0
void RecursiveMessage::InternalSwap(RecursiveMessage* other) {
2590
0
  using std::swap;
2591
0
  auto* lhs_arena = GetArenaForAllocation();
2592
0
  auto* rhs_arena = other->GetArenaForAllocation();
2593
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2594
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2595
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2596
0
      &_impl_.data_, lhs_arena,
2597
0
      &other->_impl_.data_, rhs_arena
2598
0
  );
2599
0
  swap(_impl_.child_, other->_impl_.child_);
2600
0
}
2601
2602
0
::PROTOBUF_NAMESPACE_ID::Metadata RecursiveMessage::GetMetadata() const {
2603
0
  return ::_pbi::AssignDescriptors(
2604
0
      &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once,
2605
0
      file_level_metadata_echo_2eproto[10]);
2606
0
}
2607
2608
// ===================================================================
2609
2610
0
EchoService::~EchoService() {}
2611
2612
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* EchoService::descriptor() {
2613
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
2614
0
  return file_level_service_descriptors_echo_2eproto[0];
2615
0
}
2616
2617
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* EchoService::GetDescriptor() {
2618
0
  return descriptor();
2619
0
}
2620
2621
void EchoService::Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2622
                         const ::test::EchoRequest*,
2623
                         ::test::EchoResponse*,
2624
0
                         ::google::protobuf::Closure* done) {
2625
0
  controller->SetFailed("Method Echo() not implemented.");
2626
0
  done->Run();
2627
0
}
2628
2629
void EchoService::ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2630
                         const ::test::ComboRequest*,
2631
                         ::test::ComboResponse*,
2632
0
                         ::google::protobuf::Closure* done) {
2633
0
  controller->SetFailed("Method ComboEcho() not implemented.");
2634
0
  done->Run();
2635
0
}
2636
2637
void EchoService::BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2638
                         const ::test::BytesRequest*,
2639
                         ::test::BytesResponse*,
2640
0
                         ::google::protobuf::Closure* done) {
2641
0
  controller->SetFailed("Method BytesEcho1() not implemented.");
2642
0
  done->Run();
2643
0
}
2644
2645
void EchoService::BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2646
                         const ::test::BytesRequest*,
2647
                         ::test::BytesResponse*,
2648
0
                         ::google::protobuf::Closure* done) {
2649
0
  controller->SetFailed("Method BytesEcho2() not implemented.");
2650
0
  done->Run();
2651
0
}
2652
2653
void EchoService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
2654
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2655
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
2656
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
2657
0
                             ::google::protobuf::Closure* done) {
2658
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[0]);
2659
0
  switch(method->index()) {
2660
0
    case 0:
2661
0
      Echo(controller,
2662
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::EchoRequest*>(
2663
0
                 request),
2664
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::EchoResponse*>(
2665
0
                 response),
2666
0
             done);
2667
0
      break;
2668
0
    case 1:
2669
0
      ComboEcho(controller,
2670
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::ComboRequest*>(
2671
0
                 request),
2672
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::ComboResponse*>(
2673
0
                 response),
2674
0
             done);
2675
0
      break;
2676
0
    case 2:
2677
0
      BytesEcho1(controller,
2678
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::BytesRequest*>(
2679
0
                 request),
2680
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::BytesResponse*>(
2681
0
                 response),
2682
0
             done);
2683
0
      break;
2684
0
    case 3:
2685
0
      BytesEcho2(controller,
2686
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::BytesRequest*>(
2687
0
                 request),
2688
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::BytesResponse*>(
2689
0
                 response),
2690
0
             done);
2691
0
      break;
2692
0
    default:
2693
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2694
0
      break;
2695
0
  }
2696
0
}
2697
2698
const ::PROTOBUF_NAMESPACE_ID::Message& EchoService::GetRequestPrototype(
2699
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2700
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2701
0
  switch(method->index()) {
2702
0
    case 0:
2703
0
      return ::test::EchoRequest::default_instance();
2704
0
    case 1:
2705
0
      return ::test::ComboRequest::default_instance();
2706
0
    case 2:
2707
0
      return ::test::BytesRequest::default_instance();
2708
0
    case 3:
2709
0
      return ::test::BytesRequest::default_instance();
2710
0
    default:
2711
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2712
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2713
0
          ->GetPrototype(method->input_type());
2714
0
  }
2715
0
}
2716
2717
const ::PROTOBUF_NAMESPACE_ID::Message& EchoService::GetResponsePrototype(
2718
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2719
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2720
0
  switch(method->index()) {
2721
0
    case 0:
2722
0
      return ::test::EchoResponse::default_instance();
2723
0
    case 1:
2724
0
      return ::test::ComboResponse::default_instance();
2725
0
    case 2:
2726
0
      return ::test::BytesResponse::default_instance();
2727
0
    case 3:
2728
0
      return ::test::BytesResponse::default_instance();
2729
0
    default:
2730
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2731
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2732
0
          ->GetPrototype(method->output_type());
2733
0
  }
2734
0
}
2735
2736
EchoService_Stub::EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
2737
0
  : channel_(channel), owns_channel_(false) {}
2738
EchoService_Stub::EchoService_Stub(
2739
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
2740
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
2741
0
  : channel_(channel),
2742
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
2743
0
EchoService_Stub::~EchoService_Stub() {
2744
0
  if (owns_channel_) delete channel_;
2745
0
}
2746
2747
void EchoService_Stub::Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2748
                              const ::test::EchoRequest* request,
2749
                              ::test::EchoResponse* response,
2750
0
                              ::google::protobuf::Closure* done) {
2751
0
  channel_->CallMethod(descriptor()->method(0),
2752
0
                       controller, request, response, done);
2753
0
}
2754
void EchoService_Stub::ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2755
                              const ::test::ComboRequest* request,
2756
                              ::test::ComboResponse* response,
2757
0
                              ::google::protobuf::Closure* done) {
2758
0
  channel_->CallMethod(descriptor()->method(1),
2759
0
                       controller, request, response, done);
2760
0
}
2761
void EchoService_Stub::BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2762
                              const ::test::BytesRequest* request,
2763
                              ::test::BytesResponse* response,
2764
0
                              ::google::protobuf::Closure* done) {
2765
0
  channel_->CallMethod(descriptor()->method(2),
2766
0
                       controller, request, response, done);
2767
0
}
2768
void EchoService_Stub::BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2769
                              const ::test::BytesRequest* request,
2770
                              ::test::BytesResponse* response,
2771
0
                              ::google::protobuf::Closure* done) {
2772
0
  channel_->CallMethod(descriptor()->method(3),
2773
0
                       controller, request, response, done);
2774
0
}
2775
// ===================================================================
2776
2777
0
DownloadService::~DownloadService() {}
2778
2779
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DownloadService::descriptor() {
2780
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
2781
0
  return file_level_service_descriptors_echo_2eproto[1];
2782
0
}
2783
2784
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DownloadService::GetDescriptor() {
2785
0
  return descriptor();
2786
0
}
2787
2788
void DownloadService::Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2789
                         const ::test::HttpRequest*,
2790
                         ::test::HttpResponse*,
2791
0
                         ::google::protobuf::Closure* done) {
2792
0
  controller->SetFailed("Method Download() not implemented.");
2793
0
  done->Run();
2794
0
}
2795
2796
void DownloadService::DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2797
                         const ::test::HttpRequest*,
2798
                         ::test::HttpResponse*,
2799
0
                         ::google::protobuf::Closure* done) {
2800
0
  controller->SetFailed("Method DownloadFailed() not implemented.");
2801
0
  done->Run();
2802
0
}
2803
2804
void DownloadService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
2805
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2806
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
2807
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
2808
0
                             ::google::protobuf::Closure* done) {
2809
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[1]);
2810
0
  switch(method->index()) {
2811
0
    case 0:
2812
0
      Download(controller,
2813
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
2814
0
                 request),
2815
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
2816
0
                 response),
2817
0
             done);
2818
0
      break;
2819
0
    case 1:
2820
0
      DownloadFailed(controller,
2821
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
2822
0
                 request),
2823
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
2824
0
                 response),
2825
0
             done);
2826
0
      break;
2827
0
    default:
2828
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2829
0
      break;
2830
0
  }
2831
0
}
2832
2833
const ::PROTOBUF_NAMESPACE_ID::Message& DownloadService::GetRequestPrototype(
2834
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2835
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2836
0
  switch(method->index()) {
2837
0
    case 0:
2838
0
      return ::test::HttpRequest::default_instance();
2839
0
    case 1:
2840
0
      return ::test::HttpRequest::default_instance();
2841
0
    default:
2842
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2843
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2844
0
          ->GetPrototype(method->input_type());
2845
0
  }
2846
0
}
2847
2848
const ::PROTOBUF_NAMESPACE_ID::Message& DownloadService::GetResponsePrototype(
2849
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2850
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2851
0
  switch(method->index()) {
2852
0
    case 0:
2853
0
      return ::test::HttpResponse::default_instance();
2854
0
    case 1:
2855
0
      return ::test::HttpResponse::default_instance();
2856
0
    default:
2857
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2858
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2859
0
          ->GetPrototype(method->output_type());
2860
0
  }
2861
0
}
2862
2863
DownloadService_Stub::DownloadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
2864
0
  : channel_(channel), owns_channel_(false) {}
2865
DownloadService_Stub::DownloadService_Stub(
2866
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
2867
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
2868
0
  : channel_(channel),
2869
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
2870
0
DownloadService_Stub::~DownloadService_Stub() {
2871
0
  if (owns_channel_) delete channel_;
2872
0
}
2873
2874
void DownloadService_Stub::Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2875
                              const ::test::HttpRequest* request,
2876
                              ::test::HttpResponse* response,
2877
0
                              ::google::protobuf::Closure* done) {
2878
0
  channel_->CallMethod(descriptor()->method(0),
2879
0
                       controller, request, response, done);
2880
0
}
2881
void DownloadService_Stub::DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2882
                              const ::test::HttpRequest* request,
2883
                              ::test::HttpResponse* response,
2884
0
                              ::google::protobuf::Closure* done) {
2885
0
  channel_->CallMethod(descriptor()->method(1),
2886
0
                       controller, request, response, done);
2887
0
}
2888
// ===================================================================
2889
2890
0
UploadService::~UploadService() {}
2891
2892
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UploadService::descriptor() {
2893
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
2894
0
  return file_level_service_descriptors_echo_2eproto[2];
2895
0
}
2896
2897
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UploadService::GetDescriptor() {
2898
0
  return descriptor();
2899
0
}
2900
2901
void UploadService::Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2902
                         const ::test::HttpRequest*,
2903
                         ::test::HttpResponse*,
2904
0
                         ::google::protobuf::Closure* done) {
2905
0
  controller->SetFailed("Method Upload() not implemented.");
2906
0
  done->Run();
2907
0
}
2908
2909
void UploadService::UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2910
                         const ::test::HttpRequest*,
2911
                         ::test::HttpResponse*,
2912
0
                         ::google::protobuf::Closure* done) {
2913
0
  controller->SetFailed("Method UploadFailed() not implemented.");
2914
0
  done->Run();
2915
0
}
2916
2917
void UploadService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
2918
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2919
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
2920
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
2921
0
                             ::google::protobuf::Closure* done) {
2922
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[2]);
2923
0
  switch(method->index()) {
2924
0
    case 0:
2925
0
      Upload(controller,
2926
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
2927
0
                 request),
2928
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
2929
0
                 response),
2930
0
             done);
2931
0
      break;
2932
0
    case 1:
2933
0
      UploadFailed(controller,
2934
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
2935
0
                 request),
2936
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
2937
0
                 response),
2938
0
             done);
2939
0
      break;
2940
0
    default:
2941
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2942
0
      break;
2943
0
  }
2944
0
}
2945
2946
const ::PROTOBUF_NAMESPACE_ID::Message& UploadService::GetRequestPrototype(
2947
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2948
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2949
0
  switch(method->index()) {
2950
0
    case 0:
2951
0
      return ::test::HttpRequest::default_instance();
2952
0
    case 1:
2953
0
      return ::test::HttpRequest::default_instance();
2954
0
    default:
2955
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2956
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2957
0
          ->GetPrototype(method->input_type());
2958
0
  }
2959
0
}
2960
2961
const ::PROTOBUF_NAMESPACE_ID::Message& UploadService::GetResponsePrototype(
2962
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
2963
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
2964
0
  switch(method->index()) {
2965
0
    case 0:
2966
0
      return ::test::HttpResponse::default_instance();
2967
0
    case 1:
2968
0
      return ::test::HttpResponse::default_instance();
2969
0
    default:
2970
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
2971
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
2972
0
          ->GetPrototype(method->output_type());
2973
0
  }
2974
0
}
2975
2976
UploadService_Stub::UploadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
2977
0
  : channel_(channel), owns_channel_(false) {}
2978
UploadService_Stub::UploadService_Stub(
2979
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
2980
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
2981
0
  : channel_(channel),
2982
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
2983
0
UploadService_Stub::~UploadService_Stub() {
2984
0
  if (owns_channel_) delete channel_;
2985
0
}
2986
2987
void UploadService_Stub::Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2988
                              const ::test::HttpRequest* request,
2989
                              ::test::HttpResponse* response,
2990
0
                              ::google::protobuf::Closure* done) {
2991
0
  channel_->CallMethod(descriptor()->method(0),
2992
0
                       controller, request, response, done);
2993
0
}
2994
void UploadService_Stub::UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
2995
                              const ::test::HttpRequest* request,
2996
                              ::test::HttpResponse* response,
2997
0
                              ::google::protobuf::Closure* done) {
2998
0
  channel_->CallMethod(descriptor()->method(1),
2999
0
                       controller, request, response, done);
3000
0
}
3001
// ===================================================================
3002
3003
0
UserNamingService::~UserNamingService() {}
3004
3005
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UserNamingService::descriptor() {
3006
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
3007
0
  return file_level_service_descriptors_echo_2eproto[3];
3008
0
}
3009
3010
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UserNamingService::GetDescriptor() {
3011
0
  return descriptor();
3012
0
}
3013
3014
void UserNamingService::ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3015
                         const ::test::HttpRequest*,
3016
                         ::test::HttpResponse*,
3017
0
                         ::google::protobuf::Closure* done) {
3018
0
  controller->SetFailed("Method ListNames() not implemented.");
3019
0
  done->Run();
3020
0
}
3021
3022
void UserNamingService::Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3023
                         const ::test::HttpRequest*,
3024
                         ::test::HttpResponse*,
3025
0
                         ::google::protobuf::Closure* done) {
3026
0
  controller->SetFailed("Method Touch() not implemented.");
3027
0
  done->Run();
3028
0
}
3029
3030
void UserNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
3031
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3032
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
3033
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
3034
0
                             ::google::protobuf::Closure* done) {
3035
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[3]);
3036
0
  switch(method->index()) {
3037
0
    case 0:
3038
0
      ListNames(controller,
3039
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3040
0
                 request),
3041
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3042
0
                 response),
3043
0
             done);
3044
0
      break;
3045
0
    case 1:
3046
0
      Touch(controller,
3047
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3048
0
                 request),
3049
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3050
0
                 response),
3051
0
             done);
3052
0
      break;
3053
0
    default:
3054
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3055
0
      break;
3056
0
  }
3057
0
}
3058
3059
const ::PROTOBUF_NAMESPACE_ID::Message& UserNamingService::GetRequestPrototype(
3060
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3061
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3062
0
  switch(method->index()) {
3063
0
    case 0:
3064
0
      return ::test::HttpRequest::default_instance();
3065
0
    case 1:
3066
0
      return ::test::HttpRequest::default_instance();
3067
0
    default:
3068
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3069
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3070
0
          ->GetPrototype(method->input_type());
3071
0
  }
3072
0
}
3073
3074
const ::PROTOBUF_NAMESPACE_ID::Message& UserNamingService::GetResponsePrototype(
3075
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3076
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3077
0
  switch(method->index()) {
3078
0
    case 0:
3079
0
      return ::test::HttpResponse::default_instance();
3080
0
    case 1:
3081
0
      return ::test::HttpResponse::default_instance();
3082
0
    default:
3083
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3084
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3085
0
          ->GetPrototype(method->output_type());
3086
0
  }
3087
0
}
3088
3089
UserNamingService_Stub::UserNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
3090
0
  : channel_(channel), owns_channel_(false) {}
3091
UserNamingService_Stub::UserNamingService_Stub(
3092
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
3093
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
3094
0
  : channel_(channel),
3095
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
3096
0
UserNamingService_Stub::~UserNamingService_Stub() {
3097
0
  if (owns_channel_) delete channel_;
3098
0
}
3099
3100
void UserNamingService_Stub::ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3101
                              const ::test::HttpRequest* request,
3102
                              ::test::HttpResponse* response,
3103
0
                              ::google::protobuf::Closure* done) {
3104
0
  channel_->CallMethod(descriptor()->method(0),
3105
0
                       controller, request, response, done);
3106
0
}
3107
void UserNamingService_Stub::Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3108
                              const ::test::HttpRequest* request,
3109
                              ::test::HttpResponse* response,
3110
0
                              ::google::protobuf::Closure* done) {
3111
0
  channel_->CallMethod(descriptor()->method(1),
3112
0
                       controller, request, response, done);
3113
0
}
3114
// ===================================================================
3115
3116
0
DiscoveryNamingService::~DiscoveryNamingService() {}
3117
3118
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DiscoveryNamingService::descriptor() {
3119
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
3120
0
  return file_level_service_descriptors_echo_2eproto[4];
3121
0
}
3122
3123
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DiscoveryNamingService::GetDescriptor() {
3124
0
  return descriptor();
3125
0
}
3126
3127
void DiscoveryNamingService::Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3128
                         const ::test::HttpRequest*,
3129
                         ::test::HttpResponse*,
3130
0
                         ::google::protobuf::Closure* done) {
3131
0
  controller->SetFailed("Method Nodes() not implemented.");
3132
0
  done->Run();
3133
0
}
3134
3135
void DiscoveryNamingService::Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3136
                         const ::test::HttpRequest*,
3137
                         ::test::HttpResponse*,
3138
0
                         ::google::protobuf::Closure* done) {
3139
0
  controller->SetFailed("Method Fetchs() not implemented.");
3140
0
  done->Run();
3141
0
}
3142
3143
void DiscoveryNamingService::Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3144
                         const ::test::HttpRequest*,
3145
                         ::test::HttpResponse*,
3146
0
                         ::google::protobuf::Closure* done) {
3147
0
  controller->SetFailed("Method Register() not implemented.");
3148
0
  done->Run();
3149
0
}
3150
3151
void DiscoveryNamingService::Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3152
                         const ::test::HttpRequest*,
3153
                         ::test::HttpResponse*,
3154
0
                         ::google::protobuf::Closure* done) {
3155
0
  controller->SetFailed("Method Renew() not implemented.");
3156
0
  done->Run();
3157
0
}
3158
3159
void DiscoveryNamingService::Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3160
                         const ::test::HttpRequest*,
3161
                         ::test::HttpResponse*,
3162
0
                         ::google::protobuf::Closure* done) {
3163
0
  controller->SetFailed("Method Cancel() not implemented.");
3164
0
  done->Run();
3165
0
}
3166
3167
void DiscoveryNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
3168
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3169
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
3170
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
3171
0
                             ::google::protobuf::Closure* done) {
3172
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[4]);
3173
0
  switch(method->index()) {
3174
0
    case 0:
3175
0
      Nodes(controller,
3176
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3177
0
                 request),
3178
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3179
0
                 response),
3180
0
             done);
3181
0
      break;
3182
0
    case 1:
3183
0
      Fetchs(controller,
3184
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3185
0
                 request),
3186
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3187
0
                 response),
3188
0
             done);
3189
0
      break;
3190
0
    case 2:
3191
0
      Register(controller,
3192
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3193
0
                 request),
3194
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3195
0
                 response),
3196
0
             done);
3197
0
      break;
3198
0
    case 3:
3199
0
      Renew(controller,
3200
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3201
0
                 request),
3202
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3203
0
                 response),
3204
0
             done);
3205
0
      break;
3206
0
    case 4:
3207
0
      Cancel(controller,
3208
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3209
0
                 request),
3210
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3211
0
                 response),
3212
0
             done);
3213
0
      break;
3214
0
    default:
3215
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3216
0
      break;
3217
0
  }
3218
0
}
3219
3220
const ::PROTOBUF_NAMESPACE_ID::Message& DiscoveryNamingService::GetRequestPrototype(
3221
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3222
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3223
0
  switch(method->index()) {
3224
0
    case 0:
3225
0
      return ::test::HttpRequest::default_instance();
3226
0
    case 1:
3227
0
      return ::test::HttpRequest::default_instance();
3228
0
    case 2:
3229
0
      return ::test::HttpRequest::default_instance();
3230
0
    case 3:
3231
0
      return ::test::HttpRequest::default_instance();
3232
0
    case 4:
3233
0
      return ::test::HttpRequest::default_instance();
3234
0
    default:
3235
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3236
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3237
0
          ->GetPrototype(method->input_type());
3238
0
  }
3239
0
}
3240
3241
const ::PROTOBUF_NAMESPACE_ID::Message& DiscoveryNamingService::GetResponsePrototype(
3242
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3243
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3244
0
  switch(method->index()) {
3245
0
    case 0:
3246
0
      return ::test::HttpResponse::default_instance();
3247
0
    case 1:
3248
0
      return ::test::HttpResponse::default_instance();
3249
0
    case 2:
3250
0
      return ::test::HttpResponse::default_instance();
3251
0
    case 3:
3252
0
      return ::test::HttpResponse::default_instance();
3253
0
    case 4:
3254
0
      return ::test::HttpResponse::default_instance();
3255
0
    default:
3256
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3257
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3258
0
          ->GetPrototype(method->output_type());
3259
0
  }
3260
0
}
3261
3262
DiscoveryNamingService_Stub::DiscoveryNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
3263
0
  : channel_(channel), owns_channel_(false) {}
3264
DiscoveryNamingService_Stub::DiscoveryNamingService_Stub(
3265
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
3266
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
3267
0
  : channel_(channel),
3268
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
3269
0
DiscoveryNamingService_Stub::~DiscoveryNamingService_Stub() {
3270
0
  if (owns_channel_) delete channel_;
3271
0
}
3272
3273
void DiscoveryNamingService_Stub::Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3274
                              const ::test::HttpRequest* request,
3275
                              ::test::HttpResponse* response,
3276
0
                              ::google::protobuf::Closure* done) {
3277
0
  channel_->CallMethod(descriptor()->method(0),
3278
0
                       controller, request, response, done);
3279
0
}
3280
void DiscoveryNamingService_Stub::Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3281
                              const ::test::HttpRequest* request,
3282
                              ::test::HttpResponse* response,
3283
0
                              ::google::protobuf::Closure* done) {
3284
0
  channel_->CallMethod(descriptor()->method(1),
3285
0
                       controller, request, response, done);
3286
0
}
3287
void DiscoveryNamingService_Stub::Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3288
                              const ::test::HttpRequest* request,
3289
                              ::test::HttpResponse* response,
3290
0
                              ::google::protobuf::Closure* done) {
3291
0
  channel_->CallMethod(descriptor()->method(2),
3292
0
                       controller, request, response, done);
3293
0
}
3294
void DiscoveryNamingService_Stub::Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3295
                              const ::test::HttpRequest* request,
3296
                              ::test::HttpResponse* response,
3297
0
                              ::google::protobuf::Closure* done) {
3298
0
  channel_->CallMethod(descriptor()->method(3),
3299
0
                       controller, request, response, done);
3300
0
}
3301
void DiscoveryNamingService_Stub::Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3302
                              const ::test::HttpRequest* request,
3303
                              ::test::HttpResponse* response,
3304
0
                              ::google::protobuf::Closure* done) {
3305
0
  channel_->CallMethod(descriptor()->method(4),
3306
0
                       controller, request, response, done);
3307
0
}
3308
// ===================================================================
3309
3310
0
NacosNamingService::~NacosNamingService() {}
3311
3312
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* NacosNamingService::descriptor() {
3313
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
3314
0
  return file_level_service_descriptors_echo_2eproto[5];
3315
0
}
3316
3317
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* NacosNamingService::GetDescriptor() {
3318
0
  return descriptor();
3319
0
}
3320
3321
void NacosNamingService::Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3322
                         const ::test::HttpRequest*,
3323
                         ::test::HttpResponse*,
3324
0
                         ::google::protobuf::Closure* done) {
3325
0
  controller->SetFailed("Method Login() not implemented.");
3326
0
  done->Run();
3327
0
}
3328
3329
void NacosNamingService::List(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3330
                         const ::test::HttpRequest*,
3331
                         ::test::HttpResponse*,
3332
0
                         ::google::protobuf::Closure* done) {
3333
0
  controller->SetFailed("Method List() not implemented.");
3334
0
  done->Run();
3335
0
}
3336
3337
void NacosNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
3338
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3339
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
3340
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
3341
0
                             ::google::protobuf::Closure* done) {
3342
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[5]);
3343
0
  switch(method->index()) {
3344
0
    case 0:
3345
0
      Login(controller,
3346
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3347
0
                 request),
3348
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3349
0
                 response),
3350
0
             done);
3351
0
      break;
3352
0
    case 1:
3353
0
      List(controller,
3354
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3355
0
                 request),
3356
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3357
0
                 response),
3358
0
             done);
3359
0
      break;
3360
0
    default:
3361
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3362
0
      break;
3363
0
  }
3364
0
}
3365
3366
const ::PROTOBUF_NAMESPACE_ID::Message& NacosNamingService::GetRequestPrototype(
3367
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3368
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3369
0
  switch(method->index()) {
3370
0
    case 0:
3371
0
      return ::test::HttpRequest::default_instance();
3372
0
    case 1:
3373
0
      return ::test::HttpRequest::default_instance();
3374
0
    default:
3375
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3376
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3377
0
          ->GetPrototype(method->input_type());
3378
0
  }
3379
0
}
3380
3381
const ::PROTOBUF_NAMESPACE_ID::Message& NacosNamingService::GetResponsePrototype(
3382
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3383
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3384
0
  switch(method->index()) {
3385
0
    case 0:
3386
0
      return ::test::HttpResponse::default_instance();
3387
0
    case 1:
3388
0
      return ::test::HttpResponse::default_instance();
3389
0
    default:
3390
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3391
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3392
0
          ->GetPrototype(method->output_type());
3393
0
  }
3394
0
}
3395
3396
NacosNamingService_Stub::NacosNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
3397
0
  : channel_(channel), owns_channel_(false) {}
3398
NacosNamingService_Stub::NacosNamingService_Stub(
3399
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
3400
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
3401
0
  : channel_(channel),
3402
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
3403
0
NacosNamingService_Stub::~NacosNamingService_Stub() {
3404
0
  if (owns_channel_) delete channel_;
3405
0
}
3406
3407
void NacosNamingService_Stub::Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3408
                              const ::test::HttpRequest* request,
3409
                              ::test::HttpResponse* response,
3410
0
                              ::google::protobuf::Closure* done) {
3411
0
  channel_->CallMethod(descriptor()->method(0),
3412
0
                       controller, request, response, done);
3413
0
}
3414
void NacosNamingService_Stub::List(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3415
                              const ::test::HttpRequest* request,
3416
                              ::test::HttpResponse* response,
3417
0
                              ::google::protobuf::Closure* done) {
3418
0
  channel_->CallMethod(descriptor()->method(1),
3419
0
                       controller, request, response, done);
3420
0
}
3421
// ===================================================================
3422
3423
0
HttpService::~HttpService() {}
3424
3425
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpService::descriptor() {
3426
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto);
3427
0
  return file_level_service_descriptors_echo_2eproto[6];
3428
0
}
3429
3430
0
const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpService::GetDescriptor() {
3431
0
  return descriptor();
3432
0
}
3433
3434
void HttpService::Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3435
                         const ::test::HttpRequest*,
3436
                         ::test::HttpResponse*,
3437
0
                         ::google::protobuf::Closure* done) {
3438
0
  controller->SetFailed("Method Head() not implemented.");
3439
0
  done->Run();
3440
0
}
3441
3442
void HttpService::Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3443
                         const ::test::HttpRequest*,
3444
                         ::test::HttpResponse*,
3445
0
                         ::google::protobuf::Closure* done) {
3446
0
  controller->SetFailed("Method Expect() not implemented.");
3447
0
  done->Run();
3448
0
}
3449
3450
void HttpService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
3451
                             ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3452
                             const ::PROTOBUF_NAMESPACE_ID::Message* request,
3453
                             ::PROTOBUF_NAMESPACE_ID::Message* response,
3454
0
                             ::google::protobuf::Closure* done) {
3455
0
  GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[6]);
3456
0
  switch(method->index()) {
3457
0
    case 0:
3458
0
      Head(controller,
3459
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3460
0
                 request),
3461
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3462
0
                 response),
3463
0
             done);
3464
0
      break;
3465
0
    case 1:
3466
0
      Expect(controller,
3467
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>(
3468
0
                 request),
3469
0
             ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>(
3470
0
                 response),
3471
0
             done);
3472
0
      break;
3473
0
    default:
3474
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3475
0
      break;
3476
0
  }
3477
0
}
3478
3479
const ::PROTOBUF_NAMESPACE_ID::Message& HttpService::GetRequestPrototype(
3480
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3481
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3482
0
  switch(method->index()) {
3483
0
    case 0:
3484
0
      return ::test::HttpRequest::default_instance();
3485
0
    case 1:
3486
0
      return ::test::HttpRequest::default_instance();
3487
0
    default:
3488
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3489
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3490
0
          ->GetPrototype(method->input_type());
3491
0
  }
3492
0
}
3493
3494
const ::PROTOBUF_NAMESPACE_ID::Message& HttpService::GetResponsePrototype(
3495
0
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const {
3496
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
3497
0
  switch(method->index()) {
3498
0
    case 0:
3499
0
      return ::test::HttpResponse::default_instance();
3500
0
    case 1:
3501
0
      return ::test::HttpResponse::default_instance();
3502
0
    default:
3503
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
3504
0
      return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory()
3505
0
          ->GetPrototype(method->output_type());
3506
0
  }
3507
0
}
3508
3509
HttpService_Stub::HttpService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel)
3510
0
  : channel_(channel), owns_channel_(false) {}
3511
HttpService_Stub::HttpService_Stub(
3512
    ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
3513
    ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership)
3514
0
  : channel_(channel),
3515
0
    owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {}
3516
0
HttpService_Stub::~HttpService_Stub() {
3517
0
  if (owns_channel_) delete channel_;
3518
0
}
3519
3520
void HttpService_Stub::Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3521
                              const ::test::HttpRequest* request,
3522
                              ::test::HttpResponse* response,
3523
0
                              ::google::protobuf::Closure* done) {
3524
0
  channel_->CallMethod(descriptor()->method(0),
3525
0
                       controller, request, response, done);
3526
0
}
3527
void HttpService_Stub::Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
3528
                              const ::test::HttpRequest* request,
3529
                              ::test::HttpResponse* response,
3530
0
                              ::google::protobuf::Closure* done) {
3531
0
  channel_->CallMethod(descriptor()->method(1),
3532
0
                       controller, request, response, done);
3533
0
}
3534
3535
// @@protoc_insertion_point(namespace_scope)
3536
}  // namespace test
3537
PROTOBUF_NAMESPACE_OPEN
3538
template<> PROTOBUF_NOINLINE ::test::EchoRequest*
3539
0
Arena::CreateMaybeMessage< ::test::EchoRequest >(Arena* arena) {
3540
0
  return Arena::CreateMessageInternal< ::test::EchoRequest >(arena);
3541
0
}
3542
template<> PROTOBUF_NOINLINE ::test::EchoResponse*
3543
0
Arena::CreateMaybeMessage< ::test::EchoResponse >(Arena* arena) {
3544
0
  return Arena::CreateMessageInternal< ::test::EchoResponse >(arena);
3545
0
}
3546
template<> PROTOBUF_NOINLINE ::test::ComboRequest*
3547
0
Arena::CreateMaybeMessage< ::test::ComboRequest >(Arena* arena) {
3548
0
  return Arena::CreateMessageInternal< ::test::ComboRequest >(arena);
3549
0
}
3550
template<> PROTOBUF_NOINLINE ::test::BytesRequest*
3551
0
Arena::CreateMaybeMessage< ::test::BytesRequest >(Arena* arena) {
3552
0
  return Arena::CreateMessageInternal< ::test::BytesRequest >(arena);
3553
0
}
3554
template<> PROTOBUF_NOINLINE ::test::BytesResponse*
3555
0
Arena::CreateMaybeMessage< ::test::BytesResponse >(Arena* arena) {
3556
0
  return Arena::CreateMessageInternal< ::test::BytesResponse >(arena);
3557
0
}
3558
template<> PROTOBUF_NOINLINE ::test::ComboResponse*
3559
0
Arena::CreateMaybeMessage< ::test::ComboResponse >(Arena* arena) {
3560
0
  return Arena::CreateMessageInternal< ::test::ComboResponse >(arena);
3561
0
}
3562
template<> PROTOBUF_NOINLINE ::test::HttpRequest*
3563
0
Arena::CreateMaybeMessage< ::test::HttpRequest >(Arena* arena) {
3564
0
  return Arena::CreateMessageInternal< ::test::HttpRequest >(arena);
3565
0
}
3566
template<> PROTOBUF_NOINLINE ::test::HttpResponse*
3567
0
Arena::CreateMaybeMessage< ::test::HttpResponse >(Arena* arena) {
3568
0
  return Arena::CreateMessageInternal< ::test::HttpResponse >(arena);
3569
0
}
3570
template<> PROTOBUF_NOINLINE ::test::Message1*
3571
0
Arena::CreateMaybeMessage< ::test::Message1 >(Arena* arena) {
3572
0
  return Arena::CreateMessageInternal< ::test::Message1 >(arena);
3573
0
}
3574
template<> PROTOBUF_NOINLINE ::test::Message2*
3575
0
Arena::CreateMaybeMessage< ::test::Message2 >(Arena* arena) {
3576
0
  return Arena::CreateMessageInternal< ::test::Message2 >(arena);
3577
0
}
3578
template<> PROTOBUF_NOINLINE ::test::RecursiveMessage*
3579
0
Arena::CreateMaybeMessage< ::test::RecursiveMessage >(Arena* arena) {
3580
0
  return Arena::CreateMessageInternal< ::test::RecursiveMessage >(arena);
3581
0
}
3582
PROTOBUF_NAMESPACE_CLOSE
3583
3584
// @@protoc_insertion_point(global_scope)
3585
#include <google/protobuf/port_undef.inc>