Coverage Report

Created: 2026-01-09 06:11

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/test/v2.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: v2.proto
3
4
#ifndef GOOGLE_PROTOBUF_INCLUDED_v2_2eproto
5
#define GOOGLE_PROTOBUF_INCLUDED_v2_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_v2_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_v2_2eproto {
45
  static const uint32_t offsets[];
46
};
47
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_v2_2eproto;
48
namespace v2 {
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 v2
56
PROTOBUF_NAMESPACE_OPEN
57
template<> ::v2::EchoRequest* Arena::CreateMaybeMessage<::v2::EchoRequest>(Arena*);
58
template<> ::v2::EchoResponse* Arena::CreateMaybeMessage<::v2::EchoResponse>(Arena*);
59
PROTOBUF_NAMESPACE_CLOSE
60
namespace v2 {
61
62
// ===================================================================
63
64
class EchoRequest final :
65
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v2.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 "v2.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
    kValueFieldNumber = 1,
193
  };
194
  // required int32 value = 1;
195
  bool has_value() const;
196
  private:
197
  bool _internal_has_value() const;
198
  public:
199
  void clear_value();
200
  int32_t value() const;
201
  void set_value(int32_t value);
202
  private:
203
  int32_t _internal_value() const;
204
  void _internal_set_value(int32_t value);
205
  public:
206
207
  // @@protoc_insertion_point(class_scope:v2.EchoRequest)
208
 private:
209
  class _Internal;
210
211
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
212
  typedef void InternalArenaConstructable_;
213
  typedef void DestructorSkippable_;
214
  struct Impl_ {
215
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
216
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
217
    int32_t value_;
218
  };
219
  union { Impl_ _impl_; };
220
  friend struct ::TableStruct_v2_2eproto;
221
};
222
// -------------------------------------------------------------------
223
224
class EchoResponse final :
225
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v2.EchoResponse) */ {
226
 public:
227
0
  inline EchoResponse() : EchoResponse(nullptr) {}
228
  ~EchoResponse() override;
229
  explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
230
231
  EchoResponse(const EchoResponse& from);
232
  EchoResponse(EchoResponse&& from) noexcept
233
0
    : EchoResponse() {
234
0
    *this = ::std::move(from);
235
0
  }
236
237
0
  inline EchoResponse& operator=(const EchoResponse& from) {
238
0
    CopyFrom(from);
239
0
    return *this;
240
0
  }
241
0
  inline EchoResponse& operator=(EchoResponse&& from) noexcept {
242
0
    if (this == &from) return *this;
243
0
    if (GetOwningArena() == from.GetOwningArena()
244
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
245
0
        && GetOwningArena() != nullptr
246
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
247
0
    ) {
248
0
      InternalSwap(&from);
249
0
    } else {
250
0
      CopyFrom(from);
251
0
    }
252
0
    return *this;
253
0
  }
254
255
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
256
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
257
0
  }
258
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
259
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
260
0
  }
261
262
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
263
0
    return GetDescriptor();
264
0
  }
265
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
266
0
    return default_instance().GetMetadata().descriptor;
267
0
  }
268
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
269
0
    return default_instance().GetMetadata().reflection;
270
0
  }
271
0
  static const EchoResponse& default_instance() {
272
0
    return *internal_default_instance();
273
0
  }
274
0
  static inline const EchoResponse* internal_default_instance() {
275
0
    return reinterpret_cast<const EchoResponse*>(
276
0
               &_EchoResponse_default_instance_);
277
0
  }
278
  static constexpr int kIndexInFileMessages =
279
    1;
280
281
0
  friend void swap(EchoResponse& a, EchoResponse& b) {
282
0
    a.Swap(&b);
283
0
  }
284
0
  inline void Swap(EchoResponse* other) {
285
0
    if (other == this) return;
286
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
287
0
    if (GetOwningArena() != nullptr &&
288
0
        GetOwningArena() == other->GetOwningArena()) {
289
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
290
0
    if (GetOwningArena() == other->GetOwningArena()) {
291
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
292
0
      InternalSwap(other);
293
0
    } else {
294
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
295
0
    }
296
0
  }
297
0
  void UnsafeArenaSwap(EchoResponse* other) {
298
0
    if (other == this) return;
299
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
300
0
    InternalSwap(other);
301
0
  }
302
303
  // implements Message ----------------------------------------------
304
305
0
  EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
306
0
    return CreateMaybeMessage<EchoResponse>(arena);
307
0
  }
308
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
309
  void CopyFrom(const EchoResponse& from);
310
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
311
0
  void MergeFrom( const EchoResponse& from) {
312
0
    EchoResponse::MergeImpl(*this, from);
313
0
  }
314
  private:
315
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
316
  public:
317
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
318
  bool IsInitialized() const final;
319
320
  size_t ByteSizeLong() const final;
321
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
322
  uint8_t* _InternalSerialize(
323
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
324
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
325
326
  private:
327
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
328
  void SharedDtor();
329
  void SetCachedSize(int size) const final;
330
  void InternalSwap(EchoResponse* other);
331
332
  private:
333
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
334
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
335
0
    return "v2.EchoResponse";
336
0
  }
337
  protected:
338
  explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
339
                       bool is_message_owned = false);
340
  public:
341
342
  static const ClassData _class_data_;
343
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
344
345
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
346
347
  // nested types ----------------------------------------------------
348
349
  // accessors -------------------------------------------------------
350
351
  enum : int {
352
    kValueFieldNumber = 1,
353
  };
354
  // required int32 value = 1;
355
  bool has_value() const;
356
  private:
357
  bool _internal_has_value() const;
358
  public:
359
  void clear_value();
360
  int32_t value() const;
361
  void set_value(int32_t value);
362
  private:
363
  int32_t _internal_value() const;
364
  void _internal_set_value(int32_t value);
365
  public:
366
367
  // @@protoc_insertion_point(class_scope:v2.EchoResponse)
368
 private:
369
  class _Internal;
370
371
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
372
  typedef void InternalArenaConstructable_;
373
  typedef void DestructorSkippable_;
374
  struct Impl_ {
375
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
376
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
377
    int32_t value_;
378
  };
379
  union { Impl_ _impl_; };
380
  friend struct ::TableStruct_v2_2eproto;
381
};
382
// ===================================================================
383
384
class EchoService_Stub;
385
386
class EchoService : public ::PROTOBUF_NAMESPACE_ID::Service {
387
 protected:
388
  // This class should be treated as an abstract interface.
389
0
  inline EchoService() {};
390
 public:
391
  virtual ~EchoService();
392
393
  typedef EchoService_Stub Stub;
394
395
  static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor();
396
397
  virtual void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
398
                       const ::v2::EchoRequest* request,
399
                       ::v2::EchoResponse* response,
400
                       ::google::protobuf::Closure* done);
401
402
  // implements Service ----------------------------------------------
403
404
  const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor();
405
  void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method,
406
                  ::PROTOBUF_NAMESPACE_ID::RpcController* controller,
407
                  const ::PROTOBUF_NAMESPACE_ID::Message* request,
408
                  ::PROTOBUF_NAMESPACE_ID::Message* response,
409
                  ::google::protobuf::Closure* done);
410
  const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype(
411
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const;
412
  const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype(
413
    const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const;
414
415
 private:
416
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService);
417
};
418
419
class EchoService_Stub : public EchoService {
420
 public:
421
  EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel);
422
  EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel,
423
                   ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership);
424
  ~EchoService_Stub();
425
426
0
  inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; }
427
428
  // implements EchoService ------------------------------------------
429
430
  void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller,
431
                       const ::v2::EchoRequest* request,
432
                       ::v2::EchoResponse* response,
433
                       ::google::protobuf::Closure* done);
434
 private:
435
  ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_;
436
  bool owns_channel_;
437
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub);
438
};
439
440
441
// ===================================================================
442
443
444
// ===================================================================
445
446
#ifdef __GNUC__
447
  #pragma GCC diagnostic push
448
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
449
#endif  // __GNUC__
450
// EchoRequest
451
452
// required int32 value = 1;
453
0
inline bool EchoRequest::_internal_has_value() const {
454
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
455
0
  return value;
456
0
}
457
0
inline bool EchoRequest::has_value() const {
458
0
  return _internal_has_value();
459
0
}
460
0
inline void EchoRequest::clear_value() {
461
0
  _impl_.value_ = 0;
462
0
  _impl_._has_bits_[0] &= ~0x00000001u;
463
0
}
464
0
inline int32_t EchoRequest::_internal_value() const {
465
0
  return _impl_.value_;
466
0
}
467
0
inline int32_t EchoRequest::value() const {
468
0
  // @@protoc_insertion_point(field_get:v2.EchoRequest.value)
469
0
  return _internal_value();
470
0
}
471
0
inline void EchoRequest::_internal_set_value(int32_t value) {
472
0
  _impl_._has_bits_[0] |= 0x00000001u;
473
0
  _impl_.value_ = value;
474
0
}
475
0
inline void EchoRequest::set_value(int32_t value) {
476
0
  _internal_set_value(value);
477
0
  // @@protoc_insertion_point(field_set:v2.EchoRequest.value)
478
0
}
479
480
// -------------------------------------------------------------------
481
482
// EchoResponse
483
484
// required int32 value = 1;
485
0
inline bool EchoResponse::_internal_has_value() const {
486
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
487
0
  return value;
488
0
}
489
0
inline bool EchoResponse::has_value() const {
490
0
  return _internal_has_value();
491
0
}
492
0
inline void EchoResponse::clear_value() {
493
0
  _impl_.value_ = 0;
494
0
  _impl_._has_bits_[0] &= ~0x00000001u;
495
0
}
496
0
inline int32_t EchoResponse::_internal_value() const {
497
0
  return _impl_.value_;
498
0
}
499
0
inline int32_t EchoResponse::value() const {
500
0
  // @@protoc_insertion_point(field_get:v2.EchoResponse.value)
501
0
  return _internal_value();
502
0
}
503
0
inline void EchoResponse::_internal_set_value(int32_t value) {
504
0
  _impl_._has_bits_[0] |= 0x00000001u;
505
0
  _impl_.value_ = value;
506
0
}
507
0
inline void EchoResponse::set_value(int32_t value) {
508
0
  _internal_set_value(value);
509
0
  // @@protoc_insertion_point(field_set:v2.EchoResponse.value)
510
0
}
511
512
#ifdef __GNUC__
513
  #pragma GCC diagnostic pop
514
#endif  // __GNUC__
515
// -------------------------------------------------------------------
516
517
518
// @@protoc_insertion_point(namespace_scope)
519
520
}  // namespace v2
521
522
// @@protoc_insertion_point(global_scope)
523
524
#include <google/protobuf/port_undef.inc>
525
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_v2_2eproto