UnittestImportPublicProto3.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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>, pb::IBufferMessage {
  37. private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
  38. private pb::UnknownFieldSet _unknownFields;
  39. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  40. public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  42. public static pbr::MessageDescriptor Descriptor {
  43. get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; }
  44. }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  46. pbr::MessageDescriptor pb::IMessage.Descriptor {
  47. get { return Descriptor; }
  48. }
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public PublicImportMessage() {
  51. OnConstruction();
  52. }
  53. partial void OnConstruction();
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  55. public PublicImportMessage(PublicImportMessage other) : this() {
  56. e_ = other.e_;
  57. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. public PublicImportMessage Clone() {
  61. return new PublicImportMessage(this);
  62. }
  63. /// <summary>Field number for the "e" field.</summary>
  64. public const int EFieldNumber = 1;
  65. private int e_;
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. public int E {
  68. get { return e_; }
  69. set {
  70. e_ = value;
  71. }
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  74. public override bool Equals(object other) {
  75. return Equals(other as PublicImportMessage);
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. public bool Equals(PublicImportMessage other) {
  79. if (ReferenceEquals(other, null)) {
  80. return false;
  81. }
  82. if (ReferenceEquals(other, this)) {
  83. return true;
  84. }
  85. if (E != other.E) return false;
  86. return Equals(_unknownFields, other._unknownFields);
  87. }
  88. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  89. public override int GetHashCode() {
  90. int hash = 1;
  91. if (E != 0) hash ^= E.GetHashCode();
  92. if (_unknownFields != null) {
  93. hash ^= _unknownFields.GetHashCode();
  94. }
  95. return hash;
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public override string ToString() {
  99. return pb::JsonFormatter.ToDiagnosticString(this);
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public void WriteTo(pb::CodedOutputStream output) {
  103. if (E != 0) {
  104. output.WriteRawTag(8);
  105. output.WriteInt32(E);
  106. }
  107. if (_unknownFields != null) {
  108. _unknownFields.WriteTo(output);
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  112. public int CalculateSize() {
  113. int size = 0;
  114. if (E != 0) {
  115. size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
  116. }
  117. if (_unknownFields != null) {
  118. size += _unknownFields.CalculateSize();
  119. }
  120. return size;
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  123. public void MergeFrom(PublicImportMessage other) {
  124. if (other == null) {
  125. return;
  126. }
  127. if (other.E != 0) {
  128. E = other.E;
  129. }
  130. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public void MergeFrom(pb::CodedInputStream input) {
  134. input.ReadRawMessage(this);
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  138. uint tag;
  139. while ((tag = input.ReadTag()) != 0) {
  140. switch(tag) {
  141. default:
  142. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  143. break;
  144. case 8: {
  145. E = input.ReadInt32();
  146. break;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. #endregion
  153. }
  154. #endregion Designer generated code