Coverage Report

Created: 2026-01-10 07:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/test/v1.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: v1.proto
3
4
#ifndef GOOGLE_PROTOBUF_INCLUDED_v1_2eproto
5
#define GOOGLE_PROTOBUF_INCLUDED_v1_2eproto
6
7
#include <limits>
8
#include <string>
9
10
#include <google/protobuf/port_def.inc>
11
#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23
#include <google/protobuf/io/coded_stream.h>
24
#include <google/protobuf/arena.h>
25
#include <google/protobuf/arenastring.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/metadata_lite.h>
28
#include <google/protobuf/generated_message_reflection.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/service.h>
33
#include <google/protobuf/unknown_field_set.h>
34
// @@protoc_insertion_point(includes)
35
#include <google/protobuf/port_def.inc>
36
#define PROTOBUF_INTERNAL_EXPORT_v1_2eproto
37
PROTOBUF_NAMESPACE_OPEN
38
namespace internal {
39
class AnyMetadata;
40
}  // namespace internal
41
PROTOBUF_NAMESPACE_CLOSE
42
43
// Internal implementation detail -- do not use these members.
44
struct TableStruct_v1_2eproto {
45
  static const uint32_t offsets[];
46
};
47
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_v1_2eproto;
48
namespace v1 {
49
class EchoRequest;
50
struct EchoRequestDefaultTypeInternal;
51
extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_;
52
class EchoResponse;
53
struct EchoResponseDefaultTypeInternal;
54
extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_;
55
}  // namespace v1
56
PROTOBUF_NAMESPACE_OPEN
57
template<> ::v1::EchoRequest* Arena::CreateMaybeMessage<::v1::EchoRequest>(Arena*);
58
template<> ::v1::EchoResponse* Arena::CreateMaybeMessage<::v1::EchoResponse>(Arena*);
59
PROTOBUF_NAMESPACE_CLOSE
60
namespace v1 {
61
62
// ===================================================================
63
64
class EchoRequest final :
65
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.EchoRequest) */ {
66
 public:
67
0
  inline EchoRequest() : EchoRequest(nullptr) {}
68
  ~EchoRequest() override;
69
  explicit PROTOBUF_CONSTEXPR EchoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
70
71
  EchoRequest(const EchoRequest& from);
72
  EchoRequest(EchoRequest&& from) noexcept
73
0
    : EchoRequest() {
74
0
    *this = ::std::move(from);
75
0
  }
76
77
0
  inline EchoRequest& operator=(const EchoRequest& from) {
78
0
    CopyFrom(from);
79
0
    return *this;
80
0
  }
81
0
  inline EchoRequest& operator=(EchoRequest&& from) noexcept {
82
0
    if (this == &from) return *this;
83
0
    if (GetOwningArena() == from.GetOwningArena()
84
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
85
0
        && GetOwningArena() != nullptr
86
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
87
0
    ) {
88
0
      InternalSwap(&from);
89
0
    } else {
90
0
      CopyFrom(from);
91
0
    }
92
0
    return *this;
93
0
  }
94
95
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
96
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
97
0
  }
98
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
99
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
100
0
  }
101
102
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
103
0
    return GetDescriptor();
104
0
  }
105
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
106
0
    return default_instance().GetMetadata().descriptor;
107
0
  }
108
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
109
0
    return default_instance().GetMetadata().reflection;
110
0
  }
111
0
  static const EchoRequest& default_instance() {
112
0
    return *internal_default_instance();
113
0
  }
114
0
  static inline const EchoRequest* internal_default_instance() {
115
0
    return reinterpret_cast<const EchoRequest*>(
116
0
               &_EchoRequest_default_instance_);
117
0
  }
118
  static constexpr int kIndexInFileMessages =
119
    0;
120
121
0
  friend void swap(EchoRequest& a, EchoRequest& b) {
122
0
    a.Swap(&b);
123
0
  }
124
0
  inline void Swap(EchoRequest* other) {
125
0
    if (other == this) return;
126
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
127
0
    if (GetOwningArena() != nullptr &&
128
0
        GetOwningArena() == other->GetOwningArena()) {
129
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
130
0
    if (GetOwningArena() == other->GetOwningArena()) {
131
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
132
0
      InternalSwap(other);
133
0
    } else {
134
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135
0
    }
136
0
  }
137
0
  void UnsafeArenaSwap(EchoRequest* other) {
138
0
    if (other == this) return;
139
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
140
0
    InternalSwap(other);
141
0
  }
142
143
  // implements Message ----------------------------------------------
144
145
0
  EchoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
146
0
    return CreateMaybeMessage<EchoRequest>(arena);
147
0
  }
148
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
149
  void CopyFrom(const EchoRequest& from);
150
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
151
0
  void MergeFrom( const EchoRequest& from) {
152
0
    EchoRequest::MergeImpl(*this, from);
153
0
  }
154
  private:
155
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
156
  public:
157
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
158
  bool IsInitialized() const final;
159
160
  size_t ByteSizeLong() const final;
161
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
162
  uint8_t* _InternalSerialize(
163
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
165
166
  private:
167
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
168
  void SharedDtor();
169
  void SetCachedSize(int size) const final;
170
  void InternalSwap(EchoRequest* other);
171
172
  private:
173
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
174
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
175
0
    return "v1.EchoRequest";
176
0
  }
177
  protected:
178
  explicit EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
179
                       bool is_message_owned = false);
180
  public:
181
182
  static const ClassData _class_data_;
183
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
184
185
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
186
187
  // nested types ----------------------------------------------------
188
189
  // accessors -------------------------------------------------------
190
191
  enum : int {
192
    kMessageFieldNumber = 1,
193
  };
194
  // required string message = 1;
195
  bool has_message() const;
196
  private:
197
  bool _internal_has_message() const;
198
  public:
199
  void clear_message();
200
  const std::string& message() const;
201
  template <typename ArgT0 = const std::string&, typename... ArgT>
202
  void set_message(ArgT0&& arg0, ArgT... args);
203
  std::string* mutable_message();
204
  PROTOBUF_NODISCARD std::string* release_message();
205
  void set_allocated_message(std::string* message);
206
  private:
207
  const std::string& _internal_message() const;
208
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value);
209
  std::string* _internal_mutable_message();
210
  public:
211
212
  // @@protoc_insertion_point(class_scope:v1.EchoRequest)
213
 private:
214
  class _Internal;
215
216
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
217
  typedef void InternalArenaConstructable_;
218
  typedef void DestructorSkippable_;
219
  struct Impl_ {
220
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
221
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
222
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
223
  };
224
  union { Impl_ _impl_; };
225
  friend struct ::TableStruct_v1_2eproto;
226
};
227
// -------------------------------------------------------------------
228
229
class EchoResponse final :
230
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v1.EchoResponse) */ {
231
 public:
232
0
  inline EchoResponse() : EchoResponse(nullptr) {}
233
  ~EchoResponse() override;
234
  explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
235
236
  EchoResponse(const EchoResponse& from);
237
  EchoResponse(EchoResponse&& from) noexcept
238
0
    : EchoResponse() {
239
0
    *this = ::std::move(from);
240
0
  }
241
242
0
  inline EchoResponse& operator=(const EchoResponse& from) {
243
0
    CopyFrom(from);
244
0
    return *this;
245
0
  }
246
0
  inline EchoResponse& operator=(EchoResponse&& from) noexcept {
247
0
    if (this == &from) return *this;
248
0
    if (GetOwningArena() == from.GetOwningArena()
249
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
250
0
        && GetOwningArena() != nullptr
251
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
252
0
    ) {
253
0
      InternalSwap(&from);
254
0
    } else {
255
0
      CopyFrom(from);
256
0
    }
257
0
    return *this;
258
0
  }
259
260
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
261
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
262
0
  }
263
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
264
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
265
0
  }
266
267
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
268
0
    return GetDescriptor();
269
0
  }
270
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
271
0
    return default_instance().GetMetadata().descriptor;
272
0
  }
273
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
274
0
    return default_instance().GetMetadata().reflection;
275
0
  }
276
0
  static const EchoResponse& default_instance() {
277
0
    return *internal_default_instance();
278
0
  }
279
0
  static inline const EchoResponse* internal_default_instance() {
280
0
    return reinterpret_cast<const EchoResponse*>(
281
0
               &_EchoResponse_default_instance_);
282
0
  }
283
  static constexpr int kIndexInFileMessages =
284
    1;
285
286
0
  friend void swap(EchoResponse& a, EchoResponse& b) {
287
0
    a.Swap(&b);
288
0
  }
289
0
  inline void Swap(EchoResponse* other) {
290
0
    if (other == this) return;
291
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
292
0
    if (GetOwningArena() != nullptr &&
293
0
        GetOwningArena() == other->GetOwningArena()) {
294
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
295
0
    if (GetOwningArena() == other->GetOwningArena()) {
296
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
297
0
      InternalSwap(other);
298
0
    } else {
299
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
300
0
    }
301
0
  }
302
0
  void UnsafeArenaSwap(EchoResponse* other) {
303
0
    if (other == this) return;
304
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
305
0
    InternalSwap(other);
306
0
  }
307
308
  // implements Message ----------------------------------------------
309
310
0
  EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
311
0
    return CreateMaybeMessage<EchoResponse>(arena);
312
0
  }
313
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
314
  void CopyFrom(const EchoResponse& from);
315
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
316
0
  void MergeFrom( const EchoResponse& from) {
317
0
    EchoResponse::MergeImpl(*this, from);
318
0
  }
319
  private:
320
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
321
  public:
322
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
323
  bool IsInitialized() const final;
324
325
  size_t ByteSizeLong() const final;
326
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
327
  uint8_t* _InternalSerialize(
328
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
329
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
330
331
  private:
332
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
333
  void SharedDtor();
334
  void SetCachedSize(int size) const final;
335
  void InternalSwap(EchoResponse* other);
336
337
  private:
338
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
339
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
340
0
    return "v1.EchoResponse";
341
0
  }
342
  protected:
343
  explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
344
                       bool is_message_owned = false);
345
  public:
346
347
  static const ClassData _class_data_;
348
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
349
350
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
351
352
  // nested types ----------------------------------------------------
353
354
  // accessors -------------------------------------------------------
355
356
  enum : int {
357
    kMessageFieldNumber = 1,
358
  };
359
  // required string message = 1;
360
  bool has_message() const;
361
  private:
362
  bool _internal_has_message() const;
363
  public:
364
  void clear_message();
365
  const std::string& message() const;
366
  template <typename ArgT0 = const std::string&, typename... ArgT>
367
  void set_message(ArgT0&& arg0, ArgT... args);
368
  std::string* mutable_message();
369
  PROTOBUF_NODISCARD std::string* release_message();
370
  void set_allocated_message(std::string* message);
371
  private:
372
  const std::string& _internal_message() const;
373
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value);
374
  std::string* _internal_mutable_message();
375
  public:
376
377
  // @@protoc_insertion_point(class_scope:v1.EchoResponse)
378
 private:
379
  class _Internal;
380
381
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
382
  typedef void InternalArenaConstructable_;
383
  typedef void DestructorSkippable_;
384
  struct Impl_ {
385
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
386
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
387
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
388
  };
389
  union { Impl_ _impl_; };
390
  friend struct ::TableStruct_v1_2eproto;
391
};
392
// ===================================================================
393
394
class EchoService_Stub;
395
396
class EchoService : public ::PROTOBUF_NAMESPACE_ID::Service {
397
 protected:
398
  // This class should be treated as an abstract interface.
399
0
  inline EchoService() {};
400
 public:
401
  virtual ~EchoService();
402
403
  typedef EchoService_Stub Stub;
404
405
  static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor();
406
407
  virtual void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
408
                       const ::v1::EchoRequest* request,
409
                       ::v1::EchoResponse* response,
410
                       ::google::protobuf::Closure* done);
411
  virtual void Echo2(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
412
                       const ::v1::EchoRequest* request,
413
                       ::v1::EchoResponse* response,
414
                       ::google::protobuf::Closure* done);
415
  virtual void Echo3(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
416
                       const ::v1::EchoRequest* request,
417
                       ::v1::EchoResponse* response,
418
                       ::google::protobuf::Closure* done);
419
  virtual void Echo4(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
420
                       const ::v1::EchoRequest* request,
421
                       ::v1::EchoResponse* response,
422
                       ::google::protobuf::Closure* done);
423
  virtual void Echo5(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
424
                       const ::v1::EchoRequest* request,
425
                       ::v1::EchoResponse* response,
426
                       ::google::protobuf::Closure* done);
427
428
  // implements Service ----------------------------------------------
429
430
  const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor();
431
  void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
432
                  ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
433
                  const ::PROTOBUF_NAMESPACE_ID::Message* request,
434
                  ::PROTOBUF_NAMESPACE_ID::Message* response,
435
                  ::google::protobuf::Closure* done);
436
  const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype(
437
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const;
438
  const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype(
439
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const;
440
441
 private:
442
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService);
443
};
444
445
class EchoService_Stub : public EchoService {
446
 public:
447
  EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel);
448
  EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
449
                   ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership);
450
  ~EchoService_Stub();
451
452
0
  inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; }
453
454
  // implements EchoService ------------------------------------------
455
456
  void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
457
                       const ::v1::EchoRequest* request,
458
                       ::v1::EchoResponse* response,
459
                       ::google::protobuf::Closure* done);
460
  void Echo2(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
461
                       const ::v1::EchoRequest* request,
462
                       ::v1::EchoResponse* response,
463
                       ::google::protobuf::Closure* done);
464
  void Echo3(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
465
                       const ::v1::EchoRequest* request,
466
                       ::v1::EchoResponse* response,
467
                       ::google::protobuf::Closure* done);
468
  void Echo4(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
469
                       const ::v1::EchoRequest* request,
470
                       ::v1::EchoResponse* response,
471
                       ::google::protobuf::Closure* done);
472
  void Echo5(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
473
                       const ::v1::EchoRequest* request,
474
                       ::v1::EchoResponse* response,
475
                       ::google::protobuf::Closure* done);
476
 private:
477
  ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_;
478
  bool owns_channel_;
479
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub);
480
};
481
482
483
// ===================================================================
484
485
486
// ===================================================================
487
488
#ifdef __GNUC__
489
  #pragma GCC diagnostic push
490
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
491
#endif  // __GNUC__
492
// EchoRequest
493
494
// required string message = 1;
495
0
inline bool EchoRequest::_internal_has_message() const {
496
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
497
0
  return value;
498
0
}
499
0
inline bool EchoRequest::has_message() const {
500
0
  return _internal_has_message();
501
0
}
502
0
inline void EchoRequest::clear_message() {
503
0
  _impl_.message_.ClearToEmpty();
504
0
  _impl_._has_bits_[0] &= ~0x00000001u;
505
0
}
506
0
inline const std::string& EchoRequest::message() const {
507
0
  // @@protoc_insertion_point(field_get:v1.EchoRequest.message)
508
0
  return _internal_message();
509
0
}
510
template <typename ArgT0, typename... ArgT>
511
inline PROTOBUF_ALWAYS_INLINE
512
void EchoRequest::set_message(ArgT0&& arg0, ArgT... args) {
513
 _impl_._has_bits_[0] |= 0x00000001u;
514
 _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
515
  // @@protoc_insertion_point(field_set:v1.EchoRequest.message)
516
}
517
0
inline std::string* EchoRequest::mutable_message() {
518
0
  std::string* _s = _internal_mutable_message();
519
0
  // @@protoc_insertion_point(field_mutable:v1.EchoRequest.message)
520
0
  return _s;
521
0
}
522
0
inline const std::string& EchoRequest::_internal_message() const {
523
0
  return _impl_.message_.Get();
524
0
}
525
0
inline void EchoRequest::_internal_set_message(const std::string& value) {
526
0
  _impl_._has_bits_[0] |= 0x00000001u;
527
0
  _impl_.message_.Set(value, GetArenaForAllocation());
528
0
}
529
0
inline std::string* EchoRequest::_internal_mutable_message() {
530
0
  _impl_._has_bits_[0] |= 0x00000001u;
531
0
  return _impl_.message_.Mutable(GetArenaForAllocation());
532
0
}
533
0
inline std::string* EchoRequest::release_message() {
534
0
  // @@protoc_insertion_point(field_release:v1.EchoRequest.message)
535
0
  if (!_internal_has_message()) {
536
0
    return nullptr;
537
0
  }
538
0
  _impl_._has_bits_[0] &= ~0x00000001u;
539
0
  auto* p = _impl_.message_.Release();
540
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
541
0
  if (_impl_.message_.IsDefault()) {
542
0
    _impl_.message_.Set("", GetArenaForAllocation());
543
0
  }
544
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
545
0
  return p;
546
0
}
547
0
inline void EchoRequest::set_allocated_message(std::string* message) {
548
0
  if (message != nullptr) {
549
0
    _impl_._has_bits_[0] |= 0x00000001u;
550
0
  } else {
551
0
    _impl_._has_bits_[0] &= ~0x00000001u;
552
0
  }
553
0
  _impl_.message_.SetAllocated(message, GetArenaForAllocation());
554
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
555
0
  if (_impl_.message_.IsDefault()) {
556
0
    _impl_.message_.Set("", GetArenaForAllocation());
557
0
  }
558
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
559
0
  // @@protoc_insertion_point(field_set_allocated:v1.EchoRequest.message)
560
0
}
561
562
// -------------------------------------------------------------------
563
564
// EchoResponse
565
566
// required string message = 1;
567
0
inline bool EchoResponse::_internal_has_message() const {
568
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
569
0
  return value;
570
0
}
571
0
inline bool EchoResponse::has_message() const {
572
0
  return _internal_has_message();
573
0
}
574
0
inline void EchoResponse::clear_message() {
575
0
  _impl_.message_.ClearToEmpty();
576
0
  _impl_._has_bits_[0] &= ~0x00000001u;
577
0
}
578
0
inline const std::string& EchoResponse::message() const {
579
0
  // @@protoc_insertion_point(field_get:v1.EchoResponse.message)
580
0
  return _internal_message();
581
0
}
582
template <typename ArgT0, typename... ArgT>
583
inline PROTOBUF_ALWAYS_INLINE
584
void EchoResponse::set_message(ArgT0&& arg0, ArgT... args) {
585
 _impl_._has_bits_[0] |= 0x00000001u;
586
 _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
587
  // @@protoc_insertion_point(field_set:v1.EchoResponse.message)
588
}
589
0
inline std::string* EchoResponse::mutable_message() {
590
0
  std::string* _s = _internal_mutable_message();
591
0
  // @@protoc_insertion_point(field_mutable:v1.EchoResponse.message)
592
0
  return _s;
593
0
}
594
0
inline const std::string& EchoResponse::_internal_message() const {
595
0
  return _impl_.message_.Get();
596
0
}
597
0
inline void EchoResponse::_internal_set_message(const std::string& value) {
598
0
  _impl_._has_bits_[0] |= 0x00000001u;
599
0
  _impl_.message_.Set(value, GetArenaForAllocation());
600
0
}
601
0
inline std::string* EchoResponse::_internal_mutable_message() {
602
0
  _impl_._has_bits_[0] |= 0x00000001u;
603
0
  return _impl_.message_.Mutable(GetArenaForAllocation());
604
0
}
605
0
inline std::string* EchoResponse::release_message() {
606
0
  // @@protoc_insertion_point(field_release:v1.EchoResponse.message)
607
0
  if (!_internal_has_message()) {
608
0
    return nullptr;
609
0
  }
610
0
  _impl_._has_bits_[0] &= ~0x00000001u;
611
0
  auto* p = _impl_.message_.Release();
612
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
613
0
  if (_impl_.message_.IsDefault()) {
614
0
    _impl_.message_.Set("", GetArenaForAllocation());
615
0
  }
616
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
617
0
  return p;
618
0
}
619
0
inline void EchoResponse::set_allocated_message(std::string* message) {
620
0
  if (message != nullptr) {
621
0
    _impl_._has_bits_[0] |= 0x00000001u;
622
0
  } else {
623
0
    _impl_._has_bits_[0] &= ~0x00000001u;
624
0
  }
625
0
  _impl_.message_.SetAllocated(message, GetArenaForAllocation());
626
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
627
0
  if (_impl_.message_.IsDefault()) {
628
0
    _impl_.message_.Set("", GetArenaForAllocation());
629
0
  }
630
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
631
0
  // @@protoc_insertion_point(field_set_allocated:v1.EchoResponse.message)
632
0
}
633
634
#ifdef __GNUC__
635
  #pragma GCC diagnostic pop
636
#endif  // __GNUC__
637
// -------------------------------------------------------------------
638
639
640
// @@protoc_insertion_point(namespace_scope)
641
642
}  // namespace v1
643
644
// @@protoc_insertion_point(global_scope)
645
646
#include <google/protobuf/port_undef.inc>
647
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_v1_2eproto