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