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