Coverage Report

Created: 2025-10-10 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/test/echo.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: echo.proto
3
4
#ifndef PROTOBUF_INCLUDED_echo_2eproto
5
#define PROTOBUF_INCLUDED_echo_2eproto
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3006001
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers.  Please update
14
#error your headers.
15
#endif
16
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers.  Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/inlined_string_field.h>
28
#include <google/protobuf/metadata.h>
29
#include <google/protobuf/message.h>
30
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
32
#include <google/protobuf/generated_enum_reflection.h>
33
#include <google/protobuf/service.h>
34
#include <google/protobuf/unknown_field_set.h>
35
#include "idl_options.pb.h"
36
// @@protoc_insertion_point(includes)
37
#define PROTOBUF_INTERNAL_EXPORT_protobuf_echo_2eproto 
38
39
namespace protobuf_echo_2eproto {
40
// Internal implementation detail -- do not use these members.
41
struct TableStruct {
42
  static const ::google::protobuf::internal::ParseTableField entries[];
43
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44
  static const ::google::protobuf::internal::ParseTable schema[11];
45
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47
  static const ::google::protobuf::uint32 offsets[];
48
};
49
void AddDescriptors();
50
}  // namespace protobuf_echo_2eproto
51
namespace test {
52
class BytesRequest;
53
class BytesRequestDefaultTypeInternal;
54
extern BytesRequestDefaultTypeInternal _BytesRequest_default_instance_;
55
class BytesResponse;
56
class BytesResponseDefaultTypeInternal;
57
extern BytesResponseDefaultTypeInternal _BytesResponse_default_instance_;
58
class ComboRequest;
59
class ComboRequestDefaultTypeInternal;
60
extern ComboRequestDefaultTypeInternal _ComboRequest_default_instance_;
61
class ComboResponse;
62
class ComboResponseDefaultTypeInternal;
63
extern ComboResponseDefaultTypeInternal _ComboResponse_default_instance_;
64
class EchoRequest;
65
class EchoRequestDefaultTypeInternal;
66
extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_;
67
class EchoResponse;
68
class EchoResponseDefaultTypeInternal;
69
extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_;
70
class HttpRequest;
71
class HttpRequestDefaultTypeInternal;
72
extern HttpRequestDefaultTypeInternal _HttpRequest_default_instance_;
73
class HttpResponse;
74
class HttpResponseDefaultTypeInternal;
75
extern HttpResponseDefaultTypeInternal _HttpResponse_default_instance_;
76
class Message1;
77
class Message1DefaultTypeInternal;
78
extern Message1DefaultTypeInternal _Message1_default_instance_;
79
class Message2;
80
class Message2DefaultTypeInternal;
81
extern Message2DefaultTypeInternal _Message2_default_instance_;
82
class RecursiveMessage;
83
class RecursiveMessageDefaultTypeInternal;
84
extern RecursiveMessageDefaultTypeInternal _RecursiveMessage_default_instance_;
85
}  // namespace test
86
namespace google {
87
namespace protobuf {
88
template<> ::test::BytesRequest* Arena::CreateMaybeMessage<::test::BytesRequest>(Arena*);
89
template<> ::test::BytesResponse* Arena::CreateMaybeMessage<::test::BytesResponse>(Arena*);
90
template<> ::test::ComboRequest* Arena::CreateMaybeMessage<::test::ComboRequest>(Arena*);
91
template<> ::test::ComboResponse* Arena::CreateMaybeMessage<::test::ComboResponse>(Arena*);
92
template<> ::test::EchoRequest* Arena::CreateMaybeMessage<::test::EchoRequest>(Arena*);
93
template<> ::test::EchoResponse* Arena::CreateMaybeMessage<::test::EchoResponse>(Arena*);
94
template<> ::test::HttpRequest* Arena::CreateMaybeMessage<::test::HttpRequest>(Arena*);
95
template<> ::test::HttpResponse* Arena::CreateMaybeMessage<::test::HttpResponse>(Arena*);
96
template<> ::test::Message1* Arena::CreateMaybeMessage<::test::Message1>(Arena*);
97
template<> ::test::Message2* Arena::CreateMaybeMessage<::test::Message2>(Arena*);
98
template<> ::test::RecursiveMessage* Arena::CreateMaybeMessage<::test::RecursiveMessage>(Arena*);
99
}  // namespace protobuf
100
}  // namespace google
101
namespace test {
102
103
enum State0 {
104
  STATE0_NUM_0 = 0,
105
  STATE0_NUM_1 = 1,
106
  STATE0_NUM_2 = 2
107
};
108
bool State0_IsValid(int value);
109
const State0 State0_MIN = STATE0_NUM_0;
110
const State0 State0_MAX = STATE0_NUM_2;
111
const int State0_ARRAYSIZE = State0_MAX + 1;
112
113
const ::google::protobuf::EnumDescriptor* State0_descriptor();
114
0
inline const ::std::string& State0_Name(State0 value) {
115
0
  return ::google::protobuf::internal::NameOfEnum(
116
0
    State0_descriptor(), value);
117
0
}
118
inline bool State0_Parse(
119
0
    const ::std::string& name, State0* value) {
120
0
  return ::google::protobuf::internal::ParseNamedEnum<State0>(
121
0
    State0_descriptor(), name, value);
122
0
}
123
enum State1 {
124
  STATE1_NUM_0 = 0,
125
  STATE1_NUM_1 = 1
126
};
127
bool State1_IsValid(int value);
128
const State1 State1_MIN = STATE1_NUM_0;
129
const State1 State1_MAX = STATE1_NUM_1;
130
const int State1_ARRAYSIZE = State1_MAX + 1;
131
132
const ::google::protobuf::EnumDescriptor* State1_descriptor();
133
0
inline const ::std::string& State1_Name(State1 value) {
134
0
  return ::google::protobuf::internal::NameOfEnum(
135
0
    State1_descriptor(), value);
136
0
}
137
inline bool State1_Parse(
138
0
    const ::std::string& name, State1* value) {
139
0
  return ::google::protobuf::internal::ParseNamedEnum<State1>(
140
0
    State1_descriptor(), name, value);
141
0
}
142
// ===================================================================
143
144
class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.EchoRequest) */ {
145
 public:
146
  EchoRequest();
147
  virtual ~EchoRequest();
148
149
  EchoRequest(const EchoRequest& from);
150
151
0
  inline EchoRequest& operator=(const EchoRequest& from) {
152
0
    CopyFrom(from);
153
0
    return *this;
154
0
  }
155
  #if LANG_CXX11
156
  EchoRequest(EchoRequest&& from) noexcept
157
0
    : EchoRequest() {
158
0
    *this = ::std::move(from);
159
0
  }
160
161
0
  inline EchoRequest& operator=(EchoRequest&& from) noexcept {
162
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
163
0
      if (this != &from) InternalSwap(&from);
164
0
    } else {
165
0
      CopyFrom(from);
166
0
    }
167
0
    return *this;
168
0
  }
169
  #endif
170
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
171
0
    return _internal_metadata_.unknown_fields();
172
0
  }
173
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
174
0
    return _internal_metadata_.mutable_unknown_fields();
175
0
  }
176
177
  static const ::google::protobuf::Descriptor* descriptor();
178
  static const EchoRequest& default_instance();
179
180
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
181
0
  static inline const EchoRequest* internal_default_instance() {
182
0
    return reinterpret_cast<const EchoRequest*>(
183
0
               &_EchoRequest_default_instance_);
184
0
  }
185
  static constexpr int kIndexInFileMessages =
186
    0;
187
188
  void Swap(EchoRequest* other);
189
0
  friend void swap(EchoRequest& a, EchoRequest& b) {
190
0
    a.Swap(&b);
191
0
  }
192
193
  // implements Message ----------------------------------------------
194
195
0
  inline EchoRequest* New() const final {
196
0
    return CreateMaybeMessage<EchoRequest>(NULL);
197
0
  }
198
199
0
  EchoRequest* New(::google::protobuf::Arena* arena) const final {
200
0
    return CreateMaybeMessage<EchoRequest>(arena);
201
0
  }
202
  void CopyFrom(const ::google::protobuf::Message& from) final;
203
  void MergeFrom(const ::google::protobuf::Message& from) final;
204
  void CopyFrom(const EchoRequest& from);
205
  void MergeFrom(const EchoRequest& from);
206
  void Clear() final;
207
  bool IsInitialized() const final;
208
209
  size_t ByteSizeLong() const final;
210
  bool MergePartialFromCodedStream(
211
      ::google::protobuf::io::CodedInputStream* input) final;
212
  void SerializeWithCachedSizes(
213
      ::google::protobuf::io::CodedOutputStream* output) const final;
214
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
215
      bool deterministic, ::google::protobuf::uint8* target) const final;
216
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
217
218
  private:
219
  void SharedCtor();
220
  void SharedDtor();
221
  void SetCachedSize(int size) const final;
222
  void InternalSwap(EchoRequest* other);
223
  private:
224
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
225
0
    return NULL;
226
0
  }
227
0
  inline void* MaybeArenaPtr() const {
228
0
    return NULL;
229
0
  }
230
  public:
231
232
  ::google::protobuf::Metadata GetMetadata() const final;
233
234
  // nested types ----------------------------------------------------
235
236
  // accessors -------------------------------------------------------
237
238
  // required string message = 1;
239
  bool has_message() const;
240
  void clear_message();
241
  static const int kMessageFieldNumber = 1;
242
  const ::std::string& message() const;
243
  void set_message(const ::std::string& value);
244
  #if LANG_CXX11
245
  void set_message(::std::string&& value);
246
  #endif
247
  void set_message(const char* value);
248
  void set_message(const char* value, size_t size);
249
  ::std::string* mutable_message();
250
  ::std::string* release_message();
251
  void set_allocated_message(::std::string* message);
252
253
  // optional int32 code = 2;
254
  bool has_code() const;
255
  void clear_code();
256
  static const int kCodeFieldNumber = 2;
257
  ::google::protobuf::int32 code() const;
258
  void set_code(::google::protobuf::int32 value);
259
260
  // optional bool close_fd = 3;
261
  bool has_close_fd() const;
262
  void clear_close_fd();
263
  static const int kCloseFdFieldNumber = 3;
264
  bool close_fd() const;
265
  void set_close_fd(bool value);
266
267
  // optional int32 sleep_us = 4;
268
  bool has_sleep_us() const;
269
  void clear_sleep_us();
270
  static const int kSleepUsFieldNumber = 4;
271
  ::google::protobuf::int32 sleep_us() const;
272
  void set_sleep_us(::google::protobuf::int32 value);
273
274
  // optional int32 server_fail = 5;
275
  bool has_server_fail() const;
276
  void clear_server_fail();
277
  static const int kServerFailFieldNumber = 5;
278
  ::google::protobuf::int32 server_fail() const;
279
  void set_server_fail(::google::protobuf::int32 value);
280
281
  // @@protoc_insertion_point(class_scope:test.EchoRequest)
282
 private:
283
  void set_has_message();
284
  void clear_has_message();
285
  void set_has_code();
286
  void clear_has_code();
287
  void set_has_close_fd();
288
  void clear_has_close_fd();
289
  void set_has_sleep_us();
290
  void clear_has_sleep_us();
291
  void set_has_server_fail();
292
  void clear_has_server_fail();
293
294
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
295
  ::google::protobuf::internal::HasBits<1> _has_bits_;
296
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
297
  ::google::protobuf::internal::ArenaStringPtr message_;
298
  ::google::protobuf::int32 code_;
299
  bool close_fd_;
300
  ::google::protobuf::int32 sleep_us_;
301
  ::google::protobuf::int32 server_fail_;
302
  friend struct ::protobuf_echo_2eproto::TableStruct;
303
};
304
// -------------------------------------------------------------------
305
306
class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.EchoResponse) */ {
307
 public:
308
  EchoResponse();
309
  virtual ~EchoResponse();
310
311
  EchoResponse(const EchoResponse& from);
312
313
0
  inline EchoResponse& operator=(const EchoResponse& from) {
314
0
    CopyFrom(from);
315
0
    return *this;
316
0
  }
317
  #if LANG_CXX11
318
  EchoResponse(EchoResponse&& from) noexcept
319
0
    : EchoResponse() {
320
0
    *this = ::std::move(from);
321
0
  }
322
323
0
  inline EchoResponse& operator=(EchoResponse&& from) noexcept {
324
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
325
0
      if (this != &from) InternalSwap(&from);
326
0
    } else {
327
0
      CopyFrom(from);
328
0
    }
329
0
    return *this;
330
0
  }
331
  #endif
332
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
333
0
    return _internal_metadata_.unknown_fields();
334
0
  }
335
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
336
0
    return _internal_metadata_.mutable_unknown_fields();
337
0
  }
338
339
  static const ::google::protobuf::Descriptor* descriptor();
340
  static const EchoResponse& default_instance();
341
342
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
343
0
  static inline const EchoResponse* internal_default_instance() {
344
0
    return reinterpret_cast<const EchoResponse*>(
345
0
               &_EchoResponse_default_instance_);
346
0
  }
347
  static constexpr int kIndexInFileMessages =
348
    1;
349
350
  void Swap(EchoResponse* other);
351
0
  friend void swap(EchoResponse& a, EchoResponse& b) {
352
0
    a.Swap(&b);
353
0
  }
354
355
  // implements Message ----------------------------------------------
356
357
0
  inline EchoResponse* New() const final {
358
0
    return CreateMaybeMessage<EchoResponse>(NULL);
359
0
  }
360
361
0
  EchoResponse* New(::google::protobuf::Arena* arena) const final {
362
0
    return CreateMaybeMessage<EchoResponse>(arena);
363
0
  }
364
  void CopyFrom(const ::google::protobuf::Message& from) final;
365
  void MergeFrom(const ::google::protobuf::Message& from) final;
366
  void CopyFrom(const EchoResponse& from);
367
  void MergeFrom(const EchoResponse& from);
368
  void Clear() final;
369
  bool IsInitialized() const final;
370
371
  size_t ByteSizeLong() const final;
372
  bool MergePartialFromCodedStream(
373
      ::google::protobuf::io::CodedInputStream* input) final;
374
  void SerializeWithCachedSizes(
375
      ::google::protobuf::io::CodedOutputStream* output) const final;
376
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
377
      bool deterministic, ::google::protobuf::uint8* target) const final;
378
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
379
380
  private:
381
  void SharedCtor();
382
  void SharedDtor();
383
  void SetCachedSize(int size) const final;
384
  void InternalSwap(EchoResponse* other);
385
  private:
386
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
387
0
    return NULL;
388
0
  }
389
0
  inline void* MaybeArenaPtr() const {
390
0
    return NULL;
391
0
  }
392
  public:
393
394
  ::google::protobuf::Metadata GetMetadata() const final;
395
396
  // nested types ----------------------------------------------------
397
398
  // accessors -------------------------------------------------------
399
400
  // repeated int32 code_list = 2;
401
  int code_list_size() const;
402
  void clear_code_list();
403
  static const int kCodeListFieldNumber = 2;
404
  ::google::protobuf::int32 code_list(int index) const;
405
  void set_code_list(int index, ::google::protobuf::int32 value);
406
  void add_code_list(::google::protobuf::int32 value);
407
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
408
      code_list() const;
409
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
410
      mutable_code_list();
411
412
  // required string message = 1;
413
  bool has_message() const;
414
  void clear_message();
415
  static const int kMessageFieldNumber = 1;
416
  const ::std::string& message() const;
417
  void set_message(const ::std::string& value);
418
  #if LANG_CXX11
419
  void set_message(::std::string&& value);
420
  #endif
421
  void set_message(const char* value);
422
  void set_message(const char* value, size_t size);
423
  ::std::string* mutable_message();
424
  ::std::string* release_message();
425
  void set_allocated_message(::std::string* message);
426
427
  // optional uint64 receiving_socket_id = 3;
428
  bool has_receiving_socket_id() const;
429
  void clear_receiving_socket_id();
430
  static const int kReceivingSocketIdFieldNumber = 3;
431
  ::google::protobuf::uint64 receiving_socket_id() const;
432
  void set_receiving_socket_id(::google::protobuf::uint64 value);
433
434
  // @@protoc_insertion_point(class_scope:test.EchoResponse)
435
 private:
436
  void set_has_message();
437
  void clear_has_message();
438
  void set_has_receiving_socket_id();
439
  void clear_has_receiving_socket_id();
440
441
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
442
  ::google::protobuf::internal::HasBits<1> _has_bits_;
443
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
444
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > code_list_;
445
  ::google::protobuf::internal::ArenaStringPtr message_;
446
  ::google::protobuf::uint64 receiving_socket_id_;
447
  friend struct ::protobuf_echo_2eproto::TableStruct;
448
};
449
// -------------------------------------------------------------------
450
451
class ComboRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.ComboRequest) */ {
452
 public:
453
  ComboRequest();
454
  virtual ~ComboRequest();
455
456
  ComboRequest(const ComboRequest& from);
457
458
0
  inline ComboRequest& operator=(const ComboRequest& from) {
459
0
    CopyFrom(from);
460
0
    return *this;
461
0
  }
462
  #if LANG_CXX11
463
  ComboRequest(ComboRequest&& from) noexcept
464
0
    : ComboRequest() {
465
0
    *this = ::std::move(from);
466
0
  }
467
468
0
  inline ComboRequest& operator=(ComboRequest&& from) noexcept {
469
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
470
0
      if (this != &from) InternalSwap(&from);
471
0
    } else {
472
0
      CopyFrom(from);
473
0
    }
474
0
    return *this;
475
0
  }
476
  #endif
477
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
478
0
    return _internal_metadata_.unknown_fields();
479
0
  }
480
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
481
0
    return _internal_metadata_.mutable_unknown_fields();
482
0
  }
483
484
  static const ::google::protobuf::Descriptor* descriptor();
485
  static const ComboRequest& default_instance();
486
487
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
488
0
  static inline const ComboRequest* internal_default_instance() {
489
0
    return reinterpret_cast<const ComboRequest*>(
490
0
               &_ComboRequest_default_instance_);
491
0
  }
492
  static constexpr int kIndexInFileMessages =
493
    2;
494
495
  void Swap(ComboRequest* other);
496
0
  friend void swap(ComboRequest& a, ComboRequest& b) {
497
0
    a.Swap(&b);
498
0
  }
499
500
  // implements Message ----------------------------------------------
501
502
0
  inline ComboRequest* New() const final {
503
0
    return CreateMaybeMessage<ComboRequest>(NULL);
504
0
  }
505
506
0
  ComboRequest* New(::google::protobuf::Arena* arena) const final {
507
0
    return CreateMaybeMessage<ComboRequest>(arena);
508
0
  }
509
  void CopyFrom(const ::google::protobuf::Message& from) final;
510
  void MergeFrom(const ::google::protobuf::Message& from) final;
511
  void CopyFrom(const ComboRequest& from);
512
  void MergeFrom(const ComboRequest& from);
513
  void Clear() final;
514
  bool IsInitialized() const final;
515
516
  size_t ByteSizeLong() const final;
517
  bool MergePartialFromCodedStream(
518
      ::google::protobuf::io::CodedInputStream* input) final;
519
  void SerializeWithCachedSizes(
520
      ::google::protobuf::io::CodedOutputStream* output) const final;
521
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
522
      bool deterministic, ::google::protobuf::uint8* target) const final;
523
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
524
525
  private:
526
  void SharedCtor();
527
  void SharedDtor();
528
  void SetCachedSize(int size) const final;
529
  void InternalSwap(ComboRequest* other);
530
  private:
531
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
532
0
    return NULL;
533
0
  }
534
0
  inline void* MaybeArenaPtr() const {
535
0
    return NULL;
536
0
  }
537
  public:
538
539
  ::google::protobuf::Metadata GetMetadata() const final;
540
541
  // nested types ----------------------------------------------------
542
543
  // accessors -------------------------------------------------------
544
545
  // repeated .test.EchoRequest requests = 1;
546
  int requests_size() const;
547
  void clear_requests();
548
  static const int kRequestsFieldNumber = 1;
549
  ::test::EchoRequest* mutable_requests(int index);
550
  ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >*
551
      mutable_requests();
552
  const ::test::EchoRequest& requests(int index) const;
553
  ::test::EchoRequest* add_requests();
554
  const ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >&
555
      requests() const;
556
557
  // @@protoc_insertion_point(class_scope:test.ComboRequest)
558
 private:
559
560
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
561
  ::google::protobuf::internal::HasBits<1> _has_bits_;
562
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
563
  ::google::protobuf::RepeatedPtrField< ::test::EchoRequest > requests_;
564
  friend struct ::protobuf_echo_2eproto::TableStruct;
565
};
566
// -------------------------------------------------------------------
567
568
class BytesRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.BytesRequest) */ {
569
 public:
570
  BytesRequest();
571
  virtual ~BytesRequest();
572
573
  BytesRequest(const BytesRequest& from);
574
575
0
  inline BytesRequest& operator=(const BytesRequest& from) {
576
0
    CopyFrom(from);
577
0
    return *this;
578
0
  }
579
  #if LANG_CXX11
580
  BytesRequest(BytesRequest&& from) noexcept
581
0
    : BytesRequest() {
582
0
    *this = ::std::move(from);
583
0
  }
584
585
0
  inline BytesRequest& operator=(BytesRequest&& from) noexcept {
586
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
587
0
      if (this != &from) InternalSwap(&from);
588
0
    } else {
589
0
      CopyFrom(from);
590
0
    }
591
0
    return *this;
592
0
  }
593
  #endif
594
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
595
0
    return _internal_metadata_.unknown_fields();
596
0
  }
597
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
598
0
    return _internal_metadata_.mutable_unknown_fields();
599
0
  }
600
601
  static const ::google::protobuf::Descriptor* descriptor();
602
  static const BytesRequest& default_instance();
603
604
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
605
0
  static inline const BytesRequest* internal_default_instance() {
606
0
    return reinterpret_cast<const BytesRequest*>(
607
0
               &_BytesRequest_default_instance_);
608
0
  }
609
  static constexpr int kIndexInFileMessages =
610
    3;
611
612
  void Swap(BytesRequest* other);
613
0
  friend void swap(BytesRequest& a, BytesRequest& b) {
614
0
    a.Swap(&b);
615
0
  }
616
617
  // implements Message ----------------------------------------------
618
619
0
  inline BytesRequest* New() const final {
620
0
    return CreateMaybeMessage<BytesRequest>(NULL);
621
0
  }
622
623
0
  BytesRequest* New(::google::protobuf::Arena* arena) const final {
624
0
    return CreateMaybeMessage<BytesRequest>(arena);
625
0
  }
626
  void CopyFrom(const ::google::protobuf::Message& from) final;
627
  void MergeFrom(const ::google::protobuf::Message& from) final;
628
  void CopyFrom(const BytesRequest& from);
629
  void MergeFrom(const BytesRequest& from);
630
  void Clear() final;
631
  bool IsInitialized() const final;
632
633
  size_t ByteSizeLong() const final;
634
  bool MergePartialFromCodedStream(
635
      ::google::protobuf::io::CodedInputStream* input) final;
636
  void SerializeWithCachedSizes(
637
      ::google::protobuf::io::CodedOutputStream* output) const final;
638
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
639
      bool deterministic, ::google::protobuf::uint8* target) const final;
640
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
641
642
  private:
643
  void SharedCtor();
644
  void SharedDtor();
645
  void SetCachedSize(int size) const final;
646
  void InternalSwap(BytesRequest* other);
647
  private:
648
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
649
0
    return NULL;
650
0
  }
651
0
  inline void* MaybeArenaPtr() const {
652
0
    return NULL;
653
0
  }
654
  public:
655
656
  ::google::protobuf::Metadata GetMetadata() const final;
657
658
  // nested types ----------------------------------------------------
659
660
  // accessors -------------------------------------------------------
661
662
  // required bytes databytes = 1;
663
  bool has_databytes() const;
664
  void clear_databytes();
665
  static const int kDatabytesFieldNumber = 1;
666
  const ::std::string& databytes() const;
667
  void set_databytes(const ::std::string& value);
668
  #if LANG_CXX11
669
  void set_databytes(::std::string&& value);
670
  #endif
671
  void set_databytes(const char* value);
672
  void set_databytes(const void* value, size_t size);
673
  ::std::string* mutable_databytes();
674
  ::std::string* release_databytes();
675
  void set_allocated_databytes(::std::string* databytes);
676
677
  // @@protoc_insertion_point(class_scope:test.BytesRequest)
678
 private:
679
  void set_has_databytes();
680
  void clear_has_databytes();
681
682
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
683
  ::google::protobuf::internal::HasBits<1> _has_bits_;
684
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
685
  ::google::protobuf::internal::ArenaStringPtr databytes_;
686
  friend struct ::protobuf_echo_2eproto::TableStruct;
687
};
688
// -------------------------------------------------------------------
689
690
class BytesResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.BytesResponse) */ {
691
 public:
692
  BytesResponse();
693
  virtual ~BytesResponse();
694
695
  BytesResponse(const BytesResponse& from);
696
697
0
  inline BytesResponse& operator=(const BytesResponse& from) {
698
0
    CopyFrom(from);
699
0
    return *this;
700
0
  }
701
  #if LANG_CXX11
702
  BytesResponse(BytesResponse&& from) noexcept
703
0
    : BytesResponse() {
704
0
    *this = ::std::move(from);
705
0
  }
706
707
0
  inline BytesResponse& operator=(BytesResponse&& from) noexcept {
708
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
709
0
      if (this != &from) InternalSwap(&from);
710
0
    } else {
711
0
      CopyFrom(from);
712
0
    }
713
0
    return *this;
714
0
  }
715
  #endif
716
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
717
0
    return _internal_metadata_.unknown_fields();
718
0
  }
719
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
720
0
    return _internal_metadata_.mutable_unknown_fields();
721
0
  }
722
723
  static const ::google::protobuf::Descriptor* descriptor();
724
  static const BytesResponse& default_instance();
725
726
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
727
0
  static inline const BytesResponse* internal_default_instance() {
728
0
    return reinterpret_cast<const BytesResponse*>(
729
0
               &_BytesResponse_default_instance_);
730
0
  }
731
  static constexpr int kIndexInFileMessages =
732
    4;
733
734
  void Swap(BytesResponse* other);
735
0
  friend void swap(BytesResponse& a, BytesResponse& b) {
736
0
    a.Swap(&b);
737
0
  }
738
739
  // implements Message ----------------------------------------------
740
741
0
  inline BytesResponse* New() const final {
742
0
    return CreateMaybeMessage<BytesResponse>(NULL);
743
0
  }
744
745
0
  BytesResponse* New(::google::protobuf::Arena* arena) const final {
746
0
    return CreateMaybeMessage<BytesResponse>(arena);
747
0
  }
748
  void CopyFrom(const ::google::protobuf::Message& from) final;
749
  void MergeFrom(const ::google::protobuf::Message& from) final;
750
  void CopyFrom(const BytesResponse& from);
751
  void MergeFrom(const BytesResponse& from);
752
  void Clear() final;
753
  bool IsInitialized() const final;
754
755
  size_t ByteSizeLong() const final;
756
  bool MergePartialFromCodedStream(
757
      ::google::protobuf::io::CodedInputStream* input) final;
758
  void SerializeWithCachedSizes(
759
      ::google::protobuf::io::CodedOutputStream* output) const final;
760
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
761
      bool deterministic, ::google::protobuf::uint8* target) const final;
762
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
763
764
  private:
765
  void SharedCtor();
766
  void SharedDtor();
767
  void SetCachedSize(int size) const final;
768
  void InternalSwap(BytesResponse* other);
769
  private:
770
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
771
0
    return NULL;
772
0
  }
773
0
  inline void* MaybeArenaPtr() const {
774
0
    return NULL;
775
0
  }
776
  public:
777
778
  ::google::protobuf::Metadata GetMetadata() const final;
779
780
  // nested types ----------------------------------------------------
781
782
  // accessors -------------------------------------------------------
783
784
  // required bytes databytes = 1;
785
  bool has_databytes() const;
786
  void clear_databytes();
787
  static const int kDatabytesFieldNumber = 1;
788
  const ::std::string& databytes() const;
789
  void set_databytes(const ::std::string& value);
790
  #if LANG_CXX11
791
  void set_databytes(::std::string&& value);
792
  #endif
793
  void set_databytes(const char* value);
794
  void set_databytes(const void* value, size_t size);
795
  ::std::string* mutable_databytes();
796
  ::std::string* release_databytes();
797
  void set_allocated_databytes(::std::string* databytes);
798
799
  // @@protoc_insertion_point(class_scope:test.BytesResponse)
800
 private:
801
  void set_has_databytes();
802
  void clear_has_databytes();
803
804
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
805
  ::google::protobuf::internal::HasBits<1> _has_bits_;
806
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
807
  ::google::protobuf::internal::ArenaStringPtr databytes_;
808
  friend struct ::protobuf_echo_2eproto::TableStruct;
809
};
810
// -------------------------------------------------------------------
811
812
class ComboResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.ComboResponse) */ {
813
 public:
814
  ComboResponse();
815
  virtual ~ComboResponse();
816
817
  ComboResponse(const ComboResponse& from);
818
819
0
  inline ComboResponse& operator=(const ComboResponse& from) {
820
0
    CopyFrom(from);
821
0
    return *this;
822
0
  }
823
  #if LANG_CXX11
824
  ComboResponse(ComboResponse&& from) noexcept
825
0
    : ComboResponse() {
826
0
    *this = ::std::move(from);
827
0
  }
828
829
0
  inline ComboResponse& operator=(ComboResponse&& from) noexcept {
830
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
831
0
      if (this != &from) InternalSwap(&from);
832
0
    } else {
833
0
      CopyFrom(from);
834
0
    }
835
0
    return *this;
836
0
  }
837
  #endif
838
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
839
0
    return _internal_metadata_.unknown_fields();
840
0
  }
841
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
842
0
    return _internal_metadata_.mutable_unknown_fields();
843
0
  }
844
845
  static const ::google::protobuf::Descriptor* descriptor();
846
  static const ComboResponse& default_instance();
847
848
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
849
0
  static inline const ComboResponse* internal_default_instance() {
850
0
    return reinterpret_cast<const ComboResponse*>(
851
0
               &_ComboResponse_default_instance_);
852
0
  }
853
  static constexpr int kIndexInFileMessages =
854
    5;
855
856
  void Swap(ComboResponse* other);
857
0
  friend void swap(ComboResponse& a, ComboResponse& b) {
858
0
    a.Swap(&b);
859
0
  }
860
861
  // implements Message ----------------------------------------------
862
863
0
  inline ComboResponse* New() const final {
864
0
    return CreateMaybeMessage<ComboResponse>(NULL);
865
0
  }
866
867
0
  ComboResponse* New(::google::protobuf::Arena* arena) const final {
868
0
    return CreateMaybeMessage<ComboResponse>(arena);
869
0
  }
870
  void CopyFrom(const ::google::protobuf::Message& from) final;
871
  void MergeFrom(const ::google::protobuf::Message& from) final;
872
  void CopyFrom(const ComboResponse& from);
873
  void MergeFrom(const ComboResponse& from);
874
  void Clear() final;
875
  bool IsInitialized() const final;
876
877
  size_t ByteSizeLong() const final;
878
  bool MergePartialFromCodedStream(
879
      ::google::protobuf::io::CodedInputStream* input) final;
880
  void SerializeWithCachedSizes(
881
      ::google::protobuf::io::CodedOutputStream* output) const final;
882
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
883
      bool deterministic, ::google::protobuf::uint8* target) const final;
884
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
885
886
  private:
887
  void SharedCtor();
888
  void SharedDtor();
889
  void SetCachedSize(int size) const final;
890
  void InternalSwap(ComboResponse* other);
891
  private:
892
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
893
0
    return NULL;
894
0
  }
895
0
  inline void* MaybeArenaPtr() const {
896
0
    return NULL;
897
0
  }
898
  public:
899
900
  ::google::protobuf::Metadata GetMetadata() const final;
901
902
  // nested types ----------------------------------------------------
903
904
  // accessors -------------------------------------------------------
905
906
  // repeated .test.EchoResponse responses = 1;
907
  int responses_size() const;
908
  void clear_responses();
909
  static const int kResponsesFieldNumber = 1;
910
  ::test::EchoResponse* mutable_responses(int index);
911
  ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >*
912
      mutable_responses();
913
  const ::test::EchoResponse& responses(int index) const;
914
  ::test::EchoResponse* add_responses();
915
  const ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >&
916
      responses() const;
917
918
  // @@protoc_insertion_point(class_scope:test.ComboResponse)
919
 private:
920
921
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
922
  ::google::protobuf::internal::HasBits<1> _has_bits_;
923
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
924
  ::google::protobuf::RepeatedPtrField< ::test::EchoResponse > responses_;
925
  friend struct ::protobuf_echo_2eproto::TableStruct;
926
};
927
// -------------------------------------------------------------------
928
929
class HttpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.HttpRequest) */ {
930
 public:
931
  HttpRequest();
932
  virtual ~HttpRequest();
933
934
  HttpRequest(const HttpRequest& from);
935
936
0
  inline HttpRequest& operator=(const HttpRequest& from) {
937
0
    CopyFrom(from);
938
0
    return *this;
939
0
  }
940
  #if LANG_CXX11
941
  HttpRequest(HttpRequest&& from) noexcept
942
0
    : HttpRequest() {
943
0
    *this = ::std::move(from);
944
0
  }
945
946
0
  inline HttpRequest& operator=(HttpRequest&& from) noexcept {
947
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
948
0
      if (this != &from) InternalSwap(&from);
949
0
    } else {
950
0
      CopyFrom(from);
951
0
    }
952
0
    return *this;
953
0
  }
954
  #endif
955
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
956
0
    return _internal_metadata_.unknown_fields();
957
0
  }
958
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
959
0
    return _internal_metadata_.mutable_unknown_fields();
960
0
  }
961
962
  static const ::google::protobuf::Descriptor* descriptor();
963
  static const HttpRequest& default_instance();
964
965
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
966
0
  static inline const HttpRequest* internal_default_instance() {
967
0
    return reinterpret_cast<const HttpRequest*>(
968
0
               &_HttpRequest_default_instance_);
969
0
  }
970
  static constexpr int kIndexInFileMessages =
971
    6;
972
973
  void Swap(HttpRequest* other);
974
0
  friend void swap(HttpRequest& a, HttpRequest& b) {
975
0
    a.Swap(&b);
976
0
  }
977
978
  // implements Message ----------------------------------------------
979
980
0
  inline HttpRequest* New() const final {
981
0
    return CreateMaybeMessage<HttpRequest>(NULL);
982
0
  }
983
984
0
  HttpRequest* New(::google::protobuf::Arena* arena) const final {
985
0
    return CreateMaybeMessage<HttpRequest>(arena);
986
0
  }
987
  void CopyFrom(const ::google::protobuf::Message& from) final;
988
  void MergeFrom(const ::google::protobuf::Message& from) final;
989
  void CopyFrom(const HttpRequest& from);
990
  void MergeFrom(const HttpRequest& from);
991
  void Clear() final;
992
  bool IsInitialized() const final;
993
994
  size_t ByteSizeLong() const final;
995
  bool MergePartialFromCodedStream(
996
      ::google::protobuf::io::CodedInputStream* input) final;
997
  void SerializeWithCachedSizes(
998
      ::google::protobuf::io::CodedOutputStream* output) const final;
999
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1000
      bool deterministic, ::google::protobuf::uint8* target) const final;
1001
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
1002
1003
  private:
1004
  void SharedCtor();
1005
  void SharedDtor();
1006
  void SetCachedSize(int size) const final;
1007
  void InternalSwap(HttpRequest* other);
1008
  private:
1009
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1010
0
    return NULL;
1011
0
  }
1012
0
  inline void* MaybeArenaPtr() const {
1013
0
    return NULL;
1014
0
  }
1015
  public:
1016
1017
  ::google::protobuf::Metadata GetMetadata() const final;
1018
1019
  // nested types ----------------------------------------------------
1020
1021
  // accessors -------------------------------------------------------
1022
1023
  // @@protoc_insertion_point(class_scope:test.HttpRequest)
1024
 private:
1025
1026
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1027
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1028
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1029
  friend struct ::protobuf_echo_2eproto::TableStruct;
1030
};
1031
// -------------------------------------------------------------------
1032
1033
class HttpResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.HttpResponse) */ {
1034
 public:
1035
  HttpResponse();
1036
  virtual ~HttpResponse();
1037
1038
  HttpResponse(const HttpResponse& from);
1039
1040
0
  inline HttpResponse& operator=(const HttpResponse& from) {
1041
0
    CopyFrom(from);
1042
0
    return *this;
1043
0
  }
1044
  #if LANG_CXX11
1045
  HttpResponse(HttpResponse&& from) noexcept
1046
0
    : HttpResponse() {
1047
0
    *this = ::std::move(from);
1048
0
  }
1049
1050
0
  inline HttpResponse& operator=(HttpResponse&& from) noexcept {
1051
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1052
0
      if (this != &from) InternalSwap(&from);
1053
0
    } else {
1054
0
      CopyFrom(from);
1055
0
    }
1056
0
    return *this;
1057
0
  }
1058
  #endif
1059
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1060
0
    return _internal_metadata_.unknown_fields();
1061
0
  }
1062
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1063
0
    return _internal_metadata_.mutable_unknown_fields();
1064
0
  }
1065
1066
  static const ::google::protobuf::Descriptor* descriptor();
1067
  static const HttpResponse& default_instance();
1068
1069
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
1070
0
  static inline const HttpResponse* internal_default_instance() {
1071
0
    return reinterpret_cast<const HttpResponse*>(
1072
0
               &_HttpResponse_default_instance_);
1073
0
  }
1074
  static constexpr int kIndexInFileMessages =
1075
    7;
1076
1077
  void Swap(HttpResponse* other);
1078
0
  friend void swap(HttpResponse& a, HttpResponse& b) {
1079
0
    a.Swap(&b);
1080
0
  }
1081
1082
  // implements Message ----------------------------------------------
1083
1084
0
  inline HttpResponse* New() const final {
1085
0
    return CreateMaybeMessage<HttpResponse>(NULL);
1086
0
  }
1087
1088
0
  HttpResponse* New(::google::protobuf::Arena* arena) const final {
1089
0
    return CreateMaybeMessage<HttpResponse>(arena);
1090
0
  }
1091
  void CopyFrom(const ::google::protobuf::Message& from) final;
1092
  void MergeFrom(const ::google::protobuf::Message& from) final;
1093
  void CopyFrom(const HttpResponse& from);
1094
  void MergeFrom(const HttpResponse& from);
1095
  void Clear() final;
1096
  bool IsInitialized() const final;
1097
1098
  size_t ByteSizeLong() const final;
1099
  bool MergePartialFromCodedStream(
1100
      ::google::protobuf::io::CodedInputStream* input) final;
1101
  void SerializeWithCachedSizes(
1102
      ::google::protobuf::io::CodedOutputStream* output) const final;
1103
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1104
      bool deterministic, ::google::protobuf::uint8* target) const final;
1105
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
1106
1107
  private:
1108
  void SharedCtor();
1109
  void SharedDtor();
1110
  void SetCachedSize(int size) const final;
1111
  void InternalSwap(HttpResponse* other);
1112
  private:
1113
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1114
0
    return NULL;
1115
0
  }
1116
0
  inline void* MaybeArenaPtr() const {
1117
0
    return NULL;
1118
0
  }
1119
  public:
1120
1121
  ::google::protobuf::Metadata GetMetadata() const final;
1122
1123
  // nested types ----------------------------------------------------
1124
1125
  // accessors -------------------------------------------------------
1126
1127
  // @@protoc_insertion_point(class_scope:test.HttpResponse)
1128
 private:
1129
1130
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1131
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1132
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1133
  friend struct ::protobuf_echo_2eproto::TableStruct;
1134
};
1135
// -------------------------------------------------------------------
1136
1137
class Message1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.Message1) */ {
1138
 public:
1139
  Message1();
1140
  virtual ~Message1();
1141
1142
  Message1(const Message1& from);
1143
1144
0
  inline Message1& operator=(const Message1& from) {
1145
0
    CopyFrom(from);
1146
0
    return *this;
1147
0
  }
1148
  #if LANG_CXX11
1149
  Message1(Message1&& from) noexcept
1150
0
    : Message1() {
1151
0
    *this = ::std::move(from);
1152
0
  }
1153
1154
0
  inline Message1& operator=(Message1&& from) noexcept {
1155
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1156
0
      if (this != &from) InternalSwap(&from);
1157
0
    } else {
1158
0
      CopyFrom(from);
1159
0
    }
1160
0
    return *this;
1161
0
  }
1162
  #endif
1163
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1164
0
    return _internal_metadata_.unknown_fields();
1165
0
  }
1166
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1167
0
    return _internal_metadata_.mutable_unknown_fields();
1168
0
  }
1169
1170
  static const ::google::protobuf::Descriptor* descriptor();
1171
  static const Message1& default_instance();
1172
1173
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
1174
0
  static inline const Message1* internal_default_instance() {
1175
0
    return reinterpret_cast<const Message1*>(
1176
0
               &_Message1_default_instance_);
1177
0
  }
1178
  static constexpr int kIndexInFileMessages =
1179
    8;
1180
1181
  void Swap(Message1* other);
1182
0
  friend void swap(Message1& a, Message1& b) {
1183
0
    a.Swap(&b);
1184
0
  }
1185
1186
  // implements Message ----------------------------------------------
1187
1188
0
  inline Message1* New() const final {
1189
0
    return CreateMaybeMessage<Message1>(NULL);
1190
0
  }
1191
1192
0
  Message1* New(::google::protobuf::Arena* arena) const final {
1193
0
    return CreateMaybeMessage<Message1>(arena);
1194
0
  }
1195
  void CopyFrom(const ::google::protobuf::Message& from) final;
1196
  void MergeFrom(const ::google::protobuf::Message& from) final;
1197
  void CopyFrom(const Message1& from);
1198
  void MergeFrom(const Message1& from);
1199
  void Clear() final;
1200
  bool IsInitialized() const final;
1201
1202
  size_t ByteSizeLong() const final;
1203
  bool MergePartialFromCodedStream(
1204
      ::google::protobuf::io::CodedInputStream* input) final;
1205
  void SerializeWithCachedSizes(
1206
      ::google::protobuf::io::CodedOutputStream* output) const final;
1207
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1208
      bool deterministic, ::google::protobuf::uint8* target) const final;
1209
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
1210
1211
  private:
1212
  void SharedCtor();
1213
  void SharedDtor();
1214
  void SetCachedSize(int size) const final;
1215
  void InternalSwap(Message1* other);
1216
  private:
1217
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1218
0
    return NULL;
1219
0
  }
1220
0
  inline void* MaybeArenaPtr() const {
1221
0
    return NULL;
1222
0
  }
1223
  public:
1224
1225
  ::google::protobuf::Metadata GetMetadata() const final;
1226
1227
  // nested types ----------------------------------------------------
1228
1229
  // accessors -------------------------------------------------------
1230
1231
  // required .test.State0 stat = 1;
1232
  bool has_stat() const;
1233
  void clear_stat();
1234
  static const int kStatFieldNumber = 1;
1235
  ::test::State0 stat() const;
1236
  void set_stat(::test::State0 value);
1237
1238
  // @@protoc_insertion_point(class_scope:test.Message1)
1239
 private:
1240
  void set_has_stat();
1241
  void clear_has_stat();
1242
1243
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1244
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1245
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1246
  int stat_;
1247
  friend struct ::protobuf_echo_2eproto::TableStruct;
1248
};
1249
// -------------------------------------------------------------------
1250
1251
class Message2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.Message2) */ {
1252
 public:
1253
  Message2();
1254
  virtual ~Message2();
1255
1256
  Message2(const Message2& from);
1257
1258
0
  inline Message2& operator=(const Message2& from) {
1259
0
    CopyFrom(from);
1260
0
    return *this;
1261
0
  }
1262
  #if LANG_CXX11
1263
  Message2(Message2&& from) noexcept
1264
0
    : Message2() {
1265
0
    *this = ::std::move(from);
1266
0
  }
1267
1268
0
  inline Message2& operator=(Message2&& from) noexcept {
1269
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1270
0
      if (this != &from) InternalSwap(&from);
1271
0
    } else {
1272
0
      CopyFrom(from);
1273
0
    }
1274
0
    return *this;
1275
0
  }
1276
  #endif
1277
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1278
0
    return _internal_metadata_.unknown_fields();
1279
0
  }
1280
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1281
0
    return _internal_metadata_.mutable_unknown_fields();
1282
0
  }
1283
1284
  static const ::google::protobuf::Descriptor* descriptor();
1285
  static const Message2& default_instance();
1286
1287
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
1288
0
  static inline const Message2* internal_default_instance() {
1289
0
    return reinterpret_cast<const Message2*>(
1290
0
               &_Message2_default_instance_);
1291
0
  }
1292
  static constexpr int kIndexInFileMessages =
1293
    9;
1294
1295
  void Swap(Message2* other);
1296
0
  friend void swap(Message2& a, Message2& b) {
1297
0
    a.Swap(&b);
1298
0
  }
1299
1300
  // implements Message ----------------------------------------------
1301
1302
0
  inline Message2* New() const final {
1303
0
    return CreateMaybeMessage<Message2>(NULL);
1304
0
  }
1305
1306
0
  Message2* New(::google::protobuf::Arena* arena) const final {
1307
0
    return CreateMaybeMessage<Message2>(arena);
1308
0
  }
1309
  void CopyFrom(const ::google::protobuf::Message& from) final;
1310
  void MergeFrom(const ::google::protobuf::Message& from) final;
1311
  void CopyFrom(const Message2& from);
1312
  void MergeFrom(const Message2& from);
1313
  void Clear() final;
1314
  bool IsInitialized() const final;
1315
1316
  size_t ByteSizeLong() const final;
1317
  bool MergePartialFromCodedStream(
1318
      ::google::protobuf::io::CodedInputStream* input) final;
1319
  void SerializeWithCachedSizes(
1320
      ::google::protobuf::io::CodedOutputStream* output) const final;
1321
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1322
      bool deterministic, ::google::protobuf::uint8* target) const final;
1323
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
1324
1325
  private:
1326
  void SharedCtor();
1327
  void SharedDtor();
1328
  void SetCachedSize(int size) const final;
1329
  void InternalSwap(Message2* other);
1330
  private:
1331
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1332
0
    return NULL;
1333
0
  }
1334
0
  inline void* MaybeArenaPtr() const {
1335
0
    return NULL;
1336
0
  }
1337
  public:
1338
1339
  ::google::protobuf::Metadata GetMetadata() const final;
1340
1341
  // nested types ----------------------------------------------------
1342
1343
  // accessors -------------------------------------------------------
1344
1345
  // required .test.State1 stat = 1;
1346
  bool has_stat() const;
1347
  void clear_stat();
1348
  static const int kStatFieldNumber = 1;
1349
  ::test::State1 stat() const;
1350
  void set_stat(::test::State1 value);
1351
1352
  // @@protoc_insertion_point(class_scope:test.Message2)
1353
 private:
1354
  void set_has_stat();
1355
  void clear_has_stat();
1356
1357
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1358
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1359
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1360
  int stat_;
1361
  friend struct ::protobuf_echo_2eproto::TableStruct;
1362
};
1363
// -------------------------------------------------------------------
1364
1365
class RecursiveMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.RecursiveMessage) */ {
1366
 public:
1367
  RecursiveMessage();
1368
  virtual ~RecursiveMessage();
1369
1370
  RecursiveMessage(const RecursiveMessage& from);
1371
1372
0
  inline RecursiveMessage& operator=(const RecursiveMessage& from) {
1373
0
    CopyFrom(from);
1374
0
    return *this;
1375
0
  }
1376
  #if LANG_CXX11
1377
  RecursiveMessage(RecursiveMessage&& from) noexcept
1378
0
    : RecursiveMessage() {
1379
0
    *this = ::std::move(from);
1380
0
  }
1381
1382
0
  inline RecursiveMessage& operator=(RecursiveMessage&& from) noexcept {
1383
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1384
0
      if (this != &from) InternalSwap(&from);
1385
0
    } else {
1386
0
      CopyFrom(from);
1387
0
    }
1388
0
    return *this;
1389
0
  }
1390
  #endif
1391
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1392
0
    return _internal_metadata_.unknown_fields();
1393
0
  }
1394
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1395
0
    return _internal_metadata_.mutable_unknown_fields();
1396
0
  }
1397
1398
  static const ::google::protobuf::Descriptor* descriptor();
1399
  static const RecursiveMessage& default_instance();
1400
1401
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
1402
2
  static inline const RecursiveMessage* internal_default_instance() {
1403
2
    return reinterpret_cast<const RecursiveMessage*>(
1404
2
               &_RecursiveMessage_default_instance_);
1405
2
  }
1406
  static constexpr int kIndexInFileMessages =
1407
    10;
1408
1409
  void Swap(RecursiveMessage* other);
1410
0
  friend void swap(RecursiveMessage& a, RecursiveMessage& b) {
1411
0
    a.Swap(&b);
1412
0
  }
1413
1414
  // implements Message ----------------------------------------------
1415
1416
0
  inline RecursiveMessage* New() const final {
1417
0
    return CreateMaybeMessage<RecursiveMessage>(NULL);
1418
0
  }
1419
1420
0
  RecursiveMessage* New(::google::protobuf::Arena* arena) const final {
1421
0
    return CreateMaybeMessage<RecursiveMessage>(arena);
1422
0
  }
1423
  void CopyFrom(const ::google::protobuf::Message& from) final;
1424
  void MergeFrom(const ::google::protobuf::Message& from) final;
1425
  void CopyFrom(const RecursiveMessage& from);
1426
  void MergeFrom(const RecursiveMessage& from);
1427
  void Clear() final;
1428
  bool IsInitialized() const final;
1429
1430
  size_t ByteSizeLong() const final;
1431
  bool MergePartialFromCodedStream(
1432
      ::google::protobuf::io::CodedInputStream* input) final;
1433
  void SerializeWithCachedSizes(
1434
      ::google::protobuf::io::CodedOutputStream* output) const final;
1435
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1436
      bool deterministic, ::google::protobuf::uint8* target) const final;
1437
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
1438
1439
  private:
1440
  void SharedCtor();
1441
  void SharedDtor();
1442
  void SetCachedSize(int size) const final;
1443
  void InternalSwap(RecursiveMessage* other);
1444
  private:
1445
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1446
0
    return NULL;
1447
0
  }
1448
0
  inline void* MaybeArenaPtr() const {
1449
0
    return NULL;
1450
0
  }
1451
  public:
1452
1453
  ::google::protobuf::Metadata GetMetadata() const final;
1454
1455
  // nested types ----------------------------------------------------
1456
1457
  // accessors -------------------------------------------------------
1458
1459
  // optional string data = 2;
1460
  bool has_data() const;
1461
  void clear_data();
1462
  static const int kDataFieldNumber = 2;
1463
  const ::std::string& data() const;
1464
  void set_data(const ::std::string& value);
1465
  #if LANG_CXX11
1466
  void set_data(::std::string&& value);
1467
  #endif
1468
  void set_data(const char* value);
1469
  void set_data(const char* value, size_t size);
1470
  ::std::string* mutable_data();
1471
  ::std::string* release_data();
1472
  void set_allocated_data(::std::string* data);
1473
1474
  // optional .test.RecursiveMessage child = 1;
1475
  bool has_child() const;
1476
  void clear_child();
1477
  static const int kChildFieldNumber = 1;
1478
  private:
1479
  const ::test::RecursiveMessage& _internal_child() const;
1480
  public:
1481
  const ::test::RecursiveMessage& child() const;
1482
  ::test::RecursiveMessage* release_child();
1483
  ::test::RecursiveMessage* mutable_child();
1484
  void set_allocated_child(::test::RecursiveMessage* child);
1485
1486
  // @@protoc_insertion_point(class_scope:test.RecursiveMessage)
1487
 private:
1488
  void set_has_child();
1489
  void clear_has_child();
1490
  void set_has_data();
1491
  void clear_has_data();
1492
1493
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1494
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1495
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1496
  ::google::protobuf::internal::ArenaStringPtr data_;
1497
  ::test::RecursiveMessage* child_;
1498
  friend struct ::protobuf_echo_2eproto::TableStruct;
1499
};
1500
// ===================================================================
1501
1502
class EchoService_Stub;
1503
1504
class EchoService : public ::google::protobuf::Service {
1505
 protected:
1506
  // This class should be treated as an abstract interface.
1507
0
  inline EchoService() {};
1508
 public:
1509
  virtual ~EchoService();
1510
1511
  typedef EchoService_Stub Stub;
1512
1513
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1514
1515
  virtual void Echo(::google::protobuf::RpcController* controller,
1516
                       const ::test::EchoRequest* request,
1517
                       ::test::EchoResponse* response,
1518
                       ::google::protobuf::Closure* done);
1519
  virtual void ComboEcho(::google::protobuf::RpcController* controller,
1520
                       const ::test::ComboRequest* request,
1521
                       ::test::ComboResponse* response,
1522
                       ::google::protobuf::Closure* done);
1523
  virtual void BytesEcho1(::google::protobuf::RpcController* controller,
1524
                       const ::test::BytesRequest* request,
1525
                       ::test::BytesResponse* response,
1526
                       ::google::protobuf::Closure* done);
1527
  virtual void BytesEcho2(::google::protobuf::RpcController* controller,
1528
                       const ::test::BytesRequest* request,
1529
                       ::test::BytesResponse* response,
1530
                       ::google::protobuf::Closure* done);
1531
1532
  // implements Service ----------------------------------------------
1533
1534
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1535
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1536
                  ::google::protobuf::RpcController* controller,
1537
                  const ::google::protobuf::Message* request,
1538
                  ::google::protobuf::Message* response,
1539
                  ::google::protobuf::Closure* done);
1540
  const ::google::protobuf::Message& GetRequestPrototype(
1541
    const ::google::protobuf::MethodDescriptor* method) const;
1542
  const ::google::protobuf::Message& GetResponsePrototype(
1543
    const ::google::protobuf::MethodDescriptor* method) const;
1544
1545
 private:
1546
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService);
1547
};
1548
1549
class EchoService_Stub : public EchoService {
1550
 public:
1551
  EchoService_Stub(::google::protobuf::RpcChannel* channel);
1552
  EchoService_Stub(::google::protobuf::RpcChannel* channel,
1553
                   ::google::protobuf::Service::ChannelOwnership ownership);
1554
  ~EchoService_Stub();
1555
1556
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1557
1558
  // implements EchoService ------------------------------------------
1559
1560
  void Echo(::google::protobuf::RpcController* controller,
1561
                       const ::test::EchoRequest* request,
1562
                       ::test::EchoResponse* response,
1563
                       ::google::protobuf::Closure* done);
1564
  void ComboEcho(::google::protobuf::RpcController* controller,
1565
                       const ::test::ComboRequest* request,
1566
                       ::test::ComboResponse* response,
1567
                       ::google::protobuf::Closure* done);
1568
  void BytesEcho1(::google::protobuf::RpcController* controller,
1569
                       const ::test::BytesRequest* request,
1570
                       ::test::BytesResponse* response,
1571
                       ::google::protobuf::Closure* done);
1572
  void BytesEcho2(::google::protobuf::RpcController* controller,
1573
                       const ::test::BytesRequest* request,
1574
                       ::test::BytesResponse* response,
1575
                       ::google::protobuf::Closure* done);
1576
 private:
1577
  ::google::protobuf::RpcChannel* channel_;
1578
  bool owns_channel_;
1579
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub);
1580
};
1581
1582
1583
// -------------------------------------------------------------------
1584
1585
class DownloadService_Stub;
1586
1587
class DownloadService : public ::google::protobuf::Service {
1588
 protected:
1589
  // This class should be treated as an abstract interface.
1590
0
  inline DownloadService() {};
1591
 public:
1592
  virtual ~DownloadService();
1593
1594
  typedef DownloadService_Stub Stub;
1595
1596
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1597
1598
  virtual void Download(::google::protobuf::RpcController* controller,
1599
                       const ::test::HttpRequest* request,
1600
                       ::test::HttpResponse* response,
1601
                       ::google::protobuf::Closure* done);
1602
  virtual void DownloadFailed(::google::protobuf::RpcController* controller,
1603
                       const ::test::HttpRequest* request,
1604
                       ::test::HttpResponse* response,
1605
                       ::google::protobuf::Closure* done);
1606
1607
  // implements Service ----------------------------------------------
1608
1609
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1610
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1611
                  ::google::protobuf::RpcController* controller,
1612
                  const ::google::protobuf::Message* request,
1613
                  ::google::protobuf::Message* response,
1614
                  ::google::protobuf::Closure* done);
1615
  const ::google::protobuf::Message& GetRequestPrototype(
1616
    const ::google::protobuf::MethodDescriptor* method) const;
1617
  const ::google::protobuf::Message& GetResponsePrototype(
1618
    const ::google::protobuf::MethodDescriptor* method) const;
1619
1620
 private:
1621
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService);
1622
};
1623
1624
class DownloadService_Stub : public DownloadService {
1625
 public:
1626
  DownloadService_Stub(::google::protobuf::RpcChannel* channel);
1627
  DownloadService_Stub(::google::protobuf::RpcChannel* channel,
1628
                   ::google::protobuf::Service::ChannelOwnership ownership);
1629
  ~DownloadService_Stub();
1630
1631
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1632
1633
  // implements DownloadService ------------------------------------------
1634
1635
  void Download(::google::protobuf::RpcController* controller,
1636
                       const ::test::HttpRequest* request,
1637
                       ::test::HttpResponse* response,
1638
                       ::google::protobuf::Closure* done);
1639
  void DownloadFailed(::google::protobuf::RpcController* controller,
1640
                       const ::test::HttpRequest* request,
1641
                       ::test::HttpResponse* response,
1642
                       ::google::protobuf::Closure* done);
1643
 private:
1644
  ::google::protobuf::RpcChannel* channel_;
1645
  bool owns_channel_;
1646
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService_Stub);
1647
};
1648
1649
1650
// -------------------------------------------------------------------
1651
1652
class UploadService_Stub;
1653
1654
class UploadService : public ::google::protobuf::Service {
1655
 protected:
1656
  // This class should be treated as an abstract interface.
1657
0
  inline UploadService() {};
1658
 public:
1659
  virtual ~UploadService();
1660
1661
  typedef UploadService_Stub Stub;
1662
1663
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1664
1665
  virtual void Upload(::google::protobuf::RpcController* controller,
1666
                       const ::test::HttpRequest* request,
1667
                       ::test::HttpResponse* response,
1668
                       ::google::protobuf::Closure* done);
1669
  virtual void UploadFailed(::google::protobuf::RpcController* controller,
1670
                       const ::test::HttpRequest* request,
1671
                       ::test::HttpResponse* response,
1672
                       ::google::protobuf::Closure* done);
1673
1674
  // implements Service ----------------------------------------------
1675
1676
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1677
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1678
                  ::google::protobuf::RpcController* controller,
1679
                  const ::google::protobuf::Message* request,
1680
                  ::google::protobuf::Message* response,
1681
                  ::google::protobuf::Closure* done);
1682
  const ::google::protobuf::Message& GetRequestPrototype(
1683
    const ::google::protobuf::MethodDescriptor* method) const;
1684
  const ::google::protobuf::Message& GetResponsePrototype(
1685
    const ::google::protobuf::MethodDescriptor* method) const;
1686
1687
 private:
1688
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService);
1689
};
1690
1691
class UploadService_Stub : public UploadService {
1692
 public:
1693
  UploadService_Stub(::google::protobuf::RpcChannel* channel);
1694
  UploadService_Stub(::google::protobuf::RpcChannel* channel,
1695
                   ::google::protobuf::Service::ChannelOwnership ownership);
1696
  ~UploadService_Stub();
1697
1698
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1699
1700
  // implements UploadService ------------------------------------------
1701
1702
  void Upload(::google::protobuf::RpcController* controller,
1703
                       const ::test::HttpRequest* request,
1704
                       ::test::HttpResponse* response,
1705
                       ::google::protobuf::Closure* done);
1706
  void UploadFailed(::google::protobuf::RpcController* controller,
1707
                       const ::test::HttpRequest* request,
1708
                       ::test::HttpResponse* response,
1709
                       ::google::protobuf::Closure* done);
1710
 private:
1711
  ::google::protobuf::RpcChannel* channel_;
1712
  bool owns_channel_;
1713
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService_Stub);
1714
};
1715
1716
1717
// -------------------------------------------------------------------
1718
1719
class UserNamingService_Stub;
1720
1721
class UserNamingService : public ::google::protobuf::Service {
1722
 protected:
1723
  // This class should be treated as an abstract interface.
1724
0
  inline UserNamingService() {};
1725
 public:
1726
  virtual ~UserNamingService();
1727
1728
  typedef UserNamingService_Stub Stub;
1729
1730
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1731
1732
  virtual void ListNames(::google::protobuf::RpcController* controller,
1733
                       const ::test::HttpRequest* request,
1734
                       ::test::HttpResponse* response,
1735
                       ::google::protobuf::Closure* done);
1736
  virtual void Touch(::google::protobuf::RpcController* controller,
1737
                       const ::test::HttpRequest* request,
1738
                       ::test::HttpResponse* response,
1739
                       ::google::protobuf::Closure* done);
1740
1741
  // implements Service ----------------------------------------------
1742
1743
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1744
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1745
                  ::google::protobuf::RpcController* controller,
1746
                  const ::google::protobuf::Message* request,
1747
                  ::google::protobuf::Message* response,
1748
                  ::google::protobuf::Closure* done);
1749
  const ::google::protobuf::Message& GetRequestPrototype(
1750
    const ::google::protobuf::MethodDescriptor* method) const;
1751
  const ::google::protobuf::Message& GetResponsePrototype(
1752
    const ::google::protobuf::MethodDescriptor* method) const;
1753
1754
 private:
1755
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService);
1756
};
1757
1758
class UserNamingService_Stub : public UserNamingService {
1759
 public:
1760
  UserNamingService_Stub(::google::protobuf::RpcChannel* channel);
1761
  UserNamingService_Stub(::google::protobuf::RpcChannel* channel,
1762
                   ::google::protobuf::Service::ChannelOwnership ownership);
1763
  ~UserNamingService_Stub();
1764
1765
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1766
1767
  // implements UserNamingService ------------------------------------------
1768
1769
  void ListNames(::google::protobuf::RpcController* controller,
1770
                       const ::test::HttpRequest* request,
1771
                       ::test::HttpResponse* response,
1772
                       ::google::protobuf::Closure* done);
1773
  void Touch(::google::protobuf::RpcController* controller,
1774
                       const ::test::HttpRequest* request,
1775
                       ::test::HttpResponse* response,
1776
                       ::google::protobuf::Closure* done);
1777
 private:
1778
  ::google::protobuf::RpcChannel* channel_;
1779
  bool owns_channel_;
1780
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService_Stub);
1781
};
1782
1783
1784
// -------------------------------------------------------------------
1785
1786
class DiscoveryNamingService_Stub;
1787
1788
class DiscoveryNamingService : public ::google::protobuf::Service {
1789
 protected:
1790
  // This class should be treated as an abstract interface.
1791
0
  inline DiscoveryNamingService() {};
1792
 public:
1793
  virtual ~DiscoveryNamingService();
1794
1795
  typedef DiscoveryNamingService_Stub Stub;
1796
1797
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1798
1799
  virtual void Nodes(::google::protobuf::RpcController* controller,
1800
                       const ::test::HttpRequest* request,
1801
                       ::test::HttpResponse* response,
1802
                       ::google::protobuf::Closure* done);
1803
  virtual void Fetchs(::google::protobuf::RpcController* controller,
1804
                       const ::test::HttpRequest* request,
1805
                       ::test::HttpResponse* response,
1806
                       ::google::protobuf::Closure* done);
1807
  virtual void Register(::google::protobuf::RpcController* controller,
1808
                       const ::test::HttpRequest* request,
1809
                       ::test::HttpResponse* response,
1810
                       ::google::protobuf::Closure* done);
1811
  virtual void Renew(::google::protobuf::RpcController* controller,
1812
                       const ::test::HttpRequest* request,
1813
                       ::test::HttpResponse* response,
1814
                       ::google::protobuf::Closure* done);
1815
  virtual void Cancel(::google::protobuf::RpcController* controller,
1816
                       const ::test::HttpRequest* request,
1817
                       ::test::HttpResponse* response,
1818
                       ::google::protobuf::Closure* done);
1819
1820
  // implements Service ----------------------------------------------
1821
1822
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1823
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1824
                  ::google::protobuf::RpcController* controller,
1825
                  const ::google::protobuf::Message* request,
1826
                  ::google::protobuf::Message* response,
1827
                  ::google::protobuf::Closure* done);
1828
  const ::google::protobuf::Message& GetRequestPrototype(
1829
    const ::google::protobuf::MethodDescriptor* method) const;
1830
  const ::google::protobuf::Message& GetResponsePrototype(
1831
    const ::google::protobuf::MethodDescriptor* method) const;
1832
1833
 private:
1834
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService);
1835
};
1836
1837
class DiscoveryNamingService_Stub : public DiscoveryNamingService {
1838
 public:
1839
  DiscoveryNamingService_Stub(::google::protobuf::RpcChannel* channel);
1840
  DiscoveryNamingService_Stub(::google::protobuf::RpcChannel* channel,
1841
                   ::google::protobuf::Service::ChannelOwnership ownership);
1842
  ~DiscoveryNamingService_Stub();
1843
1844
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1845
1846
  // implements DiscoveryNamingService ------------------------------------------
1847
1848
  void Nodes(::google::protobuf::RpcController* controller,
1849
                       const ::test::HttpRequest* request,
1850
                       ::test::HttpResponse* response,
1851
                       ::google::protobuf::Closure* done);
1852
  void Fetchs(::google::protobuf::RpcController* controller,
1853
                       const ::test::HttpRequest* request,
1854
                       ::test::HttpResponse* response,
1855
                       ::google::protobuf::Closure* done);
1856
  void Register(::google::protobuf::RpcController* controller,
1857
                       const ::test::HttpRequest* request,
1858
                       ::test::HttpResponse* response,
1859
                       ::google::protobuf::Closure* done);
1860
  void Renew(::google::protobuf::RpcController* controller,
1861
                       const ::test::HttpRequest* request,
1862
                       ::test::HttpResponse* response,
1863
                       ::google::protobuf::Closure* done);
1864
  void Cancel(::google::protobuf::RpcController* controller,
1865
                       const ::test::HttpRequest* request,
1866
                       ::test::HttpResponse* response,
1867
                       ::google::protobuf::Closure* done);
1868
 private:
1869
  ::google::protobuf::RpcChannel* channel_;
1870
  bool owns_channel_;
1871
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService_Stub);
1872
};
1873
1874
1875
// -------------------------------------------------------------------
1876
1877
class NacosNamingService_Stub;
1878
1879
class NacosNamingService : public ::google::protobuf::Service {
1880
 protected:
1881
  // This class should be treated as an abstract interface.
1882
0
  inline NacosNamingService() {};
1883
 public:
1884
  virtual ~NacosNamingService();
1885
1886
  typedef NacosNamingService_Stub Stub;
1887
1888
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1889
1890
  virtual void Login(::google::protobuf::RpcController* controller,
1891
                       const ::test::HttpRequest* request,
1892
                       ::test::HttpResponse* response,
1893
                       ::google::protobuf::Closure* done);
1894
  virtual void List(::google::protobuf::RpcController* controller,
1895
                       const ::test::HttpRequest* request,
1896
                       ::test::HttpResponse* response,
1897
                       ::google::protobuf::Closure* done);
1898
1899
  // implements Service ----------------------------------------------
1900
1901
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1902
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1903
                  ::google::protobuf::RpcController* controller,
1904
                  const ::google::protobuf::Message* request,
1905
                  ::google::protobuf::Message* response,
1906
                  ::google::protobuf::Closure* done);
1907
  const ::google::protobuf::Message& GetRequestPrototype(
1908
    const ::google::protobuf::MethodDescriptor* method) const;
1909
  const ::google::protobuf::Message& GetResponsePrototype(
1910
    const ::google::protobuf::MethodDescriptor* method) const;
1911
1912
 private:
1913
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService);
1914
};
1915
1916
class NacosNamingService_Stub : public NacosNamingService {
1917
 public:
1918
  NacosNamingService_Stub(::google::protobuf::RpcChannel* channel);
1919
  NacosNamingService_Stub(::google::protobuf::RpcChannel* channel,
1920
                   ::google::protobuf::Service::ChannelOwnership ownership);
1921
  ~NacosNamingService_Stub();
1922
1923
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1924
1925
  // implements NacosNamingService ------------------------------------------
1926
1927
  void Login(::google::protobuf::RpcController* controller,
1928
                       const ::test::HttpRequest* request,
1929
                       ::test::HttpResponse* response,
1930
                       ::google::protobuf::Closure* done);
1931
  void List(::google::protobuf::RpcController* controller,
1932
                       const ::test::HttpRequest* request,
1933
                       ::test::HttpResponse* response,
1934
                       ::google::protobuf::Closure* done);
1935
 private:
1936
  ::google::protobuf::RpcChannel* channel_;
1937
  bool owns_channel_;
1938
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService_Stub);
1939
};
1940
1941
1942
// -------------------------------------------------------------------
1943
1944
class HttpService_Stub;
1945
1946
class HttpService : public ::google::protobuf::Service {
1947
 protected:
1948
  // This class should be treated as an abstract interface.
1949
0
  inline HttpService() {};
1950
 public:
1951
  virtual ~HttpService();
1952
1953
  typedef HttpService_Stub Stub;
1954
1955
  static const ::google::protobuf::ServiceDescriptor* descriptor();
1956
1957
  virtual void Head(::google::protobuf::RpcController* controller,
1958
                       const ::test::HttpRequest* request,
1959
                       ::test::HttpResponse* response,
1960
                       ::google::protobuf::Closure* done);
1961
  virtual void Expect(::google::protobuf::RpcController* controller,
1962
                       const ::test::HttpRequest* request,
1963
                       ::test::HttpResponse* response,
1964
                       ::google::protobuf::Closure* done);
1965
1966
  // implements Service ----------------------------------------------
1967
1968
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1969
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1970
                  ::google::protobuf::RpcController* controller,
1971
                  const ::google::protobuf::Message* request,
1972
                  ::google::protobuf::Message* response,
1973
                  ::google::protobuf::Closure* done);
1974
  const ::google::protobuf::Message& GetRequestPrototype(
1975
    const ::google::protobuf::MethodDescriptor* method) const;
1976
  const ::google::protobuf::Message& GetResponsePrototype(
1977
    const ::google::protobuf::MethodDescriptor* method) const;
1978
1979
 private:
1980
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService);
1981
};
1982
1983
class HttpService_Stub : public HttpService {
1984
 public:
1985
  HttpService_Stub(::google::protobuf::RpcChannel* channel);
1986
  HttpService_Stub(::google::protobuf::RpcChannel* channel,
1987
                   ::google::protobuf::Service::ChannelOwnership ownership);
1988
  ~HttpService_Stub();
1989
1990
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1991
1992
  // implements HttpService ------------------------------------------
1993
1994
  void Head(::google::protobuf::RpcController* controller,
1995
                       const ::test::HttpRequest* request,
1996
                       ::test::HttpResponse* response,
1997
                       ::google::protobuf::Closure* done);
1998
  void Expect(::google::protobuf::RpcController* controller,
1999
                       const ::test::HttpRequest* request,
2000
                       ::test::HttpResponse* response,
2001
                       ::google::protobuf::Closure* done);
2002
 private:
2003
  ::google::protobuf::RpcChannel* channel_;
2004
  bool owns_channel_;
2005
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService_Stub);
2006
};
2007
2008
2009
// ===================================================================
2010
2011
2012
// ===================================================================
2013
2014
#ifdef __GNUC__
2015
  #pragma GCC diagnostic push
2016
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
2017
#endif  // __GNUC__
2018
// EchoRequest
2019
2020
// required string message = 1;
2021
0
inline bool EchoRequest::has_message() const {
2022
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2023
0
}
2024
0
inline void EchoRequest::set_has_message() {
2025
0
  _has_bits_[0] |= 0x00000001u;
2026
0
}
2027
0
inline void EchoRequest::clear_has_message() {
2028
0
  _has_bits_[0] &= ~0x00000001u;
2029
0
}
2030
0
inline void EchoRequest::clear_message() {
2031
0
  message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2032
0
  clear_has_message();
2033
0
}
2034
0
inline const ::std::string& EchoRequest::message() const {
2035
  // @@protoc_insertion_point(field_get:test.EchoRequest.message)
2036
0
  return message_.GetNoArena();
2037
0
}
2038
0
inline void EchoRequest::set_message(const ::std::string& value) {
2039
0
  set_has_message();
2040
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2041
0
  // @@protoc_insertion_point(field_set:test.EchoRequest.message)
2042
0
}
2043
#if LANG_CXX11
2044
0
inline void EchoRequest::set_message(::std::string&& value) {
2045
0
  set_has_message();
2046
0
  message_.SetNoArena(
2047
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2048
0
  // @@protoc_insertion_point(field_set_rvalue:test.EchoRequest.message)
2049
0
}
2050
#endif
2051
0
inline void EchoRequest::set_message(const char* value) {
2052
0
  GOOGLE_DCHECK(value != NULL);
2053
0
  set_has_message();
2054
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2055
0
  // @@protoc_insertion_point(field_set_char:test.EchoRequest.message)
2056
0
}
2057
0
inline void EchoRequest::set_message(const char* value, size_t size) {
2058
0
  set_has_message();
2059
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2060
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2061
0
  // @@protoc_insertion_point(field_set_pointer:test.EchoRequest.message)
2062
0
}
2063
0
inline ::std::string* EchoRequest::mutable_message() {
2064
0
  set_has_message();
2065
  // @@protoc_insertion_point(field_mutable:test.EchoRequest.message)
2066
0
  return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2067
0
}
2068
0
inline ::std::string* EchoRequest::release_message() {
2069
0
  // @@protoc_insertion_point(field_release:test.EchoRequest.message)
2070
0
  if (!has_message()) {
2071
0
    return NULL;
2072
0
  }
2073
0
  clear_has_message();
2074
0
  return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2075
0
}
2076
0
inline void EchoRequest::set_allocated_message(::std::string* message) {
2077
0
  if (message != NULL) {
2078
0
    set_has_message();
2079
0
  } else {
2080
0
    clear_has_message();
2081
0
  }
2082
0
  message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
2083
0
  // @@protoc_insertion_point(field_set_allocated:test.EchoRequest.message)
2084
0
}
2085
2086
// optional int32 code = 2;
2087
0
inline bool EchoRequest::has_code() const {
2088
0
  return (_has_bits_[0] & 0x00000002u) != 0;
2089
0
}
2090
0
inline void EchoRequest::set_has_code() {
2091
0
  _has_bits_[0] |= 0x00000002u;
2092
0
}
2093
0
inline void EchoRequest::clear_has_code() {
2094
0
  _has_bits_[0] &= ~0x00000002u;
2095
0
}
2096
0
inline void EchoRequest::clear_code() {
2097
0
  code_ = 0;
2098
0
  clear_has_code();
2099
0
}
2100
0
inline ::google::protobuf::int32 EchoRequest::code() const {
2101
  // @@protoc_insertion_point(field_get:test.EchoRequest.code)
2102
0
  return code_;
2103
0
}
2104
0
inline void EchoRequest::set_code(::google::protobuf::int32 value) {
2105
0
  set_has_code();
2106
0
  code_ = value;
2107
0
  // @@protoc_insertion_point(field_set:test.EchoRequest.code)
2108
0
}
2109
2110
// optional bool close_fd = 3;
2111
0
inline bool EchoRequest::has_close_fd() const {
2112
0
  return (_has_bits_[0] & 0x00000004u) != 0;
2113
0
}
2114
0
inline void EchoRequest::set_has_close_fd() {
2115
0
  _has_bits_[0] |= 0x00000004u;
2116
0
}
2117
0
inline void EchoRequest::clear_has_close_fd() {
2118
0
  _has_bits_[0] &= ~0x00000004u;
2119
0
}
2120
0
inline void EchoRequest::clear_close_fd() {
2121
0
  close_fd_ = false;
2122
0
  clear_has_close_fd();
2123
0
}
2124
0
inline bool EchoRequest::close_fd() const {
2125
  // @@protoc_insertion_point(field_get:test.EchoRequest.close_fd)
2126
0
  return close_fd_;
2127
0
}
2128
0
inline void EchoRequest::set_close_fd(bool value) {
2129
0
  set_has_close_fd();
2130
0
  close_fd_ = value;
2131
0
  // @@protoc_insertion_point(field_set:test.EchoRequest.close_fd)
2132
0
}
2133
2134
// optional int32 sleep_us = 4;
2135
0
inline bool EchoRequest::has_sleep_us() const {
2136
0
  return (_has_bits_[0] & 0x00000008u) != 0;
2137
0
}
2138
0
inline void EchoRequest::set_has_sleep_us() {
2139
0
  _has_bits_[0] |= 0x00000008u;
2140
0
}
2141
0
inline void EchoRequest::clear_has_sleep_us() {
2142
0
  _has_bits_[0] &= ~0x00000008u;
2143
0
}
2144
0
inline void EchoRequest::clear_sleep_us() {
2145
0
  sleep_us_ = 0;
2146
0
  clear_has_sleep_us();
2147
0
}
2148
0
inline ::google::protobuf::int32 EchoRequest::sleep_us() const {
2149
  // @@protoc_insertion_point(field_get:test.EchoRequest.sleep_us)
2150
0
  return sleep_us_;
2151
0
}
2152
0
inline void EchoRequest::set_sleep_us(::google::protobuf::int32 value) {
2153
0
  set_has_sleep_us();
2154
0
  sleep_us_ = value;
2155
0
  // @@protoc_insertion_point(field_set:test.EchoRequest.sleep_us)
2156
0
}
2157
2158
// optional int32 server_fail = 5;
2159
0
inline bool EchoRequest::has_server_fail() const {
2160
0
  return (_has_bits_[0] & 0x00000010u) != 0;
2161
0
}
2162
0
inline void EchoRequest::set_has_server_fail() {
2163
0
  _has_bits_[0] |= 0x00000010u;
2164
0
}
2165
0
inline void EchoRequest::clear_has_server_fail() {
2166
0
  _has_bits_[0] &= ~0x00000010u;
2167
0
}
2168
0
inline void EchoRequest::clear_server_fail() {
2169
0
  server_fail_ = 0;
2170
0
  clear_has_server_fail();
2171
0
}
2172
0
inline ::google::protobuf::int32 EchoRequest::server_fail() const {
2173
  // @@protoc_insertion_point(field_get:test.EchoRequest.server_fail)
2174
0
  return server_fail_;
2175
0
}
2176
0
inline void EchoRequest::set_server_fail(::google::protobuf::int32 value) {
2177
0
  set_has_server_fail();
2178
0
  server_fail_ = value;
2179
0
  // @@protoc_insertion_point(field_set:test.EchoRequest.server_fail)
2180
0
}
2181
2182
// -------------------------------------------------------------------
2183
2184
// EchoResponse
2185
2186
// required string message = 1;
2187
0
inline bool EchoResponse::has_message() const {
2188
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2189
0
}
2190
0
inline void EchoResponse::set_has_message() {
2191
0
  _has_bits_[0] |= 0x00000001u;
2192
0
}
2193
0
inline void EchoResponse::clear_has_message() {
2194
0
  _has_bits_[0] &= ~0x00000001u;
2195
0
}
2196
0
inline void EchoResponse::clear_message() {
2197
0
  message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2198
0
  clear_has_message();
2199
0
}
2200
0
inline const ::std::string& EchoResponse::message() const {
2201
  // @@protoc_insertion_point(field_get:test.EchoResponse.message)
2202
0
  return message_.GetNoArena();
2203
0
}
2204
0
inline void EchoResponse::set_message(const ::std::string& value) {
2205
0
  set_has_message();
2206
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2207
0
  // @@protoc_insertion_point(field_set:test.EchoResponse.message)
2208
0
}
2209
#if LANG_CXX11
2210
0
inline void EchoResponse::set_message(::std::string&& value) {
2211
0
  set_has_message();
2212
0
  message_.SetNoArena(
2213
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2214
0
  // @@protoc_insertion_point(field_set_rvalue:test.EchoResponse.message)
2215
0
}
2216
#endif
2217
0
inline void EchoResponse::set_message(const char* value) {
2218
0
  GOOGLE_DCHECK(value != NULL);
2219
0
  set_has_message();
2220
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2221
0
  // @@protoc_insertion_point(field_set_char:test.EchoResponse.message)
2222
0
}
2223
0
inline void EchoResponse::set_message(const char* value, size_t size) {
2224
0
  set_has_message();
2225
0
  message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2226
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2227
0
  // @@protoc_insertion_point(field_set_pointer:test.EchoResponse.message)
2228
0
}
2229
0
inline ::std::string* EchoResponse::mutable_message() {
2230
0
  set_has_message();
2231
  // @@protoc_insertion_point(field_mutable:test.EchoResponse.message)
2232
0
  return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2233
0
}
2234
0
inline ::std::string* EchoResponse::release_message() {
2235
0
  // @@protoc_insertion_point(field_release:test.EchoResponse.message)
2236
0
  if (!has_message()) {
2237
0
    return NULL;
2238
0
  }
2239
0
  clear_has_message();
2240
0
  return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2241
0
}
2242
0
inline void EchoResponse::set_allocated_message(::std::string* message) {
2243
0
  if (message != NULL) {
2244
0
    set_has_message();
2245
0
  } else {
2246
0
    clear_has_message();
2247
0
  }
2248
0
  message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
2249
0
  // @@protoc_insertion_point(field_set_allocated:test.EchoResponse.message)
2250
0
}
2251
2252
// repeated int32 code_list = 2;
2253
0
inline int EchoResponse::code_list_size() const {
2254
0
  return code_list_.size();
2255
0
}
2256
0
inline void EchoResponse::clear_code_list() {
2257
0
  code_list_.Clear();
2258
0
}
2259
0
inline ::google::protobuf::int32 EchoResponse::code_list(int index) const {
2260
  // @@protoc_insertion_point(field_get:test.EchoResponse.code_list)
2261
0
  return code_list_.Get(index);
2262
0
}
2263
0
inline void EchoResponse::set_code_list(int index, ::google::protobuf::int32 value) {
2264
0
  code_list_.Set(index, value);
2265
0
  // @@protoc_insertion_point(field_set:test.EchoResponse.code_list)
2266
0
}
2267
0
inline void EchoResponse::add_code_list(::google::protobuf::int32 value) {
2268
0
  code_list_.Add(value);
2269
0
  // @@protoc_insertion_point(field_add:test.EchoResponse.code_list)
2270
0
}
2271
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2272
0
EchoResponse::code_list() const {
2273
0
  // @@protoc_insertion_point(field_list:test.EchoResponse.code_list)
2274
0
  return code_list_;
2275
0
}
2276
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2277
0
EchoResponse::mutable_code_list() {
2278
  // @@protoc_insertion_point(field_mutable_list:test.EchoResponse.code_list)
2279
0
  return &code_list_;
2280
0
}
2281
2282
// optional uint64 receiving_socket_id = 3;
2283
0
inline bool EchoResponse::has_receiving_socket_id() const {
2284
0
  return (_has_bits_[0] & 0x00000002u) != 0;
2285
0
}
2286
0
inline void EchoResponse::set_has_receiving_socket_id() {
2287
0
  _has_bits_[0] |= 0x00000002u;
2288
0
}
2289
0
inline void EchoResponse::clear_has_receiving_socket_id() {
2290
0
  _has_bits_[0] &= ~0x00000002u;
2291
0
}
2292
0
inline void EchoResponse::clear_receiving_socket_id() {
2293
0
  receiving_socket_id_ = GOOGLE_ULONGLONG(0);
2294
0
  clear_has_receiving_socket_id();
2295
0
}
2296
0
inline ::google::protobuf::uint64 EchoResponse::receiving_socket_id() const {
2297
  // @@protoc_insertion_point(field_get:test.EchoResponse.receiving_socket_id)
2298
0
  return receiving_socket_id_;
2299
0
}
2300
0
inline void EchoResponse::set_receiving_socket_id(::google::protobuf::uint64 value) {
2301
0
  set_has_receiving_socket_id();
2302
0
  receiving_socket_id_ = value;
2303
0
  // @@protoc_insertion_point(field_set:test.EchoResponse.receiving_socket_id)
2304
0
}
2305
2306
// -------------------------------------------------------------------
2307
2308
// ComboRequest
2309
2310
// repeated .test.EchoRequest requests = 1;
2311
0
inline int ComboRequest::requests_size() const {
2312
0
  return requests_.size();
2313
0
}
2314
0
inline void ComboRequest::clear_requests() {
2315
0
  requests_.Clear();
2316
0
}
2317
0
inline ::test::EchoRequest* ComboRequest::mutable_requests(int index) {
2318
0
  // @@protoc_insertion_point(field_mutable:test.ComboRequest.requests)
2319
0
  return requests_.Mutable(index);
2320
0
}
2321
inline ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >*
2322
0
ComboRequest::mutable_requests() {
2323
0
  // @@protoc_insertion_point(field_mutable_list:test.ComboRequest.requests)
2324
0
  return &requests_;
2325
0
}
2326
0
inline const ::test::EchoRequest& ComboRequest::requests(int index) const {
2327
  // @@protoc_insertion_point(field_get:test.ComboRequest.requests)
2328
0
  return requests_.Get(index);
2329
0
}
2330
0
inline ::test::EchoRequest* ComboRequest::add_requests() {
2331
  // @@protoc_insertion_point(field_add:test.ComboRequest.requests)
2332
0
  return requests_.Add();
2333
0
}
2334
inline const ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >&
2335
0
ComboRequest::requests() const {
2336
  // @@protoc_insertion_point(field_list:test.ComboRequest.requests)
2337
0
  return requests_;
2338
0
}
2339
2340
// -------------------------------------------------------------------
2341
2342
// BytesRequest
2343
2344
// required bytes databytes = 1;
2345
0
inline bool BytesRequest::has_databytes() const {
2346
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2347
0
}
2348
0
inline void BytesRequest::set_has_databytes() {
2349
0
  _has_bits_[0] |= 0x00000001u;
2350
0
}
2351
0
inline void BytesRequest::clear_has_databytes() {
2352
0
  _has_bits_[0] &= ~0x00000001u;
2353
0
}
2354
0
inline void BytesRequest::clear_databytes() {
2355
0
  databytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2356
0
  clear_has_databytes();
2357
0
}
2358
0
inline const ::std::string& BytesRequest::databytes() const {
2359
  // @@protoc_insertion_point(field_get:test.BytesRequest.databytes)
2360
0
  return databytes_.GetNoArena();
2361
0
}
2362
0
inline void BytesRequest::set_databytes(const ::std::string& value) {
2363
0
  set_has_databytes();
2364
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2365
0
  // @@protoc_insertion_point(field_set:test.BytesRequest.databytes)
2366
0
}
2367
#if LANG_CXX11
2368
0
inline void BytesRequest::set_databytes(::std::string&& value) {
2369
0
  set_has_databytes();
2370
0
  databytes_.SetNoArena(
2371
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2372
0
  // @@protoc_insertion_point(field_set_rvalue:test.BytesRequest.databytes)
2373
0
}
2374
#endif
2375
0
inline void BytesRequest::set_databytes(const char* value) {
2376
0
  GOOGLE_DCHECK(value != NULL);
2377
0
  set_has_databytes();
2378
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2379
0
  // @@protoc_insertion_point(field_set_char:test.BytesRequest.databytes)
2380
0
}
2381
0
inline void BytesRequest::set_databytes(const void* value, size_t size) {
2382
0
  set_has_databytes();
2383
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2384
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2385
0
  // @@protoc_insertion_point(field_set_pointer:test.BytesRequest.databytes)
2386
0
}
2387
0
inline ::std::string* BytesRequest::mutable_databytes() {
2388
0
  set_has_databytes();
2389
  // @@protoc_insertion_point(field_mutable:test.BytesRequest.databytes)
2390
0
  return databytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2391
0
}
2392
0
inline ::std::string* BytesRequest::release_databytes() {
2393
0
  // @@protoc_insertion_point(field_release:test.BytesRequest.databytes)
2394
0
  if (!has_databytes()) {
2395
0
    return NULL;
2396
0
  }
2397
0
  clear_has_databytes();
2398
0
  return databytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2399
0
}
2400
0
inline void BytesRequest::set_allocated_databytes(::std::string* databytes) {
2401
0
  if (databytes != NULL) {
2402
0
    set_has_databytes();
2403
0
  } else {
2404
0
    clear_has_databytes();
2405
0
  }
2406
0
  databytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databytes);
2407
0
  // @@protoc_insertion_point(field_set_allocated:test.BytesRequest.databytes)
2408
0
}
2409
2410
// -------------------------------------------------------------------
2411
2412
// BytesResponse
2413
2414
// required bytes databytes = 1;
2415
0
inline bool BytesResponse::has_databytes() const {
2416
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2417
0
}
2418
0
inline void BytesResponse::set_has_databytes() {
2419
0
  _has_bits_[0] |= 0x00000001u;
2420
0
}
2421
0
inline void BytesResponse::clear_has_databytes() {
2422
0
  _has_bits_[0] &= ~0x00000001u;
2423
0
}
2424
0
inline void BytesResponse::clear_databytes() {
2425
0
  databytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2426
0
  clear_has_databytes();
2427
0
}
2428
0
inline const ::std::string& BytesResponse::databytes() const {
2429
  // @@protoc_insertion_point(field_get:test.BytesResponse.databytes)
2430
0
  return databytes_.GetNoArena();
2431
0
}
2432
0
inline void BytesResponse::set_databytes(const ::std::string& value) {
2433
0
  set_has_databytes();
2434
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2435
0
  // @@protoc_insertion_point(field_set:test.BytesResponse.databytes)
2436
0
}
2437
#if LANG_CXX11
2438
0
inline void BytesResponse::set_databytes(::std::string&& value) {
2439
0
  set_has_databytes();
2440
0
  databytes_.SetNoArena(
2441
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2442
0
  // @@protoc_insertion_point(field_set_rvalue:test.BytesResponse.databytes)
2443
0
}
2444
#endif
2445
0
inline void BytesResponse::set_databytes(const char* value) {
2446
0
  GOOGLE_DCHECK(value != NULL);
2447
0
  set_has_databytes();
2448
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2449
0
  // @@protoc_insertion_point(field_set_char:test.BytesResponse.databytes)
2450
0
}
2451
0
inline void BytesResponse::set_databytes(const void* value, size_t size) {
2452
0
  set_has_databytes();
2453
0
  databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2454
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2455
0
  // @@protoc_insertion_point(field_set_pointer:test.BytesResponse.databytes)
2456
0
}
2457
0
inline ::std::string* BytesResponse::mutable_databytes() {
2458
0
  set_has_databytes();
2459
  // @@protoc_insertion_point(field_mutable:test.BytesResponse.databytes)
2460
0
  return databytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2461
0
}
2462
0
inline ::std::string* BytesResponse::release_databytes() {
2463
0
  // @@protoc_insertion_point(field_release:test.BytesResponse.databytes)
2464
0
  if (!has_databytes()) {
2465
0
    return NULL;
2466
0
  }
2467
0
  clear_has_databytes();
2468
0
  return databytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2469
0
}
2470
0
inline void BytesResponse::set_allocated_databytes(::std::string* databytes) {
2471
0
  if (databytes != NULL) {
2472
0
    set_has_databytes();
2473
0
  } else {
2474
0
    clear_has_databytes();
2475
0
  }
2476
0
  databytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databytes);
2477
0
  // @@protoc_insertion_point(field_set_allocated:test.BytesResponse.databytes)
2478
0
}
2479
2480
// -------------------------------------------------------------------
2481
2482
// ComboResponse
2483
2484
// repeated .test.EchoResponse responses = 1;
2485
0
inline int ComboResponse::responses_size() const {
2486
0
  return responses_.size();
2487
0
}
2488
0
inline void ComboResponse::clear_responses() {
2489
0
  responses_.Clear();
2490
0
}
2491
0
inline ::test::EchoResponse* ComboResponse::mutable_responses(int index) {
2492
0
  // @@protoc_insertion_point(field_mutable:test.ComboResponse.responses)
2493
0
  return responses_.Mutable(index);
2494
0
}
2495
inline ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >*
2496
0
ComboResponse::mutable_responses() {
2497
0
  // @@protoc_insertion_point(field_mutable_list:test.ComboResponse.responses)
2498
0
  return &responses_;
2499
0
}
2500
0
inline const ::test::EchoResponse& ComboResponse::responses(int index) const {
2501
  // @@protoc_insertion_point(field_get:test.ComboResponse.responses)
2502
0
  return responses_.Get(index);
2503
0
}
2504
0
inline ::test::EchoResponse* ComboResponse::add_responses() {
2505
  // @@protoc_insertion_point(field_add:test.ComboResponse.responses)
2506
0
  return responses_.Add();
2507
0
}
2508
inline const ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >&
2509
0
ComboResponse::responses() const {
2510
  // @@protoc_insertion_point(field_list:test.ComboResponse.responses)
2511
0
  return responses_;
2512
0
}
2513
2514
// -------------------------------------------------------------------
2515
2516
// HttpRequest
2517
2518
// -------------------------------------------------------------------
2519
2520
// HttpResponse
2521
2522
// -------------------------------------------------------------------
2523
2524
// Message1
2525
2526
// required .test.State0 stat = 1;
2527
0
inline bool Message1::has_stat() const {
2528
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2529
0
}
2530
0
inline void Message1::set_has_stat() {
2531
0
  _has_bits_[0] |= 0x00000001u;
2532
0
}
2533
0
inline void Message1::clear_has_stat() {
2534
0
  _has_bits_[0] &= ~0x00000001u;
2535
0
}
2536
0
inline void Message1::clear_stat() {
2537
0
  stat_ = 0;
2538
0
  clear_has_stat();
2539
0
}
2540
0
inline ::test::State0 Message1::stat() const {
2541
  // @@protoc_insertion_point(field_get:test.Message1.stat)
2542
0
  return static_cast< ::test::State0 >(stat_);
2543
0
}
2544
0
inline void Message1::set_stat(::test::State0 value) {
2545
0
  assert(::test::State0_IsValid(value));
2546
0
  set_has_stat();
2547
0
  stat_ = value;
2548
  // @@protoc_insertion_point(field_set:test.Message1.stat)
2549
0
}
2550
2551
// -------------------------------------------------------------------
2552
2553
// Message2
2554
2555
// required .test.State1 stat = 1;
2556
0
inline bool Message2::has_stat() const {
2557
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2558
0
}
2559
0
inline void Message2::set_has_stat() {
2560
0
  _has_bits_[0] |= 0x00000001u;
2561
0
}
2562
0
inline void Message2::clear_has_stat() {
2563
0
  _has_bits_[0] &= ~0x00000001u;
2564
0
}
2565
0
inline void Message2::clear_stat() {
2566
0
  stat_ = 0;
2567
0
  clear_has_stat();
2568
0
}
2569
0
inline ::test::State1 Message2::stat() const {
2570
  // @@protoc_insertion_point(field_get:test.Message2.stat)
2571
0
  return static_cast< ::test::State1 >(stat_);
2572
0
}
2573
0
inline void Message2::set_stat(::test::State1 value) {
2574
0
  assert(::test::State1_IsValid(value));
2575
0
  set_has_stat();
2576
0
  stat_ = value;
2577
  // @@protoc_insertion_point(field_set:test.Message2.stat)
2578
0
}
2579
2580
// -------------------------------------------------------------------
2581
2582
// RecursiveMessage
2583
2584
// optional .test.RecursiveMessage child = 1;
2585
0
inline bool RecursiveMessage::has_child() const {
2586
0
  return (_has_bits_[0] & 0x00000002u) != 0;
2587
0
}
2588
0
inline void RecursiveMessage::set_has_child() {
2589
0
  _has_bits_[0] |= 0x00000002u;
2590
0
}
2591
0
inline void RecursiveMessage::clear_has_child() {
2592
0
  _has_bits_[0] &= ~0x00000002u;
2593
0
}
2594
0
inline void RecursiveMessage::clear_child() {
2595
0
  if (child_ != NULL) child_->Clear();
2596
0
  clear_has_child();
2597
0
}
2598
0
inline const ::test::RecursiveMessage& RecursiveMessage::_internal_child() const {
2599
0
  return *child_;
2600
0
}
2601
0
inline const ::test::RecursiveMessage& RecursiveMessage::child() const {
2602
0
  const ::test::RecursiveMessage* p = child_;
2603
  // @@protoc_insertion_point(field_get:test.RecursiveMessage.child)
2604
0
  return p != NULL ? *p : *reinterpret_cast<const ::test::RecursiveMessage*>(
2605
0
      &::test::_RecursiveMessage_default_instance_);
2606
0
}
2607
0
inline ::test::RecursiveMessage* RecursiveMessage::release_child() {
2608
0
  // @@protoc_insertion_point(field_release:test.RecursiveMessage.child)
2609
0
  clear_has_child();
2610
0
  ::test::RecursiveMessage* temp = child_;
2611
0
  child_ = NULL;
2612
0
  return temp;
2613
0
}
2614
0
inline ::test::RecursiveMessage* RecursiveMessage::mutable_child() {
2615
0
  set_has_child();
2616
0
  if (child_ == NULL) {
2617
0
    auto* p = CreateMaybeMessage<::test::RecursiveMessage>(GetArenaNoVirtual());
2618
0
    child_ = p;
2619
0
  }
2620
  // @@protoc_insertion_point(field_mutable:test.RecursiveMessage.child)
2621
0
  return child_;
2622
0
}
2623
0
inline void RecursiveMessage::set_allocated_child(::test::RecursiveMessage* child) {
2624
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2625
0
  if (message_arena == NULL) {
2626
0
    delete child_;
2627
0
  }
2628
0
  if (child) {
2629
0
    ::google::protobuf::Arena* submessage_arena = NULL;
2630
0
    if (message_arena != submessage_arena) {
2631
0
      child = ::google::protobuf::internal::GetOwnedMessage(
2632
0
          message_arena, child, submessage_arena);
2633
0
    }
2634
0
    set_has_child();
2635
0
  } else {
2636
0
    clear_has_child();
2637
0
  }
2638
0
  child_ = child;
2639
0
  // @@protoc_insertion_point(field_set_allocated:test.RecursiveMessage.child)
2640
0
}
2641
2642
// optional string data = 2;
2643
0
inline bool RecursiveMessage::has_data() const {
2644
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2645
0
}
2646
0
inline void RecursiveMessage::set_has_data() {
2647
0
  _has_bits_[0] |= 0x00000001u;
2648
0
}
2649
0
inline void RecursiveMessage::clear_has_data() {
2650
0
  _has_bits_[0] &= ~0x00000001u;
2651
0
}
2652
0
inline void RecursiveMessage::clear_data() {
2653
0
  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2654
0
  clear_has_data();
2655
0
}
2656
0
inline const ::std::string& RecursiveMessage::data() const {
2657
  // @@protoc_insertion_point(field_get:test.RecursiveMessage.data)
2658
0
  return data_.GetNoArena();
2659
0
}
2660
0
inline void RecursiveMessage::set_data(const ::std::string& value) {
2661
0
  set_has_data();
2662
0
  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2663
0
  // @@protoc_insertion_point(field_set:test.RecursiveMessage.data)
2664
0
}
2665
#if LANG_CXX11
2666
0
inline void RecursiveMessage::set_data(::std::string&& value) {
2667
0
  set_has_data();
2668
0
  data_.SetNoArena(
2669
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2670
0
  // @@protoc_insertion_point(field_set_rvalue:test.RecursiveMessage.data)
2671
0
}
2672
#endif
2673
0
inline void RecursiveMessage::set_data(const char* value) {
2674
0
  GOOGLE_DCHECK(value != NULL);
2675
0
  set_has_data();
2676
0
  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2677
0
  // @@protoc_insertion_point(field_set_char:test.RecursiveMessage.data)
2678
0
}
2679
0
inline void RecursiveMessage::set_data(const char* value, size_t size) {
2680
0
  set_has_data();
2681
0
  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2682
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2683
0
  // @@protoc_insertion_point(field_set_pointer:test.RecursiveMessage.data)
2684
0
}
2685
0
inline ::std::string* RecursiveMessage::mutable_data() {
2686
0
  set_has_data();
2687
  // @@protoc_insertion_point(field_mutable:test.RecursiveMessage.data)
2688
0
  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2689
0
}
2690
0
inline ::std::string* RecursiveMessage::release_data() {
2691
0
  // @@protoc_insertion_point(field_release:test.RecursiveMessage.data)
2692
0
  if (!has_data()) {
2693
0
    return NULL;
2694
0
  }
2695
0
  clear_has_data();
2696
0
  return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2697
0
}
2698
0
inline void RecursiveMessage::set_allocated_data(::std::string* data) {
2699
0
  if (data != NULL) {
2700
0
    set_has_data();
2701
0
  } else {
2702
0
    clear_has_data();
2703
0
  }
2704
0
  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
2705
0
  // @@protoc_insertion_point(field_set_allocated:test.RecursiveMessage.data)
2706
0
}
2707
2708
#ifdef __GNUC__
2709
  #pragma GCC diagnostic pop
2710
#endif  // __GNUC__
2711
// -------------------------------------------------------------------
2712
2713
// -------------------------------------------------------------------
2714
2715
// -------------------------------------------------------------------
2716
2717
// -------------------------------------------------------------------
2718
2719
// -------------------------------------------------------------------
2720
2721
// -------------------------------------------------------------------
2722
2723
// -------------------------------------------------------------------
2724
2725
// -------------------------------------------------------------------
2726
2727
// -------------------------------------------------------------------
2728
2729
// -------------------------------------------------------------------
2730
2731
2732
// @@protoc_insertion_point(namespace_scope)
2733
2734
}  // namespace test
2735
2736
namespace google {
2737
namespace protobuf {
2738
2739
template <> struct is_proto_enum< ::test::State0> : ::std::true_type {};
2740
template <>
2741
0
inline const EnumDescriptor* GetEnumDescriptor< ::test::State0>() {
2742
0
  return ::test::State0_descriptor();
2743
0
}
2744
template <> struct is_proto_enum< ::test::State1> : ::std::true_type {};
2745
template <>
2746
0
inline const EnumDescriptor* GetEnumDescriptor< ::test::State1>() {
2747
0
  return ::test::State1_descriptor();
2748
0
}
2749
2750
}  // namespace protobuf
2751
}  // namespace google
2752
2753
// @@protoc_insertion_point(global_scope)
2754
2755
#endif  // PROTOBUF_INCLUDED_echo_2eproto