Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: src/proto/grpc/testing/metrics.proto |
| 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
| 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
| 9 | using scg = global::System.Collections.Generic; |
| 10 | namespace Grpc.Testing { |
| 11 | |
| 12 | /// <summary>Holder for reflection information generated from src/proto/grpc/testing/metrics.proto</summary> |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 13 | public static partial class MetricsReflection { |
| 14 | |
| 15 | #region Descriptor |
| 16 | /// <summary>File descriptor for src/proto/grpc/testing/metrics.proto</summary> |
| 17 | public static pbr::FileDescriptor Descriptor { |
| 18 | get { return descriptor; } |
| 19 | } |
| 20 | private static pbr::FileDescriptor descriptor; |
| 21 | |
| 22 | static MetricsReflection() { |
| 23 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 | string.Concat( |
| 25 | "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21ldHJpY3MucHJvdG8SDGdycGMu", |
| 26 | "dGVzdGluZyJsCg1HYXVnZVJlc3BvbnNlEgwKBG5hbWUYASABKAkSFAoKbG9u", |
| 27 | "Z192YWx1ZRgCIAEoA0gAEhYKDGRvdWJsZV92YWx1ZRgDIAEoAUgAEhYKDHN0", |
| 28 | "cmluZ192YWx1ZRgEIAEoCUgAQgcKBXZhbHVlIhwKDEdhdWdlUmVxdWVzdBIM", |
| 29 | "CgRuYW1lGAEgASgJIg4KDEVtcHR5TWVzc2FnZTKgAQoOTWV0cmljc1NlcnZp", |
| 30 | "Y2USSQoMR2V0QWxsR2F1Z2VzEhouZ3JwYy50ZXN0aW5nLkVtcHR5TWVzc2Fn", |
| 31 | "ZRobLmdycGMudGVzdGluZy5HYXVnZVJlc3BvbnNlMAESQwoIR2V0R2F1Z2US", |
| 32 | "Gi5ncnBjLnRlc3RpbmcuR2F1Z2VSZXF1ZXN0GhsuZ3JwYy50ZXN0aW5nLkdh", |
| 33 | "dWdlUmVzcG9uc2ViBnByb3RvMw==")); |
| 34 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 35 | new pbr::FileDescriptor[] { }, |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 36 | new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 37 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.GaugeResponse), global::Grpc.Testing.GaugeResponse.Parser, new[]{ "Name", "LongValue", "DoubleValue", "StringValue" }, new[]{ "Value" }, null, null), |
| 38 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.GaugeRequest), global::Grpc.Testing.GaugeRequest.Parser, new[]{ "Name" }, null, null, null), |
| 39 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EmptyMessage), global::Grpc.Testing.EmptyMessage.Parser, null, null, null, null) |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 40 | })); |
| 41 | } |
| 42 | #endregion |
| 43 | |
| 44 | } |
| 45 | #region Messages |
| 46 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 47 | /// Reponse message containing the gauge name and value |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 48 | /// </summary> |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 49 | public sealed partial class GaugeResponse : pb::IMessage<GaugeResponse> { |
| 50 | private static readonly pb::MessageParser<GaugeResponse> _parser = new pb::MessageParser<GaugeResponse>(() => new GaugeResponse()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 52 | public static pb::MessageParser<GaugeResponse> Parser { get { return _parser; } } |
| 53 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 54 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 55 | public static pbr::MessageDescriptor Descriptor { |
| 56 | get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[0]; } |
| 57 | } |
| 58 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 59 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 60 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 61 | get { return Descriptor; } |
| 62 | } |
| 63 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 64 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 65 | public GaugeResponse() { |
| 66 | OnConstruction(); |
| 67 | } |
| 68 | |
| 69 | partial void OnConstruction(); |
| 70 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 71 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 72 | public GaugeResponse(GaugeResponse other) : this() { |
| 73 | name_ = other.name_; |
| 74 | switch (other.ValueCase) { |
| 75 | case ValueOneofCase.LongValue: |
| 76 | LongValue = other.LongValue; |
| 77 | break; |
| 78 | case ValueOneofCase.DoubleValue: |
| 79 | DoubleValue = other.DoubleValue; |
| 80 | break; |
| 81 | case ValueOneofCase.StringValue: |
| 82 | StringValue = other.StringValue; |
| 83 | break; |
| 84 | } |
| 85 | |
| 86 | } |
| 87 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 88 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 89 | public GaugeResponse Clone() { |
| 90 | return new GaugeResponse(this); |
| 91 | } |
| 92 | |
| 93 | /// <summary>Field number for the "name" field.</summary> |
| 94 | public const int NameFieldNumber = 1; |
| 95 | private string name_ = ""; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 96 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 97 | public string Name { |
| 98 | get { return name_; } |
| 99 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 100 | name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 101 | } |
| 102 | } |
| 103 | |
| 104 | /// <summary>Field number for the "long_value" field.</summary> |
| 105 | public const int LongValueFieldNumber = 2; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 106 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 107 | public long LongValue { |
| 108 | get { return valueCase_ == ValueOneofCase.LongValue ? (long) value_ : 0L; } |
| 109 | set { |
| 110 | value_ = value; |
| 111 | valueCase_ = ValueOneofCase.LongValue; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | /// <summary>Field number for the "double_value" field.</summary> |
| 116 | public const int DoubleValueFieldNumber = 3; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 117 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 118 | public double DoubleValue { |
| 119 | get { return valueCase_ == ValueOneofCase.DoubleValue ? (double) value_ : 0D; } |
| 120 | set { |
| 121 | value_ = value; |
| 122 | valueCase_ = ValueOneofCase.DoubleValue; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /// <summary>Field number for the "string_value" field.</summary> |
| 127 | public const int StringValueFieldNumber = 4; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 128 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 129 | public string StringValue { |
| 130 | get { return valueCase_ == ValueOneofCase.StringValue ? (string) value_ : ""; } |
| 131 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 132 | value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 133 | valueCase_ = ValueOneofCase.StringValue; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | private object value_; |
| 138 | /// <summary>Enum of possible cases for the "value" oneof.</summary> |
| 139 | public enum ValueOneofCase { |
| 140 | None = 0, |
| 141 | LongValue = 2, |
| 142 | DoubleValue = 3, |
| 143 | StringValue = 4, |
| 144 | } |
| 145 | private ValueOneofCase valueCase_ = ValueOneofCase.None; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 146 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 147 | public ValueOneofCase ValueCase { |
| 148 | get { return valueCase_; } |
| 149 | } |
| 150 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 151 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 152 | public void ClearValue() { |
| 153 | valueCase_ = ValueOneofCase.None; |
| 154 | value_ = null; |
| 155 | } |
| 156 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 157 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 158 | public override bool Equals(object other) { |
| 159 | return Equals(other as GaugeResponse); |
| 160 | } |
| 161 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 162 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 163 | public bool Equals(GaugeResponse other) { |
| 164 | if (ReferenceEquals(other, null)) { |
| 165 | return false; |
| 166 | } |
| 167 | if (ReferenceEquals(other, this)) { |
| 168 | return true; |
| 169 | } |
| 170 | if (Name != other.Name) return false; |
| 171 | if (LongValue != other.LongValue) return false; |
| 172 | if (DoubleValue != other.DoubleValue) return false; |
| 173 | if (StringValue != other.StringValue) return false; |
| 174 | if (ValueCase != other.ValueCase) return false; |
| 175 | return true; |
| 176 | } |
| 177 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 178 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 179 | public override int GetHashCode() { |
| 180 | int hash = 1; |
| 181 | if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| 182 | if (valueCase_ == ValueOneofCase.LongValue) hash ^= LongValue.GetHashCode(); |
| 183 | if (valueCase_ == ValueOneofCase.DoubleValue) hash ^= DoubleValue.GetHashCode(); |
| 184 | if (valueCase_ == ValueOneofCase.StringValue) hash ^= StringValue.GetHashCode(); |
| 185 | hash ^= (int) valueCase_; |
| 186 | return hash; |
| 187 | } |
| 188 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 189 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 190 | public override string ToString() { |
| 191 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 192 | } |
| 193 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 194 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 195 | public void WriteTo(pb::CodedOutputStream output) { |
| 196 | if (Name.Length != 0) { |
| 197 | output.WriteRawTag(10); |
| 198 | output.WriteString(Name); |
| 199 | } |
| 200 | if (valueCase_ == ValueOneofCase.LongValue) { |
| 201 | output.WriteRawTag(16); |
| 202 | output.WriteInt64(LongValue); |
| 203 | } |
| 204 | if (valueCase_ == ValueOneofCase.DoubleValue) { |
| 205 | output.WriteRawTag(25); |
| 206 | output.WriteDouble(DoubleValue); |
| 207 | } |
| 208 | if (valueCase_ == ValueOneofCase.StringValue) { |
| 209 | output.WriteRawTag(34); |
| 210 | output.WriteString(StringValue); |
| 211 | } |
| 212 | } |
| 213 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 214 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 215 | public int CalculateSize() { |
| 216 | int size = 0; |
| 217 | if (Name.Length != 0) { |
| 218 | size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| 219 | } |
| 220 | if (valueCase_ == ValueOneofCase.LongValue) { |
| 221 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(LongValue); |
| 222 | } |
| 223 | if (valueCase_ == ValueOneofCase.DoubleValue) { |
| 224 | size += 1 + 8; |
| 225 | } |
| 226 | if (valueCase_ == ValueOneofCase.StringValue) { |
| 227 | size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); |
| 228 | } |
| 229 | return size; |
| 230 | } |
| 231 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 232 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 233 | public void MergeFrom(GaugeResponse other) { |
| 234 | if (other == null) { |
| 235 | return; |
| 236 | } |
| 237 | if (other.Name.Length != 0) { |
| 238 | Name = other.Name; |
| 239 | } |
| 240 | switch (other.ValueCase) { |
| 241 | case ValueOneofCase.LongValue: |
| 242 | LongValue = other.LongValue; |
| 243 | break; |
| 244 | case ValueOneofCase.DoubleValue: |
| 245 | DoubleValue = other.DoubleValue; |
| 246 | break; |
| 247 | case ValueOneofCase.StringValue: |
| 248 | StringValue = other.StringValue; |
| 249 | break; |
| 250 | } |
| 251 | |
| 252 | } |
| 253 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 254 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 255 | public void MergeFrom(pb::CodedInputStream input) { |
| 256 | uint tag; |
| 257 | while ((tag = input.ReadTag()) != 0) { |
| 258 | switch(tag) { |
| 259 | default: |
| 260 | input.SkipLastField(); |
| 261 | break; |
| 262 | case 10: { |
| 263 | Name = input.ReadString(); |
| 264 | break; |
| 265 | } |
| 266 | case 16: { |
| 267 | LongValue = input.ReadInt64(); |
| 268 | break; |
| 269 | } |
| 270 | case 25: { |
| 271 | DoubleValue = input.ReadDouble(); |
| 272 | break; |
| 273 | } |
| 274 | case 34: { |
| 275 | StringValue = input.ReadString(); |
| 276 | break; |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | } |
| 283 | |
| 284 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 285 | /// Request message containing the gauge name |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 286 | /// </summary> |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 287 | public sealed partial class GaugeRequest : pb::IMessage<GaugeRequest> { |
| 288 | private static readonly pb::MessageParser<GaugeRequest> _parser = new pb::MessageParser<GaugeRequest>(() => new GaugeRequest()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 289 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 290 | public static pb::MessageParser<GaugeRequest> Parser { get { return _parser; } } |
| 291 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 292 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 293 | public static pbr::MessageDescriptor Descriptor { |
| 294 | get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[1]; } |
| 295 | } |
| 296 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 297 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 298 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 299 | get { return Descriptor; } |
| 300 | } |
| 301 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 302 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 303 | public GaugeRequest() { |
| 304 | OnConstruction(); |
| 305 | } |
| 306 | |
| 307 | partial void OnConstruction(); |
| 308 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 309 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 310 | public GaugeRequest(GaugeRequest other) : this() { |
| 311 | name_ = other.name_; |
| 312 | } |
| 313 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 314 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 315 | public GaugeRequest Clone() { |
| 316 | return new GaugeRequest(this); |
| 317 | } |
| 318 | |
| 319 | /// <summary>Field number for the "name" field.</summary> |
| 320 | public const int NameFieldNumber = 1; |
| 321 | private string name_ = ""; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 322 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 323 | public string Name { |
| 324 | get { return name_; } |
| 325 | set { |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 326 | name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 327 | } |
| 328 | } |
| 329 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 330 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 331 | public override bool Equals(object other) { |
| 332 | return Equals(other as GaugeRequest); |
| 333 | } |
| 334 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 335 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 336 | public bool Equals(GaugeRequest other) { |
| 337 | if (ReferenceEquals(other, null)) { |
| 338 | return false; |
| 339 | } |
| 340 | if (ReferenceEquals(other, this)) { |
| 341 | return true; |
| 342 | } |
| 343 | if (Name != other.Name) return false; |
| 344 | return true; |
| 345 | } |
| 346 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 347 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 348 | public override int GetHashCode() { |
| 349 | int hash = 1; |
| 350 | if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| 351 | return hash; |
| 352 | } |
| 353 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 354 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 355 | public override string ToString() { |
| 356 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 357 | } |
| 358 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 359 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 360 | public void WriteTo(pb::CodedOutputStream output) { |
| 361 | if (Name.Length != 0) { |
| 362 | output.WriteRawTag(10); |
| 363 | output.WriteString(Name); |
| 364 | } |
| 365 | } |
| 366 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 367 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 368 | public int CalculateSize() { |
| 369 | int size = 0; |
| 370 | if (Name.Length != 0) { |
| 371 | size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| 372 | } |
| 373 | return size; |
| 374 | } |
| 375 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 376 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 377 | public void MergeFrom(GaugeRequest other) { |
| 378 | if (other == null) { |
| 379 | return; |
| 380 | } |
| 381 | if (other.Name.Length != 0) { |
| 382 | Name = other.Name; |
| 383 | } |
| 384 | } |
| 385 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 386 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 387 | public void MergeFrom(pb::CodedInputStream input) { |
| 388 | uint tag; |
| 389 | while ((tag = input.ReadTag()) != 0) { |
| 390 | switch(tag) { |
| 391 | default: |
| 392 | input.SkipLastField(); |
| 393 | break; |
| 394 | case 10: { |
| 395 | Name = input.ReadString(); |
| 396 | break; |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | } |
| 403 | |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 404 | public sealed partial class EmptyMessage : pb::IMessage<EmptyMessage> { |
| 405 | private static readonly pb::MessageParser<EmptyMessage> _parser = new pb::MessageParser<EmptyMessage>(() => new EmptyMessage()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 406 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 407 | public static pb::MessageParser<EmptyMessage> Parser { get { return _parser; } } |
| 408 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 409 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 410 | public static pbr::MessageDescriptor Descriptor { |
| 411 | get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[2]; } |
| 412 | } |
| 413 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 414 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 415 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 416 | get { return Descriptor; } |
| 417 | } |
| 418 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 419 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 420 | public EmptyMessage() { |
| 421 | OnConstruction(); |
| 422 | } |
| 423 | |
| 424 | partial void OnConstruction(); |
| 425 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 426 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 427 | public EmptyMessage(EmptyMessage other) : this() { |
| 428 | } |
| 429 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 430 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 431 | public EmptyMessage Clone() { |
| 432 | return new EmptyMessage(this); |
| 433 | } |
| 434 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 435 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 436 | public override bool Equals(object other) { |
| 437 | return Equals(other as EmptyMessage); |
| 438 | } |
| 439 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 440 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 441 | public bool Equals(EmptyMessage other) { |
| 442 | if (ReferenceEquals(other, null)) { |
| 443 | return false; |
| 444 | } |
| 445 | if (ReferenceEquals(other, this)) { |
| 446 | return true; |
| 447 | } |
| 448 | return true; |
| 449 | } |
| 450 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 451 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 452 | public override int GetHashCode() { |
| 453 | int hash = 1; |
| 454 | return hash; |
| 455 | } |
| 456 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 457 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 458 | public override string ToString() { |
| 459 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 460 | } |
| 461 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 462 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 463 | public void WriteTo(pb::CodedOutputStream output) { |
| 464 | } |
| 465 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 466 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 467 | public int CalculateSize() { |
| 468 | int size = 0; |
| 469 | return size; |
| 470 | } |
| 471 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 472 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 473 | public void MergeFrom(EmptyMessage other) { |
| 474 | if (other == null) { |
| 475 | return; |
| 476 | } |
| 477 | } |
| 478 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 479 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 44aa843 | 2016-04-21 13:54:44 -0700 | [diff] [blame] | 480 | public void MergeFrom(pb::CodedInputStream input) { |
| 481 | uint tag; |
| 482 | while ((tag = input.ReadTag()) != 0) { |
| 483 | switch(tag) { |
| 484 | default: |
| 485 | input.SkipLastField(); |
| 486 | break; |
| 487 | } |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | } |
| 492 | |
| 493 | #endregion |
| 494 | |
| 495 | } |
| 496 | |
| 497 | #endregion Designer generated code |