UnittestImportPublicProto3.cs 5.6 KB

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