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_proto3.proto | 2 // source: google/protobuf/unittest_import_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_proto3.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
unittest_import_proto3.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
13 public static partial class UnittestImportProto3Reflection { | 14 public static partial class UnittestImportProto3Reflection { |
14 | 15 |
15 #region Descriptor | 16 #region Descriptor |
16 /// <summary>File descriptor for google/protobuf/unittest_import_proto3.prot
o</summary> | 17 /// <summary>File descriptor for google/protobuf/unittest_import_proto3.prot
o</summary> |
17 public static pbr::FileDescriptor Descriptor { | 18 public static pbr::FileDescriptor Descriptor { |
18 get { return descriptor; } | 19 get { return descriptor; } |
19 } | 20 } |
20 private static pbr::FileDescriptor descriptor; | 21 private static pbr::FileDescriptor descriptor; |
21 | 22 |
22 static UnittestImportProto3Reflection() { | 23 static UnittestImportProto3Reflection() { |
(...skipping 20 matching lines...) Expand all Loading... |
43 public enum ImportEnum { | 44 public enum ImportEnum { |
44 [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0, | 45 [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0, |
45 [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7, | 46 [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7, |
46 [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8, | 47 [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8, |
47 [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9, | 48 [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9, |
48 } | 49 } |
49 | 50 |
50 #endregion | 51 #endregion |
51 | 52 |
52 #region Messages | 53 #region Messages |
| 54 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
53 public sealed partial class ImportMessage : pb::IMessage<ImportMessage> { | 55 public sealed partial class ImportMessage : pb::IMessage<ImportMessage> { |
54 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::M
essageParser<ImportMessage>(() => new ImportMessage()); | 56 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::M
essageParser<ImportMessage>(() => new ImportMessage()); |
55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
56 public static pb::MessageParser<ImportMessage> Parser { get { return _parser
; } } | 57 public static pb::MessageParser<ImportMessage> Parser { get { return _parser
; } } |
57 | 58 |
58 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
59 public static pbr::MessageDescriptor Descriptor { | 59 public static pbr::MessageDescriptor Descriptor { |
60 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflec
tion.Descriptor.MessageTypes[0]; } | 60 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflec
tion.Descriptor.MessageTypes[0]; } |
61 } | 61 } |
62 | 62 |
63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
64 pbr::MessageDescriptor pb::IMessage.Descriptor { | 63 pbr::MessageDescriptor pb::IMessage.Descriptor { |
65 get { return Descriptor; } | 64 get { return Descriptor; } |
66 } | 65 } |
67 | 66 |
68 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
69 public ImportMessage() { | 67 public ImportMessage() { |
70 OnConstruction(); | 68 OnConstruction(); |
71 } | 69 } |
72 | 70 |
73 partial void OnConstruction(); | 71 partial void OnConstruction(); |
74 | 72 |
75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
76 public ImportMessage(ImportMessage other) : this() { | 73 public ImportMessage(ImportMessage other) : this() { |
77 d_ = other.d_; | 74 d_ = other.d_; |
78 } | 75 } |
79 | 76 |
80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
81 public ImportMessage Clone() { | 77 public ImportMessage Clone() { |
82 return new ImportMessage(this); | 78 return new ImportMessage(this); |
83 } | 79 } |
84 | 80 |
85 /// <summary>Field number for the "d" field.</summary> | 81 /// <summary>Field number for the "d" field.</summary> |
86 public const int DFieldNumber = 1; | 82 public const int DFieldNumber = 1; |
87 private int d_; | 83 private int d_; |
88 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
89 public int D { | 84 public int D { |
90 get { return d_; } | 85 get { return d_; } |
91 set { | 86 set { |
92 d_ = value; | 87 d_ = value; |
93 } | 88 } |
94 } | 89 } |
95 | 90 |
96 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
97 public override bool Equals(object other) { | 91 public override bool Equals(object other) { |
98 return Equals(other as ImportMessage); | 92 return Equals(other as ImportMessage); |
99 } | 93 } |
100 | 94 |
101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
102 public bool Equals(ImportMessage other) { | 95 public bool Equals(ImportMessage other) { |
103 if (ReferenceEquals(other, null)) { | 96 if (ReferenceEquals(other, null)) { |
104 return false; | 97 return false; |
105 } | 98 } |
106 if (ReferenceEquals(other, this)) { | 99 if (ReferenceEquals(other, this)) { |
107 return true; | 100 return true; |
108 } | 101 } |
109 if (D != other.D) return false; | 102 if (D != other.D) return false; |
110 return true; | 103 return true; |
111 } | 104 } |
112 | 105 |
113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
114 public override int GetHashCode() { | 106 public override int GetHashCode() { |
115 int hash = 1; | 107 int hash = 1; |
116 if (D != 0) hash ^= D.GetHashCode(); | 108 if (D != 0) hash ^= D.GetHashCode(); |
117 return hash; | 109 return hash; |
118 } | 110 } |
119 | 111 |
120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
121 public override string ToString() { | 112 public override string ToString() { |
122 return pb::JsonFormatter.ToDiagnosticString(this); | 113 return pb::JsonFormatter.ToDiagnosticString(this); |
123 } | 114 } |
124 | 115 |
125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
126 public void WriteTo(pb::CodedOutputStream output) { | 116 public void WriteTo(pb::CodedOutputStream output) { |
127 if (D != 0) { | 117 if (D != 0) { |
128 output.WriteRawTag(8); | 118 output.WriteRawTag(8); |
129 output.WriteInt32(D); | 119 output.WriteInt32(D); |
130 } | 120 } |
131 } | 121 } |
132 | 122 |
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
134 public int CalculateSize() { | 123 public int CalculateSize() { |
135 int size = 0; | 124 int size = 0; |
136 if (D != 0) { | 125 if (D != 0) { |
137 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); | 126 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); |
138 } | 127 } |
139 return size; | 128 return size; |
140 } | 129 } |
141 | 130 |
142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
143 public void MergeFrom(ImportMessage other) { | 131 public void MergeFrom(ImportMessage other) { |
144 if (other == null) { | 132 if (other == null) { |
145 return; | 133 return; |
146 } | 134 } |
147 if (other.D != 0) { | 135 if (other.D != 0) { |
148 D = other.D; | 136 D = other.D; |
149 } | 137 } |
150 } | 138 } |
151 | 139 |
152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
153 public void MergeFrom(pb::CodedInputStream input) { | 140 public void MergeFrom(pb::CodedInputStream input) { |
154 uint tag; | 141 uint tag; |
155 while ((tag = input.ReadTag()) != 0) { | 142 while ((tag = input.ReadTag()) != 0) { |
156 switch(tag) { | 143 switch(tag) { |
157 default: | 144 default: |
158 input.SkipLastField(); | 145 input.SkipLastField(); |
159 break; | 146 break; |
160 case 8: { | 147 case 8: { |
161 D = input.ReadInt32(); | 148 D = input.ReadInt32(); |
162 break; | 149 break; |
163 } | 150 } |
164 } | 151 } |
165 } | 152 } |
166 } | 153 } |
167 | 154 |
168 } | 155 } |
169 | 156 |
170 #endregion | 157 #endregion |
171 | 158 |
172 } | 159 } |
173 | 160 |
174 #endregion Designer generated code | 161 #endregion Designer generated code |
OLD | NEW |