• 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     private static readonly pb::MessageParser<HealthCheckRequest> _parser = new pb::MessageParser<HealthCheckRequest>(() => new HealthCheckRequest());
52     private pb::UnknownFieldSet _unknownFields;
53     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
54     public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } }
55 
56     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
57     public static pbr::MessageDescriptor Descriptor {
58       get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[0]; }
59     }
60 
61     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
62     pbr::MessageDescriptor pb::IMessage.Descriptor {
63       get { return Descriptor; }
64     }
65 
66     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckRequest()67     public HealthCheckRequest() {
68       OnConstruction();
69     }
70 
OnConstruction()71     partial void OnConstruction();
72 
73     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckRequest(HealthCheckRequest other)74     public HealthCheckRequest(HealthCheckRequest other) : this() {
75       service_ = other.service_;
76       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
77     }
78 
79     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()80     public HealthCheckRequest Clone() {
81       return new HealthCheckRequest(this);
82     }
83 
84     /// <summary>Field number for the "service" field.</summary>
85     public const int ServiceFieldNumber = 1;
86     private string service_ = "";
87     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88     public string Service {
89       get { return service_; }
90       set {
91         service_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
92       }
93     }
94 
95     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)96     public override bool Equals(object other) {
97       return Equals(other as HealthCheckRequest);
98     }
99 
100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HealthCheckRequest other)101     public bool Equals(HealthCheckRequest other) {
102       if (ReferenceEquals(other, null)) {
103         return false;
104       }
105       if (ReferenceEquals(other, this)) {
106         return true;
107       }
108       if (Service != other.Service) return false;
109       return Equals(_unknownFields, other._unknownFields);
110     }
111 
112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()113     public override int GetHashCode() {
114       int hash = 1;
115       if (Service.Length != 0) hash ^= Service.GetHashCode();
116       if (_unknownFields != null) {
117         hash ^= _unknownFields.GetHashCode();
118       }
119       return hash;
120     }
121 
122     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()123     public override string ToString() {
124       return pb::JsonFormatter.ToDiagnosticString(this);
125     }
126 
127     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)128     public void WriteTo(pb::CodedOutputStream output) {
129       if (Service.Length != 0) {
130         output.WriteRawTag(10);
131         output.WriteString(Service);
132       }
133       if (_unknownFields != null) {
134         _unknownFields.WriteTo(output);
135       }
136     }
137 
138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()139     public int CalculateSize() {
140       int size = 0;
141       if (Service.Length != 0) {
142         size += 1 + pb::CodedOutputStream.ComputeStringSize(Service);
143       }
144       if (_unknownFields != null) {
145         size += _unknownFields.CalculateSize();
146       }
147       return size;
148     }
149 
150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HealthCheckRequest other)151     public void MergeFrom(HealthCheckRequest other) {
152       if (other == null) {
153         return;
154       }
155       if (other.Service.Length != 0) {
156         Service = other.Service;
157       }
158       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
159     }
160 
161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)162     public void MergeFrom(pb::CodedInputStream input) {
163       uint tag;
164       while ((tag = input.ReadTag()) != 0) {
165         switch(tag) {
166           default:
167             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
168             break;
169           case 10: {
170             Service = input.ReadString();
171             break;
172           }
173         }
174       }
175     }
176 
177   }
178 
179   public sealed partial class HealthCheckResponse : pb::IMessage<HealthCheckResponse> {
180     private static readonly pb::MessageParser<HealthCheckResponse> _parser = new pb::MessageParser<HealthCheckResponse>(() => new HealthCheckResponse());
181     private pb::UnknownFieldSet _unknownFields;
182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183     public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } }
184 
185     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186     public static pbr::MessageDescriptor Descriptor {
187       get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[1]; }
188     }
189 
190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191     pbr::MessageDescriptor pb::IMessage.Descriptor {
192       get { return Descriptor; }
193     }
194 
195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckResponse()196     public HealthCheckResponse() {
197       OnConstruction();
198     }
199 
OnConstruction()200     partial void OnConstruction();
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HealthCheckResponse(HealthCheckResponse other)203     public HealthCheckResponse(HealthCheckResponse other) : this() {
204       status_ = other.status_;
205       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
206     }
207 
208     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()209     public HealthCheckResponse Clone() {
210       return new HealthCheckResponse(this);
211     }
212 
213     /// <summary>Field number for the "status" field.</summary>
214     public const int StatusFieldNumber = 1;
215     private global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus status_ = global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown;
216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
217     public global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus Status {
218       get { return status_; }
219       set {
220         status_ = value;
221       }
222     }
223 
224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)225     public override bool Equals(object other) {
226       return Equals(other as HealthCheckResponse);
227     }
228 
229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HealthCheckResponse other)230     public bool Equals(HealthCheckResponse other) {
231       if (ReferenceEquals(other, null)) {
232         return false;
233       }
234       if (ReferenceEquals(other, this)) {
235         return true;
236       }
237       if (Status != other.Status) return false;
238       return Equals(_unknownFields, other._unknownFields);
239     }
240 
241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()242     public override int GetHashCode() {
243       int hash = 1;
244       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) hash ^= Status.GetHashCode();
245       if (_unknownFields != null) {
246         hash ^= _unknownFields.GetHashCode();
247       }
248       return hash;
249     }
250 
251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()252     public override string ToString() {
253       return pb::JsonFormatter.ToDiagnosticString(this);
254     }
255 
256     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)257     public void WriteTo(pb::CodedOutputStream output) {
258       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
259         output.WriteRawTag(8);
260         output.WriteEnum((int) Status);
261       }
262       if (_unknownFields != null) {
263         _unknownFields.WriteTo(output);
264       }
265     }
266 
267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()268     public int CalculateSize() {
269       int size = 0;
270       if (Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
271         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
272       }
273       if (_unknownFields != null) {
274         size += _unknownFields.CalculateSize();
275       }
276       return size;
277     }
278 
279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HealthCheckResponse other)280     public void MergeFrom(HealthCheckResponse other) {
281       if (other == null) {
282         return;
283       }
284       if (other.Status != global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus.Unknown) {
285         Status = other.Status;
286       }
287       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
288     }
289 
290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)291     public void MergeFrom(pb::CodedInputStream input) {
292       uint tag;
293       while ((tag = input.ReadTag()) != 0) {
294         switch(tag) {
295           default:
296             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
297             break;
298           case 8: {
299             Status = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum();
300             break;
301           }
302         }
303       }
304     }
305 
306     #region Nested types
307     /// <summary>Container for nested types declared in the HealthCheckResponse message type.</summary>
308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309     public static partial class Types {
310       public enum ServingStatus {
311         [pbr::OriginalName("UNKNOWN")] Unknown = 0,
312         [pbr::OriginalName("SERVING")] Serving = 1,
313         [pbr::OriginalName("NOT_SERVING")] NotServing = 2,
314         /// <summary>
315         /// Used only by the Watch method.
316         /// </summary>
317         [pbr::OriginalName("SERVICE_UNKNOWN")] ServiceUnknown = 3,
318       }
319 
320     }
321     #endregion
322 
323   }
324 
325   #endregion
326 
327 }
328 
329 #endregion Designer generated code
330