Coverage Report

Created: 2025-06-13 06:23

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