UnittestIssue6936C.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_issue6936_c.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_c.proto</summary>
  13. public static partial class UnittestIssue6936CReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_issue6936_c.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestIssue6936CReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Chp1bml0dGVzdF9pc3N1ZTY5MzZfYy5wcm90bxIPdW5pdHRlc3RfaXNzdWVz",
  24. "Ghp1bml0dGVzdF9pc3N1ZTY5MzZfYS5wcm90bxoadW5pdHRlc3RfaXNzdWU2",
  25. "OTM2X2IucHJvdG8iMQoDQmFyEiEKA2ZvbxgBIAEoCzIULnVuaXR0ZXN0X2lz",
  26. "c3Vlcy5Gb286B4K1GANiYXJCHaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJv",
  27. "dG9zYgZwcm90bzM="));
  28. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  29. new pbr::FileDescriptor[] { global::UnitTest.Issues.TestProtos.UnittestIssue6936AReflection.Descriptor, global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor, },
  30. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  31. new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Bar), global::UnitTest.Issues.TestProtos.Bar.Parser, new[]{ "Foo" }, null, null, null, null)
  32. }));
  33. }
  34. #endregion
  35. }
  36. #region Messages
  37. public sealed partial class Bar : pb::IMessage<Bar> {
  38. private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
  39. private pb::UnknownFieldSet _unknownFields;
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  41. public static pb::MessageParser<Bar> Parser { get { return _parser; } }
  42. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  43. public static pbr::MessageDescriptor Descriptor {
  44. get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936CReflection.Descriptor.MessageTypes[0]; }
  45. }
  46. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  47. pbr::MessageDescriptor pb::IMessage.Descriptor {
  48. get { return Descriptor; }
  49. }
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  51. public Bar() {
  52. OnConstruction();
  53. }
  54. partial void OnConstruction();
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. public Bar(Bar other) : this() {
  57. foo_ = other.foo_ != null ? other.foo_.Clone() : null;
  58. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  59. }
  60. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  61. public Bar Clone() {
  62. return new Bar(this);
  63. }
  64. /// <summary>Field number for the "foo" field.</summary>
  65. public const int FooFieldNumber = 1;
  66. private global::UnitTest.Issues.TestProtos.Foo foo_;
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public global::UnitTest.Issues.TestProtos.Foo Foo {
  69. get { return foo_; }
  70. set {
  71. foo_ = value;
  72. }
  73. }
  74. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  75. public override bool Equals(object other) {
  76. return Equals(other as Bar);
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  79. public bool Equals(Bar other) {
  80. if (ReferenceEquals(other, null)) {
  81. return false;
  82. }
  83. if (ReferenceEquals(other, this)) {
  84. return true;
  85. }
  86. if (!object.Equals(Foo, other.Foo)) return false;
  87. return Equals(_unknownFields, other._unknownFields);
  88. }
  89. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  90. public override int GetHashCode() {
  91. int hash = 1;
  92. if (foo_ != null) hash ^= Foo.GetHashCode();
  93. if (_unknownFields != null) {
  94. hash ^= _unknownFields.GetHashCode();
  95. }
  96. return hash;
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. public override string ToString() {
  100. return pb::JsonFormatter.ToDiagnosticString(this);
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public void WriteTo(pb::CodedOutputStream output) {
  104. if (foo_ != null) {
  105. output.WriteRawTag(10);
  106. output.WriteMessage(Foo);
  107. }
  108. if (_unknownFields != null) {
  109. _unknownFields.WriteTo(output);
  110. }
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. public int CalculateSize() {
  114. int size = 0;
  115. if (foo_ != null) {
  116. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Foo);
  117. }
  118. if (_unknownFields != null) {
  119. size += _unknownFields.CalculateSize();
  120. }
  121. return size;
  122. }
  123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  124. public void MergeFrom(Bar other) {
  125. if (other == null) {
  126. return;
  127. }
  128. if (other.foo_ != null) {
  129. if (foo_ == null) {
  130. Foo = new global::UnitTest.Issues.TestProtos.Foo();
  131. }
  132. Foo.MergeFrom(other.Foo);
  133. }
  134. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public void MergeFrom(pb::CodedInputStream input) {
  138. uint tag;
  139. while ((tag = input.ReadTag()) != 0) {
  140. switch(tag) {
  141. default:
  142. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  143. break;
  144. case 10: {
  145. if (foo_ == null) {
  146. Foo = new global::UnitTest.Issues.TestProtos.Foo();
  147. }
  148. input.ReadMessage(Foo);
  149. break;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. #endregion
  156. }
  157. #endregion Designer generated code