UnittestImportPublicProto3.cs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_import_public_proto3.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 Google.Protobuf.TestProtos {
  12. /// <summary>Holder for reflection information generated from unittest_import_public_proto3.proto</summary>
  13. public static partial class UnittestImportPublicProto3Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_import_public_proto3.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestImportPublicProto3Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiN1bml0dGVzdF9pbXBvcnRfcHVibGljX3Byb3RvMy5wcm90bxIYcHJvdG9i",
  24. "dWZfdW5pdHRlc3RfaW1wb3J0IiAKE1B1YmxpY0ltcG9ydE1lc3NhZ2USCQoB",
  25. "ZRgBIAEoBUIdqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3Rv",
  26. "Mw=="));
  27. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  28. new pbr::FileDescriptor[] { },
  29. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  30. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage.Parser, new[]{ "E" }, null, null, null, null)
  31. }));
  32. }
  33. #endregion
  34. }
  35. #region Messages
  36. public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage>
  37. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  38. , pb::IBufferMessage
  39. #endif
  40. {
  41. private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
  42. private pb::UnknownFieldSet _unknownFields;
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  44. public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  46. public static pbr::MessageDescriptor Descriptor {
  47. get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; }
  48. }
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. pbr::MessageDescriptor pb::IMessage.Descriptor {
  51. get { return Descriptor; }
  52. }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. public PublicImportMessage() {
  55. OnConstruction();
  56. }
  57. partial void OnConstruction();
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. public PublicImportMessage(PublicImportMessage other) : this() {
  60. e_ = other.e_;
  61. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. public PublicImportMessage Clone() {
  65. return new PublicImportMessage(this);
  66. }
  67. /// <summary>Field number for the "e" field.</summary>
  68. public const int EFieldNumber = 1;
  69. private int e_;
  70. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  71. public int E {
  72. get { return e_; }
  73. set {
  74. e_ = value;
  75. }
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. public override bool Equals(object other) {
  79. return Equals(other as PublicImportMessage);
  80. }
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  82. public bool Equals(PublicImportMessage other) {
  83. if (ReferenceEquals(other, null)) {
  84. return false;
  85. }
  86. if (ReferenceEquals(other, this)) {
  87. return true;
  88. }
  89. if (E != other.E) return false;
  90. return Equals(_unknownFields, other._unknownFields);
  91. }
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. public override int GetHashCode() {
  94. int hash = 1;
  95. if (E != 0) hash ^= E.GetHashCode();
  96. if (_unknownFields != null) {
  97. hash ^= _unknownFields.GetHashCode();
  98. }
  99. return hash;
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public override string ToString() {
  103. return pb::JsonFormatter.ToDiagnosticString(this);
  104. }
  105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  106. public void WriteTo(pb::CodedOutputStream output) {
  107. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  108. output.WriteRawMessage(this);
  109. #else
  110. if (E != 0) {
  111. output.WriteRawTag(8);
  112. output.WriteInt32(E);
  113. }
  114. if (_unknownFields != null) {
  115. _unknownFields.WriteTo(output);
  116. }
  117. #endif
  118. }
  119. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  121. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  122. if (E != 0) {
  123. output.WriteRawTag(8);
  124. output.WriteInt32(E);
  125. }
  126. if (_unknownFields != null) {
  127. _unknownFields.WriteTo(ref output);
  128. }
  129. }
  130. #endif
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. public int CalculateSize() {
  133. int size = 0;
  134. if (E != 0) {
  135. size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
  136. }
  137. if (_unknownFields != null) {
  138. size += _unknownFields.CalculateSize();
  139. }
  140. return size;
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public void MergeFrom(PublicImportMessage other) {
  144. if (other == null) {
  145. return;
  146. }
  147. if (other.E != 0) {
  148. E = other.E;
  149. }
  150. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  153. public void MergeFrom(pb::CodedInputStream input) {
  154. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  155. input.ReadRawMessage(this);
  156. #else
  157. uint tag;
  158. while ((tag = input.ReadTag()) != 0) {
  159. switch(tag) {
  160. default:
  161. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  162. break;
  163. case 8: {
  164. E = input.ReadInt32();
  165. break;
  166. }
  167. }
  168. }
  169. #endif
  170. }
  171. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  173. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  174. uint tag;
  175. while ((tag = input.ReadTag()) != 0) {
  176. switch(tag) {
  177. default:
  178. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  179. break;
  180. case 8: {
  181. E = input.ReadInt32();
  182. break;
  183. }
  184. }
  185. }
  186. }
  187. #endif
  188. }
  189. #endregion
  190. }
  191. #endregion Designer generated code