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