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, 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, null), 40 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.GaugeRequest), global::Grpc.Testing.GaugeRequest.Parser, new[]{ "Name" }, null, null, null, null), 41 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EmptyMessage), global::Grpc.Testing.EmptyMessage.Parser, null, null, null, null, null) 42 })); 43 } 44 #endregion 45 46 } 47 #region Messages 48 /// <summary> 49 /// Response message containing the gauge name and value 50 /// </summary> 51 public sealed partial class GaugeResponse : pb::IMessage<GaugeResponse> 52 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 53 , pb::IBufferMessage 54 #endif 55 { 56 private static readonly pb::MessageParser<GaugeResponse> _parser = new pb::MessageParser<GaugeResponse>(() => new GaugeResponse()); 57 private pb::UnknownFieldSet _unknownFields; 58 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 59 public static pb::MessageParser<GaugeResponse> Parser { get { return _parser; } } 60 61 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 62 public static pbr::MessageDescriptor Descriptor { 63 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[0]; } 64 } 65 66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 67 pbr::MessageDescriptor pb::IMessage.Descriptor { 68 get { return Descriptor; } 69 } 70 71 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GaugeResponse()72 public GaugeResponse() { 73 OnConstruction(); 74 } 75 OnConstruction()76 partial void OnConstruction(); 77 78 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GaugeResponse(GaugeResponse other)79 public GaugeResponse(GaugeResponse other) : this() { 80 name_ = other.name_; 81 switch (other.ValueCase) { 82 case ValueOneofCase.LongValue: 83 LongValue = other.LongValue; 84 break; 85 case ValueOneofCase.DoubleValue: 86 DoubleValue = other.DoubleValue; 87 break; 88 case ValueOneofCase.StringValue: 89 StringValue = other.StringValue; 90 break; 91 } 92 93 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 94 } 95 96 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()97 public GaugeResponse Clone() { 98 return new GaugeResponse(this); 99 } 100 101 /// <summary>Field number for the "name" field.</summary> 102 public const int NameFieldNumber = 1; 103 private string name_ = ""; 104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 105 public string Name { 106 get { return name_; } 107 set { 108 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 109 } 110 } 111 112 /// <summary>Field number for the "long_value" field.</summary> 113 public const int LongValueFieldNumber = 2; 114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 115 public long LongValue { 116 get { return valueCase_ == ValueOneofCase.LongValue ? (long) value_ : 0L; } 117 set { 118 value_ = value; 119 valueCase_ = ValueOneofCase.LongValue; 120 } 121 } 122 123 /// <summary>Field number for the "double_value" field.</summary> 124 public const int DoubleValueFieldNumber = 3; 125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 126 public double DoubleValue { 127 get { return valueCase_ == ValueOneofCase.DoubleValue ? (double) value_ : 0D; } 128 set { 129 value_ = value; 130 valueCase_ = ValueOneofCase.DoubleValue; 131 } 132 } 133 134 /// <summary>Field number for the "string_value" field.</summary> 135 public const int StringValueFieldNumber = 4; 136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 137 public string StringValue { 138 get { return valueCase_ == ValueOneofCase.StringValue ? (string) value_ : ""; } 139 set { 140 value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 141 valueCase_ = ValueOneofCase.StringValue; 142 } 143 } 144 145 private object value_; 146 /// <summary>Enum of possible cases for the "value" oneof.</summary> 147 public enum ValueOneofCase { 148 None = 0, 149 LongValue = 2, 150 DoubleValue = 3, 151 StringValue = 4, 152 } 153 private ValueOneofCase valueCase_ = ValueOneofCase.None; 154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 155 public ValueOneofCase ValueCase { 156 get { return valueCase_; } 157 } 158 159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClearValue()160 public void ClearValue() { 161 valueCase_ = ValueOneofCase.None; 162 value_ = null; 163 } 164 165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)166 public override bool Equals(object other) { 167 return Equals(other as GaugeResponse); 168 } 169 170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(GaugeResponse other)171 public bool Equals(GaugeResponse other) { 172 if (ReferenceEquals(other, null)) { 173 return false; 174 } 175 if (ReferenceEquals(other, this)) { 176 return true; 177 } 178 if (Name != other.Name) return false; 179 if (LongValue != other.LongValue) return false; 180 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false; 181 if (StringValue != other.StringValue) return false; 182 if (ValueCase != other.ValueCase) return false; 183 return Equals(_unknownFields, other._unknownFields); 184 } 185 186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()187 public override int GetHashCode() { 188 int hash = 1; 189 if (Name.Length != 0) hash ^= Name.GetHashCode(); 190 if (valueCase_ == ValueOneofCase.LongValue) hash ^= LongValue.GetHashCode(); 191 if (valueCase_ == ValueOneofCase.DoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); 192 if (valueCase_ == ValueOneofCase.StringValue) hash ^= StringValue.GetHashCode(); 193 hash ^= (int) valueCase_; 194 if (_unknownFields != null) { 195 hash ^= _unknownFields.GetHashCode(); 196 } 197 return hash; 198 } 199 200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()201 public override string ToString() { 202 return pb::JsonFormatter.ToDiagnosticString(this); 203 } 204 205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)206 public void WriteTo(pb::CodedOutputStream output) { 207 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 208 output.WriteRawMessage(this); 209 #else 210 if (Name.Length != 0) { 211 output.WriteRawTag(10); 212 output.WriteString(Name); 213 } 214 if (valueCase_ == ValueOneofCase.LongValue) { 215 output.WriteRawTag(16); 216 output.WriteInt64(LongValue); 217 } 218 if (valueCase_ == ValueOneofCase.DoubleValue) { 219 output.WriteRawTag(25); 220 output.WriteDouble(DoubleValue); 221 } 222 if (valueCase_ == ValueOneofCase.StringValue) { 223 output.WriteRawTag(34); 224 output.WriteString(StringValue); 225 } 226 if (_unknownFields != null) { 227 _unknownFields.WriteTo(output); 228 } 229 #endif 230 } 231 232 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)234 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 235 if (Name.Length != 0) { 236 output.WriteRawTag(10); 237 output.WriteString(Name); 238 } 239 if (valueCase_ == ValueOneofCase.LongValue) { 240 output.WriteRawTag(16); 241 output.WriteInt64(LongValue); 242 } 243 if (valueCase_ == ValueOneofCase.DoubleValue) { 244 output.WriteRawTag(25); 245 output.WriteDouble(DoubleValue); 246 } 247 if (valueCase_ == ValueOneofCase.StringValue) { 248 output.WriteRawTag(34); 249 output.WriteString(StringValue); 250 } 251 if (_unknownFields != null) { 252 _unknownFields.WriteTo(ref output); 253 } 254 } 255 #endif 256 257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()258 public int CalculateSize() { 259 int size = 0; 260 if (Name.Length != 0) { 261 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 262 } 263 if (valueCase_ == ValueOneofCase.LongValue) { 264 size += 1 + pb::CodedOutputStream.ComputeInt64Size(LongValue); 265 } 266 if (valueCase_ == ValueOneofCase.DoubleValue) { 267 size += 1 + 8; 268 } 269 if (valueCase_ == ValueOneofCase.StringValue) { 270 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); 271 } 272 if (_unknownFields != null) { 273 size += _unknownFields.CalculateSize(); 274 } 275 return size; 276 } 277 278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(GaugeResponse other)279 public void MergeFrom(GaugeResponse other) { 280 if (other == null) { 281 return; 282 } 283 if (other.Name.Length != 0) { 284 Name = other.Name; 285 } 286 switch (other.ValueCase) { 287 case ValueOneofCase.LongValue: 288 LongValue = other.LongValue; 289 break; 290 case ValueOneofCase.DoubleValue: 291 DoubleValue = other.DoubleValue; 292 break; 293 case ValueOneofCase.StringValue: 294 StringValue = other.StringValue; 295 break; 296 } 297 298 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 299 } 300 301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)302 public void MergeFrom(pb::CodedInputStream input) { 303 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 304 input.ReadRawMessage(this); 305 #else 306 uint tag; 307 while ((tag = input.ReadTag()) != 0) { 308 switch(tag) { 309 default: 310 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 311 break; 312 case 10: { 313 Name = input.ReadString(); 314 break; 315 } 316 case 16: { 317 LongValue = input.ReadInt64(); 318 break; 319 } 320 case 25: { 321 DoubleValue = input.ReadDouble(); 322 break; 323 } 324 case 34: { 325 StringValue = input.ReadString(); 326 break; 327 } 328 } 329 } 330 #endif 331 } 332 333 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)335 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 336 uint tag; 337 while ((tag = input.ReadTag()) != 0) { 338 switch(tag) { 339 default: 340 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 341 break; 342 case 10: { 343 Name = input.ReadString(); 344 break; 345 } 346 case 16: { 347 LongValue = input.ReadInt64(); 348 break; 349 } 350 case 25: { 351 DoubleValue = input.ReadDouble(); 352 break; 353 } 354 case 34: { 355 StringValue = input.ReadString(); 356 break; 357 } 358 } 359 } 360 } 361 #endif 362 363 } 364 365 /// <summary> 366 /// Request message containing the gauge name 367 /// </summary> 368 public sealed partial class GaugeRequest : pb::IMessage<GaugeRequest> 369 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 370 , pb::IBufferMessage 371 #endif 372 { 373 private static readonly pb::MessageParser<GaugeRequest> _parser = new pb::MessageParser<GaugeRequest>(() => new GaugeRequest()); 374 private pb::UnknownFieldSet _unknownFields; 375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 376 public static pb::MessageParser<GaugeRequest> Parser { get { return _parser; } } 377 378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 379 public static pbr::MessageDescriptor Descriptor { 380 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[1]; } 381 } 382 383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 384 pbr::MessageDescriptor pb::IMessage.Descriptor { 385 get { return Descriptor; } 386 } 387 388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GaugeRequest()389 public GaugeRequest() { 390 OnConstruction(); 391 } 392 OnConstruction()393 partial void OnConstruction(); 394 395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GaugeRequest(GaugeRequest other)396 public GaugeRequest(GaugeRequest other) : this() { 397 name_ = other.name_; 398 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 399 } 400 401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()402 public GaugeRequest Clone() { 403 return new GaugeRequest(this); 404 } 405 406 /// <summary>Field number for the "name" field.</summary> 407 public const int NameFieldNumber = 1; 408 private string name_ = ""; 409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 410 public string Name { 411 get { return name_; } 412 set { 413 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 414 } 415 } 416 417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)418 public override bool Equals(object other) { 419 return Equals(other as GaugeRequest); 420 } 421 422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(GaugeRequest other)423 public bool Equals(GaugeRequest other) { 424 if (ReferenceEquals(other, null)) { 425 return false; 426 } 427 if (ReferenceEquals(other, this)) { 428 return true; 429 } 430 if (Name != other.Name) return false; 431 return Equals(_unknownFields, other._unknownFields); 432 } 433 434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()435 public override int GetHashCode() { 436 int hash = 1; 437 if (Name.Length != 0) hash ^= Name.GetHashCode(); 438 if (_unknownFields != null) { 439 hash ^= _unknownFields.GetHashCode(); 440 } 441 return hash; 442 } 443 444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()445 public override string ToString() { 446 return pb::JsonFormatter.ToDiagnosticString(this); 447 } 448 449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)450 public void WriteTo(pb::CodedOutputStream output) { 451 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 452 output.WriteRawMessage(this); 453 #else 454 if (Name.Length != 0) { 455 output.WriteRawTag(10); 456 output.WriteString(Name); 457 } 458 if (_unknownFields != null) { 459 _unknownFields.WriteTo(output); 460 } 461 #endif 462 } 463 464 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)466 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 467 if (Name.Length != 0) { 468 output.WriteRawTag(10); 469 output.WriteString(Name); 470 } 471 if (_unknownFields != null) { 472 _unknownFields.WriteTo(ref output); 473 } 474 } 475 #endif 476 477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()478 public int CalculateSize() { 479 int size = 0; 480 if (Name.Length != 0) { 481 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 482 } 483 if (_unknownFields != null) { 484 size += _unknownFields.CalculateSize(); 485 } 486 return size; 487 } 488 489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(GaugeRequest other)490 public void MergeFrom(GaugeRequest other) { 491 if (other == null) { 492 return; 493 } 494 if (other.Name.Length != 0) { 495 Name = other.Name; 496 } 497 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 498 } 499 500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)501 public void MergeFrom(pb::CodedInputStream input) { 502 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 503 input.ReadRawMessage(this); 504 #else 505 uint tag; 506 while ((tag = input.ReadTag()) != 0) { 507 switch(tag) { 508 default: 509 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 510 break; 511 case 10: { 512 Name = input.ReadString(); 513 break; 514 } 515 } 516 } 517 #endif 518 } 519 520 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)522 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 523 uint tag; 524 while ((tag = input.ReadTag()) != 0) { 525 switch(tag) { 526 default: 527 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 528 break; 529 case 10: { 530 Name = input.ReadString(); 531 break; 532 } 533 } 534 } 535 } 536 #endif 537 538 } 539 540 public sealed partial class EmptyMessage : pb::IMessage<EmptyMessage> 541 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 542 , pb::IBufferMessage 543 #endif 544 { 545 private static readonly pb::MessageParser<EmptyMessage> _parser = new pb::MessageParser<EmptyMessage>(() => new EmptyMessage()); 546 private pb::UnknownFieldSet _unknownFields; 547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 548 public static pb::MessageParser<EmptyMessage> Parser { get { return _parser; } } 549 550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 551 public static pbr::MessageDescriptor Descriptor { 552 get { return global::Grpc.Testing.MetricsReflection.Descriptor.MessageTypes[2]; } 553 } 554 555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 556 pbr::MessageDescriptor pb::IMessage.Descriptor { 557 get { return Descriptor; } 558 } 559 560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EmptyMessage()561 public EmptyMessage() { 562 OnConstruction(); 563 } 564 OnConstruction()565 partial void OnConstruction(); 566 567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EmptyMessage(EmptyMessage other)568 public EmptyMessage(EmptyMessage other) : this() { 569 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 570 } 571 572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()573 public EmptyMessage Clone() { 574 return new EmptyMessage(this); 575 } 576 577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)578 public override bool Equals(object other) { 579 return Equals(other as EmptyMessage); 580 } 581 582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EmptyMessage other)583 public bool Equals(EmptyMessage other) { 584 if (ReferenceEquals(other, null)) { 585 return false; 586 } 587 if (ReferenceEquals(other, this)) { 588 return true; 589 } 590 return Equals(_unknownFields, other._unknownFields); 591 } 592 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()594 public override int GetHashCode() { 595 int hash = 1; 596 if (_unknownFields != null) { 597 hash ^= _unknownFields.GetHashCode(); 598 } 599 return hash; 600 } 601 602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()603 public override string ToString() { 604 return pb::JsonFormatter.ToDiagnosticString(this); 605 } 606 607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)608 public void WriteTo(pb::CodedOutputStream output) { 609 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 610 output.WriteRawMessage(this); 611 #else 612 if (_unknownFields != null) { 613 _unknownFields.WriteTo(output); 614 } 615 #endif 616 } 617 618 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)620 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 621 if (_unknownFields != null) { 622 _unknownFields.WriteTo(ref output); 623 } 624 } 625 #endif 626 627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()628 public int CalculateSize() { 629 int size = 0; 630 if (_unknownFields != null) { 631 size += _unknownFields.CalculateSize(); 632 } 633 return size; 634 } 635 636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EmptyMessage other)637 public void MergeFrom(EmptyMessage other) { 638 if (other == null) { 639 return; 640 } 641 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 642 } 643 644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)645 public void MergeFrom(pb::CodedInputStream input) { 646 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 647 input.ReadRawMessage(this); 648 #else 649 uint tag; 650 while ((tag = input.ReadTag()) != 0) { 651 switch(tag) { 652 default: 653 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 654 break; 655 } 656 } 657 #endif 658 } 659 660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)662 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 663 uint tag; 664 while ((tag = input.ReadTag()) != 0) { 665 switch(tag) { 666 default: 667 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 668 break; 669 } 670 } 671 } 672 #endif 673 674 } 675 676 #endregion 677 678 } 679 680 #endregion Designer generated code 681