• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: grpc/health/v1/health.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Grpc.Health.V1 {
13 
14   /// <summary>Holder for reflection information generated from grpc/health/v1/health.proto</summary>
15   public static partial class HealthReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for grpc/health/v1/health.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
HealthReflection()24     static HealthReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "ChtncnBjL2hlYWx0aC92MS9oZWFsdGgucHJvdG8SDmdycGMuaGVhbHRoLnYx",
28             "IiUKEkhlYWx0aENoZWNrUmVxdWVzdBIPCgdzZXJ2aWNlGAEgASgJIqkBChNI",
29             "ZWFsdGhDaGVja1Jlc3BvbnNlEkEKBnN0YXR1cxgBIAEoDjIxLmdycGMuaGVh",
30             "bHRoLnYxLkhlYWx0aENoZWNrUmVzcG9uc2UuU2VydmluZ1N0YXR1cyJPCg1T",
31             "ZXJ2aW5nU3RhdHVzEgsKB1VOS05PV04QABILCgdTRVJWSU5HEAESDwoLTk9U",
32             "X1NFUlZJTkcQAhITCg9TRVJWSUNFX1VOS05PV04QAzKuAQoGSGVhbHRoElAK",
33             "BUNoZWNrEiIuZ3JwYy5oZWFsdGgudjEuSGVhbHRoQ2hlY2tSZXF1ZXN0GiMu",
34             "Z3JwYy5oZWFsdGgudjEuSGVhbHRoQ2hlY2tSZXNwb25zZRJSCgVXYXRjaBIi",
35             "LmdycGMuaGVhbHRoLnYxLkhlYWx0aENoZWNrUmVxdWVzdBojLmdycGMuaGVh",
36             "bHRoLnYxLkhlYWx0aENoZWNrUmVzcG9uc2UwAUJhChFpby5ncnBjLmhlYWx0",
37             "aC52MUILSGVhbHRoUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5vcmcvZ3JwYy9o",
38             "ZWFsdGgvZ3JwY19oZWFsdGhfdjGqAg5HcnBjLkhlYWx0aC5WMWIGcHJvdG8z"));
39       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
40           new pbr::FileDescriptor[] { },
41           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
42             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Health.V1.HealthCheckRequest), global::Grpc.Health.V1.HealthCheckRequest.Parser, new[]{ "Service" }, null, null, null, null),
43             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Health.V1.HealthCheckResponse), global::Grpc.Health.V1.HealthCheckResponse.Parser, new[]{ "Status" }, null, new[]{ typeof(global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) }, null, null)
44           }));
45     }
46     #endregion
47 
48   }
49   #region Messages
50   public sealed partial class HealthCheckRequest : pb::IMessage<HealthCheckRequest>
51   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
52       , pb::IBufferMessage
53   #endif
54   {
55     private static readonly pb::MessageParser<HealthCheckRequest> _parser = new pb::MessageParser<HealthCheckRequest>(() => new HealthCheckRequest());
56     private pb::UnknownFieldSet _unknownFields;
57     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58     public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } }
59 
60     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
61     public static pbr::MessageDescriptor Descriptor {
62       get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[0]; }
63     }
64 
65     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66     pbr::MessageDescriptor pb::IMessage.Descriptor {
67       get { return Descriptor; }
68     }
69 
70     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckRequest()71     public HealthCheckRequest() {
72       OnConstruction();
73     }
74 
OnConstruction()75     partial void OnConstruction();
76 
77     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckRequest(HealthCheckRequest other)78     public HealthCheckRequest(HealthCheckRequest other) : this() {
79       service_ = other.service_;
80       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
81     }
82 
83     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()84     public HealthCheckRequest Clone() {
85       return new HealthCheckRequest(this);
86     }
87 
88     /// <summary>Field number for the "service" field.</summary>
89     public const int ServiceFieldNumber = 1;
90     private string service_ = "";
91     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92     public string Service {
93       get { return service_; }
94       set {
95         service_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
96       }
97     }
98 
99     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)100     public override bool Equals(object other) {
101       return Equals(other as HealthCheckRequest);
102     }
103 
104     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HealthCheckRequest other)105     public bool Equals(HealthCheckRequest other) {
106       if (ReferenceEquals(other, null)) {
107         return false;
108       }
109       if (ReferenceEquals(other, this)) {
110         return true;
111       }
112       if (Service != other.Service) return false;
113       return Equals(_unknownFields, other._unknownFields);
114     }
115 
116     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()117     public override int GetHashCode() {
118       int hash = 1;
119       if (Service.Length != 0) hash ^= Service.GetHashCode();
120       if (_unknownFields != null) {
121         hash ^= _unknownFields.GetHashCode();
122       }
123       return hash;
124     }
125 
126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()127     public override string ToString() {
128       return pb::JsonFormatter.ToDiagnosticString(this);
129     }
130 
131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)132     public void WriteTo(pb::CodedOutputStream output) {
133     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
134       output.WriteRawMessage(this);
135     #else
136       if (Service.Length != 0) {
137         output.WriteRawTag(10);
138         output.WriteString(Service);
139       }
140       if (_unknownFields != null) {
141         _unknownFields.WriteTo(output);
142       }
143     #endif
144     }
145 
146     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)148     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
149       if (Service.Length != 0) {
150         output.WriteRawTag(10);
151         output.WriteString(Service);
152       }
153       if (_unknownFields != null) {
154         _unknownFields.WriteTo(ref output);
155       }
156     }
157     #endif
158 
159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()160     public int CalculateSize() {
161       int size = 0;
162       if (Service.Length != 0) {
163         size += 1 + pb::CodedOutputStream.ComputeStringSize(Service);
164       }
165       if (_unknownFields != null) {
166         size += _unknownFields.CalculateSize();
167       }
168       return size;
169     }
170 
171     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HealthCheckRequest other)172     public void MergeFrom(HealthCheckRequest other) {
173       if (other == null) {
174         return;
175       }
176       if (other.Service.Length != 0) {
177         Service = other.Service;
178       }
179       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
180     }
181 
182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)183     public void MergeFrom(pb::CodedInputStream input) {
184     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
185       input.ReadRawMessage(this);
186     #else
187       uint tag;
188       while ((tag = input.ReadTag()) != 0) {
189         switch(tag) {
190           default:
191             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
192             break;
193           case 10: {
194             Service = input.ReadString();
195             break;
196           }
197         }
198       }
199     #endif
200     }
201 
202     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
203     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)204     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
205       uint tag;
206       while ((tag = input.ReadTag()) != 0) {
207         switch(tag) {
208           default:
209             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
210             break;
211           case 10: {
212             Service = input.ReadString();
213             break;
214           }
215         }
216       }
217     }
218     #endif
219 
220   }
221 
222   public sealed partial class HealthCheckResponse : pb::IMessage<HealthCheckResponse>
223   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
224       , pb::IBufferMessage
225   #endif
226   {
227     private static readonly pb::MessageParser<HealthCheckResponse> _parser = new pb::MessageParser<HealthCheckResponse>(() => new HealthCheckResponse());
228     private pb::UnknownFieldSet _unknownFields;
229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
230     public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } }
231 
232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
233     public static pbr::MessageDescriptor Descriptor {
234       get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[1]; }
235     }
236 
237     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
238     pbr::MessageDescriptor pb::IMessage.Descriptor {
239       get { return Descriptor; }
240     }
241 
242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckResponse()243     public HealthCheckResponse() {
244       OnConstruction();
245     }
246 
OnConstruction()247     partial void OnConstruction();
248 
249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckResponse(HealthCheckResponse other)250     public HealthCheckResponse(HealthCheckResponse other) : this() {
251       status_ = other.status_;
252       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
253     }
254 
255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()256     public HealthCheckResponse Clone() {
257       return new HealthCheckResponse(this);
258     }
259 
260     /// <summary>Field number for the "status" field.</summary>
261     public const int StatusFieldNumber = 1;
262     private global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown;
263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
264     public global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus Status {
265       get { return status_; }
266       set {
267         status_ = value;
268       }
269     }
270 
271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)272     public override bool Equals(object other) {
273       return Equals(other as HealthCheckResponse);
274     }
275 
276     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HealthCheckResponse other)277     public bool Equals(HealthCheckResponse other) {
278       if (ReferenceEquals(other, null)) {
279         return false;
280       }
281       if (ReferenceEquals(other, this)) {
282         return true;
283       }
284       if (Status != other.Status) return false;
285       return Equals(_unknownFields, other._unknownFields);
286     }
287 
288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()289     public override int GetHashCode() {
290       int hash = 1;
291       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) hash ^= Status.GetHashCode();
292       if (_unknownFields != null) {
293         hash ^= _unknownFields.GetHashCode();
294       }
295       return hash;
296     }
297 
298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()299     public override string ToString() {
300       return pb::JsonFormatter.ToDiagnosticString(this);
301     }
302 
303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)304     public void WriteTo(pb::CodedOutputStream output) {
305     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
306       output.WriteRawMessage(this);
307     #else
308       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
309         output.WriteRawTag(8);
310         output.WriteEnum((int) Status);
311       }
312       if (_unknownFields != null) {
313         _unknownFields.WriteTo(output);
314       }
315     #endif
316     }
317 
318     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)320     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
321       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
322         output.WriteRawTag(8);
323         output.WriteEnum((int) Status);
324       }
325       if (_unknownFields != null) {
326         _unknownFields.WriteTo(ref output);
327       }
328     }
329     #endif
330 
331     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()332     public int CalculateSize() {
333       int size = 0;
334       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
335         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
336       }
337       if (_unknownFields != null) {
338         size += _unknownFields.CalculateSize();
339       }
340       return size;
341     }
342 
343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HealthCheckResponse other)344     public void MergeFrom(HealthCheckResponse other) {
345       if (other == null) {
346         return;
347       }
348       if (other.Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
349         Status = other.Status;
350       }
351       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
352     }
353 
354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)355     public void MergeFrom(pb::CodedInputStream input) {
356     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
357       input.ReadRawMessage(this);
358     #else
359       uint tag;
360       while ((tag = input.ReadTag()) != 0) {
361         switch(tag) {
362           default:
363             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
364             break;
365           case 8: {
366             Status = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum();
367             break;
368           }
369         }
370       }
371     #endif
372     }
373 
374     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
375     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)376     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
377       uint tag;
378       while ((tag = input.ReadTag()) != 0) {
379         switch(tag) {
380           default:
381             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
382             break;
383           case 8: {
384             Status = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum();
385             break;
386           }
387         }
388       }
389     }
390     #endif
391 
392     #region Nested types
393     /// <summary>Container for nested types declared in the HealthCheckResponse message type.</summary>
394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
395     public static partial class Types {
396       public enum ServingStatus {
397         [pbr::OriginalName("UNKNOWN")] Unknown = 0,
398         [pbr::OriginalName("SERVING")] Serving = 1,
399         [pbr::OriginalName("NOT_SERVING")] NotServing = 2,
400         /// <summary>
401         /// Used only by the Watch method.
402         /// </summary>
403         [pbr::OriginalName("SERVICE_UNKNOWN")] ServiceUnknown = 3,
404       }
405 
406     }
407     #endregion
408 
409   }
410 
411   #endregion
412 
413 }
414 
415 #endregion Designer generated code
416