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