| OLD | NEW |
| (Empty) |
| 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 | |
| 6 using pb = global::Google.Protobuf; | |
| 7 using pbc = global::Google.Protobuf.Collections; | |
| 8 using pbr = global::Google.Protobuf.Reflection; | |
| 9 using scg = global::System.Collections.Generic; | |
| 10 namespace Google.Protobuf.TestProtos { | |
| 11 | |
| 12 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 13 public static partial class UnittestImportPublicProto3 { | |
| 14 | |
| 15 #region Descriptor | |
| 16 public static pbr::FileDescriptor Descriptor { | |
| 17 get { return descriptor; } | |
| 18 } | |
| 19 private static pbr::FileDescriptor descriptor; | |
| 20 | |
| 21 static UnittestImportPublicProto3() { | |
| 22 byte[] descriptorData = global::System.Convert.FromBase64String( | |
| 23 string.Concat( | |
| 24 "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90", | |
| 25 "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ", | |
| 26 "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1", | |
| 27 "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); | |
| 28 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptor
Data, | |
| 29 new pbr::FileDescriptor[] { }, | |
| 30 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { | |
| 31 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos
.PublicImportMessage), new[]{ "E" }, null, null, null) | |
| 32 })); | |
| 33 } | |
| 34 #endregion | |
| 35 | |
| 36 } | |
| 37 #region Messages | |
| 38 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 39 public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMes
sage> { | |
| 40 private static readonly pb::MessageParser<PublicImportMessage> _parser = new
pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage()); | |
| 41 public static pb::MessageParser<PublicImportMessage> Parser { get { return _
parser; } } | |
| 42 | |
| 43 public static pbr::MessageDescriptor Descriptor { | |
| 44 get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3
.Descriptor.MessageTypes[0]; } | |
| 45 } | |
| 46 | |
| 47 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 48 get { return Descriptor; } | |
| 49 } | |
| 50 | |
| 51 public PublicImportMessage() { | |
| 52 OnConstruction(); | |
| 53 } | |
| 54 | |
| 55 partial void OnConstruction(); | |
| 56 | |
| 57 public PublicImportMessage(PublicImportMessage other) : this() { | |
| 58 e_ = other.e_; | |
| 59 } | |
| 60 | |
| 61 public PublicImportMessage Clone() { | |
| 62 return new PublicImportMessage(this); | |
| 63 } | |
| 64 | |
| 65 public const int EFieldNumber = 1; | |
| 66 private int e_; | |
| 67 public int E { | |
| 68 get { return e_; } | |
| 69 set { | |
| 70 e_ = value; | |
| 71 } | |
| 72 } | |
| 73 | |
| 74 public override bool Equals(object other) { | |
| 75 return Equals(other as PublicImportMessage); | |
| 76 } | |
| 77 | |
| 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 true; | |
| 87 } | |
| 88 | |
| 89 public override int GetHashCode() { | |
| 90 int hash = 1; | |
| 91 if (E != 0) hash ^= E.GetHashCode(); | |
| 92 return hash; | |
| 93 } | |
| 94 | |
| 95 public override string ToString() { | |
| 96 return pb::JsonFormatter.Default.Format(this); | |
| 97 } | |
| 98 | |
| 99 public void WriteTo(pb::CodedOutputStream output) { | |
| 100 if (E != 0) { | |
| 101 output.WriteRawTag(8); | |
| 102 output.WriteInt32(E); | |
| 103 } | |
| 104 } | |
| 105 | |
| 106 public int CalculateSize() { | |
| 107 int size = 0; | |
| 108 if (E != 0) { | |
| 109 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); | |
| 110 } | |
| 111 return size; | |
| 112 } | |
| 113 | |
| 114 public void MergeFrom(PublicImportMessage other) { | |
| 115 if (other == null) { | |
| 116 return; | |
| 117 } | |
| 118 if (other.E != 0) { | |
| 119 E = other.E; | |
| 120 } | |
| 121 } | |
| 122 | |
| 123 public void MergeFrom(pb::CodedInputStream input) { | |
| 124 uint tag; | |
| 125 while ((tag = input.ReadTag()) != 0) { | |
| 126 switch(tag) { | |
| 127 default: | |
| 128 input.SkipLastField(); | |
| 129 break; | |
| 130 case 8: { | |
| 131 E = input.ReadInt32(); | |
| 132 break; | |
| 133 } | |
| 134 } | |
| 135 } | |
| 136 } | |
| 137 | |
| 138 } | |
| 139 | |
| 140 #endregion | |
| 141 | |
| 142 } | |
| 143 | |
| 144 #endregion Designer generated code | |
| OLD | NEW |