1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: src/proto/grpc/testing/payloads.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/payloads.proto</summary> 15 public static partial class PayloadsReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for src/proto/grpc/testing/payloads.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 PayloadsReflection()24 static PayloadsReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL3BheWxvYWRzLnByb3RvEgxncnBj", 28 "LnRlc3RpbmciNwoQQnl0ZUJ1ZmZlclBhcmFtcxIQCghyZXFfc2l6ZRgBIAEo", 29 "BRIRCglyZXNwX3NpemUYAiABKAUiOAoRU2ltcGxlUHJvdG9QYXJhbXMSEAoI", 30 "cmVxX3NpemUYASABKAUSEQoJcmVzcF9zaXplGAIgASgFIhQKEkNvbXBsZXhQ", 31 "cm90b1BhcmFtcyLKAQoNUGF5bG9hZENvbmZpZxI4Cg5ieXRlYnVmX3BhcmFt", 32 "cxgBIAEoCzIeLmdycGMudGVzdGluZy5CeXRlQnVmZmVyUGFyYW1zSAASOAoN", 33 "c2ltcGxlX3BhcmFtcxgCIAEoCzIfLmdycGMudGVzdGluZy5TaW1wbGVQcm90", 34 "b1BhcmFtc0gAEjoKDmNvbXBsZXhfcGFyYW1zGAMgASgLMiAuZ3JwYy50ZXN0", 35 "aW5nLkNvbXBsZXhQcm90b1BhcmFtc0gAQgkKB3BheWxvYWRiBnByb3RvMw==")); 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.ByteBufferParams), global::Grpc.Testing.ByteBufferParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null, null), 40 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleProtoParams), global::Grpc.Testing.SimpleProtoParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null, null), 41 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ComplexProtoParams), global::Grpc.Testing.ComplexProtoParams.Parser, null, null, null, null, null), 42 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.PayloadConfig), global::Grpc.Testing.PayloadConfig.Parser, new[]{ "BytebufParams", "SimpleParams", "ComplexParams" }, new[]{ "Payload" }, null, null, null) 43 })); 44 } 45 #endregion 46 47 } 48 #region Messages 49 public sealed partial class ByteBufferParams : pb::IMessage<ByteBufferParams> 50 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 51 , pb::IBufferMessage 52 #endif 53 { 54 private static readonly pb::MessageParser<ByteBufferParams> _parser = new pb::MessageParser<ByteBufferParams>(() => new ByteBufferParams()); 55 private pb::UnknownFieldSet _unknownFields; 56 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 57 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 58 public static pb::MessageParser<ByteBufferParams> Parser { get { return _parser; } } 59 60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 61 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 62 public static pbr::MessageDescriptor Descriptor { 63 get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[0]; } 64 } 65 66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 67 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 68 pbr::MessageDescriptor pb::IMessage.Descriptor { 69 get { return Descriptor; } 70 } 71 72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 73 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ByteBufferParams()74 public ByteBufferParams() { 75 OnConstruction(); 76 } 77 OnConstruction()78 partial void OnConstruction(); 79 80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 81 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ByteBufferParams(ByteBufferParams other)82 public ByteBufferParams(ByteBufferParams other) : this() { 83 reqSize_ = other.reqSize_; 84 respSize_ = other.respSize_; 85 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 86 } 87 88 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 89 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()90 public ByteBufferParams Clone() { 91 return new ByteBufferParams(this); 92 } 93 94 /// <summary>Field number for the "req_size" field.</summary> 95 public const int ReqSizeFieldNumber = 1; 96 private int reqSize_; 97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 98 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 99 public int ReqSize { 100 get { return reqSize_; } 101 set { 102 reqSize_ = value; 103 } 104 } 105 106 /// <summary>Field number for the "resp_size" field.</summary> 107 public const int RespSizeFieldNumber = 2; 108 private int respSize_; 109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 111 public int RespSize { 112 get { return respSize_; } 113 set { 114 respSize_ = value; 115 } 116 } 117 118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)120 public override bool Equals(object other) { 121 return Equals(other as ByteBufferParams); 122 } 123 124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ByteBufferParams other)126 public bool Equals(ByteBufferParams other) { 127 if (ReferenceEquals(other, null)) { 128 return false; 129 } 130 if (ReferenceEquals(other, this)) { 131 return true; 132 } 133 if (ReqSize != other.ReqSize) return false; 134 if (RespSize != other.RespSize) return false; 135 return Equals(_unknownFields, other._unknownFields); 136 } 137 138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()140 public override int GetHashCode() { 141 int hash = 1; 142 if (ReqSize != 0) hash ^= ReqSize.GetHashCode(); 143 if (RespSize != 0) hash ^= RespSize.GetHashCode(); 144 if (_unknownFields != null) { 145 hash ^= _unknownFields.GetHashCode(); 146 } 147 return hash; 148 } 149 150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()152 public override string ToString() { 153 return pb::JsonFormatter.ToDiagnosticString(this); 154 } 155 156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)158 public void WriteTo(pb::CodedOutputStream output) { 159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 160 output.WriteRawMessage(this); 161 #else 162 if (ReqSize != 0) { 163 output.WriteRawTag(8); 164 output.WriteInt32(ReqSize); 165 } 166 if (RespSize != 0) { 167 output.WriteRawTag(16); 168 output.WriteInt32(RespSize); 169 } 170 if (_unknownFields != null) { 171 _unknownFields.WriteTo(output); 172 } 173 #endif 174 } 175 176 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 178 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)179 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 180 if (ReqSize != 0) { 181 output.WriteRawTag(8); 182 output.WriteInt32(ReqSize); 183 } 184 if (RespSize != 0) { 185 output.WriteRawTag(16); 186 output.WriteInt32(RespSize); 187 } 188 if (_unknownFields != null) { 189 _unknownFields.WriteTo(ref output); 190 } 191 } 192 #endif 193 194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()196 public int CalculateSize() { 197 int size = 0; 198 if (ReqSize != 0) { 199 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqSize); 200 } 201 if (RespSize != 0) { 202 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RespSize); 203 } 204 if (_unknownFields != null) { 205 size += _unknownFields.CalculateSize(); 206 } 207 return size; 208 } 209 210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 211 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ByteBufferParams other)212 public void MergeFrom(ByteBufferParams other) { 213 if (other == null) { 214 return; 215 } 216 if (other.ReqSize != 0) { 217 ReqSize = other.ReqSize; 218 } 219 if (other.RespSize != 0) { 220 RespSize = other.RespSize; 221 } 222 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 223 } 224 225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)227 public void MergeFrom(pb::CodedInputStream input) { 228 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 229 input.ReadRawMessage(this); 230 #else 231 uint tag; 232 while ((tag = input.ReadTag()) != 0) { 233 switch(tag) { 234 default: 235 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 236 break; 237 case 8: { 238 ReqSize = input.ReadInt32(); 239 break; 240 } 241 case 16: { 242 RespSize = input.ReadInt32(); 243 break; 244 } 245 } 246 } 247 #endif 248 } 249 250 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)253 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 254 uint tag; 255 while ((tag = input.ReadTag()) != 0) { 256 switch(tag) { 257 default: 258 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 259 break; 260 case 8: { 261 ReqSize = input.ReadInt32(); 262 break; 263 } 264 case 16: { 265 RespSize = input.ReadInt32(); 266 break; 267 } 268 } 269 } 270 } 271 #endif 272 273 } 274 275 public sealed partial class SimpleProtoParams : pb::IMessage<SimpleProtoParams> 276 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 277 , pb::IBufferMessage 278 #endif 279 { 280 private static readonly pb::MessageParser<SimpleProtoParams> _parser = new pb::MessageParser<SimpleProtoParams>(() => new SimpleProtoParams()); 281 private pb::UnknownFieldSet _unknownFields; 282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 284 public static pb::MessageParser<SimpleProtoParams> Parser { get { return _parser; } } 285 286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 288 public static pbr::MessageDescriptor Descriptor { 289 get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[1]; } 290 } 291 292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 294 pbr::MessageDescriptor pb::IMessage.Descriptor { 295 get { return Descriptor; } 296 } 297 298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SimpleProtoParams()300 public SimpleProtoParams() { 301 OnConstruction(); 302 } 303 OnConstruction()304 partial void OnConstruction(); 305 306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SimpleProtoParams(SimpleProtoParams other)308 public SimpleProtoParams(SimpleProtoParams other) : this() { 309 reqSize_ = other.reqSize_; 310 respSize_ = other.respSize_; 311 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 312 } 313 314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()316 public SimpleProtoParams Clone() { 317 return new SimpleProtoParams(this); 318 } 319 320 /// <summary>Field number for the "req_size" field.</summary> 321 public const int ReqSizeFieldNumber = 1; 322 private int reqSize_; 323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 325 public int ReqSize { 326 get { return reqSize_; } 327 set { 328 reqSize_ = value; 329 } 330 } 331 332 /// <summary>Field number for the "resp_size" field.</summary> 333 public const int RespSizeFieldNumber = 2; 334 private int respSize_; 335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 337 public int RespSize { 338 get { return respSize_; } 339 set { 340 respSize_ = value; 341 } 342 } 343 344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)346 public override bool Equals(object other) { 347 return Equals(other as SimpleProtoParams); 348 } 349 350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SimpleProtoParams other)352 public bool Equals(SimpleProtoParams other) { 353 if (ReferenceEquals(other, null)) { 354 return false; 355 } 356 if (ReferenceEquals(other, this)) { 357 return true; 358 } 359 if (ReqSize != other.ReqSize) return false; 360 if (RespSize != other.RespSize) return false; 361 return Equals(_unknownFields, other._unknownFields); 362 } 363 364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()366 public override int GetHashCode() { 367 int hash = 1; 368 if (ReqSize != 0) hash ^= ReqSize.GetHashCode(); 369 if (RespSize != 0) hash ^= RespSize.GetHashCode(); 370 if (_unknownFields != null) { 371 hash ^= _unknownFields.GetHashCode(); 372 } 373 return hash; 374 } 375 376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()378 public override string ToString() { 379 return pb::JsonFormatter.ToDiagnosticString(this); 380 } 381 382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)384 public void WriteTo(pb::CodedOutputStream output) { 385 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 386 output.WriteRawMessage(this); 387 #else 388 if (ReqSize != 0) { 389 output.WriteRawTag(8); 390 output.WriteInt32(ReqSize); 391 } 392 if (RespSize != 0) { 393 output.WriteRawTag(16); 394 output.WriteInt32(RespSize); 395 } 396 if (_unknownFields != null) { 397 _unknownFields.WriteTo(output); 398 } 399 #endif 400 } 401 402 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 404 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)405 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 406 if (ReqSize != 0) { 407 output.WriteRawTag(8); 408 output.WriteInt32(ReqSize); 409 } 410 if (RespSize != 0) { 411 output.WriteRawTag(16); 412 output.WriteInt32(RespSize); 413 } 414 if (_unknownFields != null) { 415 _unknownFields.WriteTo(ref output); 416 } 417 } 418 #endif 419 420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()422 public int CalculateSize() { 423 int size = 0; 424 if (ReqSize != 0) { 425 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqSize); 426 } 427 if (RespSize != 0) { 428 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RespSize); 429 } 430 if (_unknownFields != null) { 431 size += _unknownFields.CalculateSize(); 432 } 433 return size; 434 } 435 436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SimpleProtoParams other)438 public void MergeFrom(SimpleProtoParams other) { 439 if (other == null) { 440 return; 441 } 442 if (other.ReqSize != 0) { 443 ReqSize = other.ReqSize; 444 } 445 if (other.RespSize != 0) { 446 RespSize = other.RespSize; 447 } 448 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 449 } 450 451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)453 public void MergeFrom(pb::CodedInputStream input) { 454 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 455 input.ReadRawMessage(this); 456 #else 457 uint tag; 458 while ((tag = input.ReadTag()) != 0) { 459 switch(tag) { 460 default: 461 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 462 break; 463 case 8: { 464 ReqSize = input.ReadInt32(); 465 break; 466 } 467 case 16: { 468 RespSize = input.ReadInt32(); 469 break; 470 } 471 } 472 } 473 #endif 474 } 475 476 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)479 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 480 uint tag; 481 while ((tag = input.ReadTag()) != 0) { 482 switch(tag) { 483 default: 484 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 485 break; 486 case 8: { 487 ReqSize = input.ReadInt32(); 488 break; 489 } 490 case 16: { 491 RespSize = input.ReadInt32(); 492 break; 493 } 494 } 495 } 496 } 497 #endif 498 499 } 500 501 /// <summary> 502 /// TODO (vpai): Fill this in once the details of complex, representative 503 /// protos are decided 504 /// </summary> 505 public sealed partial class ComplexProtoParams : pb::IMessage<ComplexProtoParams> 506 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 507 , pb::IBufferMessage 508 #endif 509 { 510 private static readonly pb::MessageParser<ComplexProtoParams> _parser = new pb::MessageParser<ComplexProtoParams>(() => new ComplexProtoParams()); 511 private pb::UnknownFieldSet _unknownFields; 512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 514 public static pb::MessageParser<ComplexProtoParams> Parser { get { return _parser; } } 515 516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 518 public static pbr::MessageDescriptor Descriptor { 519 get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[2]; } 520 } 521 522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 524 pbr::MessageDescriptor pb::IMessage.Descriptor { 525 get { return Descriptor; } 526 } 527 528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexProtoParams()530 public ComplexProtoParams() { 531 OnConstruction(); 532 } 533 OnConstruction()534 partial void OnConstruction(); 535 536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexProtoParams(ComplexProtoParams other)538 public ComplexProtoParams(ComplexProtoParams other) : this() { 539 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 540 } 541 542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()544 public ComplexProtoParams Clone() { 545 return new ComplexProtoParams(this); 546 } 547 548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)550 public override bool Equals(object other) { 551 return Equals(other as ComplexProtoParams); 552 } 553 554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ComplexProtoParams other)556 public bool Equals(ComplexProtoParams other) { 557 if (ReferenceEquals(other, null)) { 558 return false; 559 } 560 if (ReferenceEquals(other, this)) { 561 return true; 562 } 563 return Equals(_unknownFields, other._unknownFields); 564 } 565 566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()568 public override int GetHashCode() { 569 int hash = 1; 570 if (_unknownFields != null) { 571 hash ^= _unknownFields.GetHashCode(); 572 } 573 return hash; 574 } 575 576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 577 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()578 public override string ToString() { 579 return pb::JsonFormatter.ToDiagnosticString(this); 580 } 581 582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)584 public void WriteTo(pb::CodedOutputStream output) { 585 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 586 output.WriteRawMessage(this); 587 #else 588 if (_unknownFields != null) { 589 _unknownFields.WriteTo(output); 590 } 591 #endif 592 } 593 594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)597 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 598 if (_unknownFields != null) { 599 _unknownFields.WriteTo(ref output); 600 } 601 } 602 #endif 603 604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()606 public int CalculateSize() { 607 int size = 0; 608 if (_unknownFields != null) { 609 size += _unknownFields.CalculateSize(); 610 } 611 return size; 612 } 613 614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ComplexProtoParams other)616 public void MergeFrom(ComplexProtoParams other) { 617 if (other == null) { 618 return; 619 } 620 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 621 } 622 623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)625 public void MergeFrom(pb::CodedInputStream input) { 626 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 627 input.ReadRawMessage(this); 628 #else 629 uint tag; 630 while ((tag = input.ReadTag()) != 0) { 631 switch(tag) { 632 default: 633 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 634 break; 635 } 636 } 637 #endif 638 } 639 640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)643 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 644 uint tag; 645 while ((tag = input.ReadTag()) != 0) { 646 switch(tag) { 647 default: 648 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 649 break; 650 } 651 } 652 } 653 #endif 654 655 } 656 657 public sealed partial class PayloadConfig : pb::IMessage<PayloadConfig> 658 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 659 , pb::IBufferMessage 660 #endif 661 { 662 private static readonly pb::MessageParser<PayloadConfig> _parser = new pb::MessageParser<PayloadConfig>(() => new PayloadConfig()); 663 private pb::UnknownFieldSet _unknownFields; 664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 666 public static pb::MessageParser<PayloadConfig> Parser { get { return _parser; } } 667 668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 670 public static pbr::MessageDescriptor Descriptor { 671 get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[3]; } 672 } 673 674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 676 pbr::MessageDescriptor pb::IMessage.Descriptor { 677 get { return Descriptor; } 678 } 679 680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] PayloadConfig()682 public PayloadConfig() { 683 OnConstruction(); 684 } 685 OnConstruction()686 partial void OnConstruction(); 687 688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] PayloadConfig(PayloadConfig other)690 public PayloadConfig(PayloadConfig other) : this() { 691 switch (other.PayloadCase) { 692 case PayloadOneofCase.BytebufParams: 693 BytebufParams = other.BytebufParams.Clone(); 694 break; 695 case PayloadOneofCase.SimpleParams: 696 SimpleParams = other.SimpleParams.Clone(); 697 break; 698 case PayloadOneofCase.ComplexParams: 699 ComplexParams = other.ComplexParams.Clone(); 700 break; 701 } 702 703 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 704 } 705 706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 707 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()708 public PayloadConfig Clone() { 709 return new PayloadConfig(this); 710 } 711 712 /// <summary>Field number for the "bytebuf_params" field.</summary> 713 public const int BytebufParamsFieldNumber = 1; 714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 716 public global::Grpc.Testing.ByteBufferParams BytebufParams { 717 get { return payloadCase_ == PayloadOneofCase.BytebufParams ? (global::Grpc.Testing.ByteBufferParams) payload_ : null; } 718 set { 719 payload_ = value; 720 payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.BytebufParams; 721 } 722 } 723 724 /// <summary>Field number for the "simple_params" field.</summary> 725 public const int SimpleParamsFieldNumber = 2; 726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 728 public global::Grpc.Testing.SimpleProtoParams SimpleParams { 729 get { return payloadCase_ == PayloadOneofCase.SimpleParams ? (global::Grpc.Testing.SimpleProtoParams) payload_ : null; } 730 set { 731 payload_ = value; 732 payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.SimpleParams; 733 } 734 } 735 736 /// <summary>Field number for the "complex_params" field.</summary> 737 public const int ComplexParamsFieldNumber = 3; 738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 740 public global::Grpc.Testing.ComplexProtoParams ComplexParams { 741 get { return payloadCase_ == PayloadOneofCase.ComplexParams ? (global::Grpc.Testing.ComplexProtoParams) payload_ : null; } 742 set { 743 payload_ = value; 744 payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.ComplexParams; 745 } 746 } 747 748 private object payload_; 749 /// <summary>Enum of possible cases for the "payload" oneof.</summary> 750 public enum PayloadOneofCase { 751 None = 0, 752 BytebufParams = 1, 753 SimpleParams = 2, 754 ComplexParams = 3, 755 } 756 private PayloadOneofCase payloadCase_ = PayloadOneofCase.None; 757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 759 public PayloadOneofCase PayloadCase { 760 get { return payloadCase_; } 761 } 762 763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearPayload()765 public void ClearPayload() { 766 payloadCase_ = PayloadOneofCase.None; 767 payload_ = null; 768 } 769 770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)772 public override bool Equals(object other) { 773 return Equals(other as PayloadConfig); 774 } 775 776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(PayloadConfig other)778 public bool Equals(PayloadConfig other) { 779 if (ReferenceEquals(other, null)) { 780 return false; 781 } 782 if (ReferenceEquals(other, this)) { 783 return true; 784 } 785 if (!object.Equals(BytebufParams, other.BytebufParams)) return false; 786 if (!object.Equals(SimpleParams, other.SimpleParams)) return false; 787 if (!object.Equals(ComplexParams, other.ComplexParams)) return false; 788 if (PayloadCase != other.PayloadCase) return false; 789 return Equals(_unknownFields, other._unknownFields); 790 } 791 792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()794 public override int GetHashCode() { 795 int hash = 1; 796 if (payloadCase_ == PayloadOneofCase.BytebufParams) hash ^= BytebufParams.GetHashCode(); 797 if (payloadCase_ == PayloadOneofCase.SimpleParams) hash ^= SimpleParams.GetHashCode(); 798 if (payloadCase_ == PayloadOneofCase.ComplexParams) hash ^= ComplexParams.GetHashCode(); 799 hash ^= (int) payloadCase_; 800 if (_unknownFields != null) { 801 hash ^= _unknownFields.GetHashCode(); 802 } 803 return hash; 804 } 805 806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()808 public override string ToString() { 809 return pb::JsonFormatter.ToDiagnosticString(this); 810 } 811 812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)814 public void WriteTo(pb::CodedOutputStream output) { 815 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 816 output.WriteRawMessage(this); 817 #else 818 if (payloadCase_ == PayloadOneofCase.BytebufParams) { 819 output.WriteRawTag(10); 820 output.WriteMessage(BytebufParams); 821 } 822 if (payloadCase_ == PayloadOneofCase.SimpleParams) { 823 output.WriteRawTag(18); 824 output.WriteMessage(SimpleParams); 825 } 826 if (payloadCase_ == PayloadOneofCase.ComplexParams) { 827 output.WriteRawTag(26); 828 output.WriteMessage(ComplexParams); 829 } 830 if (_unknownFields != null) { 831 _unknownFields.WriteTo(output); 832 } 833 #endif 834 } 835 836 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)839 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 840 if (payloadCase_ == PayloadOneofCase.BytebufParams) { 841 output.WriteRawTag(10); 842 output.WriteMessage(BytebufParams); 843 } 844 if (payloadCase_ == PayloadOneofCase.SimpleParams) { 845 output.WriteRawTag(18); 846 output.WriteMessage(SimpleParams); 847 } 848 if (payloadCase_ == PayloadOneofCase.ComplexParams) { 849 output.WriteRawTag(26); 850 output.WriteMessage(ComplexParams); 851 } 852 if (_unknownFields != null) { 853 _unknownFields.WriteTo(ref output); 854 } 855 } 856 #endif 857 858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()860 public int CalculateSize() { 861 int size = 0; 862 if (payloadCase_ == PayloadOneofCase.BytebufParams) { 863 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BytebufParams); 864 } 865 if (payloadCase_ == PayloadOneofCase.SimpleParams) { 866 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleParams); 867 } 868 if (payloadCase_ == PayloadOneofCase.ComplexParams) { 869 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComplexParams); 870 } 871 if (_unknownFields != null) { 872 size += _unknownFields.CalculateSize(); 873 } 874 return size; 875 } 876 877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(PayloadConfig other)879 public void MergeFrom(PayloadConfig other) { 880 if (other == null) { 881 return; 882 } 883 switch (other.PayloadCase) { 884 case PayloadOneofCase.BytebufParams: 885 if (BytebufParams == null) { 886 BytebufParams = new global::Grpc.Testing.ByteBufferParams(); 887 } 888 BytebufParams.MergeFrom(other.BytebufParams); 889 break; 890 case PayloadOneofCase.SimpleParams: 891 if (SimpleParams == null) { 892 SimpleParams = new global::Grpc.Testing.SimpleProtoParams(); 893 } 894 SimpleParams.MergeFrom(other.SimpleParams); 895 break; 896 case PayloadOneofCase.ComplexParams: 897 if (ComplexParams == null) { 898 ComplexParams = new global::Grpc.Testing.ComplexProtoParams(); 899 } 900 ComplexParams.MergeFrom(other.ComplexParams); 901 break; 902 } 903 904 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 905 } 906 907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 908 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)909 public void MergeFrom(pb::CodedInputStream input) { 910 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 911 input.ReadRawMessage(this); 912 #else 913 uint tag; 914 while ((tag = input.ReadTag()) != 0) { 915 switch(tag) { 916 default: 917 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 918 break; 919 case 10: { 920 global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams(); 921 if (payloadCase_ == PayloadOneofCase.BytebufParams) { 922 subBuilder.MergeFrom(BytebufParams); 923 } 924 input.ReadMessage(subBuilder); 925 BytebufParams = subBuilder; 926 break; 927 } 928 case 18: { 929 global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams(); 930 if (payloadCase_ == PayloadOneofCase.SimpleParams) { 931 subBuilder.MergeFrom(SimpleParams); 932 } 933 input.ReadMessage(subBuilder); 934 SimpleParams = subBuilder; 935 break; 936 } 937 case 26: { 938 global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams(); 939 if (payloadCase_ == PayloadOneofCase.ComplexParams) { 940 subBuilder.MergeFrom(ComplexParams); 941 } 942 input.ReadMessage(subBuilder); 943 ComplexParams = subBuilder; 944 break; 945 } 946 } 947 } 948 #endif 949 } 950 951 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)954 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 955 uint tag; 956 while ((tag = input.ReadTag()) != 0) { 957 switch(tag) { 958 default: 959 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 960 break; 961 case 10: { 962 global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams(); 963 if (payloadCase_ == PayloadOneofCase.BytebufParams) { 964 subBuilder.MergeFrom(BytebufParams); 965 } 966 input.ReadMessage(subBuilder); 967 BytebufParams = subBuilder; 968 break; 969 } 970 case 18: { 971 global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams(); 972 if (payloadCase_ == PayloadOneofCase.SimpleParams) { 973 subBuilder.MergeFrom(SimpleParams); 974 } 975 input.ReadMessage(subBuilder); 976 SimpleParams = subBuilder; 977 break; 978 } 979 case 26: { 980 global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams(); 981 if (payloadCase_ == PayloadOneofCase.ComplexParams) { 982 subBuilder.MergeFrom(ComplexParams); 983 } 984 input.ReadMessage(subBuilder); 985 ComplexParams = subBuilder; 986 break; 987 } 988 } 989 } 990 } 991 #endif 992 993 } 994 995 #endregion 996 997 } 998 999 #endregion Designer generated code 1000