Coverage Report

Created: 2025-11-01 07:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/brpc/grpc_health_check.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/grpc_health_check.proto
3
4
#ifndef PROTOBUF_INCLUDED_brpc_2fgrpc_5fhealth_5fcheck_2eproto
5
#define PROTOBUF_INCLUDED_brpc_2fgrpc_5fhealth_5fcheck_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
// @@protoc_insertion_point(includes)
36
#define PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fgrpc_5fhealth_5fcheck_2eproto 
37
38
namespace protobuf_brpc_2fgrpc_5fhealth_5fcheck_2eproto {
39
// Internal implementation detail -- do not use these members.
40
struct TableStruct {
41
  static const ::google::protobuf::internal::ParseTableField entries[];
42
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43
  static const ::google::protobuf::internal::ParseTable schema[2];
44
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46
  static const ::google::protobuf::uint32 offsets[];
47
};
48
void AddDescriptors();
49
}  // namespace protobuf_brpc_2fgrpc_5fhealth_5fcheck_2eproto
50
namespace grpc {
51
namespace health {
52
namespace v1 {
53
class HealthCheckRequest;
54
class HealthCheckRequestDefaultTypeInternal;
55
extern HealthCheckRequestDefaultTypeInternal _HealthCheckRequest_default_instance_;
56
class HealthCheckResponse;
57
class HealthCheckResponseDefaultTypeInternal;
58
extern HealthCheckResponseDefaultTypeInternal _HealthCheckResponse_default_instance_;
59
}  // namespace v1
60
}  // namespace health
61
}  // namespace grpc
62
namespace google {
63
namespace protobuf {
64
template<> ::grpc::health::v1::HealthCheckRequest* Arena::CreateMaybeMessage<::grpc::health::v1::HealthCheckRequest>(Arena*);
65
template<> ::grpc::health::v1::HealthCheckResponse* Arena::CreateMaybeMessage<::grpc::health::v1::HealthCheckResponse>(Arena*);
66
}  // namespace protobuf
67
}  // namespace google
68
namespace grpc {
69
namespace health {
70
namespace v1 {
71
72
enum HealthCheckResponse_ServingStatus {
73
  HealthCheckResponse_ServingStatus_UNKNOWN = 0,
74
  HealthCheckResponse_ServingStatus_SERVING = 1,
75
  HealthCheckResponse_ServingStatus_NOT_SERVING = 2,
76
  HealthCheckResponse_ServingStatus_SERVICE_UNKNOWN = 3
77
};
78
bool HealthCheckResponse_ServingStatus_IsValid(int value);
79
const HealthCheckResponse_ServingStatus HealthCheckResponse_ServingStatus_ServingStatus_MIN = HealthCheckResponse_ServingStatus_UNKNOWN;
80
const HealthCheckResponse_ServingStatus HealthCheckResponse_ServingStatus_ServingStatus_MAX = HealthCheckResponse_ServingStatus_SERVICE_UNKNOWN;
81
const int HealthCheckResponse_ServingStatus_ServingStatus_ARRAYSIZE = HealthCheckResponse_ServingStatus_ServingStatus_MAX + 1;
82
83
const ::google::protobuf::EnumDescriptor* HealthCheckResponse_ServingStatus_descriptor();
84
0
inline const ::std::string& HealthCheckResponse_ServingStatus_Name(HealthCheckResponse_ServingStatus value) {
85
0
  return ::google::protobuf::internal::NameOfEnum(
86
0
    HealthCheckResponse_ServingStatus_descriptor(), value);
87
0
}
88
inline bool HealthCheckResponse_ServingStatus_Parse(
89
0
    const ::std::string& name, HealthCheckResponse_ServingStatus* value) {
90
0
  return ::google::protobuf::internal::ParseNamedEnum<HealthCheckResponse_ServingStatus>(
91
0
    HealthCheckResponse_ServingStatus_descriptor(), name, value);
92
0
}
93
// ===================================================================
94
95
class HealthCheckRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.health.v1.HealthCheckRequest) */ {
96
 public:
97
  HealthCheckRequest();
98
  virtual ~HealthCheckRequest();
99
100
  HealthCheckRequest(const HealthCheckRequest& from);
101
102
0
  inline HealthCheckRequest& operator=(const HealthCheckRequest& from) {
103
0
    CopyFrom(from);
104
0
    return *this;
105
0
  }
106
  #if LANG_CXX11
107
  HealthCheckRequest(HealthCheckRequest&& from) noexcept
108
0
    : HealthCheckRequest() {
109
0
    *this = ::std::move(from);
110
0
  }
111
112
0
  inline HealthCheckRequest& operator=(HealthCheckRequest&& from) noexcept {
113
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114
0
      if (this != &from) InternalSwap(&from);
115
0
    } else {
116
0
      CopyFrom(from);
117
0
    }
118
0
    return *this;
119
0
  }
120
  #endif
121
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
122
0
    return _internal_metadata_.unknown_fields();
123
0
  }
124
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
125
0
    return _internal_metadata_.mutable_unknown_fields();
126
0
  }
127
128
  static const ::google::protobuf::Descriptor* descriptor();
129
  static const HealthCheckRequest& default_instance();
130
131
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
132
0
  static inline const HealthCheckRequest* internal_default_instance() {
133
0
    return reinterpret_cast<const HealthCheckRequest*>(
134
0
               &_HealthCheckRequest_default_instance_);
135
0
  }
136
  static constexpr int kIndexInFileMessages =
137
    0;
138
139
  void Swap(HealthCheckRequest* other);
140
0
  friend void swap(HealthCheckRequest& a, HealthCheckRequest& b) {
141
0
    a.Swap(&b);
142
0
  }
143
144
  // implements Message ----------------------------------------------
145
146
0
  inline HealthCheckRequest* New() const final {
147
0
    return CreateMaybeMessage<HealthCheckRequest>(NULL);
148
0
  }
149
150
0
  HealthCheckRequest* New(::google::protobuf::Arena* arena) const final {
151
0
    return CreateMaybeMessage<HealthCheckRequest>(arena);
152
0
  }
153
  void CopyFrom(const ::google::protobuf::Message& from) final;
154
  void MergeFrom(const ::google::protobuf::Message& from) final;
155
  void CopyFrom(const HealthCheckRequest& from);
156
  void MergeFrom(const HealthCheckRequest& from);
157
  void Clear() final;
158
  bool IsInitialized() const final;
159
160
  size_t ByteSizeLong() const final;
161
  bool MergePartialFromCodedStream(
162
      ::google::protobuf::io::CodedInputStream* input) final;
163
  void SerializeWithCachedSizes(
164
      ::google::protobuf::io::CodedOutputStream* output) const final;
165
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
166
      bool deterministic, ::google::protobuf::uint8* target) const final;
167
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
168
169
  private:
170
  void SharedCtor();
171
  void SharedDtor();
172
  void SetCachedSize(int size) const final;
173
  void InternalSwap(HealthCheckRequest* other);
174
  private:
175
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
176
0
    return NULL;
177
0
  }
178
0
  inline void* MaybeArenaPtr() const {
179
0
    return NULL;
180
0
  }
181
  public:
182
183
  ::google::protobuf::Metadata GetMetadata() const final;
184
185
  // nested types ----------------------------------------------------
186
187
  // accessors -------------------------------------------------------
188
189
  // optional string service = 1;
190
  bool has_service() const;
191
  void clear_service();
192
  static const int kServiceFieldNumber = 1;
193
  const ::std::string& service() const;
194
  void set_service(const ::std::string& value);
195
  #if LANG_CXX11
196
  void set_service(::std::string&& value);
197
  #endif
198
  void set_service(const char* value);
199
  void set_service(const char* value, size_t size);
200
  ::std::string* mutable_service();
201
  ::std::string* release_service();
202
  void set_allocated_service(::std::string* service);
203
204
  // @@protoc_insertion_point(class_scope:grpc.health.v1.HealthCheckRequest)
205
 private:
206
  void set_has_service();
207
  void clear_has_service();
208
209
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
210
  ::google::protobuf::internal::HasBits<1> _has_bits_;
211
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
212
  ::google::protobuf::internal::ArenaStringPtr service_;
213
  friend struct ::protobuf_brpc_2fgrpc_5fhealth_5fcheck_2eproto::TableStruct;
214
};
215
// -------------------------------------------------------------------
216
217
class HealthCheckResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.health.v1.HealthCheckResponse) */ {
218
 public:
219
  HealthCheckResponse();
220
  virtual ~HealthCheckResponse();
221
222
  HealthCheckResponse(const HealthCheckResponse& from);
223
224
0
  inline HealthCheckResponse& operator=(const HealthCheckResponse& from) {
225
0
    CopyFrom(from);
226
0
    return *this;
227
0
  }
228
  #if LANG_CXX11
229
  HealthCheckResponse(HealthCheckResponse&& from) noexcept
230
0
    : HealthCheckResponse() {
231
0
    *this = ::std::move(from);
232
0
  }
233
234
0
  inline HealthCheckResponse& operator=(HealthCheckResponse&& from) noexcept {
235
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
236
0
      if (this != &from) InternalSwap(&from);
237
0
    } else {
238
0
      CopyFrom(from);
239
0
    }
240
0
    return *this;
241
0
  }
242
  #endif
243
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
244
0
    return _internal_metadata_.unknown_fields();
245
0
  }
246
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
247
0
    return _internal_metadata_.mutable_unknown_fields();
248
0
  }
249
250
  static const ::google::protobuf::Descriptor* descriptor();
251
  static const HealthCheckResponse& default_instance();
252
253
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
254
0
  static inline const HealthCheckResponse* internal_default_instance() {
255
0
    return reinterpret_cast<const HealthCheckResponse*>(
256
0
               &_HealthCheckResponse_default_instance_);
257
0
  }
258
  static constexpr int kIndexInFileMessages =
259
    1;
260
261
  void Swap(HealthCheckResponse* other);
262
0
  friend void swap(HealthCheckResponse& a, HealthCheckResponse& b) {
263
0
    a.Swap(&b);
264
0
  }
265
266
  // implements Message ----------------------------------------------
267
268
0
  inline HealthCheckResponse* New() const final {
269
0
    return CreateMaybeMessage<HealthCheckResponse>(NULL);
270
0
  }
271
272
0
  HealthCheckResponse* New(::google::protobuf::Arena* arena) const final {
273
0
    return CreateMaybeMessage<HealthCheckResponse>(arena);
274
0
  }
275
  void CopyFrom(const ::google::protobuf::Message& from) final;
276
  void MergeFrom(const ::google::protobuf::Message& from) final;
277
  void CopyFrom(const HealthCheckResponse& from);
278
  void MergeFrom(const HealthCheckResponse& from);
279
  void Clear() final;
280
  bool IsInitialized() const final;
281
282
  size_t ByteSizeLong() const final;
283
  bool MergePartialFromCodedStream(
284
      ::google::protobuf::io::CodedInputStream* input) final;
285
  void SerializeWithCachedSizes(
286
      ::google::protobuf::io::CodedOutputStream* output) const final;
287
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
288
      bool deterministic, ::google::protobuf::uint8* target) const final;
289
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
290
291
  private:
292
  void SharedCtor();
293
  void SharedDtor();
294
  void SetCachedSize(int size) const final;
295
  void InternalSwap(HealthCheckResponse* other);
296
  private:
297
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
298
0
    return NULL;
299
0
  }
300
0
  inline void* MaybeArenaPtr() const {
301
0
    return NULL;
302
0
  }
303
  public:
304
305
  ::google::protobuf::Metadata GetMetadata() const final;
306
307
  // nested types ----------------------------------------------------
308
309
  typedef HealthCheckResponse_ServingStatus ServingStatus;
310
  static const ServingStatus UNKNOWN =
311
    HealthCheckResponse_ServingStatus_UNKNOWN;
312
  static const ServingStatus SERVING =
313
    HealthCheckResponse_ServingStatus_SERVING;
314
  static const ServingStatus NOT_SERVING =
315
    HealthCheckResponse_ServingStatus_NOT_SERVING;
316
  static const ServingStatus SERVICE_UNKNOWN =
317
    HealthCheckResponse_ServingStatus_SERVICE_UNKNOWN;
318
0
  static inline bool ServingStatus_IsValid(int value) {
319
0
    return HealthCheckResponse_ServingStatus_IsValid(value);
320
0
  }
321
  static const ServingStatus ServingStatus_MIN =
322
    HealthCheckResponse_ServingStatus_ServingStatus_MIN;
323
  static const ServingStatus ServingStatus_MAX =
324
    HealthCheckResponse_ServingStatus_ServingStatus_MAX;
325
  static const int ServingStatus_ARRAYSIZE =
326
    HealthCheckResponse_ServingStatus_ServingStatus_ARRAYSIZE;
327
  static inline const ::google::protobuf::EnumDescriptor*
328
0
  ServingStatus_descriptor() {
329
0
    return HealthCheckResponse_ServingStatus_descriptor();
330
0
  }
331
0
  static inline const ::std::string& ServingStatus_Name(ServingStatus value) {
332
0
    return HealthCheckResponse_ServingStatus_Name(value);
333
0
  }
334
  static inline bool ServingStatus_Parse(const ::std::string& name,
335
0
      ServingStatus* value) {
336
0
    return HealthCheckResponse_ServingStatus_Parse(name, value);
337
0
  }
338
339
  // accessors -------------------------------------------------------
340
341
  // optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;
342
  bool has_status() const;
343
  void clear_status();
344
  static const int kStatusFieldNumber = 1;
345
  ::grpc::health::v1::HealthCheckResponse_ServingStatus status() const;
346
  void set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value);
347
348
  // @@protoc_insertion_point(class_scope:grpc.health.v1.HealthCheckResponse)
349
 private:
350
  void set_has_status();
351
  void clear_has_status();
352
353
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
354
  ::google::protobuf::internal::HasBits<1> _has_bits_;
355
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
356
  int status_;
357
  friend struct ::protobuf_brpc_2fgrpc_5fhealth_5fcheck_2eproto::TableStruct;
358
};
359
// ===================================================================
360
361
class Health_Stub;
362
363
class Health : public ::google::protobuf::Service {
364
 protected:
365
  // This class should be treated as an abstract interface.
366
0
  inline Health() {};
367
 public:
368
  virtual ~Health();
369
370
  typedef Health_Stub Stub;
371
372
  static const ::google::protobuf::ServiceDescriptor* descriptor();
373
374
  virtual void Check(::google::protobuf::RpcController* controller,
375
                       const ::grpc::health::v1::HealthCheckRequest* request,
376
                       ::grpc::health::v1::HealthCheckResponse* response,
377
                       ::google::protobuf::Closure* done);
378
  virtual void Watch(::google::protobuf::RpcController* controller,
379
                       const ::grpc::health::v1::HealthCheckRequest* request,
380
                       ::grpc::health::v1::HealthCheckResponse* response,
381
                       ::google::protobuf::Closure* done);
382
383
  // implements Service ----------------------------------------------
384
385
  const ::google::protobuf::ServiceDescriptor* GetDescriptor();
386
  void CallMethod(const ::google::protobuf::MethodDescriptor* method,
387
                  ::google::protobuf::RpcController* controller,
388
                  const ::google::protobuf::Message* request,
389
                  ::google::protobuf::Message* response,
390
                  ::google::protobuf::Closure* done);
391
  const ::google::protobuf::Message& GetRequestPrototype(
392
    const ::google::protobuf::MethodDescriptor* method) const;
393
  const ::google::protobuf::Message& GetResponsePrototype(
394
    const ::google::protobuf::MethodDescriptor* method) const;
395
396
 private:
397
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Health);
398
};
399
400
class Health_Stub : public Health {
401
 public:
402
  Health_Stub(::google::protobuf::RpcChannel* channel);
403
  Health_Stub(::google::protobuf::RpcChannel* channel,
404
                   ::google::protobuf::Service::ChannelOwnership ownership);
405
  ~Health_Stub();
406
407
0
  inline ::google::protobuf::RpcChannel* channel() { return channel_; }
408
409
  // implements Health ------------------------------------------
410
411
  void Check(::google::protobuf::RpcController* controller,
412
                       const ::grpc::health::v1::HealthCheckRequest* request,
413
                       ::grpc::health::v1::HealthCheckResponse* response,
414
                       ::google::protobuf::Closure* done);
415
  void Watch(::google::protobuf::RpcController* controller,
416
                       const ::grpc::health::v1::HealthCheckRequest* request,
417
                       ::grpc::health::v1::HealthCheckResponse* response,
418
                       ::google::protobuf::Closure* done);
419
 private:
420
  ::google::protobuf::RpcChannel* channel_;
421
  bool owns_channel_;
422
  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Health_Stub);
423
};
424
425
426
// ===================================================================
427
428
429
// ===================================================================
430
431
#ifdef __GNUC__
432
  #pragma GCC diagnostic push
433
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
434
#endif  // __GNUC__
435
// HealthCheckRequest
436
437
// optional string service = 1;
438
0
inline bool HealthCheckRequest::has_service() const {
439
0
  return (_has_bits_[0] & 0x00000001u) != 0;
440
0
}
441
0
inline void HealthCheckRequest::set_has_service() {
442
0
  _has_bits_[0] |= 0x00000001u;
443
0
}
444
0
inline void HealthCheckRequest::clear_has_service() {
445
0
  _has_bits_[0] &= ~0x00000001u;
446
0
}
447
0
inline void HealthCheckRequest::clear_service() {
448
0
  service_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
449
0
  clear_has_service();
450
0
}
451
0
inline const ::std::string& HealthCheckRequest::service() const {
452
  // @@protoc_insertion_point(field_get:grpc.health.v1.HealthCheckRequest.service)
453
0
  return service_.GetNoArena();
454
0
}
455
0
inline void HealthCheckRequest::set_service(const ::std::string& value) {
456
0
  set_has_service();
457
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
458
0
  // @@protoc_insertion_point(field_set:grpc.health.v1.HealthCheckRequest.service)
459
0
}
460
#if LANG_CXX11
461
0
inline void HealthCheckRequest::set_service(::std::string&& value) {
462
0
  set_has_service();
463
0
  service_.SetNoArena(
464
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
465
0
  // @@protoc_insertion_point(field_set_rvalue:grpc.health.v1.HealthCheckRequest.service)
466
0
}
467
#endif
468
0
inline void HealthCheckRequest::set_service(const char* value) {
469
0
  GOOGLE_DCHECK(value != NULL);
470
0
  set_has_service();
471
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
472
0
  // @@protoc_insertion_point(field_set_char:grpc.health.v1.HealthCheckRequest.service)
473
0
}
474
0
inline void HealthCheckRequest::set_service(const char* value, size_t size) {
475
0
  set_has_service();
476
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
477
0
      ::std::string(reinterpret_cast<const char*>(value), size));
478
0
  // @@protoc_insertion_point(field_set_pointer:grpc.health.v1.HealthCheckRequest.service)
479
0
}
480
0
inline ::std::string* HealthCheckRequest::mutable_service() {
481
0
  set_has_service();
482
  // @@protoc_insertion_point(field_mutable:grpc.health.v1.HealthCheckRequest.service)
483
0
  return service_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
484
0
}
485
0
inline ::std::string* HealthCheckRequest::release_service() {
486
0
  // @@protoc_insertion_point(field_release:grpc.health.v1.HealthCheckRequest.service)
487
0
  if (!has_service()) {
488
0
    return NULL;
489
0
  }
490
0
  clear_has_service();
491
0
  return service_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492
0
}
493
0
inline void HealthCheckRequest::set_allocated_service(::std::string* service) {
494
0
  if (service != NULL) {
495
0
    set_has_service();
496
0
  } else {
497
0
    clear_has_service();
498
0
  }
499
0
  service_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service);
500
0
  // @@protoc_insertion_point(field_set_allocated:grpc.health.v1.HealthCheckRequest.service)
501
0
}
502
503
// -------------------------------------------------------------------
504
505
// HealthCheckResponse
506
507
// optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;
508
0
inline bool HealthCheckResponse::has_status() const {
509
0
  return (_has_bits_[0] & 0x00000001u) != 0;
510
0
}
511
0
inline void HealthCheckResponse::set_has_status() {
512
0
  _has_bits_[0] |= 0x00000001u;
513
0
}
514
0
inline void HealthCheckResponse::clear_has_status() {
515
0
  _has_bits_[0] &= ~0x00000001u;
516
0
}
517
0
inline void HealthCheckResponse::clear_status() {
518
0
  status_ = 0;
519
0
  clear_has_status();
520
0
}
521
0
inline ::grpc::health::v1::HealthCheckResponse_ServingStatus HealthCheckResponse::status() const {
522
  // @@protoc_insertion_point(field_get:grpc.health.v1.HealthCheckResponse.status)
523
0
  return static_cast< ::grpc::health::v1::HealthCheckResponse_ServingStatus >(status_);
524
0
}
525
0
inline void HealthCheckResponse::set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value) {
526
0
  assert(::grpc::health::v1::HealthCheckResponse_ServingStatus_IsValid(value));
527
0
  set_has_status();
528
0
  status_ = value;
529
  // @@protoc_insertion_point(field_set:grpc.health.v1.HealthCheckResponse.status)
530
0
}
531
532
#ifdef __GNUC__
533
  #pragma GCC diagnostic pop
534
#endif  // __GNUC__
535
// -------------------------------------------------------------------
536
537
538
// @@protoc_insertion_point(namespace_scope)
539
540
}  // namespace v1
541
}  // namespace health
542
}  // namespace grpc
543
544
namespace google {
545
namespace protobuf {
546
547
template <> struct is_proto_enum< ::grpc::health::v1::HealthCheckResponse_ServingStatus> : ::std::true_type {};
548
template <>
549
0
inline const EnumDescriptor* GetEnumDescriptor< ::grpc::health::v1::HealthCheckResponse_ServingStatus>() {
550
0
  return ::grpc::health::v1::HealthCheckResponse_ServingStatus_descriptor();
551
0
}
552
553
}  // namespace protobuf
554
}  // namespace google
555
556
// @@protoc_insertion_point(global_scope)
557
558
#endif  // PROTOBUF_INCLUDED_brpc_2fgrpc_5fhealth_5fcheck_2eproto