UnittestImportPublicProto3.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/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. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. public static partial class UnittestImportPublicProto3 {
  12. #region Descriptor
  13. public static pbr::FileDescriptor Descriptor {
  14. get { return descriptor; }
  15. }
  16. private static pbr::FileDescriptor descriptor;
  17. static UnittestImportPublicProto3() {
  18. byte[] descriptorData = global::System.Convert.FromBase64String(
  19. string.Concat(
  20. "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90",
  21. "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ",
  22. "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
  23. "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
  24. descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  25. new pbr::FileDescriptor[] { },
  26. new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
  27. new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), new[]{ "E" }, null, null, null)
  28. }));
  29. }
  30. #endregion
  31. }
  32. #region Messages
  33. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  34. public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> {
  35. private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
  36. public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }
  37. public static pbr::MessageDescriptor Descriptor {
  38. get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3.Descriptor.MessageTypes[0]; }
  39. }
  40. pbr::MessageDescriptor pb::IMessage.Descriptor {
  41. get { return Descriptor; }
  42. }
  43. public PublicImportMessage() {
  44. OnConstruction();
  45. }
  46. partial void OnConstruction();
  47. public PublicImportMessage(PublicImportMessage other) : this() {
  48. e_ = other.e_;
  49. }
  50. public PublicImportMessage Clone() {
  51. return new PublicImportMessage(this);
  52. }
  53. public const int EFieldNumber = 1;
  54. private int e_;
  55. public int E {
  56. get { return e_; }
  57. set {
  58. e_ = value;
  59. }
  60. }
  61. public override bool Equals(object other) {
  62. return Equals(other as PublicImportMessage);
  63. }
  64. public bool Equals(PublicImportMessage other) {
  65. if (ReferenceEquals(other, null)) {
  66. return false;
  67. }
  68. if (ReferenceEquals(other, this)) {
  69. return true;
  70. }
  71. if (E != other.E) return false;
  72. return true;
  73. }
  74. public override int GetHashCode() {
  75. int hash = 1;
  76. if (E != 0) hash ^= E.GetHashCode();
  77. return hash;
  78. }
  79. public override string ToString() {
  80. return pb::JsonFormatter.Default.Format(this);
  81. }
  82. public void WriteTo(pb::CodedOutputStream output) {
  83. if (E != 0) {
  84. output.WriteRawTag(8);
  85. output.WriteInt32(E);
  86. }
  87. }
  88. public int CalculateSize() {
  89. int size = 0;
  90. if (E != 0) {
  91. size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
  92. }
  93. return size;
  94. }
  95. public void MergeFrom(PublicImportMessage other) {
  96. if (other == null) {
  97. return;
  98. }
  99. if (other.E != 0) {
  100. E = other.E;
  101. }
  102. }
  103. public void MergeFrom(pb::CodedInputStream input) {
  104. uint tag;
  105. while ((tag = input.ReadTag()) != 0) {
  106. switch(tag) {
  107. default:
  108. if (pb::WireFormat.IsEndGroupTag(tag)) {
  109. return;
  110. }
  111. input.ConsumeLastField();
  112. break;
  113. case 8: {
  114. E = input.ReadInt32();
  115. break;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. #endregion
  122. }
  123. #endregion Designer generated code