UnittestIssue6936B.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_issue6936_b.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace UnitTest.Issues.TestProtos {
  12. /// <summary>Holder for reflection information generated from unittest_issue6936_b.proto</summary>
  13. public static partial class UnittestIssue6936BReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_issue6936_b.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestIssue6936BReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Chp1bml0dGVzdF9pc3N1ZTY5MzZfYi5wcm90bxIPdW5pdHRlc3RfaXNzdWVz",
  24. "Ghp1bml0dGVzdF9pc3N1ZTY5MzZfYS5wcm90byIOCgNGb286B4K1GANmb29C",
  25. "HaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJvdG9zYgZwcm90bzM="));
  26. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  27. new pbr::FileDescriptor[] { global::UnitTest.Issues.TestProtos.UnittestIssue6936AReflection.Descriptor, },
  28. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  29. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Foo), global::UnitTest.Issues.TestProtos.Foo.Parser, null, null, null, null, null)
  30. }));
  31. }
  32. #endregion
  33. }
  34. #region Messages
  35. public sealed partial class Foo : pb::IMessage<Foo>, pb::IBufferMessage {
  36. private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo());
  37. private pb::UnknownFieldSet _unknownFields;
  38. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  39. public static pb::MessageParser<Foo> Parser { get { return _parser; } }
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  41. public static pbr::MessageDescriptor Descriptor {
  42. get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor.MessageTypes[0]; }
  43. }
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  45. pbr::MessageDescriptor pb::IMessage.Descriptor {
  46. get { return Descriptor; }
  47. }
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  49. public Foo() {
  50. OnConstruction();
  51. }
  52. partial void OnConstruction();
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. public Foo(Foo other) : this() {
  55. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  56. }
  57. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  58. public Foo Clone() {
  59. return new Foo(this);
  60. }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. public override bool Equals(object other) {
  63. return Equals(other as Foo);
  64. }
  65. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  66. public bool Equals(Foo other) {
  67. if (ReferenceEquals(other, null)) {
  68. return false;
  69. }
  70. if (ReferenceEquals(other, this)) {
  71. return true;
  72. }
  73. return Equals(_unknownFields, other._unknownFields);
  74. }
  75. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  76. public override int GetHashCode() {
  77. int hash = 1;
  78. if (_unknownFields != null) {
  79. hash ^= _unknownFields.GetHashCode();
  80. }
  81. return hash;
  82. }
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  84. public override string ToString() {
  85. return pb::JsonFormatter.ToDiagnosticString(this);
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public void WriteTo(pb::CodedOutputStream output) {
  89. if (_unknownFields != null) {
  90. _unknownFields.WriteTo(output);
  91. }
  92. }
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  94. public int CalculateSize() {
  95. int size = 0;
  96. if (_unknownFields != null) {
  97. size += _unknownFields.CalculateSize();
  98. }
  99. return size;
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public void MergeFrom(Foo other) {
  103. if (other == null) {
  104. return;
  105. }
  106. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  109. public void MergeFrom(pb::CodedInputStream input) {
  110. input.ReadRawMessage(this);
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  114. uint tag;
  115. while ((tag = input.ReadTag()) != 0) {
  116. switch(tag) {
  117. default:
  118. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  119. break;
  120. }
  121. }
  122. }
  123. }
  124. #endregion
  125. }
  126. #endregion Designer generated code