Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
Jan Tattermusch | 091057a | 2016-11-24 13:08:45 +0100 | [diff] [blame] | 2 | // source: grpc/health/v1/health.proto |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 9 | using scg = global::System.Collections.Generic; |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 10 | namespace Grpc.Health.V1 { |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 11 | |
Jan Tattermusch | 091057a | 2016-11-24 13:08:45 +0100 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from grpc/health/v1/health.proto</summary> |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 13 | public static partial class HealthReflection { |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 14 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 15 | #region Descriptor |
Jan Tattermusch | 091057a | 2016-11-24 13:08:45 +0100 | [diff] [blame] | 16 | /// <summary>File descriptor for grpc/health/v1/health.proto</summary> |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 17 | public static pbr::FileDescriptor Descriptor { |
| 18 | get { return descriptor; } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 19 | } |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 20 | private static pbr::FileDescriptor descriptor; |
| 21 | |
| 22 | static HealthReflection() { |
| 23 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 | string.Concat( |
Jan Tattermusch | 091057a | 2016-11-24 13:08:45 +0100 | [diff] [blame] | 25 | "ChtncnBjL2hlYWx0aC92MS9oZWFsdGgucHJvdG8SDmdycGMuaGVhbHRoLnYx", |
| 26 | "IiUKEkhlYWx0aENoZWNrUmVxdWVzdBIPCgdzZXJ2aWNlGAEgASgJIpQBChNI", |
| 27 | "ZWFsdGhDaGVja1Jlc3BvbnNlEkEKBnN0YXR1cxgBIAEoDjIxLmdycGMuaGVh", |
| 28 | "bHRoLnYxLkhlYWx0aENoZWNrUmVzcG9uc2UuU2VydmluZ1N0YXR1cyI6Cg1T", |
| 29 | "ZXJ2aW5nU3RhdHVzEgsKB1VOS05PV04QABILCgdTRVJWSU5HEAESDwoLTk9U", |
| 30 | "X1NFUlZJTkcQAjJaCgZIZWFsdGgSUAoFQ2hlY2sSIi5ncnBjLmhlYWx0aC52", |
| 31 | "MS5IZWFsdGhDaGVja1JlcXVlc3QaIy5ncnBjLmhlYWx0aC52MS5IZWFsdGhD", |
| 32 | "aGVja1Jlc3BvbnNlQhGqAg5HcnBjLkhlYWx0aC5WMWIGcHJvdG8z")); |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 33 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 34 | new pbr::FileDescriptor[] { }, |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 35 | new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 36 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Health.V1.HealthCheckRequest), global::Grpc.Health.V1.HealthCheckRequest.Parser, new[]{ "Service" }, null, null, null), |
| 37 | 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) |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 38 | })); |
| 39 | } |
| 40 | #endregion |
| 41 | |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 42 | } |
| 43 | #region Messages |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 44 | public sealed partial class HealthCheckRequest : pb::IMessage<HealthCheckRequest> { |
| 45 | private static readonly pb::MessageParser<HealthCheckRequest> _parser = new pb::MessageParser<HealthCheckRequest>(() => new HealthCheckRequest()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 46 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 47 | public static pb::MessageParser<HealthCheckRequest> Parser { get { return _parser; } } |
| 48 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 49 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 50 | public static pbr::MessageDescriptor Descriptor { |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 51 | get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[0]; } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 54 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 55 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 56 | get { return Descriptor; } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 57 | } |
| 58 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 59 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 60 | public HealthCheckRequest() { |
| 61 | OnConstruction(); |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 64 | partial void OnConstruction(); |
| 65 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 66 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 67 | public HealthCheckRequest(HealthCheckRequest other) : this() { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 68 | service_ = other.service_; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 69 | } |
| 70 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 71 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 72 | public HealthCheckRequest Clone() { |
| 73 | return new HealthCheckRequest(this); |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 74 | } |
| 75 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 76 | /// <summary>Field number for the "service" field.</summary> |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 77 | public const int ServiceFieldNumber = 1; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 78 | private string service_ = ""; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 79 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 80 | public string Service { |
| 81 | get { return service_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 82 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 83 | service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 84 | } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 85 | } |
| 86 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 87 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 88 | public override bool Equals(object other) { |
| 89 | return Equals(other as HealthCheckRequest); |
| 90 | } |
| 91 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 92 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 93 | public bool Equals(HealthCheckRequest other) { |
| 94 | if (ReferenceEquals(other, null)) { |
| 95 | return false; |
| 96 | } |
| 97 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 98 | return true; |
| 99 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 100 | if (Service != other.Service) return false; |
| 101 | return true; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 102 | } |
| 103 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 104 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 105 | public override int GetHashCode() { |
| 106 | int hash = 1; |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 107 | if (Service.Length != 0) hash ^= Service.GetHashCode(); |
| 108 | return hash; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 109 | } |
| 110 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 111 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 112 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 113 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 114 | } |
| 115 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 116 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 117 | public void WriteTo(pb::CodedOutputStream output) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 118 | if (Service.Length != 0) { |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 119 | output.WriteRawTag(10); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 120 | output.WriteString(Service); |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 121 | } |
| 122 | } |
| 123 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 124 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 125 | public int CalculateSize() { |
| 126 | int size = 0; |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 127 | if (Service.Length != 0) { |
| 128 | size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 129 | } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 130 | return size; |
| 131 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 132 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 133 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 134 | public void MergeFrom(HealthCheckRequest other) { |
| 135 | if (other == null) { |
| 136 | return; |
| 137 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 138 | if (other.Service.Length != 0) { |
| 139 | Service = other.Service; |
| 140 | } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 141 | } |
| 142 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 143 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 144 | public void MergeFrom(pb::CodedInputStream input) { |
| 145 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 146 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 147 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 148 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 149 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 150 | break; |
| 151 | case 10: { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 152 | Service = input.ReadString(); |
| 153 | break; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 154 | } |
| 155 | } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 156 | } |
| 157 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 158 | |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 159 | } |
| 160 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 161 | public sealed partial class HealthCheckResponse : pb::IMessage<HealthCheckResponse> { |
| 162 | private static readonly pb::MessageParser<HealthCheckResponse> _parser = new pb::MessageParser<HealthCheckResponse>(() => new HealthCheckResponse()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 163 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 164 | public static pb::MessageParser<HealthCheckResponse> Parser { get { return _parser; } } |
| 165 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 166 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 167 | public static pbr::MessageDescriptor Descriptor { |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 168 | get { return global::Grpc.Health.V1.HealthReflection.Descriptor.MessageTypes[1]; } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 169 | } |
| 170 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 171 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 172 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 173 | get { return Descriptor; } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 174 | } |
| 175 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 176 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 177 | public HealthCheckResponse() { |
| 178 | OnConstruction(); |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 181 | partial void OnConstruction(); |
| 182 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 183 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 184 | public HealthCheckResponse(HealthCheckResponse other) : this() { |
| 185 | status_ = other.status_; |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 186 | } |
| 187 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 188 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 189 | public HealthCheckResponse Clone() { |
| 190 | return new HealthCheckResponse(this); |
| 191 | } |
| 192 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 193 | /// <summary>Field number for the "status" field.</summary> |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 194 | public const int StatusFieldNumber = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 195 | private global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus status_ = 0; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 196 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 197 | public global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus Status { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 198 | get { return status_; } |
| 199 | set { |
| 200 | status_ = value; |
| 201 | } |
| 202 | } |
| 203 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 204 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 205 | public override bool Equals(object other) { |
| 206 | return Equals(other as HealthCheckResponse); |
| 207 | } |
| 208 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 209 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 210 | public bool Equals(HealthCheckResponse other) { |
| 211 | if (ReferenceEquals(other, null)) { |
| 212 | return false; |
| 213 | } |
| 214 | if (ReferenceEquals(other, this)) { |
| 215 | return true; |
| 216 | } |
| 217 | if (Status != other.Status) return false; |
| 218 | return true; |
| 219 | } |
| 220 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 221 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 222 | public override int GetHashCode() { |
| 223 | int hash = 1; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 224 | if (Status != 0) hash ^= Status.GetHashCode(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 225 | return hash; |
| 226 | } |
| 227 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 228 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 229 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 230 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 231 | } |
| 232 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 233 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 234 | public void WriteTo(pb::CodedOutputStream output) { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 235 | if (Status != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 236 | output.WriteRawTag(8); |
| 237 | output.WriteEnum((int) Status); |
| 238 | } |
| 239 | } |
| 240 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 241 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 242 | public int CalculateSize() { |
| 243 | int size = 0; |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 244 | if (Status != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 245 | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); |
| 246 | } |
| 247 | return size; |
| 248 | } |
| 249 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 250 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 251 | public void MergeFrom(HealthCheckResponse other) { |
| 252 | if (other == null) { |
| 253 | return; |
| 254 | } |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 255 | if (other.Status != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 256 | Status = other.Status; |
| 257 | } |
| 258 | } |
| 259 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 260 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 261 | public void MergeFrom(pb::CodedInputStream input) { |
| 262 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 263 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 264 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 265 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 266 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 267 | break; |
| 268 | case 8: { |
yang-g | 3165c09 | 2016-02-19 12:36:40 -0800 | [diff] [blame] | 269 | status_ = (global::Grpc.Health.V1.HealthCheckResponse.Types.ServingStatus) input.ReadEnum(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 270 | break; |
| 271 | } |
| 272 | } |
| 273 | } |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 274 | } |
| 275 | |
| 276 | #region Nested types |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 277 | /// <summary>Container for nested types declared in the HealthCheckResponse message type.</summary> |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 278 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 279 | public static partial class Types { |
| 280 | public enum ServingStatus { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 281 | [pbr::OriginalName("UNKNOWN")] Unknown = 0, |
| 282 | [pbr::OriginalName("SERVING")] Serving = 1, |
| 283 | [pbr::OriginalName("NOT_SERVING")] NotServing = 2, |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 284 | } |
| 285 | |
| 286 | } |
| 287 | #endregion |
| 288 | |
Jan Tattermusch | 5253467 | 2015-07-14 20:29:21 -0700 | [diff] [blame] | 289 | } |
| 290 | |
| 291 | #endregion |
| 292 | |
| 293 | } |
| 294 | |
| 295 | #endregion Designer generated code |