blob: 5da244d1e4f32a7801c93a0ca2b898a88bf0769b [file] [log] [blame]
csharptest35b68522011-05-20 12:22:21 -05001// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
Jon Skeet82bb0f12011-04-03 20:17:12 +01002
3using pb = global::Google.ProtocolBuffers;
4using pbc = global::Google.ProtocolBuffers.Collections;
5using pbd = global::Google.ProtocolBuffers.Descriptors;
6using scg = global::System.Collections.Generic;
7namespace Google.ProtocolBuffers.TestProtos {
8
csharptest445bdce2011-05-20 15:50:54 -05009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012 public static partial class UnitTestProtoFile {
13
14 #region Extension registration
15 public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
16 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalInt32Extension);
17 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalInt64Extension);
18 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalUint32Extension);
19 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalUint64Extension);
20 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSint32Extension);
21 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSint64Extension);
22 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFixed32Extension);
23 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFixed64Extension);
24 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSfixed32Extension);
25 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSfixed64Extension);
26 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFloatExtension);
27 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalDoubleExtension);
28 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalBoolExtension);
29 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalStringExtension);
30 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalBytesExtension);
31 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalGroupExtension);
32 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalNestedMessageExtension);
33 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalForeignMessageExtension);
34 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalImportMessageExtension);
35 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalNestedEnumExtension);
36 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalForeignEnumExtension);
37 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalImportEnumExtension);
38 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalStringPieceExtension);
39 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalCordExtension);
40 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedInt32Extension);
41 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedInt64Extension);
42 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedUint32Extension);
43 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedUint64Extension);
44 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSint32Extension);
45 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSint64Extension);
46 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFixed32Extension);
47 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFixed64Extension);
48 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSfixed32Extension);
49 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSfixed64Extension);
50 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFloatExtension);
51 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedDoubleExtension);
52 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedBoolExtension);
53 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedStringExtension);
54 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedBytesExtension);
55 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedGroupExtension);
56 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedNestedMessageExtension);
57 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedForeignMessageExtension);
58 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedImportMessageExtension);
59 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedNestedEnumExtension);
60 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedForeignEnumExtension);
61 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedImportEnumExtension);
62 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedStringPieceExtension);
63 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedCordExtension);
64 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultInt32Extension);
65 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultInt64Extension);
66 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultUint32Extension);
67 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultUint64Extension);
68 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSint32Extension);
69 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSint64Extension);
70 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFixed32Extension);
71 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFixed64Extension);
72 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSfixed32Extension);
73 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSfixed64Extension);
74 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFloatExtension);
75 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultDoubleExtension);
76 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultBoolExtension);
77 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultStringExtension);
78 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultBytesExtension);
79 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultNestedEnumExtension);
80 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultForeignEnumExtension);
81 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultImportEnumExtension);
82 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultStringPieceExtension);
83 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultCordExtension);
84 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.MyExtensionString);
85 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.MyExtensionInt);
86 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedInt32Extension);
87 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedInt64Extension);
88 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedUint32Extension);
89 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedUint64Extension);
90 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSint32Extension);
91 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSint64Extension);
92 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFixed32Extension);
93 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFixed64Extension);
94 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSfixed32Extension);
95 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSfixed64Extension);
96 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFloatExtension);
97 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedDoubleExtension);
98 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedBoolExtension);
99 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedEnumExtension);
100 registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test);
101 registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Single);
102 registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi);
103 }
104 #endregion
105 #region Extensions
106 public const int OptionalInt32ExtensionFieldNumber = 1;
107 public static pb::GeneratedExtensionBase<int> OptionalInt32Extension;
108 public const int OptionalInt64ExtensionFieldNumber = 2;
109 public static pb::GeneratedExtensionBase<long> OptionalInt64Extension;
110 public const int OptionalUint32ExtensionFieldNumber = 3;
111 [global::System.CLSCompliant(false)]
112 public static pb::GeneratedExtensionBase<uint> OptionalUint32Extension;
113 public const int OptionalUint64ExtensionFieldNumber = 4;
114 [global::System.CLSCompliant(false)]
115 public static pb::GeneratedExtensionBase<ulong> OptionalUint64Extension;
116 public const int OptionalSint32ExtensionFieldNumber = 5;
117 public static pb::GeneratedExtensionBase<int> OptionalSint32Extension;
118 public const int OptionalSint64ExtensionFieldNumber = 6;
119 public static pb::GeneratedExtensionBase<long> OptionalSint64Extension;
120 public const int OptionalFixed32ExtensionFieldNumber = 7;
121 [global::System.CLSCompliant(false)]
122 public static pb::GeneratedExtensionBase<uint> OptionalFixed32Extension;
123 public const int OptionalFixed64ExtensionFieldNumber = 8;
124 [global::System.CLSCompliant(false)]
125 public static pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension;
126 public const int OptionalSfixed32ExtensionFieldNumber = 9;
127 public static pb::GeneratedExtensionBase<int> OptionalSfixed32Extension;
128 public const int OptionalSfixed64ExtensionFieldNumber = 10;
129 public static pb::GeneratedExtensionBase<long> OptionalSfixed64Extension;
130 public const int OptionalFloatExtensionFieldNumber = 11;
131 public static pb::GeneratedExtensionBase<float> OptionalFloatExtension;
132 public const int OptionalDoubleExtensionFieldNumber = 12;
133 public static pb::GeneratedExtensionBase<double> OptionalDoubleExtension;
134 public const int OptionalBoolExtensionFieldNumber = 13;
135 public static pb::GeneratedExtensionBase<bool> OptionalBoolExtension;
136 public const int OptionalStringExtensionFieldNumber = 14;
137 public static pb::GeneratedExtensionBase<string> OptionalStringExtension;
138 public const int OptionalBytesExtensionFieldNumber = 15;
139 public static pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension;
140 public const int OptionalGroupExtensionFieldNumber = 16;
141 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension;
142 public const int OptionalNestedMessageExtensionFieldNumber = 18;
143 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension;
144 public const int OptionalForeignMessageExtensionFieldNumber = 19;
145 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension;
146 public const int OptionalImportMessageExtensionFieldNumber = 20;
147 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension;
148 public const int OptionalNestedEnumExtensionFieldNumber = 21;
149 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension;
150 public const int OptionalForeignEnumExtensionFieldNumber = 22;
151 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension;
152 public const int OptionalImportEnumExtensionFieldNumber = 23;
153 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension;
154 public const int OptionalStringPieceExtensionFieldNumber = 24;
155 public static pb::GeneratedExtensionBase<string> OptionalStringPieceExtension;
156 public const int OptionalCordExtensionFieldNumber = 25;
157 public static pb::GeneratedExtensionBase<string> OptionalCordExtension;
158 public const int RepeatedInt32ExtensionFieldNumber = 31;
159 public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension;
160 public const int RepeatedInt64ExtensionFieldNumber = 32;
161 public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension;
162 public const int RepeatedUint32ExtensionFieldNumber = 33;
163 [global::System.CLSCompliant(false)]
164 public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension;
165 public const int RepeatedUint64ExtensionFieldNumber = 34;
166 [global::System.CLSCompliant(false)]
167 public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension;
168 public const int RepeatedSint32ExtensionFieldNumber = 35;
169 public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension;
170 public const int RepeatedSint64ExtensionFieldNumber = 36;
171 public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension;
172 public const int RepeatedFixed32ExtensionFieldNumber = 37;
173 [global::System.CLSCompliant(false)]
174 public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension;
175 public const int RepeatedFixed64ExtensionFieldNumber = 38;
176 [global::System.CLSCompliant(false)]
177 public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension;
178 public const int RepeatedSfixed32ExtensionFieldNumber = 39;
179 public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension;
180 public const int RepeatedSfixed64ExtensionFieldNumber = 40;
181 public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension;
182 public const int RepeatedFloatExtensionFieldNumber = 41;
183 public static pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension;
184 public const int RepeatedDoubleExtensionFieldNumber = 42;
185 public static pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension;
186 public const int RepeatedBoolExtensionFieldNumber = 43;
187 public static pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension;
188 public const int RepeatedStringExtensionFieldNumber = 44;
189 public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension;
190 public const int RepeatedBytesExtensionFieldNumber = 45;
191 public static pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension;
192 public const int RepeatedGroupExtensionFieldNumber = 46;
193 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension;
194 public const int RepeatedNestedMessageExtensionFieldNumber = 48;
195 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension;
196 public const int RepeatedForeignMessageExtensionFieldNumber = 49;
197 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension;
198 public const int RepeatedImportMessageExtensionFieldNumber = 50;
199 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension;
200 public const int RepeatedNestedEnumExtensionFieldNumber = 51;
201 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension;
202 public const int RepeatedForeignEnumExtensionFieldNumber = 52;
203 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension;
204 public const int RepeatedImportEnumExtensionFieldNumber = 53;
205 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension;
206 public const int RepeatedStringPieceExtensionFieldNumber = 54;
207 public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension;
208 public const int RepeatedCordExtensionFieldNumber = 55;
209 public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension;
210 public const int DefaultInt32ExtensionFieldNumber = 61;
211 public static pb::GeneratedExtensionBase<int> DefaultInt32Extension;
212 public const int DefaultInt64ExtensionFieldNumber = 62;
213 public static pb::GeneratedExtensionBase<long> DefaultInt64Extension;
214 public const int DefaultUint32ExtensionFieldNumber = 63;
215 [global::System.CLSCompliant(false)]
216 public static pb::GeneratedExtensionBase<uint> DefaultUint32Extension;
217 public const int DefaultUint64ExtensionFieldNumber = 64;
218 [global::System.CLSCompliant(false)]
219 public static pb::GeneratedExtensionBase<ulong> DefaultUint64Extension;
220 public const int DefaultSint32ExtensionFieldNumber = 65;
221 public static pb::GeneratedExtensionBase<int> DefaultSint32Extension;
222 public const int DefaultSint64ExtensionFieldNumber = 66;
223 public static pb::GeneratedExtensionBase<long> DefaultSint64Extension;
224 public const int DefaultFixed32ExtensionFieldNumber = 67;
225 [global::System.CLSCompliant(false)]
226 public static pb::GeneratedExtensionBase<uint> DefaultFixed32Extension;
227 public const int DefaultFixed64ExtensionFieldNumber = 68;
228 [global::System.CLSCompliant(false)]
229 public static pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension;
230 public const int DefaultSfixed32ExtensionFieldNumber = 69;
231 public static pb::GeneratedExtensionBase<int> DefaultSfixed32Extension;
232 public const int DefaultSfixed64ExtensionFieldNumber = 70;
233 public static pb::GeneratedExtensionBase<long> DefaultSfixed64Extension;
234 public const int DefaultFloatExtensionFieldNumber = 71;
235 public static pb::GeneratedExtensionBase<float> DefaultFloatExtension;
236 public const int DefaultDoubleExtensionFieldNumber = 72;
237 public static pb::GeneratedExtensionBase<double> DefaultDoubleExtension;
238 public const int DefaultBoolExtensionFieldNumber = 73;
239 public static pb::GeneratedExtensionBase<bool> DefaultBoolExtension;
240 public const int DefaultStringExtensionFieldNumber = 74;
241 public static pb::GeneratedExtensionBase<string> DefaultStringExtension;
242 public const int DefaultBytesExtensionFieldNumber = 75;
243 public static pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension;
244 public const int DefaultNestedEnumExtensionFieldNumber = 81;
245 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension;
246 public const int DefaultForeignEnumExtensionFieldNumber = 82;
247 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension;
248 public const int DefaultImportEnumExtensionFieldNumber = 83;
249 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension;
250 public const int DefaultStringPieceExtensionFieldNumber = 84;
251 public static pb::GeneratedExtensionBase<string> DefaultStringPieceExtension;
252 public const int DefaultCordExtensionFieldNumber = 85;
253 public static pb::GeneratedExtensionBase<string> DefaultCordExtension;
254 public const int MyExtensionStringFieldNumber = 50;
255 public static pb::GeneratedExtensionBase<string> MyExtensionString;
256 public const int MyExtensionIntFieldNumber = 5;
257 public static pb::GeneratedExtensionBase<int> MyExtensionInt;
258 public const int PackedInt32ExtensionFieldNumber = 90;
259 public static pb::GeneratedExtensionBase<scg::IList<int>> PackedInt32Extension;
260 public const int PackedInt64ExtensionFieldNumber = 91;
261 public static pb::GeneratedExtensionBase<scg::IList<long>> PackedInt64Extension;
262 public const int PackedUint32ExtensionFieldNumber = 92;
263 [global::System.CLSCompliant(false)]
264 public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedUint32Extension;
265 public const int PackedUint64ExtensionFieldNumber = 93;
266 [global::System.CLSCompliant(false)]
267 public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedUint64Extension;
268 public const int PackedSint32ExtensionFieldNumber = 94;
269 public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSint32Extension;
270 public const int PackedSint64ExtensionFieldNumber = 95;
271 public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSint64Extension;
272 public const int PackedFixed32ExtensionFieldNumber = 96;
273 [global::System.CLSCompliant(false)]
274 public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedFixed32Extension;
275 public const int PackedFixed64ExtensionFieldNumber = 97;
276 [global::System.CLSCompliant(false)]
277 public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedFixed64Extension;
278 public const int PackedSfixed32ExtensionFieldNumber = 98;
279 public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSfixed32Extension;
280 public const int PackedSfixed64ExtensionFieldNumber = 99;
281 public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSfixed64Extension;
282 public const int PackedFloatExtensionFieldNumber = 100;
283 public static pb::GeneratedExtensionBase<scg::IList<float>> PackedFloatExtension;
284 public const int PackedDoubleExtensionFieldNumber = 101;
285 public static pb::GeneratedExtensionBase<scg::IList<double>> PackedDoubleExtension;
286 public const int PackedBoolExtensionFieldNumber = 102;
287 public static pb::GeneratedExtensionBase<scg::IList<bool>> PackedBoolExtension;
288 public const int PackedEnumExtensionFieldNumber = 103;
289 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> PackedEnumExtension;
290 #endregion
291
292 #region Static variables
293 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor;
294 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
295 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor;
296 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
297 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor;
298 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable;
299 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor;
300 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable;
301 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor;
302 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder> internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
303 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor;
304 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
305 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor;
306 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable;
307 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor;
308 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable;
309 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor;
310 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable;
311 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedExtension__Descriptor;
312 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder> internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable;
313 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor;
314 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable;
315 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor;
316 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable;
317 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor;
318 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
319 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor;
320 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable;
321 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor;
322 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable;
323 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor;
324 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder> internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable;
325 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor;
326 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
327 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor;
328 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
329 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor;
330 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
331 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor;
332 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
333 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor;
334 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable;
335 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor;
336 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable;
337 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor;
338 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable;
339 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor;
340 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable;
341 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor;
342 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable;
343 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor;
344 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
345 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor;
346 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
347 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor;
348 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable;
349 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneString__Descriptor;
350 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder> internal__static_protobuf_unittest_OneString__FieldAccessorTable;
351 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneBytes__Descriptor;
352 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder> internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
353 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedTypes__Descriptor;
354 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder> internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
355 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor;
356 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder> internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
357 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedExtensions__Descriptor;
358 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder> internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable;
359 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor;
360 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder> internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable;
361 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor;
362 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder> internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable;
363 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor;
364 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder> internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
365 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor;
366 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
367 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor;
368 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
369 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor;
370 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
371 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor;
372 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
373 #endregion
374 #region Descriptor
375 public static pbd::FileDescriptor Descriptor {
376 get { return descriptor; }
377 }
378 private static pbd::FileDescriptor descriptor;
379
380 static UnitTestProtoFile() {
381 byte[] descriptorData = global::System.Convert.FromBase64String(
382 "Ch5nb29nbGUvcHJvdG9idWYvdW5pdHRlc3QucHJvdG8SEXByb3RvYnVmX3Vu" +
383 "aXR0ZXN0GiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8a" +
384 "JWdvb2dsZS9wcm90b2J1Zi91bml0dGVzdF9pbXBvcnQucHJvdG8iuxUKDFRl" +
385 "c3RBbGxUeXBlcxIWCg5vcHRpb25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25h" +
386 "bF9pbnQ2NBgCIAEoAxIXCg9vcHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0" +
387 "aW9uYWxfdWludDY0GAQgASgEEhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIX" +
388 "Cg9vcHRpb25hbF9zaW50NjQYBiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgH" +
389 "IAEoBxIYChBvcHRpb25hbF9maXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3Nm" +
390 "aXhlZDMyGAkgASgPEhkKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9w" +
391 "dGlvbmFsX2Zsb2F0GAsgASgCEhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIV" +
392 "Cg1vcHRpb25hbF9ib29sGA0gASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEo" +
393 "CRIWCg5vcHRpb25hbF9ieXRlcxgPIAEoDBJECg1vcHRpb25hbGdyb3VwGBAg" +
394 "ASgKMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk9wdGlvbmFs" +
395 "R3JvdXASTgoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsyLS5wcm90" +
396 "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZRJDChhv" +
397 "cHRpb25hbF9mb3JlaWduX21lc3NhZ2UYEyABKAsyIS5wcm90b2J1Zl91bml0" +
398 "dGVzdC5Gb3JlaWduTWVzc2FnZRJIChdvcHRpb25hbF9pbXBvcnRfbWVzc2Fn" +
399 "ZRgUIAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRNZXNz" +
400 "YWdlEkgKFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUgASgOMioucHJvdG9idWZf" +
401 "dW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SPQoVb3B0aW9uYWxf" +
402 "Zm9yZWlnbl9lbnVtGBYgASgOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln" +
403 "bkVudW0SQgoUb3B0aW9uYWxfaW1wb3J0X2VudW0YFyABKA4yJC5wcm90b2J1" +
404 "Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bRIhChVvcHRpb25hbF9zdHJp" +
405 "bmdfcGllY2UYGCABKAlCAggCEhkKDW9wdGlvbmFsX2NvcmQYGSABKAlCAggB" +
406 "EhYKDnJlcGVhdGVkX2ludDMyGB8gAygFEhYKDnJlcGVhdGVkX2ludDY0GCAg" +
407 "AygDEhcKD3JlcGVhdGVkX3VpbnQzMhghIAMoDRIXCg9yZXBlYXRlZF91aW50" +
408 "NjQYIiADKAQSFwoPcmVwZWF0ZWRfc2ludDMyGCMgAygREhcKD3JlcGVhdGVk" +
409 "X3NpbnQ2NBgkIAMoEhIYChByZXBlYXRlZF9maXhlZDMyGCUgAygHEhgKEHJl" +
410 "cGVhdGVkX2ZpeGVkNjQYJiADKAYSGQoRcmVwZWF0ZWRfc2ZpeGVkMzIYJyAD" +
411 "KA8SGQoRcmVwZWF0ZWRfc2ZpeGVkNjQYKCADKBASFgoOcmVwZWF0ZWRfZmxv" +
412 "YXQYKSADKAISFwoPcmVwZWF0ZWRfZG91YmxlGCogAygBEhUKDXJlcGVhdGVk" +
413 "X2Jvb2wYKyADKAgSFwoPcmVwZWF0ZWRfc3RyaW5nGCwgAygJEhYKDnJlcGVh" +
414 "dGVkX2J5dGVzGC0gAygMEkQKDXJlcGVhdGVkZ3JvdXAYLiADKAoyLS5wcm90" +
415 "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuUmVwZWF0ZWRHcm91cBJOChdy" +
416 "ZXBlYXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzItLnByb3RvYnVmX3VuaXR0" +
417 "ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkMKGHJlcGVhdGVkX2Zv" +
418 "cmVpZ25fbWVzc2FnZRgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp" +
419 "Z25NZXNzYWdlEkgKF3JlcGVhdGVkX2ltcG9ydF9tZXNzYWdlGDIgAygLMicu" +
420 "cHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2USSAoUcmVw" +
421 "ZWF0ZWRfbmVzdGVkX2VudW0YMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5U" +
422 "ZXN0QWxsVHlwZXMuTmVzdGVkRW51bRI9ChVyZXBlYXRlZF9mb3JlaWduX2Vu" +
423 "dW0YNCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRJCChRy" +
424 "ZXBlYXRlZF9pbXBvcnRfZW51bRg1IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0" +
425 "X2ltcG9ydC5JbXBvcnRFbnVtEiEKFXJlcGVhdGVkX3N0cmluZ19waWVjZRg2" +
426 "IAMoCUICCAISGQoNcmVwZWF0ZWRfY29yZBg3IAMoCUICCAESGQoNZGVmYXVs" +
427 "dF9pbnQzMhg9IAEoBToCNDESGQoNZGVmYXVsdF9pbnQ2NBg+IAEoAzoCNDIS" +
428 "GgoOZGVmYXVsdF91aW50MzIYPyABKA06AjQzEhoKDmRlZmF1bHRfdWludDY0" +
429 "GEAgASgEOgI0NBIbCg5kZWZhdWx0X3NpbnQzMhhBIAEoEToDLTQ1EhoKDmRl" +
430 "ZmF1bHRfc2ludDY0GEIgASgSOgI0NhIbCg9kZWZhdWx0X2ZpeGVkMzIYQyAB" +
431 "KAc6AjQ3EhsKD2RlZmF1bHRfZml4ZWQ2NBhEIAEoBjoCNDgSHAoQZGVmYXVs" +
432 "dF9zZml4ZWQzMhhFIAEoDzoCNDkSHQoQZGVmYXVsdF9zZml4ZWQ2NBhGIAEo" +
433 "EDoDLTUwEhsKDWRlZmF1bHRfZmxvYXQYRyABKAI6BDUxLjUSHQoOZGVmYXVs" +
434 "dF9kb3VibGUYSCABKAE6BTUyMDAwEhoKDGRlZmF1bHRfYm9vbBhJIAEoCDoE" +
435 "dHJ1ZRIdCg5kZWZhdWx0X3N0cmluZxhKIAEoCToFaGVsbG8SHAoNZGVmYXVs" +
436 "dF9ieXRlcxhLIAEoDDoFd29ybGQSTAoTZGVmYXVsdF9uZXN0ZWRfZW51bRhR" +
437 "IAEoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRF" +
438 "bnVtOgNCQVISSQoUZGVmYXVsdF9mb3JlaWduX2VudW0YUiABKA4yHi5wcm90" +
439 "b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVISTQoTZGVm" +
440 "YXVsdF9pbXBvcnRfZW51bRhTIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2lt" +
441 "cG9ydC5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSEiUKFGRlZmF1bHRfc3RyaW5n" +
442 "X3BpZWNlGFQgASgJOgNhYmNCAggCEh0KDGRlZmF1bHRfY29yZBhVIAEoCToD" +
443 "MTIzQgIIARobCg1OZXN0ZWRNZXNzYWdlEgoKAmJiGAEgASgFGhoKDU9wdGlv" +
444 "bmFsR3JvdXASCQoBYRgRIAEoBRoaCg1SZXBlYXRlZEdyb3VwEgkKAWEYLyAB" +
445 "KAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIHCgNCQVoQAyI0" +
446 "ChRUZXN0RGVwcmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEg" +
447 "ASgFQgIYASIbCg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIh0KEVRlc3RB" +
448 "bGxFeHRlbnNpb25zKggIARCAgICAAiIkChdPcHRpb25hbEdyb3VwX2V4dGVu" +
449 "c2lvbhIJCgFhGBEgASgFIiQKF1JlcGVhdGVkR3JvdXBfZXh0ZW5zaW9uEgkK" +
450 "AWEYLyABKAUiUAoTVGVzdE5lc3RlZEV4dGVuc2lvbjI5CgR0ZXN0EiQucHJv" +
451 "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY6gcgASgJOgR0ZXN0" +
452 "ItUFCgxUZXN0UmVxdWlyZWQSCQoBYRgBIAIoBRIOCgZkdW1teTIYAiABKAUS" +
453 "CQoBYhgDIAIoBRIOCgZkdW1teTQYBCABKAUSDgoGZHVtbXk1GAUgASgFEg4K" +
454 "BmR1bW15NhgGIAEoBRIOCgZkdW1teTcYByABKAUSDgoGZHVtbXk4GAggASgF" +
455 "Eg4KBmR1bW15ORgJIAEoBRIPCgdkdW1teTEwGAogASgFEg8KB2R1bW15MTEY" +
456 "CyABKAUSDwoHZHVtbXkxMhgMIAEoBRIPCgdkdW1teTEzGA0gASgFEg8KB2R1" +
457 "bW15MTQYDiABKAUSDwoHZHVtbXkxNRgPIAEoBRIPCgdkdW1teTE2GBAgASgF" +
458 "Eg8KB2R1bW15MTcYESABKAUSDwoHZHVtbXkxOBgSIAEoBRIPCgdkdW1teTE5" +
459 "GBMgASgFEg8KB2R1bW15MjAYFCABKAUSDwoHZHVtbXkyMRgVIAEoBRIPCgdk" +
460 "dW1teTIyGBYgASgFEg8KB2R1bW15MjMYFyABKAUSDwoHZHVtbXkyNBgYIAEo" +
461 "BRIPCgdkdW1teTI1GBkgASgFEg8KB2R1bW15MjYYGiABKAUSDwoHZHVtbXky" +
462 "NxgbIAEoBRIPCgdkdW1teTI4GBwgASgFEg8KB2R1bW15MjkYHSABKAUSDwoH" +
463 "ZHVtbXkzMBgeIAEoBRIPCgdkdW1teTMxGB8gASgFEg8KB2R1bW15MzIYICAB" +
464 "KAUSCQoBYxghIAIoBTJWCgZzaW5nbGUSJC5wcm90b2J1Zl91bml0dGVzdC5U" +
465 "ZXN0QWxsRXh0ZW5zaW9ucxjoByABKAsyHy5wcm90b2J1Zl91bml0dGVzdC5U" +
466 "ZXN0UmVxdWlyZWQyVQoFbXVsdGkSJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0" +
467 "QWxsRXh0ZW5zaW9ucxjpByADKAsyHy5wcm90b2J1Zl91bml0dGVzdC5UZXN0" +
468 "UmVxdWlyZWQimgEKE1Rlc3RSZXF1aXJlZEZvcmVpZ24SOQoQb3B0aW9uYWxf" +
469 "bWVzc2FnZRgBIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RSZXF1aXJl" +
470 "ZBI5ChByZXBlYXRlZF9tZXNzYWdlGAIgAygLMh8ucHJvdG9idWZfdW5pdHRl" +
471 "c3QuVGVzdFJlcXVpcmVkEg0KBWR1bW15GAMgASgFIloKEVRlc3RGb3JlaWdu" +
472 "TmVzdGVkEkUKDmZvcmVpZ25fbmVzdGVkGAEgASgLMi0ucHJvdG9idWZfdW5p" +
473 "dHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2UiEgoQVGVzdEVtcHR5" +
474 "TWVzc2FnZSIqCh5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4dGVuc2lvbnMqCAgB" +
475 "EICAgIACIjcKG1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJhbmdlcyoECCoQKyoG" +
476 "CK8gEJQhKgoIgIAEEICAgIACIjQKGFRlc3RSZWFsbHlMYXJnZVRhZ051bWJl" +
477 "chIJCgFhGAEgASgFEg0KAmJiGP///38gASgFIlUKFFRlc3RSZWN1cnNpdmVN" +
478 "ZXNzYWdlEjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UmVj" +
479 "dXJzaXZlTWVzc2FnZRIJCgFpGAIgASgFIksKFFRlc3RNdXR1YWxSZWN1cnNp" +
480 "b25BEjMKAmJiGAEgASgLMicucHJvdG9idWZfdW5pdHRlc3QuVGVzdE11dHVh" +
481 "bFJlY3Vyc2lvbkIiYgoUVGVzdE11dHVhbFJlY3Vyc2lvbkISMgoBYRgBIAEo" +
482 "CzInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RNdXR1YWxSZWN1cnNpb25BEhYK" +
483 "Dm9wdGlvbmFsX2ludDMyGAIgASgFIrMBChJUZXN0RHVwRmllbGROdW1iZXIS" +
484 "CQoBYRgBIAEoBRI2CgNmb28YAiABKAoyKS5wcm90b2J1Zl91bml0dGVzdC5U" +
485 "ZXN0RHVwRmllbGROdW1iZXIuRm9vEjYKA2JhchgDIAEoCjIpLnByb3RvYnVm" +
486 "X3VuaXR0ZXN0LlRlc3REdXBGaWVsZE51bWJlci5CYXIaEAoDRm9vEgkKAWEY" +
487 "ASABKAUaEAoDQmFyEgkKAWEYASABKAUigAIKGFRlc3ROZXN0ZWRNZXNzYWdl" +
488 "SGFzQml0cxJaChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRgBIAEoCzI5LnBy" +
489 "b3RvYnVmX3VuaXR0ZXN0LlRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cy5OZXN0" +
490 "ZWRNZXNzYWdlGocBCg1OZXN0ZWRNZXNzYWdlEiQKHG5lc3RlZG1lc3NhZ2Vf" +
491 "cmVwZWF0ZWRfaW50MzIYASADKAUSUAolbmVzdGVkbWVzc2FnZV9yZXBlYXRl" +
492 "ZF9mb3JlaWdubWVzc2FnZRgCIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZv" +
493 "cmVpZ25NZXNzYWdlIuUDChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5Q" +
494 "cmltaXRpdmVGaWVsZBgBIAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRIxCglF" +
495 "bnVtRmllbGQYAyABKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51" +
496 "bRI3CgxNZXNzYWdlRmllbGQYBCABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5G" +
497 "b3JlaWduTWVzc2FnZRIcChBTdHJpbmdQaWVjZUZpZWxkGAUgASgJQgIIAhIV" +
498 "CglDb3JkRmllbGQYBiABKAlCAggBEh4KFlJlcGVhdGVkUHJpbWl0aXZlRmll" +
499 "bGQYByADKAUSGwoTUmVwZWF0ZWRTdHJpbmdGaWVsZBgIIAMoCRI5ChFSZXBl" +
500 "YXRlZEVudW1GaWVsZBgJIAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp" +
501 "Z25FbnVtEj8KFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAogAygLMiEucHJvdG9i" +
502 "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USJAoYUmVwZWF0ZWRTdHJpbmdQ" +
503 "aWVjZUZpZWxkGAsgAygJQgIIAhIdChFSZXBlYXRlZENvcmRGaWVsZBgMIAMo" +
504 "CUICCAEiVQoSVGVzdEZpZWxkT3JkZXJpbmdzEhEKCW15X3N0cmluZxgLIAEo" +
505 "CRIOCgZteV9pbnQYASABKAMSEAoIbXlfZmxvYXQYZSABKAIqBAgCEAsqBAgM" +
506 "EGUi9gQKGFRlc3RFeHRyZW1lRGVmYXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5" +
507 "dGVzGAEgASgMOihcMDAwXDAwMVwwMDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwn" +
508 "XCJcMzc2EiAKDGxhcmdlX3VpbnQzMhgCIAEoDToKNDI5NDk2NzI5NRIqCgxs" +
509 "YXJnZV91aW50NjQYAyABKAQ6FDE4NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3Nt" +
510 "YWxsX2ludDMyGAQgASgFOgstMjE0NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgF" +
511 "IAEoAzoULTkyMjMzNzIwMzY4NTQ3NzU4MDcSGAoLdXRmOF9zdHJpbmcYBiAB" +
512 "KAk6A+GItBIVCgp6ZXJvX2Zsb2F0GAcgASgCOgEwEhQKCW9uZV9mbG9hdBgI" +
513 "IAEoAjoBMRIYCgtzbWFsbF9mbG9hdBgJIAEoAjoDMS41Eh4KEm5lZ2F0aXZl" +
514 "X29uZV9mbG9hdBgKIAEoAjoCLTESHAoObmVnYXRpdmVfZmxvYXQYCyABKAI6" +
515 "BC0xLjUSGwoLbGFyZ2VfZmxvYXQYDCABKAI6BjJlKzAwOBIlChRzbWFsbF9u" +
516 "ZWdhdGl2ZV9mbG9hdBgNIAEoAjoHLThlLTAyOBIXCgppbmZfZG91YmxlGA4g" +
517 "ASgBOgNpbmYSHAoObmVnX2luZl9kb3VibGUYDyABKAE6BC1pbmYSFwoKbmFu" +
518 "X2RvdWJsZRgQIAEoAToDbmFuEhYKCWluZl9mbG9hdBgRIAEoAjoDaW5mEhsK" +
519 "DW5lZ19pbmZfZmxvYXQYEiABKAI6BC1pbmYSFgoJbmFuX2Zsb2F0GBMgASgC" +
520 "OgNuYW4iGQoJT25lU3RyaW5nEgwKBGRhdGEYASABKAkiGAoIT25lQnl0ZXMS" +
521 "DAoEZGF0YRgBIAEoDCKqAwoPVGVzdFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9p" +
522 "bnQzMhhaIAMoBUICEAESGAoMcGFja2VkX2ludDY0GFsgAygDQgIQARIZCg1w" +
523 "YWNrZWRfdWludDMyGFwgAygNQgIQARIZCg1wYWNrZWRfdWludDY0GF0gAygE" +
524 "QgIQARIZCg1wYWNrZWRfc2ludDMyGF4gAygRQgIQARIZCg1wYWNrZWRfc2lu" +
525 "dDY0GF8gAygSQgIQARIaCg5wYWNrZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoO" +
526 "cGFja2VkX2ZpeGVkNjQYYSADKAZCAhABEhsKD3BhY2tlZF9zZml4ZWQzMhhi" +
527 "IAMoD0ICEAESGwoPcGFja2VkX3NmaXhlZDY0GGMgAygQQgIQARIYCgxwYWNr" +
528 "ZWRfZmxvYXQYZCADKAJCAhABEhkKDXBhY2tlZF9kb3VibGUYZSADKAFCAhAB" +
529 "EhcKC3BhY2tlZF9ib29sGGYgAygIQgIQARI3CgtwYWNrZWRfZW51bRhnIAMo" +
530 "DjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtQgIQASLIAwoRVGVz" +
531 "dFVucGFja2VkVHlwZXMSGgoOdW5wYWNrZWRfaW50MzIYWiADKAVCAhAAEhoK" +
532 "DnVucGFja2VkX2ludDY0GFsgAygDQgIQABIbCg91bnBhY2tlZF91aW50MzIY" +
533 "XCADKA1CAhAAEhsKD3VucGFja2VkX3VpbnQ2NBhdIAMoBEICEAASGwoPdW5w" +
534 "YWNrZWRfc2ludDMyGF4gAygRQgIQABIbCg91bnBhY2tlZF9zaW50NjQYXyAD" +
535 "KBJCAhAAEhwKEHVucGFja2VkX2ZpeGVkMzIYYCADKAdCAhAAEhwKEHVucGFj" +
536 "a2VkX2ZpeGVkNjQYYSADKAZCAhAAEh0KEXVucGFja2VkX3NmaXhlZDMyGGIg" +
537 "AygPQgIQABIdChF1bnBhY2tlZF9zZml4ZWQ2NBhjIAMoEEICEAASGgoOdW5w" +
538 "YWNrZWRfZmxvYXQYZCADKAJCAhAAEhsKD3VucGFja2VkX2RvdWJsZRhlIAMo" +
539 "AUICEAASGQoNdW5wYWNrZWRfYm9vbBhmIAMoCEICEAASOQoNdW5wYWNrZWRf" +
540 "ZW51bRhnIAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtQgIQ" +
541 "ACIgChRUZXN0UGFja2VkRXh0ZW5zaW9ucyoICAEQgICAgAIimQQKFVRlc3RE" +
542 "eW5hbWljRXh0ZW5zaW9ucxIZChBzY2FsYXJfZXh0ZW5zaW9uGNAPIAEoBxI3" +
543 "Cg5lbnVtX2V4dGVuc2lvbhjRDyABKA4yHi5wcm90b2J1Zl91bml0dGVzdC5G" +
544 "b3JlaWduRW51bRJZChZkeW5hbWljX2VudW1fZXh0ZW5zaW9uGNIPIAEoDjI4" +
545 "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3REeW5hbWljRXh0ZW5zaW9ucy5EeW5h" +
546 "bWljRW51bVR5cGUSPQoRbWVzc2FnZV9leHRlbnNpb24Y0w8gASgLMiEucHJv" +
547 "dG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USXwoZZHluYW1pY19tZXNz" +
548 "YWdlX2V4dGVuc2lvbhjUDyABKAsyOy5wcm90b2J1Zl91bml0dGVzdC5UZXN0" +
549 "RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VUeXBlEhsKEnJlcGVh" +
550 "dGVkX2V4dGVuc2lvbhjVDyADKAkSHQoQcGFja2VkX2V4dGVuc2lvbhjWDyAD" +
551 "KBFCAhABGiwKEkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1keW5hbWljX2ZpZWxk" +
552 "GLQQIAEoBSJHCg9EeW5hbWljRW51bVR5cGUSEAoLRFlOQU1JQ19GT08QmBES" +
553 "EAoLRFlOQU1JQ19CQVIQmRESEAoLRFlOQU1JQ19CQVoQmhEiwAEKI1Rlc3RS" +
554 "ZXBlYXRlZFNjYWxhckRpZmZlcmVudFRhZ1NpemVzEhgKEHJlcGVhdGVkX2Zp" +
555 "eGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRfaW50MzIYDSADKAUSGQoQcmVwZWF0" +
556 "ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50NjQY/w8gAygDEhgK" +
557 "DnJlcGVhdGVkX2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0ZWRfdWludDY0GP//" +
558 "DyADKAQiDAoKRm9vUmVxdWVzdCINCgtGb29SZXNwb25zZSIMCgpCYXJSZXF1" +
559 "ZXN0Ig0KC0JhclJlc3BvbnNlKkAKC0ZvcmVpZ25FbnVtEg8KC0ZPUkVJR05f" +
560 "Rk9PEAQSDwoLRk9SRUlHTl9CQVIQBRIPCgtGT1JFSUdOX0JBWhAGKkcKFFRl" +
561 "c3RFbnVtV2l0aER1cFZhbHVlEggKBEZPTzEQARIICgRCQVIxEAISBwoDQkFa" +
562 "EAMSCAoERk9PMhABEggKBEJBUjIQAiqJAQoOVGVzdFNwYXJzZUVudW0SDAoI" +
563 "U1BBUlNFX0EQexIOCghTUEFSU0VfQhCm5wMSDwoIU1BBUlNFX0MQsrGABhIV" +
564 "CghTUEFSU0VfRBDx//////////8BEhUKCFNQQVJTRV9FELTe/P///////wES" +
565 "DAoIU1BBUlNFX0YQABIMCghTUEFSU0VfRxACMpkBCgtUZXN0U2VydmljZRJE" +
566 "CgNGb28SHS5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXF1ZXN0Gh4ucHJvdG9i" +
567 "dWZfdW5pdHRlc3QuRm9vUmVzcG9uc2USRAoDQmFyEh0ucHJvdG9idWZfdW5p" +
568 "dHRlc3QuQmFyUmVxdWVzdBoeLnByb3RvYnVmX3VuaXR0ZXN0LkJhclJlc3Bv" +
569 "bnNlOkYKGG9wdGlvbmFsX2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" +
570 "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAEgASgFOkYKGG9wdGlvbmFsX2lu" +
571 "dDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" +
572 "bnNpb25zGAIgASgDOkcKGW9wdGlvbmFsX3VpbnQzMl9leHRlbnNpb24SJC5w" +
573 "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgDIAEoDTpHChlv" +
574 "cHRpb25hbF91aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" +
575 "VGVzdEFsbEV4dGVuc2lvbnMYBCABKAQ6RwoZb3B0aW9uYWxfc2ludDMyX2V4" +
576 "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" +
577 "GAUgASgROkcKGW9wdGlvbmFsX3NpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1" +
578 "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgGIAEoEjpIChpvcHRpb25h" +
579 "bF9maXhlZDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" +
580 "bGxFeHRlbnNpb25zGAcgASgHOkgKGm9wdGlvbmFsX2ZpeGVkNjRfZXh0ZW5z" +
581 "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYCCAB" +
582 "KAY6SQobb3B0aW9uYWxfc2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZf" +
583 "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYCSABKA86SQobb3B0aW9uYWxf" +
584 "c2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" +
585 "bEV4dGVuc2lvbnMYCiABKBA6RgoYb3B0aW9uYWxfZmxvYXRfZXh0ZW5zaW9u" +
586 "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYCyABKAI6" +
587 "RwoZb3B0aW9uYWxfZG91YmxlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0" +
588 "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAwgASgBOkUKF29wdGlvbmFsX2Jvb2xf" +
589 "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv" +
590 "bnMYDSABKAg6RwoZb3B0aW9uYWxfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3Rv" +
591 "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGA4gASgJOkYKGG9wdGlv" +
592 "bmFsX2J5dGVzX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" +
593 "bGxFeHRlbnNpb25zGA8gASgMOnEKF29wdGlvbmFsZ3JvdXBfZXh0ZW5zaW9u" +
594 "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYECABKAoy" +
595 "Ki5wcm90b2J1Zl91bml0dGVzdC5PcHRpb25hbEdyb3VwX2V4dGVuc2lvbjp+" +
596 "CiFvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1" +
597 "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgSIAEoCzItLnByb3RvYnVm" +
598 "X3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlOnMKIm9wdGlv" +
599 "bmFsX2ZvcmVpZ25fbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" +
600 "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgTIAEoCzIhLnByb3RvYnVmX3VuaXR0" +
601 "ZXN0LkZvcmVpZ25NZXNzYWdlOngKIW9wdGlvbmFsX2ltcG9ydF9tZXNzYWdl" +
602 "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" +
603 "b25zGBQgASgLMicucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1l" +
604 "c3NhZ2U6eAoeb3B0aW9uYWxfbmVzdGVkX2VudW1fZXh0ZW5zaW9uEiQucHJv" +
605 "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYFSABKA4yKi5wcm90" +
606 "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bTptCh9vcHRp" +
607 "b25hbF9mb3JlaWduX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" +
608 "c3QuVGVzdEFsbEV4dGVuc2lvbnMYFiABKA4yHi5wcm90b2J1Zl91bml0dGVz" +
609 "dC5Gb3JlaWduRW51bTpyCh5vcHRpb25hbF9pbXBvcnRfZW51bV9leHRlbnNp" +
610 "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgXIAEo" +
611 "DjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtOlEKH29w" +
612 "dGlvbmFsX3N0cmluZ19waWVjZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" +
613 "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgYIAEoCUICCAI6SQoXb3B0aW9uYWxf" +
614 "Y29yZF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0" +
615 "ZW5zaW9ucxgZIAEoCUICCAE6RgoYcmVwZWF0ZWRfaW50MzJfZXh0ZW5zaW9u" +
616 "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYHyADKAU6" +
617 "RgoYcmVwZWF0ZWRfaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" +
618 "c3QuVGVzdEFsbEV4dGVuc2lvbnMYICADKAM6RwoZcmVwZWF0ZWRfdWludDMy" +
619 "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" +
620 "b25zGCEgAygNOkcKGXJlcGVhdGVkX3VpbnQ2NF9leHRlbnNpb24SJC5wcm90" +
621 "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgiIAMoBDpHChlyZXBl" +
622 "YXRlZF9zaW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" +
623 "dEFsbEV4dGVuc2lvbnMYIyADKBE6RwoZcmVwZWF0ZWRfc2ludDY0X2V4dGVu" +
624 "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCQg" +
625 "AygSOkgKGnJlcGVhdGVkX2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZf" +
626 "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYJSADKAc6SAoacmVwZWF0ZWRf" +
627 "Zml4ZWQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" +
628 "RXh0ZW5zaW9ucxgmIAMoBjpJChtyZXBlYXRlZF9zZml4ZWQzMl9leHRlbnNp" +
629 "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgnIAMo" +
630 "DzpJChtyZXBlYXRlZF9zZml4ZWQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91" +
631 "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgoIAMoEDpGChhyZXBlYXRlZF9m" +
632 "bG9hdF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0" +
633 "ZW5zaW9ucxgpIAMoAjpHChlyZXBlYXRlZF9kb3VibGVfZXh0ZW5zaW9uEiQu" +
634 "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKiADKAE6RQoX" +
635 "cmVwZWF0ZWRfYm9vbF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" +
636 "ZXN0QWxsRXh0ZW5zaW9ucxgrIAMoCDpHChlyZXBlYXRlZF9zdHJpbmdfZXh0" +
637 "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" +
638 "LCADKAk6RgoYcmVwZWF0ZWRfYnl0ZXNfZXh0ZW5zaW9uEiQucHJvdG9idWZf" +
639 "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYLSADKAw6cQoXcmVwZWF0ZWRn" +
640 "cm91cF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0" +
641 "ZW5zaW9ucxguIAMoCjIqLnByb3RvYnVmX3VuaXR0ZXN0LlJlcGVhdGVkR3Jv" +
642 "dXBfZXh0ZW5zaW9uOn4KIXJlcGVhdGVkX25lc3RlZF9tZXNzYWdlX2V4dGVu" +
643 "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDAg" +
644 "AygLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1l" +
645 "c3NhZ2U6cwoicmVwZWF0ZWRfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIk" +
646 "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDEgAygLMiEu" +
647 "cHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2U6eAohcmVwZWF0ZWRf" +
648 "aW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" +
649 "VGVzdEFsbEV4dGVuc2lvbnMYMiADKAsyJy5wcm90b2J1Zl91bml0dGVzdF9p" +
650 "bXBvcnQuSW1wb3J0TWVzc2FnZTp4Ch5yZXBlYXRlZF9uZXN0ZWRfZW51bV9l" +
651 "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u" +
652 "cxgzIAMoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0" +
653 "ZWRFbnVtOm0KH3JlcGVhdGVkX2ZvcmVpZ25fZW51bV9leHRlbnNpb24SJC5w" +
654 "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg0IAMoDjIeLnBy" +
655 "b3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtOnIKHnJlcGVhdGVkX2ltcG9y" +
656 "dF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" +
657 "eHRlbnNpb25zGDUgAygOMiQucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0Lklt" +
658 "cG9ydEVudW06UQofcmVwZWF0ZWRfc3RyaW5nX3BpZWNlX2V4dGVuc2lvbhIk" +
659 "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDYgAygJQgII" +
660 "AjpJChdyZXBlYXRlZF9jb3JkX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0" +
661 "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDcgAygJQgIIATpJChdkZWZhdWx0X2lu" +
662 "dDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" +
663 "bnNpb25zGD0gASgFOgI0MTpJChdkZWZhdWx0X2ludDY0X2V4dGVuc2lvbhIk" +
664 "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGD4gASgDOgI0" +
665 "MjpKChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" +
666 "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg/IAEoDToCNDM6SgoYZGVmYXVsdF91" +
667 "aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4" +
668 "dGVuc2lvbnMYQCABKAQ6AjQ0OksKGGRlZmF1bHRfc2ludDMyX2V4dGVuc2lv" +
669 "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEEgASgR" +
670 "OgMtNDU6SgoYZGVmYXVsdF9zaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZf" +
671 "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYQiABKBI6AjQ2OksKGWRlZmF1" +
672 "bHRfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0" +
673 "QWxsRXh0ZW5zaW9ucxhDIAEoBzoCNDc6SwoZZGVmYXVsdF9maXhlZDY0X2V4" +
674 "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" +
675 "GEQgASgGOgI0ODpMChpkZWZhdWx0X3NmaXhlZDMyX2V4dGVuc2lvbhIkLnBy" +
676 "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEUgASgPOgI0OTpN" +
677 "ChpkZWZhdWx0X3NmaXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0" +
678 "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEYgASgQOgMtNTA6SwoXZGVmYXVsdF9m" +
679 "bG9hdF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0" +
680 "ZW5zaW9ucxhHIAEoAjoENTEuNTpNChhkZWZhdWx0X2RvdWJsZV9leHRlbnNp" +
681 "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhIIAEo" +
682 "AToFNTIwMDA6SgoWZGVmYXVsdF9ib29sX2V4dGVuc2lvbhIkLnByb3RvYnVm" +
683 "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEkgASgIOgR0cnVlOk0KGGRl" +
684 "ZmF1bHRfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" +
685 "c3RBbGxFeHRlbnNpb25zGEogASgJOgVoZWxsbzpMChdkZWZhdWx0X2J5dGVz" +
686 "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" +
687 "b25zGEsgASgMOgV3b3JsZDp8Ch1kZWZhdWx0X25lc3RlZF9lbnVtX2V4dGVu" +
688 "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGFEg" +
689 "ASgOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVu" +
690 "dW06A0JBUjp5Ch5kZWZhdWx0X2ZvcmVpZ25fZW51bV9leHRlbnNpb24SJC5w" +
691 "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhSIAEoDjIeLnBy" +
692 "b3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtOgtGT1JFSUdOX0JBUjp9Ch1k" +
693 "ZWZhdWx0X2ltcG9ydF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0" +
694 "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGFMgASgOMiQucHJvdG9idWZfdW5pdHRl" +
695 "c3RfaW1wb3J0LkltcG9ydEVudW06CklNUE9SVF9CQVI6VQoeZGVmYXVsdF9z" +
696 "dHJpbmdfcGllY2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" +
697 "dEFsbEV4dGVuc2lvbnMYVCABKAk6A2FiY0ICCAI6TQoWZGVmYXVsdF9jb3Jk" +
698 "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" +
699 "b25zGFUgASgJOgMxMjNCAggBOkIKE215X2V4dGVuc2lvbl9zdHJpbmcSJS5w" +
700 "cm90b2J1Zl91bml0dGVzdC5UZXN0RmllbGRPcmRlcmluZ3MYMiABKAk6PwoQ" +
701 "bXlfZXh0ZW5zaW9uX2ludBIlLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVs" +
702 "ZE9yZGVyaW5ncxgFIAEoBTpLChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9uEicu" +
703 "cHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMYWiADKAVC" +
704 "AhABOksKFnBhY2tlZF9pbnQ2NF9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0" +
705 "dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhbIAMoA0ICEAE6TAoXcGFja2Vk" +
706 "X3VpbnQzMl9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFj" +
707 "a2VkRXh0ZW5zaW9ucxhcIAMoDUICEAE6TAoXcGFja2VkX3VpbnQ2NF9leHRl" +
708 "bnNpb24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9u" +
709 "cxhdIAMoBEICEAE6TAoXcGFja2VkX3NpbnQzMl9leHRlbnNpb24SJy5wcm90" +
710 "b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxheIAMoEUICEAE6" +
711 "TAoXcGFja2VkX3NpbnQ2NF9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0dGVz" +
712 "dC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhfIAMoEkICEAE6TQoYcGFja2VkX2Zp" +
713 "eGVkMzJfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tl" +
714 "ZEV4dGVuc2lvbnMYYCADKAdCAhABOk0KGHBhY2tlZF9maXhlZDY0X2V4dGVu" +
715 "c2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25z" +
716 "GGEgAygGQgIQATpOChlwYWNrZWRfc2ZpeGVkMzJfZXh0ZW5zaW9uEicucHJv" +
717 "dG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMYYiADKA9CAhAB" +
718 "Ok4KGXBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0" +
719 "dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhjIAMoEEICEAE6SwoWcGFja2Vk" +
720 "X2Zsb2F0X2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNr" +
721 "ZWRFeHRlbnNpb25zGGQgAygCQgIQATpMChdwYWNrZWRfZG91YmxlX2V4dGVu" +
722 "c2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25z" +
723 "GGUgAygBQgIQATpKChVwYWNrZWRfYm9vbF9leHRlbnNpb24SJy5wcm90b2J1" +
724 "Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhmIAMoCEICEAE6agoV" +
725 "cGFja2VkX2VudW1fZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVz" +
726 "dFBhY2tlZEV4dGVuc2lvbnMYZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5G" +
727 "b3JlaWduRW51bUICEAFCSkINVW5pdHRlc3RQcm90b0gBwj42CiFHb29nbGUu" +
728 "UHJvdG9jb2xCdWZmZXJzLlRlc3RQcm90b3MSEVVuaXRUZXN0UHJvdG9GaWxl");
729 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
730 descriptor = root;
731 internal__static_protobuf_unittest_TestAllTypes__Descriptor = Descriptor.MessageTypes[0];
732 internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
733 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
734 new string[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", });
735 internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
736 internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
737 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
738 new string[] { "Bb", });
739 internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
740 internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable =
741 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
742 new string[] { "A", });
743 internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
744 internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable =
745 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
746 new string[] { "A", });
747 internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor = Descriptor.MessageTypes[1];
748 internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
749 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder>(internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor,
750 new string[] { "DeprecatedInt32", });
751 internal__static_protobuf_unittest_ForeignMessage__Descriptor = Descriptor.MessageTypes[2];
752 internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
753 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
754 new string[] { "C", });
755 internal__static_protobuf_unittest_TestAllExtensions__Descriptor = Descriptor.MessageTypes[3];
756 internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable =
757 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
758 new string[] { });
759 internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor = Descriptor.MessageTypes[4];
760 internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable =
761 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
762 new string[] { "A", });
763 internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor = Descriptor.MessageTypes[5];
764 internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable =
765 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
766 new string[] { "A", });
767 internal__static_protobuf_unittest_TestNestedExtension__Descriptor = Descriptor.MessageTypes[6];
768 internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable =
769 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder>(internal__static_protobuf_unittest_TestNestedExtension__Descriptor,
770 new string[] { });
771 global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor.Extensions[0]);
772 internal__static_protobuf_unittest_TestRequired__Descriptor = Descriptor.MessageTypes[7];
773 internal__static_protobuf_unittest_TestRequired__FieldAccessorTable =
774 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor,
775 new string[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", });
776 global::Google.ProtocolBuffers.TestProtos.TestRequired.Single = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[0]);
777 global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[1]);
778 internal__static_protobuf_unittest_TestRequiredForeign__Descriptor = Descriptor.MessageTypes[8];
779 internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable =
780 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
781 new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", });
782 internal__static_protobuf_unittest_TestForeignNested__Descriptor = Descriptor.MessageTypes[9];
783 internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
784 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
785 new string[] { "ForeignNested", });
786 internal__static_protobuf_unittest_TestEmptyMessage__Descriptor = Descriptor.MessageTypes[10];
787 internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable =
788 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
789 new string[] { });
790 internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor = Descriptor.MessageTypes[11];
791 internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable =
792 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
793 new string[] { });
794 internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor = Descriptor.MessageTypes[12];
795 internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable =
796 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder>(internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor,
797 new string[] { });
798 internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor = Descriptor.MessageTypes[13];
799 internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
800 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
801 new string[] { "A", "Bb", });
802 internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor = Descriptor.MessageTypes[14];
803 internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
804 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
805 new string[] { "A", "I", });
806 internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor = Descriptor.MessageTypes[15];
807 internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
808 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
809 new string[] { "Bb", });
810 internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor = Descriptor.MessageTypes[16];
811 internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
812 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
813 new string[] { "A", "OptionalInt32", });
814 internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor = Descriptor.MessageTypes[17];
815 internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable =
816 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
817 new string[] { "A", "Foo", "Bar", });
818 internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
819 internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable =
820 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
821 new string[] { "A", });
822 internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
823 internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable =
824 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
825 new string[] { "A", });
826 internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor = Descriptor.MessageTypes[18];
827 internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable =
828 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
829 new string[] { "OptionalNestedMessage", });
830 internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
831 internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable =
832 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
833 new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", });
834 internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor = Descriptor.MessageTypes[19];
835 internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
836 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
837 new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", });
838 internal__static_protobuf_unittest_TestFieldOrderings__Descriptor = Descriptor.MessageTypes[20];
839 internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
840 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
841 new string[] { "MyString", "MyInt", "MyFloat", });
842 internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor = Descriptor.MessageTypes[21];
843 internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable =
844 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
845 new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", });
846 internal__static_protobuf_unittest_OneString__Descriptor = Descriptor.MessageTypes[22];
847 internal__static_protobuf_unittest_OneString__FieldAccessorTable =
848 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder>(internal__static_protobuf_unittest_OneString__Descriptor,
849 new string[] { "Data", });
850 internal__static_protobuf_unittest_OneBytes__Descriptor = Descriptor.MessageTypes[23];
851 internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
852 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder>(internal__static_protobuf_unittest_OneBytes__Descriptor,
853 new string[] { "Data", });
854 internal__static_protobuf_unittest_TestPackedTypes__Descriptor = Descriptor.MessageTypes[24];
855 internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
856 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder>(internal__static_protobuf_unittest_TestPackedTypes__Descriptor,
857 new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", });
858 internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor = Descriptor.MessageTypes[25];
859 internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
860 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder>(internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor,
861 new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", });
862 internal__static_protobuf_unittest_TestPackedExtensions__Descriptor = Descriptor.MessageTypes[26];
863 internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable =
864 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder>(internal__static_protobuf_unittest_TestPackedExtensions__Descriptor,
865 new string[] { });
866 internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor = Descriptor.MessageTypes[27];
867 internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable =
868 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor,
869 new string[] { "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension", });
870 internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor = internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor.NestedTypes[0];
871 internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable =
872 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor,
873 new string[] { "DynamicField", });
874 internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor = Descriptor.MessageTypes[28];
875 internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
876 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder>(internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor,
877 new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", });
878 internal__static_protobuf_unittest_FooRequest__Descriptor = Descriptor.MessageTypes[29];
879 internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
880 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor,
881 new string[] { });
882 internal__static_protobuf_unittest_FooResponse__Descriptor = Descriptor.MessageTypes[30];
883 internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
884 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor,
885 new string[] { });
886 internal__static_protobuf_unittest_BarRequest__Descriptor = Descriptor.MessageTypes[31];
887 internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
888 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor,
889 new string[] { });
890 internal__static_protobuf_unittest_BarResponse__Descriptor = Descriptor.MessageTypes[32];
891 internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
892 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor,
893 new string[] { });
894 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[0]);
895 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[1]);
896 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[2]);
897 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[3]);
898 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[4]);
899 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[5]);
900 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[6]);
901 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[7]);
902 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[8]);
903 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[9]);
904 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[10]);
905 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[11]);
906 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[12]);
907 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[13]);
908 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[14]);
909 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalGroupExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[15]);
910 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalNestedMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[16]);
911 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalForeignMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[17]);
912 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalImportMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[18]);
913 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[19]);
914 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[20]);
915 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[21]);
916 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[22]);
917 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.OptionalCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[23]);
918 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[24]);
919 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[25]);
920 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[26]);
921 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[27]);
922 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[28]);
923 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[29]);
924 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[30]);
925 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[31]);
926 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[32]);
927 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[33]);
928 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[34]);
929 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[35]);
930 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[36]);
931 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedStringExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[37]);
932 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedBytesExtension = pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[38]);
933 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedGroupExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[39]);
934 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedNestedMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[40]);
935 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedForeignMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[41]);
936 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedImportMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[42]);
937 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedNestedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[43]);
938 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedForeignEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[44]);
939 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedImportEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[45]);
940 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedStringPieceExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[46]);
941 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.RepeatedCordExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[47]);
942 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[48]);
943 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[49]);
944 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[50]);
945 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[51]);
946 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[52]);
947 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[53]);
948 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[54]);
949 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[55]);
950 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[56]);
951 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[57]);
952 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[58]);
953 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[59]);
954 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[60]);
955 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[61]);
956 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[62]);
957 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[63]);
958 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[64]);
959 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[65]);
960 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[66]);
961 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.DefaultCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[67]);
962 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.MyExtensionString = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[68]);
963 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.MyExtensionInt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[69]);
964 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[70]);
965 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[71]);
966 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[72]);
967 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[73]);
968 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[74]);
969 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[75]);
970 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[76]);
971 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[77]);
972 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[78]);
973 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[79]);
974 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[80]);
975 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[81]);
976 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[82]);
977 global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.PackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Extensions[83]);
978 pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
979 RegisterAllExtensions(registry);
980 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry);
981 global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.RegisterAllExtensions(registry);
982 return registry;
983 };
984 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
985 new pbd::FileDescriptor[] {
986 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor,
987 global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor,
988 }, assigner);
989 }
990 #endregion
991
992 }
993 #region Enums
csharptest445bdce2011-05-20 15:50:54 -0500994 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
995 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +0100996 public enum ForeignEnum {
997 FOREIGN_FOO = 4,
998 FOREIGN_BAR = 5,
999 FOREIGN_BAZ = 6,
1000 }
1001
csharptest445bdce2011-05-20 15:50:54 -05001002 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1003 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001004 public enum TestEnumWithDupValue {
1005 FOO1 = 1,
1006 BAR1 = 2,
1007 BAZ = 3,
1008 FOO2 = 1,
1009 BAR2 = 2,
1010 }
1011
csharptest445bdce2011-05-20 15:50:54 -05001012 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1013 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001014 public enum TestSparseEnum {
1015 SPARSE_A = 123,
1016 SPARSE_B = 62374,
1017 SPARSE_C = 12589234,
1018 SPARSE_D = -15,
1019 SPARSE_E = -53452,
1020 SPARSE_F = 0,
1021 SPARSE_G = 2,
1022 }
1023
1024 #endregion
1025
1026 #region Messages
csharptest445bdce2011-05-20 15:50:54 -05001027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1028 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1029 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001030 public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
1031 private static readonly TestAllTypes defaultInstance = new Builder().BuildPartial();
1032 public static TestAllTypes DefaultInstance {
1033 get { return defaultInstance; }
1034 }
1035
1036 public override TestAllTypes DefaultInstanceForType {
1037 get { return defaultInstance; }
1038 }
1039
1040 protected override TestAllTypes ThisMessage {
1041 get { return this; }
1042 }
1043
1044 public static pbd::MessageDescriptor Descriptor {
1045 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
1046 }
1047
1048 protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
1049 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
1050 }
1051
1052 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -05001053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1054 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1055 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001056 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -05001057 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1058 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001059 public enum NestedEnum {
1060 FOO = 1,
1061 BAR = 2,
1062 BAZ = 3,
1063 }
1064
csharptest445bdce2011-05-20 15:50:54 -05001065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1066 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1067 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001068 public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
1069 private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
1070 public static NestedMessage DefaultInstance {
1071 get { return defaultInstance; }
1072 }
1073
1074 public override NestedMessage DefaultInstanceForType {
1075 get { return defaultInstance; }
1076 }
1077
1078 protected override NestedMessage ThisMessage {
1079 get { return this; }
1080 }
1081
1082 public static pbd::MessageDescriptor Descriptor {
1083 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
1084 }
1085
1086 protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
1087 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
1088 }
1089
1090 public const int BbFieldNumber = 1;
1091 private bool hasBb;
1092 private int bb_ = 0;
1093 public bool HasBb {
1094 get { return hasBb; }
1095 }
1096 public int Bb {
1097 get { return bb_; }
1098 }
1099
1100 public override bool IsInitialized {
1101 get {
1102 return true;
1103 }
1104 }
1105
csharptestffafdaa2011-06-03 12:58:14 -05001106 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001107 int size = SerializedSize;
1108 if (HasBb) {
csharptest90922db2011-06-03 11:57:47 -05001109 output.WriteInt32(1, "bb", Bb);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001110 }
1111 UnknownFields.WriteTo(output);
1112 }
1113
1114 private int memoizedSerializedSize = -1;
1115 public override int SerializedSize {
1116 get {
1117 int size = memoizedSerializedSize;
1118 if (size != -1) return size;
1119
1120 size = 0;
1121 if (HasBb) {
1122 size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
1123 }
1124 size += UnknownFields.SerializedSize;
1125 memoizedSerializedSize = size;
1126 return size;
1127 }
1128 }
1129
1130 public static NestedMessage ParseFrom(pb::ByteString data) {
1131 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1132 }
1133 public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1134 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1135 }
1136 public static NestedMessage ParseFrom(byte[] data) {
1137 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1138 }
1139 public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1140 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1141 }
1142 public static NestedMessage ParseFrom(global::System.IO.Stream input) {
1143 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1144 }
1145 public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1146 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1147 }
1148 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
1149 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1150 }
1151 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1152 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1153 }
csharptest17699c22011-06-03 21:57:15 -05001154 public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001155 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1156 }
csharptest17699c22011-06-03 21:57:15 -05001157 public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001158 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1159 }
1160 public static Builder CreateBuilder() { return new Builder(); }
1161 public override Builder ToBuilder() { return CreateBuilder(this); }
1162 public override Builder CreateBuilderForType() { return new Builder(); }
1163 public static Builder CreateBuilder(NestedMessage prototype) {
1164 return (Builder) new Builder().MergeFrom(prototype);
1165 }
1166
csharptest445bdce2011-05-20 15:50:54 -05001167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1168 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1169 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001170 public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
1171 protected override Builder ThisBuilder {
1172 get { return this; }
1173 }
1174 public Builder() {}
1175
1176 NestedMessage result = new NestedMessage();
1177
1178 protected override NestedMessage MessageBeingBuilt {
1179 get { return result; }
1180 }
1181
1182 public override Builder Clear() {
1183 result = new NestedMessage();
1184 return this;
1185 }
1186
1187 public override Builder Clone() {
1188 return new Builder().MergeFrom(result);
1189 }
1190
1191 public override pbd::MessageDescriptor DescriptorForType {
1192 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
1193 }
1194
1195 public override NestedMessage DefaultInstanceForType {
1196 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
1197 }
1198
1199 public override NestedMessage BuildPartial() {
1200 if (result == null) {
1201 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1202 }
1203 NestedMessage returnMe = result;
1204 result = null;
1205 return returnMe;
1206 }
1207
1208 public override Builder MergeFrom(pb::IMessage other) {
1209 if (other is NestedMessage) {
1210 return MergeFrom((NestedMessage) other);
1211 } else {
1212 base.MergeFrom(other);
1213 return this;
1214 }
1215 }
1216
1217 public override Builder MergeFrom(NestedMessage other) {
1218 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
1219 if (other.HasBb) {
1220 Bb = other.Bb;
1221 }
1222 this.MergeUnknownFields(other.UnknownFields);
1223 return this;
1224 }
1225
csharptest17699c22011-06-03 21:57:15 -05001226 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001227 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1228 }
1229
csharptest17699c22011-06-03 21:57:15 -05001230 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001231 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001232 uint tag;
1233 string field_name;
1234 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001235 switch (tag) {
1236 case 0: {
csharptest99284412011-06-03 14:51:06 -05001237 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001238 }
1239 default: {
1240 if (pb::WireFormat.IsEndGroupTag(tag)) {
1241 if (unknownFields != null) {
1242 this.UnknownFields = unknownFields.Build();
1243 }
1244 return this;
1245 }
1246 if (unknownFields == null) {
1247 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1248 }
csharptestd2af9e92011-06-03 21:35:02 -05001249 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001250 break;
1251 }
1252 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05001253 result.hasBb |= input.ReadInt32(ref result.bb_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001254 break;
1255 }
1256 }
1257 }
csharptest123e5342011-06-03 14:15:21 -05001258
1259 if (unknownFields != null) {
1260 this.UnknownFields = unknownFields.Build();
1261 }
1262 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001263 }
1264
1265
1266 public bool HasBb {
1267 get { return result.HasBb; }
1268 }
1269 public int Bb {
1270 get { return result.Bb; }
1271 set { SetBb(value); }
1272 }
1273 public Builder SetBb(int value) {
1274 result.hasBb = true;
1275 result.bb_ = value;
1276 return this;
1277 }
1278 public Builder ClearBb() {
1279 result.hasBb = false;
1280 result.bb_ = 0;
1281 return this;
1282 }
1283 }
1284 static NestedMessage() {
1285 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1286 }
1287 }
1288
csharptest445bdce2011-05-20 15:50:54 -05001289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1290 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1291 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001292 public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
1293 private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
1294 public static OptionalGroup DefaultInstance {
1295 get { return defaultInstance; }
1296 }
1297
1298 public override OptionalGroup DefaultInstanceForType {
1299 get { return defaultInstance; }
1300 }
1301
1302 protected override OptionalGroup ThisMessage {
1303 get { return this; }
1304 }
1305
1306 public static pbd::MessageDescriptor Descriptor {
1307 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
1308 }
1309
1310 protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
1311 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
1312 }
1313
1314 public const int AFieldNumber = 17;
1315 private bool hasA;
1316 private int a_ = 0;
1317 public bool HasA {
1318 get { return hasA; }
1319 }
1320 public int A {
1321 get { return a_; }
1322 }
1323
1324 public override bool IsInitialized {
1325 get {
1326 return true;
1327 }
1328 }
1329
csharptestffafdaa2011-06-03 12:58:14 -05001330 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001331 int size = SerializedSize;
1332 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05001333 output.WriteInt32(17, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001334 }
1335 UnknownFields.WriteTo(output);
1336 }
1337
1338 private int memoizedSerializedSize = -1;
1339 public override int SerializedSize {
1340 get {
1341 int size = memoizedSerializedSize;
1342 if (size != -1) return size;
1343
1344 size = 0;
1345 if (HasA) {
1346 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
1347 }
1348 size += UnknownFields.SerializedSize;
1349 memoizedSerializedSize = size;
1350 return size;
1351 }
1352 }
1353
1354 public static OptionalGroup ParseFrom(pb::ByteString data) {
1355 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1356 }
1357 public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1358 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1359 }
1360 public static OptionalGroup ParseFrom(byte[] data) {
1361 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1362 }
1363 public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1364 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1365 }
1366 public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
1367 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1368 }
1369 public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1370 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1371 }
1372 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1373 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1374 }
1375 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1376 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1377 }
csharptest17699c22011-06-03 21:57:15 -05001378 public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001379 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1380 }
csharptest17699c22011-06-03 21:57:15 -05001381 public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001382 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1383 }
1384 public static Builder CreateBuilder() { return new Builder(); }
1385 public override Builder ToBuilder() { return CreateBuilder(this); }
1386 public override Builder CreateBuilderForType() { return new Builder(); }
1387 public static Builder CreateBuilder(OptionalGroup prototype) {
1388 return (Builder) new Builder().MergeFrom(prototype);
1389 }
1390
csharptest445bdce2011-05-20 15:50:54 -05001391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1392 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1393 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001394 public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
1395 protected override Builder ThisBuilder {
1396 get { return this; }
1397 }
1398 public Builder() {}
1399
1400 OptionalGroup result = new OptionalGroup();
1401
1402 protected override OptionalGroup MessageBeingBuilt {
1403 get { return result; }
1404 }
1405
1406 public override Builder Clear() {
1407 result = new OptionalGroup();
1408 return this;
1409 }
1410
1411 public override Builder Clone() {
1412 return new Builder().MergeFrom(result);
1413 }
1414
1415 public override pbd::MessageDescriptor DescriptorForType {
1416 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
1417 }
1418
1419 public override OptionalGroup DefaultInstanceForType {
1420 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
1421 }
1422
1423 public override OptionalGroup BuildPartial() {
1424 if (result == null) {
1425 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1426 }
1427 OptionalGroup returnMe = result;
1428 result = null;
1429 return returnMe;
1430 }
1431
1432 public override Builder MergeFrom(pb::IMessage other) {
1433 if (other is OptionalGroup) {
1434 return MergeFrom((OptionalGroup) other);
1435 } else {
1436 base.MergeFrom(other);
1437 return this;
1438 }
1439 }
1440
1441 public override Builder MergeFrom(OptionalGroup other) {
1442 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
1443 if (other.HasA) {
1444 A = other.A;
1445 }
1446 this.MergeUnknownFields(other.UnknownFields);
1447 return this;
1448 }
1449
csharptest17699c22011-06-03 21:57:15 -05001450 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001451 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1452 }
1453
csharptest17699c22011-06-03 21:57:15 -05001454 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001455 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001456 uint tag;
1457 string field_name;
1458 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001459 switch (tag) {
1460 case 0: {
csharptest99284412011-06-03 14:51:06 -05001461 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001462 }
1463 default: {
1464 if (pb::WireFormat.IsEndGroupTag(tag)) {
1465 if (unknownFields != null) {
1466 this.UnknownFields = unknownFields.Build();
1467 }
1468 return this;
1469 }
1470 if (unknownFields == null) {
1471 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1472 }
csharptestd2af9e92011-06-03 21:35:02 -05001473 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001474 break;
1475 }
1476 case 136: {
csharptestd2af9e92011-06-03 21:35:02 -05001477 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001478 break;
1479 }
1480 }
1481 }
csharptest123e5342011-06-03 14:15:21 -05001482
1483 if (unknownFields != null) {
1484 this.UnknownFields = unknownFields.Build();
1485 }
1486 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001487 }
1488
1489
1490 public bool HasA {
1491 get { return result.HasA; }
1492 }
1493 public int A {
1494 get { return result.A; }
1495 set { SetA(value); }
1496 }
1497 public Builder SetA(int value) {
1498 result.hasA = true;
1499 result.a_ = value;
1500 return this;
1501 }
1502 public Builder ClearA() {
1503 result.hasA = false;
1504 result.a_ = 0;
1505 return this;
1506 }
1507 }
1508 static OptionalGroup() {
1509 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1510 }
1511 }
1512
csharptest445bdce2011-05-20 15:50:54 -05001513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1514 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1515 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001516 public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
1517 private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
1518 public static RepeatedGroup DefaultInstance {
1519 get { return defaultInstance; }
1520 }
1521
1522 public override RepeatedGroup DefaultInstanceForType {
1523 get { return defaultInstance; }
1524 }
1525
1526 protected override RepeatedGroup ThisMessage {
1527 get { return this; }
1528 }
1529
1530 public static pbd::MessageDescriptor Descriptor {
1531 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
1532 }
1533
1534 protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
1535 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
1536 }
1537
1538 public const int AFieldNumber = 47;
1539 private bool hasA;
1540 private int a_ = 0;
1541 public bool HasA {
1542 get { return hasA; }
1543 }
1544 public int A {
1545 get { return a_; }
1546 }
1547
1548 public override bool IsInitialized {
1549 get {
1550 return true;
1551 }
1552 }
1553
csharptestffafdaa2011-06-03 12:58:14 -05001554 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001555 int size = SerializedSize;
1556 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05001557 output.WriteInt32(47, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001558 }
1559 UnknownFields.WriteTo(output);
1560 }
1561
1562 private int memoizedSerializedSize = -1;
1563 public override int SerializedSize {
1564 get {
1565 int size = memoizedSerializedSize;
1566 if (size != -1) return size;
1567
1568 size = 0;
1569 if (HasA) {
1570 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
1571 }
1572 size += UnknownFields.SerializedSize;
1573 memoizedSerializedSize = size;
1574 return size;
1575 }
1576 }
1577
1578 public static RepeatedGroup ParseFrom(pb::ByteString data) {
1579 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1580 }
1581 public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1582 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1583 }
1584 public static RepeatedGroup ParseFrom(byte[] data) {
1585 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1586 }
1587 public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1588 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1589 }
1590 public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
1591 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1592 }
1593 public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1594 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1595 }
1596 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1597 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1598 }
1599 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1600 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1601 }
csharptest17699c22011-06-03 21:57:15 -05001602 public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001603 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1604 }
csharptest17699c22011-06-03 21:57:15 -05001605 public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001606 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1607 }
1608 public static Builder CreateBuilder() { return new Builder(); }
1609 public override Builder ToBuilder() { return CreateBuilder(this); }
1610 public override Builder CreateBuilderForType() { return new Builder(); }
1611 public static Builder CreateBuilder(RepeatedGroup prototype) {
1612 return (Builder) new Builder().MergeFrom(prototype);
1613 }
1614
csharptest445bdce2011-05-20 15:50:54 -05001615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1616 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1617 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001618 public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
1619 protected override Builder ThisBuilder {
1620 get { return this; }
1621 }
1622 public Builder() {}
1623
1624 RepeatedGroup result = new RepeatedGroup();
1625
1626 protected override RepeatedGroup MessageBeingBuilt {
1627 get { return result; }
1628 }
1629
1630 public override Builder Clear() {
1631 result = new RepeatedGroup();
1632 return this;
1633 }
1634
1635 public override Builder Clone() {
1636 return new Builder().MergeFrom(result);
1637 }
1638
1639 public override pbd::MessageDescriptor DescriptorForType {
1640 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
1641 }
1642
1643 public override RepeatedGroup DefaultInstanceForType {
1644 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
1645 }
1646
1647 public override RepeatedGroup BuildPartial() {
1648 if (result == null) {
1649 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1650 }
1651 RepeatedGroup returnMe = result;
1652 result = null;
1653 return returnMe;
1654 }
1655
1656 public override Builder MergeFrom(pb::IMessage other) {
1657 if (other is RepeatedGroup) {
1658 return MergeFrom((RepeatedGroup) other);
1659 } else {
1660 base.MergeFrom(other);
1661 return this;
1662 }
1663 }
1664
1665 public override Builder MergeFrom(RepeatedGroup other) {
1666 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
1667 if (other.HasA) {
1668 A = other.A;
1669 }
1670 this.MergeUnknownFields(other.UnknownFields);
1671 return this;
1672 }
1673
csharptest17699c22011-06-03 21:57:15 -05001674 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001675 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1676 }
1677
csharptest17699c22011-06-03 21:57:15 -05001678 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001679 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001680 uint tag;
1681 string field_name;
1682 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001683 switch (tag) {
1684 case 0: {
csharptest99284412011-06-03 14:51:06 -05001685 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001686 }
1687 default: {
1688 if (pb::WireFormat.IsEndGroupTag(tag)) {
1689 if (unknownFields != null) {
1690 this.UnknownFields = unknownFields.Build();
1691 }
1692 return this;
1693 }
1694 if (unknownFields == null) {
1695 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1696 }
csharptestd2af9e92011-06-03 21:35:02 -05001697 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001698 break;
1699 }
1700 case 376: {
csharptestd2af9e92011-06-03 21:35:02 -05001701 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001702 break;
1703 }
1704 }
1705 }
csharptest123e5342011-06-03 14:15:21 -05001706
1707 if (unknownFields != null) {
1708 this.UnknownFields = unknownFields.Build();
1709 }
1710 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001711 }
1712
1713
1714 public bool HasA {
1715 get { return result.HasA; }
1716 }
1717 public int A {
1718 get { return result.A; }
1719 set { SetA(value); }
1720 }
1721 public Builder SetA(int value) {
1722 result.hasA = true;
1723 result.a_ = value;
1724 return this;
1725 }
1726 public Builder ClearA() {
1727 result.hasA = false;
1728 result.a_ = 0;
1729 return this;
1730 }
1731 }
1732 static RepeatedGroup() {
1733 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1734 }
1735 }
1736
1737 }
1738 #endregion
1739
1740 public const int OptionalInt32FieldNumber = 1;
1741 private bool hasOptionalInt32;
1742 private int optionalInt32_ = 0;
1743 public bool HasOptionalInt32 {
1744 get { return hasOptionalInt32; }
1745 }
1746 public int OptionalInt32 {
1747 get { return optionalInt32_; }
1748 }
1749
1750 public const int OptionalInt64FieldNumber = 2;
1751 private bool hasOptionalInt64;
1752 private long optionalInt64_ = 0L;
1753 public bool HasOptionalInt64 {
1754 get { return hasOptionalInt64; }
1755 }
1756 public long OptionalInt64 {
1757 get { return optionalInt64_; }
1758 }
1759
1760 public const int OptionalUint32FieldNumber = 3;
1761 private bool hasOptionalUint32;
1762 private uint optionalUint32_ = 0;
1763 public bool HasOptionalUint32 {
1764 get { return hasOptionalUint32; }
1765 }
1766 [global::System.CLSCompliant(false)]
1767 public uint OptionalUint32 {
1768 get { return optionalUint32_; }
1769 }
1770
1771 public const int OptionalUint64FieldNumber = 4;
1772 private bool hasOptionalUint64;
1773 private ulong optionalUint64_ = 0UL;
1774 public bool HasOptionalUint64 {
1775 get { return hasOptionalUint64; }
1776 }
1777 [global::System.CLSCompliant(false)]
1778 public ulong OptionalUint64 {
1779 get { return optionalUint64_; }
1780 }
1781
1782 public const int OptionalSint32FieldNumber = 5;
1783 private bool hasOptionalSint32;
1784 private int optionalSint32_ = 0;
1785 public bool HasOptionalSint32 {
1786 get { return hasOptionalSint32; }
1787 }
1788 public int OptionalSint32 {
1789 get { return optionalSint32_; }
1790 }
1791
1792 public const int OptionalSint64FieldNumber = 6;
1793 private bool hasOptionalSint64;
1794 private long optionalSint64_ = 0;
1795 public bool HasOptionalSint64 {
1796 get { return hasOptionalSint64; }
1797 }
1798 public long OptionalSint64 {
1799 get { return optionalSint64_; }
1800 }
1801
1802 public const int OptionalFixed32FieldNumber = 7;
1803 private bool hasOptionalFixed32;
1804 private uint optionalFixed32_ = 0;
1805 public bool HasOptionalFixed32 {
1806 get { return hasOptionalFixed32; }
1807 }
1808 [global::System.CLSCompliant(false)]
1809 public uint OptionalFixed32 {
1810 get { return optionalFixed32_; }
1811 }
1812
1813 public const int OptionalFixed64FieldNumber = 8;
1814 private bool hasOptionalFixed64;
1815 private ulong optionalFixed64_ = 0;
1816 public bool HasOptionalFixed64 {
1817 get { return hasOptionalFixed64; }
1818 }
1819 [global::System.CLSCompliant(false)]
1820 public ulong OptionalFixed64 {
1821 get { return optionalFixed64_; }
1822 }
1823
1824 public const int OptionalSfixed32FieldNumber = 9;
1825 private bool hasOptionalSfixed32;
1826 private int optionalSfixed32_ = 0;
1827 public bool HasOptionalSfixed32 {
1828 get { return hasOptionalSfixed32; }
1829 }
1830 public int OptionalSfixed32 {
1831 get { return optionalSfixed32_; }
1832 }
1833
1834 public const int OptionalSfixed64FieldNumber = 10;
1835 private bool hasOptionalSfixed64;
1836 private long optionalSfixed64_ = 0;
1837 public bool HasOptionalSfixed64 {
1838 get { return hasOptionalSfixed64; }
1839 }
1840 public long OptionalSfixed64 {
1841 get { return optionalSfixed64_; }
1842 }
1843
1844 public const int OptionalFloatFieldNumber = 11;
1845 private bool hasOptionalFloat;
1846 private float optionalFloat_ = 0F;
1847 public bool HasOptionalFloat {
1848 get { return hasOptionalFloat; }
1849 }
1850 public float OptionalFloat {
1851 get { return optionalFloat_; }
1852 }
1853
1854 public const int OptionalDoubleFieldNumber = 12;
1855 private bool hasOptionalDouble;
1856 private double optionalDouble_ = 0D;
1857 public bool HasOptionalDouble {
1858 get { return hasOptionalDouble; }
1859 }
1860 public double OptionalDouble {
1861 get { return optionalDouble_; }
1862 }
1863
1864 public const int OptionalBoolFieldNumber = 13;
1865 private bool hasOptionalBool;
1866 private bool optionalBool_ = false;
1867 public bool HasOptionalBool {
1868 get { return hasOptionalBool; }
1869 }
1870 public bool OptionalBool {
1871 get { return optionalBool_; }
1872 }
1873
1874 public const int OptionalStringFieldNumber = 14;
1875 private bool hasOptionalString;
1876 private string optionalString_ = "";
1877 public bool HasOptionalString {
1878 get { return hasOptionalString; }
1879 }
1880 public string OptionalString {
1881 get { return optionalString_; }
1882 }
1883
1884 public const int OptionalBytesFieldNumber = 15;
1885 private bool hasOptionalBytes;
1886 private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
1887 public bool HasOptionalBytes {
1888 get { return hasOptionalBytes; }
1889 }
1890 public pb::ByteString OptionalBytes {
1891 get { return optionalBytes_; }
1892 }
1893
1894 public const int OptionalGroupFieldNumber = 16;
1895 private bool hasOptionalGroup;
1896 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
1897 public bool HasOptionalGroup {
1898 get { return hasOptionalGroup; }
1899 }
1900 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
1901 get { return optionalGroup_; }
1902 }
1903
1904 public const int OptionalNestedMessageFieldNumber = 18;
1905 private bool hasOptionalNestedMessage;
1906 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
1907 public bool HasOptionalNestedMessage {
1908 get { return hasOptionalNestedMessage; }
1909 }
1910 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
1911 get { return optionalNestedMessage_; }
1912 }
1913
1914 public const int OptionalForeignMessageFieldNumber = 19;
1915 private bool hasOptionalForeignMessage;
1916 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
1917 public bool HasOptionalForeignMessage {
1918 get { return hasOptionalForeignMessage; }
1919 }
1920 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
1921 get { return optionalForeignMessage_; }
1922 }
1923
1924 public const int OptionalImportMessageFieldNumber = 20;
1925 private bool hasOptionalImportMessage;
1926 private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
1927 public bool HasOptionalImportMessage {
1928 get { return hasOptionalImportMessage; }
1929 }
1930 public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
1931 get { return optionalImportMessage_; }
1932 }
1933
1934 public const int OptionalNestedEnumFieldNumber = 21;
1935 private bool hasOptionalNestedEnum;
1936 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
1937 public bool HasOptionalNestedEnum {
1938 get { return hasOptionalNestedEnum; }
1939 }
1940 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
1941 get { return optionalNestedEnum_; }
1942 }
1943
1944 public const int OptionalForeignEnumFieldNumber = 22;
1945 private bool hasOptionalForeignEnum;
1946 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
1947 public bool HasOptionalForeignEnum {
1948 get { return hasOptionalForeignEnum; }
1949 }
1950 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
1951 get { return optionalForeignEnum_; }
1952 }
1953
1954 public const int OptionalImportEnumFieldNumber = 23;
1955 private bool hasOptionalImportEnum;
1956 private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
1957 public bool HasOptionalImportEnum {
1958 get { return hasOptionalImportEnum; }
1959 }
1960 public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
1961 get { return optionalImportEnum_; }
1962 }
1963
1964 public const int OptionalStringPieceFieldNumber = 24;
1965 private bool hasOptionalStringPiece;
1966 private string optionalStringPiece_ = "";
1967 public bool HasOptionalStringPiece {
1968 get { return hasOptionalStringPiece; }
1969 }
1970 public string OptionalStringPiece {
1971 get { return optionalStringPiece_; }
1972 }
1973
1974 public const int OptionalCordFieldNumber = 25;
1975 private bool hasOptionalCord;
1976 private string optionalCord_ = "";
1977 public bool HasOptionalCord {
1978 get { return hasOptionalCord; }
1979 }
1980 public string OptionalCord {
1981 get { return optionalCord_; }
1982 }
1983
1984 public const int RepeatedInt32FieldNumber = 31;
1985 private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
1986 public scg::IList<int> RepeatedInt32List {
1987 get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
1988 }
1989 public int RepeatedInt32Count {
1990 get { return repeatedInt32_.Count; }
1991 }
1992 public int GetRepeatedInt32(int index) {
1993 return repeatedInt32_[index];
1994 }
1995
1996 public const int RepeatedInt64FieldNumber = 32;
1997 private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
1998 public scg::IList<long> RepeatedInt64List {
1999 get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
2000 }
2001 public int RepeatedInt64Count {
2002 get { return repeatedInt64_.Count; }
2003 }
2004 public long GetRepeatedInt64(int index) {
2005 return repeatedInt64_[index];
2006 }
2007
2008 public const int RepeatedUint32FieldNumber = 33;
2009 private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
2010 [global::System.CLSCompliant(false)]
2011 public scg::IList<uint> RepeatedUint32List {
2012 get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
2013 }
2014 public int RepeatedUint32Count {
2015 get { return repeatedUint32_.Count; }
2016 }
2017 [global::System.CLSCompliant(false)]
2018 public uint GetRepeatedUint32(int index) {
2019 return repeatedUint32_[index];
2020 }
2021
2022 public const int RepeatedUint64FieldNumber = 34;
2023 private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
2024 [global::System.CLSCompliant(false)]
2025 public scg::IList<ulong> RepeatedUint64List {
2026 get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
2027 }
2028 public int RepeatedUint64Count {
2029 get { return repeatedUint64_.Count; }
2030 }
2031 [global::System.CLSCompliant(false)]
2032 public ulong GetRepeatedUint64(int index) {
2033 return repeatedUint64_[index];
2034 }
2035
2036 public const int RepeatedSint32FieldNumber = 35;
2037 private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
2038 public scg::IList<int> RepeatedSint32List {
2039 get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
2040 }
2041 public int RepeatedSint32Count {
2042 get { return repeatedSint32_.Count; }
2043 }
2044 public int GetRepeatedSint32(int index) {
2045 return repeatedSint32_[index];
2046 }
2047
2048 public const int RepeatedSint64FieldNumber = 36;
2049 private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
2050 public scg::IList<long> RepeatedSint64List {
2051 get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
2052 }
2053 public int RepeatedSint64Count {
2054 get { return repeatedSint64_.Count; }
2055 }
2056 public long GetRepeatedSint64(int index) {
2057 return repeatedSint64_[index];
2058 }
2059
2060 public const int RepeatedFixed32FieldNumber = 37;
2061 private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
2062 [global::System.CLSCompliant(false)]
2063 public scg::IList<uint> RepeatedFixed32List {
2064 get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
2065 }
2066 public int RepeatedFixed32Count {
2067 get { return repeatedFixed32_.Count; }
2068 }
2069 [global::System.CLSCompliant(false)]
2070 public uint GetRepeatedFixed32(int index) {
2071 return repeatedFixed32_[index];
2072 }
2073
2074 public const int RepeatedFixed64FieldNumber = 38;
2075 private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
2076 [global::System.CLSCompliant(false)]
2077 public scg::IList<ulong> RepeatedFixed64List {
2078 get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
2079 }
2080 public int RepeatedFixed64Count {
2081 get { return repeatedFixed64_.Count; }
2082 }
2083 [global::System.CLSCompliant(false)]
2084 public ulong GetRepeatedFixed64(int index) {
2085 return repeatedFixed64_[index];
2086 }
2087
2088 public const int RepeatedSfixed32FieldNumber = 39;
2089 private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
2090 public scg::IList<int> RepeatedSfixed32List {
2091 get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
2092 }
2093 public int RepeatedSfixed32Count {
2094 get { return repeatedSfixed32_.Count; }
2095 }
2096 public int GetRepeatedSfixed32(int index) {
2097 return repeatedSfixed32_[index];
2098 }
2099
2100 public const int RepeatedSfixed64FieldNumber = 40;
2101 private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
2102 public scg::IList<long> RepeatedSfixed64List {
2103 get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
2104 }
2105 public int RepeatedSfixed64Count {
2106 get { return repeatedSfixed64_.Count; }
2107 }
2108 public long GetRepeatedSfixed64(int index) {
2109 return repeatedSfixed64_[index];
2110 }
2111
2112 public const int RepeatedFloatFieldNumber = 41;
2113 private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
2114 public scg::IList<float> RepeatedFloatList {
2115 get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
2116 }
2117 public int RepeatedFloatCount {
2118 get { return repeatedFloat_.Count; }
2119 }
2120 public float GetRepeatedFloat(int index) {
2121 return repeatedFloat_[index];
2122 }
2123
2124 public const int RepeatedDoubleFieldNumber = 42;
2125 private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
2126 public scg::IList<double> RepeatedDoubleList {
2127 get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
2128 }
2129 public int RepeatedDoubleCount {
2130 get { return repeatedDouble_.Count; }
2131 }
2132 public double GetRepeatedDouble(int index) {
2133 return repeatedDouble_[index];
2134 }
2135
2136 public const int RepeatedBoolFieldNumber = 43;
2137 private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
2138 public scg::IList<bool> RepeatedBoolList {
2139 get { return pbc::Lists.AsReadOnly(repeatedBool_); }
2140 }
2141 public int RepeatedBoolCount {
2142 get { return repeatedBool_.Count; }
2143 }
2144 public bool GetRepeatedBool(int index) {
2145 return repeatedBool_[index];
2146 }
2147
2148 public const int RepeatedStringFieldNumber = 44;
2149 private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
2150 public scg::IList<string> RepeatedStringList {
2151 get { return pbc::Lists.AsReadOnly(repeatedString_); }
2152 }
2153 public int RepeatedStringCount {
2154 get { return repeatedString_.Count; }
2155 }
2156 public string GetRepeatedString(int index) {
2157 return repeatedString_[index];
2158 }
2159
2160 public const int RepeatedBytesFieldNumber = 45;
2161 private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
2162 public scg::IList<pb::ByteString> RepeatedBytesList {
2163 get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
2164 }
2165 public int RepeatedBytesCount {
2166 get { return repeatedBytes_.Count; }
2167 }
2168 public pb::ByteString GetRepeatedBytes(int index) {
2169 return repeatedBytes_[index];
2170 }
2171
2172 public const int RepeatedGroupFieldNumber = 46;
2173 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
2174 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
2175 get { return repeatedGroup_; }
2176 }
2177 public int RepeatedGroupCount {
2178 get { return repeatedGroup_.Count; }
2179 }
2180 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
2181 return repeatedGroup_[index];
2182 }
2183
2184 public const int RepeatedNestedMessageFieldNumber = 48;
2185 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
2186 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
2187 get { return repeatedNestedMessage_; }
2188 }
2189 public int RepeatedNestedMessageCount {
2190 get { return repeatedNestedMessage_.Count; }
2191 }
2192 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
2193 return repeatedNestedMessage_[index];
2194 }
2195
2196 public const int RepeatedForeignMessageFieldNumber = 49;
2197 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
2198 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
2199 get { return repeatedForeignMessage_; }
2200 }
2201 public int RepeatedForeignMessageCount {
2202 get { return repeatedForeignMessage_.Count; }
2203 }
2204 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
2205 return repeatedForeignMessage_[index];
2206 }
2207
2208 public const int RepeatedImportMessageFieldNumber = 50;
2209 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
2210 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
2211 get { return repeatedImportMessage_; }
2212 }
2213 public int RepeatedImportMessageCount {
2214 get { return repeatedImportMessage_.Count; }
2215 }
2216 public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
2217 return repeatedImportMessage_[index];
2218 }
2219
2220 public const int RepeatedNestedEnumFieldNumber = 51;
2221 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
2222 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
2223 get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
2224 }
2225 public int RepeatedNestedEnumCount {
2226 get { return repeatedNestedEnum_.Count; }
2227 }
2228 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
2229 return repeatedNestedEnum_[index];
2230 }
2231
2232 public const int RepeatedForeignEnumFieldNumber = 52;
2233 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
2234 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
2235 get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
2236 }
2237 public int RepeatedForeignEnumCount {
2238 get { return repeatedForeignEnum_.Count; }
2239 }
2240 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
2241 return repeatedForeignEnum_[index];
2242 }
2243
2244 public const int RepeatedImportEnumFieldNumber = 53;
2245 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
2246 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
2247 get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
2248 }
2249 public int RepeatedImportEnumCount {
2250 get { return repeatedImportEnum_.Count; }
2251 }
2252 public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
2253 return repeatedImportEnum_[index];
2254 }
2255
2256 public const int RepeatedStringPieceFieldNumber = 54;
2257 private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
2258 public scg::IList<string> RepeatedStringPieceList {
2259 get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
2260 }
2261 public int RepeatedStringPieceCount {
2262 get { return repeatedStringPiece_.Count; }
2263 }
2264 public string GetRepeatedStringPiece(int index) {
2265 return repeatedStringPiece_[index];
2266 }
2267
2268 public const int RepeatedCordFieldNumber = 55;
2269 private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
2270 public scg::IList<string> RepeatedCordList {
2271 get { return pbc::Lists.AsReadOnly(repeatedCord_); }
2272 }
2273 public int RepeatedCordCount {
2274 get { return repeatedCord_.Count; }
2275 }
2276 public string GetRepeatedCord(int index) {
2277 return repeatedCord_[index];
2278 }
2279
2280 public const int DefaultInt32FieldNumber = 61;
2281 private bool hasDefaultInt32;
2282 private int defaultInt32_ = 41;
2283 public bool HasDefaultInt32 {
2284 get { return hasDefaultInt32; }
2285 }
2286 public int DefaultInt32 {
2287 get { return defaultInt32_; }
2288 }
2289
2290 public const int DefaultInt64FieldNumber = 62;
2291 private bool hasDefaultInt64;
2292 private long defaultInt64_ = 42L;
2293 public bool HasDefaultInt64 {
2294 get { return hasDefaultInt64; }
2295 }
2296 public long DefaultInt64 {
2297 get { return defaultInt64_; }
2298 }
2299
2300 public const int DefaultUint32FieldNumber = 63;
2301 private bool hasDefaultUint32;
2302 private uint defaultUint32_ = 43;
2303 public bool HasDefaultUint32 {
2304 get { return hasDefaultUint32; }
2305 }
2306 [global::System.CLSCompliant(false)]
2307 public uint DefaultUint32 {
2308 get { return defaultUint32_; }
2309 }
2310
2311 public const int DefaultUint64FieldNumber = 64;
2312 private bool hasDefaultUint64;
2313 private ulong defaultUint64_ = 44UL;
2314 public bool HasDefaultUint64 {
2315 get { return hasDefaultUint64; }
2316 }
2317 [global::System.CLSCompliant(false)]
2318 public ulong DefaultUint64 {
2319 get { return defaultUint64_; }
2320 }
2321
2322 public const int DefaultSint32FieldNumber = 65;
2323 private bool hasDefaultSint32;
2324 private int defaultSint32_ = -45;
2325 public bool HasDefaultSint32 {
2326 get { return hasDefaultSint32; }
2327 }
2328 public int DefaultSint32 {
2329 get { return defaultSint32_; }
2330 }
2331
2332 public const int DefaultSint64FieldNumber = 66;
2333 private bool hasDefaultSint64;
2334 private long defaultSint64_ = 46;
2335 public bool HasDefaultSint64 {
2336 get { return hasDefaultSint64; }
2337 }
2338 public long DefaultSint64 {
2339 get { return defaultSint64_; }
2340 }
2341
2342 public const int DefaultFixed32FieldNumber = 67;
2343 private bool hasDefaultFixed32;
2344 private uint defaultFixed32_ = 47;
2345 public bool HasDefaultFixed32 {
2346 get { return hasDefaultFixed32; }
2347 }
2348 [global::System.CLSCompliant(false)]
2349 public uint DefaultFixed32 {
2350 get { return defaultFixed32_; }
2351 }
2352
2353 public const int DefaultFixed64FieldNumber = 68;
2354 private bool hasDefaultFixed64;
2355 private ulong defaultFixed64_ = 48;
2356 public bool HasDefaultFixed64 {
2357 get { return hasDefaultFixed64; }
2358 }
2359 [global::System.CLSCompliant(false)]
2360 public ulong DefaultFixed64 {
2361 get { return defaultFixed64_; }
2362 }
2363
2364 public const int DefaultSfixed32FieldNumber = 69;
2365 private bool hasDefaultSfixed32;
2366 private int defaultSfixed32_ = 49;
2367 public bool HasDefaultSfixed32 {
2368 get { return hasDefaultSfixed32; }
2369 }
2370 public int DefaultSfixed32 {
2371 get { return defaultSfixed32_; }
2372 }
2373
2374 public const int DefaultSfixed64FieldNumber = 70;
2375 private bool hasDefaultSfixed64;
2376 private long defaultSfixed64_ = -50;
2377 public bool HasDefaultSfixed64 {
2378 get { return hasDefaultSfixed64; }
2379 }
2380 public long DefaultSfixed64 {
2381 get { return defaultSfixed64_; }
2382 }
2383
2384 public const int DefaultFloatFieldNumber = 71;
2385 private bool hasDefaultFloat;
2386 private float defaultFloat_ = 51.5F;
2387 public bool HasDefaultFloat {
2388 get { return hasDefaultFloat; }
2389 }
2390 public float DefaultFloat {
2391 get { return defaultFloat_; }
2392 }
2393
2394 public const int DefaultDoubleFieldNumber = 72;
2395 private bool hasDefaultDouble;
2396 private double defaultDouble_ = 52000D;
2397 public bool HasDefaultDouble {
2398 get { return hasDefaultDouble; }
2399 }
2400 public double DefaultDouble {
2401 get { return defaultDouble_; }
2402 }
2403
2404 public const int DefaultBoolFieldNumber = 73;
2405 private bool hasDefaultBool;
2406 private bool defaultBool_ = true;
2407 public bool HasDefaultBool {
2408 get { return hasDefaultBool; }
2409 }
2410 public bool DefaultBool {
2411 get { return defaultBool_; }
2412 }
2413
2414 public const int DefaultStringFieldNumber = 74;
2415 private bool hasDefaultString;
2416 private string defaultString_ = "hello";
2417 public bool HasDefaultString {
2418 get { return hasDefaultString; }
2419 }
2420 public string DefaultString {
2421 get { return defaultString_; }
2422 }
2423
2424 public const int DefaultBytesFieldNumber = 75;
2425 private bool hasDefaultBytes;
2426 private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue;
2427 public bool HasDefaultBytes {
2428 get { return hasDefaultBytes; }
2429 }
2430 public pb::ByteString DefaultBytes {
2431 get { return defaultBytes_; }
2432 }
2433
2434 public const int DefaultNestedEnumFieldNumber = 81;
2435 private bool hasDefaultNestedEnum;
2436 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
2437 public bool HasDefaultNestedEnum {
2438 get { return hasDefaultNestedEnum; }
2439 }
2440 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
2441 get { return defaultNestedEnum_; }
2442 }
2443
2444 public const int DefaultForeignEnumFieldNumber = 82;
2445 private bool hasDefaultForeignEnum;
2446 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
2447 public bool HasDefaultForeignEnum {
2448 get { return hasDefaultForeignEnum; }
2449 }
2450 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
2451 get { return defaultForeignEnum_; }
2452 }
2453
2454 public const int DefaultImportEnumFieldNumber = 83;
2455 private bool hasDefaultImportEnum;
2456 private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
2457 public bool HasDefaultImportEnum {
2458 get { return hasDefaultImportEnum; }
2459 }
2460 public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
2461 get { return defaultImportEnum_; }
2462 }
2463
2464 public const int DefaultStringPieceFieldNumber = 84;
2465 private bool hasDefaultStringPiece;
2466 private string defaultStringPiece_ = "abc";
2467 public bool HasDefaultStringPiece {
2468 get { return hasDefaultStringPiece; }
2469 }
2470 public string DefaultStringPiece {
2471 get { return defaultStringPiece_; }
2472 }
2473
2474 public const int DefaultCordFieldNumber = 85;
2475 private bool hasDefaultCord;
2476 private string defaultCord_ = "123";
2477 public bool HasDefaultCord {
2478 get { return hasDefaultCord; }
2479 }
2480 public string DefaultCord {
2481 get { return defaultCord_; }
2482 }
2483
2484 public override bool IsInitialized {
2485 get {
2486 return true;
2487 }
2488 }
2489
csharptestffafdaa2011-06-03 12:58:14 -05002490 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002491 int size = SerializedSize;
2492 if (HasOptionalInt32) {
csharptest90922db2011-06-03 11:57:47 -05002493 output.WriteInt32(1, "optional_int32", OptionalInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002494 }
2495 if (HasOptionalInt64) {
csharptest90922db2011-06-03 11:57:47 -05002496 output.WriteInt64(2, "optional_int64", OptionalInt64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002497 }
2498 if (HasOptionalUint32) {
csharptest90922db2011-06-03 11:57:47 -05002499 output.WriteUInt32(3, "optional_uint32", OptionalUint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002500 }
2501 if (HasOptionalUint64) {
csharptest90922db2011-06-03 11:57:47 -05002502 output.WriteUInt64(4, "optional_uint64", OptionalUint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002503 }
2504 if (HasOptionalSint32) {
csharptest90922db2011-06-03 11:57:47 -05002505 output.WriteSInt32(5, "optional_sint32", OptionalSint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002506 }
2507 if (HasOptionalSint64) {
csharptest90922db2011-06-03 11:57:47 -05002508 output.WriteSInt64(6, "optional_sint64", OptionalSint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002509 }
2510 if (HasOptionalFixed32) {
csharptest90922db2011-06-03 11:57:47 -05002511 output.WriteFixed32(7, "optional_fixed32", OptionalFixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002512 }
2513 if (HasOptionalFixed64) {
csharptest90922db2011-06-03 11:57:47 -05002514 output.WriteFixed64(8, "optional_fixed64", OptionalFixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002515 }
2516 if (HasOptionalSfixed32) {
csharptest90922db2011-06-03 11:57:47 -05002517 output.WriteSFixed32(9, "optional_sfixed32", OptionalSfixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002518 }
2519 if (HasOptionalSfixed64) {
csharptest90922db2011-06-03 11:57:47 -05002520 output.WriteSFixed64(10, "optional_sfixed64", OptionalSfixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002521 }
2522 if (HasOptionalFloat) {
csharptest90922db2011-06-03 11:57:47 -05002523 output.WriteFloat(11, "optional_float", OptionalFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002524 }
2525 if (HasOptionalDouble) {
csharptest90922db2011-06-03 11:57:47 -05002526 output.WriteDouble(12, "optional_double", OptionalDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002527 }
2528 if (HasOptionalBool) {
csharptest90922db2011-06-03 11:57:47 -05002529 output.WriteBool(13, "optional_bool", OptionalBool);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002530 }
2531 if (HasOptionalString) {
csharptest90922db2011-06-03 11:57:47 -05002532 output.WriteString(14, "optional_string", OptionalString);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002533 }
2534 if (HasOptionalBytes) {
csharptest90922db2011-06-03 11:57:47 -05002535 output.WriteBytes(15, "optional_bytes", OptionalBytes);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002536 }
2537 if (HasOptionalGroup) {
csharptest90922db2011-06-03 11:57:47 -05002538 output.WriteGroup(16, "optionalgroup", OptionalGroup);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002539 }
2540 if (HasOptionalNestedMessage) {
csharptest90922db2011-06-03 11:57:47 -05002541 output.WriteMessage(18, "optional_nested_message", OptionalNestedMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002542 }
2543 if (HasOptionalForeignMessage) {
csharptest90922db2011-06-03 11:57:47 -05002544 output.WriteMessage(19, "optional_foreign_message", OptionalForeignMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002545 }
2546 if (HasOptionalImportMessage) {
csharptest90922db2011-06-03 11:57:47 -05002547 output.WriteMessage(20, "optional_import_message", OptionalImportMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002548 }
2549 if (HasOptionalNestedEnum) {
csharptest90922db2011-06-03 11:57:47 -05002550 output.WriteEnum(21, "optional_nested_enum", (int) OptionalNestedEnum, OptionalNestedEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002551 }
2552 if (HasOptionalForeignEnum) {
csharptest90922db2011-06-03 11:57:47 -05002553 output.WriteEnum(22, "optional_foreign_enum", (int) OptionalForeignEnum, OptionalForeignEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002554 }
2555 if (HasOptionalImportEnum) {
csharptest90922db2011-06-03 11:57:47 -05002556 output.WriteEnum(23, "optional_import_enum", (int) OptionalImportEnum, OptionalImportEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002557 }
2558 if (HasOptionalStringPiece) {
csharptest90922db2011-06-03 11:57:47 -05002559 output.WriteString(24, "optional_string_piece", OptionalStringPiece);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002560 }
2561 if (HasOptionalCord) {
csharptest90922db2011-06-03 11:57:47 -05002562 output.WriteString(25, "optional_cord", OptionalCord);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002563 }
2564 if (repeatedInt32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002565 output.WriteArray(pbd::FieldType.Int32, 31, "repeated_int32", repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002566 }
2567 if (repeatedInt64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002568 output.WriteArray(pbd::FieldType.Int64, 32, "repeated_int64", repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002569 }
2570 if (repeatedUint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002571 output.WriteArray(pbd::FieldType.UInt32, 33, "repeated_uint32", repeatedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002572 }
2573 if (repeatedUint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002574 output.WriteArray(pbd::FieldType.UInt64, 34, "repeated_uint64", repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002575 }
2576 if (repeatedSint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002577 output.WriteArray(pbd::FieldType.SInt32, 35, "repeated_sint32", repeatedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002578 }
2579 if (repeatedSint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002580 output.WriteArray(pbd::FieldType.SInt64, 36, "repeated_sint64", repeatedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002581 }
2582 if (repeatedFixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002583 output.WriteArray(pbd::FieldType.Fixed32, 37, "repeated_fixed32", repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002584 }
2585 if (repeatedFixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002586 output.WriteArray(pbd::FieldType.Fixed64, 38, "repeated_fixed64", repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002587 }
2588 if (repeatedSfixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002589 output.WriteArray(pbd::FieldType.SFixed32, 39, "repeated_sfixed32", repeatedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002590 }
2591 if (repeatedSfixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002592 output.WriteArray(pbd::FieldType.SFixed64, 40, "repeated_sfixed64", repeatedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002593 }
2594 if (repeatedFloat_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002595 output.WriteArray(pbd::FieldType.Float, 41, "repeated_float", repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002596 }
2597 if (repeatedDouble_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002598 output.WriteArray(pbd::FieldType.Double, 42, "repeated_double", repeatedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002599 }
2600 if (repeatedBool_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002601 output.WriteArray(pbd::FieldType.Bool, 43, "repeated_bool", repeatedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002602 }
2603 if (repeatedString_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002604 output.WriteArray(pbd::FieldType.String, 44, "repeated_string", repeatedString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002605 }
2606 if (repeatedBytes_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002607 output.WriteArray(pbd::FieldType.Bytes, 45, "repeated_bytes", repeatedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002608 }
csharptest90922db2011-06-03 11:57:47 -05002609 if (repeatedGroup_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -05002610 output.WriteArray(pbd::FieldType.Group, 46, "repeatedgroup", repeatedGroup_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002611 }
csharptest90922db2011-06-03 11:57:47 -05002612 if (repeatedNestedMessage_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -05002613 output.WriteArray(pbd::FieldType.Message, 48, "repeated_nested_message", repeatedNestedMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002614 }
csharptest90922db2011-06-03 11:57:47 -05002615 if (repeatedForeignMessage_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -05002616 output.WriteArray(pbd::FieldType.Message, 49, "repeated_foreign_message", repeatedForeignMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002617 }
csharptest90922db2011-06-03 11:57:47 -05002618 if (repeatedImportMessage_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -05002619 output.WriteArray(pbd::FieldType.Message, 50, "repeated_import_message", repeatedImportMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002620 }
2621 if (repeatedNestedEnum_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002622 output.WriteArray(pbd::FieldType.Enum, 51, "repeated_nested_enum", repeatedNestedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002623 }
2624 if (repeatedForeignEnum_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002625 output.WriteArray(pbd::FieldType.Enum, 52, "repeated_foreign_enum", repeatedForeignEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002626 }
2627 if (repeatedImportEnum_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002628 output.WriteArray(pbd::FieldType.Enum, 53, "repeated_import_enum", repeatedImportEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002629 }
2630 if (repeatedStringPiece_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002631 output.WriteArray(pbd::FieldType.String, 54, "repeated_string_piece", repeatedStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002632 }
2633 if (repeatedCord_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -05002634 output.WriteArray(pbd::FieldType.String, 55, "repeated_cord", repeatedCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002635 }
2636 if (HasDefaultInt32) {
csharptest90922db2011-06-03 11:57:47 -05002637 output.WriteInt32(61, "default_int32", DefaultInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002638 }
2639 if (HasDefaultInt64) {
csharptest90922db2011-06-03 11:57:47 -05002640 output.WriteInt64(62, "default_int64", DefaultInt64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002641 }
2642 if (HasDefaultUint32) {
csharptest90922db2011-06-03 11:57:47 -05002643 output.WriteUInt32(63, "default_uint32", DefaultUint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002644 }
2645 if (HasDefaultUint64) {
csharptest90922db2011-06-03 11:57:47 -05002646 output.WriteUInt64(64, "default_uint64", DefaultUint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002647 }
2648 if (HasDefaultSint32) {
csharptest90922db2011-06-03 11:57:47 -05002649 output.WriteSInt32(65, "default_sint32", DefaultSint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002650 }
2651 if (HasDefaultSint64) {
csharptest90922db2011-06-03 11:57:47 -05002652 output.WriteSInt64(66, "default_sint64", DefaultSint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002653 }
2654 if (HasDefaultFixed32) {
csharptest90922db2011-06-03 11:57:47 -05002655 output.WriteFixed32(67, "default_fixed32", DefaultFixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002656 }
2657 if (HasDefaultFixed64) {
csharptest90922db2011-06-03 11:57:47 -05002658 output.WriteFixed64(68, "default_fixed64", DefaultFixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002659 }
2660 if (HasDefaultSfixed32) {
csharptest90922db2011-06-03 11:57:47 -05002661 output.WriteSFixed32(69, "default_sfixed32", DefaultSfixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002662 }
2663 if (HasDefaultSfixed64) {
csharptest90922db2011-06-03 11:57:47 -05002664 output.WriteSFixed64(70, "default_sfixed64", DefaultSfixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002665 }
2666 if (HasDefaultFloat) {
csharptest90922db2011-06-03 11:57:47 -05002667 output.WriteFloat(71, "default_float", DefaultFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002668 }
2669 if (HasDefaultDouble) {
csharptest90922db2011-06-03 11:57:47 -05002670 output.WriteDouble(72, "default_double", DefaultDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002671 }
2672 if (HasDefaultBool) {
csharptest90922db2011-06-03 11:57:47 -05002673 output.WriteBool(73, "default_bool", DefaultBool);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002674 }
2675 if (HasDefaultString) {
csharptest90922db2011-06-03 11:57:47 -05002676 output.WriteString(74, "default_string", DefaultString);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002677 }
2678 if (HasDefaultBytes) {
csharptest90922db2011-06-03 11:57:47 -05002679 output.WriteBytes(75, "default_bytes", DefaultBytes);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002680 }
2681 if (HasDefaultNestedEnum) {
csharptest90922db2011-06-03 11:57:47 -05002682 output.WriteEnum(81, "default_nested_enum", (int) DefaultNestedEnum, DefaultNestedEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002683 }
2684 if (HasDefaultForeignEnum) {
csharptest90922db2011-06-03 11:57:47 -05002685 output.WriteEnum(82, "default_foreign_enum", (int) DefaultForeignEnum, DefaultForeignEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002686 }
2687 if (HasDefaultImportEnum) {
csharptest90922db2011-06-03 11:57:47 -05002688 output.WriteEnum(83, "default_import_enum", (int) DefaultImportEnum, DefaultImportEnum.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +01002689 }
2690 if (HasDefaultStringPiece) {
csharptest90922db2011-06-03 11:57:47 -05002691 output.WriteString(84, "default_string_piece", DefaultStringPiece);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002692 }
2693 if (HasDefaultCord) {
csharptest90922db2011-06-03 11:57:47 -05002694 output.WriteString(85, "default_cord", DefaultCord);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002695 }
2696 UnknownFields.WriteTo(output);
2697 }
2698
2699 private int memoizedSerializedSize = -1;
2700 public override int SerializedSize {
2701 get {
2702 int size = memoizedSerializedSize;
2703 if (size != -1) return size;
2704
2705 size = 0;
2706 if (HasOptionalInt32) {
2707 size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
2708 }
2709 if (HasOptionalInt64) {
2710 size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
2711 }
2712 if (HasOptionalUint32) {
2713 size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
2714 }
2715 if (HasOptionalUint64) {
2716 size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
2717 }
2718 if (HasOptionalSint32) {
2719 size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
2720 }
2721 if (HasOptionalSint64) {
2722 size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
2723 }
2724 if (HasOptionalFixed32) {
2725 size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
2726 }
2727 if (HasOptionalFixed64) {
2728 size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
2729 }
2730 if (HasOptionalSfixed32) {
2731 size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
2732 }
2733 if (HasOptionalSfixed64) {
2734 size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
2735 }
2736 if (HasOptionalFloat) {
2737 size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
2738 }
2739 if (HasOptionalDouble) {
2740 size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
2741 }
2742 if (HasOptionalBool) {
2743 size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
2744 }
2745 if (HasOptionalString) {
2746 size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
2747 }
2748 if (HasOptionalBytes) {
2749 size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
2750 }
2751 if (HasOptionalGroup) {
2752 size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
2753 }
2754 if (HasOptionalNestedMessage) {
2755 size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
2756 }
2757 if (HasOptionalForeignMessage) {
2758 size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
2759 }
2760 if (HasOptionalImportMessage) {
2761 size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
2762 }
2763 if (HasOptionalNestedEnum) {
2764 size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
2765 }
2766 if (HasOptionalForeignEnum) {
2767 size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
2768 }
2769 if (HasOptionalImportEnum) {
2770 size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
2771 }
2772 if (HasOptionalStringPiece) {
2773 size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
2774 }
2775 if (HasOptionalCord) {
2776 size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
2777 }
2778 {
2779 int dataSize = 0;
2780 foreach (int element in RepeatedInt32List) {
2781 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
2782 }
2783 size += dataSize;
2784 size += 2 * repeatedInt32_.Count;
2785 }
2786 {
2787 int dataSize = 0;
2788 foreach (long element in RepeatedInt64List) {
2789 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
2790 }
2791 size += dataSize;
2792 size += 2 * repeatedInt64_.Count;
2793 }
2794 {
2795 int dataSize = 0;
2796 foreach (uint element in RepeatedUint32List) {
2797 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
2798 }
2799 size += dataSize;
2800 size += 2 * repeatedUint32_.Count;
2801 }
2802 {
2803 int dataSize = 0;
2804 foreach (ulong element in RepeatedUint64List) {
2805 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
2806 }
2807 size += dataSize;
2808 size += 2 * repeatedUint64_.Count;
2809 }
2810 {
2811 int dataSize = 0;
2812 foreach (int element in RepeatedSint32List) {
2813 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
2814 }
2815 size += dataSize;
2816 size += 2 * repeatedSint32_.Count;
2817 }
2818 {
2819 int dataSize = 0;
2820 foreach (long element in RepeatedSint64List) {
2821 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
2822 }
2823 size += dataSize;
2824 size += 2 * repeatedSint64_.Count;
2825 }
2826 {
2827 int dataSize = 0;
2828 dataSize = 4 * repeatedFixed32_.Count;
2829 size += dataSize;
2830 size += 2 * repeatedFixed32_.Count;
2831 }
2832 {
2833 int dataSize = 0;
2834 dataSize = 8 * repeatedFixed64_.Count;
2835 size += dataSize;
2836 size += 2 * repeatedFixed64_.Count;
2837 }
2838 {
2839 int dataSize = 0;
2840 dataSize = 4 * repeatedSfixed32_.Count;
2841 size += dataSize;
2842 size += 2 * repeatedSfixed32_.Count;
2843 }
2844 {
2845 int dataSize = 0;
2846 dataSize = 8 * repeatedSfixed64_.Count;
2847 size += dataSize;
2848 size += 2 * repeatedSfixed64_.Count;
2849 }
2850 {
2851 int dataSize = 0;
2852 dataSize = 4 * repeatedFloat_.Count;
2853 size += dataSize;
2854 size += 2 * repeatedFloat_.Count;
2855 }
2856 {
2857 int dataSize = 0;
2858 dataSize = 8 * repeatedDouble_.Count;
2859 size += dataSize;
2860 size += 2 * repeatedDouble_.Count;
2861 }
2862 {
2863 int dataSize = 0;
2864 dataSize = 1 * repeatedBool_.Count;
2865 size += dataSize;
2866 size += 2 * repeatedBool_.Count;
2867 }
2868 {
2869 int dataSize = 0;
2870 foreach (string element in RepeatedStringList) {
2871 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2872 }
2873 size += dataSize;
2874 size += 2 * repeatedString_.Count;
2875 }
2876 {
2877 int dataSize = 0;
2878 foreach (pb::ByteString element in RepeatedBytesList) {
2879 dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
2880 }
2881 size += dataSize;
2882 size += 2 * repeatedBytes_.Count;
2883 }
2884 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
2885 size += pb::CodedOutputStream.ComputeGroupSize(46, element);
2886 }
2887 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
2888 size += pb::CodedOutputStream.ComputeMessageSize(48, element);
2889 }
2890 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
2891 size += pb::CodedOutputStream.ComputeMessageSize(49, element);
2892 }
2893 foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
2894 size += pb::CodedOutputStream.ComputeMessageSize(50, element);
2895 }
2896 {
2897 int dataSize = 0;
2898 if (repeatedNestedEnum_.Count > 0) {
2899 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in repeatedNestedEnum_) {
2900 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2901 }
2902 size += dataSize;
2903 size += 2 * repeatedNestedEnum_.Count;
2904 }
2905 }
2906 {
2907 int dataSize = 0;
2908 if (repeatedForeignEnum_.Count > 0) {
2909 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedForeignEnum_) {
2910 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2911 }
2912 size += dataSize;
2913 size += 2 * repeatedForeignEnum_.Count;
2914 }
2915 }
2916 {
2917 int dataSize = 0;
2918 if (repeatedImportEnum_.Count > 0) {
2919 foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in repeatedImportEnum_) {
2920 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2921 }
2922 size += dataSize;
2923 size += 2 * repeatedImportEnum_.Count;
2924 }
2925 }
2926 {
2927 int dataSize = 0;
2928 foreach (string element in RepeatedStringPieceList) {
2929 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2930 }
2931 size += dataSize;
2932 size += 2 * repeatedStringPiece_.Count;
2933 }
2934 {
2935 int dataSize = 0;
2936 foreach (string element in RepeatedCordList) {
2937 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2938 }
2939 size += dataSize;
2940 size += 2 * repeatedCord_.Count;
2941 }
2942 if (HasDefaultInt32) {
2943 size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
2944 }
2945 if (HasDefaultInt64) {
2946 size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
2947 }
2948 if (HasDefaultUint32) {
2949 size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
2950 }
2951 if (HasDefaultUint64) {
2952 size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
2953 }
2954 if (HasDefaultSint32) {
2955 size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
2956 }
2957 if (HasDefaultSint64) {
2958 size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
2959 }
2960 if (HasDefaultFixed32) {
2961 size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
2962 }
2963 if (HasDefaultFixed64) {
2964 size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
2965 }
2966 if (HasDefaultSfixed32) {
2967 size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
2968 }
2969 if (HasDefaultSfixed64) {
2970 size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
2971 }
2972 if (HasDefaultFloat) {
2973 size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
2974 }
2975 if (HasDefaultDouble) {
2976 size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
2977 }
2978 if (HasDefaultBool) {
2979 size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
2980 }
2981 if (HasDefaultString) {
2982 size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
2983 }
2984 if (HasDefaultBytes) {
2985 size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
2986 }
2987 if (HasDefaultNestedEnum) {
2988 size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
2989 }
2990 if (HasDefaultForeignEnum) {
2991 size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
2992 }
2993 if (HasDefaultImportEnum) {
2994 size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
2995 }
2996 if (HasDefaultStringPiece) {
2997 size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
2998 }
2999 if (HasDefaultCord) {
3000 size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
3001 }
3002 size += UnknownFields.SerializedSize;
3003 memoizedSerializedSize = size;
3004 return size;
3005 }
3006 }
3007
3008 public static TestAllTypes ParseFrom(pb::ByteString data) {
3009 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3010 }
3011 public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
3012 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3013 }
3014 public static TestAllTypes ParseFrom(byte[] data) {
3015 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3016 }
3017 public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
3018 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3019 }
3020 public static TestAllTypes ParseFrom(global::System.IO.Stream input) {
3021 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3022 }
3023 public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3024 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3025 }
3026 public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
3027 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
3028 }
3029 public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3030 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
3031 }
csharptest17699c22011-06-03 21:57:15 -05003032 public static TestAllTypes ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003033 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3034 }
csharptest17699c22011-06-03 21:57:15 -05003035 public static TestAllTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003036 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3037 }
3038 public static Builder CreateBuilder() { return new Builder(); }
3039 public override Builder ToBuilder() { return CreateBuilder(this); }
3040 public override Builder CreateBuilderForType() { return new Builder(); }
3041 public static Builder CreateBuilder(TestAllTypes prototype) {
3042 return (Builder) new Builder().MergeFrom(prototype);
3043 }
3044
csharptest445bdce2011-05-20 15:50:54 -05003045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3046 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
3047 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01003048 public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> {
3049 protected override Builder ThisBuilder {
3050 get { return this; }
3051 }
3052 public Builder() {}
3053
3054 TestAllTypes result = new TestAllTypes();
3055
3056 protected override TestAllTypes MessageBeingBuilt {
3057 get { return result; }
3058 }
3059
3060 public override Builder Clear() {
3061 result = new TestAllTypes();
3062 return this;
3063 }
3064
3065 public override Builder Clone() {
3066 return new Builder().MergeFrom(result);
3067 }
3068
3069 public override pbd::MessageDescriptor DescriptorForType {
3070 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
3071 }
3072
3073 public override TestAllTypes DefaultInstanceForType {
3074 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
3075 }
3076
3077 public override TestAllTypes BuildPartial() {
3078 if (result == null) {
3079 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
3080 }
3081 result.repeatedInt32_.MakeReadOnly();
3082 result.repeatedInt64_.MakeReadOnly();
3083 result.repeatedUint32_.MakeReadOnly();
3084 result.repeatedUint64_.MakeReadOnly();
3085 result.repeatedSint32_.MakeReadOnly();
3086 result.repeatedSint64_.MakeReadOnly();
3087 result.repeatedFixed32_.MakeReadOnly();
3088 result.repeatedFixed64_.MakeReadOnly();
3089 result.repeatedSfixed32_.MakeReadOnly();
3090 result.repeatedSfixed64_.MakeReadOnly();
3091 result.repeatedFloat_.MakeReadOnly();
3092 result.repeatedDouble_.MakeReadOnly();
3093 result.repeatedBool_.MakeReadOnly();
3094 result.repeatedString_.MakeReadOnly();
3095 result.repeatedBytes_.MakeReadOnly();
3096 result.repeatedGroup_.MakeReadOnly();
3097 result.repeatedNestedMessage_.MakeReadOnly();
3098 result.repeatedForeignMessage_.MakeReadOnly();
3099 result.repeatedImportMessage_.MakeReadOnly();
3100 result.repeatedNestedEnum_.MakeReadOnly();
3101 result.repeatedForeignEnum_.MakeReadOnly();
3102 result.repeatedImportEnum_.MakeReadOnly();
3103 result.repeatedStringPiece_.MakeReadOnly();
3104 result.repeatedCord_.MakeReadOnly();
3105 TestAllTypes returnMe = result;
3106 result = null;
3107 return returnMe;
3108 }
3109
3110 public override Builder MergeFrom(pb::IMessage other) {
3111 if (other is TestAllTypes) {
3112 return MergeFrom((TestAllTypes) other);
3113 } else {
3114 base.MergeFrom(other);
3115 return this;
3116 }
3117 }
3118
3119 public override Builder MergeFrom(TestAllTypes other) {
3120 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
3121 if (other.HasOptionalInt32) {
3122 OptionalInt32 = other.OptionalInt32;
3123 }
3124 if (other.HasOptionalInt64) {
3125 OptionalInt64 = other.OptionalInt64;
3126 }
3127 if (other.HasOptionalUint32) {
3128 OptionalUint32 = other.OptionalUint32;
3129 }
3130 if (other.HasOptionalUint64) {
3131 OptionalUint64 = other.OptionalUint64;
3132 }
3133 if (other.HasOptionalSint32) {
3134 OptionalSint32 = other.OptionalSint32;
3135 }
3136 if (other.HasOptionalSint64) {
3137 OptionalSint64 = other.OptionalSint64;
3138 }
3139 if (other.HasOptionalFixed32) {
3140 OptionalFixed32 = other.OptionalFixed32;
3141 }
3142 if (other.HasOptionalFixed64) {
3143 OptionalFixed64 = other.OptionalFixed64;
3144 }
3145 if (other.HasOptionalSfixed32) {
3146 OptionalSfixed32 = other.OptionalSfixed32;
3147 }
3148 if (other.HasOptionalSfixed64) {
3149 OptionalSfixed64 = other.OptionalSfixed64;
3150 }
3151 if (other.HasOptionalFloat) {
3152 OptionalFloat = other.OptionalFloat;
3153 }
3154 if (other.HasOptionalDouble) {
3155 OptionalDouble = other.OptionalDouble;
3156 }
3157 if (other.HasOptionalBool) {
3158 OptionalBool = other.OptionalBool;
3159 }
3160 if (other.HasOptionalString) {
3161 OptionalString = other.OptionalString;
3162 }
3163 if (other.HasOptionalBytes) {
3164 OptionalBytes = other.OptionalBytes;
3165 }
3166 if (other.HasOptionalGroup) {
3167 MergeOptionalGroup(other.OptionalGroup);
3168 }
3169 if (other.HasOptionalNestedMessage) {
3170 MergeOptionalNestedMessage(other.OptionalNestedMessage);
3171 }
3172 if (other.HasOptionalForeignMessage) {
3173 MergeOptionalForeignMessage(other.OptionalForeignMessage);
3174 }
3175 if (other.HasOptionalImportMessage) {
3176 MergeOptionalImportMessage(other.OptionalImportMessage);
3177 }
3178 if (other.HasOptionalNestedEnum) {
3179 OptionalNestedEnum = other.OptionalNestedEnum;
3180 }
3181 if (other.HasOptionalForeignEnum) {
3182 OptionalForeignEnum = other.OptionalForeignEnum;
3183 }
3184 if (other.HasOptionalImportEnum) {
3185 OptionalImportEnum = other.OptionalImportEnum;
3186 }
3187 if (other.HasOptionalStringPiece) {
3188 OptionalStringPiece = other.OptionalStringPiece;
3189 }
3190 if (other.HasOptionalCord) {
3191 OptionalCord = other.OptionalCord;
3192 }
3193 if (other.repeatedInt32_.Count != 0) {
3194 base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
3195 }
3196 if (other.repeatedInt64_.Count != 0) {
3197 base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
3198 }
3199 if (other.repeatedUint32_.Count != 0) {
3200 base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
3201 }
3202 if (other.repeatedUint64_.Count != 0) {
3203 base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
3204 }
3205 if (other.repeatedSint32_.Count != 0) {
3206 base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
3207 }
3208 if (other.repeatedSint64_.Count != 0) {
3209 base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
3210 }
3211 if (other.repeatedFixed32_.Count != 0) {
3212 base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
3213 }
3214 if (other.repeatedFixed64_.Count != 0) {
3215 base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
3216 }
3217 if (other.repeatedSfixed32_.Count != 0) {
3218 base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
3219 }
3220 if (other.repeatedSfixed64_.Count != 0) {
3221 base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
3222 }
3223 if (other.repeatedFloat_.Count != 0) {
3224 base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
3225 }
3226 if (other.repeatedDouble_.Count != 0) {
3227 base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
3228 }
3229 if (other.repeatedBool_.Count != 0) {
3230 base.AddRange(other.repeatedBool_, result.repeatedBool_);
3231 }
3232 if (other.repeatedString_.Count != 0) {
3233 base.AddRange(other.repeatedString_, result.repeatedString_);
3234 }
3235 if (other.repeatedBytes_.Count != 0) {
3236 base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
3237 }
3238 if (other.repeatedGroup_.Count != 0) {
3239 base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
3240 }
3241 if (other.repeatedNestedMessage_.Count != 0) {
3242 base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
3243 }
3244 if (other.repeatedForeignMessage_.Count != 0) {
3245 base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
3246 }
3247 if (other.repeatedImportMessage_.Count != 0) {
3248 base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
3249 }
3250 if (other.repeatedNestedEnum_.Count != 0) {
3251 base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
3252 }
3253 if (other.repeatedForeignEnum_.Count != 0) {
3254 base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
3255 }
3256 if (other.repeatedImportEnum_.Count != 0) {
3257 base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
3258 }
3259 if (other.repeatedStringPiece_.Count != 0) {
3260 base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
3261 }
3262 if (other.repeatedCord_.Count != 0) {
3263 base.AddRange(other.repeatedCord_, result.repeatedCord_);
3264 }
3265 if (other.HasDefaultInt32) {
3266 DefaultInt32 = other.DefaultInt32;
3267 }
3268 if (other.HasDefaultInt64) {
3269 DefaultInt64 = other.DefaultInt64;
3270 }
3271 if (other.HasDefaultUint32) {
3272 DefaultUint32 = other.DefaultUint32;
3273 }
3274 if (other.HasDefaultUint64) {
3275 DefaultUint64 = other.DefaultUint64;
3276 }
3277 if (other.HasDefaultSint32) {
3278 DefaultSint32 = other.DefaultSint32;
3279 }
3280 if (other.HasDefaultSint64) {
3281 DefaultSint64 = other.DefaultSint64;
3282 }
3283 if (other.HasDefaultFixed32) {
3284 DefaultFixed32 = other.DefaultFixed32;
3285 }
3286 if (other.HasDefaultFixed64) {
3287 DefaultFixed64 = other.DefaultFixed64;
3288 }
3289 if (other.HasDefaultSfixed32) {
3290 DefaultSfixed32 = other.DefaultSfixed32;
3291 }
3292 if (other.HasDefaultSfixed64) {
3293 DefaultSfixed64 = other.DefaultSfixed64;
3294 }
3295 if (other.HasDefaultFloat) {
3296 DefaultFloat = other.DefaultFloat;
3297 }
3298 if (other.HasDefaultDouble) {
3299 DefaultDouble = other.DefaultDouble;
3300 }
3301 if (other.HasDefaultBool) {
3302 DefaultBool = other.DefaultBool;
3303 }
3304 if (other.HasDefaultString) {
3305 DefaultString = other.DefaultString;
3306 }
3307 if (other.HasDefaultBytes) {
3308 DefaultBytes = other.DefaultBytes;
3309 }
3310 if (other.HasDefaultNestedEnum) {
3311 DefaultNestedEnum = other.DefaultNestedEnum;
3312 }
3313 if (other.HasDefaultForeignEnum) {
3314 DefaultForeignEnum = other.DefaultForeignEnum;
3315 }
3316 if (other.HasDefaultImportEnum) {
3317 DefaultImportEnum = other.DefaultImportEnum;
3318 }
3319 if (other.HasDefaultStringPiece) {
3320 DefaultStringPiece = other.DefaultStringPiece;
3321 }
3322 if (other.HasDefaultCord) {
3323 DefaultCord = other.DefaultCord;
3324 }
3325 this.MergeUnknownFields(other.UnknownFields);
3326 return this;
3327 }
3328
csharptest17699c22011-06-03 21:57:15 -05003329 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003330 return MergeFrom(input, pb::ExtensionRegistry.Empty);
3331 }
3332
csharptest17699c22011-06-03 21:57:15 -05003333 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003334 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05003335 uint tag;
3336 string field_name;
3337 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003338 switch (tag) {
3339 case 0: {
csharptest99284412011-06-03 14:51:06 -05003340 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01003341 }
3342 default: {
3343 if (pb::WireFormat.IsEndGroupTag(tag)) {
3344 if (unknownFields != null) {
3345 this.UnknownFields = unknownFields.Build();
3346 }
3347 return this;
3348 }
3349 if (unknownFields == null) {
3350 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3351 }
csharptestd2af9e92011-06-03 21:35:02 -05003352 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003353 break;
3354 }
3355 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05003356 result.hasOptionalInt32 |= input.ReadInt32(ref result.optionalInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003357 break;
3358 }
3359 case 16: {
csharptestd2af9e92011-06-03 21:35:02 -05003360 result.hasOptionalInt64 |= input.ReadInt64(ref result.optionalInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003361 break;
3362 }
3363 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -05003364 result.hasOptionalUint32 |= input.ReadUInt32(ref result.optionalUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003365 break;
3366 }
3367 case 32: {
csharptestd2af9e92011-06-03 21:35:02 -05003368 result.hasOptionalUint64 |= input.ReadUInt64(ref result.optionalUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003369 break;
3370 }
3371 case 40: {
csharptestd2af9e92011-06-03 21:35:02 -05003372 result.hasOptionalSint32 |= input.ReadSInt32(ref result.optionalSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003373 break;
3374 }
3375 case 48: {
csharptestd2af9e92011-06-03 21:35:02 -05003376 result.hasOptionalSint64 |= input.ReadSInt64(ref result.optionalSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003377 break;
3378 }
3379 case 61: {
csharptestd2af9e92011-06-03 21:35:02 -05003380 result.hasOptionalFixed32 |= input.ReadFixed32(ref result.optionalFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003381 break;
3382 }
3383 case 65: {
csharptestd2af9e92011-06-03 21:35:02 -05003384 result.hasOptionalFixed64 |= input.ReadFixed64(ref result.optionalFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003385 break;
3386 }
3387 case 77: {
csharptestd2af9e92011-06-03 21:35:02 -05003388 result.hasOptionalSfixed32 |= input.ReadSFixed32(ref result.optionalSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003389 break;
3390 }
3391 case 81: {
csharptestd2af9e92011-06-03 21:35:02 -05003392 result.hasOptionalSfixed64 |= input.ReadSFixed64(ref result.optionalSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003393 break;
3394 }
3395 case 93: {
csharptestd2af9e92011-06-03 21:35:02 -05003396 result.hasOptionalFloat |= input.ReadFloat(ref result.optionalFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003397 break;
3398 }
3399 case 97: {
csharptestd2af9e92011-06-03 21:35:02 -05003400 result.hasOptionalDouble |= input.ReadDouble(ref result.optionalDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003401 break;
3402 }
3403 case 104: {
csharptestd2af9e92011-06-03 21:35:02 -05003404 result.hasOptionalBool |= input.ReadBool(ref result.optionalBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003405 break;
3406 }
3407 case 114: {
csharptestd2af9e92011-06-03 21:35:02 -05003408 result.hasOptionalString |= input.ReadString(ref result.optionalString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003409 break;
3410 }
3411 case 122: {
csharptestd2af9e92011-06-03 21:35:02 -05003412 result.hasOptionalBytes |= input.ReadBytes(ref result.optionalBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003413 break;
3414 }
3415 case 131: {
3416 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
3417 if (HasOptionalGroup) {
3418 subBuilder.MergeFrom(OptionalGroup);
3419 }
3420 input.ReadGroup(16, subBuilder, extensionRegistry);
3421 OptionalGroup = subBuilder.BuildPartial();
3422 break;
3423 }
3424 case 146: {
3425 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
3426 if (HasOptionalNestedMessage) {
3427 subBuilder.MergeFrom(OptionalNestedMessage);
3428 }
3429 input.ReadMessage(subBuilder, extensionRegistry);
3430 OptionalNestedMessage = subBuilder.BuildPartial();
3431 break;
3432 }
3433 case 154: {
3434 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
3435 if (HasOptionalForeignMessage) {
3436 subBuilder.MergeFrom(OptionalForeignMessage);
3437 }
3438 input.ReadMessage(subBuilder, extensionRegistry);
3439 OptionalForeignMessage = subBuilder.BuildPartial();
3440 break;
3441 }
3442 case 162: {
3443 global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
3444 if (HasOptionalImportMessage) {
3445 subBuilder.MergeFrom(OptionalImportMessage);
3446 }
3447 input.ReadMessage(subBuilder, extensionRegistry);
3448 OptionalImportMessage = subBuilder.BuildPartial();
3449 break;
3450 }
3451 case 168: {
csharptestd2af9e92011-06-03 21:35:02 -05003452 object unknown;
3453 if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
3454 result.hasOptionalNestedEnum = true;
3455 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003456 if (unknownFields == null) {
3457 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3458 }
csharptestd2af9e92011-06-03 21:35:02 -05003459 unknownFields.MergeVarintField(21, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003460 }
3461 break;
3462 }
3463 case 176: {
csharptestd2af9e92011-06-03 21:35:02 -05003464 object unknown;
3465 if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
3466 result.hasOptionalForeignEnum = true;
3467 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003468 if (unknownFields == null) {
3469 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3470 }
csharptestd2af9e92011-06-03 21:35:02 -05003471 unknownFields.MergeVarintField(22, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003472 }
3473 break;
3474 }
3475 case 184: {
csharptestd2af9e92011-06-03 21:35:02 -05003476 object unknown;
3477 if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
3478 result.hasOptionalImportEnum = true;
3479 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003480 if (unknownFields == null) {
3481 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3482 }
csharptestd2af9e92011-06-03 21:35:02 -05003483 unknownFields.MergeVarintField(23, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003484 }
3485 break;
3486 }
3487 case 194: {
csharptestd2af9e92011-06-03 21:35:02 -05003488 result.hasOptionalStringPiece |= input.ReadString(ref result.optionalStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003489 break;
3490 }
3491 case 202: {
csharptestd2af9e92011-06-03 21:35:02 -05003492 result.hasOptionalCord |= input.ReadString(ref result.optionalCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003493 break;
3494 }
3495 case 248: {
csharptestd2af9e92011-06-03 21:35:02 -05003496 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003497 break;
3498 }
3499 case 256: {
csharptestd2af9e92011-06-03 21:35:02 -05003500 input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003501 break;
3502 }
3503 case 264: {
csharptestd2af9e92011-06-03 21:35:02 -05003504 input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.repeatedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003505 break;
3506 }
3507 case 272: {
csharptestd2af9e92011-06-03 21:35:02 -05003508 input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003509 break;
3510 }
3511 case 280: {
csharptestd2af9e92011-06-03 21:35:02 -05003512 input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.repeatedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003513 break;
3514 }
3515 case 288: {
csharptestd2af9e92011-06-03 21:35:02 -05003516 input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.repeatedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003517 break;
3518 }
3519 case 301: {
csharptestd2af9e92011-06-03 21:35:02 -05003520 input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003521 break;
3522 }
3523 case 305: {
csharptestd2af9e92011-06-03 21:35:02 -05003524 input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003525 break;
3526 }
3527 case 317: {
csharptestd2af9e92011-06-03 21:35:02 -05003528 input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.repeatedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003529 break;
3530 }
3531 case 321: {
csharptestd2af9e92011-06-03 21:35:02 -05003532 input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.repeatedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003533 break;
3534 }
3535 case 333: {
csharptestd2af9e92011-06-03 21:35:02 -05003536 input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003537 break;
3538 }
3539 case 337: {
csharptestd2af9e92011-06-03 21:35:02 -05003540 input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.repeatedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003541 break;
3542 }
3543 case 344: {
csharptestd2af9e92011-06-03 21:35:02 -05003544 input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.repeatedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003545 break;
3546 }
3547 case 354: {
csharptestd2af9e92011-06-03 21:35:02 -05003548 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003549 break;
3550 }
3551 case 362: {
csharptestd2af9e92011-06-03 21:35:02 -05003552 input.ReadPrimitiveArray(pbd::FieldType.Bytes, tag, field_name, result.repeatedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003553 break;
3554 }
3555 case 371: {
csharptestd2af9e92011-06-03 21:35:02 -05003556 input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003557 break;
3558 }
3559 case 386: {
csharptestd2af9e92011-06-03 21:35:02 -05003560 input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003561 break;
3562 }
3563 case 394: {
csharptestd2af9e92011-06-03 21:35:02 -05003564 input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003565 break;
3566 }
3567 case 402: {
csharptestd2af9e92011-06-03 21:35:02 -05003568 input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003569 break;
3570 }
3571 case 408: {
csharptestd2af9e92011-06-03 21:35:02 -05003572 scg::ICollection<object> unknownItems;
3573 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
3574 if (unknownItems != null) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003575 if (unknownFields == null) {
3576 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3577 }
csharptestd2af9e92011-06-03 21:35:02 -05003578 foreach (object rawValue in unknownItems)
3579 if (rawValue is int)
3580 unknownFields.MergeVarintField(51, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003581 }
3582 break;
3583 }
3584 case 416: {
csharptestd2af9e92011-06-03 21:35:02 -05003585 scg::ICollection<object> unknownItems;
3586 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
3587 if (unknownItems != null) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003588 if (unknownFields == null) {
3589 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3590 }
csharptestd2af9e92011-06-03 21:35:02 -05003591 foreach (object rawValue in unknownItems)
3592 if (rawValue is int)
3593 unknownFields.MergeVarintField(52, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003594 }
3595 break;
3596 }
3597 case 424: {
csharptestd2af9e92011-06-03 21:35:02 -05003598 scg::ICollection<object> unknownItems;
3599 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
3600 if (unknownItems != null) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003601 if (unknownFields == null) {
3602 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3603 }
csharptestd2af9e92011-06-03 21:35:02 -05003604 foreach (object rawValue in unknownItems)
3605 if (rawValue is int)
3606 unknownFields.MergeVarintField(53, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003607 }
3608 break;
3609 }
3610 case 434: {
csharptestd2af9e92011-06-03 21:35:02 -05003611 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003612 break;
3613 }
3614 case 442: {
csharptestd2af9e92011-06-03 21:35:02 -05003615 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003616 break;
3617 }
3618 case 488: {
csharptestd2af9e92011-06-03 21:35:02 -05003619 result.hasDefaultInt32 |= input.ReadInt32(ref result.defaultInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003620 break;
3621 }
3622 case 496: {
csharptestd2af9e92011-06-03 21:35:02 -05003623 result.hasDefaultInt64 |= input.ReadInt64(ref result.defaultInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003624 break;
3625 }
3626 case 504: {
csharptestd2af9e92011-06-03 21:35:02 -05003627 result.hasDefaultUint32 |= input.ReadUInt32(ref result.defaultUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003628 break;
3629 }
3630 case 512: {
csharptestd2af9e92011-06-03 21:35:02 -05003631 result.hasDefaultUint64 |= input.ReadUInt64(ref result.defaultUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003632 break;
3633 }
3634 case 520: {
csharptestd2af9e92011-06-03 21:35:02 -05003635 result.hasDefaultSint32 |= input.ReadSInt32(ref result.defaultSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003636 break;
3637 }
3638 case 528: {
csharptestd2af9e92011-06-03 21:35:02 -05003639 result.hasDefaultSint64 |= input.ReadSInt64(ref result.defaultSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003640 break;
3641 }
3642 case 541: {
csharptestd2af9e92011-06-03 21:35:02 -05003643 result.hasDefaultFixed32 |= input.ReadFixed32(ref result.defaultFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003644 break;
3645 }
3646 case 545: {
csharptestd2af9e92011-06-03 21:35:02 -05003647 result.hasDefaultFixed64 |= input.ReadFixed64(ref result.defaultFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003648 break;
3649 }
3650 case 557: {
csharptestd2af9e92011-06-03 21:35:02 -05003651 result.hasDefaultSfixed32 |= input.ReadSFixed32(ref result.defaultSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003652 break;
3653 }
3654 case 561: {
csharptestd2af9e92011-06-03 21:35:02 -05003655 result.hasDefaultSfixed64 |= input.ReadSFixed64(ref result.defaultSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003656 break;
3657 }
3658 case 573: {
csharptestd2af9e92011-06-03 21:35:02 -05003659 result.hasDefaultFloat |= input.ReadFloat(ref result.defaultFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003660 break;
3661 }
3662 case 577: {
csharptestd2af9e92011-06-03 21:35:02 -05003663 result.hasDefaultDouble |= input.ReadDouble(ref result.defaultDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003664 break;
3665 }
3666 case 584: {
csharptestd2af9e92011-06-03 21:35:02 -05003667 result.hasDefaultBool |= input.ReadBool(ref result.defaultBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003668 break;
3669 }
3670 case 594: {
csharptestd2af9e92011-06-03 21:35:02 -05003671 result.hasDefaultString |= input.ReadString(ref result.defaultString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003672 break;
3673 }
3674 case 602: {
csharptestd2af9e92011-06-03 21:35:02 -05003675 result.hasDefaultBytes |= input.ReadBytes(ref result.defaultBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003676 break;
3677 }
3678 case 648: {
csharptestd2af9e92011-06-03 21:35:02 -05003679 object unknown;
3680 if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
3681 result.hasDefaultNestedEnum = true;
3682 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003683 if (unknownFields == null) {
3684 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3685 }
csharptestd2af9e92011-06-03 21:35:02 -05003686 unknownFields.MergeVarintField(81, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003687 }
3688 break;
3689 }
3690 case 656: {
csharptestd2af9e92011-06-03 21:35:02 -05003691 object unknown;
3692 if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
3693 result.hasDefaultForeignEnum = true;
3694 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003695 if (unknownFields == null) {
3696 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3697 }
csharptestd2af9e92011-06-03 21:35:02 -05003698 unknownFields.MergeVarintField(82, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003699 }
3700 break;
3701 }
3702 case 664: {
csharptestd2af9e92011-06-03 21:35:02 -05003703 object unknown;
3704 if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
3705 result.hasDefaultImportEnum = true;
3706 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003707 if (unknownFields == null) {
3708 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3709 }
csharptestd2af9e92011-06-03 21:35:02 -05003710 unknownFields.MergeVarintField(83, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003711 }
3712 break;
3713 }
3714 case 674: {
csharptestd2af9e92011-06-03 21:35:02 -05003715 result.hasDefaultStringPiece |= input.ReadString(ref result.defaultStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003716 break;
3717 }
3718 case 682: {
csharptestd2af9e92011-06-03 21:35:02 -05003719 result.hasDefaultCord |= input.ReadString(ref result.defaultCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003720 break;
3721 }
3722 }
3723 }
csharptest123e5342011-06-03 14:15:21 -05003724
3725 if (unknownFields != null) {
3726 this.UnknownFields = unknownFields.Build();
3727 }
3728 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01003729 }
3730
3731
3732 public bool HasOptionalInt32 {
3733 get { return result.HasOptionalInt32; }
3734 }
3735 public int OptionalInt32 {
3736 get { return result.OptionalInt32; }
3737 set { SetOptionalInt32(value); }
3738 }
3739 public Builder SetOptionalInt32(int value) {
3740 result.hasOptionalInt32 = true;
3741 result.optionalInt32_ = value;
3742 return this;
3743 }
3744 public Builder ClearOptionalInt32() {
3745 result.hasOptionalInt32 = false;
3746 result.optionalInt32_ = 0;
3747 return this;
3748 }
3749
3750 public bool HasOptionalInt64 {
3751 get { return result.HasOptionalInt64; }
3752 }
3753 public long OptionalInt64 {
3754 get { return result.OptionalInt64; }
3755 set { SetOptionalInt64(value); }
3756 }
3757 public Builder SetOptionalInt64(long value) {
3758 result.hasOptionalInt64 = true;
3759 result.optionalInt64_ = value;
3760 return this;
3761 }
3762 public Builder ClearOptionalInt64() {
3763 result.hasOptionalInt64 = false;
3764 result.optionalInt64_ = 0L;
3765 return this;
3766 }
3767
3768 public bool HasOptionalUint32 {
3769 get { return result.HasOptionalUint32; }
3770 }
3771 [global::System.CLSCompliant(false)]
3772 public uint OptionalUint32 {
3773 get { return result.OptionalUint32; }
3774 set { SetOptionalUint32(value); }
3775 }
3776 [global::System.CLSCompliant(false)]
3777 public Builder SetOptionalUint32(uint value) {
3778 result.hasOptionalUint32 = true;
3779 result.optionalUint32_ = value;
3780 return this;
3781 }
3782 public Builder ClearOptionalUint32() {
3783 result.hasOptionalUint32 = false;
3784 result.optionalUint32_ = 0;
3785 return this;
3786 }
3787
3788 public bool HasOptionalUint64 {
3789 get { return result.HasOptionalUint64; }
3790 }
3791 [global::System.CLSCompliant(false)]
3792 public ulong OptionalUint64 {
3793 get { return result.OptionalUint64; }
3794 set { SetOptionalUint64(value); }
3795 }
3796 [global::System.CLSCompliant(false)]
3797 public Builder SetOptionalUint64(ulong value) {
3798 result.hasOptionalUint64 = true;
3799 result.optionalUint64_ = value;
3800 return this;
3801 }
3802 public Builder ClearOptionalUint64() {
3803 result.hasOptionalUint64 = false;
3804 result.optionalUint64_ = 0UL;
3805 return this;
3806 }
3807
3808 public bool HasOptionalSint32 {
3809 get { return result.HasOptionalSint32; }
3810 }
3811 public int OptionalSint32 {
3812 get { return result.OptionalSint32; }
3813 set { SetOptionalSint32(value); }
3814 }
3815 public Builder SetOptionalSint32(int value) {
3816 result.hasOptionalSint32 = true;
3817 result.optionalSint32_ = value;
3818 return this;
3819 }
3820 public Builder ClearOptionalSint32() {
3821 result.hasOptionalSint32 = false;
3822 result.optionalSint32_ = 0;
3823 return this;
3824 }
3825
3826 public bool HasOptionalSint64 {
3827 get { return result.HasOptionalSint64; }
3828 }
3829 public long OptionalSint64 {
3830 get { return result.OptionalSint64; }
3831 set { SetOptionalSint64(value); }
3832 }
3833 public Builder SetOptionalSint64(long value) {
3834 result.hasOptionalSint64 = true;
3835 result.optionalSint64_ = value;
3836 return this;
3837 }
3838 public Builder ClearOptionalSint64() {
3839 result.hasOptionalSint64 = false;
3840 result.optionalSint64_ = 0;
3841 return this;
3842 }
3843
3844 public bool HasOptionalFixed32 {
3845 get { return result.HasOptionalFixed32; }
3846 }
3847 [global::System.CLSCompliant(false)]
3848 public uint OptionalFixed32 {
3849 get { return result.OptionalFixed32; }
3850 set { SetOptionalFixed32(value); }
3851 }
3852 [global::System.CLSCompliant(false)]
3853 public Builder SetOptionalFixed32(uint value) {
3854 result.hasOptionalFixed32 = true;
3855 result.optionalFixed32_ = value;
3856 return this;
3857 }
3858 public Builder ClearOptionalFixed32() {
3859 result.hasOptionalFixed32 = false;
3860 result.optionalFixed32_ = 0;
3861 return this;
3862 }
3863
3864 public bool HasOptionalFixed64 {
3865 get { return result.HasOptionalFixed64; }
3866 }
3867 [global::System.CLSCompliant(false)]
3868 public ulong OptionalFixed64 {
3869 get { return result.OptionalFixed64; }
3870 set { SetOptionalFixed64(value); }
3871 }
3872 [global::System.CLSCompliant(false)]
3873 public Builder SetOptionalFixed64(ulong value) {
3874 result.hasOptionalFixed64 = true;
3875 result.optionalFixed64_ = value;
3876 return this;
3877 }
3878 public Builder ClearOptionalFixed64() {
3879 result.hasOptionalFixed64 = false;
3880 result.optionalFixed64_ = 0;
3881 return this;
3882 }
3883
3884 public bool HasOptionalSfixed32 {
3885 get { return result.HasOptionalSfixed32; }
3886 }
3887 public int OptionalSfixed32 {
3888 get { return result.OptionalSfixed32; }
3889 set { SetOptionalSfixed32(value); }
3890 }
3891 public Builder SetOptionalSfixed32(int value) {
3892 result.hasOptionalSfixed32 = true;
3893 result.optionalSfixed32_ = value;
3894 return this;
3895 }
3896 public Builder ClearOptionalSfixed32() {
3897 result.hasOptionalSfixed32 = false;
3898 result.optionalSfixed32_ = 0;
3899 return this;
3900 }
3901
3902 public bool HasOptionalSfixed64 {
3903 get { return result.HasOptionalSfixed64; }
3904 }
3905 public long OptionalSfixed64 {
3906 get { return result.OptionalSfixed64; }
3907 set { SetOptionalSfixed64(value); }
3908 }
3909 public Builder SetOptionalSfixed64(long value) {
3910 result.hasOptionalSfixed64 = true;
3911 result.optionalSfixed64_ = value;
3912 return this;
3913 }
3914 public Builder ClearOptionalSfixed64() {
3915 result.hasOptionalSfixed64 = false;
3916 result.optionalSfixed64_ = 0;
3917 return this;
3918 }
3919
3920 public bool HasOptionalFloat {
3921 get { return result.HasOptionalFloat; }
3922 }
3923 public float OptionalFloat {
3924 get { return result.OptionalFloat; }
3925 set { SetOptionalFloat(value); }
3926 }
3927 public Builder SetOptionalFloat(float value) {
3928 result.hasOptionalFloat = true;
3929 result.optionalFloat_ = value;
3930 return this;
3931 }
3932 public Builder ClearOptionalFloat() {
3933 result.hasOptionalFloat = false;
3934 result.optionalFloat_ = 0F;
3935 return this;
3936 }
3937
3938 public bool HasOptionalDouble {
3939 get { return result.HasOptionalDouble; }
3940 }
3941 public double OptionalDouble {
3942 get { return result.OptionalDouble; }
3943 set { SetOptionalDouble(value); }
3944 }
3945 public Builder SetOptionalDouble(double value) {
3946 result.hasOptionalDouble = true;
3947 result.optionalDouble_ = value;
3948 return this;
3949 }
3950 public Builder ClearOptionalDouble() {
3951 result.hasOptionalDouble = false;
3952 result.optionalDouble_ = 0D;
3953 return this;
3954 }
3955
3956 public bool HasOptionalBool {
3957 get { return result.HasOptionalBool; }
3958 }
3959 public bool OptionalBool {
3960 get { return result.OptionalBool; }
3961 set { SetOptionalBool(value); }
3962 }
3963 public Builder SetOptionalBool(bool value) {
3964 result.hasOptionalBool = true;
3965 result.optionalBool_ = value;
3966 return this;
3967 }
3968 public Builder ClearOptionalBool() {
3969 result.hasOptionalBool = false;
3970 result.optionalBool_ = false;
3971 return this;
3972 }
3973
3974 public bool HasOptionalString {
3975 get { return result.HasOptionalString; }
3976 }
3977 public string OptionalString {
3978 get { return result.OptionalString; }
3979 set { SetOptionalString(value); }
3980 }
3981 public Builder SetOptionalString(string value) {
3982 pb::ThrowHelper.ThrowIfNull(value, "value");
3983 result.hasOptionalString = true;
3984 result.optionalString_ = value;
3985 return this;
3986 }
3987 public Builder ClearOptionalString() {
3988 result.hasOptionalString = false;
3989 result.optionalString_ = "";
3990 return this;
3991 }
3992
3993 public bool HasOptionalBytes {
3994 get { return result.HasOptionalBytes; }
3995 }
3996 public pb::ByteString OptionalBytes {
3997 get { return result.OptionalBytes; }
3998 set { SetOptionalBytes(value); }
3999 }
4000 public Builder SetOptionalBytes(pb::ByteString value) {
4001 pb::ThrowHelper.ThrowIfNull(value, "value");
4002 result.hasOptionalBytes = true;
4003 result.optionalBytes_ = value;
4004 return this;
4005 }
4006 public Builder ClearOptionalBytes() {
4007 result.hasOptionalBytes = false;
4008 result.optionalBytes_ = pb::ByteString.Empty;
4009 return this;
4010 }
4011
4012 public bool HasOptionalGroup {
4013 get { return result.HasOptionalGroup; }
4014 }
4015 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
4016 get { return result.OptionalGroup; }
4017 set { SetOptionalGroup(value); }
4018 }
4019 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
4020 pb::ThrowHelper.ThrowIfNull(value, "value");
4021 result.hasOptionalGroup = true;
4022 result.optionalGroup_ = value;
4023 return this;
4024 }
4025 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
4026 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4027 result.hasOptionalGroup = true;
4028 result.optionalGroup_ = builderForValue.Build();
4029 return this;
4030 }
4031 public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
4032 pb::ThrowHelper.ThrowIfNull(value, "value");
4033 if (result.HasOptionalGroup &&
4034 result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
4035 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
4036 } else {
4037 result.optionalGroup_ = value;
4038 }
4039 result.hasOptionalGroup = true;
4040 return this;
4041 }
4042 public Builder ClearOptionalGroup() {
4043 result.hasOptionalGroup = false;
4044 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
4045 return this;
4046 }
4047
4048 public bool HasOptionalNestedMessage {
4049 get { return result.HasOptionalNestedMessage; }
4050 }
4051 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
4052 get { return result.OptionalNestedMessage; }
4053 set { SetOptionalNestedMessage(value); }
4054 }
4055 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4056 pb::ThrowHelper.ThrowIfNull(value, "value");
4057 result.hasOptionalNestedMessage = true;
4058 result.optionalNestedMessage_ = value;
4059 return this;
4060 }
4061 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4062 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4063 result.hasOptionalNestedMessage = true;
4064 result.optionalNestedMessage_ = builderForValue.Build();
4065 return this;
4066 }
4067 public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4068 pb::ThrowHelper.ThrowIfNull(value, "value");
4069 if (result.HasOptionalNestedMessage &&
4070 result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
4071 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
4072 } else {
4073 result.optionalNestedMessage_ = value;
4074 }
4075 result.hasOptionalNestedMessage = true;
4076 return this;
4077 }
4078 public Builder ClearOptionalNestedMessage() {
4079 result.hasOptionalNestedMessage = false;
4080 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
4081 return this;
4082 }
4083
4084 public bool HasOptionalForeignMessage {
4085 get { return result.HasOptionalForeignMessage; }
4086 }
4087 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
4088 get { return result.OptionalForeignMessage; }
4089 set { SetOptionalForeignMessage(value); }
4090 }
4091 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4092 pb::ThrowHelper.ThrowIfNull(value, "value");
4093 result.hasOptionalForeignMessage = true;
4094 result.optionalForeignMessage_ = value;
4095 return this;
4096 }
4097 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4098 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4099 result.hasOptionalForeignMessage = true;
4100 result.optionalForeignMessage_ = builderForValue.Build();
4101 return this;
4102 }
4103 public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4104 pb::ThrowHelper.ThrowIfNull(value, "value");
4105 if (result.HasOptionalForeignMessage &&
4106 result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
4107 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
4108 } else {
4109 result.optionalForeignMessage_ = value;
4110 }
4111 result.hasOptionalForeignMessage = true;
4112 return this;
4113 }
4114 public Builder ClearOptionalForeignMessage() {
4115 result.hasOptionalForeignMessage = false;
4116 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
4117 return this;
4118 }
4119
4120 public bool HasOptionalImportMessage {
4121 get { return result.HasOptionalImportMessage; }
4122 }
4123 public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
4124 get { return result.OptionalImportMessage; }
4125 set { SetOptionalImportMessage(value); }
4126 }
4127 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4128 pb::ThrowHelper.ThrowIfNull(value, "value");
4129 result.hasOptionalImportMessage = true;
4130 result.optionalImportMessage_ = value;
4131 return this;
4132 }
4133 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4134 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4135 result.hasOptionalImportMessage = true;
4136 result.optionalImportMessage_ = builderForValue.Build();
4137 return this;
4138 }
4139 public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4140 pb::ThrowHelper.ThrowIfNull(value, "value");
4141 if (result.HasOptionalImportMessage &&
4142 result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
4143 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
4144 } else {
4145 result.optionalImportMessage_ = value;
4146 }
4147 result.hasOptionalImportMessage = true;
4148 return this;
4149 }
4150 public Builder ClearOptionalImportMessage() {
4151 result.hasOptionalImportMessage = false;
4152 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
4153 return this;
4154 }
4155
4156 public bool HasOptionalNestedEnum {
4157 get { return result.HasOptionalNestedEnum; }
4158 }
4159 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
4160 get { return result.OptionalNestedEnum; }
4161 set { SetOptionalNestedEnum(value); }
4162 }
4163 public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4164 result.hasOptionalNestedEnum = true;
4165 result.optionalNestedEnum_ = value;
4166 return this;
4167 }
4168 public Builder ClearOptionalNestedEnum() {
4169 result.hasOptionalNestedEnum = false;
4170 result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
4171 return this;
4172 }
4173
4174 public bool HasOptionalForeignEnum {
4175 get { return result.HasOptionalForeignEnum; }
4176 }
4177 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
4178 get { return result.OptionalForeignEnum; }
4179 set { SetOptionalForeignEnum(value); }
4180 }
4181 public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4182 result.hasOptionalForeignEnum = true;
4183 result.optionalForeignEnum_ = value;
4184 return this;
4185 }
4186 public Builder ClearOptionalForeignEnum() {
4187 result.hasOptionalForeignEnum = false;
4188 result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
4189 return this;
4190 }
4191
4192 public bool HasOptionalImportEnum {
4193 get { return result.HasOptionalImportEnum; }
4194 }
4195 public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
4196 get { return result.OptionalImportEnum; }
4197 set { SetOptionalImportEnum(value); }
4198 }
4199 public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4200 result.hasOptionalImportEnum = true;
4201 result.optionalImportEnum_ = value;
4202 return this;
4203 }
4204 public Builder ClearOptionalImportEnum() {
4205 result.hasOptionalImportEnum = false;
4206 result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
4207 return this;
4208 }
4209
4210 public bool HasOptionalStringPiece {
4211 get { return result.HasOptionalStringPiece; }
4212 }
4213 public string OptionalStringPiece {
4214 get { return result.OptionalStringPiece; }
4215 set { SetOptionalStringPiece(value); }
4216 }
4217 public Builder SetOptionalStringPiece(string value) {
4218 pb::ThrowHelper.ThrowIfNull(value, "value");
4219 result.hasOptionalStringPiece = true;
4220 result.optionalStringPiece_ = value;
4221 return this;
4222 }
4223 public Builder ClearOptionalStringPiece() {
4224 result.hasOptionalStringPiece = false;
4225 result.optionalStringPiece_ = "";
4226 return this;
4227 }
4228
4229 public bool HasOptionalCord {
4230 get { return result.HasOptionalCord; }
4231 }
4232 public string OptionalCord {
4233 get { return result.OptionalCord; }
4234 set { SetOptionalCord(value); }
4235 }
4236 public Builder SetOptionalCord(string value) {
4237 pb::ThrowHelper.ThrowIfNull(value, "value");
4238 result.hasOptionalCord = true;
4239 result.optionalCord_ = value;
4240 return this;
4241 }
4242 public Builder ClearOptionalCord() {
4243 result.hasOptionalCord = false;
4244 result.optionalCord_ = "";
4245 return this;
4246 }
4247
4248 public pbc::IPopsicleList<int> RepeatedInt32List {
4249 get { return result.repeatedInt32_; }
4250 }
4251 public int RepeatedInt32Count {
4252 get { return result.RepeatedInt32Count; }
4253 }
4254 public int GetRepeatedInt32(int index) {
4255 return result.GetRepeatedInt32(index);
4256 }
4257 public Builder SetRepeatedInt32(int index, int value) {
4258 result.repeatedInt32_[index] = value;
4259 return this;
4260 }
4261 public Builder AddRepeatedInt32(int value) {
4262 result.repeatedInt32_.Add(value);
4263 return this;
4264 }
4265 public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
4266 base.AddRange(values, result.repeatedInt32_);
4267 return this;
4268 }
4269 public Builder ClearRepeatedInt32() {
4270 result.repeatedInt32_.Clear();
4271 return this;
4272 }
4273
4274 public pbc::IPopsicleList<long> RepeatedInt64List {
4275 get { return result.repeatedInt64_; }
4276 }
4277 public int RepeatedInt64Count {
4278 get { return result.RepeatedInt64Count; }
4279 }
4280 public long GetRepeatedInt64(int index) {
4281 return result.GetRepeatedInt64(index);
4282 }
4283 public Builder SetRepeatedInt64(int index, long value) {
4284 result.repeatedInt64_[index] = value;
4285 return this;
4286 }
4287 public Builder AddRepeatedInt64(long value) {
4288 result.repeatedInt64_.Add(value);
4289 return this;
4290 }
4291 public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
4292 base.AddRange(values, result.repeatedInt64_);
4293 return this;
4294 }
4295 public Builder ClearRepeatedInt64() {
4296 result.repeatedInt64_.Clear();
4297 return this;
4298 }
4299
4300 [global::System.CLSCompliant(false)]
4301 public pbc::IPopsicleList<uint> RepeatedUint32List {
4302 get { return result.repeatedUint32_; }
4303 }
4304 public int RepeatedUint32Count {
4305 get { return result.RepeatedUint32Count; }
4306 }
4307 [global::System.CLSCompliant(false)]
4308 public uint GetRepeatedUint32(int index) {
4309 return result.GetRepeatedUint32(index);
4310 }
4311 [global::System.CLSCompliant(false)]
4312 public Builder SetRepeatedUint32(int index, uint value) {
4313 result.repeatedUint32_[index] = value;
4314 return this;
4315 }
4316 [global::System.CLSCompliant(false)]
4317 public Builder AddRepeatedUint32(uint value) {
4318 result.repeatedUint32_.Add(value);
4319 return this;
4320 }
4321 [global::System.CLSCompliant(false)]
4322 public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
4323 base.AddRange(values, result.repeatedUint32_);
4324 return this;
4325 }
4326 public Builder ClearRepeatedUint32() {
4327 result.repeatedUint32_.Clear();
4328 return this;
4329 }
4330
4331 [global::System.CLSCompliant(false)]
4332 public pbc::IPopsicleList<ulong> RepeatedUint64List {
4333 get { return result.repeatedUint64_; }
4334 }
4335 public int RepeatedUint64Count {
4336 get { return result.RepeatedUint64Count; }
4337 }
4338 [global::System.CLSCompliant(false)]
4339 public ulong GetRepeatedUint64(int index) {
4340 return result.GetRepeatedUint64(index);
4341 }
4342 [global::System.CLSCompliant(false)]
4343 public Builder SetRepeatedUint64(int index, ulong value) {
4344 result.repeatedUint64_[index] = value;
4345 return this;
4346 }
4347 [global::System.CLSCompliant(false)]
4348 public Builder AddRepeatedUint64(ulong value) {
4349 result.repeatedUint64_.Add(value);
4350 return this;
4351 }
4352 [global::System.CLSCompliant(false)]
4353 public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
4354 base.AddRange(values, result.repeatedUint64_);
4355 return this;
4356 }
4357 public Builder ClearRepeatedUint64() {
4358 result.repeatedUint64_.Clear();
4359 return this;
4360 }
4361
4362 public pbc::IPopsicleList<int> RepeatedSint32List {
4363 get { return result.repeatedSint32_; }
4364 }
4365 public int RepeatedSint32Count {
4366 get { return result.RepeatedSint32Count; }
4367 }
4368 public int GetRepeatedSint32(int index) {
4369 return result.GetRepeatedSint32(index);
4370 }
4371 public Builder SetRepeatedSint32(int index, int value) {
4372 result.repeatedSint32_[index] = value;
4373 return this;
4374 }
4375 public Builder AddRepeatedSint32(int value) {
4376 result.repeatedSint32_.Add(value);
4377 return this;
4378 }
4379 public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
4380 base.AddRange(values, result.repeatedSint32_);
4381 return this;
4382 }
4383 public Builder ClearRepeatedSint32() {
4384 result.repeatedSint32_.Clear();
4385 return this;
4386 }
4387
4388 public pbc::IPopsicleList<long> RepeatedSint64List {
4389 get { return result.repeatedSint64_; }
4390 }
4391 public int RepeatedSint64Count {
4392 get { return result.RepeatedSint64Count; }
4393 }
4394 public long GetRepeatedSint64(int index) {
4395 return result.GetRepeatedSint64(index);
4396 }
4397 public Builder SetRepeatedSint64(int index, long value) {
4398 result.repeatedSint64_[index] = value;
4399 return this;
4400 }
4401 public Builder AddRepeatedSint64(long value) {
4402 result.repeatedSint64_.Add(value);
4403 return this;
4404 }
4405 public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
4406 base.AddRange(values, result.repeatedSint64_);
4407 return this;
4408 }
4409 public Builder ClearRepeatedSint64() {
4410 result.repeatedSint64_.Clear();
4411 return this;
4412 }
4413
4414 [global::System.CLSCompliant(false)]
4415 public pbc::IPopsicleList<uint> RepeatedFixed32List {
4416 get { return result.repeatedFixed32_; }
4417 }
4418 public int RepeatedFixed32Count {
4419 get { return result.RepeatedFixed32Count; }
4420 }
4421 [global::System.CLSCompliant(false)]
4422 public uint GetRepeatedFixed32(int index) {
4423 return result.GetRepeatedFixed32(index);
4424 }
4425 [global::System.CLSCompliant(false)]
4426 public Builder SetRepeatedFixed32(int index, uint value) {
4427 result.repeatedFixed32_[index] = value;
4428 return this;
4429 }
4430 [global::System.CLSCompliant(false)]
4431 public Builder AddRepeatedFixed32(uint value) {
4432 result.repeatedFixed32_.Add(value);
4433 return this;
4434 }
4435 [global::System.CLSCompliant(false)]
4436 public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
4437 base.AddRange(values, result.repeatedFixed32_);
4438 return this;
4439 }
4440 public Builder ClearRepeatedFixed32() {
4441 result.repeatedFixed32_.Clear();
4442 return this;
4443 }
4444
4445 [global::System.CLSCompliant(false)]
4446 public pbc::IPopsicleList<ulong> RepeatedFixed64List {
4447 get { return result.repeatedFixed64_; }
4448 }
4449 public int RepeatedFixed64Count {
4450 get { return result.RepeatedFixed64Count; }
4451 }
4452 [global::System.CLSCompliant(false)]
4453 public ulong GetRepeatedFixed64(int index) {
4454 return result.GetRepeatedFixed64(index);
4455 }
4456 [global::System.CLSCompliant(false)]
4457 public Builder SetRepeatedFixed64(int index, ulong value) {
4458 result.repeatedFixed64_[index] = value;
4459 return this;
4460 }
4461 [global::System.CLSCompliant(false)]
4462 public Builder AddRepeatedFixed64(ulong value) {
4463 result.repeatedFixed64_.Add(value);
4464 return this;
4465 }
4466 [global::System.CLSCompliant(false)]
4467 public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
4468 base.AddRange(values, result.repeatedFixed64_);
4469 return this;
4470 }
4471 public Builder ClearRepeatedFixed64() {
4472 result.repeatedFixed64_.Clear();
4473 return this;
4474 }
4475
4476 public pbc::IPopsicleList<int> RepeatedSfixed32List {
4477 get { return result.repeatedSfixed32_; }
4478 }
4479 public int RepeatedSfixed32Count {
4480 get { return result.RepeatedSfixed32Count; }
4481 }
4482 public int GetRepeatedSfixed32(int index) {
4483 return result.GetRepeatedSfixed32(index);
4484 }
4485 public Builder SetRepeatedSfixed32(int index, int value) {
4486 result.repeatedSfixed32_[index] = value;
4487 return this;
4488 }
4489 public Builder AddRepeatedSfixed32(int value) {
4490 result.repeatedSfixed32_.Add(value);
4491 return this;
4492 }
4493 public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
4494 base.AddRange(values, result.repeatedSfixed32_);
4495 return this;
4496 }
4497 public Builder ClearRepeatedSfixed32() {
4498 result.repeatedSfixed32_.Clear();
4499 return this;
4500 }
4501
4502 public pbc::IPopsicleList<long> RepeatedSfixed64List {
4503 get { return result.repeatedSfixed64_; }
4504 }
4505 public int RepeatedSfixed64Count {
4506 get { return result.RepeatedSfixed64Count; }
4507 }
4508 public long GetRepeatedSfixed64(int index) {
4509 return result.GetRepeatedSfixed64(index);
4510 }
4511 public Builder SetRepeatedSfixed64(int index, long value) {
4512 result.repeatedSfixed64_[index] = value;
4513 return this;
4514 }
4515 public Builder AddRepeatedSfixed64(long value) {
4516 result.repeatedSfixed64_.Add(value);
4517 return this;
4518 }
4519 public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
4520 base.AddRange(values, result.repeatedSfixed64_);
4521 return this;
4522 }
4523 public Builder ClearRepeatedSfixed64() {
4524 result.repeatedSfixed64_.Clear();
4525 return this;
4526 }
4527
4528 public pbc::IPopsicleList<float> RepeatedFloatList {
4529 get { return result.repeatedFloat_; }
4530 }
4531 public int RepeatedFloatCount {
4532 get { return result.RepeatedFloatCount; }
4533 }
4534 public float GetRepeatedFloat(int index) {
4535 return result.GetRepeatedFloat(index);
4536 }
4537 public Builder SetRepeatedFloat(int index, float value) {
4538 result.repeatedFloat_[index] = value;
4539 return this;
4540 }
4541 public Builder AddRepeatedFloat(float value) {
4542 result.repeatedFloat_.Add(value);
4543 return this;
4544 }
4545 public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
4546 base.AddRange(values, result.repeatedFloat_);
4547 return this;
4548 }
4549 public Builder ClearRepeatedFloat() {
4550 result.repeatedFloat_.Clear();
4551 return this;
4552 }
4553
4554 public pbc::IPopsicleList<double> RepeatedDoubleList {
4555 get { return result.repeatedDouble_; }
4556 }
4557 public int RepeatedDoubleCount {
4558 get { return result.RepeatedDoubleCount; }
4559 }
4560 public double GetRepeatedDouble(int index) {
4561 return result.GetRepeatedDouble(index);
4562 }
4563 public Builder SetRepeatedDouble(int index, double value) {
4564 result.repeatedDouble_[index] = value;
4565 return this;
4566 }
4567 public Builder AddRepeatedDouble(double value) {
4568 result.repeatedDouble_.Add(value);
4569 return this;
4570 }
4571 public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
4572 base.AddRange(values, result.repeatedDouble_);
4573 return this;
4574 }
4575 public Builder ClearRepeatedDouble() {
4576 result.repeatedDouble_.Clear();
4577 return this;
4578 }
4579
4580 public pbc::IPopsicleList<bool> RepeatedBoolList {
4581 get { return result.repeatedBool_; }
4582 }
4583 public int RepeatedBoolCount {
4584 get { return result.RepeatedBoolCount; }
4585 }
4586 public bool GetRepeatedBool(int index) {
4587 return result.GetRepeatedBool(index);
4588 }
4589 public Builder SetRepeatedBool(int index, bool value) {
4590 result.repeatedBool_[index] = value;
4591 return this;
4592 }
4593 public Builder AddRepeatedBool(bool value) {
4594 result.repeatedBool_.Add(value);
4595 return this;
4596 }
4597 public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
4598 base.AddRange(values, result.repeatedBool_);
4599 return this;
4600 }
4601 public Builder ClearRepeatedBool() {
4602 result.repeatedBool_.Clear();
4603 return this;
4604 }
4605
4606 public pbc::IPopsicleList<string> RepeatedStringList {
4607 get { return result.repeatedString_; }
4608 }
4609 public int RepeatedStringCount {
4610 get { return result.RepeatedStringCount; }
4611 }
4612 public string GetRepeatedString(int index) {
4613 return result.GetRepeatedString(index);
4614 }
4615 public Builder SetRepeatedString(int index, string value) {
4616 pb::ThrowHelper.ThrowIfNull(value, "value");
4617 result.repeatedString_[index] = value;
4618 return this;
4619 }
4620 public Builder AddRepeatedString(string value) {
4621 pb::ThrowHelper.ThrowIfNull(value, "value");
4622 result.repeatedString_.Add(value);
4623 return this;
4624 }
4625 public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
4626 base.AddRange(values, result.repeatedString_);
4627 return this;
4628 }
4629 public Builder ClearRepeatedString() {
4630 result.repeatedString_.Clear();
4631 return this;
4632 }
4633
4634 public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
4635 get { return result.repeatedBytes_; }
4636 }
4637 public int RepeatedBytesCount {
4638 get { return result.RepeatedBytesCount; }
4639 }
4640 public pb::ByteString GetRepeatedBytes(int index) {
4641 return result.GetRepeatedBytes(index);
4642 }
4643 public Builder SetRepeatedBytes(int index, pb::ByteString value) {
4644 pb::ThrowHelper.ThrowIfNull(value, "value");
4645 result.repeatedBytes_[index] = value;
4646 return this;
4647 }
4648 public Builder AddRepeatedBytes(pb::ByteString value) {
4649 pb::ThrowHelper.ThrowIfNull(value, "value");
4650 result.repeatedBytes_.Add(value);
4651 return this;
4652 }
4653 public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
4654 base.AddRange(values, result.repeatedBytes_);
4655 return this;
4656 }
4657 public Builder ClearRepeatedBytes() {
4658 result.repeatedBytes_.Clear();
4659 return this;
4660 }
4661
4662 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
4663 get { return result.repeatedGroup_; }
4664 }
4665 public int RepeatedGroupCount {
4666 get { return result.RepeatedGroupCount; }
4667 }
4668 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
4669 return result.GetRepeatedGroup(index);
4670 }
4671 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
4672 pb::ThrowHelper.ThrowIfNull(value, "value");
4673 result.repeatedGroup_[index] = value;
4674 return this;
4675 }
4676 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
4677 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4678 result.repeatedGroup_[index] = builderForValue.Build();
4679 return this;
4680 }
4681 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
4682 pb::ThrowHelper.ThrowIfNull(value, "value");
4683 result.repeatedGroup_.Add(value);
4684 return this;
4685 }
4686 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
4687 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4688 result.repeatedGroup_.Add(builderForValue.Build());
4689 return this;
4690 }
4691 public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
4692 base.AddRange(values, result.repeatedGroup_);
4693 return this;
4694 }
4695 public Builder ClearRepeatedGroup() {
4696 result.repeatedGroup_.Clear();
4697 return this;
4698 }
4699
4700 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
4701 get { return result.repeatedNestedMessage_; }
4702 }
4703 public int RepeatedNestedMessageCount {
4704 get { return result.RepeatedNestedMessageCount; }
4705 }
4706 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
4707 return result.GetRepeatedNestedMessage(index);
4708 }
4709 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4710 pb::ThrowHelper.ThrowIfNull(value, "value");
4711 result.repeatedNestedMessage_[index] = value;
4712 return this;
4713 }
4714 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4715 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4716 result.repeatedNestedMessage_[index] = builderForValue.Build();
4717 return this;
4718 }
4719 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4720 pb::ThrowHelper.ThrowIfNull(value, "value");
4721 result.repeatedNestedMessage_.Add(value);
4722 return this;
4723 }
4724 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4725 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4726 result.repeatedNestedMessage_.Add(builderForValue.Build());
4727 return this;
4728 }
4729 public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
4730 base.AddRange(values, result.repeatedNestedMessage_);
4731 return this;
4732 }
4733 public Builder ClearRepeatedNestedMessage() {
4734 result.repeatedNestedMessage_.Clear();
4735 return this;
4736 }
4737
4738 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
4739 get { return result.repeatedForeignMessage_; }
4740 }
4741 public int RepeatedForeignMessageCount {
4742 get { return result.RepeatedForeignMessageCount; }
4743 }
4744 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
4745 return result.GetRepeatedForeignMessage(index);
4746 }
4747 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4748 pb::ThrowHelper.ThrowIfNull(value, "value");
4749 result.repeatedForeignMessage_[index] = value;
4750 return this;
4751 }
4752 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4753 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4754 result.repeatedForeignMessage_[index] = builderForValue.Build();
4755 return this;
4756 }
4757 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4758 pb::ThrowHelper.ThrowIfNull(value, "value");
4759 result.repeatedForeignMessage_.Add(value);
4760 return this;
4761 }
4762 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4763 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4764 result.repeatedForeignMessage_.Add(builderForValue.Build());
4765 return this;
4766 }
4767 public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
4768 base.AddRange(values, result.repeatedForeignMessage_);
4769 return this;
4770 }
4771 public Builder ClearRepeatedForeignMessage() {
4772 result.repeatedForeignMessage_.Clear();
4773 return this;
4774 }
4775
4776 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
4777 get { return result.repeatedImportMessage_; }
4778 }
4779 public int RepeatedImportMessageCount {
4780 get { return result.RepeatedImportMessageCount; }
4781 }
4782 public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
4783 return result.GetRepeatedImportMessage(index);
4784 }
4785 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4786 pb::ThrowHelper.ThrowIfNull(value, "value");
4787 result.repeatedImportMessage_[index] = value;
4788 return this;
4789 }
4790 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4791 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4792 result.repeatedImportMessage_[index] = builderForValue.Build();
4793 return this;
4794 }
4795 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4796 pb::ThrowHelper.ThrowIfNull(value, "value");
4797 result.repeatedImportMessage_.Add(value);
4798 return this;
4799 }
4800 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4801 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4802 result.repeatedImportMessage_.Add(builderForValue.Build());
4803 return this;
4804 }
4805 public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
4806 base.AddRange(values, result.repeatedImportMessage_);
4807 return this;
4808 }
4809 public Builder ClearRepeatedImportMessage() {
4810 result.repeatedImportMessage_.Clear();
4811 return this;
4812 }
4813
4814 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
4815 get { return result.repeatedNestedEnum_; }
4816 }
4817 public int RepeatedNestedEnumCount {
4818 get { return result.RepeatedNestedEnumCount; }
4819 }
4820 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
4821 return result.GetRepeatedNestedEnum(index);
4822 }
4823 public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4824 result.repeatedNestedEnum_[index] = value;
4825 return this;
4826 }
4827 public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4828 result.repeatedNestedEnum_.Add(value);
4829 return this;
4830 }
4831 public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
4832 base.AddRange(values, result.repeatedNestedEnum_);
4833 return this;
4834 }
4835 public Builder ClearRepeatedNestedEnum() {
4836 result.repeatedNestedEnum_.Clear();
4837 return this;
4838 }
4839
4840 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
4841 get { return result.repeatedForeignEnum_; }
4842 }
4843 public int RepeatedForeignEnumCount {
4844 get { return result.RepeatedForeignEnumCount; }
4845 }
4846 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
4847 return result.GetRepeatedForeignEnum(index);
4848 }
4849 public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4850 result.repeatedForeignEnum_[index] = value;
4851 return this;
4852 }
4853 public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4854 result.repeatedForeignEnum_.Add(value);
4855 return this;
4856 }
4857 public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
4858 base.AddRange(values, result.repeatedForeignEnum_);
4859 return this;
4860 }
4861 public Builder ClearRepeatedForeignEnum() {
4862 result.repeatedForeignEnum_.Clear();
4863 return this;
4864 }
4865
4866 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
4867 get { return result.repeatedImportEnum_; }
4868 }
4869 public int RepeatedImportEnumCount {
4870 get { return result.RepeatedImportEnumCount; }
4871 }
4872 public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
4873 return result.GetRepeatedImportEnum(index);
4874 }
4875 public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4876 result.repeatedImportEnum_[index] = value;
4877 return this;
4878 }
4879 public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4880 result.repeatedImportEnum_.Add(value);
4881 return this;
4882 }
4883 public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
4884 base.AddRange(values, result.repeatedImportEnum_);
4885 return this;
4886 }
4887 public Builder ClearRepeatedImportEnum() {
4888 result.repeatedImportEnum_.Clear();
4889 return this;
4890 }
4891
4892 public pbc::IPopsicleList<string> RepeatedStringPieceList {
4893 get { return result.repeatedStringPiece_; }
4894 }
4895 public int RepeatedStringPieceCount {
4896 get { return result.RepeatedStringPieceCount; }
4897 }
4898 public string GetRepeatedStringPiece(int index) {
4899 return result.GetRepeatedStringPiece(index);
4900 }
4901 public Builder SetRepeatedStringPiece(int index, string value) {
4902 pb::ThrowHelper.ThrowIfNull(value, "value");
4903 result.repeatedStringPiece_[index] = value;
4904 return this;
4905 }
4906 public Builder AddRepeatedStringPiece(string value) {
4907 pb::ThrowHelper.ThrowIfNull(value, "value");
4908 result.repeatedStringPiece_.Add(value);
4909 return this;
4910 }
4911 public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
4912 base.AddRange(values, result.repeatedStringPiece_);
4913 return this;
4914 }
4915 public Builder ClearRepeatedStringPiece() {
4916 result.repeatedStringPiece_.Clear();
4917 return this;
4918 }
4919
4920 public pbc::IPopsicleList<string> RepeatedCordList {
4921 get { return result.repeatedCord_; }
4922 }
4923 public int RepeatedCordCount {
4924 get { return result.RepeatedCordCount; }
4925 }
4926 public string GetRepeatedCord(int index) {
4927 return result.GetRepeatedCord(index);
4928 }
4929 public Builder SetRepeatedCord(int index, string value) {
4930 pb::ThrowHelper.ThrowIfNull(value, "value");
4931 result.repeatedCord_[index] = value;
4932 return this;
4933 }
4934 public Builder AddRepeatedCord(string value) {
4935 pb::ThrowHelper.ThrowIfNull(value, "value");
4936 result.repeatedCord_.Add(value);
4937 return this;
4938 }
4939 public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
4940 base.AddRange(values, result.repeatedCord_);
4941 return this;
4942 }
4943 public Builder ClearRepeatedCord() {
4944 result.repeatedCord_.Clear();
4945 return this;
4946 }
4947
4948 public bool HasDefaultInt32 {
4949 get { return result.HasDefaultInt32; }
4950 }
4951 public int DefaultInt32 {
4952 get { return result.DefaultInt32; }
4953 set { SetDefaultInt32(value); }
4954 }
4955 public Builder SetDefaultInt32(int value) {
4956 result.hasDefaultInt32 = true;
4957 result.defaultInt32_ = value;
4958 return this;
4959 }
4960 public Builder ClearDefaultInt32() {
4961 result.hasDefaultInt32 = false;
4962 result.defaultInt32_ = 41;
4963 return this;
4964 }
4965
4966 public bool HasDefaultInt64 {
4967 get { return result.HasDefaultInt64; }
4968 }
4969 public long DefaultInt64 {
4970 get { return result.DefaultInt64; }
4971 set { SetDefaultInt64(value); }
4972 }
4973 public Builder SetDefaultInt64(long value) {
4974 result.hasDefaultInt64 = true;
4975 result.defaultInt64_ = value;
4976 return this;
4977 }
4978 public Builder ClearDefaultInt64() {
4979 result.hasDefaultInt64 = false;
4980 result.defaultInt64_ = 42L;
4981 return this;
4982 }
4983
4984 public bool HasDefaultUint32 {
4985 get { return result.HasDefaultUint32; }
4986 }
4987 [global::System.CLSCompliant(false)]
4988 public uint DefaultUint32 {
4989 get { return result.DefaultUint32; }
4990 set { SetDefaultUint32(value); }
4991 }
4992 [global::System.CLSCompliant(false)]
4993 public Builder SetDefaultUint32(uint value) {
4994 result.hasDefaultUint32 = true;
4995 result.defaultUint32_ = value;
4996 return this;
4997 }
4998 public Builder ClearDefaultUint32() {
4999 result.hasDefaultUint32 = false;
5000 result.defaultUint32_ = 43;
5001 return this;
5002 }
5003
5004 public bool HasDefaultUint64 {
5005 get { return result.HasDefaultUint64; }
5006 }
5007 [global::System.CLSCompliant(false)]
5008 public ulong DefaultUint64 {
5009 get { return result.DefaultUint64; }
5010 set { SetDefaultUint64(value); }
5011 }
5012 [global::System.CLSCompliant(false)]
5013 public Builder SetDefaultUint64(ulong value) {
5014 result.hasDefaultUint64 = true;
5015 result.defaultUint64_ = value;
5016 return this;
5017 }
5018 public Builder ClearDefaultUint64() {
5019 result.hasDefaultUint64 = false;
5020 result.defaultUint64_ = 44UL;
5021 return this;
5022 }
5023
5024 public bool HasDefaultSint32 {
5025 get { return result.HasDefaultSint32; }
5026 }
5027 public int DefaultSint32 {
5028 get { return result.DefaultSint32; }
5029 set { SetDefaultSint32(value); }
5030 }
5031 public Builder SetDefaultSint32(int value) {
5032 result.hasDefaultSint32 = true;
5033 result.defaultSint32_ = value;
5034 return this;
5035 }
5036 public Builder ClearDefaultSint32() {
5037 result.hasDefaultSint32 = false;
5038 result.defaultSint32_ = -45;
5039 return this;
5040 }
5041
5042 public bool HasDefaultSint64 {
5043 get { return result.HasDefaultSint64; }
5044 }
5045 public long DefaultSint64 {
5046 get { return result.DefaultSint64; }
5047 set { SetDefaultSint64(value); }
5048 }
5049 public Builder SetDefaultSint64(long value) {
5050 result.hasDefaultSint64 = true;
5051 result.defaultSint64_ = value;
5052 return this;
5053 }
5054 public Builder ClearDefaultSint64() {
5055 result.hasDefaultSint64 = false;
5056 result.defaultSint64_ = 46;
5057 return this;
5058 }
5059
5060 public bool HasDefaultFixed32 {
5061 get { return result.HasDefaultFixed32; }
5062 }
5063 [global::System.CLSCompliant(false)]
5064 public uint DefaultFixed32 {
5065 get { return result.DefaultFixed32; }
5066 set { SetDefaultFixed32(value); }
5067 }
5068 [global::System.CLSCompliant(false)]
5069 public Builder SetDefaultFixed32(uint value) {
5070 result.hasDefaultFixed32 = true;
5071 result.defaultFixed32_ = value;
5072 return this;
5073 }
5074 public Builder ClearDefaultFixed32() {
5075 result.hasDefaultFixed32 = false;
5076 result.defaultFixed32_ = 47;
5077 return this;
5078 }
5079
5080 public bool HasDefaultFixed64 {
5081 get { return result.HasDefaultFixed64; }
5082 }
5083 [global::System.CLSCompliant(false)]
5084 public ulong DefaultFixed64 {
5085 get { return result.DefaultFixed64; }
5086 set { SetDefaultFixed64(value); }
5087 }
5088 [global::System.CLSCompliant(false)]
5089 public Builder SetDefaultFixed64(ulong value) {
5090 result.hasDefaultFixed64 = true;
5091 result.defaultFixed64_ = value;
5092 return this;
5093 }
5094 public Builder ClearDefaultFixed64() {
5095 result.hasDefaultFixed64 = false;
5096 result.defaultFixed64_ = 48;
5097 return this;
5098 }
5099
5100 public bool HasDefaultSfixed32 {
5101 get { return result.HasDefaultSfixed32; }
5102 }
5103 public int DefaultSfixed32 {
5104 get { return result.DefaultSfixed32; }
5105 set { SetDefaultSfixed32(value); }
5106 }
5107 public Builder SetDefaultSfixed32(int value) {
5108 result.hasDefaultSfixed32 = true;
5109 result.defaultSfixed32_ = value;
5110 return this;
5111 }
5112 public Builder ClearDefaultSfixed32() {
5113 result.hasDefaultSfixed32 = false;
5114 result.defaultSfixed32_ = 49;
5115 return this;
5116 }
5117
5118 public bool HasDefaultSfixed64 {
5119 get { return result.HasDefaultSfixed64; }
5120 }
5121 public long DefaultSfixed64 {
5122 get { return result.DefaultSfixed64; }
5123 set { SetDefaultSfixed64(value); }
5124 }
5125 public Builder SetDefaultSfixed64(long value) {
5126 result.hasDefaultSfixed64 = true;
5127 result.defaultSfixed64_ = value;
5128 return this;
5129 }
5130 public Builder ClearDefaultSfixed64() {
5131 result.hasDefaultSfixed64 = false;
5132 result.defaultSfixed64_ = -50;
5133 return this;
5134 }
5135
5136 public bool HasDefaultFloat {
5137 get { return result.HasDefaultFloat; }
5138 }
5139 public float DefaultFloat {
5140 get { return result.DefaultFloat; }
5141 set { SetDefaultFloat(value); }
5142 }
5143 public Builder SetDefaultFloat(float value) {
5144 result.hasDefaultFloat = true;
5145 result.defaultFloat_ = value;
5146 return this;
5147 }
5148 public Builder ClearDefaultFloat() {
5149 result.hasDefaultFloat = false;
5150 result.defaultFloat_ = 51.5F;
5151 return this;
5152 }
5153
5154 public bool HasDefaultDouble {
5155 get { return result.HasDefaultDouble; }
5156 }
5157 public double DefaultDouble {
5158 get { return result.DefaultDouble; }
5159 set { SetDefaultDouble(value); }
5160 }
5161 public Builder SetDefaultDouble(double value) {
5162 result.hasDefaultDouble = true;
5163 result.defaultDouble_ = value;
5164 return this;
5165 }
5166 public Builder ClearDefaultDouble() {
5167 result.hasDefaultDouble = false;
5168 result.defaultDouble_ = 52000D;
5169 return this;
5170 }
5171
5172 public bool HasDefaultBool {
5173 get { return result.HasDefaultBool; }
5174 }
5175 public bool DefaultBool {
5176 get { return result.DefaultBool; }
5177 set { SetDefaultBool(value); }
5178 }
5179 public Builder SetDefaultBool(bool value) {
5180 result.hasDefaultBool = true;
5181 result.defaultBool_ = value;
5182 return this;
5183 }
5184 public Builder ClearDefaultBool() {
5185 result.hasDefaultBool = false;
5186 result.defaultBool_ = true;
5187 return this;
5188 }
5189
5190 public bool HasDefaultString {
5191 get { return result.HasDefaultString; }
5192 }
5193 public string DefaultString {
5194 get { return result.DefaultString; }
5195 set { SetDefaultString(value); }
5196 }
5197 public Builder SetDefaultString(string value) {
5198 pb::ThrowHelper.ThrowIfNull(value, "value");
5199 result.hasDefaultString = true;
5200 result.defaultString_ = value;
5201 return this;
5202 }
5203 public Builder ClearDefaultString() {
5204 result.hasDefaultString = false;
5205 result.defaultString_ = "hello";
5206 return this;
5207 }
5208
5209 public bool HasDefaultBytes {
5210 get { return result.HasDefaultBytes; }
5211 }
5212 public pb::ByteString DefaultBytes {
5213 get { return result.DefaultBytes; }
5214 set { SetDefaultBytes(value); }
5215 }
5216 public Builder SetDefaultBytes(pb::ByteString value) {
5217 pb::ThrowHelper.ThrowIfNull(value, "value");
5218 result.hasDefaultBytes = true;
5219 result.defaultBytes_ = value;
5220 return this;
5221 }
5222 public Builder ClearDefaultBytes() {
5223 result.hasDefaultBytes = false;
5224 result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue;
5225 return this;
5226 }
5227
5228 public bool HasDefaultNestedEnum {
5229 get { return result.HasDefaultNestedEnum; }
5230 }
5231 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
5232 get { return result.DefaultNestedEnum; }
5233 set { SetDefaultNestedEnum(value); }
5234 }
5235 public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
5236 result.hasDefaultNestedEnum = true;
5237 result.defaultNestedEnum_ = value;
5238 return this;
5239 }
5240 public Builder ClearDefaultNestedEnum() {
5241 result.hasDefaultNestedEnum = false;
5242 result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
5243 return this;
5244 }
5245
5246 public bool HasDefaultForeignEnum {
5247 get { return result.HasDefaultForeignEnum; }
5248 }
5249 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
5250 get { return result.DefaultForeignEnum; }
5251 set { SetDefaultForeignEnum(value); }
5252 }
5253 public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
5254 result.hasDefaultForeignEnum = true;
5255 result.defaultForeignEnum_ = value;
5256 return this;
5257 }
5258 public Builder ClearDefaultForeignEnum() {
5259 result.hasDefaultForeignEnum = false;
5260 result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
5261 return this;
5262 }
5263
5264 public bool HasDefaultImportEnum {
5265 get { return result.HasDefaultImportEnum; }
5266 }
5267 public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
5268 get { return result.DefaultImportEnum; }
5269 set { SetDefaultImportEnum(value); }
5270 }
5271 public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
5272 result.hasDefaultImportEnum = true;
5273 result.defaultImportEnum_ = value;
5274 return this;
5275 }
5276 public Builder ClearDefaultImportEnum() {
5277 result.hasDefaultImportEnum = false;
5278 result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
5279 return this;
5280 }
5281
5282 public bool HasDefaultStringPiece {
5283 get { return result.HasDefaultStringPiece; }
5284 }
5285 public string DefaultStringPiece {
5286 get { return result.DefaultStringPiece; }
5287 set { SetDefaultStringPiece(value); }
5288 }
5289 public Builder SetDefaultStringPiece(string value) {
5290 pb::ThrowHelper.ThrowIfNull(value, "value");
5291 result.hasDefaultStringPiece = true;
5292 result.defaultStringPiece_ = value;
5293 return this;
5294 }
5295 public Builder ClearDefaultStringPiece() {
5296 result.hasDefaultStringPiece = false;
5297 result.defaultStringPiece_ = "abc";
5298 return this;
5299 }
5300
5301 public bool HasDefaultCord {
5302 get { return result.HasDefaultCord; }
5303 }
5304 public string DefaultCord {
5305 get { return result.DefaultCord; }
5306 set { SetDefaultCord(value); }
5307 }
5308 public Builder SetDefaultCord(string value) {
5309 pb::ThrowHelper.ThrowIfNull(value, "value");
5310 result.hasDefaultCord = true;
5311 result.defaultCord_ = value;
5312 return this;
5313 }
5314 public Builder ClearDefaultCord() {
5315 result.hasDefaultCord = false;
5316 result.defaultCord_ = "123";
5317 return this;
5318 }
5319 }
5320 static TestAllTypes() {
5321 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5322 }
5323 }
5324
csharptest445bdce2011-05-20 15:50:54 -05005325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5326 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5327 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005328 public sealed partial class TestDeprecatedFields : pb::GeneratedMessage<TestDeprecatedFields, TestDeprecatedFields.Builder> {
5329 private static readonly TestDeprecatedFields defaultInstance = new Builder().BuildPartial();
5330 public static TestDeprecatedFields DefaultInstance {
5331 get { return defaultInstance; }
5332 }
5333
5334 public override TestDeprecatedFields DefaultInstanceForType {
5335 get { return defaultInstance; }
5336 }
5337
5338 protected override TestDeprecatedFields ThisMessage {
5339 get { return this; }
5340 }
5341
5342 public static pbd::MessageDescriptor Descriptor {
5343 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor; }
5344 }
5345
5346 protected override pb::FieldAccess.FieldAccessorTable<TestDeprecatedFields, TestDeprecatedFields.Builder> InternalFieldAccessors {
5347 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
5348 }
5349
5350 public const int DeprecatedInt32FieldNumber = 1;
5351 private bool hasDeprecatedInt32;
5352 private int deprecatedInt32_ = 0;
5353 public bool HasDeprecatedInt32 {
5354 get { return hasDeprecatedInt32; }
5355 }
5356 public int DeprecatedInt32 {
5357 get { return deprecatedInt32_; }
5358 }
5359
5360 public override bool IsInitialized {
5361 get {
5362 return true;
5363 }
5364 }
5365
csharptestffafdaa2011-06-03 12:58:14 -05005366 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005367 int size = SerializedSize;
5368 if (HasDeprecatedInt32) {
csharptest90922db2011-06-03 11:57:47 -05005369 output.WriteInt32(1, "deprecated_int32", DeprecatedInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005370 }
5371 UnknownFields.WriteTo(output);
5372 }
5373
5374 private int memoizedSerializedSize = -1;
5375 public override int SerializedSize {
5376 get {
5377 int size = memoizedSerializedSize;
5378 if (size != -1) return size;
5379
5380 size = 0;
5381 if (HasDeprecatedInt32) {
5382 size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedInt32);
5383 }
5384 size += UnknownFields.SerializedSize;
5385 memoizedSerializedSize = size;
5386 return size;
5387 }
5388 }
5389
5390 public static TestDeprecatedFields ParseFrom(pb::ByteString data) {
5391 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5392 }
5393 public static TestDeprecatedFields ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5394 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5395 }
5396 public static TestDeprecatedFields ParseFrom(byte[] data) {
5397 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5398 }
5399 public static TestDeprecatedFields ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5400 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5401 }
5402 public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input) {
5403 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5404 }
5405 public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5406 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5407 }
5408 public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input) {
5409 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5410 }
5411 public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5412 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5413 }
csharptest17699c22011-06-03 21:57:15 -05005414 public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005415 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5416 }
csharptest17699c22011-06-03 21:57:15 -05005417 public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005418 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5419 }
5420 public static Builder CreateBuilder() { return new Builder(); }
5421 public override Builder ToBuilder() { return CreateBuilder(this); }
5422 public override Builder CreateBuilderForType() { return new Builder(); }
5423 public static Builder CreateBuilder(TestDeprecatedFields prototype) {
5424 return (Builder) new Builder().MergeFrom(prototype);
5425 }
5426
csharptest445bdce2011-05-20 15:50:54 -05005427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5428 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5429 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005430 public sealed partial class Builder : pb::GeneratedBuilder<TestDeprecatedFields, Builder> {
5431 protected override Builder ThisBuilder {
5432 get { return this; }
5433 }
5434 public Builder() {}
5435
5436 TestDeprecatedFields result = new TestDeprecatedFields();
5437
5438 protected override TestDeprecatedFields MessageBeingBuilt {
5439 get { return result; }
5440 }
5441
5442 public override Builder Clear() {
5443 result = new TestDeprecatedFields();
5444 return this;
5445 }
5446
5447 public override Builder Clone() {
5448 return new Builder().MergeFrom(result);
5449 }
5450
5451 public override pbd::MessageDescriptor DescriptorForType {
5452 get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Descriptor; }
5453 }
5454
5455 public override TestDeprecatedFields DefaultInstanceForType {
5456 get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance; }
5457 }
5458
5459 public override TestDeprecatedFields BuildPartial() {
5460 if (result == null) {
5461 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5462 }
5463 TestDeprecatedFields returnMe = result;
5464 result = null;
5465 return returnMe;
5466 }
5467
5468 public override Builder MergeFrom(pb::IMessage other) {
5469 if (other is TestDeprecatedFields) {
5470 return MergeFrom((TestDeprecatedFields) other);
5471 } else {
5472 base.MergeFrom(other);
5473 return this;
5474 }
5475 }
5476
5477 public override Builder MergeFrom(TestDeprecatedFields other) {
5478 if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance) return this;
5479 if (other.HasDeprecatedInt32) {
5480 DeprecatedInt32 = other.DeprecatedInt32;
5481 }
5482 this.MergeUnknownFields(other.UnknownFields);
5483 return this;
5484 }
5485
csharptest17699c22011-06-03 21:57:15 -05005486 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005487 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5488 }
5489
csharptest17699c22011-06-03 21:57:15 -05005490 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005491 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05005492 uint tag;
5493 string field_name;
5494 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005495 switch (tag) {
5496 case 0: {
csharptest99284412011-06-03 14:51:06 -05005497 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01005498 }
5499 default: {
5500 if (pb::WireFormat.IsEndGroupTag(tag)) {
5501 if (unknownFields != null) {
5502 this.UnknownFields = unknownFields.Build();
5503 }
5504 return this;
5505 }
5506 if (unknownFields == null) {
5507 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5508 }
csharptestd2af9e92011-06-03 21:35:02 -05005509 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005510 break;
5511 }
5512 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05005513 result.hasDeprecatedInt32 |= input.ReadInt32(ref result.deprecatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005514 break;
5515 }
5516 }
5517 }
csharptest123e5342011-06-03 14:15:21 -05005518
5519 if (unknownFields != null) {
5520 this.UnknownFields = unknownFields.Build();
5521 }
5522 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01005523 }
5524
5525
5526 public bool HasDeprecatedInt32 {
5527 get { return result.HasDeprecatedInt32; }
5528 }
5529 public int DeprecatedInt32 {
5530 get { return result.DeprecatedInt32; }
5531 set { SetDeprecatedInt32(value); }
5532 }
5533 public Builder SetDeprecatedInt32(int value) {
5534 result.hasDeprecatedInt32 = true;
5535 result.deprecatedInt32_ = value;
5536 return this;
5537 }
5538 public Builder ClearDeprecatedInt32() {
5539 result.hasDeprecatedInt32 = false;
5540 result.deprecatedInt32_ = 0;
5541 return this;
5542 }
5543 }
5544 static TestDeprecatedFields() {
5545 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5546 }
5547 }
5548
csharptest445bdce2011-05-20 15:50:54 -05005549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5550 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5551 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005552 public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
5553 private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial();
5554 public static ForeignMessage DefaultInstance {
5555 get { return defaultInstance; }
5556 }
5557
5558 public override ForeignMessage DefaultInstanceForType {
5559 get { return defaultInstance; }
5560 }
5561
5562 protected override ForeignMessage ThisMessage {
5563 get { return this; }
5564 }
5565
5566 public static pbd::MessageDescriptor Descriptor {
5567 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
5568 }
5569
5570 protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
5571 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
5572 }
5573
5574 public const int CFieldNumber = 1;
5575 private bool hasC;
5576 private int c_ = 0;
5577 public bool HasC {
5578 get { return hasC; }
5579 }
5580 public int C {
5581 get { return c_; }
5582 }
5583
5584 public override bool IsInitialized {
5585 get {
5586 return true;
5587 }
5588 }
5589
csharptestffafdaa2011-06-03 12:58:14 -05005590 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005591 int size = SerializedSize;
5592 if (HasC) {
csharptest90922db2011-06-03 11:57:47 -05005593 output.WriteInt32(1, "c", C);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005594 }
5595 UnknownFields.WriteTo(output);
5596 }
5597
5598 private int memoizedSerializedSize = -1;
5599 public override int SerializedSize {
5600 get {
5601 int size = memoizedSerializedSize;
5602 if (size != -1) return size;
5603
5604 size = 0;
5605 if (HasC) {
5606 size += pb::CodedOutputStream.ComputeInt32Size(1, C);
5607 }
5608 size += UnknownFields.SerializedSize;
5609 memoizedSerializedSize = size;
5610 return size;
5611 }
5612 }
5613
5614 public static ForeignMessage ParseFrom(pb::ByteString data) {
5615 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5616 }
5617 public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5618 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5619 }
5620 public static ForeignMessage ParseFrom(byte[] data) {
5621 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5622 }
5623 public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5624 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5625 }
5626 public static ForeignMessage ParseFrom(global::System.IO.Stream input) {
5627 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5628 }
5629 public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5630 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5631 }
5632 public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input) {
5633 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5634 }
5635 public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5636 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5637 }
csharptest17699c22011-06-03 21:57:15 -05005638 public static ForeignMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005639 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5640 }
csharptest17699c22011-06-03 21:57:15 -05005641 public static ForeignMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005642 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5643 }
5644 public static Builder CreateBuilder() { return new Builder(); }
5645 public override Builder ToBuilder() { return CreateBuilder(this); }
5646 public override Builder CreateBuilderForType() { return new Builder(); }
5647 public static Builder CreateBuilder(ForeignMessage prototype) {
5648 return (Builder) new Builder().MergeFrom(prototype);
5649 }
5650
csharptest445bdce2011-05-20 15:50:54 -05005651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5652 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5653 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005654 public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> {
5655 protected override Builder ThisBuilder {
5656 get { return this; }
5657 }
5658 public Builder() {}
5659
5660 ForeignMessage result = new ForeignMessage();
5661
5662 protected override ForeignMessage MessageBeingBuilt {
5663 get { return result; }
5664 }
5665
5666 public override Builder Clear() {
5667 result = new ForeignMessage();
5668 return this;
5669 }
5670
5671 public override Builder Clone() {
5672 return new Builder().MergeFrom(result);
5673 }
5674
5675 public override pbd::MessageDescriptor DescriptorForType {
5676 get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
5677 }
5678
5679 public override ForeignMessage DefaultInstanceForType {
5680 get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
5681 }
5682
5683 public override ForeignMessage BuildPartial() {
5684 if (result == null) {
5685 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5686 }
5687 ForeignMessage returnMe = result;
5688 result = null;
5689 return returnMe;
5690 }
5691
5692 public override Builder MergeFrom(pb::IMessage other) {
5693 if (other is ForeignMessage) {
5694 return MergeFrom((ForeignMessage) other);
5695 } else {
5696 base.MergeFrom(other);
5697 return this;
5698 }
5699 }
5700
5701 public override Builder MergeFrom(ForeignMessage other) {
5702 if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
5703 if (other.HasC) {
5704 C = other.C;
5705 }
5706 this.MergeUnknownFields(other.UnknownFields);
5707 return this;
5708 }
5709
csharptest17699c22011-06-03 21:57:15 -05005710 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005711 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5712 }
5713
csharptest17699c22011-06-03 21:57:15 -05005714 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005715 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05005716 uint tag;
5717 string field_name;
5718 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005719 switch (tag) {
5720 case 0: {
csharptest99284412011-06-03 14:51:06 -05005721 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01005722 }
5723 default: {
5724 if (pb::WireFormat.IsEndGroupTag(tag)) {
5725 if (unknownFields != null) {
5726 this.UnknownFields = unknownFields.Build();
5727 }
5728 return this;
5729 }
5730 if (unknownFields == null) {
5731 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5732 }
csharptestd2af9e92011-06-03 21:35:02 -05005733 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005734 break;
5735 }
5736 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05005737 result.hasC |= input.ReadInt32(ref result.c_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005738 break;
5739 }
5740 }
5741 }
csharptest123e5342011-06-03 14:15:21 -05005742
5743 if (unknownFields != null) {
5744 this.UnknownFields = unknownFields.Build();
5745 }
5746 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01005747 }
5748
5749
5750 public bool HasC {
5751 get { return result.HasC; }
5752 }
5753 public int C {
5754 get { return result.C; }
5755 set { SetC(value); }
5756 }
5757 public Builder SetC(int value) {
5758 result.hasC = true;
5759 result.c_ = value;
5760 return this;
5761 }
5762 public Builder ClearC() {
5763 result.hasC = false;
5764 result.c_ = 0;
5765 return this;
5766 }
5767 }
5768 static ForeignMessage() {
5769 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5770 }
5771 }
5772
csharptest445bdce2011-05-20 15:50:54 -05005773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5774 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5775 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005776 public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
5777 private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial();
5778 public static TestAllExtensions DefaultInstance {
5779 get { return defaultInstance; }
5780 }
5781
5782 public override TestAllExtensions DefaultInstanceForType {
5783 get { return defaultInstance; }
5784 }
5785
5786 protected override TestAllExtensions ThisMessage {
5787 get { return this; }
5788 }
5789
5790 public static pbd::MessageDescriptor Descriptor {
5791 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
5792 }
5793
5794 protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
5795 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
5796 }
5797
5798 public override bool IsInitialized {
5799 get {
5800 if (!ExtensionsAreInitialized) return false;
5801 return true;
5802 }
5803 }
5804
csharptestffafdaa2011-06-03 12:58:14 -05005805 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005806 int size = SerializedSize;
5807 pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
5808 extensionWriter.WriteUntil(536870912, output);
5809 UnknownFields.WriteTo(output);
5810 }
5811
5812 private int memoizedSerializedSize = -1;
5813 public override int SerializedSize {
5814 get {
5815 int size = memoizedSerializedSize;
5816 if (size != -1) return size;
5817
5818 size = 0;
5819 size += ExtensionsSerializedSize;
5820 size += UnknownFields.SerializedSize;
5821 memoizedSerializedSize = size;
5822 return size;
5823 }
5824 }
5825
5826 public static TestAllExtensions ParseFrom(pb::ByteString data) {
5827 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5828 }
5829 public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5830 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5831 }
5832 public static TestAllExtensions ParseFrom(byte[] data) {
5833 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5834 }
5835 public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5836 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5837 }
5838 public static TestAllExtensions ParseFrom(global::System.IO.Stream input) {
5839 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5840 }
5841 public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5842 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5843 }
5844 public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
5845 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5846 }
5847 public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5848 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5849 }
csharptest17699c22011-06-03 21:57:15 -05005850 public static TestAllExtensions ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005851 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5852 }
csharptest17699c22011-06-03 21:57:15 -05005853 public static TestAllExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005854 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5855 }
5856 public static Builder CreateBuilder() { return new Builder(); }
5857 public override Builder ToBuilder() { return CreateBuilder(this); }
5858 public override Builder CreateBuilderForType() { return new Builder(); }
5859 public static Builder CreateBuilder(TestAllExtensions prototype) {
5860 return (Builder) new Builder().MergeFrom(prototype);
5861 }
5862
csharptest445bdce2011-05-20 15:50:54 -05005863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5864 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5865 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005866 public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> {
5867 protected override Builder ThisBuilder {
5868 get { return this; }
5869 }
5870 public Builder() {}
5871
5872 TestAllExtensions result = new TestAllExtensions();
5873
5874 protected override TestAllExtensions MessageBeingBuilt {
5875 get { return result; }
5876 }
5877
5878 public override Builder Clear() {
5879 result = new TestAllExtensions();
5880 return this;
5881 }
5882
5883 public override Builder Clone() {
5884 return new Builder().MergeFrom(result);
5885 }
5886
5887 public override pbd::MessageDescriptor DescriptorForType {
5888 get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
5889 }
5890
5891 public override TestAllExtensions DefaultInstanceForType {
5892 get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
5893 }
5894
5895 public override TestAllExtensions BuildPartial() {
5896 if (result == null) {
5897 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5898 }
5899 TestAllExtensions returnMe = result;
5900 result = null;
5901 return returnMe;
5902 }
5903
5904 public override Builder MergeFrom(pb::IMessage other) {
5905 if (other is TestAllExtensions) {
5906 return MergeFrom((TestAllExtensions) other);
5907 } else {
5908 base.MergeFrom(other);
5909 return this;
5910 }
5911 }
5912
5913 public override Builder MergeFrom(TestAllExtensions other) {
5914 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
5915 this.MergeExtensionFields(other);
5916 this.MergeUnknownFields(other.UnknownFields);
5917 return this;
5918 }
5919
csharptest17699c22011-06-03 21:57:15 -05005920 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005921 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5922 }
5923
csharptest17699c22011-06-03 21:57:15 -05005924 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005925 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05005926 uint tag;
5927 string field_name;
5928 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005929 switch (tag) {
5930 case 0: {
csharptest99284412011-06-03 14:51:06 -05005931 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01005932 }
5933 default: {
5934 if (pb::WireFormat.IsEndGroupTag(tag)) {
5935 if (unknownFields != null) {
5936 this.UnknownFields = unknownFields.Build();
5937 }
5938 return this;
5939 }
5940 if (unknownFields == null) {
5941 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5942 }
csharptestd2af9e92011-06-03 21:35:02 -05005943 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005944 break;
5945 }
5946 }
5947 }
csharptest123e5342011-06-03 14:15:21 -05005948
5949 if (unknownFields != null) {
5950 this.UnknownFields = unknownFields.Build();
5951 }
5952 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01005953 }
5954
5955 }
5956 static TestAllExtensions() {
5957 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5958 }
5959 }
5960
csharptest445bdce2011-05-20 15:50:54 -05005961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5962 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5963 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005964 public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
5965 private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial();
5966 public static OptionalGroup_extension DefaultInstance {
5967 get { return defaultInstance; }
5968 }
5969
5970 public override OptionalGroup_extension DefaultInstanceForType {
5971 get { return defaultInstance; }
5972 }
5973
5974 protected override OptionalGroup_extension ThisMessage {
5975 get { return this; }
5976 }
5977
5978 public static pbd::MessageDescriptor Descriptor {
5979 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
5980 }
5981
5982 protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
5983 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
5984 }
5985
5986 public const int AFieldNumber = 17;
5987 private bool hasA;
5988 private int a_ = 0;
5989 public bool HasA {
5990 get { return hasA; }
5991 }
5992 public int A {
5993 get { return a_; }
5994 }
5995
5996 public override bool IsInitialized {
5997 get {
5998 return true;
5999 }
6000 }
6001
csharptestffafdaa2011-06-03 12:58:14 -05006002 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006003 int size = SerializedSize;
6004 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05006005 output.WriteInt32(17, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006006 }
6007 UnknownFields.WriteTo(output);
6008 }
6009
6010 private int memoizedSerializedSize = -1;
6011 public override int SerializedSize {
6012 get {
6013 int size = memoizedSerializedSize;
6014 if (size != -1) return size;
6015
6016 size = 0;
6017 if (HasA) {
6018 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
6019 }
6020 size += UnknownFields.SerializedSize;
6021 memoizedSerializedSize = size;
6022 return size;
6023 }
6024 }
6025
6026 public static OptionalGroup_extension ParseFrom(pb::ByteString data) {
6027 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6028 }
6029 public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6030 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6031 }
6032 public static OptionalGroup_extension ParseFrom(byte[] data) {
6033 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6034 }
6035 public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6036 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6037 }
6038 public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
6039 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6040 }
6041 public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6042 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6043 }
6044 public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
6045 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6046 }
6047 public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6048 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6049 }
csharptest17699c22011-06-03 21:57:15 -05006050 public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006051 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6052 }
csharptest17699c22011-06-03 21:57:15 -05006053 public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006054 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6055 }
6056 public static Builder CreateBuilder() { return new Builder(); }
6057 public override Builder ToBuilder() { return CreateBuilder(this); }
6058 public override Builder CreateBuilderForType() { return new Builder(); }
6059 public static Builder CreateBuilder(OptionalGroup_extension prototype) {
6060 return (Builder) new Builder().MergeFrom(prototype);
6061 }
6062
csharptest445bdce2011-05-20 15:50:54 -05006063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6064 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6065 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006066 public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> {
6067 protected override Builder ThisBuilder {
6068 get { return this; }
6069 }
6070 public Builder() {}
6071
6072 OptionalGroup_extension result = new OptionalGroup_extension();
6073
6074 protected override OptionalGroup_extension MessageBeingBuilt {
6075 get { return result; }
6076 }
6077
6078 public override Builder Clear() {
6079 result = new OptionalGroup_extension();
6080 return this;
6081 }
6082
6083 public override Builder Clone() {
6084 return new Builder().MergeFrom(result);
6085 }
6086
6087 public override pbd::MessageDescriptor DescriptorForType {
6088 get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
6089 }
6090
6091 public override OptionalGroup_extension DefaultInstanceForType {
6092 get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
6093 }
6094
6095 public override OptionalGroup_extension BuildPartial() {
6096 if (result == null) {
6097 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6098 }
6099 OptionalGroup_extension returnMe = result;
6100 result = null;
6101 return returnMe;
6102 }
6103
6104 public override Builder MergeFrom(pb::IMessage other) {
6105 if (other is OptionalGroup_extension) {
6106 return MergeFrom((OptionalGroup_extension) other);
6107 } else {
6108 base.MergeFrom(other);
6109 return this;
6110 }
6111 }
6112
6113 public override Builder MergeFrom(OptionalGroup_extension other) {
6114 if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
6115 if (other.HasA) {
6116 A = other.A;
6117 }
6118 this.MergeUnknownFields(other.UnknownFields);
6119 return this;
6120 }
6121
csharptest17699c22011-06-03 21:57:15 -05006122 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006123 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6124 }
6125
csharptest17699c22011-06-03 21:57:15 -05006126 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006127 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05006128 uint tag;
6129 string field_name;
6130 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006131 switch (tag) {
6132 case 0: {
csharptest99284412011-06-03 14:51:06 -05006133 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01006134 }
6135 default: {
6136 if (pb::WireFormat.IsEndGroupTag(tag)) {
6137 if (unknownFields != null) {
6138 this.UnknownFields = unknownFields.Build();
6139 }
6140 return this;
6141 }
6142 if (unknownFields == null) {
6143 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6144 }
csharptestd2af9e92011-06-03 21:35:02 -05006145 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006146 break;
6147 }
6148 case 136: {
csharptestd2af9e92011-06-03 21:35:02 -05006149 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006150 break;
6151 }
6152 }
6153 }
csharptest123e5342011-06-03 14:15:21 -05006154
6155 if (unknownFields != null) {
6156 this.UnknownFields = unknownFields.Build();
6157 }
6158 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01006159 }
6160
6161
6162 public bool HasA {
6163 get { return result.HasA; }
6164 }
6165 public int A {
6166 get { return result.A; }
6167 set { SetA(value); }
6168 }
6169 public Builder SetA(int value) {
6170 result.hasA = true;
6171 result.a_ = value;
6172 return this;
6173 }
6174 public Builder ClearA() {
6175 result.hasA = false;
6176 result.a_ = 0;
6177 return this;
6178 }
6179 }
6180 static OptionalGroup_extension() {
6181 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6182 }
6183 }
6184
csharptest445bdce2011-05-20 15:50:54 -05006185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6186 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6187 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006188 public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
6189 private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial();
6190 public static RepeatedGroup_extension DefaultInstance {
6191 get { return defaultInstance; }
6192 }
6193
6194 public override RepeatedGroup_extension DefaultInstanceForType {
6195 get { return defaultInstance; }
6196 }
6197
6198 protected override RepeatedGroup_extension ThisMessage {
6199 get { return this; }
6200 }
6201
6202 public static pbd::MessageDescriptor Descriptor {
6203 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
6204 }
6205
6206 protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
6207 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
6208 }
6209
6210 public const int AFieldNumber = 47;
6211 private bool hasA;
6212 private int a_ = 0;
6213 public bool HasA {
6214 get { return hasA; }
6215 }
6216 public int A {
6217 get { return a_; }
6218 }
6219
6220 public override bool IsInitialized {
6221 get {
6222 return true;
6223 }
6224 }
6225
csharptestffafdaa2011-06-03 12:58:14 -05006226 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006227 int size = SerializedSize;
6228 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05006229 output.WriteInt32(47, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006230 }
6231 UnknownFields.WriteTo(output);
6232 }
6233
6234 private int memoizedSerializedSize = -1;
6235 public override int SerializedSize {
6236 get {
6237 int size = memoizedSerializedSize;
6238 if (size != -1) return size;
6239
6240 size = 0;
6241 if (HasA) {
6242 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
6243 }
6244 size += UnknownFields.SerializedSize;
6245 memoizedSerializedSize = size;
6246 return size;
6247 }
6248 }
6249
6250 public static RepeatedGroup_extension ParseFrom(pb::ByteString data) {
6251 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6252 }
6253 public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6254 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6255 }
6256 public static RepeatedGroup_extension ParseFrom(byte[] data) {
6257 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6258 }
6259 public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6260 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6261 }
6262 public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
6263 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6264 }
6265 public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6266 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6267 }
6268 public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
6269 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6270 }
6271 public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6272 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6273 }
csharptest17699c22011-06-03 21:57:15 -05006274 public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006275 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6276 }
csharptest17699c22011-06-03 21:57:15 -05006277 public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006278 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6279 }
6280 public static Builder CreateBuilder() { return new Builder(); }
6281 public override Builder ToBuilder() { return CreateBuilder(this); }
6282 public override Builder CreateBuilderForType() { return new Builder(); }
6283 public static Builder CreateBuilder(RepeatedGroup_extension prototype) {
6284 return (Builder) new Builder().MergeFrom(prototype);
6285 }
6286
csharptest445bdce2011-05-20 15:50:54 -05006287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6288 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6289 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006290 public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> {
6291 protected override Builder ThisBuilder {
6292 get { return this; }
6293 }
6294 public Builder() {}
6295
6296 RepeatedGroup_extension result = new RepeatedGroup_extension();
6297
6298 protected override RepeatedGroup_extension MessageBeingBuilt {
6299 get { return result; }
6300 }
6301
6302 public override Builder Clear() {
6303 result = new RepeatedGroup_extension();
6304 return this;
6305 }
6306
6307 public override Builder Clone() {
6308 return new Builder().MergeFrom(result);
6309 }
6310
6311 public override pbd::MessageDescriptor DescriptorForType {
6312 get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
6313 }
6314
6315 public override RepeatedGroup_extension DefaultInstanceForType {
6316 get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
6317 }
6318
6319 public override RepeatedGroup_extension BuildPartial() {
6320 if (result == null) {
6321 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6322 }
6323 RepeatedGroup_extension returnMe = result;
6324 result = null;
6325 return returnMe;
6326 }
6327
6328 public override Builder MergeFrom(pb::IMessage other) {
6329 if (other is RepeatedGroup_extension) {
6330 return MergeFrom((RepeatedGroup_extension) other);
6331 } else {
6332 base.MergeFrom(other);
6333 return this;
6334 }
6335 }
6336
6337 public override Builder MergeFrom(RepeatedGroup_extension other) {
6338 if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
6339 if (other.HasA) {
6340 A = other.A;
6341 }
6342 this.MergeUnknownFields(other.UnknownFields);
6343 return this;
6344 }
6345
csharptest17699c22011-06-03 21:57:15 -05006346 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006347 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6348 }
6349
csharptest17699c22011-06-03 21:57:15 -05006350 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006351 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05006352 uint tag;
6353 string field_name;
6354 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006355 switch (tag) {
6356 case 0: {
csharptest99284412011-06-03 14:51:06 -05006357 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01006358 }
6359 default: {
6360 if (pb::WireFormat.IsEndGroupTag(tag)) {
6361 if (unknownFields != null) {
6362 this.UnknownFields = unknownFields.Build();
6363 }
6364 return this;
6365 }
6366 if (unknownFields == null) {
6367 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6368 }
csharptestd2af9e92011-06-03 21:35:02 -05006369 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006370 break;
6371 }
6372 case 376: {
csharptestd2af9e92011-06-03 21:35:02 -05006373 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006374 break;
6375 }
6376 }
6377 }
csharptest123e5342011-06-03 14:15:21 -05006378
6379 if (unknownFields != null) {
6380 this.UnknownFields = unknownFields.Build();
6381 }
6382 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01006383 }
6384
6385
6386 public bool HasA {
6387 get { return result.HasA; }
6388 }
6389 public int A {
6390 get { return result.A; }
6391 set { SetA(value); }
6392 }
6393 public Builder SetA(int value) {
6394 result.hasA = true;
6395 result.a_ = value;
6396 return this;
6397 }
6398 public Builder ClearA() {
6399 result.hasA = false;
6400 result.a_ = 0;
6401 return this;
6402 }
6403 }
6404 static RepeatedGroup_extension() {
6405 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6406 }
6407 }
6408
csharptest445bdce2011-05-20 15:50:54 -05006409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6410 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6411 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006412 public sealed partial class TestNestedExtension : pb::GeneratedMessage<TestNestedExtension, TestNestedExtension.Builder> {
6413 private static readonly TestNestedExtension defaultInstance = new Builder().BuildPartial();
6414 public static TestNestedExtension DefaultInstance {
6415 get { return defaultInstance; }
6416 }
6417
6418 public override TestNestedExtension DefaultInstanceForType {
6419 get { return defaultInstance; }
6420 }
6421
6422 protected override TestNestedExtension ThisMessage {
6423 get { return this; }
6424 }
6425
6426 public static pbd::MessageDescriptor Descriptor {
6427 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedExtension__Descriptor; }
6428 }
6429
6430 protected override pb::FieldAccess.FieldAccessorTable<TestNestedExtension, TestNestedExtension.Builder> InternalFieldAccessors {
6431 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable; }
6432 }
6433
6434 public const int TestFieldNumber = 1002;
6435 public static pb::GeneratedExtensionBase<string> Test;
6436 public override bool IsInitialized {
6437 get {
6438 return true;
6439 }
6440 }
6441
csharptestffafdaa2011-06-03 12:58:14 -05006442 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006443 int size = SerializedSize;
6444 UnknownFields.WriteTo(output);
6445 }
6446
6447 private int memoizedSerializedSize = -1;
6448 public override int SerializedSize {
6449 get {
6450 int size = memoizedSerializedSize;
6451 if (size != -1) return size;
6452
6453 size = 0;
6454 size += UnknownFields.SerializedSize;
6455 memoizedSerializedSize = size;
6456 return size;
6457 }
6458 }
6459
6460 public static TestNestedExtension ParseFrom(pb::ByteString data) {
6461 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6462 }
6463 public static TestNestedExtension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6464 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6465 }
6466 public static TestNestedExtension ParseFrom(byte[] data) {
6467 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6468 }
6469 public static TestNestedExtension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6470 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6471 }
6472 public static TestNestedExtension ParseFrom(global::System.IO.Stream input) {
6473 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6474 }
6475 public static TestNestedExtension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6476 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6477 }
6478 public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input) {
6479 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6480 }
6481 public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6482 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6483 }
csharptest17699c22011-06-03 21:57:15 -05006484 public static TestNestedExtension ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006485 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6486 }
csharptest17699c22011-06-03 21:57:15 -05006487 public static TestNestedExtension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006488 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6489 }
6490 public static Builder CreateBuilder() { return new Builder(); }
6491 public override Builder ToBuilder() { return CreateBuilder(this); }
6492 public override Builder CreateBuilderForType() { return new Builder(); }
6493 public static Builder CreateBuilder(TestNestedExtension prototype) {
6494 return (Builder) new Builder().MergeFrom(prototype);
6495 }
6496
csharptest445bdce2011-05-20 15:50:54 -05006497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6498 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6499 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006500 public sealed partial class Builder : pb::GeneratedBuilder<TestNestedExtension, Builder> {
6501 protected override Builder ThisBuilder {
6502 get { return this; }
6503 }
6504 public Builder() {}
6505
6506 TestNestedExtension result = new TestNestedExtension();
6507
6508 protected override TestNestedExtension MessageBeingBuilt {
6509 get { return result; }
6510 }
6511
6512 public override Builder Clear() {
6513 result = new TestNestedExtension();
6514 return this;
6515 }
6516
6517 public override Builder Clone() {
6518 return new Builder().MergeFrom(result);
6519 }
6520
6521 public override pbd::MessageDescriptor DescriptorForType {
6522 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor; }
6523 }
6524
6525 public override TestNestedExtension DefaultInstanceForType {
6526 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance; }
6527 }
6528
6529 public override TestNestedExtension BuildPartial() {
6530 if (result == null) {
6531 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6532 }
6533 TestNestedExtension returnMe = result;
6534 result = null;
6535 return returnMe;
6536 }
6537
6538 public override Builder MergeFrom(pb::IMessage other) {
6539 if (other is TestNestedExtension) {
6540 return MergeFrom((TestNestedExtension) other);
6541 } else {
6542 base.MergeFrom(other);
6543 return this;
6544 }
6545 }
6546
6547 public override Builder MergeFrom(TestNestedExtension other) {
6548 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance) return this;
6549 this.MergeUnknownFields(other.UnknownFields);
6550 return this;
6551 }
6552
csharptest17699c22011-06-03 21:57:15 -05006553 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006554 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6555 }
6556
csharptest17699c22011-06-03 21:57:15 -05006557 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006558 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05006559 uint tag;
6560 string field_name;
6561 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006562 switch (tag) {
6563 case 0: {
csharptest99284412011-06-03 14:51:06 -05006564 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01006565 }
6566 default: {
6567 if (pb::WireFormat.IsEndGroupTag(tag)) {
6568 if (unknownFields != null) {
6569 this.UnknownFields = unknownFields.Build();
6570 }
6571 return this;
6572 }
6573 if (unknownFields == null) {
6574 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6575 }
csharptestd2af9e92011-06-03 21:35:02 -05006576 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006577 break;
6578 }
6579 }
6580 }
csharptest123e5342011-06-03 14:15:21 -05006581
6582 if (unknownFields != null) {
6583 this.UnknownFields = unknownFields.Build();
6584 }
6585 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01006586 }
6587
6588 }
6589 static TestNestedExtension() {
6590 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6591 }
6592 }
6593
csharptest445bdce2011-05-20 15:50:54 -05006594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6595 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6596 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006597 public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
6598 private static readonly TestRequired defaultInstance = new Builder().BuildPartial();
6599 public static TestRequired DefaultInstance {
6600 get { return defaultInstance; }
6601 }
6602
6603 public override TestRequired DefaultInstanceForType {
6604 get { return defaultInstance; }
6605 }
6606
6607 protected override TestRequired ThisMessage {
6608 get { return this; }
6609 }
6610
6611 public static pbd::MessageDescriptor Descriptor {
6612 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
6613 }
6614
6615 protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
6616 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
6617 }
6618
6619 public const int SingleFieldNumber = 1000;
6620 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single;
6621 public const int MultiFieldNumber = 1001;
6622 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi;
6623 public const int AFieldNumber = 1;
6624 private bool hasA;
6625 private int a_ = 0;
6626 public bool HasA {
6627 get { return hasA; }
6628 }
6629 public int A {
6630 get { return a_; }
6631 }
6632
6633 public const int Dummy2FieldNumber = 2;
6634 private bool hasDummy2;
6635 private int dummy2_ = 0;
6636 public bool HasDummy2 {
6637 get { return hasDummy2; }
6638 }
6639 public int Dummy2 {
6640 get { return dummy2_; }
6641 }
6642
6643 public const int BFieldNumber = 3;
6644 private bool hasB;
6645 private int b_ = 0;
6646 public bool HasB {
6647 get { return hasB; }
6648 }
6649 public int B {
6650 get { return b_; }
6651 }
6652
6653 public const int Dummy4FieldNumber = 4;
6654 private bool hasDummy4;
6655 private int dummy4_ = 0;
6656 public bool HasDummy4 {
6657 get { return hasDummy4; }
6658 }
6659 public int Dummy4 {
6660 get { return dummy4_; }
6661 }
6662
6663 public const int Dummy5FieldNumber = 5;
6664 private bool hasDummy5;
6665 private int dummy5_ = 0;
6666 public bool HasDummy5 {
6667 get { return hasDummy5; }
6668 }
6669 public int Dummy5 {
6670 get { return dummy5_; }
6671 }
6672
6673 public const int Dummy6FieldNumber = 6;
6674 private bool hasDummy6;
6675 private int dummy6_ = 0;
6676 public bool HasDummy6 {
6677 get { return hasDummy6; }
6678 }
6679 public int Dummy6 {
6680 get { return dummy6_; }
6681 }
6682
6683 public const int Dummy7FieldNumber = 7;
6684 private bool hasDummy7;
6685 private int dummy7_ = 0;
6686 public bool HasDummy7 {
6687 get { return hasDummy7; }
6688 }
6689 public int Dummy7 {
6690 get { return dummy7_; }
6691 }
6692
6693 public const int Dummy8FieldNumber = 8;
6694 private bool hasDummy8;
6695 private int dummy8_ = 0;
6696 public bool HasDummy8 {
6697 get { return hasDummy8; }
6698 }
6699 public int Dummy8 {
6700 get { return dummy8_; }
6701 }
6702
6703 public const int Dummy9FieldNumber = 9;
6704 private bool hasDummy9;
6705 private int dummy9_ = 0;
6706 public bool HasDummy9 {
6707 get { return hasDummy9; }
6708 }
6709 public int Dummy9 {
6710 get { return dummy9_; }
6711 }
6712
6713 public const int Dummy10FieldNumber = 10;
6714 private bool hasDummy10;
6715 private int dummy10_ = 0;
6716 public bool HasDummy10 {
6717 get { return hasDummy10; }
6718 }
6719 public int Dummy10 {
6720 get { return dummy10_; }
6721 }
6722
6723 public const int Dummy11FieldNumber = 11;
6724 private bool hasDummy11;
6725 private int dummy11_ = 0;
6726 public bool HasDummy11 {
6727 get { return hasDummy11; }
6728 }
6729 public int Dummy11 {
6730 get { return dummy11_; }
6731 }
6732
6733 public const int Dummy12FieldNumber = 12;
6734 private bool hasDummy12;
6735 private int dummy12_ = 0;
6736 public bool HasDummy12 {
6737 get { return hasDummy12; }
6738 }
6739 public int Dummy12 {
6740 get { return dummy12_; }
6741 }
6742
6743 public const int Dummy13FieldNumber = 13;
6744 private bool hasDummy13;
6745 private int dummy13_ = 0;
6746 public bool HasDummy13 {
6747 get { return hasDummy13; }
6748 }
6749 public int Dummy13 {
6750 get { return dummy13_; }
6751 }
6752
6753 public const int Dummy14FieldNumber = 14;
6754 private bool hasDummy14;
6755 private int dummy14_ = 0;
6756 public bool HasDummy14 {
6757 get { return hasDummy14; }
6758 }
6759 public int Dummy14 {
6760 get { return dummy14_; }
6761 }
6762
6763 public const int Dummy15FieldNumber = 15;
6764 private bool hasDummy15;
6765 private int dummy15_ = 0;
6766 public bool HasDummy15 {
6767 get { return hasDummy15; }
6768 }
6769 public int Dummy15 {
6770 get { return dummy15_; }
6771 }
6772
6773 public const int Dummy16FieldNumber = 16;
6774 private bool hasDummy16;
6775 private int dummy16_ = 0;
6776 public bool HasDummy16 {
6777 get { return hasDummy16; }
6778 }
6779 public int Dummy16 {
6780 get { return dummy16_; }
6781 }
6782
6783 public const int Dummy17FieldNumber = 17;
6784 private bool hasDummy17;
6785 private int dummy17_ = 0;
6786 public bool HasDummy17 {
6787 get { return hasDummy17; }
6788 }
6789 public int Dummy17 {
6790 get { return dummy17_; }
6791 }
6792
6793 public const int Dummy18FieldNumber = 18;
6794 private bool hasDummy18;
6795 private int dummy18_ = 0;
6796 public bool HasDummy18 {
6797 get { return hasDummy18; }
6798 }
6799 public int Dummy18 {
6800 get { return dummy18_; }
6801 }
6802
6803 public const int Dummy19FieldNumber = 19;
6804 private bool hasDummy19;
6805 private int dummy19_ = 0;
6806 public bool HasDummy19 {
6807 get { return hasDummy19; }
6808 }
6809 public int Dummy19 {
6810 get { return dummy19_; }
6811 }
6812
6813 public const int Dummy20FieldNumber = 20;
6814 private bool hasDummy20;
6815 private int dummy20_ = 0;
6816 public bool HasDummy20 {
6817 get { return hasDummy20; }
6818 }
6819 public int Dummy20 {
6820 get { return dummy20_; }
6821 }
6822
6823 public const int Dummy21FieldNumber = 21;
6824 private bool hasDummy21;
6825 private int dummy21_ = 0;
6826 public bool HasDummy21 {
6827 get { return hasDummy21; }
6828 }
6829 public int Dummy21 {
6830 get { return dummy21_; }
6831 }
6832
6833 public const int Dummy22FieldNumber = 22;
6834 private bool hasDummy22;
6835 private int dummy22_ = 0;
6836 public bool HasDummy22 {
6837 get { return hasDummy22; }
6838 }
6839 public int Dummy22 {
6840 get { return dummy22_; }
6841 }
6842
6843 public const int Dummy23FieldNumber = 23;
6844 private bool hasDummy23;
6845 private int dummy23_ = 0;
6846 public bool HasDummy23 {
6847 get { return hasDummy23; }
6848 }
6849 public int Dummy23 {
6850 get { return dummy23_; }
6851 }
6852
6853 public const int Dummy24FieldNumber = 24;
6854 private bool hasDummy24;
6855 private int dummy24_ = 0;
6856 public bool HasDummy24 {
6857 get { return hasDummy24; }
6858 }
6859 public int Dummy24 {
6860 get { return dummy24_; }
6861 }
6862
6863 public const int Dummy25FieldNumber = 25;
6864 private bool hasDummy25;
6865 private int dummy25_ = 0;
6866 public bool HasDummy25 {
6867 get { return hasDummy25; }
6868 }
6869 public int Dummy25 {
6870 get { return dummy25_; }
6871 }
6872
6873 public const int Dummy26FieldNumber = 26;
6874 private bool hasDummy26;
6875 private int dummy26_ = 0;
6876 public bool HasDummy26 {
6877 get { return hasDummy26; }
6878 }
6879 public int Dummy26 {
6880 get { return dummy26_; }
6881 }
6882
6883 public const int Dummy27FieldNumber = 27;
6884 private bool hasDummy27;
6885 private int dummy27_ = 0;
6886 public bool HasDummy27 {
6887 get { return hasDummy27; }
6888 }
6889 public int Dummy27 {
6890 get { return dummy27_; }
6891 }
6892
6893 public const int Dummy28FieldNumber = 28;
6894 private bool hasDummy28;
6895 private int dummy28_ = 0;
6896 public bool HasDummy28 {
6897 get { return hasDummy28; }
6898 }
6899 public int Dummy28 {
6900 get { return dummy28_; }
6901 }
6902
6903 public const int Dummy29FieldNumber = 29;
6904 private bool hasDummy29;
6905 private int dummy29_ = 0;
6906 public bool HasDummy29 {
6907 get { return hasDummy29; }
6908 }
6909 public int Dummy29 {
6910 get { return dummy29_; }
6911 }
6912
6913 public const int Dummy30FieldNumber = 30;
6914 private bool hasDummy30;
6915 private int dummy30_ = 0;
6916 public bool HasDummy30 {
6917 get { return hasDummy30; }
6918 }
6919 public int Dummy30 {
6920 get { return dummy30_; }
6921 }
6922
6923 public const int Dummy31FieldNumber = 31;
6924 private bool hasDummy31;
6925 private int dummy31_ = 0;
6926 public bool HasDummy31 {
6927 get { return hasDummy31; }
6928 }
6929 public int Dummy31 {
6930 get { return dummy31_; }
6931 }
6932
6933 public const int Dummy32FieldNumber = 32;
6934 private bool hasDummy32;
6935 private int dummy32_ = 0;
6936 public bool HasDummy32 {
6937 get { return hasDummy32; }
6938 }
6939 public int Dummy32 {
6940 get { return dummy32_; }
6941 }
6942
6943 public const int CFieldNumber = 33;
6944 private bool hasC;
6945 private int c_ = 0;
6946 public bool HasC {
6947 get { return hasC; }
6948 }
6949 public int C {
6950 get { return c_; }
6951 }
6952
6953 public override bool IsInitialized {
6954 get {
6955 if (!hasA) return false;
6956 if (!hasB) return false;
6957 if (!hasC) return false;
6958 return true;
6959 }
6960 }
6961
csharptestffafdaa2011-06-03 12:58:14 -05006962 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006963 int size = SerializedSize;
6964 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05006965 output.WriteInt32(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006966 }
6967 if (HasDummy2) {
csharptest90922db2011-06-03 11:57:47 -05006968 output.WriteInt32(2, "dummy2", Dummy2);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006969 }
6970 if (HasB) {
csharptest90922db2011-06-03 11:57:47 -05006971 output.WriteInt32(3, "b", B);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006972 }
6973 if (HasDummy4) {
csharptest90922db2011-06-03 11:57:47 -05006974 output.WriteInt32(4, "dummy4", Dummy4);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006975 }
6976 if (HasDummy5) {
csharptest90922db2011-06-03 11:57:47 -05006977 output.WriteInt32(5, "dummy5", Dummy5);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006978 }
6979 if (HasDummy6) {
csharptest90922db2011-06-03 11:57:47 -05006980 output.WriteInt32(6, "dummy6", Dummy6);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006981 }
6982 if (HasDummy7) {
csharptest90922db2011-06-03 11:57:47 -05006983 output.WriteInt32(7, "dummy7", Dummy7);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006984 }
6985 if (HasDummy8) {
csharptest90922db2011-06-03 11:57:47 -05006986 output.WriteInt32(8, "dummy8", Dummy8);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006987 }
6988 if (HasDummy9) {
csharptest90922db2011-06-03 11:57:47 -05006989 output.WriteInt32(9, "dummy9", Dummy9);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006990 }
6991 if (HasDummy10) {
csharptest90922db2011-06-03 11:57:47 -05006992 output.WriteInt32(10, "dummy10", Dummy10);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006993 }
6994 if (HasDummy11) {
csharptest90922db2011-06-03 11:57:47 -05006995 output.WriteInt32(11, "dummy11", Dummy11);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006996 }
6997 if (HasDummy12) {
csharptest90922db2011-06-03 11:57:47 -05006998 output.WriteInt32(12, "dummy12", Dummy12);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006999 }
7000 if (HasDummy13) {
csharptest90922db2011-06-03 11:57:47 -05007001 output.WriteInt32(13, "dummy13", Dummy13);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007002 }
7003 if (HasDummy14) {
csharptest90922db2011-06-03 11:57:47 -05007004 output.WriteInt32(14, "dummy14", Dummy14);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007005 }
7006 if (HasDummy15) {
csharptest90922db2011-06-03 11:57:47 -05007007 output.WriteInt32(15, "dummy15", Dummy15);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007008 }
7009 if (HasDummy16) {
csharptest90922db2011-06-03 11:57:47 -05007010 output.WriteInt32(16, "dummy16", Dummy16);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007011 }
7012 if (HasDummy17) {
csharptest90922db2011-06-03 11:57:47 -05007013 output.WriteInt32(17, "dummy17", Dummy17);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007014 }
7015 if (HasDummy18) {
csharptest90922db2011-06-03 11:57:47 -05007016 output.WriteInt32(18, "dummy18", Dummy18);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007017 }
7018 if (HasDummy19) {
csharptest90922db2011-06-03 11:57:47 -05007019 output.WriteInt32(19, "dummy19", Dummy19);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007020 }
7021 if (HasDummy20) {
csharptest90922db2011-06-03 11:57:47 -05007022 output.WriteInt32(20, "dummy20", Dummy20);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007023 }
7024 if (HasDummy21) {
csharptest90922db2011-06-03 11:57:47 -05007025 output.WriteInt32(21, "dummy21", Dummy21);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007026 }
7027 if (HasDummy22) {
csharptest90922db2011-06-03 11:57:47 -05007028 output.WriteInt32(22, "dummy22", Dummy22);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007029 }
7030 if (HasDummy23) {
csharptest90922db2011-06-03 11:57:47 -05007031 output.WriteInt32(23, "dummy23", Dummy23);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007032 }
7033 if (HasDummy24) {
csharptest90922db2011-06-03 11:57:47 -05007034 output.WriteInt32(24, "dummy24", Dummy24);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007035 }
7036 if (HasDummy25) {
csharptest90922db2011-06-03 11:57:47 -05007037 output.WriteInt32(25, "dummy25", Dummy25);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007038 }
7039 if (HasDummy26) {
csharptest90922db2011-06-03 11:57:47 -05007040 output.WriteInt32(26, "dummy26", Dummy26);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007041 }
7042 if (HasDummy27) {
csharptest90922db2011-06-03 11:57:47 -05007043 output.WriteInt32(27, "dummy27", Dummy27);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007044 }
7045 if (HasDummy28) {
csharptest90922db2011-06-03 11:57:47 -05007046 output.WriteInt32(28, "dummy28", Dummy28);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007047 }
7048 if (HasDummy29) {
csharptest90922db2011-06-03 11:57:47 -05007049 output.WriteInt32(29, "dummy29", Dummy29);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007050 }
7051 if (HasDummy30) {
csharptest90922db2011-06-03 11:57:47 -05007052 output.WriteInt32(30, "dummy30", Dummy30);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007053 }
7054 if (HasDummy31) {
csharptest90922db2011-06-03 11:57:47 -05007055 output.WriteInt32(31, "dummy31", Dummy31);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007056 }
7057 if (HasDummy32) {
csharptest90922db2011-06-03 11:57:47 -05007058 output.WriteInt32(32, "dummy32", Dummy32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007059 }
7060 if (HasC) {
csharptest90922db2011-06-03 11:57:47 -05007061 output.WriteInt32(33, "c", C);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007062 }
7063 UnknownFields.WriteTo(output);
7064 }
7065
7066 private int memoizedSerializedSize = -1;
7067 public override int SerializedSize {
7068 get {
7069 int size = memoizedSerializedSize;
7070 if (size != -1) return size;
7071
7072 size = 0;
7073 if (HasA) {
7074 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
7075 }
7076 if (HasDummy2) {
7077 size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
7078 }
7079 if (HasB) {
7080 size += pb::CodedOutputStream.ComputeInt32Size(3, B);
7081 }
7082 if (HasDummy4) {
7083 size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
7084 }
7085 if (HasDummy5) {
7086 size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
7087 }
7088 if (HasDummy6) {
7089 size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
7090 }
7091 if (HasDummy7) {
7092 size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
7093 }
7094 if (HasDummy8) {
7095 size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
7096 }
7097 if (HasDummy9) {
7098 size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
7099 }
7100 if (HasDummy10) {
7101 size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
7102 }
7103 if (HasDummy11) {
7104 size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
7105 }
7106 if (HasDummy12) {
7107 size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
7108 }
7109 if (HasDummy13) {
7110 size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
7111 }
7112 if (HasDummy14) {
7113 size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
7114 }
7115 if (HasDummy15) {
7116 size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
7117 }
7118 if (HasDummy16) {
7119 size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
7120 }
7121 if (HasDummy17) {
7122 size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
7123 }
7124 if (HasDummy18) {
7125 size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
7126 }
7127 if (HasDummy19) {
7128 size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
7129 }
7130 if (HasDummy20) {
7131 size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
7132 }
7133 if (HasDummy21) {
7134 size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
7135 }
7136 if (HasDummy22) {
7137 size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
7138 }
7139 if (HasDummy23) {
7140 size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
7141 }
7142 if (HasDummy24) {
7143 size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
7144 }
7145 if (HasDummy25) {
7146 size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
7147 }
7148 if (HasDummy26) {
7149 size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
7150 }
7151 if (HasDummy27) {
7152 size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
7153 }
7154 if (HasDummy28) {
7155 size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
7156 }
7157 if (HasDummy29) {
7158 size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
7159 }
7160 if (HasDummy30) {
7161 size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
7162 }
7163 if (HasDummy31) {
7164 size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
7165 }
7166 if (HasDummy32) {
7167 size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
7168 }
7169 if (HasC) {
7170 size += pb::CodedOutputStream.ComputeInt32Size(33, C);
7171 }
7172 size += UnknownFields.SerializedSize;
7173 memoizedSerializedSize = size;
7174 return size;
7175 }
7176 }
7177
7178 public static TestRequired ParseFrom(pb::ByteString data) {
7179 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7180 }
7181 public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
7182 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7183 }
7184 public static TestRequired ParseFrom(byte[] data) {
7185 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7186 }
7187 public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
7188 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7189 }
7190 public static TestRequired ParseFrom(global::System.IO.Stream input) {
7191 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7192 }
7193 public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7194 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7195 }
7196 public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input) {
7197 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
7198 }
7199 public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7200 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
7201 }
csharptest17699c22011-06-03 21:57:15 -05007202 public static TestRequired ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01007203 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7204 }
csharptest17699c22011-06-03 21:57:15 -05007205 public static TestRequired ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01007206 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7207 }
7208 public static Builder CreateBuilder() { return new Builder(); }
7209 public override Builder ToBuilder() { return CreateBuilder(this); }
7210 public override Builder CreateBuilderForType() { return new Builder(); }
7211 public static Builder CreateBuilder(TestRequired prototype) {
7212 return (Builder) new Builder().MergeFrom(prototype);
7213 }
7214
csharptest445bdce2011-05-20 15:50:54 -05007215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7216 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
7217 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01007218 public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> {
7219 protected override Builder ThisBuilder {
7220 get { return this; }
7221 }
7222 public Builder() {}
7223
7224 TestRequired result = new TestRequired();
7225
7226 protected override TestRequired MessageBeingBuilt {
7227 get { return result; }
7228 }
7229
7230 public override Builder Clear() {
7231 result = new TestRequired();
7232 return this;
7233 }
7234
7235 public override Builder Clone() {
7236 return new Builder().MergeFrom(result);
7237 }
7238
7239 public override pbd::MessageDescriptor DescriptorForType {
7240 get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
7241 }
7242
7243 public override TestRequired DefaultInstanceForType {
7244 get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
7245 }
7246
7247 public override TestRequired BuildPartial() {
7248 if (result == null) {
7249 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
7250 }
7251 TestRequired returnMe = result;
7252 result = null;
7253 return returnMe;
7254 }
7255
7256 public override Builder MergeFrom(pb::IMessage other) {
7257 if (other is TestRequired) {
7258 return MergeFrom((TestRequired) other);
7259 } else {
7260 base.MergeFrom(other);
7261 return this;
7262 }
7263 }
7264
7265 public override Builder MergeFrom(TestRequired other) {
7266 if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
7267 if (other.HasA) {
7268 A = other.A;
7269 }
7270 if (other.HasDummy2) {
7271 Dummy2 = other.Dummy2;
7272 }
7273 if (other.HasB) {
7274 B = other.B;
7275 }
7276 if (other.HasDummy4) {
7277 Dummy4 = other.Dummy4;
7278 }
7279 if (other.HasDummy5) {
7280 Dummy5 = other.Dummy5;
7281 }
7282 if (other.HasDummy6) {
7283 Dummy6 = other.Dummy6;
7284 }
7285 if (other.HasDummy7) {
7286 Dummy7 = other.Dummy7;
7287 }
7288 if (other.HasDummy8) {
7289 Dummy8 = other.Dummy8;
7290 }
7291 if (other.HasDummy9) {
7292 Dummy9 = other.Dummy9;
7293 }
7294 if (other.HasDummy10) {
7295 Dummy10 = other.Dummy10;
7296 }
7297 if (other.HasDummy11) {
7298 Dummy11 = other.Dummy11;
7299 }
7300 if (other.HasDummy12) {
7301 Dummy12 = other.Dummy12;
7302 }
7303 if (other.HasDummy13) {
7304 Dummy13 = other.Dummy13;
7305 }
7306 if (other.HasDummy14) {
7307 Dummy14 = other.Dummy14;
7308 }
7309 if (other.HasDummy15) {
7310 Dummy15 = other.Dummy15;
7311 }
7312 if (other.HasDummy16) {
7313 Dummy16 = other.Dummy16;
7314 }
7315 if (other.HasDummy17) {
7316 Dummy17 = other.Dummy17;
7317 }
7318 if (other.HasDummy18) {
7319 Dummy18 = other.Dummy18;
7320 }
7321 if (other.HasDummy19) {
7322 Dummy19 = other.Dummy19;
7323 }
7324 if (other.HasDummy20) {
7325 Dummy20 = other.Dummy20;
7326 }
7327 if (other.HasDummy21) {
7328 Dummy21 = other.Dummy21;
7329 }
7330 if (other.HasDummy22) {
7331 Dummy22 = other.Dummy22;
7332 }
7333 if (other.HasDummy23) {
7334 Dummy23 = other.Dummy23;
7335 }
7336 if (other.HasDummy24) {
7337 Dummy24 = other.Dummy24;
7338 }
7339 if (other.HasDummy25) {
7340 Dummy25 = other.Dummy25;
7341 }
7342 if (other.HasDummy26) {
7343 Dummy26 = other.Dummy26;
7344 }
7345 if (other.HasDummy27) {
7346 Dummy27 = other.Dummy27;
7347 }
7348 if (other.HasDummy28) {
7349 Dummy28 = other.Dummy28;
7350 }
7351 if (other.HasDummy29) {
7352 Dummy29 = other.Dummy29;
7353 }
7354 if (other.HasDummy30) {
7355 Dummy30 = other.Dummy30;
7356 }
7357 if (other.HasDummy31) {
7358 Dummy31 = other.Dummy31;
7359 }
7360 if (other.HasDummy32) {
7361 Dummy32 = other.Dummy32;
7362 }
7363 if (other.HasC) {
7364 C = other.C;
7365 }
7366 this.MergeUnknownFields(other.UnknownFields);
7367 return this;
7368 }
7369
csharptest17699c22011-06-03 21:57:15 -05007370 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01007371 return MergeFrom(input, pb::ExtensionRegistry.Empty);
7372 }
7373
csharptest17699c22011-06-03 21:57:15 -05007374 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01007375 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05007376 uint tag;
7377 string field_name;
7378 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01007379 switch (tag) {
7380 case 0: {
csharptest99284412011-06-03 14:51:06 -05007381 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01007382 }
7383 default: {
7384 if (pb::WireFormat.IsEndGroupTag(tag)) {
7385 if (unknownFields != null) {
7386 this.UnknownFields = unknownFields.Build();
7387 }
7388 return this;
7389 }
7390 if (unknownFields == null) {
7391 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
7392 }
csharptestd2af9e92011-06-03 21:35:02 -05007393 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007394 break;
7395 }
7396 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05007397 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007398 break;
7399 }
7400 case 16: {
csharptestd2af9e92011-06-03 21:35:02 -05007401 result.hasDummy2 |= input.ReadInt32(ref result.dummy2_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007402 break;
7403 }
7404 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -05007405 result.hasB |= input.ReadInt32(ref result.b_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007406 break;
7407 }
7408 case 32: {
csharptestd2af9e92011-06-03 21:35:02 -05007409 result.hasDummy4 |= input.ReadInt32(ref result.dummy4_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007410 break;
7411 }
7412 case 40: {
csharptestd2af9e92011-06-03 21:35:02 -05007413 result.hasDummy5 |= input.ReadInt32(ref result.dummy5_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007414 break;
7415 }
7416 case 48: {
csharptestd2af9e92011-06-03 21:35:02 -05007417 result.hasDummy6 |= input.ReadInt32(ref result.dummy6_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007418 break;
7419 }
7420 case 56: {
csharptestd2af9e92011-06-03 21:35:02 -05007421 result.hasDummy7 |= input.ReadInt32(ref result.dummy7_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007422 break;
7423 }
7424 case 64: {
csharptestd2af9e92011-06-03 21:35:02 -05007425 result.hasDummy8 |= input.ReadInt32(ref result.dummy8_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007426 break;
7427 }
7428 case 72: {
csharptestd2af9e92011-06-03 21:35:02 -05007429 result.hasDummy9 |= input.ReadInt32(ref result.dummy9_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007430 break;
7431 }
7432 case 80: {
csharptestd2af9e92011-06-03 21:35:02 -05007433 result.hasDummy10 |= input.ReadInt32(ref result.dummy10_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007434 break;
7435 }
7436 case 88: {
csharptestd2af9e92011-06-03 21:35:02 -05007437 result.hasDummy11 |= input.ReadInt32(ref result.dummy11_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007438 break;
7439 }
7440 case 96: {
csharptestd2af9e92011-06-03 21:35:02 -05007441 result.hasDummy12 |= input.ReadInt32(ref result.dummy12_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007442 break;
7443 }
7444 case 104: {
csharptestd2af9e92011-06-03 21:35:02 -05007445 result.hasDummy13 |= input.ReadInt32(ref result.dummy13_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007446 break;
7447 }
7448 case 112: {
csharptestd2af9e92011-06-03 21:35:02 -05007449 result.hasDummy14 |= input.ReadInt32(ref result.dummy14_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007450 break;
7451 }
7452 case 120: {
csharptestd2af9e92011-06-03 21:35:02 -05007453 result.hasDummy15 |= input.ReadInt32(ref result.dummy15_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007454 break;
7455 }
7456 case 128: {
csharptestd2af9e92011-06-03 21:35:02 -05007457 result.hasDummy16 |= input.ReadInt32(ref result.dummy16_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007458 break;
7459 }
7460 case 136: {
csharptestd2af9e92011-06-03 21:35:02 -05007461 result.hasDummy17 |= input.ReadInt32(ref result.dummy17_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007462 break;
7463 }
7464 case 144: {
csharptestd2af9e92011-06-03 21:35:02 -05007465 result.hasDummy18 |= input.ReadInt32(ref result.dummy18_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007466 break;
7467 }
7468 case 152: {
csharptestd2af9e92011-06-03 21:35:02 -05007469 result.hasDummy19 |= input.ReadInt32(ref result.dummy19_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007470 break;
7471 }
7472 case 160: {
csharptestd2af9e92011-06-03 21:35:02 -05007473 result.hasDummy20 |= input.ReadInt32(ref result.dummy20_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007474 break;
7475 }
7476 case 168: {
csharptestd2af9e92011-06-03 21:35:02 -05007477 result.hasDummy21 |= input.ReadInt32(ref result.dummy21_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007478 break;
7479 }
7480 case 176: {
csharptestd2af9e92011-06-03 21:35:02 -05007481 result.hasDummy22 |= input.ReadInt32(ref result.dummy22_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007482 break;
7483 }
7484 case 184: {
csharptestd2af9e92011-06-03 21:35:02 -05007485 result.hasDummy23 |= input.ReadInt32(ref result.dummy23_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007486 break;
7487 }
7488 case 192: {
csharptestd2af9e92011-06-03 21:35:02 -05007489 result.hasDummy24 |= input.ReadInt32(ref result.dummy24_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007490 break;
7491 }
7492 case 200: {
csharptestd2af9e92011-06-03 21:35:02 -05007493 result.hasDummy25 |= input.ReadInt32(ref result.dummy25_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007494 break;
7495 }
7496 case 208: {
csharptestd2af9e92011-06-03 21:35:02 -05007497 result.hasDummy26 |= input.ReadInt32(ref result.dummy26_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007498 break;
7499 }
7500 case 216: {
csharptestd2af9e92011-06-03 21:35:02 -05007501 result.hasDummy27 |= input.ReadInt32(ref result.dummy27_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007502 break;
7503 }
7504 case 224: {
csharptestd2af9e92011-06-03 21:35:02 -05007505 result.hasDummy28 |= input.ReadInt32(ref result.dummy28_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007506 break;
7507 }
7508 case 232: {
csharptestd2af9e92011-06-03 21:35:02 -05007509 result.hasDummy29 |= input.ReadInt32(ref result.dummy29_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007510 break;
7511 }
7512 case 240: {
csharptestd2af9e92011-06-03 21:35:02 -05007513 result.hasDummy30 |= input.ReadInt32(ref result.dummy30_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007514 break;
7515 }
7516 case 248: {
csharptestd2af9e92011-06-03 21:35:02 -05007517 result.hasDummy31 |= input.ReadInt32(ref result.dummy31_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007518 break;
7519 }
7520 case 256: {
csharptestd2af9e92011-06-03 21:35:02 -05007521 result.hasDummy32 |= input.ReadInt32(ref result.dummy32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007522 break;
7523 }
7524 case 264: {
csharptestd2af9e92011-06-03 21:35:02 -05007525 result.hasC |= input.ReadInt32(ref result.c_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007526 break;
7527 }
7528 }
7529 }
csharptest123e5342011-06-03 14:15:21 -05007530
7531 if (unknownFields != null) {
7532 this.UnknownFields = unknownFields.Build();
7533 }
7534 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01007535 }
7536
7537
7538 public bool HasA {
7539 get { return result.HasA; }
7540 }
7541 public int A {
7542 get { return result.A; }
7543 set { SetA(value); }
7544 }
7545 public Builder SetA(int value) {
7546 result.hasA = true;
7547 result.a_ = value;
7548 return this;
7549 }
7550 public Builder ClearA() {
7551 result.hasA = false;
7552 result.a_ = 0;
7553 return this;
7554 }
7555
7556 public bool HasDummy2 {
7557 get { return result.HasDummy2; }
7558 }
7559 public int Dummy2 {
7560 get { return result.Dummy2; }
7561 set { SetDummy2(value); }
7562 }
7563 public Builder SetDummy2(int value) {
7564 result.hasDummy2 = true;
7565 result.dummy2_ = value;
7566 return this;
7567 }
7568 public Builder ClearDummy2() {
7569 result.hasDummy2 = false;
7570 result.dummy2_ = 0;
7571 return this;
7572 }
7573
7574 public bool HasB {
7575 get { return result.HasB; }
7576 }
7577 public int B {
7578 get { return result.B; }
7579 set { SetB(value); }
7580 }
7581 public Builder SetB(int value) {
7582 result.hasB = true;
7583 result.b_ = value;
7584 return this;
7585 }
7586 public Builder ClearB() {
7587 result.hasB = false;
7588 result.b_ = 0;
7589 return this;
7590 }
7591
7592 public bool HasDummy4 {
7593 get { return result.HasDummy4; }
7594 }
7595 public int Dummy4 {
7596 get { return result.Dummy4; }
7597 set { SetDummy4(value); }
7598 }
7599 public Builder SetDummy4(int value) {
7600 result.hasDummy4 = true;
7601 result.dummy4_ = value;
7602 return this;
7603 }
7604 public Builder ClearDummy4() {
7605 result.hasDummy4 = false;
7606 result.dummy4_ = 0;
7607 return this;
7608 }
7609
7610 public bool HasDummy5 {
7611 get { return result.HasDummy5; }
7612 }
7613 public int Dummy5 {
7614 get { return result.Dummy5; }
7615 set { SetDummy5(value); }
7616 }
7617 public Builder SetDummy5(int value) {
7618 result.hasDummy5 = true;
7619 result.dummy5_ = value;
7620 return this;
7621 }
7622 public Builder ClearDummy5() {
7623 result.hasDummy5 = false;
7624 result.dummy5_ = 0;
7625 return this;
7626 }
7627
7628 public bool HasDummy6 {
7629 get { return result.HasDummy6; }
7630 }
7631 public int Dummy6 {
7632 get { return result.Dummy6; }
7633 set { SetDummy6(value); }
7634 }
7635 public Builder SetDummy6(int value) {
7636 result.hasDummy6 = true;
7637 result.dummy6_ = value;
7638 return this;
7639 }
7640 public Builder ClearDummy6() {
7641 result.hasDummy6 = false;
7642 result.dummy6_ = 0;
7643 return this;
7644 }
7645
7646 public bool HasDummy7 {
7647 get { return result.HasDummy7; }
7648 }
7649 public int Dummy7 {
7650 get { return result.Dummy7; }
7651 set { SetDummy7(value); }
7652 }
7653 public Builder SetDummy7(int value) {
7654 result.hasDummy7 = true;
7655 result.dummy7_ = value;
7656 return this;
7657 }
7658 public Builder ClearDummy7() {
7659 result.hasDummy7 = false;
7660 result.dummy7_ = 0;
7661 return this;
7662 }
7663
7664 public bool HasDummy8 {
7665 get { return result.HasDummy8; }
7666 }
7667 public int Dummy8 {
7668 get { return result.Dummy8; }
7669 set { SetDummy8(value); }
7670 }
7671 public Builder SetDummy8(int value) {
7672 result.hasDummy8 = true;
7673 result.dummy8_ = value;
7674 return this;
7675 }
7676 public Builder ClearDummy8() {
7677 result.hasDummy8 = false;
7678 result.dummy8_ = 0;
7679 return this;
7680 }
7681
7682 public bool HasDummy9 {
7683 get { return result.HasDummy9; }
7684 }
7685 public int Dummy9 {
7686 get { return result.Dummy9; }
7687 set { SetDummy9(value); }
7688 }
7689 public Builder SetDummy9(int value) {
7690 result.hasDummy9 = true;
7691 result.dummy9_ = value;
7692 return this;
7693 }
7694 public Builder ClearDummy9() {
7695 result.hasDummy9 = false;
7696 result.dummy9_ = 0;
7697 return this;
7698 }
7699
7700 public bool HasDummy10 {
7701 get { return result.HasDummy10; }
7702 }
7703 public int Dummy10 {
7704 get { return result.Dummy10; }
7705 set { SetDummy10(value); }
7706 }
7707 public Builder SetDummy10(int value) {
7708 result.hasDummy10 = true;
7709 result.dummy10_ = value;
7710 return this;
7711 }
7712 public Builder ClearDummy10() {
7713 result.hasDummy10 = false;
7714 result.dummy10_ = 0;
7715 return this;
7716 }
7717
7718 public bool HasDummy11 {
7719 get { return result.HasDummy11; }
7720 }
7721 public int Dummy11 {
7722 get { return result.Dummy11; }
7723 set { SetDummy11(value); }
7724 }
7725 public Builder SetDummy11(int value) {
7726 result.hasDummy11 = true;
7727 result.dummy11_ = value;
7728 return this;
7729 }
7730 public Builder ClearDummy11() {
7731 result.hasDummy11 = false;
7732 result.dummy11_ = 0;
7733 return this;
7734 }
7735
7736 public bool HasDummy12 {
7737 get { return result.HasDummy12; }
7738 }
7739 public int Dummy12 {
7740 get { return result.Dummy12; }
7741 set { SetDummy12(value); }
7742 }
7743 public Builder SetDummy12(int value) {
7744 result.hasDummy12 = true;
7745 result.dummy12_ = value;
7746 return this;
7747 }
7748 public Builder ClearDummy12() {
7749 result.hasDummy12 = false;
7750 result.dummy12_ = 0;
7751 return this;
7752 }
7753
7754 public bool HasDummy13 {
7755 get { return result.HasDummy13; }
7756 }
7757 public int Dummy13 {
7758 get { return result.Dummy13; }
7759 set { SetDummy13(value); }
7760 }
7761 public Builder SetDummy13(int value) {
7762 result.hasDummy13 = true;
7763 result.dummy13_ = value;
7764 return this;
7765 }
7766 public Builder ClearDummy13() {
7767 result.hasDummy13 = false;
7768 result.dummy13_ = 0;
7769 return this;
7770 }
7771
7772 public bool HasDummy14 {
7773 get { return result.HasDummy14; }
7774 }
7775 public int Dummy14 {
7776 get { return result.Dummy14; }
7777 set { SetDummy14(value); }
7778 }
7779 public Builder SetDummy14(int value) {
7780 result.hasDummy14 = true;
7781 result.dummy14_ = value;
7782 return this;
7783 }
7784 public Builder ClearDummy14() {
7785 result.hasDummy14 = false;
7786 result.dummy14_ = 0;
7787 return this;
7788 }
7789
7790 public bool HasDummy15 {
7791 get { return result.HasDummy15; }
7792 }
7793 public int Dummy15 {
7794 get { return result.Dummy15; }
7795 set { SetDummy15(value); }
7796 }
7797 public Builder SetDummy15(int value) {
7798 result.hasDummy15 = true;
7799 result.dummy15_ = value;
7800 return this;
7801 }
7802 public Builder ClearDummy15() {
7803 result.hasDummy15 = false;
7804 result.dummy15_ = 0;
7805 return this;
7806 }
7807
7808 public bool HasDummy16 {
7809 get { return result.HasDummy16; }
7810 }
7811 public int Dummy16 {
7812 get { return result.Dummy16; }
7813 set { SetDummy16(value); }
7814 }
7815 public Builder SetDummy16(int value) {
7816 result.hasDummy16 = true;
7817 result.dummy16_ = value;
7818 return this;
7819 }
7820 public Builder ClearDummy16() {
7821 result.hasDummy16 = false;
7822 result.dummy16_ = 0;
7823 return this;
7824 }
7825
7826 public bool HasDummy17 {
7827 get { return result.HasDummy17; }
7828 }
7829 public int Dummy17 {
7830 get { return result.Dummy17; }
7831 set { SetDummy17(value); }
7832 }
7833 public Builder SetDummy17(int value) {
7834 result.hasDummy17 = true;
7835 result.dummy17_ = value;
7836 return this;
7837 }
7838 public Builder ClearDummy17() {
7839 result.hasDummy17 = false;
7840 result.dummy17_ = 0;
7841 return this;
7842 }
7843
7844 public bool HasDummy18 {
7845 get { return result.HasDummy18; }
7846 }
7847 public int Dummy18 {
7848 get { return result.Dummy18; }
7849 set { SetDummy18(value); }
7850 }
7851 public Builder SetDummy18(int value) {
7852 result.hasDummy18 = true;
7853 result.dummy18_ = value;
7854 return this;
7855 }
7856 public Builder ClearDummy18() {
7857 result.hasDummy18 = false;
7858 result.dummy18_ = 0;
7859 return this;
7860 }
7861
7862 public bool HasDummy19 {
7863 get { return result.HasDummy19; }
7864 }
7865 public int Dummy19 {
7866 get { return result.Dummy19; }
7867 set { SetDummy19(value); }
7868 }
7869 public Builder SetDummy19(int value) {
7870 result.hasDummy19 = true;
7871 result.dummy19_ = value;
7872 return this;
7873 }
7874 public Builder ClearDummy19() {
7875 result.hasDummy19 = false;
7876 result.dummy19_ = 0;
7877 return this;
7878 }
7879
7880 public bool HasDummy20 {
7881 get { return result.HasDummy20; }
7882 }
7883 public int Dummy20 {
7884 get { return result.Dummy20; }
7885 set { SetDummy20(value); }
7886 }
7887 public Builder SetDummy20(int value) {
7888 result.hasDummy20 = true;
7889 result.dummy20_ = value;
7890 return this;
7891 }
7892 public Builder ClearDummy20() {
7893 result.hasDummy20 = false;
7894 result.dummy20_ = 0;
7895 return this;
7896 }
7897
7898 public bool HasDummy21 {
7899 get { return result.HasDummy21; }
7900 }
7901 public int Dummy21 {
7902 get { return result.Dummy21; }
7903 set { SetDummy21(value); }
7904 }
7905 public Builder SetDummy21(int value) {
7906 result.hasDummy21 = true;
7907 result.dummy21_ = value;
7908 return this;
7909 }
7910 public Builder ClearDummy21() {
7911 result.hasDummy21 = false;
7912 result.dummy21_ = 0;
7913 return this;
7914 }
7915
7916 public bool HasDummy22 {
7917 get { return result.HasDummy22; }
7918 }
7919 public int Dummy22 {
7920 get { return result.Dummy22; }
7921 set { SetDummy22(value); }
7922 }
7923 public Builder SetDummy22(int value) {
7924 result.hasDummy22 = true;
7925 result.dummy22_ = value;
7926 return this;
7927 }
7928 public Builder ClearDummy22() {
7929 result.hasDummy22 = false;
7930 result.dummy22_ = 0;
7931 return this;
7932 }
7933
7934 public bool HasDummy23 {
7935 get { return result.HasDummy23; }
7936 }
7937 public int Dummy23 {
7938 get { return result.Dummy23; }
7939 set { SetDummy23(value); }
7940 }
7941 public Builder SetDummy23(int value) {
7942 result.hasDummy23 = true;
7943 result.dummy23_ = value;
7944 return this;
7945 }
7946 public Builder ClearDummy23() {
7947 result.hasDummy23 = false;
7948 result.dummy23_ = 0;
7949 return this;
7950 }
7951
7952 public bool HasDummy24 {
7953 get { return result.HasDummy24; }
7954 }
7955 public int Dummy24 {
7956 get { return result.Dummy24; }
7957 set { SetDummy24(value); }
7958 }
7959 public Builder SetDummy24(int value) {
7960 result.hasDummy24 = true;
7961 result.dummy24_ = value;
7962 return this;
7963 }
7964 public Builder ClearDummy24() {
7965 result.hasDummy24 = false;
7966 result.dummy24_ = 0;
7967 return this;
7968 }
7969
7970 public bool HasDummy25 {
7971 get { return result.HasDummy25; }
7972 }
7973 public int Dummy25 {
7974 get { return result.Dummy25; }
7975 set { SetDummy25(value); }
7976 }
7977 public Builder SetDummy25(int value) {
7978 result.hasDummy25 = true;
7979 result.dummy25_ = value;
7980 return this;
7981 }
7982 public Builder ClearDummy25() {
7983 result.hasDummy25 = false;
7984 result.dummy25_ = 0;
7985 return this;
7986 }
7987
7988 public bool HasDummy26 {
7989 get { return result.HasDummy26; }
7990 }
7991 public int Dummy26 {
7992 get { return result.Dummy26; }
7993 set { SetDummy26(value); }
7994 }
7995 public Builder SetDummy26(int value) {
7996 result.hasDummy26 = true;
7997 result.dummy26_ = value;
7998 return this;
7999 }
8000 public Builder ClearDummy26() {
8001 result.hasDummy26 = false;
8002 result.dummy26_ = 0;
8003 return this;
8004 }
8005
8006 public bool HasDummy27 {
8007 get { return result.HasDummy27; }
8008 }
8009 public int Dummy27 {
8010 get { return result.Dummy27; }
8011 set { SetDummy27(value); }
8012 }
8013 public Builder SetDummy27(int value) {
8014 result.hasDummy27 = true;
8015 result.dummy27_ = value;
8016 return this;
8017 }
8018 public Builder ClearDummy27() {
8019 result.hasDummy27 = false;
8020 result.dummy27_ = 0;
8021 return this;
8022 }
8023
8024 public bool HasDummy28 {
8025 get { return result.HasDummy28; }
8026 }
8027 public int Dummy28 {
8028 get { return result.Dummy28; }
8029 set { SetDummy28(value); }
8030 }
8031 public Builder SetDummy28(int value) {
8032 result.hasDummy28 = true;
8033 result.dummy28_ = value;
8034 return this;
8035 }
8036 public Builder ClearDummy28() {
8037 result.hasDummy28 = false;
8038 result.dummy28_ = 0;
8039 return this;
8040 }
8041
8042 public bool HasDummy29 {
8043 get { return result.HasDummy29; }
8044 }
8045 public int Dummy29 {
8046 get { return result.Dummy29; }
8047 set { SetDummy29(value); }
8048 }
8049 public Builder SetDummy29(int value) {
8050 result.hasDummy29 = true;
8051 result.dummy29_ = value;
8052 return this;
8053 }
8054 public Builder ClearDummy29() {
8055 result.hasDummy29 = false;
8056 result.dummy29_ = 0;
8057 return this;
8058 }
8059
8060 public bool HasDummy30 {
8061 get { return result.HasDummy30; }
8062 }
8063 public int Dummy30 {
8064 get { return result.Dummy30; }
8065 set { SetDummy30(value); }
8066 }
8067 public Builder SetDummy30(int value) {
8068 result.hasDummy30 = true;
8069 result.dummy30_ = value;
8070 return this;
8071 }
8072 public Builder ClearDummy30() {
8073 result.hasDummy30 = false;
8074 result.dummy30_ = 0;
8075 return this;
8076 }
8077
8078 public bool HasDummy31 {
8079 get { return result.HasDummy31; }
8080 }
8081 public int Dummy31 {
8082 get { return result.Dummy31; }
8083 set { SetDummy31(value); }
8084 }
8085 public Builder SetDummy31(int value) {
8086 result.hasDummy31 = true;
8087 result.dummy31_ = value;
8088 return this;
8089 }
8090 public Builder ClearDummy31() {
8091 result.hasDummy31 = false;
8092 result.dummy31_ = 0;
8093 return this;
8094 }
8095
8096 public bool HasDummy32 {
8097 get { return result.HasDummy32; }
8098 }
8099 public int Dummy32 {
8100 get { return result.Dummy32; }
8101 set { SetDummy32(value); }
8102 }
8103 public Builder SetDummy32(int value) {
8104 result.hasDummy32 = true;
8105 result.dummy32_ = value;
8106 return this;
8107 }
8108 public Builder ClearDummy32() {
8109 result.hasDummy32 = false;
8110 result.dummy32_ = 0;
8111 return this;
8112 }
8113
8114 public bool HasC {
8115 get { return result.HasC; }
8116 }
8117 public int C {
8118 get { return result.C; }
8119 set { SetC(value); }
8120 }
8121 public Builder SetC(int value) {
8122 result.hasC = true;
8123 result.c_ = value;
8124 return this;
8125 }
8126 public Builder ClearC() {
8127 result.hasC = false;
8128 result.c_ = 0;
8129 return this;
8130 }
8131 }
8132 static TestRequired() {
8133 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8134 }
8135 }
8136
csharptest445bdce2011-05-20 15:50:54 -05008137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8138 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8139 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008140 public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
8141 private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial();
8142 public static TestRequiredForeign DefaultInstance {
8143 get { return defaultInstance; }
8144 }
8145
8146 public override TestRequiredForeign DefaultInstanceForType {
8147 get { return defaultInstance; }
8148 }
8149
8150 protected override TestRequiredForeign ThisMessage {
8151 get { return this; }
8152 }
8153
8154 public static pbd::MessageDescriptor Descriptor {
8155 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
8156 }
8157
8158 protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
8159 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
8160 }
8161
8162 public const int OptionalMessageFieldNumber = 1;
8163 private bool hasOptionalMessage;
8164 private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
8165 public bool HasOptionalMessage {
8166 get { return hasOptionalMessage; }
8167 }
8168 public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
8169 get { return optionalMessage_; }
8170 }
8171
8172 public const int RepeatedMessageFieldNumber = 2;
8173 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
8174 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
8175 get { return repeatedMessage_; }
8176 }
8177 public int RepeatedMessageCount {
8178 get { return repeatedMessage_.Count; }
8179 }
8180 public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
8181 return repeatedMessage_[index];
8182 }
8183
8184 public const int DummyFieldNumber = 3;
8185 private bool hasDummy;
8186 private int dummy_ = 0;
8187 public bool HasDummy {
8188 get { return hasDummy; }
8189 }
8190 public int Dummy {
8191 get { return dummy_; }
8192 }
8193
8194 public override bool IsInitialized {
8195 get {
8196 if (HasOptionalMessage) {
8197 if (!OptionalMessage.IsInitialized) return false;
8198 }
8199 foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
8200 if (!element.IsInitialized) return false;
8201 }
8202 return true;
8203 }
8204 }
8205
csharptestffafdaa2011-06-03 12:58:14 -05008206 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008207 int size = SerializedSize;
8208 if (HasOptionalMessage) {
csharptest90922db2011-06-03 11:57:47 -05008209 output.WriteMessage(1, "optional_message", OptionalMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008210 }
csharptest90922db2011-06-03 11:57:47 -05008211 if (repeatedMessage_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -05008212 output.WriteArray(pbd::FieldType.Message, 2, "repeated_message", repeatedMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008213 }
8214 if (HasDummy) {
csharptest90922db2011-06-03 11:57:47 -05008215 output.WriteInt32(3, "dummy", Dummy);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008216 }
8217 UnknownFields.WriteTo(output);
8218 }
8219
8220 private int memoizedSerializedSize = -1;
8221 public override int SerializedSize {
8222 get {
8223 int size = memoizedSerializedSize;
8224 if (size != -1) return size;
8225
8226 size = 0;
8227 if (HasOptionalMessage) {
8228 size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
8229 }
8230 foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
8231 size += pb::CodedOutputStream.ComputeMessageSize(2, element);
8232 }
8233 if (HasDummy) {
8234 size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
8235 }
8236 size += UnknownFields.SerializedSize;
8237 memoizedSerializedSize = size;
8238 return size;
8239 }
8240 }
8241
8242 public static TestRequiredForeign ParseFrom(pb::ByteString data) {
8243 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8244 }
8245 public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8246 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8247 }
8248 public static TestRequiredForeign ParseFrom(byte[] data) {
8249 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8250 }
8251 public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8252 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8253 }
8254 public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
8255 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8256 }
8257 public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8258 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8259 }
8260 public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input) {
8261 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8262 }
8263 public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8264 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8265 }
csharptest17699c22011-06-03 21:57:15 -05008266 public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008267 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8268 }
csharptest17699c22011-06-03 21:57:15 -05008269 public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008270 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8271 }
8272 public static Builder CreateBuilder() { return new Builder(); }
8273 public override Builder ToBuilder() { return CreateBuilder(this); }
8274 public override Builder CreateBuilderForType() { return new Builder(); }
8275 public static Builder CreateBuilder(TestRequiredForeign prototype) {
8276 return (Builder) new Builder().MergeFrom(prototype);
8277 }
8278
csharptest445bdce2011-05-20 15:50:54 -05008279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8280 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8281 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008282 public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> {
8283 protected override Builder ThisBuilder {
8284 get { return this; }
8285 }
8286 public Builder() {}
8287
8288 TestRequiredForeign result = new TestRequiredForeign();
8289
8290 protected override TestRequiredForeign MessageBeingBuilt {
8291 get { return result; }
8292 }
8293
8294 public override Builder Clear() {
8295 result = new TestRequiredForeign();
8296 return this;
8297 }
8298
8299 public override Builder Clone() {
8300 return new Builder().MergeFrom(result);
8301 }
8302
8303 public override pbd::MessageDescriptor DescriptorForType {
8304 get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
8305 }
8306
8307 public override TestRequiredForeign DefaultInstanceForType {
8308 get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
8309 }
8310
8311 public override TestRequiredForeign BuildPartial() {
8312 if (result == null) {
8313 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8314 }
8315 result.repeatedMessage_.MakeReadOnly();
8316 TestRequiredForeign returnMe = result;
8317 result = null;
8318 return returnMe;
8319 }
8320
8321 public override Builder MergeFrom(pb::IMessage other) {
8322 if (other is TestRequiredForeign) {
8323 return MergeFrom((TestRequiredForeign) other);
8324 } else {
8325 base.MergeFrom(other);
8326 return this;
8327 }
8328 }
8329
8330 public override Builder MergeFrom(TestRequiredForeign other) {
8331 if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
8332 if (other.HasOptionalMessage) {
8333 MergeOptionalMessage(other.OptionalMessage);
8334 }
8335 if (other.repeatedMessage_.Count != 0) {
8336 base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
8337 }
8338 if (other.HasDummy) {
8339 Dummy = other.Dummy;
8340 }
8341 this.MergeUnknownFields(other.UnknownFields);
8342 return this;
8343 }
8344
csharptest17699c22011-06-03 21:57:15 -05008345 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008346 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8347 }
8348
csharptest17699c22011-06-03 21:57:15 -05008349 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008350 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05008351 uint tag;
8352 string field_name;
8353 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008354 switch (tag) {
8355 case 0: {
csharptest99284412011-06-03 14:51:06 -05008356 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008357 }
8358 default: {
8359 if (pb::WireFormat.IsEndGroupTag(tag)) {
8360 if (unknownFields != null) {
8361 this.UnknownFields = unknownFields.Build();
8362 }
8363 return this;
8364 }
8365 if (unknownFields == null) {
8366 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8367 }
csharptestd2af9e92011-06-03 21:35:02 -05008368 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008369 break;
8370 }
8371 case 10: {
8372 global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
8373 if (HasOptionalMessage) {
8374 subBuilder.MergeFrom(OptionalMessage);
8375 }
8376 input.ReadMessage(subBuilder, extensionRegistry);
8377 OptionalMessage = subBuilder.BuildPartial();
8378 break;
8379 }
8380 case 18: {
csharptestd2af9e92011-06-03 21:35:02 -05008381 input.ReadMessageArray(tag, field_name, result.repeatedMessage_, global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008382 break;
8383 }
8384 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -05008385 result.hasDummy |= input.ReadInt32(ref result.dummy_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008386 break;
8387 }
8388 }
8389 }
csharptest123e5342011-06-03 14:15:21 -05008390
8391 if (unknownFields != null) {
8392 this.UnknownFields = unknownFields.Build();
8393 }
8394 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008395 }
8396
8397
8398 public bool HasOptionalMessage {
8399 get { return result.HasOptionalMessage; }
8400 }
8401 public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
8402 get { return result.OptionalMessage; }
8403 set { SetOptionalMessage(value); }
8404 }
8405 public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8406 pb::ThrowHelper.ThrowIfNull(value, "value");
8407 result.hasOptionalMessage = true;
8408 result.optionalMessage_ = value;
8409 return this;
8410 }
8411 public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8412 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8413 result.hasOptionalMessage = true;
8414 result.optionalMessage_ = builderForValue.Build();
8415 return this;
8416 }
8417 public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8418 pb::ThrowHelper.ThrowIfNull(value, "value");
8419 if (result.HasOptionalMessage &&
8420 result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
8421 result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
8422 } else {
8423 result.optionalMessage_ = value;
8424 }
8425 result.hasOptionalMessage = true;
8426 return this;
8427 }
8428 public Builder ClearOptionalMessage() {
8429 result.hasOptionalMessage = false;
8430 result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
8431 return this;
8432 }
8433
8434 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
8435 get { return result.repeatedMessage_; }
8436 }
8437 public int RepeatedMessageCount {
8438 get { return result.RepeatedMessageCount; }
8439 }
8440 public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
8441 return result.GetRepeatedMessage(index);
8442 }
8443 public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8444 pb::ThrowHelper.ThrowIfNull(value, "value");
8445 result.repeatedMessage_[index] = value;
8446 return this;
8447 }
8448 public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8449 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8450 result.repeatedMessage_[index] = builderForValue.Build();
8451 return this;
8452 }
8453 public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8454 pb::ThrowHelper.ThrowIfNull(value, "value");
8455 result.repeatedMessage_.Add(value);
8456 return this;
8457 }
8458 public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8459 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8460 result.repeatedMessage_.Add(builderForValue.Build());
8461 return this;
8462 }
8463 public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
8464 base.AddRange(values, result.repeatedMessage_);
8465 return this;
8466 }
8467 public Builder ClearRepeatedMessage() {
8468 result.repeatedMessage_.Clear();
8469 return this;
8470 }
8471
8472 public bool HasDummy {
8473 get { return result.HasDummy; }
8474 }
8475 public int Dummy {
8476 get { return result.Dummy; }
8477 set { SetDummy(value); }
8478 }
8479 public Builder SetDummy(int value) {
8480 result.hasDummy = true;
8481 result.dummy_ = value;
8482 return this;
8483 }
8484 public Builder ClearDummy() {
8485 result.hasDummy = false;
8486 result.dummy_ = 0;
8487 return this;
8488 }
8489 }
8490 static TestRequiredForeign() {
8491 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8492 }
8493 }
8494
csharptest445bdce2011-05-20 15:50:54 -05008495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8496 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8497 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008498 public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
8499 private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial();
8500 public static TestForeignNested DefaultInstance {
8501 get { return defaultInstance; }
8502 }
8503
8504 public override TestForeignNested DefaultInstanceForType {
8505 get { return defaultInstance; }
8506 }
8507
8508 protected override TestForeignNested ThisMessage {
8509 get { return this; }
8510 }
8511
8512 public static pbd::MessageDescriptor Descriptor {
8513 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
8514 }
8515
8516 protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
8517 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
8518 }
8519
8520 public const int ForeignNestedFieldNumber = 1;
8521 private bool hasForeignNested;
8522 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
8523 public bool HasForeignNested {
8524 get { return hasForeignNested; }
8525 }
8526 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
8527 get { return foreignNested_; }
8528 }
8529
8530 public override bool IsInitialized {
8531 get {
8532 return true;
8533 }
8534 }
8535
csharptestffafdaa2011-06-03 12:58:14 -05008536 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008537 int size = SerializedSize;
8538 if (HasForeignNested) {
csharptest90922db2011-06-03 11:57:47 -05008539 output.WriteMessage(1, "foreign_nested", ForeignNested);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008540 }
8541 UnknownFields.WriteTo(output);
8542 }
8543
8544 private int memoizedSerializedSize = -1;
8545 public override int SerializedSize {
8546 get {
8547 int size = memoizedSerializedSize;
8548 if (size != -1) return size;
8549
8550 size = 0;
8551 if (HasForeignNested) {
8552 size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
8553 }
8554 size += UnknownFields.SerializedSize;
8555 memoizedSerializedSize = size;
8556 return size;
8557 }
8558 }
8559
8560 public static TestForeignNested ParseFrom(pb::ByteString data) {
8561 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8562 }
8563 public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8564 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8565 }
8566 public static TestForeignNested ParseFrom(byte[] data) {
8567 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8568 }
8569 public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8570 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8571 }
8572 public static TestForeignNested ParseFrom(global::System.IO.Stream input) {
8573 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8574 }
8575 public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8576 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8577 }
8578 public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input) {
8579 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8580 }
8581 public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8582 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8583 }
csharptest17699c22011-06-03 21:57:15 -05008584 public static TestForeignNested ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008585 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8586 }
csharptest17699c22011-06-03 21:57:15 -05008587 public static TestForeignNested ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008588 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8589 }
8590 public static Builder CreateBuilder() { return new Builder(); }
8591 public override Builder ToBuilder() { return CreateBuilder(this); }
8592 public override Builder CreateBuilderForType() { return new Builder(); }
8593 public static Builder CreateBuilder(TestForeignNested prototype) {
8594 return (Builder) new Builder().MergeFrom(prototype);
8595 }
8596
csharptest445bdce2011-05-20 15:50:54 -05008597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8598 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8599 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008600 public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> {
8601 protected override Builder ThisBuilder {
8602 get { return this; }
8603 }
8604 public Builder() {}
8605
8606 TestForeignNested result = new TestForeignNested();
8607
8608 protected override TestForeignNested MessageBeingBuilt {
8609 get { return result; }
8610 }
8611
8612 public override Builder Clear() {
8613 result = new TestForeignNested();
8614 return this;
8615 }
8616
8617 public override Builder Clone() {
8618 return new Builder().MergeFrom(result);
8619 }
8620
8621 public override pbd::MessageDescriptor DescriptorForType {
8622 get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
8623 }
8624
8625 public override TestForeignNested DefaultInstanceForType {
8626 get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
8627 }
8628
8629 public override TestForeignNested BuildPartial() {
8630 if (result == null) {
8631 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8632 }
8633 TestForeignNested returnMe = result;
8634 result = null;
8635 return returnMe;
8636 }
8637
8638 public override Builder MergeFrom(pb::IMessage other) {
8639 if (other is TestForeignNested) {
8640 return MergeFrom((TestForeignNested) other);
8641 } else {
8642 base.MergeFrom(other);
8643 return this;
8644 }
8645 }
8646
8647 public override Builder MergeFrom(TestForeignNested other) {
8648 if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
8649 if (other.HasForeignNested) {
8650 MergeForeignNested(other.ForeignNested);
8651 }
8652 this.MergeUnknownFields(other.UnknownFields);
8653 return this;
8654 }
8655
csharptest17699c22011-06-03 21:57:15 -05008656 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008657 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8658 }
8659
csharptest17699c22011-06-03 21:57:15 -05008660 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008661 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05008662 uint tag;
8663 string field_name;
8664 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008665 switch (tag) {
8666 case 0: {
csharptest99284412011-06-03 14:51:06 -05008667 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008668 }
8669 default: {
8670 if (pb::WireFormat.IsEndGroupTag(tag)) {
8671 if (unknownFields != null) {
8672 this.UnknownFields = unknownFields.Build();
8673 }
8674 return this;
8675 }
8676 if (unknownFields == null) {
8677 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8678 }
csharptestd2af9e92011-06-03 21:35:02 -05008679 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008680 break;
8681 }
8682 case 10: {
8683 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
8684 if (HasForeignNested) {
8685 subBuilder.MergeFrom(ForeignNested);
8686 }
8687 input.ReadMessage(subBuilder, extensionRegistry);
8688 ForeignNested = subBuilder.BuildPartial();
8689 break;
8690 }
8691 }
8692 }
csharptest123e5342011-06-03 14:15:21 -05008693
8694 if (unknownFields != null) {
8695 this.UnknownFields = unknownFields.Build();
8696 }
8697 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008698 }
8699
8700
8701 public bool HasForeignNested {
8702 get { return result.HasForeignNested; }
8703 }
8704 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
8705 get { return result.ForeignNested; }
8706 set { SetForeignNested(value); }
8707 }
8708 public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
8709 pb::ThrowHelper.ThrowIfNull(value, "value");
8710 result.hasForeignNested = true;
8711 result.foreignNested_ = value;
8712 return this;
8713 }
8714 public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
8715 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8716 result.hasForeignNested = true;
8717 result.foreignNested_ = builderForValue.Build();
8718 return this;
8719 }
8720 public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
8721 pb::ThrowHelper.ThrowIfNull(value, "value");
8722 if (result.HasForeignNested &&
8723 result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
8724 result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
8725 } else {
8726 result.foreignNested_ = value;
8727 }
8728 result.hasForeignNested = true;
8729 return this;
8730 }
8731 public Builder ClearForeignNested() {
8732 result.hasForeignNested = false;
8733 result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
8734 return this;
8735 }
8736 }
8737 static TestForeignNested() {
8738 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8739 }
8740 }
8741
csharptest445bdce2011-05-20 15:50:54 -05008742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8743 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8744 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008745 public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
8746 private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial();
8747 public static TestEmptyMessage DefaultInstance {
8748 get { return defaultInstance; }
8749 }
8750
8751 public override TestEmptyMessage DefaultInstanceForType {
8752 get { return defaultInstance; }
8753 }
8754
8755 protected override TestEmptyMessage ThisMessage {
8756 get { return this; }
8757 }
8758
8759 public static pbd::MessageDescriptor Descriptor {
8760 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
8761 }
8762
8763 protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
8764 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
8765 }
8766
8767 public override bool IsInitialized {
8768 get {
8769 return true;
8770 }
8771 }
8772
csharptestffafdaa2011-06-03 12:58:14 -05008773 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008774 int size = SerializedSize;
8775 UnknownFields.WriteTo(output);
8776 }
8777
8778 private int memoizedSerializedSize = -1;
8779 public override int SerializedSize {
8780 get {
8781 int size = memoizedSerializedSize;
8782 if (size != -1) return size;
8783
8784 size = 0;
8785 size += UnknownFields.SerializedSize;
8786 memoizedSerializedSize = size;
8787 return size;
8788 }
8789 }
8790
8791 public static TestEmptyMessage ParseFrom(pb::ByteString data) {
8792 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8793 }
8794 public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8795 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8796 }
8797 public static TestEmptyMessage ParseFrom(byte[] data) {
8798 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8799 }
8800 public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8801 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8802 }
8803 public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
8804 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8805 }
8806 public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8807 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8808 }
8809 public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
8810 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8811 }
8812 public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8813 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8814 }
csharptest17699c22011-06-03 21:57:15 -05008815 public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008816 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8817 }
csharptest17699c22011-06-03 21:57:15 -05008818 public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008819 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8820 }
8821 public static Builder CreateBuilder() { return new Builder(); }
8822 public override Builder ToBuilder() { return CreateBuilder(this); }
8823 public override Builder CreateBuilderForType() { return new Builder(); }
8824 public static Builder CreateBuilder(TestEmptyMessage prototype) {
8825 return (Builder) new Builder().MergeFrom(prototype);
8826 }
8827
csharptest445bdce2011-05-20 15:50:54 -05008828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8829 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8830 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008831 public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> {
8832 protected override Builder ThisBuilder {
8833 get { return this; }
8834 }
8835 public Builder() {}
8836
8837 TestEmptyMessage result = new TestEmptyMessage();
8838
8839 protected override TestEmptyMessage MessageBeingBuilt {
8840 get { return result; }
8841 }
8842
8843 public override Builder Clear() {
8844 result = new TestEmptyMessage();
8845 return this;
8846 }
8847
8848 public override Builder Clone() {
8849 return new Builder().MergeFrom(result);
8850 }
8851
8852 public override pbd::MessageDescriptor DescriptorForType {
8853 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
8854 }
8855
8856 public override TestEmptyMessage DefaultInstanceForType {
8857 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
8858 }
8859
8860 public override TestEmptyMessage BuildPartial() {
8861 if (result == null) {
8862 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8863 }
8864 TestEmptyMessage returnMe = result;
8865 result = null;
8866 return returnMe;
8867 }
8868
8869 public override Builder MergeFrom(pb::IMessage other) {
8870 if (other is TestEmptyMessage) {
8871 return MergeFrom((TestEmptyMessage) other);
8872 } else {
8873 base.MergeFrom(other);
8874 return this;
8875 }
8876 }
8877
8878 public override Builder MergeFrom(TestEmptyMessage other) {
8879 if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
8880 this.MergeUnknownFields(other.UnknownFields);
8881 return this;
8882 }
8883
csharptest17699c22011-06-03 21:57:15 -05008884 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008885 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8886 }
8887
csharptest17699c22011-06-03 21:57:15 -05008888 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008889 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05008890 uint tag;
8891 string field_name;
8892 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008893 switch (tag) {
8894 case 0: {
csharptest99284412011-06-03 14:51:06 -05008895 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008896 }
8897 default: {
8898 if (pb::WireFormat.IsEndGroupTag(tag)) {
8899 if (unknownFields != null) {
8900 this.UnknownFields = unknownFields.Build();
8901 }
8902 return this;
8903 }
8904 if (unknownFields == null) {
8905 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8906 }
csharptestd2af9e92011-06-03 21:35:02 -05008907 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008908 break;
8909 }
8910 }
8911 }
csharptest123e5342011-06-03 14:15:21 -05008912
8913 if (unknownFields != null) {
8914 this.UnknownFields = unknownFields.Build();
8915 }
8916 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008917 }
8918
8919 }
8920 static TestEmptyMessage() {
8921 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8922 }
8923 }
8924
csharptest445bdce2011-05-20 15:50:54 -05008925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8926 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8927 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008928 public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
8929 private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial();
8930 public static TestEmptyMessageWithExtensions DefaultInstance {
8931 get { return defaultInstance; }
8932 }
8933
8934 public override TestEmptyMessageWithExtensions DefaultInstanceForType {
8935 get { return defaultInstance; }
8936 }
8937
8938 protected override TestEmptyMessageWithExtensions ThisMessage {
8939 get { return this; }
8940 }
8941
8942 public static pbd::MessageDescriptor Descriptor {
8943 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
8944 }
8945
8946 protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
8947 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
8948 }
8949
8950 public override bool IsInitialized {
8951 get {
8952 if (!ExtensionsAreInitialized) return false;
8953 return true;
8954 }
8955 }
8956
csharptestffafdaa2011-06-03 12:58:14 -05008957 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008958 int size = SerializedSize;
8959 pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
8960 extensionWriter.WriteUntil(536870912, output);
8961 UnknownFields.WriteTo(output);
8962 }
8963
8964 private int memoizedSerializedSize = -1;
8965 public override int SerializedSize {
8966 get {
8967 int size = memoizedSerializedSize;
8968 if (size != -1) return size;
8969
8970 size = 0;
8971 size += ExtensionsSerializedSize;
8972 size += UnknownFields.SerializedSize;
8973 memoizedSerializedSize = size;
8974 return size;
8975 }
8976 }
8977
8978 public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
8979 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8980 }
8981 public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8982 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8983 }
8984 public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
8985 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8986 }
8987 public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8988 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8989 }
8990 public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
8991 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8992 }
8993 public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8994 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8995 }
8996 public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
8997 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8998 }
8999 public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9000 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9001 }
csharptest17699c22011-06-03 21:57:15 -05009002 public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009003 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9004 }
csharptest17699c22011-06-03 21:57:15 -05009005 public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009006 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9007 }
9008 public static Builder CreateBuilder() { return new Builder(); }
9009 public override Builder ToBuilder() { return CreateBuilder(this); }
9010 public override Builder CreateBuilderForType() { return new Builder(); }
9011 public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) {
9012 return (Builder) new Builder().MergeFrom(prototype);
9013 }
9014
csharptest445bdce2011-05-20 15:50:54 -05009015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9016 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9017 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009018 public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> {
9019 protected override Builder ThisBuilder {
9020 get { return this; }
9021 }
9022 public Builder() {}
9023
9024 TestEmptyMessageWithExtensions result = new TestEmptyMessageWithExtensions();
9025
9026 protected override TestEmptyMessageWithExtensions MessageBeingBuilt {
9027 get { return result; }
9028 }
9029
9030 public override Builder Clear() {
9031 result = new TestEmptyMessageWithExtensions();
9032 return this;
9033 }
9034
9035 public override Builder Clone() {
9036 return new Builder().MergeFrom(result);
9037 }
9038
9039 public override pbd::MessageDescriptor DescriptorForType {
9040 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
9041 }
9042
9043 public override TestEmptyMessageWithExtensions DefaultInstanceForType {
9044 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
9045 }
9046
9047 public override TestEmptyMessageWithExtensions BuildPartial() {
9048 if (result == null) {
9049 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9050 }
9051 TestEmptyMessageWithExtensions returnMe = result;
9052 result = null;
9053 return returnMe;
9054 }
9055
9056 public override Builder MergeFrom(pb::IMessage other) {
9057 if (other is TestEmptyMessageWithExtensions) {
9058 return MergeFrom((TestEmptyMessageWithExtensions) other);
9059 } else {
9060 base.MergeFrom(other);
9061 return this;
9062 }
9063 }
9064
9065 public override Builder MergeFrom(TestEmptyMessageWithExtensions other) {
9066 if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
9067 this.MergeExtensionFields(other);
9068 this.MergeUnknownFields(other.UnknownFields);
9069 return this;
9070 }
9071
csharptest17699c22011-06-03 21:57:15 -05009072 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009073 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9074 }
9075
csharptest17699c22011-06-03 21:57:15 -05009076 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009077 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05009078 uint tag;
9079 string field_name;
9080 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009081 switch (tag) {
9082 case 0: {
csharptest99284412011-06-03 14:51:06 -05009083 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009084 }
9085 default: {
9086 if (pb::WireFormat.IsEndGroupTag(tag)) {
9087 if (unknownFields != null) {
9088 this.UnknownFields = unknownFields.Build();
9089 }
9090 return this;
9091 }
9092 if (unknownFields == null) {
9093 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9094 }
csharptestd2af9e92011-06-03 21:35:02 -05009095 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009096 break;
9097 }
9098 }
9099 }
csharptest123e5342011-06-03 14:15:21 -05009100
9101 if (unknownFields != null) {
9102 this.UnknownFields = unknownFields.Build();
9103 }
9104 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009105 }
9106
9107 }
9108 static TestEmptyMessageWithExtensions() {
9109 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9110 }
9111 }
9112
csharptest445bdce2011-05-20 15:50:54 -05009113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9114 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9115 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009116 public sealed partial class TestMultipleExtensionRanges : pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> {
9117 private static readonly TestMultipleExtensionRanges defaultInstance = new Builder().BuildPartial();
9118 public static TestMultipleExtensionRanges DefaultInstance {
9119 get { return defaultInstance; }
9120 }
9121
9122 public override TestMultipleExtensionRanges DefaultInstanceForType {
9123 get { return defaultInstance; }
9124 }
9125
9126 protected override TestMultipleExtensionRanges ThisMessage {
9127 get { return this; }
9128 }
9129
9130 public static pbd::MessageDescriptor Descriptor {
9131 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor; }
9132 }
9133
9134 protected override pb::FieldAccess.FieldAccessorTable<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> InternalFieldAccessors {
9135 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable; }
9136 }
9137
9138 public override bool IsInitialized {
9139 get {
9140 if (!ExtensionsAreInitialized) return false;
9141 return true;
9142 }
9143 }
9144
csharptestffafdaa2011-06-03 12:58:14 -05009145 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009146 int size = SerializedSize;
9147 pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
9148 extensionWriter.WriteUntil(43, output);
9149 extensionWriter.WriteUntil(4244, output);
9150 extensionWriter.WriteUntil(536870912, output);
9151 UnknownFields.WriteTo(output);
9152 }
9153
9154 private int memoizedSerializedSize = -1;
9155 public override int SerializedSize {
9156 get {
9157 int size = memoizedSerializedSize;
9158 if (size != -1) return size;
9159
9160 size = 0;
9161 size += ExtensionsSerializedSize;
9162 size += UnknownFields.SerializedSize;
9163 memoizedSerializedSize = size;
9164 return size;
9165 }
9166 }
9167
9168 public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data) {
9169 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9170 }
9171 public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9172 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9173 }
9174 public static TestMultipleExtensionRanges ParseFrom(byte[] data) {
9175 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9176 }
9177 public static TestMultipleExtensionRanges ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9178 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9179 }
9180 public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input) {
9181 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9182 }
9183 public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9184 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9185 }
9186 public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input) {
9187 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9188 }
9189 public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9190 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9191 }
csharptest17699c22011-06-03 21:57:15 -05009192 public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009193 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9194 }
csharptest17699c22011-06-03 21:57:15 -05009195 public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009196 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9197 }
9198 public static Builder CreateBuilder() { return new Builder(); }
9199 public override Builder ToBuilder() { return CreateBuilder(this); }
9200 public override Builder CreateBuilderForType() { return new Builder(); }
9201 public static Builder CreateBuilder(TestMultipleExtensionRanges prototype) {
9202 return (Builder) new Builder().MergeFrom(prototype);
9203 }
9204
csharptest445bdce2011-05-20 15:50:54 -05009205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9206 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9207 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009208 public sealed partial class Builder : pb::ExtendableBuilder<TestMultipleExtensionRanges, Builder> {
9209 protected override Builder ThisBuilder {
9210 get { return this; }
9211 }
9212 public Builder() {}
9213
9214 TestMultipleExtensionRanges result = new TestMultipleExtensionRanges();
9215
9216 protected override TestMultipleExtensionRanges MessageBeingBuilt {
9217 get { return result; }
9218 }
9219
9220 public override Builder Clear() {
9221 result = new TestMultipleExtensionRanges();
9222 return this;
9223 }
9224
9225 public override Builder Clone() {
9226 return new Builder().MergeFrom(result);
9227 }
9228
9229 public override pbd::MessageDescriptor DescriptorForType {
9230 get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Descriptor; }
9231 }
9232
9233 public override TestMultipleExtensionRanges DefaultInstanceForType {
9234 get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance; }
9235 }
9236
9237 public override TestMultipleExtensionRanges BuildPartial() {
9238 if (result == null) {
9239 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9240 }
9241 TestMultipleExtensionRanges returnMe = result;
9242 result = null;
9243 return returnMe;
9244 }
9245
9246 public override Builder MergeFrom(pb::IMessage other) {
9247 if (other is TestMultipleExtensionRanges) {
9248 return MergeFrom((TestMultipleExtensionRanges) other);
9249 } else {
9250 base.MergeFrom(other);
9251 return this;
9252 }
9253 }
9254
9255 public override Builder MergeFrom(TestMultipleExtensionRanges other) {
9256 if (other == global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance) return this;
9257 this.MergeExtensionFields(other);
9258 this.MergeUnknownFields(other.UnknownFields);
9259 return this;
9260 }
9261
csharptest17699c22011-06-03 21:57:15 -05009262 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009263 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9264 }
9265
csharptest17699c22011-06-03 21:57:15 -05009266 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009267 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05009268 uint tag;
9269 string field_name;
9270 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009271 switch (tag) {
9272 case 0: {
csharptest99284412011-06-03 14:51:06 -05009273 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009274 }
9275 default: {
9276 if (pb::WireFormat.IsEndGroupTag(tag)) {
9277 if (unknownFields != null) {
9278 this.UnknownFields = unknownFields.Build();
9279 }
9280 return this;
9281 }
9282 if (unknownFields == null) {
9283 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9284 }
csharptestd2af9e92011-06-03 21:35:02 -05009285 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009286 break;
9287 }
9288 }
9289 }
csharptest123e5342011-06-03 14:15:21 -05009290
9291 if (unknownFields != null) {
9292 this.UnknownFields = unknownFields.Build();
9293 }
9294 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009295 }
9296
9297 }
9298 static TestMultipleExtensionRanges() {
9299 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9300 }
9301 }
9302
csharptest445bdce2011-05-20 15:50:54 -05009303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9304 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9305 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009306 public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
9307 private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial();
9308 public static TestReallyLargeTagNumber DefaultInstance {
9309 get { return defaultInstance; }
9310 }
9311
9312 public override TestReallyLargeTagNumber DefaultInstanceForType {
9313 get { return defaultInstance; }
9314 }
9315
9316 protected override TestReallyLargeTagNumber ThisMessage {
9317 get { return this; }
9318 }
9319
9320 public static pbd::MessageDescriptor Descriptor {
9321 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
9322 }
9323
9324 protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
9325 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
9326 }
9327
9328 public const int AFieldNumber = 1;
9329 private bool hasA;
9330 private int a_ = 0;
9331 public bool HasA {
9332 get { return hasA; }
9333 }
9334 public int A {
9335 get { return a_; }
9336 }
9337
9338 public const int BbFieldNumber = 268435455;
9339 private bool hasBb;
9340 private int bb_ = 0;
9341 public bool HasBb {
9342 get { return hasBb; }
9343 }
9344 public int Bb {
9345 get { return bb_; }
9346 }
9347
9348 public override bool IsInitialized {
9349 get {
9350 return true;
9351 }
9352 }
9353
csharptestffafdaa2011-06-03 12:58:14 -05009354 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009355 int size = SerializedSize;
9356 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05009357 output.WriteInt32(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009358 }
9359 if (HasBb) {
csharptest90922db2011-06-03 11:57:47 -05009360 output.WriteInt32(268435455, "bb", Bb);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009361 }
9362 UnknownFields.WriteTo(output);
9363 }
9364
9365 private int memoizedSerializedSize = -1;
9366 public override int SerializedSize {
9367 get {
9368 int size = memoizedSerializedSize;
9369 if (size != -1) return size;
9370
9371 size = 0;
9372 if (HasA) {
9373 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
9374 }
9375 if (HasBb) {
9376 size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
9377 }
9378 size += UnknownFields.SerializedSize;
9379 memoizedSerializedSize = size;
9380 return size;
9381 }
9382 }
9383
9384 public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
9385 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9386 }
9387 public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9388 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9389 }
9390 public static TestReallyLargeTagNumber ParseFrom(byte[] data) {
9391 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9392 }
9393 public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9394 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9395 }
9396 public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
9397 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9398 }
9399 public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9400 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9401 }
9402 public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input) {
9403 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9404 }
9405 public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9406 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9407 }
csharptest17699c22011-06-03 21:57:15 -05009408 public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009409 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9410 }
csharptest17699c22011-06-03 21:57:15 -05009411 public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009412 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9413 }
9414 public static Builder CreateBuilder() { return new Builder(); }
9415 public override Builder ToBuilder() { return CreateBuilder(this); }
9416 public override Builder CreateBuilderForType() { return new Builder(); }
9417 public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) {
9418 return (Builder) new Builder().MergeFrom(prototype);
9419 }
9420
csharptest445bdce2011-05-20 15:50:54 -05009421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9422 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9423 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009424 public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> {
9425 protected override Builder ThisBuilder {
9426 get { return this; }
9427 }
9428 public Builder() {}
9429
9430 TestReallyLargeTagNumber result = new TestReallyLargeTagNumber();
9431
9432 protected override TestReallyLargeTagNumber MessageBeingBuilt {
9433 get { return result; }
9434 }
9435
9436 public override Builder Clear() {
9437 result = new TestReallyLargeTagNumber();
9438 return this;
9439 }
9440
9441 public override Builder Clone() {
9442 return new Builder().MergeFrom(result);
9443 }
9444
9445 public override pbd::MessageDescriptor DescriptorForType {
9446 get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
9447 }
9448
9449 public override TestReallyLargeTagNumber DefaultInstanceForType {
9450 get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
9451 }
9452
9453 public override TestReallyLargeTagNumber BuildPartial() {
9454 if (result == null) {
9455 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9456 }
9457 TestReallyLargeTagNumber returnMe = result;
9458 result = null;
9459 return returnMe;
9460 }
9461
9462 public override Builder MergeFrom(pb::IMessage other) {
9463 if (other is TestReallyLargeTagNumber) {
9464 return MergeFrom((TestReallyLargeTagNumber) other);
9465 } else {
9466 base.MergeFrom(other);
9467 return this;
9468 }
9469 }
9470
9471 public override Builder MergeFrom(TestReallyLargeTagNumber other) {
9472 if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
9473 if (other.HasA) {
9474 A = other.A;
9475 }
9476 if (other.HasBb) {
9477 Bb = other.Bb;
9478 }
9479 this.MergeUnknownFields(other.UnknownFields);
9480 return this;
9481 }
9482
csharptest17699c22011-06-03 21:57:15 -05009483 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009484 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9485 }
9486
csharptest17699c22011-06-03 21:57:15 -05009487 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009488 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05009489 uint tag;
9490 string field_name;
9491 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009492 switch (tag) {
9493 case 0: {
csharptest99284412011-06-03 14:51:06 -05009494 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009495 }
9496 default: {
9497 if (pb::WireFormat.IsEndGroupTag(tag)) {
9498 if (unknownFields != null) {
9499 this.UnknownFields = unknownFields.Build();
9500 }
9501 return this;
9502 }
9503 if (unknownFields == null) {
9504 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9505 }
csharptestd2af9e92011-06-03 21:35:02 -05009506 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009507 break;
9508 }
9509 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05009510 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009511 break;
9512 }
9513 case 2147483640: {
csharptestd2af9e92011-06-03 21:35:02 -05009514 result.hasBb |= input.ReadInt32(ref result.bb_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009515 break;
9516 }
9517 }
9518 }
csharptest123e5342011-06-03 14:15:21 -05009519
9520 if (unknownFields != null) {
9521 this.UnknownFields = unknownFields.Build();
9522 }
9523 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009524 }
9525
9526
9527 public bool HasA {
9528 get { return result.HasA; }
9529 }
9530 public int A {
9531 get { return result.A; }
9532 set { SetA(value); }
9533 }
9534 public Builder SetA(int value) {
9535 result.hasA = true;
9536 result.a_ = value;
9537 return this;
9538 }
9539 public Builder ClearA() {
9540 result.hasA = false;
9541 result.a_ = 0;
9542 return this;
9543 }
9544
9545 public bool HasBb {
9546 get { return result.HasBb; }
9547 }
9548 public int Bb {
9549 get { return result.Bb; }
9550 set { SetBb(value); }
9551 }
9552 public Builder SetBb(int value) {
9553 result.hasBb = true;
9554 result.bb_ = value;
9555 return this;
9556 }
9557 public Builder ClearBb() {
9558 result.hasBb = false;
9559 result.bb_ = 0;
9560 return this;
9561 }
9562 }
9563 static TestReallyLargeTagNumber() {
9564 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9565 }
9566 }
9567
csharptest445bdce2011-05-20 15:50:54 -05009568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9569 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9570 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009571 public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
9572 private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial();
9573 public static TestRecursiveMessage DefaultInstance {
9574 get { return defaultInstance; }
9575 }
9576
9577 public override TestRecursiveMessage DefaultInstanceForType {
9578 get { return defaultInstance; }
9579 }
9580
9581 protected override TestRecursiveMessage ThisMessage {
9582 get { return this; }
9583 }
9584
9585 public static pbd::MessageDescriptor Descriptor {
9586 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
9587 }
9588
9589 protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
9590 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
9591 }
9592
9593 public const int AFieldNumber = 1;
9594 private bool hasA;
9595 private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
9596 public bool HasA {
9597 get { return hasA; }
9598 }
9599 public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
9600 get { return a_; }
9601 }
9602
9603 public const int IFieldNumber = 2;
9604 private bool hasI;
9605 private int i_ = 0;
9606 public bool HasI {
9607 get { return hasI; }
9608 }
9609 public int I {
9610 get { return i_; }
9611 }
9612
9613 public override bool IsInitialized {
9614 get {
9615 return true;
9616 }
9617 }
9618
csharptestffafdaa2011-06-03 12:58:14 -05009619 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009620 int size = SerializedSize;
9621 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -05009622 output.WriteMessage(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009623 }
9624 if (HasI) {
csharptest90922db2011-06-03 11:57:47 -05009625 output.WriteInt32(2, "i", I);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009626 }
9627 UnknownFields.WriteTo(output);
9628 }
9629
9630 private int memoizedSerializedSize = -1;
9631 public override int SerializedSize {
9632 get {
9633 int size = memoizedSerializedSize;
9634 if (size != -1) return size;
9635
9636 size = 0;
9637 if (HasA) {
9638 size += pb::CodedOutputStream.ComputeMessageSize(1, A);
9639 }
9640 if (HasI) {
9641 size += pb::CodedOutputStream.ComputeInt32Size(2, I);
9642 }
9643 size += UnknownFields.SerializedSize;
9644 memoizedSerializedSize = size;
9645 return size;
9646 }
9647 }
9648
9649 public static TestRecursiveMessage ParseFrom(pb::ByteString data) {
9650 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9651 }
9652 public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9653 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9654 }
9655 public static TestRecursiveMessage ParseFrom(byte[] data) {
9656 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9657 }
9658 public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9659 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9660 }
9661 public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
9662 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9663 }
9664 public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9665 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9666 }
9667 public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input) {
9668 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9669 }
9670 public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9671 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9672 }
csharptest17699c22011-06-03 21:57:15 -05009673 public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009674 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9675 }
csharptest17699c22011-06-03 21:57:15 -05009676 public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009677 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9678 }
9679 public static Builder CreateBuilder() { return new Builder(); }
9680 public override Builder ToBuilder() { return CreateBuilder(this); }
9681 public override Builder CreateBuilderForType() { return new Builder(); }
9682 public static Builder CreateBuilder(TestRecursiveMessage prototype) {
9683 return (Builder) new Builder().MergeFrom(prototype);
9684 }
9685
csharptest445bdce2011-05-20 15:50:54 -05009686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9687 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9688 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009689 public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> {
9690 protected override Builder ThisBuilder {
9691 get { return this; }
9692 }
9693 public Builder() {}
9694
9695 TestRecursiveMessage result = new TestRecursiveMessage();
9696
9697 protected override TestRecursiveMessage MessageBeingBuilt {
9698 get { return result; }
9699 }
9700
9701 public override Builder Clear() {
9702 result = new TestRecursiveMessage();
9703 return this;
9704 }
9705
9706 public override Builder Clone() {
9707 return new Builder().MergeFrom(result);
9708 }
9709
9710 public override pbd::MessageDescriptor DescriptorForType {
9711 get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
9712 }
9713
9714 public override TestRecursiveMessage DefaultInstanceForType {
9715 get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
9716 }
9717
9718 public override TestRecursiveMessage BuildPartial() {
9719 if (result == null) {
9720 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9721 }
9722 TestRecursiveMessage returnMe = result;
9723 result = null;
9724 return returnMe;
9725 }
9726
9727 public override Builder MergeFrom(pb::IMessage other) {
9728 if (other is TestRecursiveMessage) {
9729 return MergeFrom((TestRecursiveMessage) other);
9730 } else {
9731 base.MergeFrom(other);
9732 return this;
9733 }
9734 }
9735
9736 public override Builder MergeFrom(TestRecursiveMessage other) {
9737 if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
9738 if (other.HasA) {
9739 MergeA(other.A);
9740 }
9741 if (other.HasI) {
9742 I = other.I;
9743 }
9744 this.MergeUnknownFields(other.UnknownFields);
9745 return this;
9746 }
9747
csharptest17699c22011-06-03 21:57:15 -05009748 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009749 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9750 }
9751
csharptest17699c22011-06-03 21:57:15 -05009752 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009753 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05009754 uint tag;
9755 string field_name;
9756 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009757 switch (tag) {
9758 case 0: {
csharptest99284412011-06-03 14:51:06 -05009759 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009760 }
9761 default: {
9762 if (pb::WireFormat.IsEndGroupTag(tag)) {
9763 if (unknownFields != null) {
9764 this.UnknownFields = unknownFields.Build();
9765 }
9766 return this;
9767 }
9768 if (unknownFields == null) {
9769 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9770 }
csharptestd2af9e92011-06-03 21:35:02 -05009771 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009772 break;
9773 }
9774 case 10: {
9775 global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
9776 if (HasA) {
9777 subBuilder.MergeFrom(A);
9778 }
9779 input.ReadMessage(subBuilder, extensionRegistry);
9780 A = subBuilder.BuildPartial();
9781 break;
9782 }
9783 case 16: {
csharptestd2af9e92011-06-03 21:35:02 -05009784 result.hasI |= input.ReadInt32(ref result.i_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009785 break;
9786 }
9787 }
9788 }
csharptest123e5342011-06-03 14:15:21 -05009789
9790 if (unknownFields != null) {
9791 this.UnknownFields = unknownFields.Build();
9792 }
9793 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009794 }
9795
9796
9797 public bool HasA {
9798 get { return result.HasA; }
9799 }
9800 public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
9801 get { return result.A; }
9802 set { SetA(value); }
9803 }
9804 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
9805 pb::ThrowHelper.ThrowIfNull(value, "value");
9806 result.hasA = true;
9807 result.a_ = value;
9808 return this;
9809 }
9810 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
9811 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
9812 result.hasA = true;
9813 result.a_ = builderForValue.Build();
9814 return this;
9815 }
9816 public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
9817 pb::ThrowHelper.ThrowIfNull(value, "value");
9818 if (result.HasA &&
9819 result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
9820 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
9821 } else {
9822 result.a_ = value;
9823 }
9824 result.hasA = true;
9825 return this;
9826 }
9827 public Builder ClearA() {
9828 result.hasA = false;
9829 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
9830 return this;
9831 }
9832
9833 public bool HasI {
9834 get { return result.HasI; }
9835 }
9836 public int I {
9837 get { return result.I; }
9838 set { SetI(value); }
9839 }
9840 public Builder SetI(int value) {
9841 result.hasI = true;
9842 result.i_ = value;
9843 return this;
9844 }
9845 public Builder ClearI() {
9846 result.hasI = false;
9847 result.i_ = 0;
9848 return this;
9849 }
9850 }
9851 static TestRecursiveMessage() {
9852 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9853 }
9854 }
9855
csharptest445bdce2011-05-20 15:50:54 -05009856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9857 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9858 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009859 public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
9860 private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial();
9861 public static TestMutualRecursionA DefaultInstance {
9862 get { return defaultInstance; }
9863 }
9864
9865 public override TestMutualRecursionA DefaultInstanceForType {
9866 get { return defaultInstance; }
9867 }
9868
9869 protected override TestMutualRecursionA ThisMessage {
9870 get { return this; }
9871 }
9872
9873 public static pbd::MessageDescriptor Descriptor {
9874 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
9875 }
9876
9877 protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
9878 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
9879 }
9880
9881 public const int BbFieldNumber = 1;
9882 private bool hasBb;
9883 private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
9884 public bool HasBb {
9885 get { return hasBb; }
9886 }
9887 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
9888 get { return bb_; }
9889 }
9890
9891 public override bool IsInitialized {
9892 get {
9893 return true;
9894 }
9895 }
9896
csharptestffafdaa2011-06-03 12:58:14 -05009897 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009898 int size = SerializedSize;
9899 if (HasBb) {
csharptest90922db2011-06-03 11:57:47 -05009900 output.WriteMessage(1, "bb", Bb);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009901 }
9902 UnknownFields.WriteTo(output);
9903 }
9904
9905 private int memoizedSerializedSize = -1;
9906 public override int SerializedSize {
9907 get {
9908 int size = memoizedSerializedSize;
9909 if (size != -1) return size;
9910
9911 size = 0;
9912 if (HasBb) {
9913 size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
9914 }
9915 size += UnknownFields.SerializedSize;
9916 memoizedSerializedSize = size;
9917 return size;
9918 }
9919 }
9920
9921 public static TestMutualRecursionA ParseFrom(pb::ByteString data) {
9922 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9923 }
9924 public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9925 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9926 }
9927 public static TestMutualRecursionA ParseFrom(byte[] data) {
9928 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9929 }
9930 public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9931 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9932 }
9933 public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
9934 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9935 }
9936 public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9937 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9938 }
9939 public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input) {
9940 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9941 }
9942 public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9943 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9944 }
csharptest17699c22011-06-03 21:57:15 -05009945 public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009946 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9947 }
csharptest17699c22011-06-03 21:57:15 -05009948 public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009949 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9950 }
9951 public static Builder CreateBuilder() { return new Builder(); }
9952 public override Builder ToBuilder() { return CreateBuilder(this); }
9953 public override Builder CreateBuilderForType() { return new Builder(); }
9954 public static Builder CreateBuilder(TestMutualRecursionA prototype) {
9955 return (Builder) new Builder().MergeFrom(prototype);
9956 }
9957
csharptest445bdce2011-05-20 15:50:54 -05009958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9959 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9960 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009961 public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> {
9962 protected override Builder ThisBuilder {
9963 get { return this; }
9964 }
9965 public Builder() {}
9966
9967 TestMutualRecursionA result = new TestMutualRecursionA();
9968
9969 protected override TestMutualRecursionA MessageBeingBuilt {
9970 get { return result; }
9971 }
9972
9973 public override Builder Clear() {
9974 result = new TestMutualRecursionA();
9975 return this;
9976 }
9977
9978 public override Builder Clone() {
9979 return new Builder().MergeFrom(result);
9980 }
9981
9982 public override pbd::MessageDescriptor DescriptorForType {
9983 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
9984 }
9985
9986 public override TestMutualRecursionA DefaultInstanceForType {
9987 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
9988 }
9989
9990 public override TestMutualRecursionA BuildPartial() {
9991 if (result == null) {
9992 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9993 }
9994 TestMutualRecursionA returnMe = result;
9995 result = null;
9996 return returnMe;
9997 }
9998
9999 public override Builder MergeFrom(pb::IMessage other) {
10000 if (other is TestMutualRecursionA) {
10001 return MergeFrom((TestMutualRecursionA) other);
10002 } else {
10003 base.MergeFrom(other);
10004 return this;
10005 }
10006 }
10007
10008 public override Builder MergeFrom(TestMutualRecursionA other) {
10009 if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
10010 if (other.HasBb) {
10011 MergeBb(other.Bb);
10012 }
10013 this.MergeUnknownFields(other.UnknownFields);
10014 return this;
10015 }
10016
csharptest17699c22011-06-03 21:57:15 -050010017 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010018 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10019 }
10020
csharptest17699c22011-06-03 21:57:15 -050010021 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010022 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050010023 uint tag;
10024 string field_name;
10025 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010026 switch (tag) {
10027 case 0: {
csharptest99284412011-06-03 14:51:06 -050010028 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010010029 }
10030 default: {
10031 if (pb::WireFormat.IsEndGroupTag(tag)) {
10032 if (unknownFields != null) {
10033 this.UnknownFields = unknownFields.Build();
10034 }
10035 return this;
10036 }
10037 if (unknownFields == null) {
10038 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10039 }
csharptestd2af9e92011-06-03 21:35:02 -050010040 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010041 break;
10042 }
10043 case 10: {
10044 global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
10045 if (HasBb) {
10046 subBuilder.MergeFrom(Bb);
10047 }
10048 input.ReadMessage(subBuilder, extensionRegistry);
10049 Bb = subBuilder.BuildPartial();
10050 break;
10051 }
10052 }
10053 }
csharptest123e5342011-06-03 14:15:21 -050010054
10055 if (unknownFields != null) {
10056 this.UnknownFields = unknownFields.Build();
10057 }
10058 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010010059 }
10060
10061
10062 public bool HasBb {
10063 get { return result.HasBb; }
10064 }
10065 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
10066 get { return result.Bb; }
10067 set { SetBb(value); }
10068 }
10069 public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
10070 pb::ThrowHelper.ThrowIfNull(value, "value");
10071 result.hasBb = true;
10072 result.bb_ = value;
10073 return this;
10074 }
10075 public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
10076 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
10077 result.hasBb = true;
10078 result.bb_ = builderForValue.Build();
10079 return this;
10080 }
10081 public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
10082 pb::ThrowHelper.ThrowIfNull(value, "value");
10083 if (result.HasBb &&
10084 result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
10085 result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
10086 } else {
10087 result.bb_ = value;
10088 }
10089 result.hasBb = true;
10090 return this;
10091 }
10092 public Builder ClearBb() {
10093 result.hasBb = false;
10094 result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
10095 return this;
10096 }
10097 }
10098 static TestMutualRecursionA() {
10099 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10100 }
10101 }
10102
csharptest445bdce2011-05-20 15:50:54 -050010103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10104 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10105 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010106 public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
10107 private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial();
10108 public static TestMutualRecursionB DefaultInstance {
10109 get { return defaultInstance; }
10110 }
10111
10112 public override TestMutualRecursionB DefaultInstanceForType {
10113 get { return defaultInstance; }
10114 }
10115
10116 protected override TestMutualRecursionB ThisMessage {
10117 get { return this; }
10118 }
10119
10120 public static pbd::MessageDescriptor Descriptor {
10121 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
10122 }
10123
10124 protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
10125 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
10126 }
10127
10128 public const int AFieldNumber = 1;
10129 private bool hasA;
10130 private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
10131 public bool HasA {
10132 get { return hasA; }
10133 }
10134 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
10135 get { return a_; }
10136 }
10137
10138 public const int OptionalInt32FieldNumber = 2;
10139 private bool hasOptionalInt32;
10140 private int optionalInt32_ = 0;
10141 public bool HasOptionalInt32 {
10142 get { return hasOptionalInt32; }
10143 }
10144 public int OptionalInt32 {
10145 get { return optionalInt32_; }
10146 }
10147
10148 public override bool IsInitialized {
10149 get {
10150 return true;
10151 }
10152 }
10153
csharptestffafdaa2011-06-03 12:58:14 -050010154 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010155 int size = SerializedSize;
10156 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -050010157 output.WriteMessage(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010158 }
10159 if (HasOptionalInt32) {
csharptest90922db2011-06-03 11:57:47 -050010160 output.WriteInt32(2, "optional_int32", OptionalInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010161 }
10162 UnknownFields.WriteTo(output);
10163 }
10164
10165 private int memoizedSerializedSize = -1;
10166 public override int SerializedSize {
10167 get {
10168 int size = memoizedSerializedSize;
10169 if (size != -1) return size;
10170
10171 size = 0;
10172 if (HasA) {
10173 size += pb::CodedOutputStream.ComputeMessageSize(1, A);
10174 }
10175 if (HasOptionalInt32) {
10176 size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
10177 }
10178 size += UnknownFields.SerializedSize;
10179 memoizedSerializedSize = size;
10180 return size;
10181 }
10182 }
10183
10184 public static TestMutualRecursionB ParseFrom(pb::ByteString data) {
10185 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10186 }
10187 public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10188 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10189 }
10190 public static TestMutualRecursionB ParseFrom(byte[] data) {
10191 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10192 }
10193 public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10194 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10195 }
10196 public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
10197 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10198 }
10199 public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10200 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10201 }
10202 public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input) {
10203 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10204 }
10205 public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10206 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10207 }
csharptest17699c22011-06-03 21:57:15 -050010208 public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010209 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10210 }
csharptest17699c22011-06-03 21:57:15 -050010211 public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010212 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10213 }
10214 public static Builder CreateBuilder() { return new Builder(); }
10215 public override Builder ToBuilder() { return CreateBuilder(this); }
10216 public override Builder CreateBuilderForType() { return new Builder(); }
10217 public static Builder CreateBuilder(TestMutualRecursionB prototype) {
10218 return (Builder) new Builder().MergeFrom(prototype);
10219 }
10220
csharptest445bdce2011-05-20 15:50:54 -050010221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10222 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10223 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010224 public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> {
10225 protected override Builder ThisBuilder {
10226 get { return this; }
10227 }
10228 public Builder() {}
10229
10230 TestMutualRecursionB result = new TestMutualRecursionB();
10231
10232 protected override TestMutualRecursionB MessageBeingBuilt {
10233 get { return result; }
10234 }
10235
10236 public override Builder Clear() {
10237 result = new TestMutualRecursionB();
10238 return this;
10239 }
10240
10241 public override Builder Clone() {
10242 return new Builder().MergeFrom(result);
10243 }
10244
10245 public override pbd::MessageDescriptor DescriptorForType {
10246 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
10247 }
10248
10249 public override TestMutualRecursionB DefaultInstanceForType {
10250 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
10251 }
10252
10253 public override TestMutualRecursionB BuildPartial() {
10254 if (result == null) {
10255 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10256 }
10257 TestMutualRecursionB returnMe = result;
10258 result = null;
10259 return returnMe;
10260 }
10261
10262 public override Builder MergeFrom(pb::IMessage other) {
10263 if (other is TestMutualRecursionB) {
10264 return MergeFrom((TestMutualRecursionB) other);
10265 } else {
10266 base.MergeFrom(other);
10267 return this;
10268 }
10269 }
10270
10271 public override Builder MergeFrom(TestMutualRecursionB other) {
10272 if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
10273 if (other.HasA) {
10274 MergeA(other.A);
10275 }
10276 if (other.HasOptionalInt32) {
10277 OptionalInt32 = other.OptionalInt32;
10278 }
10279 this.MergeUnknownFields(other.UnknownFields);
10280 return this;
10281 }
10282
csharptest17699c22011-06-03 21:57:15 -050010283 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010284 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10285 }
10286
csharptest17699c22011-06-03 21:57:15 -050010287 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010288 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050010289 uint tag;
10290 string field_name;
10291 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010292 switch (tag) {
10293 case 0: {
csharptest99284412011-06-03 14:51:06 -050010294 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010010295 }
10296 default: {
10297 if (pb::WireFormat.IsEndGroupTag(tag)) {
10298 if (unknownFields != null) {
10299 this.UnknownFields = unknownFields.Build();
10300 }
10301 return this;
10302 }
10303 if (unknownFields == null) {
10304 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10305 }
csharptestd2af9e92011-06-03 21:35:02 -050010306 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010307 break;
10308 }
10309 case 10: {
10310 global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
10311 if (HasA) {
10312 subBuilder.MergeFrom(A);
10313 }
10314 input.ReadMessage(subBuilder, extensionRegistry);
10315 A = subBuilder.BuildPartial();
10316 break;
10317 }
10318 case 16: {
csharptestd2af9e92011-06-03 21:35:02 -050010319 result.hasOptionalInt32 |= input.ReadInt32(ref result.optionalInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010320 break;
10321 }
10322 }
10323 }
csharptest123e5342011-06-03 14:15:21 -050010324
10325 if (unknownFields != null) {
10326 this.UnknownFields = unknownFields.Build();
10327 }
10328 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010010329 }
10330
10331
10332 public bool HasA {
10333 get { return result.HasA; }
10334 }
10335 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
10336 get { return result.A; }
10337 set { SetA(value); }
10338 }
10339 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
10340 pb::ThrowHelper.ThrowIfNull(value, "value");
10341 result.hasA = true;
10342 result.a_ = value;
10343 return this;
10344 }
10345 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
10346 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
10347 result.hasA = true;
10348 result.a_ = builderForValue.Build();
10349 return this;
10350 }
10351 public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
10352 pb::ThrowHelper.ThrowIfNull(value, "value");
10353 if (result.HasA &&
10354 result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
10355 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
10356 } else {
10357 result.a_ = value;
10358 }
10359 result.hasA = true;
10360 return this;
10361 }
10362 public Builder ClearA() {
10363 result.hasA = false;
10364 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
10365 return this;
10366 }
10367
10368 public bool HasOptionalInt32 {
10369 get { return result.HasOptionalInt32; }
10370 }
10371 public int OptionalInt32 {
10372 get { return result.OptionalInt32; }
10373 set { SetOptionalInt32(value); }
10374 }
10375 public Builder SetOptionalInt32(int value) {
10376 result.hasOptionalInt32 = true;
10377 result.optionalInt32_ = value;
10378 return this;
10379 }
10380 public Builder ClearOptionalInt32() {
10381 result.hasOptionalInt32 = false;
10382 result.optionalInt32_ = 0;
10383 return this;
10384 }
10385 }
10386 static TestMutualRecursionB() {
10387 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10388 }
10389 }
10390
csharptest445bdce2011-05-20 15:50:54 -050010391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10392 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10393 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010394 public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
10395 private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial();
10396 public static TestDupFieldNumber DefaultInstance {
10397 get { return defaultInstance; }
10398 }
10399
10400 public override TestDupFieldNumber DefaultInstanceForType {
10401 get { return defaultInstance; }
10402 }
10403
10404 protected override TestDupFieldNumber ThisMessage {
10405 get { return this; }
10406 }
10407
10408 public static pbd::MessageDescriptor Descriptor {
10409 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
10410 }
10411
10412 protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
10413 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
10414 }
10415
10416 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050010417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10418 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10419 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010420 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050010421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10422 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10423 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010424 public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
10425 private static readonly Foo defaultInstance = new Builder().BuildPartial();
10426 public static Foo DefaultInstance {
10427 get { return defaultInstance; }
10428 }
10429
10430 public override Foo DefaultInstanceForType {
10431 get { return defaultInstance; }
10432 }
10433
10434 protected override Foo ThisMessage {
10435 get { return this; }
10436 }
10437
10438 public static pbd::MessageDescriptor Descriptor {
10439 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
10440 }
10441
10442 protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
10443 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
10444 }
10445
10446 public const int AFieldNumber = 1;
10447 private bool hasA;
10448 private int a_ = 0;
10449 public bool HasA {
10450 get { return hasA; }
10451 }
10452 public int A {
10453 get { return a_; }
10454 }
10455
10456 public override bool IsInitialized {
10457 get {
10458 return true;
10459 }
10460 }
10461
csharptestffafdaa2011-06-03 12:58:14 -050010462 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010463 int size = SerializedSize;
10464 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -050010465 output.WriteInt32(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010466 }
10467 UnknownFields.WriteTo(output);
10468 }
10469
10470 private int memoizedSerializedSize = -1;
10471 public override int SerializedSize {
10472 get {
10473 int size = memoizedSerializedSize;
10474 if (size != -1) return size;
10475
10476 size = 0;
10477 if (HasA) {
10478 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10479 }
10480 size += UnknownFields.SerializedSize;
10481 memoizedSerializedSize = size;
10482 return size;
10483 }
10484 }
10485
10486 public static Foo ParseFrom(pb::ByteString data) {
10487 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10488 }
10489 public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10490 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10491 }
10492 public static Foo ParseFrom(byte[] data) {
10493 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10494 }
10495 public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10496 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10497 }
10498 public static Foo ParseFrom(global::System.IO.Stream input) {
10499 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10500 }
10501 public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10502 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10503 }
10504 public static Foo ParseDelimitedFrom(global::System.IO.Stream input) {
10505 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10506 }
10507 public static Foo ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10508 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10509 }
csharptest17699c22011-06-03 21:57:15 -050010510 public static Foo ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010511 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10512 }
csharptest17699c22011-06-03 21:57:15 -050010513 public static Foo ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010514 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10515 }
10516 public static Builder CreateBuilder() { return new Builder(); }
10517 public override Builder ToBuilder() { return CreateBuilder(this); }
10518 public override Builder CreateBuilderForType() { return new Builder(); }
10519 public static Builder CreateBuilder(Foo prototype) {
10520 return (Builder) new Builder().MergeFrom(prototype);
10521 }
10522
csharptest445bdce2011-05-20 15:50:54 -050010523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10524 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10525 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010526 public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> {
10527 protected override Builder ThisBuilder {
10528 get { return this; }
10529 }
10530 public Builder() {}
10531
10532 Foo result = new Foo();
10533
10534 protected override Foo MessageBeingBuilt {
10535 get { return result; }
10536 }
10537
10538 public override Builder Clear() {
10539 result = new Foo();
10540 return this;
10541 }
10542
10543 public override Builder Clone() {
10544 return new Builder().MergeFrom(result);
10545 }
10546
10547 public override pbd::MessageDescriptor DescriptorForType {
10548 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
10549 }
10550
10551 public override Foo DefaultInstanceForType {
10552 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
10553 }
10554
10555 public override Foo BuildPartial() {
10556 if (result == null) {
10557 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10558 }
10559 Foo returnMe = result;
10560 result = null;
10561 return returnMe;
10562 }
10563
10564 public override Builder MergeFrom(pb::IMessage other) {
10565 if (other is Foo) {
10566 return MergeFrom((Foo) other);
10567 } else {
10568 base.MergeFrom(other);
10569 return this;
10570 }
10571 }
10572
10573 public override Builder MergeFrom(Foo other) {
10574 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
10575 if (other.HasA) {
10576 A = other.A;
10577 }
10578 this.MergeUnknownFields(other.UnknownFields);
10579 return this;
10580 }
10581
csharptest17699c22011-06-03 21:57:15 -050010582 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010583 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10584 }
10585
csharptest17699c22011-06-03 21:57:15 -050010586 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010587 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050010588 uint tag;
10589 string field_name;
10590 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010591 switch (tag) {
10592 case 0: {
csharptest99284412011-06-03 14:51:06 -050010593 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010010594 }
10595 default: {
10596 if (pb::WireFormat.IsEndGroupTag(tag)) {
10597 if (unknownFields != null) {
10598 this.UnknownFields = unknownFields.Build();
10599 }
10600 return this;
10601 }
10602 if (unknownFields == null) {
10603 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10604 }
csharptestd2af9e92011-06-03 21:35:02 -050010605 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010606 break;
10607 }
10608 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050010609 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010610 break;
10611 }
10612 }
10613 }
csharptest123e5342011-06-03 14:15:21 -050010614
10615 if (unknownFields != null) {
10616 this.UnknownFields = unknownFields.Build();
10617 }
10618 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010010619 }
10620
10621
10622 public bool HasA {
10623 get { return result.HasA; }
10624 }
10625 public int A {
10626 get { return result.A; }
10627 set { SetA(value); }
10628 }
10629 public Builder SetA(int value) {
10630 result.hasA = true;
10631 result.a_ = value;
10632 return this;
10633 }
10634 public Builder ClearA() {
10635 result.hasA = false;
10636 result.a_ = 0;
10637 return this;
10638 }
10639 }
10640 static Foo() {
10641 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10642 }
10643 }
10644
csharptest445bdce2011-05-20 15:50:54 -050010645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10646 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10647 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010648 public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
10649 private static readonly Bar defaultInstance = new Builder().BuildPartial();
10650 public static Bar DefaultInstance {
10651 get { return defaultInstance; }
10652 }
10653
10654 public override Bar DefaultInstanceForType {
10655 get { return defaultInstance; }
10656 }
10657
10658 protected override Bar ThisMessage {
10659 get { return this; }
10660 }
10661
10662 public static pbd::MessageDescriptor Descriptor {
10663 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
10664 }
10665
10666 protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
10667 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
10668 }
10669
10670 public const int AFieldNumber = 1;
10671 private bool hasA;
10672 private int a_ = 0;
10673 public bool HasA {
10674 get { return hasA; }
10675 }
10676 public int A {
10677 get { return a_; }
10678 }
10679
10680 public override bool IsInitialized {
10681 get {
10682 return true;
10683 }
10684 }
10685
csharptestffafdaa2011-06-03 12:58:14 -050010686 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010687 int size = SerializedSize;
10688 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -050010689 output.WriteInt32(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010690 }
10691 UnknownFields.WriteTo(output);
10692 }
10693
10694 private int memoizedSerializedSize = -1;
10695 public override int SerializedSize {
10696 get {
10697 int size = memoizedSerializedSize;
10698 if (size != -1) return size;
10699
10700 size = 0;
10701 if (HasA) {
10702 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10703 }
10704 size += UnknownFields.SerializedSize;
10705 memoizedSerializedSize = size;
10706 return size;
10707 }
10708 }
10709
10710 public static Bar ParseFrom(pb::ByteString data) {
10711 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10712 }
10713 public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10714 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10715 }
10716 public static Bar ParseFrom(byte[] data) {
10717 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10718 }
10719 public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10720 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10721 }
10722 public static Bar ParseFrom(global::System.IO.Stream input) {
10723 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10724 }
10725 public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10726 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10727 }
10728 public static Bar ParseDelimitedFrom(global::System.IO.Stream input) {
10729 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10730 }
10731 public static Bar ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10732 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10733 }
csharptest17699c22011-06-03 21:57:15 -050010734 public static Bar ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010735 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10736 }
csharptest17699c22011-06-03 21:57:15 -050010737 public static Bar ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010738 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10739 }
10740 public static Builder CreateBuilder() { return new Builder(); }
10741 public override Builder ToBuilder() { return CreateBuilder(this); }
10742 public override Builder CreateBuilderForType() { return new Builder(); }
10743 public static Builder CreateBuilder(Bar prototype) {
10744 return (Builder) new Builder().MergeFrom(prototype);
10745 }
10746
csharptest445bdce2011-05-20 15:50:54 -050010747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10748 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10749 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010750 public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> {
10751 protected override Builder ThisBuilder {
10752 get { return this; }
10753 }
10754 public Builder() {}
10755
10756 Bar result = new Bar();
10757
10758 protected override Bar MessageBeingBuilt {
10759 get { return result; }
10760 }
10761
10762 public override Builder Clear() {
10763 result = new Bar();
10764 return this;
10765 }
10766
10767 public override Builder Clone() {
10768 return new Builder().MergeFrom(result);
10769 }
10770
10771 public override pbd::MessageDescriptor DescriptorForType {
10772 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
10773 }
10774
10775 public override Bar DefaultInstanceForType {
10776 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
10777 }
10778
10779 public override Bar BuildPartial() {
10780 if (result == null) {
10781 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10782 }
10783 Bar returnMe = result;
10784 result = null;
10785 return returnMe;
10786 }
10787
10788 public override Builder MergeFrom(pb::IMessage other) {
10789 if (other is Bar) {
10790 return MergeFrom((Bar) other);
10791 } else {
10792 base.MergeFrom(other);
10793 return this;
10794 }
10795 }
10796
10797 public override Builder MergeFrom(Bar other) {
10798 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
10799 if (other.HasA) {
10800 A = other.A;
10801 }
10802 this.MergeUnknownFields(other.UnknownFields);
10803 return this;
10804 }
10805
csharptest17699c22011-06-03 21:57:15 -050010806 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010807 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10808 }
10809
csharptest17699c22011-06-03 21:57:15 -050010810 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010811 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050010812 uint tag;
10813 string field_name;
10814 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010815 switch (tag) {
10816 case 0: {
csharptest99284412011-06-03 14:51:06 -050010817 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010010818 }
10819 default: {
10820 if (pb::WireFormat.IsEndGroupTag(tag)) {
10821 if (unknownFields != null) {
10822 this.UnknownFields = unknownFields.Build();
10823 }
10824 return this;
10825 }
10826 if (unknownFields == null) {
10827 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10828 }
csharptestd2af9e92011-06-03 21:35:02 -050010829 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010830 break;
10831 }
10832 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050010833 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010834 break;
10835 }
10836 }
10837 }
csharptest123e5342011-06-03 14:15:21 -050010838
10839 if (unknownFields != null) {
10840 this.UnknownFields = unknownFields.Build();
10841 }
10842 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010010843 }
10844
10845
10846 public bool HasA {
10847 get { return result.HasA; }
10848 }
10849 public int A {
10850 get { return result.A; }
10851 set { SetA(value); }
10852 }
10853 public Builder SetA(int value) {
10854 result.hasA = true;
10855 result.a_ = value;
10856 return this;
10857 }
10858 public Builder ClearA() {
10859 result.hasA = false;
10860 result.a_ = 0;
10861 return this;
10862 }
10863 }
10864 static Bar() {
10865 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10866 }
10867 }
10868
10869 }
10870 #endregion
10871
10872 public const int AFieldNumber = 1;
10873 private bool hasA;
10874 private int a_ = 0;
10875 public bool HasA {
10876 get { return hasA; }
10877 }
10878 public int A {
10879 get { return a_; }
10880 }
10881
10882 public const int FooFieldNumber = 2;
10883 private bool hasFoo;
10884 private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
10885 public bool HasFoo {
10886 get { return hasFoo; }
10887 }
10888 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
10889 get { return foo_; }
10890 }
10891
10892 public const int BarFieldNumber = 3;
10893 private bool hasBar;
10894 private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
10895 public bool HasBar {
10896 get { return hasBar; }
10897 }
10898 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
10899 get { return bar_; }
10900 }
10901
10902 public override bool IsInitialized {
10903 get {
10904 return true;
10905 }
10906 }
10907
csharptestffafdaa2011-06-03 12:58:14 -050010908 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010909 int size = SerializedSize;
10910 if (HasA) {
csharptest90922db2011-06-03 11:57:47 -050010911 output.WriteInt32(1, "a", A);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010912 }
10913 if (HasFoo) {
csharptest90922db2011-06-03 11:57:47 -050010914 output.WriteGroup(2, "foo", Foo);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010915 }
10916 if (HasBar) {
csharptest90922db2011-06-03 11:57:47 -050010917 output.WriteGroup(3, "bar", Bar);
Jon Skeet82bb0f12011-04-03 20:17:12 +010010918 }
10919 UnknownFields.WriteTo(output);
10920 }
10921
10922 private int memoizedSerializedSize = -1;
10923 public override int SerializedSize {
10924 get {
10925 int size = memoizedSerializedSize;
10926 if (size != -1) return size;
10927
10928 size = 0;
10929 if (HasA) {
10930 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10931 }
10932 if (HasFoo) {
10933 size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
10934 }
10935 if (HasBar) {
10936 size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
10937 }
10938 size += UnknownFields.SerializedSize;
10939 memoizedSerializedSize = size;
10940 return size;
10941 }
10942 }
10943
10944 public static TestDupFieldNumber ParseFrom(pb::ByteString data) {
10945 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10946 }
10947 public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10948 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10949 }
10950 public static TestDupFieldNumber ParseFrom(byte[] data) {
10951 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10952 }
10953 public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10954 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10955 }
10956 public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
10957 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10958 }
10959 public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10960 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10961 }
10962 public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input) {
10963 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10964 }
10965 public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10966 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10967 }
csharptest17699c22011-06-03 21:57:15 -050010968 public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010969 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10970 }
csharptest17699c22011-06-03 21:57:15 -050010971 public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010010972 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10973 }
10974 public static Builder CreateBuilder() { return new Builder(); }
10975 public override Builder ToBuilder() { return CreateBuilder(this); }
10976 public override Builder CreateBuilderForType() { return new Builder(); }
10977 public static Builder CreateBuilder(TestDupFieldNumber prototype) {
10978 return (Builder) new Builder().MergeFrom(prototype);
10979 }
10980
csharptest445bdce2011-05-20 15:50:54 -050010981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10982 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10983 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010984 public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> {
10985 protected override Builder ThisBuilder {
10986 get { return this; }
10987 }
10988 public Builder() {}
10989
10990 TestDupFieldNumber result = new TestDupFieldNumber();
10991
10992 protected override TestDupFieldNumber MessageBeingBuilt {
10993 get { return result; }
10994 }
10995
10996 public override Builder Clear() {
10997 result = new TestDupFieldNumber();
10998 return this;
10999 }
11000
11001 public override Builder Clone() {
11002 return new Builder().MergeFrom(result);
11003 }
11004
11005 public override pbd::MessageDescriptor DescriptorForType {
11006 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
11007 }
11008
11009 public override TestDupFieldNumber DefaultInstanceForType {
11010 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
11011 }
11012
11013 public override TestDupFieldNumber BuildPartial() {
11014 if (result == null) {
11015 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
11016 }
11017 TestDupFieldNumber returnMe = result;
11018 result = null;
11019 return returnMe;
11020 }
11021
11022 public override Builder MergeFrom(pb::IMessage other) {
11023 if (other is TestDupFieldNumber) {
11024 return MergeFrom((TestDupFieldNumber) other);
11025 } else {
11026 base.MergeFrom(other);
11027 return this;
11028 }
11029 }
11030
11031 public override Builder MergeFrom(TestDupFieldNumber other) {
11032 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
11033 if (other.HasA) {
11034 A = other.A;
11035 }
11036 if (other.HasFoo) {
11037 MergeFoo(other.Foo);
11038 }
11039 if (other.HasBar) {
11040 MergeBar(other.Bar);
11041 }
11042 this.MergeUnknownFields(other.UnknownFields);
11043 return this;
11044 }
11045
csharptest17699c22011-06-03 21:57:15 -050011046 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011047 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11048 }
11049
csharptest17699c22011-06-03 21:57:15 -050011050 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011051 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050011052 uint tag;
11053 string field_name;
11054 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011055 switch (tag) {
11056 case 0: {
csharptest99284412011-06-03 14:51:06 -050011057 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010011058 }
11059 default: {
11060 if (pb::WireFormat.IsEndGroupTag(tag)) {
11061 if (unknownFields != null) {
11062 this.UnknownFields = unknownFields.Build();
11063 }
11064 return this;
11065 }
11066 if (unknownFields == null) {
11067 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11068 }
csharptestd2af9e92011-06-03 21:35:02 -050011069 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011070 break;
11071 }
11072 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050011073 result.hasA |= input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011074 break;
11075 }
11076 case 19: {
11077 global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
11078 if (HasFoo) {
11079 subBuilder.MergeFrom(Foo);
11080 }
11081 input.ReadGroup(2, subBuilder, extensionRegistry);
11082 Foo = subBuilder.BuildPartial();
11083 break;
11084 }
11085 case 27: {
11086 global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
11087 if (HasBar) {
11088 subBuilder.MergeFrom(Bar);
11089 }
11090 input.ReadGroup(3, subBuilder, extensionRegistry);
11091 Bar = subBuilder.BuildPartial();
11092 break;
11093 }
11094 }
11095 }
csharptest123e5342011-06-03 14:15:21 -050011096
11097 if (unknownFields != null) {
11098 this.UnknownFields = unknownFields.Build();
11099 }
11100 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010011101 }
11102
11103
11104 public bool HasA {
11105 get { return result.HasA; }
11106 }
11107 public int A {
11108 get { return result.A; }
11109 set { SetA(value); }
11110 }
11111 public Builder SetA(int value) {
11112 result.hasA = true;
11113 result.a_ = value;
11114 return this;
11115 }
11116 public Builder ClearA() {
11117 result.hasA = false;
11118 result.a_ = 0;
11119 return this;
11120 }
11121
11122 public bool HasFoo {
11123 get { return result.HasFoo; }
11124 }
11125 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
11126 get { return result.Foo; }
11127 set { SetFoo(value); }
11128 }
11129 public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
11130 pb::ThrowHelper.ThrowIfNull(value, "value");
11131 result.hasFoo = true;
11132 result.foo_ = value;
11133 return this;
11134 }
11135 public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
11136 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11137 result.hasFoo = true;
11138 result.foo_ = builderForValue.Build();
11139 return this;
11140 }
11141 public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
11142 pb::ThrowHelper.ThrowIfNull(value, "value");
11143 if (result.HasFoo &&
11144 result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
11145 result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
11146 } else {
11147 result.foo_ = value;
11148 }
11149 result.hasFoo = true;
11150 return this;
11151 }
11152 public Builder ClearFoo() {
11153 result.hasFoo = false;
11154 result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
11155 return this;
11156 }
11157
11158 public bool HasBar {
11159 get { return result.HasBar; }
11160 }
11161 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
11162 get { return result.Bar; }
11163 set { SetBar(value); }
11164 }
11165 public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
11166 pb::ThrowHelper.ThrowIfNull(value, "value");
11167 result.hasBar = true;
11168 result.bar_ = value;
11169 return this;
11170 }
11171 public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
11172 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11173 result.hasBar = true;
11174 result.bar_ = builderForValue.Build();
11175 return this;
11176 }
11177 public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
11178 pb::ThrowHelper.ThrowIfNull(value, "value");
11179 if (result.HasBar &&
11180 result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
11181 result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
11182 } else {
11183 result.bar_ = value;
11184 }
11185 result.hasBar = true;
11186 return this;
11187 }
11188 public Builder ClearBar() {
11189 result.hasBar = false;
11190 result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
11191 return this;
11192 }
11193 }
11194 static TestDupFieldNumber() {
11195 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11196 }
11197 }
11198
csharptest445bdce2011-05-20 15:50:54 -050011199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11200 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11201 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011202 public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
11203 private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial();
11204 public static TestNestedMessageHasBits DefaultInstance {
11205 get { return defaultInstance; }
11206 }
11207
11208 public override TestNestedMessageHasBits DefaultInstanceForType {
11209 get { return defaultInstance; }
11210 }
11211
11212 protected override TestNestedMessageHasBits ThisMessage {
11213 get { return this; }
11214 }
11215
11216 public static pbd::MessageDescriptor Descriptor {
11217 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
11218 }
11219
11220 protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
11221 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
11222 }
11223
11224 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050011225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11226 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11227 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011228 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050011229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11230 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11231 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011232 public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
11233 private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
11234 public static NestedMessage DefaultInstance {
11235 get { return defaultInstance; }
11236 }
11237
11238 public override NestedMessage DefaultInstanceForType {
11239 get { return defaultInstance; }
11240 }
11241
11242 protected override NestedMessage ThisMessage {
11243 get { return this; }
11244 }
11245
11246 public static pbd::MessageDescriptor Descriptor {
11247 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
11248 }
11249
11250 protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
11251 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
11252 }
11253
11254 public const int NestedmessageRepeatedInt32FieldNumber = 1;
11255 private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>();
11256 public scg::IList<int> NestedmessageRepeatedInt32List {
11257 get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); }
11258 }
11259 public int NestedmessageRepeatedInt32Count {
11260 get { return nestedmessageRepeatedInt32_.Count; }
11261 }
11262 public int GetNestedmessageRepeatedInt32(int index) {
11263 return nestedmessageRepeatedInt32_[index];
11264 }
11265
11266 public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
11267 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
11268 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
11269 get { return nestedmessageRepeatedForeignmessage_; }
11270 }
11271 public int NestedmessageRepeatedForeignmessageCount {
11272 get { return nestedmessageRepeatedForeignmessage_.Count; }
11273 }
11274 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
11275 return nestedmessageRepeatedForeignmessage_[index];
11276 }
11277
11278 public override bool IsInitialized {
11279 get {
11280 return true;
11281 }
11282 }
11283
csharptestffafdaa2011-06-03 12:58:14 -050011284 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011285 int size = SerializedSize;
11286 if (nestedmessageRepeatedInt32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011287 output.WriteArray(pbd::FieldType.Int32, 1, "nestedmessage_repeated_int32", nestedmessageRepeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011288 }
csharptest90922db2011-06-03 11:57:47 -050011289 if (nestedmessageRepeatedForeignmessage_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -050011290 output.WriteArray(pbd::FieldType.Message, 2, "nestedmessage_repeated_foreignmessage", nestedmessageRepeatedForeignmessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011291 }
11292 UnknownFields.WriteTo(output);
11293 }
11294
11295 private int memoizedSerializedSize = -1;
11296 public override int SerializedSize {
11297 get {
11298 int size = memoizedSerializedSize;
11299 if (size != -1) return size;
11300
11301 size = 0;
11302 {
11303 int dataSize = 0;
11304 foreach (int element in NestedmessageRepeatedInt32List) {
11305 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
11306 }
11307 size += dataSize;
11308 size += 1 * nestedmessageRepeatedInt32_.Count;
11309 }
11310 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
11311 size += pb::CodedOutputStream.ComputeMessageSize(2, element);
11312 }
11313 size += UnknownFields.SerializedSize;
11314 memoizedSerializedSize = size;
11315 return size;
11316 }
11317 }
11318
11319 public static NestedMessage ParseFrom(pb::ByteString data) {
11320 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11321 }
11322 public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
11323 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11324 }
11325 public static NestedMessage ParseFrom(byte[] data) {
11326 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11327 }
11328 public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
11329 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11330 }
11331 public static NestedMessage ParseFrom(global::System.IO.Stream input) {
11332 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11333 }
11334 public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11335 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11336 }
11337 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
11338 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
11339 }
11340 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11341 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
11342 }
csharptest17699c22011-06-03 21:57:15 -050011343 public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011344 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11345 }
csharptest17699c22011-06-03 21:57:15 -050011346 public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011347 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11348 }
11349 public static Builder CreateBuilder() { return new Builder(); }
11350 public override Builder ToBuilder() { return CreateBuilder(this); }
11351 public override Builder CreateBuilderForType() { return new Builder(); }
11352 public static Builder CreateBuilder(NestedMessage prototype) {
11353 return (Builder) new Builder().MergeFrom(prototype);
11354 }
11355
csharptest445bdce2011-05-20 15:50:54 -050011356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11357 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11358 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011359 public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
11360 protected override Builder ThisBuilder {
11361 get { return this; }
11362 }
11363 public Builder() {}
11364
11365 NestedMessage result = new NestedMessage();
11366
11367 protected override NestedMessage MessageBeingBuilt {
11368 get { return result; }
11369 }
11370
11371 public override Builder Clear() {
11372 result = new NestedMessage();
11373 return this;
11374 }
11375
11376 public override Builder Clone() {
11377 return new Builder().MergeFrom(result);
11378 }
11379
11380 public override pbd::MessageDescriptor DescriptorForType {
11381 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
11382 }
11383
11384 public override NestedMessage DefaultInstanceForType {
11385 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
11386 }
11387
11388 public override NestedMessage BuildPartial() {
11389 if (result == null) {
11390 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
11391 }
11392 result.nestedmessageRepeatedInt32_.MakeReadOnly();
11393 result.nestedmessageRepeatedForeignmessage_.MakeReadOnly();
11394 NestedMessage returnMe = result;
11395 result = null;
11396 return returnMe;
11397 }
11398
11399 public override Builder MergeFrom(pb::IMessage other) {
11400 if (other is NestedMessage) {
11401 return MergeFrom((NestedMessage) other);
11402 } else {
11403 base.MergeFrom(other);
11404 return this;
11405 }
11406 }
11407
11408 public override Builder MergeFrom(NestedMessage other) {
11409 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
11410 if (other.nestedmessageRepeatedInt32_.Count != 0) {
11411 base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
11412 }
11413 if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
11414 base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
11415 }
11416 this.MergeUnknownFields(other.UnknownFields);
11417 return this;
11418 }
11419
csharptest17699c22011-06-03 21:57:15 -050011420 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011421 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11422 }
11423
csharptest17699c22011-06-03 21:57:15 -050011424 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011425 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050011426 uint tag;
11427 string field_name;
11428 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011429 switch (tag) {
11430 case 0: {
csharptest99284412011-06-03 14:51:06 -050011431 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010011432 }
11433 default: {
11434 if (pb::WireFormat.IsEndGroupTag(tag)) {
11435 if (unknownFields != null) {
11436 this.UnknownFields = unknownFields.Build();
11437 }
11438 return this;
11439 }
11440 if (unknownFields == null) {
11441 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11442 }
csharptestd2af9e92011-06-03 21:35:02 -050011443 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011444 break;
11445 }
11446 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050011447 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.nestedmessageRepeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011448 break;
11449 }
11450 case 18: {
csharptestd2af9e92011-06-03 21:35:02 -050011451 input.ReadMessageArray(tag, field_name, result.nestedmessageRepeatedForeignmessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011452 break;
11453 }
11454 }
11455 }
csharptest123e5342011-06-03 14:15:21 -050011456
11457 if (unknownFields != null) {
11458 this.UnknownFields = unknownFields.Build();
11459 }
11460 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010011461 }
11462
11463
11464 public pbc::IPopsicleList<int> NestedmessageRepeatedInt32List {
11465 get { return result.nestedmessageRepeatedInt32_; }
11466 }
11467 public int NestedmessageRepeatedInt32Count {
11468 get { return result.NestedmessageRepeatedInt32Count; }
11469 }
11470 public int GetNestedmessageRepeatedInt32(int index) {
11471 return result.GetNestedmessageRepeatedInt32(index);
11472 }
11473 public Builder SetNestedmessageRepeatedInt32(int index, int value) {
11474 result.nestedmessageRepeatedInt32_[index] = value;
11475 return this;
11476 }
11477 public Builder AddNestedmessageRepeatedInt32(int value) {
11478 result.nestedmessageRepeatedInt32_.Add(value);
11479 return this;
11480 }
11481 public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
11482 base.AddRange(values, result.nestedmessageRepeatedInt32_);
11483 return this;
11484 }
11485 public Builder ClearNestedmessageRepeatedInt32() {
11486 result.nestedmessageRepeatedInt32_.Clear();
11487 return this;
11488 }
11489
11490 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
11491 get { return result.nestedmessageRepeatedForeignmessage_; }
11492 }
11493 public int NestedmessageRepeatedForeignmessageCount {
11494 get { return result.NestedmessageRepeatedForeignmessageCount; }
11495 }
11496 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
11497 return result.GetNestedmessageRepeatedForeignmessage(index);
11498 }
11499 public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
11500 pb::ThrowHelper.ThrowIfNull(value, "value");
11501 result.nestedmessageRepeatedForeignmessage_[index] = value;
11502 return this;
11503 }
11504 public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
11505 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11506 result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
11507 return this;
11508 }
11509 public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
11510 pb::ThrowHelper.ThrowIfNull(value, "value");
11511 result.nestedmessageRepeatedForeignmessage_.Add(value);
11512 return this;
11513 }
11514 public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
11515 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11516 result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
11517 return this;
11518 }
11519 public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
11520 base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
11521 return this;
11522 }
11523 public Builder ClearNestedmessageRepeatedForeignmessage() {
11524 result.nestedmessageRepeatedForeignmessage_.Clear();
11525 return this;
11526 }
11527 }
11528 static NestedMessage() {
11529 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11530 }
11531 }
11532
11533 }
11534 #endregion
11535
11536 public const int OptionalNestedMessageFieldNumber = 1;
11537 private bool hasOptionalNestedMessage;
11538 private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
11539 public bool HasOptionalNestedMessage {
11540 get { return hasOptionalNestedMessage; }
11541 }
11542 public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
11543 get { return optionalNestedMessage_; }
11544 }
11545
11546 public override bool IsInitialized {
11547 get {
11548 return true;
11549 }
11550 }
11551
csharptestffafdaa2011-06-03 12:58:14 -050011552 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011553 int size = SerializedSize;
11554 if (HasOptionalNestedMessage) {
csharptest90922db2011-06-03 11:57:47 -050011555 output.WriteMessage(1, "optional_nested_message", OptionalNestedMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011556 }
11557 UnknownFields.WriteTo(output);
11558 }
11559
11560 private int memoizedSerializedSize = -1;
11561 public override int SerializedSize {
11562 get {
11563 int size = memoizedSerializedSize;
11564 if (size != -1) return size;
11565
11566 size = 0;
11567 if (HasOptionalNestedMessage) {
11568 size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
11569 }
11570 size += UnknownFields.SerializedSize;
11571 memoizedSerializedSize = size;
11572 return size;
11573 }
11574 }
11575
11576 public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
11577 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11578 }
11579 public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
11580 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11581 }
11582 public static TestNestedMessageHasBits ParseFrom(byte[] data) {
11583 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11584 }
11585 public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
11586 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11587 }
11588 public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
11589 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11590 }
11591 public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11592 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11593 }
11594 public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input) {
11595 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
11596 }
11597 public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11598 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
11599 }
csharptest17699c22011-06-03 21:57:15 -050011600 public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011601 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11602 }
csharptest17699c22011-06-03 21:57:15 -050011603 public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011604 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11605 }
11606 public static Builder CreateBuilder() { return new Builder(); }
11607 public override Builder ToBuilder() { return CreateBuilder(this); }
11608 public override Builder CreateBuilderForType() { return new Builder(); }
11609 public static Builder CreateBuilder(TestNestedMessageHasBits prototype) {
11610 return (Builder) new Builder().MergeFrom(prototype);
11611 }
11612
csharptest445bdce2011-05-20 15:50:54 -050011613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11614 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11615 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011616 public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> {
11617 protected override Builder ThisBuilder {
11618 get { return this; }
11619 }
11620 public Builder() {}
11621
11622 TestNestedMessageHasBits result = new TestNestedMessageHasBits();
11623
11624 protected override TestNestedMessageHasBits MessageBeingBuilt {
11625 get { return result; }
11626 }
11627
11628 public override Builder Clear() {
11629 result = new TestNestedMessageHasBits();
11630 return this;
11631 }
11632
11633 public override Builder Clone() {
11634 return new Builder().MergeFrom(result);
11635 }
11636
11637 public override pbd::MessageDescriptor DescriptorForType {
11638 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
11639 }
11640
11641 public override TestNestedMessageHasBits DefaultInstanceForType {
11642 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
11643 }
11644
11645 public override TestNestedMessageHasBits BuildPartial() {
11646 if (result == null) {
11647 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
11648 }
11649 TestNestedMessageHasBits returnMe = result;
11650 result = null;
11651 return returnMe;
11652 }
11653
11654 public override Builder MergeFrom(pb::IMessage other) {
11655 if (other is TestNestedMessageHasBits) {
11656 return MergeFrom((TestNestedMessageHasBits) other);
11657 } else {
11658 base.MergeFrom(other);
11659 return this;
11660 }
11661 }
11662
11663 public override Builder MergeFrom(TestNestedMessageHasBits other) {
11664 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
11665 if (other.HasOptionalNestedMessage) {
11666 MergeOptionalNestedMessage(other.OptionalNestedMessage);
11667 }
11668 this.MergeUnknownFields(other.UnknownFields);
11669 return this;
11670 }
11671
csharptest17699c22011-06-03 21:57:15 -050011672 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011673 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11674 }
11675
csharptest17699c22011-06-03 21:57:15 -050011676 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011677 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050011678 uint tag;
11679 string field_name;
11680 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011681 switch (tag) {
11682 case 0: {
csharptest99284412011-06-03 14:51:06 -050011683 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010011684 }
11685 default: {
11686 if (pb::WireFormat.IsEndGroupTag(tag)) {
11687 if (unknownFields != null) {
11688 this.UnknownFields = unknownFields.Build();
11689 }
11690 return this;
11691 }
11692 if (unknownFields == null) {
11693 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11694 }
csharptestd2af9e92011-06-03 21:35:02 -050011695 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011696 break;
11697 }
11698 case 10: {
11699 global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
11700 if (HasOptionalNestedMessage) {
11701 subBuilder.MergeFrom(OptionalNestedMessage);
11702 }
11703 input.ReadMessage(subBuilder, extensionRegistry);
11704 OptionalNestedMessage = subBuilder.BuildPartial();
11705 break;
11706 }
11707 }
11708 }
csharptest123e5342011-06-03 14:15:21 -050011709
11710 if (unknownFields != null) {
11711 this.UnknownFields = unknownFields.Build();
11712 }
11713 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010011714 }
11715
11716
11717 public bool HasOptionalNestedMessage {
11718 get { return result.HasOptionalNestedMessage; }
11719 }
11720 public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
11721 get { return result.OptionalNestedMessage; }
11722 set { SetOptionalNestedMessage(value); }
11723 }
11724 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
11725 pb::ThrowHelper.ThrowIfNull(value, "value");
11726 result.hasOptionalNestedMessage = true;
11727 result.optionalNestedMessage_ = value;
11728 return this;
11729 }
11730 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
11731 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11732 result.hasOptionalNestedMessage = true;
11733 result.optionalNestedMessage_ = builderForValue.Build();
11734 return this;
11735 }
11736 public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
11737 pb::ThrowHelper.ThrowIfNull(value, "value");
11738 if (result.HasOptionalNestedMessage &&
11739 result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
11740 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
11741 } else {
11742 result.optionalNestedMessage_ = value;
11743 }
11744 result.hasOptionalNestedMessage = true;
11745 return this;
11746 }
11747 public Builder ClearOptionalNestedMessage() {
11748 result.hasOptionalNestedMessage = false;
11749 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
11750 return this;
11751 }
11752 }
11753 static TestNestedMessageHasBits() {
11754 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11755 }
11756 }
11757
csharptest445bdce2011-05-20 15:50:54 -050011758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11759 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11760 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011761 public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
11762 private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial();
11763 public static TestCamelCaseFieldNames DefaultInstance {
11764 get { return defaultInstance; }
11765 }
11766
11767 public override TestCamelCaseFieldNames DefaultInstanceForType {
11768 get { return defaultInstance; }
11769 }
11770
11771 protected override TestCamelCaseFieldNames ThisMessage {
11772 get { return this; }
11773 }
11774
11775 public static pbd::MessageDescriptor Descriptor {
11776 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
11777 }
11778
11779 protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
11780 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
11781 }
11782
11783 public const int PrimitiveFieldFieldNumber = 1;
11784 private bool hasPrimitiveField;
11785 private int primitiveField_ = 0;
11786 public bool HasPrimitiveField {
11787 get { return hasPrimitiveField; }
11788 }
11789 public int PrimitiveField {
11790 get { return primitiveField_; }
11791 }
11792
11793 public const int StringFieldFieldNumber = 2;
11794 private bool hasStringField;
11795 private string stringField_ = "";
11796 public bool HasStringField {
11797 get { return hasStringField; }
11798 }
11799 public string StringField {
11800 get { return stringField_; }
11801 }
11802
11803 public const int EnumFieldFieldNumber = 3;
11804 private bool hasEnumField;
11805 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
11806 public bool HasEnumField {
11807 get { return hasEnumField; }
11808 }
11809 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
11810 get { return enumField_; }
11811 }
11812
11813 public const int MessageFieldFieldNumber = 4;
11814 private bool hasMessageField;
11815 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
11816 public bool HasMessageField {
11817 get { return hasMessageField; }
11818 }
11819 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
11820 get { return messageField_; }
11821 }
11822
11823 public const int StringPieceFieldFieldNumber = 5;
11824 private bool hasStringPieceField;
11825 private string stringPieceField_ = "";
11826 public bool HasStringPieceField {
11827 get { return hasStringPieceField; }
11828 }
11829 public string StringPieceField {
11830 get { return stringPieceField_; }
11831 }
11832
11833 public const int CordFieldFieldNumber = 6;
11834 private bool hasCordField;
11835 private string cordField_ = "";
11836 public bool HasCordField {
11837 get { return hasCordField; }
11838 }
11839 public string CordField {
11840 get { return cordField_; }
11841 }
11842
11843 public const int RepeatedPrimitiveFieldFieldNumber = 7;
11844 private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>();
11845 public scg::IList<int> RepeatedPrimitiveFieldList {
11846 get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); }
11847 }
11848 public int RepeatedPrimitiveFieldCount {
11849 get { return repeatedPrimitiveField_.Count; }
11850 }
11851 public int GetRepeatedPrimitiveField(int index) {
11852 return repeatedPrimitiveField_[index];
11853 }
11854
11855 public const int RepeatedStringFieldFieldNumber = 8;
11856 private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>();
11857 public scg::IList<string> RepeatedStringFieldList {
11858 get { return pbc::Lists.AsReadOnly(repeatedStringField_); }
11859 }
11860 public int RepeatedStringFieldCount {
11861 get { return repeatedStringField_.Count; }
11862 }
11863 public string GetRepeatedStringField(int index) {
11864 return repeatedStringField_[index];
11865 }
11866
11867 public const int RepeatedEnumFieldFieldNumber = 9;
11868 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
11869 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
11870 get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
11871 }
11872 public int RepeatedEnumFieldCount {
11873 get { return repeatedEnumField_.Count; }
11874 }
11875 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
11876 return repeatedEnumField_[index];
11877 }
11878
11879 public const int RepeatedMessageFieldFieldNumber = 10;
11880 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
11881 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
11882 get { return repeatedMessageField_; }
11883 }
11884 public int RepeatedMessageFieldCount {
11885 get { return repeatedMessageField_.Count; }
11886 }
11887 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
11888 return repeatedMessageField_[index];
11889 }
11890
11891 public const int RepeatedStringPieceFieldFieldNumber = 11;
11892 private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>();
11893 public scg::IList<string> RepeatedStringPieceFieldList {
11894 get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); }
11895 }
11896 public int RepeatedStringPieceFieldCount {
11897 get { return repeatedStringPieceField_.Count; }
11898 }
11899 public string GetRepeatedStringPieceField(int index) {
11900 return repeatedStringPieceField_[index];
11901 }
11902
11903 public const int RepeatedCordFieldFieldNumber = 12;
11904 private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>();
11905 public scg::IList<string> RepeatedCordFieldList {
11906 get { return pbc::Lists.AsReadOnly(repeatedCordField_); }
11907 }
11908 public int RepeatedCordFieldCount {
11909 get { return repeatedCordField_.Count; }
11910 }
11911 public string GetRepeatedCordField(int index) {
11912 return repeatedCordField_[index];
11913 }
11914
11915 public override bool IsInitialized {
11916 get {
11917 return true;
11918 }
11919 }
11920
csharptestffafdaa2011-06-03 12:58:14 -050011921 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010011922 int size = SerializedSize;
11923 if (HasPrimitiveField) {
csharptest90922db2011-06-03 11:57:47 -050011924 output.WriteInt32(1, "PrimitiveField", PrimitiveField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011925 }
11926 if (HasStringField) {
csharptest90922db2011-06-03 11:57:47 -050011927 output.WriteString(2, "StringField", StringField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011928 }
11929 if (HasEnumField) {
csharptest90922db2011-06-03 11:57:47 -050011930 output.WriteEnum(3, "EnumField", (int) EnumField, EnumField.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +010011931 }
11932 if (HasMessageField) {
csharptest90922db2011-06-03 11:57:47 -050011933 output.WriteMessage(4, "MessageField", MessageField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011934 }
11935 if (HasStringPieceField) {
csharptest90922db2011-06-03 11:57:47 -050011936 output.WriteString(5, "StringPieceField", StringPieceField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011937 }
11938 if (HasCordField) {
csharptest90922db2011-06-03 11:57:47 -050011939 output.WriteString(6, "CordField", CordField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011940 }
11941 if (repeatedPrimitiveField_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011942 output.WriteArray(pbd::FieldType.Int32, 7, "RepeatedPrimitiveField", repeatedPrimitiveField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011943 }
11944 if (repeatedStringField_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011945 output.WriteArray(pbd::FieldType.String, 8, "RepeatedStringField", repeatedStringField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011946 }
11947 if (repeatedEnumField_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011948 output.WriteArray(pbd::FieldType.Enum, 9, "RepeatedEnumField", repeatedEnumField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011949 }
csharptest90922db2011-06-03 11:57:47 -050011950 if (repeatedMessageField_.Count > 0) {
csharptestffafdaa2011-06-03 12:58:14 -050011951 output.WriteArray(pbd::FieldType.Message, 10, "RepeatedMessageField", repeatedMessageField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011952 }
11953 if (repeatedStringPieceField_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011954 output.WriteArray(pbd::FieldType.String, 11, "RepeatedStringPieceField", repeatedStringPieceField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011955 }
11956 if (repeatedCordField_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050011957 output.WriteArray(pbd::FieldType.String, 12, "RepeatedCordField", repeatedCordField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010011958 }
11959 UnknownFields.WriteTo(output);
11960 }
11961
11962 private int memoizedSerializedSize = -1;
11963 public override int SerializedSize {
11964 get {
11965 int size = memoizedSerializedSize;
11966 if (size != -1) return size;
11967
11968 size = 0;
11969 if (HasPrimitiveField) {
11970 size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
11971 }
11972 if (HasStringField) {
11973 size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
11974 }
11975 if (HasEnumField) {
11976 size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField);
11977 }
11978 if (HasMessageField) {
11979 size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
11980 }
11981 if (HasStringPieceField) {
11982 size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
11983 }
11984 if (HasCordField) {
11985 size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
11986 }
11987 {
11988 int dataSize = 0;
11989 foreach (int element in RepeatedPrimitiveFieldList) {
11990 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
11991 }
11992 size += dataSize;
11993 size += 1 * repeatedPrimitiveField_.Count;
11994 }
11995 {
11996 int dataSize = 0;
11997 foreach (string element in RepeatedStringFieldList) {
11998 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
11999 }
12000 size += dataSize;
12001 size += 1 * repeatedStringField_.Count;
12002 }
12003 {
12004 int dataSize = 0;
12005 if (repeatedEnumField_.Count > 0) {
12006 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedEnumField_) {
12007 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
12008 }
12009 size += dataSize;
12010 size += 1 * repeatedEnumField_.Count;
12011 }
12012 }
12013 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
12014 size += pb::CodedOutputStream.ComputeMessageSize(10, element);
12015 }
12016 {
12017 int dataSize = 0;
12018 foreach (string element in RepeatedStringPieceFieldList) {
12019 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
12020 }
12021 size += dataSize;
12022 size += 1 * repeatedStringPieceField_.Count;
12023 }
12024 {
12025 int dataSize = 0;
12026 foreach (string element in RepeatedCordFieldList) {
12027 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
12028 }
12029 size += dataSize;
12030 size += 1 * repeatedCordField_.Count;
12031 }
12032 size += UnknownFields.SerializedSize;
12033 memoizedSerializedSize = size;
12034 return size;
12035 }
12036 }
12037
12038 public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
12039 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12040 }
12041 public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
12042 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12043 }
12044 public static TestCamelCaseFieldNames ParseFrom(byte[] data) {
12045 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12046 }
12047 public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
12048 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12049 }
12050 public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
12051 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12052 }
12053 public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12054 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12055 }
12056 public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input) {
12057 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
12058 }
12059 public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12060 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
12061 }
csharptest17699c22011-06-03 21:57:15 -050012062 public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012063 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12064 }
csharptest17699c22011-06-03 21:57:15 -050012065 public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012066 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12067 }
12068 public static Builder CreateBuilder() { return new Builder(); }
12069 public override Builder ToBuilder() { return CreateBuilder(this); }
12070 public override Builder CreateBuilderForType() { return new Builder(); }
12071 public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) {
12072 return (Builder) new Builder().MergeFrom(prototype);
12073 }
12074
csharptest445bdce2011-05-20 15:50:54 -050012075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12076 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12077 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012078 public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> {
12079 protected override Builder ThisBuilder {
12080 get { return this; }
12081 }
12082 public Builder() {}
12083
12084 TestCamelCaseFieldNames result = new TestCamelCaseFieldNames();
12085
12086 protected override TestCamelCaseFieldNames MessageBeingBuilt {
12087 get { return result; }
12088 }
12089
12090 public override Builder Clear() {
12091 result = new TestCamelCaseFieldNames();
12092 return this;
12093 }
12094
12095 public override Builder Clone() {
12096 return new Builder().MergeFrom(result);
12097 }
12098
12099 public override pbd::MessageDescriptor DescriptorForType {
12100 get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
12101 }
12102
12103 public override TestCamelCaseFieldNames DefaultInstanceForType {
12104 get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
12105 }
12106
12107 public override TestCamelCaseFieldNames BuildPartial() {
12108 if (result == null) {
12109 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
12110 }
12111 result.repeatedPrimitiveField_.MakeReadOnly();
12112 result.repeatedStringField_.MakeReadOnly();
12113 result.repeatedEnumField_.MakeReadOnly();
12114 result.repeatedMessageField_.MakeReadOnly();
12115 result.repeatedStringPieceField_.MakeReadOnly();
12116 result.repeatedCordField_.MakeReadOnly();
12117 TestCamelCaseFieldNames returnMe = result;
12118 result = null;
12119 return returnMe;
12120 }
12121
12122 public override Builder MergeFrom(pb::IMessage other) {
12123 if (other is TestCamelCaseFieldNames) {
12124 return MergeFrom((TestCamelCaseFieldNames) other);
12125 } else {
12126 base.MergeFrom(other);
12127 return this;
12128 }
12129 }
12130
12131 public override Builder MergeFrom(TestCamelCaseFieldNames other) {
12132 if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
12133 if (other.HasPrimitiveField) {
12134 PrimitiveField = other.PrimitiveField;
12135 }
12136 if (other.HasStringField) {
12137 StringField = other.StringField;
12138 }
12139 if (other.HasEnumField) {
12140 EnumField = other.EnumField;
12141 }
12142 if (other.HasMessageField) {
12143 MergeMessageField(other.MessageField);
12144 }
12145 if (other.HasStringPieceField) {
12146 StringPieceField = other.StringPieceField;
12147 }
12148 if (other.HasCordField) {
12149 CordField = other.CordField;
12150 }
12151 if (other.repeatedPrimitiveField_.Count != 0) {
12152 base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
12153 }
12154 if (other.repeatedStringField_.Count != 0) {
12155 base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
12156 }
12157 if (other.repeatedEnumField_.Count != 0) {
12158 base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
12159 }
12160 if (other.repeatedMessageField_.Count != 0) {
12161 base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
12162 }
12163 if (other.repeatedStringPieceField_.Count != 0) {
12164 base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
12165 }
12166 if (other.repeatedCordField_.Count != 0) {
12167 base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
12168 }
12169 this.MergeUnknownFields(other.UnknownFields);
12170 return this;
12171 }
12172
csharptest17699c22011-06-03 21:57:15 -050012173 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012174 return MergeFrom(input, pb::ExtensionRegistry.Empty);
12175 }
12176
csharptest17699c22011-06-03 21:57:15 -050012177 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012178 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050012179 uint tag;
12180 string field_name;
12181 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012182 switch (tag) {
12183 case 0: {
csharptest99284412011-06-03 14:51:06 -050012184 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010012185 }
12186 default: {
12187 if (pb::WireFormat.IsEndGroupTag(tag)) {
12188 if (unknownFields != null) {
12189 this.UnknownFields = unknownFields.Build();
12190 }
12191 return this;
12192 }
12193 if (unknownFields == null) {
12194 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12195 }
csharptestd2af9e92011-06-03 21:35:02 -050012196 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012197 break;
12198 }
12199 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050012200 result.hasPrimitiveField |= input.ReadInt32(ref result.primitiveField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012201 break;
12202 }
12203 case 18: {
csharptestd2af9e92011-06-03 21:35:02 -050012204 result.hasStringField |= input.ReadString(ref result.stringField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012205 break;
12206 }
12207 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -050012208 object unknown;
12209 if(input.ReadEnum(ref result.enumField_, out unknown)) {
12210 result.hasEnumField = true;
12211 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012212 if (unknownFields == null) {
12213 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12214 }
csharptestd2af9e92011-06-03 21:35:02 -050012215 unknownFields.MergeVarintField(3, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012216 }
12217 break;
12218 }
12219 case 34: {
12220 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
12221 if (HasMessageField) {
12222 subBuilder.MergeFrom(MessageField);
12223 }
12224 input.ReadMessage(subBuilder, extensionRegistry);
12225 MessageField = subBuilder.BuildPartial();
12226 break;
12227 }
12228 case 42: {
csharptestd2af9e92011-06-03 21:35:02 -050012229 result.hasStringPieceField |= input.ReadString(ref result.stringPieceField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012230 break;
12231 }
12232 case 50: {
csharptestd2af9e92011-06-03 21:35:02 -050012233 result.hasCordField |= input.ReadString(ref result.cordField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012234 break;
12235 }
12236 case 56: {
csharptestd2af9e92011-06-03 21:35:02 -050012237 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedPrimitiveField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012238 break;
12239 }
12240 case 66: {
csharptestd2af9e92011-06-03 21:35:02 -050012241 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012242 break;
12243 }
12244 case 72: {
csharptestd2af9e92011-06-03 21:35:02 -050012245 scg::ICollection<object> unknownItems;
12246 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedEnumField_, out unknownItems);
12247 if (unknownItems != null) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012248 if (unknownFields == null) {
12249 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12250 }
csharptestd2af9e92011-06-03 21:35:02 -050012251 foreach (object rawValue in unknownItems)
12252 if (rawValue is int)
12253 unknownFields.MergeVarintField(9, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012254 }
12255 break;
12256 }
12257 case 82: {
csharptestd2af9e92011-06-03 21:35:02 -050012258 input.ReadMessageArray(tag, field_name, result.repeatedMessageField_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012259 break;
12260 }
12261 case 90: {
csharptestd2af9e92011-06-03 21:35:02 -050012262 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringPieceField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012263 break;
12264 }
12265 case 98: {
csharptestd2af9e92011-06-03 21:35:02 -050012266 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedCordField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012267 break;
12268 }
12269 }
12270 }
csharptest123e5342011-06-03 14:15:21 -050012271
12272 if (unknownFields != null) {
12273 this.UnknownFields = unknownFields.Build();
12274 }
12275 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010012276 }
12277
12278
12279 public bool HasPrimitiveField {
12280 get { return result.HasPrimitiveField; }
12281 }
12282 public int PrimitiveField {
12283 get { return result.PrimitiveField; }
12284 set { SetPrimitiveField(value); }
12285 }
12286 public Builder SetPrimitiveField(int value) {
12287 result.hasPrimitiveField = true;
12288 result.primitiveField_ = value;
12289 return this;
12290 }
12291 public Builder ClearPrimitiveField() {
12292 result.hasPrimitiveField = false;
12293 result.primitiveField_ = 0;
12294 return this;
12295 }
12296
12297 public bool HasStringField {
12298 get { return result.HasStringField; }
12299 }
12300 public string StringField {
12301 get { return result.StringField; }
12302 set { SetStringField(value); }
12303 }
12304 public Builder SetStringField(string value) {
12305 pb::ThrowHelper.ThrowIfNull(value, "value");
12306 result.hasStringField = true;
12307 result.stringField_ = value;
12308 return this;
12309 }
12310 public Builder ClearStringField() {
12311 result.hasStringField = false;
12312 result.stringField_ = "";
12313 return this;
12314 }
12315
12316 public bool HasEnumField {
12317 get { return result.HasEnumField; }
12318 }
12319 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
12320 get { return result.EnumField; }
12321 set { SetEnumField(value); }
12322 }
12323 public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12324 result.hasEnumField = true;
12325 result.enumField_ = value;
12326 return this;
12327 }
12328 public Builder ClearEnumField() {
12329 result.hasEnumField = false;
12330 result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
12331 return this;
12332 }
12333
12334 public bool HasMessageField {
12335 get { return result.HasMessageField; }
12336 }
12337 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
12338 get { return result.MessageField; }
12339 set { SetMessageField(value); }
12340 }
12341 public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12342 pb::ThrowHelper.ThrowIfNull(value, "value");
12343 result.hasMessageField = true;
12344 result.messageField_ = value;
12345 return this;
12346 }
12347 public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12348 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12349 result.hasMessageField = true;
12350 result.messageField_ = builderForValue.Build();
12351 return this;
12352 }
12353 public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12354 pb::ThrowHelper.ThrowIfNull(value, "value");
12355 if (result.HasMessageField &&
12356 result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
12357 result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
12358 } else {
12359 result.messageField_ = value;
12360 }
12361 result.hasMessageField = true;
12362 return this;
12363 }
12364 public Builder ClearMessageField() {
12365 result.hasMessageField = false;
12366 result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
12367 return this;
12368 }
12369
12370 public bool HasStringPieceField {
12371 get { return result.HasStringPieceField; }
12372 }
12373 public string StringPieceField {
12374 get { return result.StringPieceField; }
12375 set { SetStringPieceField(value); }
12376 }
12377 public Builder SetStringPieceField(string value) {
12378 pb::ThrowHelper.ThrowIfNull(value, "value");
12379 result.hasStringPieceField = true;
12380 result.stringPieceField_ = value;
12381 return this;
12382 }
12383 public Builder ClearStringPieceField() {
12384 result.hasStringPieceField = false;
12385 result.stringPieceField_ = "";
12386 return this;
12387 }
12388
12389 public bool HasCordField {
12390 get { return result.HasCordField; }
12391 }
12392 public string CordField {
12393 get { return result.CordField; }
12394 set { SetCordField(value); }
12395 }
12396 public Builder SetCordField(string value) {
12397 pb::ThrowHelper.ThrowIfNull(value, "value");
12398 result.hasCordField = true;
12399 result.cordField_ = value;
12400 return this;
12401 }
12402 public Builder ClearCordField() {
12403 result.hasCordField = false;
12404 result.cordField_ = "";
12405 return this;
12406 }
12407
12408 public pbc::IPopsicleList<int> RepeatedPrimitiveFieldList {
12409 get { return result.repeatedPrimitiveField_; }
12410 }
12411 public int RepeatedPrimitiveFieldCount {
12412 get { return result.RepeatedPrimitiveFieldCount; }
12413 }
12414 public int GetRepeatedPrimitiveField(int index) {
12415 return result.GetRepeatedPrimitiveField(index);
12416 }
12417 public Builder SetRepeatedPrimitiveField(int index, int value) {
12418 result.repeatedPrimitiveField_[index] = value;
12419 return this;
12420 }
12421 public Builder AddRepeatedPrimitiveField(int value) {
12422 result.repeatedPrimitiveField_.Add(value);
12423 return this;
12424 }
12425 public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
12426 base.AddRange(values, result.repeatedPrimitiveField_);
12427 return this;
12428 }
12429 public Builder ClearRepeatedPrimitiveField() {
12430 result.repeatedPrimitiveField_.Clear();
12431 return this;
12432 }
12433
12434 public pbc::IPopsicleList<string> RepeatedStringFieldList {
12435 get { return result.repeatedStringField_; }
12436 }
12437 public int RepeatedStringFieldCount {
12438 get { return result.RepeatedStringFieldCount; }
12439 }
12440 public string GetRepeatedStringField(int index) {
12441 return result.GetRepeatedStringField(index);
12442 }
12443 public Builder SetRepeatedStringField(int index, string value) {
12444 pb::ThrowHelper.ThrowIfNull(value, "value");
12445 result.repeatedStringField_[index] = value;
12446 return this;
12447 }
12448 public Builder AddRepeatedStringField(string value) {
12449 pb::ThrowHelper.ThrowIfNull(value, "value");
12450 result.repeatedStringField_.Add(value);
12451 return this;
12452 }
12453 public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
12454 base.AddRange(values, result.repeatedStringField_);
12455 return this;
12456 }
12457 public Builder ClearRepeatedStringField() {
12458 result.repeatedStringField_.Clear();
12459 return this;
12460 }
12461
12462 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
12463 get { return result.repeatedEnumField_; }
12464 }
12465 public int RepeatedEnumFieldCount {
12466 get { return result.RepeatedEnumFieldCount; }
12467 }
12468 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
12469 return result.GetRepeatedEnumField(index);
12470 }
12471 public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12472 result.repeatedEnumField_[index] = value;
12473 return this;
12474 }
12475 public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12476 result.repeatedEnumField_.Add(value);
12477 return this;
12478 }
12479 public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
12480 base.AddRange(values, result.repeatedEnumField_);
12481 return this;
12482 }
12483 public Builder ClearRepeatedEnumField() {
12484 result.repeatedEnumField_.Clear();
12485 return this;
12486 }
12487
12488 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
12489 get { return result.repeatedMessageField_; }
12490 }
12491 public int RepeatedMessageFieldCount {
12492 get { return result.RepeatedMessageFieldCount; }
12493 }
12494 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
12495 return result.GetRepeatedMessageField(index);
12496 }
12497 public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12498 pb::ThrowHelper.ThrowIfNull(value, "value");
12499 result.repeatedMessageField_[index] = value;
12500 return this;
12501 }
12502 public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12503 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12504 result.repeatedMessageField_[index] = builderForValue.Build();
12505 return this;
12506 }
12507 public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12508 pb::ThrowHelper.ThrowIfNull(value, "value");
12509 result.repeatedMessageField_.Add(value);
12510 return this;
12511 }
12512 public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12513 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12514 result.repeatedMessageField_.Add(builderForValue.Build());
12515 return this;
12516 }
12517 public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
12518 base.AddRange(values, result.repeatedMessageField_);
12519 return this;
12520 }
12521 public Builder ClearRepeatedMessageField() {
12522 result.repeatedMessageField_.Clear();
12523 return this;
12524 }
12525
12526 public pbc::IPopsicleList<string> RepeatedStringPieceFieldList {
12527 get { return result.repeatedStringPieceField_; }
12528 }
12529 public int RepeatedStringPieceFieldCount {
12530 get { return result.RepeatedStringPieceFieldCount; }
12531 }
12532 public string GetRepeatedStringPieceField(int index) {
12533 return result.GetRepeatedStringPieceField(index);
12534 }
12535 public Builder SetRepeatedStringPieceField(int index, string value) {
12536 pb::ThrowHelper.ThrowIfNull(value, "value");
12537 result.repeatedStringPieceField_[index] = value;
12538 return this;
12539 }
12540 public Builder AddRepeatedStringPieceField(string value) {
12541 pb::ThrowHelper.ThrowIfNull(value, "value");
12542 result.repeatedStringPieceField_.Add(value);
12543 return this;
12544 }
12545 public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
12546 base.AddRange(values, result.repeatedStringPieceField_);
12547 return this;
12548 }
12549 public Builder ClearRepeatedStringPieceField() {
12550 result.repeatedStringPieceField_.Clear();
12551 return this;
12552 }
12553
12554 public pbc::IPopsicleList<string> RepeatedCordFieldList {
12555 get { return result.repeatedCordField_; }
12556 }
12557 public int RepeatedCordFieldCount {
12558 get { return result.RepeatedCordFieldCount; }
12559 }
12560 public string GetRepeatedCordField(int index) {
12561 return result.GetRepeatedCordField(index);
12562 }
12563 public Builder SetRepeatedCordField(int index, string value) {
12564 pb::ThrowHelper.ThrowIfNull(value, "value");
12565 result.repeatedCordField_[index] = value;
12566 return this;
12567 }
12568 public Builder AddRepeatedCordField(string value) {
12569 pb::ThrowHelper.ThrowIfNull(value, "value");
12570 result.repeatedCordField_.Add(value);
12571 return this;
12572 }
12573 public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
12574 base.AddRange(values, result.repeatedCordField_);
12575 return this;
12576 }
12577 public Builder ClearRepeatedCordField() {
12578 result.repeatedCordField_.Clear();
12579 return this;
12580 }
12581 }
12582 static TestCamelCaseFieldNames() {
12583 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
12584 }
12585 }
12586
csharptest445bdce2011-05-20 15:50:54 -050012587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12588 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12589 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012590 public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
12591 private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial();
12592 public static TestFieldOrderings DefaultInstance {
12593 get { return defaultInstance; }
12594 }
12595
12596 public override TestFieldOrderings DefaultInstanceForType {
12597 get { return defaultInstance; }
12598 }
12599
12600 protected override TestFieldOrderings ThisMessage {
12601 get { return this; }
12602 }
12603
12604 public static pbd::MessageDescriptor Descriptor {
12605 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
12606 }
12607
12608 protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
12609 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
12610 }
12611
12612 public const int MyStringFieldNumber = 11;
12613 private bool hasMyString;
12614 private string myString_ = "";
12615 public bool HasMyString {
12616 get { return hasMyString; }
12617 }
12618 public string MyString {
12619 get { return myString_; }
12620 }
12621
12622 public const int MyIntFieldNumber = 1;
12623 private bool hasMyInt;
12624 private long myInt_ = 0L;
12625 public bool HasMyInt {
12626 get { return hasMyInt; }
12627 }
12628 public long MyInt {
12629 get { return myInt_; }
12630 }
12631
12632 public const int MyFloatFieldNumber = 101;
12633 private bool hasMyFloat;
12634 private float myFloat_ = 0F;
12635 public bool HasMyFloat {
12636 get { return hasMyFloat; }
12637 }
12638 public float MyFloat {
12639 get { return myFloat_; }
12640 }
12641
12642 public override bool IsInitialized {
12643 get {
12644 if (!ExtensionsAreInitialized) return false;
12645 return true;
12646 }
12647 }
12648
csharptestffafdaa2011-06-03 12:58:14 -050012649 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012650 int size = SerializedSize;
12651 pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
12652 if (HasMyInt) {
csharptest90922db2011-06-03 11:57:47 -050012653 output.WriteInt64(1, "my_int", MyInt);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012654 }
12655 extensionWriter.WriteUntil(11, output);
12656 if (HasMyString) {
csharptest90922db2011-06-03 11:57:47 -050012657 output.WriteString(11, "my_string", MyString);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012658 }
12659 extensionWriter.WriteUntil(101, output);
12660 if (HasMyFloat) {
csharptest90922db2011-06-03 11:57:47 -050012661 output.WriteFloat(101, "my_float", MyFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012662 }
12663 UnknownFields.WriteTo(output);
12664 }
12665
12666 private int memoizedSerializedSize = -1;
12667 public override int SerializedSize {
12668 get {
12669 int size = memoizedSerializedSize;
12670 if (size != -1) return size;
12671
12672 size = 0;
12673 if (HasMyString) {
12674 size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
12675 }
12676 if (HasMyInt) {
12677 size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
12678 }
12679 if (HasMyFloat) {
12680 size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
12681 }
12682 size += ExtensionsSerializedSize;
12683 size += UnknownFields.SerializedSize;
12684 memoizedSerializedSize = size;
12685 return size;
12686 }
12687 }
12688
12689 public static TestFieldOrderings ParseFrom(pb::ByteString data) {
12690 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12691 }
12692 public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
12693 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12694 }
12695 public static TestFieldOrderings ParseFrom(byte[] data) {
12696 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12697 }
12698 public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
12699 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12700 }
12701 public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
12702 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12703 }
12704 public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12705 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12706 }
12707 public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input) {
12708 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
12709 }
12710 public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12711 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
12712 }
csharptest17699c22011-06-03 21:57:15 -050012713 public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012714 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12715 }
csharptest17699c22011-06-03 21:57:15 -050012716 public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012717 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12718 }
12719 public static Builder CreateBuilder() { return new Builder(); }
12720 public override Builder ToBuilder() { return CreateBuilder(this); }
12721 public override Builder CreateBuilderForType() { return new Builder(); }
12722 public static Builder CreateBuilder(TestFieldOrderings prototype) {
12723 return (Builder) new Builder().MergeFrom(prototype);
12724 }
12725
csharptest445bdce2011-05-20 15:50:54 -050012726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12727 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12728 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012729 public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> {
12730 protected override Builder ThisBuilder {
12731 get { return this; }
12732 }
12733 public Builder() {}
12734
12735 TestFieldOrderings result = new TestFieldOrderings();
12736
12737 protected override TestFieldOrderings MessageBeingBuilt {
12738 get { return result; }
12739 }
12740
12741 public override Builder Clear() {
12742 result = new TestFieldOrderings();
12743 return this;
12744 }
12745
12746 public override Builder Clone() {
12747 return new Builder().MergeFrom(result);
12748 }
12749
12750 public override pbd::MessageDescriptor DescriptorForType {
12751 get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
12752 }
12753
12754 public override TestFieldOrderings DefaultInstanceForType {
12755 get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
12756 }
12757
12758 public override TestFieldOrderings BuildPartial() {
12759 if (result == null) {
12760 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
12761 }
12762 TestFieldOrderings returnMe = result;
12763 result = null;
12764 return returnMe;
12765 }
12766
12767 public override Builder MergeFrom(pb::IMessage other) {
12768 if (other is TestFieldOrderings) {
12769 return MergeFrom((TestFieldOrderings) other);
12770 } else {
12771 base.MergeFrom(other);
12772 return this;
12773 }
12774 }
12775
12776 public override Builder MergeFrom(TestFieldOrderings other) {
12777 if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
12778 if (other.HasMyString) {
12779 MyString = other.MyString;
12780 }
12781 if (other.HasMyInt) {
12782 MyInt = other.MyInt;
12783 }
12784 if (other.HasMyFloat) {
12785 MyFloat = other.MyFloat;
12786 }
12787 this.MergeExtensionFields(other);
12788 this.MergeUnknownFields(other.UnknownFields);
12789 return this;
12790 }
12791
csharptest17699c22011-06-03 21:57:15 -050012792 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012793 return MergeFrom(input, pb::ExtensionRegistry.Empty);
12794 }
12795
csharptest17699c22011-06-03 21:57:15 -050012796 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012797 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050012798 uint tag;
12799 string field_name;
12800 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010012801 switch (tag) {
12802 case 0: {
csharptest99284412011-06-03 14:51:06 -050012803 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010012804 }
12805 default: {
12806 if (pb::WireFormat.IsEndGroupTag(tag)) {
12807 if (unknownFields != null) {
12808 this.UnknownFields = unknownFields.Build();
12809 }
12810 return this;
12811 }
12812 if (unknownFields == null) {
12813 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12814 }
csharptestd2af9e92011-06-03 21:35:02 -050012815 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012816 break;
12817 }
12818 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -050012819 result.hasMyInt |= input.ReadInt64(ref result.myInt_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012820 break;
12821 }
12822 case 90: {
csharptestd2af9e92011-06-03 21:35:02 -050012823 result.hasMyString |= input.ReadString(ref result.myString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012824 break;
12825 }
12826 case 813: {
csharptestd2af9e92011-06-03 21:35:02 -050012827 result.hasMyFloat |= input.ReadFloat(ref result.myFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010012828 break;
12829 }
12830 }
12831 }
csharptest123e5342011-06-03 14:15:21 -050012832
12833 if (unknownFields != null) {
12834 this.UnknownFields = unknownFields.Build();
12835 }
12836 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010012837 }
12838
12839
12840 public bool HasMyString {
12841 get { return result.HasMyString; }
12842 }
12843 public string MyString {
12844 get { return result.MyString; }
12845 set { SetMyString(value); }
12846 }
12847 public Builder SetMyString(string value) {
12848 pb::ThrowHelper.ThrowIfNull(value, "value");
12849 result.hasMyString = true;
12850 result.myString_ = value;
12851 return this;
12852 }
12853 public Builder ClearMyString() {
12854 result.hasMyString = false;
12855 result.myString_ = "";
12856 return this;
12857 }
12858
12859 public bool HasMyInt {
12860 get { return result.HasMyInt; }
12861 }
12862 public long MyInt {
12863 get { return result.MyInt; }
12864 set { SetMyInt(value); }
12865 }
12866 public Builder SetMyInt(long value) {
12867 result.hasMyInt = true;
12868 result.myInt_ = value;
12869 return this;
12870 }
12871 public Builder ClearMyInt() {
12872 result.hasMyInt = false;
12873 result.myInt_ = 0L;
12874 return this;
12875 }
12876
12877 public bool HasMyFloat {
12878 get { return result.HasMyFloat; }
12879 }
12880 public float MyFloat {
12881 get { return result.MyFloat; }
12882 set { SetMyFloat(value); }
12883 }
12884 public Builder SetMyFloat(float value) {
12885 result.hasMyFloat = true;
12886 result.myFloat_ = value;
12887 return this;
12888 }
12889 public Builder ClearMyFloat() {
12890 result.hasMyFloat = false;
12891 result.myFloat_ = 0F;
12892 return this;
12893 }
12894 }
12895 static TestFieldOrderings() {
12896 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
12897 }
12898 }
12899
csharptest445bdce2011-05-20 15:50:54 -050012900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12901 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12902 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012903 public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
12904 private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial();
12905 public static TestExtremeDefaultValues DefaultInstance {
12906 get { return defaultInstance; }
12907 }
12908
12909 public override TestExtremeDefaultValues DefaultInstanceForType {
12910 get { return defaultInstance; }
12911 }
12912
12913 protected override TestExtremeDefaultValues ThisMessage {
12914 get { return this; }
12915 }
12916
12917 public static pbd::MessageDescriptor Descriptor {
12918 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
12919 }
12920
12921 protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
12922 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
12923 }
12924
12925 public const int EscapedBytesFieldNumber = 1;
12926 private bool hasEscapedBytes;
12927 private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
12928 public bool HasEscapedBytes {
12929 get { return hasEscapedBytes; }
12930 }
12931 public pb::ByteString EscapedBytes {
12932 get { return escapedBytes_; }
12933 }
12934
12935 public const int LargeUint32FieldNumber = 2;
12936 private bool hasLargeUint32;
12937 private uint largeUint32_ = 4294967295;
12938 public bool HasLargeUint32 {
12939 get { return hasLargeUint32; }
12940 }
12941 [global::System.CLSCompliant(false)]
12942 public uint LargeUint32 {
12943 get { return largeUint32_; }
12944 }
12945
12946 public const int LargeUint64FieldNumber = 3;
12947 private bool hasLargeUint64;
12948 private ulong largeUint64_ = 18446744073709551615UL;
12949 public bool HasLargeUint64 {
12950 get { return hasLargeUint64; }
12951 }
12952 [global::System.CLSCompliant(false)]
12953 public ulong LargeUint64 {
12954 get { return largeUint64_; }
12955 }
12956
12957 public const int SmallInt32FieldNumber = 4;
12958 private bool hasSmallInt32;
12959 private int smallInt32_ = -2147483647;
12960 public bool HasSmallInt32 {
12961 get { return hasSmallInt32; }
12962 }
12963 public int SmallInt32 {
12964 get { return smallInt32_; }
12965 }
12966
12967 public const int SmallInt64FieldNumber = 5;
12968 private bool hasSmallInt64;
12969 private long smallInt64_ = -9223372036854775807L;
12970 public bool HasSmallInt64 {
12971 get { return hasSmallInt64; }
12972 }
12973 public long SmallInt64 {
12974 get { return smallInt64_; }
12975 }
12976
12977 public const int Utf8StringFieldNumber = 6;
12978 private bool hasUtf8String;
12979 private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue;
12980 public bool HasUtf8String {
12981 get { return hasUtf8String; }
12982 }
12983 public string Utf8String {
12984 get { return utf8String_; }
12985 }
12986
12987 public const int ZeroFloatFieldNumber = 7;
12988 private bool hasZeroFloat;
12989 private float zeroFloat_ = 0F;
12990 public bool HasZeroFloat {
12991 get { return hasZeroFloat; }
12992 }
12993 public float ZeroFloat {
12994 get { return zeroFloat_; }
12995 }
12996
12997 public const int OneFloatFieldNumber = 8;
12998 private bool hasOneFloat;
12999 private float oneFloat_ = 1F;
13000 public bool HasOneFloat {
13001 get { return hasOneFloat; }
13002 }
13003 public float OneFloat {
13004 get { return oneFloat_; }
13005 }
13006
13007 public const int SmallFloatFieldNumber = 9;
13008 private bool hasSmallFloat;
13009 private float smallFloat_ = 1.5F;
13010 public bool HasSmallFloat {
13011 get { return hasSmallFloat; }
13012 }
13013 public float SmallFloat {
13014 get { return smallFloat_; }
13015 }
13016
13017 public const int NegativeOneFloatFieldNumber = 10;
13018 private bool hasNegativeOneFloat;
13019 private float negativeOneFloat_ = -1F;
13020 public bool HasNegativeOneFloat {
13021 get { return hasNegativeOneFloat; }
13022 }
13023 public float NegativeOneFloat {
13024 get { return negativeOneFloat_; }
13025 }
13026
13027 public const int NegativeFloatFieldNumber = 11;
13028 private bool hasNegativeFloat;
13029 private float negativeFloat_ = -1.5F;
13030 public bool HasNegativeFloat {
13031 get { return hasNegativeFloat; }
13032 }
13033 public float NegativeFloat {
13034 get { return negativeFloat_; }
13035 }
13036
13037 public const int LargeFloatFieldNumber = 12;
13038 private bool hasLargeFloat;
13039 private float largeFloat_ = 2E+08F;
13040 public bool HasLargeFloat {
13041 get { return hasLargeFloat; }
13042 }
13043 public float LargeFloat {
13044 get { return largeFloat_; }
13045 }
13046
13047 public const int SmallNegativeFloatFieldNumber = 13;
13048 private bool hasSmallNegativeFloat;
13049 private float smallNegativeFloat_ = -8E-28F;
13050 public bool HasSmallNegativeFloat {
13051 get { return hasSmallNegativeFloat; }
13052 }
13053 public float SmallNegativeFloat {
13054 get { return smallNegativeFloat_; }
13055 }
13056
13057 public const int InfDoubleFieldNumber = 14;
13058 private bool hasInfDouble;
13059 private double infDouble_ = double.PositiveInfinity;
13060 public bool HasInfDouble {
13061 get { return hasInfDouble; }
13062 }
13063 public double InfDouble {
13064 get { return infDouble_; }
13065 }
13066
13067 public const int NegInfDoubleFieldNumber = 15;
13068 private bool hasNegInfDouble;
13069 private double negInfDouble_ = double.NegativeInfinity;
13070 public bool HasNegInfDouble {
13071 get { return hasNegInfDouble; }
13072 }
13073 public double NegInfDouble {
13074 get { return negInfDouble_; }
13075 }
13076
13077 public const int NanDoubleFieldNumber = 16;
13078 private bool hasNanDouble;
13079 private double nanDouble_ = double.NaN;
13080 public bool HasNanDouble {
13081 get { return hasNanDouble; }
13082 }
13083 public double NanDouble {
13084 get { return nanDouble_; }
13085 }
13086
13087 public const int InfFloatFieldNumber = 17;
13088 private bool hasInfFloat;
13089 private float infFloat_ = float.PositiveInfinity;
13090 public bool HasInfFloat {
13091 get { return hasInfFloat; }
13092 }
13093 public float InfFloat {
13094 get { return infFloat_; }
13095 }
13096
13097 public const int NegInfFloatFieldNumber = 18;
13098 private bool hasNegInfFloat;
13099 private float negInfFloat_ = float.NegativeInfinity;
13100 public bool HasNegInfFloat {
13101 get { return hasNegInfFloat; }
13102 }
13103 public float NegInfFloat {
13104 get { return negInfFloat_; }
13105 }
13106
13107 public const int NanFloatFieldNumber = 19;
13108 private bool hasNanFloat;
13109 private float nanFloat_ = float.NaN;
13110 public bool HasNanFloat {
13111 get { return hasNanFloat; }
13112 }
13113 public float NanFloat {
13114 get { return nanFloat_; }
13115 }
13116
13117 public override bool IsInitialized {
13118 get {
13119 return true;
13120 }
13121 }
13122
csharptestffafdaa2011-06-03 12:58:14 -050013123 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013124 int size = SerializedSize;
13125 if (HasEscapedBytes) {
csharptest90922db2011-06-03 11:57:47 -050013126 output.WriteBytes(1, "escaped_bytes", EscapedBytes);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013127 }
13128 if (HasLargeUint32) {
csharptest90922db2011-06-03 11:57:47 -050013129 output.WriteUInt32(2, "large_uint32", LargeUint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013130 }
13131 if (HasLargeUint64) {
csharptest90922db2011-06-03 11:57:47 -050013132 output.WriteUInt64(3, "large_uint64", LargeUint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013133 }
13134 if (HasSmallInt32) {
csharptest90922db2011-06-03 11:57:47 -050013135 output.WriteInt32(4, "small_int32", SmallInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013136 }
13137 if (HasSmallInt64) {
csharptest90922db2011-06-03 11:57:47 -050013138 output.WriteInt64(5, "small_int64", SmallInt64);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013139 }
13140 if (HasUtf8String) {
csharptest90922db2011-06-03 11:57:47 -050013141 output.WriteString(6, "utf8_string", Utf8String);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013142 }
13143 if (HasZeroFloat) {
csharptest90922db2011-06-03 11:57:47 -050013144 output.WriteFloat(7, "zero_float", ZeroFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013145 }
13146 if (HasOneFloat) {
csharptest90922db2011-06-03 11:57:47 -050013147 output.WriteFloat(8, "one_float", OneFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013148 }
13149 if (HasSmallFloat) {
csharptest90922db2011-06-03 11:57:47 -050013150 output.WriteFloat(9, "small_float", SmallFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013151 }
13152 if (HasNegativeOneFloat) {
csharptest90922db2011-06-03 11:57:47 -050013153 output.WriteFloat(10, "negative_one_float", NegativeOneFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013154 }
13155 if (HasNegativeFloat) {
csharptest90922db2011-06-03 11:57:47 -050013156 output.WriteFloat(11, "negative_float", NegativeFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013157 }
13158 if (HasLargeFloat) {
csharptest90922db2011-06-03 11:57:47 -050013159 output.WriteFloat(12, "large_float", LargeFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013160 }
13161 if (HasSmallNegativeFloat) {
csharptest90922db2011-06-03 11:57:47 -050013162 output.WriteFloat(13, "small_negative_float", SmallNegativeFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013163 }
13164 if (HasInfDouble) {
csharptest90922db2011-06-03 11:57:47 -050013165 output.WriteDouble(14, "inf_double", InfDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013166 }
13167 if (HasNegInfDouble) {
csharptest90922db2011-06-03 11:57:47 -050013168 output.WriteDouble(15, "neg_inf_double", NegInfDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013169 }
13170 if (HasNanDouble) {
csharptest90922db2011-06-03 11:57:47 -050013171 output.WriteDouble(16, "nan_double", NanDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013172 }
13173 if (HasInfFloat) {
csharptest90922db2011-06-03 11:57:47 -050013174 output.WriteFloat(17, "inf_float", InfFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013175 }
13176 if (HasNegInfFloat) {
csharptest90922db2011-06-03 11:57:47 -050013177 output.WriteFloat(18, "neg_inf_float", NegInfFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013178 }
13179 if (HasNanFloat) {
csharptest90922db2011-06-03 11:57:47 -050013180 output.WriteFloat(19, "nan_float", NanFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013181 }
13182 UnknownFields.WriteTo(output);
13183 }
13184
13185 private int memoizedSerializedSize = -1;
13186 public override int SerializedSize {
13187 get {
13188 int size = memoizedSerializedSize;
13189 if (size != -1) return size;
13190
13191 size = 0;
13192 if (HasEscapedBytes) {
13193 size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
13194 }
13195 if (HasLargeUint32) {
13196 size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
13197 }
13198 if (HasLargeUint64) {
13199 size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
13200 }
13201 if (HasSmallInt32) {
13202 size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
13203 }
13204 if (HasSmallInt64) {
13205 size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
13206 }
13207 if (HasUtf8String) {
13208 size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
13209 }
13210 if (HasZeroFloat) {
13211 size += pb::CodedOutputStream.ComputeFloatSize(7, ZeroFloat);
13212 }
13213 if (HasOneFloat) {
13214 size += pb::CodedOutputStream.ComputeFloatSize(8, OneFloat);
13215 }
13216 if (HasSmallFloat) {
13217 size += pb::CodedOutputStream.ComputeFloatSize(9, SmallFloat);
13218 }
13219 if (HasNegativeOneFloat) {
13220 size += pb::CodedOutputStream.ComputeFloatSize(10, NegativeOneFloat);
13221 }
13222 if (HasNegativeFloat) {
13223 size += pb::CodedOutputStream.ComputeFloatSize(11, NegativeFloat);
13224 }
13225 if (HasLargeFloat) {
13226 size += pb::CodedOutputStream.ComputeFloatSize(12, LargeFloat);
13227 }
13228 if (HasSmallNegativeFloat) {
13229 size += pb::CodedOutputStream.ComputeFloatSize(13, SmallNegativeFloat);
13230 }
13231 if (HasInfDouble) {
13232 size += pb::CodedOutputStream.ComputeDoubleSize(14, InfDouble);
13233 }
13234 if (HasNegInfDouble) {
13235 size += pb::CodedOutputStream.ComputeDoubleSize(15, NegInfDouble);
13236 }
13237 if (HasNanDouble) {
13238 size += pb::CodedOutputStream.ComputeDoubleSize(16, NanDouble);
13239 }
13240 if (HasInfFloat) {
13241 size += pb::CodedOutputStream.ComputeFloatSize(17, InfFloat);
13242 }
13243 if (HasNegInfFloat) {
13244 size += pb::CodedOutputStream.ComputeFloatSize(18, NegInfFloat);
13245 }
13246 if (HasNanFloat) {
13247 size += pb::CodedOutputStream.ComputeFloatSize(19, NanFloat);
13248 }
13249 size += UnknownFields.SerializedSize;
13250 memoizedSerializedSize = size;
13251 return size;
13252 }
13253 }
13254
13255 public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
13256 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13257 }
13258 public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
13259 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13260 }
13261 public static TestExtremeDefaultValues ParseFrom(byte[] data) {
13262 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13263 }
13264 public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
13265 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13266 }
13267 public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
13268 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13269 }
13270 public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13271 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13272 }
13273 public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input) {
13274 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
13275 }
13276 public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13277 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
13278 }
csharptest17699c22011-06-03 21:57:15 -050013279 public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013280 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13281 }
csharptest17699c22011-06-03 21:57:15 -050013282 public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013283 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13284 }
13285 public static Builder CreateBuilder() { return new Builder(); }
13286 public override Builder ToBuilder() { return CreateBuilder(this); }
13287 public override Builder CreateBuilderForType() { return new Builder(); }
13288 public static Builder CreateBuilder(TestExtremeDefaultValues prototype) {
13289 return (Builder) new Builder().MergeFrom(prototype);
13290 }
13291
csharptest445bdce2011-05-20 15:50:54 -050013292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13293 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13294 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013295 public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> {
13296 protected override Builder ThisBuilder {
13297 get { return this; }
13298 }
13299 public Builder() {}
13300
13301 TestExtremeDefaultValues result = new TestExtremeDefaultValues();
13302
13303 protected override TestExtremeDefaultValues MessageBeingBuilt {
13304 get { return result; }
13305 }
13306
13307 public override Builder Clear() {
13308 result = new TestExtremeDefaultValues();
13309 return this;
13310 }
13311
13312 public override Builder Clone() {
13313 return new Builder().MergeFrom(result);
13314 }
13315
13316 public override pbd::MessageDescriptor DescriptorForType {
13317 get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
13318 }
13319
13320 public override TestExtremeDefaultValues DefaultInstanceForType {
13321 get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
13322 }
13323
13324 public override TestExtremeDefaultValues BuildPartial() {
13325 if (result == null) {
13326 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
13327 }
13328 TestExtremeDefaultValues returnMe = result;
13329 result = null;
13330 return returnMe;
13331 }
13332
13333 public override Builder MergeFrom(pb::IMessage other) {
13334 if (other is TestExtremeDefaultValues) {
13335 return MergeFrom((TestExtremeDefaultValues) other);
13336 } else {
13337 base.MergeFrom(other);
13338 return this;
13339 }
13340 }
13341
13342 public override Builder MergeFrom(TestExtremeDefaultValues other) {
13343 if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
13344 if (other.HasEscapedBytes) {
13345 EscapedBytes = other.EscapedBytes;
13346 }
13347 if (other.HasLargeUint32) {
13348 LargeUint32 = other.LargeUint32;
13349 }
13350 if (other.HasLargeUint64) {
13351 LargeUint64 = other.LargeUint64;
13352 }
13353 if (other.HasSmallInt32) {
13354 SmallInt32 = other.SmallInt32;
13355 }
13356 if (other.HasSmallInt64) {
13357 SmallInt64 = other.SmallInt64;
13358 }
13359 if (other.HasUtf8String) {
13360 Utf8String = other.Utf8String;
13361 }
13362 if (other.HasZeroFloat) {
13363 ZeroFloat = other.ZeroFloat;
13364 }
13365 if (other.HasOneFloat) {
13366 OneFloat = other.OneFloat;
13367 }
13368 if (other.HasSmallFloat) {
13369 SmallFloat = other.SmallFloat;
13370 }
13371 if (other.HasNegativeOneFloat) {
13372 NegativeOneFloat = other.NegativeOneFloat;
13373 }
13374 if (other.HasNegativeFloat) {
13375 NegativeFloat = other.NegativeFloat;
13376 }
13377 if (other.HasLargeFloat) {
13378 LargeFloat = other.LargeFloat;
13379 }
13380 if (other.HasSmallNegativeFloat) {
13381 SmallNegativeFloat = other.SmallNegativeFloat;
13382 }
13383 if (other.HasInfDouble) {
13384 InfDouble = other.InfDouble;
13385 }
13386 if (other.HasNegInfDouble) {
13387 NegInfDouble = other.NegInfDouble;
13388 }
13389 if (other.HasNanDouble) {
13390 NanDouble = other.NanDouble;
13391 }
13392 if (other.HasInfFloat) {
13393 InfFloat = other.InfFloat;
13394 }
13395 if (other.HasNegInfFloat) {
13396 NegInfFloat = other.NegInfFloat;
13397 }
13398 if (other.HasNanFloat) {
13399 NanFloat = other.NanFloat;
13400 }
13401 this.MergeUnknownFields(other.UnknownFields);
13402 return this;
13403 }
13404
csharptest17699c22011-06-03 21:57:15 -050013405 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013406 return MergeFrom(input, pb::ExtensionRegistry.Empty);
13407 }
13408
csharptest17699c22011-06-03 21:57:15 -050013409 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013410 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050013411 uint tag;
13412 string field_name;
13413 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013414 switch (tag) {
13415 case 0: {
csharptest99284412011-06-03 14:51:06 -050013416 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010013417 }
13418 default: {
13419 if (pb::WireFormat.IsEndGroupTag(tag)) {
13420 if (unknownFields != null) {
13421 this.UnknownFields = unknownFields.Build();
13422 }
13423 return this;
13424 }
13425 if (unknownFields == null) {
13426 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
13427 }
csharptestd2af9e92011-06-03 21:35:02 -050013428 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013429 break;
13430 }
13431 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -050013432 result.hasEscapedBytes |= input.ReadBytes(ref result.escapedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013433 break;
13434 }
13435 case 16: {
csharptestd2af9e92011-06-03 21:35:02 -050013436 result.hasLargeUint32 |= input.ReadUInt32(ref result.largeUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013437 break;
13438 }
13439 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -050013440 result.hasLargeUint64 |= input.ReadUInt64(ref result.largeUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013441 break;
13442 }
13443 case 32: {
csharptestd2af9e92011-06-03 21:35:02 -050013444 result.hasSmallInt32 |= input.ReadInt32(ref result.smallInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013445 break;
13446 }
13447 case 40: {
csharptestd2af9e92011-06-03 21:35:02 -050013448 result.hasSmallInt64 |= input.ReadInt64(ref result.smallInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013449 break;
13450 }
13451 case 50: {
csharptestd2af9e92011-06-03 21:35:02 -050013452 result.hasUtf8String |= input.ReadString(ref result.utf8String_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013453 break;
13454 }
13455 case 61: {
csharptestd2af9e92011-06-03 21:35:02 -050013456 result.hasZeroFloat |= input.ReadFloat(ref result.zeroFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013457 break;
13458 }
13459 case 69: {
csharptestd2af9e92011-06-03 21:35:02 -050013460 result.hasOneFloat |= input.ReadFloat(ref result.oneFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013461 break;
13462 }
13463 case 77: {
csharptestd2af9e92011-06-03 21:35:02 -050013464 result.hasSmallFloat |= input.ReadFloat(ref result.smallFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013465 break;
13466 }
13467 case 85: {
csharptestd2af9e92011-06-03 21:35:02 -050013468 result.hasNegativeOneFloat |= input.ReadFloat(ref result.negativeOneFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013469 break;
13470 }
13471 case 93: {
csharptestd2af9e92011-06-03 21:35:02 -050013472 result.hasNegativeFloat |= input.ReadFloat(ref result.negativeFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013473 break;
13474 }
13475 case 101: {
csharptestd2af9e92011-06-03 21:35:02 -050013476 result.hasLargeFloat |= input.ReadFloat(ref result.largeFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013477 break;
13478 }
13479 case 109: {
csharptestd2af9e92011-06-03 21:35:02 -050013480 result.hasSmallNegativeFloat |= input.ReadFloat(ref result.smallNegativeFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013481 break;
13482 }
13483 case 113: {
csharptestd2af9e92011-06-03 21:35:02 -050013484 result.hasInfDouble |= input.ReadDouble(ref result.infDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013485 break;
13486 }
13487 case 121: {
csharptestd2af9e92011-06-03 21:35:02 -050013488 result.hasNegInfDouble |= input.ReadDouble(ref result.negInfDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013489 break;
13490 }
13491 case 129: {
csharptestd2af9e92011-06-03 21:35:02 -050013492 result.hasNanDouble |= input.ReadDouble(ref result.nanDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013493 break;
13494 }
13495 case 141: {
csharptestd2af9e92011-06-03 21:35:02 -050013496 result.hasInfFloat |= input.ReadFloat(ref result.infFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013497 break;
13498 }
13499 case 149: {
csharptestd2af9e92011-06-03 21:35:02 -050013500 result.hasNegInfFloat |= input.ReadFloat(ref result.negInfFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013501 break;
13502 }
13503 case 157: {
csharptestd2af9e92011-06-03 21:35:02 -050013504 result.hasNanFloat |= input.ReadFloat(ref result.nanFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013505 break;
13506 }
13507 }
13508 }
csharptest123e5342011-06-03 14:15:21 -050013509
13510 if (unknownFields != null) {
13511 this.UnknownFields = unknownFields.Build();
13512 }
13513 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010013514 }
13515
13516
13517 public bool HasEscapedBytes {
13518 get { return result.HasEscapedBytes; }
13519 }
13520 public pb::ByteString EscapedBytes {
13521 get { return result.EscapedBytes; }
13522 set { SetEscapedBytes(value); }
13523 }
13524 public Builder SetEscapedBytes(pb::ByteString value) {
13525 pb::ThrowHelper.ThrowIfNull(value, "value");
13526 result.hasEscapedBytes = true;
13527 result.escapedBytes_ = value;
13528 return this;
13529 }
13530 public Builder ClearEscapedBytes() {
13531 result.hasEscapedBytes = false;
13532 result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
13533 return this;
13534 }
13535
13536 public bool HasLargeUint32 {
13537 get { return result.HasLargeUint32; }
13538 }
13539 [global::System.CLSCompliant(false)]
13540 public uint LargeUint32 {
13541 get { return result.LargeUint32; }
13542 set { SetLargeUint32(value); }
13543 }
13544 [global::System.CLSCompliant(false)]
13545 public Builder SetLargeUint32(uint value) {
13546 result.hasLargeUint32 = true;
13547 result.largeUint32_ = value;
13548 return this;
13549 }
13550 public Builder ClearLargeUint32() {
13551 result.hasLargeUint32 = false;
13552 result.largeUint32_ = 4294967295;
13553 return this;
13554 }
13555
13556 public bool HasLargeUint64 {
13557 get { return result.HasLargeUint64; }
13558 }
13559 [global::System.CLSCompliant(false)]
13560 public ulong LargeUint64 {
13561 get { return result.LargeUint64; }
13562 set { SetLargeUint64(value); }
13563 }
13564 [global::System.CLSCompliant(false)]
13565 public Builder SetLargeUint64(ulong value) {
13566 result.hasLargeUint64 = true;
13567 result.largeUint64_ = value;
13568 return this;
13569 }
13570 public Builder ClearLargeUint64() {
13571 result.hasLargeUint64 = false;
13572 result.largeUint64_ = 18446744073709551615UL;
13573 return this;
13574 }
13575
13576 public bool HasSmallInt32 {
13577 get { return result.HasSmallInt32; }
13578 }
13579 public int SmallInt32 {
13580 get { return result.SmallInt32; }
13581 set { SetSmallInt32(value); }
13582 }
13583 public Builder SetSmallInt32(int value) {
13584 result.hasSmallInt32 = true;
13585 result.smallInt32_ = value;
13586 return this;
13587 }
13588 public Builder ClearSmallInt32() {
13589 result.hasSmallInt32 = false;
13590 result.smallInt32_ = -2147483647;
13591 return this;
13592 }
13593
13594 public bool HasSmallInt64 {
13595 get { return result.HasSmallInt64; }
13596 }
13597 public long SmallInt64 {
13598 get { return result.SmallInt64; }
13599 set { SetSmallInt64(value); }
13600 }
13601 public Builder SetSmallInt64(long value) {
13602 result.hasSmallInt64 = true;
13603 result.smallInt64_ = value;
13604 return this;
13605 }
13606 public Builder ClearSmallInt64() {
13607 result.hasSmallInt64 = false;
13608 result.smallInt64_ = -9223372036854775807L;
13609 return this;
13610 }
13611
13612 public bool HasUtf8String {
13613 get { return result.HasUtf8String; }
13614 }
13615 public string Utf8String {
13616 get { return result.Utf8String; }
13617 set { SetUtf8String(value); }
13618 }
13619 public Builder SetUtf8String(string value) {
13620 pb::ThrowHelper.ThrowIfNull(value, "value");
13621 result.hasUtf8String = true;
13622 result.utf8String_ = value;
13623 return this;
13624 }
13625 public Builder ClearUtf8String() {
13626 result.hasUtf8String = false;
13627 result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue;
13628 return this;
13629 }
13630
13631 public bool HasZeroFloat {
13632 get { return result.HasZeroFloat; }
13633 }
13634 public float ZeroFloat {
13635 get { return result.ZeroFloat; }
13636 set { SetZeroFloat(value); }
13637 }
13638 public Builder SetZeroFloat(float value) {
13639 result.hasZeroFloat = true;
13640 result.zeroFloat_ = value;
13641 return this;
13642 }
13643 public Builder ClearZeroFloat() {
13644 result.hasZeroFloat = false;
13645 result.zeroFloat_ = 0F;
13646 return this;
13647 }
13648
13649 public bool HasOneFloat {
13650 get { return result.HasOneFloat; }
13651 }
13652 public float OneFloat {
13653 get { return result.OneFloat; }
13654 set { SetOneFloat(value); }
13655 }
13656 public Builder SetOneFloat(float value) {
13657 result.hasOneFloat = true;
13658 result.oneFloat_ = value;
13659 return this;
13660 }
13661 public Builder ClearOneFloat() {
13662 result.hasOneFloat = false;
13663 result.oneFloat_ = 1F;
13664 return this;
13665 }
13666
13667 public bool HasSmallFloat {
13668 get { return result.HasSmallFloat; }
13669 }
13670 public float SmallFloat {
13671 get { return result.SmallFloat; }
13672 set { SetSmallFloat(value); }
13673 }
13674 public Builder SetSmallFloat(float value) {
13675 result.hasSmallFloat = true;
13676 result.smallFloat_ = value;
13677 return this;
13678 }
13679 public Builder ClearSmallFloat() {
13680 result.hasSmallFloat = false;
13681 result.smallFloat_ = 1.5F;
13682 return this;
13683 }
13684
13685 public bool HasNegativeOneFloat {
13686 get { return result.HasNegativeOneFloat; }
13687 }
13688 public float NegativeOneFloat {
13689 get { return result.NegativeOneFloat; }
13690 set { SetNegativeOneFloat(value); }
13691 }
13692 public Builder SetNegativeOneFloat(float value) {
13693 result.hasNegativeOneFloat = true;
13694 result.negativeOneFloat_ = value;
13695 return this;
13696 }
13697 public Builder ClearNegativeOneFloat() {
13698 result.hasNegativeOneFloat = false;
13699 result.negativeOneFloat_ = -1F;
13700 return this;
13701 }
13702
13703 public bool HasNegativeFloat {
13704 get { return result.HasNegativeFloat; }
13705 }
13706 public float NegativeFloat {
13707 get { return result.NegativeFloat; }
13708 set { SetNegativeFloat(value); }
13709 }
13710 public Builder SetNegativeFloat(float value) {
13711 result.hasNegativeFloat = true;
13712 result.negativeFloat_ = value;
13713 return this;
13714 }
13715 public Builder ClearNegativeFloat() {
13716 result.hasNegativeFloat = false;
13717 result.negativeFloat_ = -1.5F;
13718 return this;
13719 }
13720
13721 public bool HasLargeFloat {
13722 get { return result.HasLargeFloat; }
13723 }
13724 public float LargeFloat {
13725 get { return result.LargeFloat; }
13726 set { SetLargeFloat(value); }
13727 }
13728 public Builder SetLargeFloat(float value) {
13729 result.hasLargeFloat = true;
13730 result.largeFloat_ = value;
13731 return this;
13732 }
13733 public Builder ClearLargeFloat() {
13734 result.hasLargeFloat = false;
13735 result.largeFloat_ = 2E+08F;
13736 return this;
13737 }
13738
13739 public bool HasSmallNegativeFloat {
13740 get { return result.HasSmallNegativeFloat; }
13741 }
13742 public float SmallNegativeFloat {
13743 get { return result.SmallNegativeFloat; }
13744 set { SetSmallNegativeFloat(value); }
13745 }
13746 public Builder SetSmallNegativeFloat(float value) {
13747 result.hasSmallNegativeFloat = true;
13748 result.smallNegativeFloat_ = value;
13749 return this;
13750 }
13751 public Builder ClearSmallNegativeFloat() {
13752 result.hasSmallNegativeFloat = false;
13753 result.smallNegativeFloat_ = -8E-28F;
13754 return this;
13755 }
13756
13757 public bool HasInfDouble {
13758 get { return result.HasInfDouble; }
13759 }
13760 public double InfDouble {
13761 get { return result.InfDouble; }
13762 set { SetInfDouble(value); }
13763 }
13764 public Builder SetInfDouble(double value) {
13765 result.hasInfDouble = true;
13766 result.infDouble_ = value;
13767 return this;
13768 }
13769 public Builder ClearInfDouble() {
13770 result.hasInfDouble = false;
13771 result.infDouble_ = double.PositiveInfinity;
13772 return this;
13773 }
13774
13775 public bool HasNegInfDouble {
13776 get { return result.HasNegInfDouble; }
13777 }
13778 public double NegInfDouble {
13779 get { return result.NegInfDouble; }
13780 set { SetNegInfDouble(value); }
13781 }
13782 public Builder SetNegInfDouble(double value) {
13783 result.hasNegInfDouble = true;
13784 result.negInfDouble_ = value;
13785 return this;
13786 }
13787 public Builder ClearNegInfDouble() {
13788 result.hasNegInfDouble = false;
13789 result.negInfDouble_ = double.NegativeInfinity;
13790 return this;
13791 }
13792
13793 public bool HasNanDouble {
13794 get { return result.HasNanDouble; }
13795 }
13796 public double NanDouble {
13797 get { return result.NanDouble; }
13798 set { SetNanDouble(value); }
13799 }
13800 public Builder SetNanDouble(double value) {
13801 result.hasNanDouble = true;
13802 result.nanDouble_ = value;
13803 return this;
13804 }
13805 public Builder ClearNanDouble() {
13806 result.hasNanDouble = false;
13807 result.nanDouble_ = double.NaN;
13808 return this;
13809 }
13810
13811 public bool HasInfFloat {
13812 get { return result.HasInfFloat; }
13813 }
13814 public float InfFloat {
13815 get { return result.InfFloat; }
13816 set { SetInfFloat(value); }
13817 }
13818 public Builder SetInfFloat(float value) {
13819 result.hasInfFloat = true;
13820 result.infFloat_ = value;
13821 return this;
13822 }
13823 public Builder ClearInfFloat() {
13824 result.hasInfFloat = false;
13825 result.infFloat_ = float.PositiveInfinity;
13826 return this;
13827 }
13828
13829 public bool HasNegInfFloat {
13830 get { return result.HasNegInfFloat; }
13831 }
13832 public float NegInfFloat {
13833 get { return result.NegInfFloat; }
13834 set { SetNegInfFloat(value); }
13835 }
13836 public Builder SetNegInfFloat(float value) {
13837 result.hasNegInfFloat = true;
13838 result.negInfFloat_ = value;
13839 return this;
13840 }
13841 public Builder ClearNegInfFloat() {
13842 result.hasNegInfFloat = false;
13843 result.negInfFloat_ = float.NegativeInfinity;
13844 return this;
13845 }
13846
13847 public bool HasNanFloat {
13848 get { return result.HasNanFloat; }
13849 }
13850 public float NanFloat {
13851 get { return result.NanFloat; }
13852 set { SetNanFloat(value); }
13853 }
13854 public Builder SetNanFloat(float value) {
13855 result.hasNanFloat = true;
13856 result.nanFloat_ = value;
13857 return this;
13858 }
13859 public Builder ClearNanFloat() {
13860 result.hasNanFloat = false;
13861 result.nanFloat_ = float.NaN;
13862 return this;
13863 }
13864 }
13865 static TestExtremeDefaultValues() {
13866 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
13867 }
13868 }
13869
csharptest445bdce2011-05-20 15:50:54 -050013870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13871 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13872 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013873 public sealed partial class OneString : pb::GeneratedMessage<OneString, OneString.Builder> {
13874 private static readonly OneString defaultInstance = new Builder().BuildPartial();
13875 public static OneString DefaultInstance {
13876 get { return defaultInstance; }
13877 }
13878
13879 public override OneString DefaultInstanceForType {
13880 get { return defaultInstance; }
13881 }
13882
13883 protected override OneString ThisMessage {
13884 get { return this; }
13885 }
13886
13887 public static pbd::MessageDescriptor Descriptor {
13888 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneString__Descriptor; }
13889 }
13890
13891 protected override pb::FieldAccess.FieldAccessorTable<OneString, OneString.Builder> InternalFieldAccessors {
13892 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
13893 }
13894
13895 public const int DataFieldNumber = 1;
13896 private bool hasData;
13897 private string data_ = "";
13898 public bool HasData {
13899 get { return hasData; }
13900 }
13901 public string Data {
13902 get { return data_; }
13903 }
13904
13905 public override bool IsInitialized {
13906 get {
13907 return true;
13908 }
13909 }
13910
csharptestffafdaa2011-06-03 12:58:14 -050013911 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013912 int size = SerializedSize;
13913 if (HasData) {
csharptest90922db2011-06-03 11:57:47 -050013914 output.WriteString(1, "data", Data);
Jon Skeet82bb0f12011-04-03 20:17:12 +010013915 }
13916 UnknownFields.WriteTo(output);
13917 }
13918
13919 private int memoizedSerializedSize = -1;
13920 public override int SerializedSize {
13921 get {
13922 int size = memoizedSerializedSize;
13923 if (size != -1) return size;
13924
13925 size = 0;
13926 if (HasData) {
13927 size += pb::CodedOutputStream.ComputeStringSize(1, Data);
13928 }
13929 size += UnknownFields.SerializedSize;
13930 memoizedSerializedSize = size;
13931 return size;
13932 }
13933 }
13934
13935 public static OneString ParseFrom(pb::ByteString data) {
13936 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13937 }
13938 public static OneString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
13939 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13940 }
13941 public static OneString ParseFrom(byte[] data) {
13942 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13943 }
13944 public static OneString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
13945 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13946 }
13947 public static OneString ParseFrom(global::System.IO.Stream input) {
13948 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13949 }
13950 public static OneString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13951 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13952 }
13953 public static OneString ParseDelimitedFrom(global::System.IO.Stream input) {
13954 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
13955 }
13956 public static OneString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13957 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
13958 }
csharptest17699c22011-06-03 21:57:15 -050013959 public static OneString ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013960 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13961 }
csharptest17699c22011-06-03 21:57:15 -050013962 public static OneString ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010013963 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13964 }
13965 public static Builder CreateBuilder() { return new Builder(); }
13966 public override Builder ToBuilder() { return CreateBuilder(this); }
13967 public override Builder CreateBuilderForType() { return new Builder(); }
13968 public static Builder CreateBuilder(OneString prototype) {
13969 return (Builder) new Builder().MergeFrom(prototype);
13970 }
13971
csharptest445bdce2011-05-20 15:50:54 -050013972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13973 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13974 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013975 public sealed partial class Builder : pb::GeneratedBuilder<OneString, Builder> {
13976 protected override Builder ThisBuilder {
13977 get { return this; }
13978 }
13979 public Builder() {}
13980
13981 OneString result = new OneString();
13982
13983 protected override OneString MessageBeingBuilt {
13984 get { return result; }
13985 }
13986
13987 public override Builder Clear() {
13988 result = new OneString();
13989 return this;
13990 }
13991
13992 public override Builder Clone() {
13993 return new Builder().MergeFrom(result);
13994 }
13995
13996 public override pbd::MessageDescriptor DescriptorForType {
13997 get { return global::Google.ProtocolBuffers.TestProtos.OneString.Descriptor; }
13998 }
13999
14000 public override OneString DefaultInstanceForType {
14001 get { return global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance; }
14002 }
14003
14004 public override OneString BuildPartial() {
14005 if (result == null) {
14006 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
14007 }
14008 OneString returnMe = result;
14009 result = null;
14010 return returnMe;
14011 }
14012
14013 public override Builder MergeFrom(pb::IMessage other) {
14014 if (other is OneString) {
14015 return MergeFrom((OneString) other);
14016 } else {
14017 base.MergeFrom(other);
14018 return this;
14019 }
14020 }
14021
14022 public override Builder MergeFrom(OneString other) {
14023 if (other == global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance) return this;
14024 if (other.HasData) {
14025 Data = other.Data;
14026 }
14027 this.MergeUnknownFields(other.UnknownFields);
14028 return this;
14029 }
14030
csharptest17699c22011-06-03 21:57:15 -050014031 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014032 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14033 }
14034
csharptest17699c22011-06-03 21:57:15 -050014035 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014036 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050014037 uint tag;
14038 string field_name;
14039 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014040 switch (tag) {
14041 case 0: {
csharptest99284412011-06-03 14:51:06 -050014042 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010014043 }
14044 default: {
14045 if (pb::WireFormat.IsEndGroupTag(tag)) {
14046 if (unknownFields != null) {
14047 this.UnknownFields = unknownFields.Build();
14048 }
14049 return this;
14050 }
14051 if (unknownFields == null) {
14052 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14053 }
csharptestd2af9e92011-06-03 21:35:02 -050014054 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014055 break;
14056 }
14057 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -050014058 result.hasData |= input.ReadString(ref result.data_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014059 break;
14060 }
14061 }
14062 }
csharptest123e5342011-06-03 14:15:21 -050014063
14064 if (unknownFields != null) {
14065 this.UnknownFields = unknownFields.Build();
14066 }
14067 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010014068 }
14069
14070
14071 public bool HasData {
14072 get { return result.HasData; }
14073 }
14074 public string Data {
14075 get { return result.Data; }
14076 set { SetData(value); }
14077 }
14078 public Builder SetData(string value) {
14079 pb::ThrowHelper.ThrowIfNull(value, "value");
14080 result.hasData = true;
14081 result.data_ = value;
14082 return this;
14083 }
14084 public Builder ClearData() {
14085 result.hasData = false;
14086 result.data_ = "";
14087 return this;
14088 }
14089 }
14090 static OneString() {
14091 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
14092 }
14093 }
14094
csharptest445bdce2011-05-20 15:50:54 -050014095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14096 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14097 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014098 public sealed partial class OneBytes : pb::GeneratedMessage<OneBytes, OneBytes.Builder> {
14099 private static readonly OneBytes defaultInstance = new Builder().BuildPartial();
14100 public static OneBytes DefaultInstance {
14101 get { return defaultInstance; }
14102 }
14103
14104 public override OneBytes DefaultInstanceForType {
14105 get { return defaultInstance; }
14106 }
14107
14108 protected override OneBytes ThisMessage {
14109 get { return this; }
14110 }
14111
14112 public static pbd::MessageDescriptor Descriptor {
14113 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneBytes__Descriptor; }
14114 }
14115
14116 protected override pb::FieldAccess.FieldAccessorTable<OneBytes, OneBytes.Builder> InternalFieldAccessors {
14117 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
14118 }
14119
14120 public const int DataFieldNumber = 1;
14121 private bool hasData;
14122 private pb::ByteString data_ = pb::ByteString.Empty;
14123 public bool HasData {
14124 get { return hasData; }
14125 }
14126 public pb::ByteString Data {
14127 get { return data_; }
14128 }
14129
14130 public override bool IsInitialized {
14131 get {
14132 return true;
14133 }
14134 }
14135
csharptestffafdaa2011-06-03 12:58:14 -050014136 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014137 int size = SerializedSize;
14138 if (HasData) {
csharptest90922db2011-06-03 11:57:47 -050014139 output.WriteBytes(1, "data", Data);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014140 }
14141 UnknownFields.WriteTo(output);
14142 }
14143
14144 private int memoizedSerializedSize = -1;
14145 public override int SerializedSize {
14146 get {
14147 int size = memoizedSerializedSize;
14148 if (size != -1) return size;
14149
14150 size = 0;
14151 if (HasData) {
14152 size += pb::CodedOutputStream.ComputeBytesSize(1, Data);
14153 }
14154 size += UnknownFields.SerializedSize;
14155 memoizedSerializedSize = size;
14156 return size;
14157 }
14158 }
14159
14160 public static OneBytes ParseFrom(pb::ByteString data) {
14161 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14162 }
14163 public static OneBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
14164 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14165 }
14166 public static OneBytes ParseFrom(byte[] data) {
14167 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14168 }
14169 public static OneBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
14170 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14171 }
14172 public static OneBytes ParseFrom(global::System.IO.Stream input) {
14173 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14174 }
14175 public static OneBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14176 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14177 }
14178 public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input) {
14179 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
14180 }
14181 public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14182 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
14183 }
csharptest17699c22011-06-03 21:57:15 -050014184 public static OneBytes ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014185 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14186 }
csharptest17699c22011-06-03 21:57:15 -050014187 public static OneBytes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014188 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14189 }
14190 public static Builder CreateBuilder() { return new Builder(); }
14191 public override Builder ToBuilder() { return CreateBuilder(this); }
14192 public override Builder CreateBuilderForType() { return new Builder(); }
14193 public static Builder CreateBuilder(OneBytes prototype) {
14194 return (Builder) new Builder().MergeFrom(prototype);
14195 }
14196
csharptest445bdce2011-05-20 15:50:54 -050014197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14198 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14199 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014200 public sealed partial class Builder : pb::GeneratedBuilder<OneBytes, Builder> {
14201 protected override Builder ThisBuilder {
14202 get { return this; }
14203 }
14204 public Builder() {}
14205
14206 OneBytes result = new OneBytes();
14207
14208 protected override OneBytes MessageBeingBuilt {
14209 get { return result; }
14210 }
14211
14212 public override Builder Clear() {
14213 result = new OneBytes();
14214 return this;
14215 }
14216
14217 public override Builder Clone() {
14218 return new Builder().MergeFrom(result);
14219 }
14220
14221 public override pbd::MessageDescriptor DescriptorForType {
14222 get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.Descriptor; }
14223 }
14224
14225 public override OneBytes DefaultInstanceForType {
14226 get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance; }
14227 }
14228
14229 public override OneBytes BuildPartial() {
14230 if (result == null) {
14231 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
14232 }
14233 OneBytes returnMe = result;
14234 result = null;
14235 return returnMe;
14236 }
14237
14238 public override Builder MergeFrom(pb::IMessage other) {
14239 if (other is OneBytes) {
14240 return MergeFrom((OneBytes) other);
14241 } else {
14242 base.MergeFrom(other);
14243 return this;
14244 }
14245 }
14246
14247 public override Builder MergeFrom(OneBytes other) {
14248 if (other == global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance) return this;
14249 if (other.HasData) {
14250 Data = other.Data;
14251 }
14252 this.MergeUnknownFields(other.UnknownFields);
14253 return this;
14254 }
14255
csharptest17699c22011-06-03 21:57:15 -050014256 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014257 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14258 }
14259
csharptest17699c22011-06-03 21:57:15 -050014260 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014261 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050014262 uint tag;
14263 string field_name;
14264 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014265 switch (tag) {
14266 case 0: {
csharptest99284412011-06-03 14:51:06 -050014267 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010014268 }
14269 default: {
14270 if (pb::WireFormat.IsEndGroupTag(tag)) {
14271 if (unknownFields != null) {
14272 this.UnknownFields = unknownFields.Build();
14273 }
14274 return this;
14275 }
14276 if (unknownFields == null) {
14277 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14278 }
csharptestd2af9e92011-06-03 21:35:02 -050014279 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014280 break;
14281 }
14282 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -050014283 result.hasData |= input.ReadBytes(ref result.data_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014284 break;
14285 }
14286 }
14287 }
csharptest123e5342011-06-03 14:15:21 -050014288
14289 if (unknownFields != null) {
14290 this.UnknownFields = unknownFields.Build();
14291 }
14292 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010014293 }
14294
14295
14296 public bool HasData {
14297 get { return result.HasData; }
14298 }
14299 public pb::ByteString Data {
14300 get { return result.Data; }
14301 set { SetData(value); }
14302 }
14303 public Builder SetData(pb::ByteString value) {
14304 pb::ThrowHelper.ThrowIfNull(value, "value");
14305 result.hasData = true;
14306 result.data_ = value;
14307 return this;
14308 }
14309 public Builder ClearData() {
14310 result.hasData = false;
14311 result.data_ = pb::ByteString.Empty;
14312 return this;
14313 }
14314 }
14315 static OneBytes() {
14316 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
14317 }
14318 }
14319
csharptest445bdce2011-05-20 15:50:54 -050014320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14321 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14322 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014323 public sealed partial class TestPackedTypes : pb::GeneratedMessage<TestPackedTypes, TestPackedTypes.Builder> {
14324 private static readonly TestPackedTypes defaultInstance = new Builder().BuildPartial();
14325 public static TestPackedTypes DefaultInstance {
14326 get { return defaultInstance; }
14327 }
14328
14329 public override TestPackedTypes DefaultInstanceForType {
14330 get { return defaultInstance; }
14331 }
14332
14333 protected override TestPackedTypes ThisMessage {
14334 get { return this; }
14335 }
14336
14337 public static pbd::MessageDescriptor Descriptor {
14338 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__Descriptor; }
14339 }
14340
14341 protected override pb::FieldAccess.FieldAccessorTable<TestPackedTypes, TestPackedTypes.Builder> InternalFieldAccessors {
14342 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
14343 }
14344
14345 public const int PackedInt32FieldNumber = 90;
14346 private int packedInt32MemoizedSerializedSize;
14347 private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
14348 public scg::IList<int> PackedInt32List {
14349 get { return pbc::Lists.AsReadOnly(packedInt32_); }
14350 }
14351 public int PackedInt32Count {
14352 get { return packedInt32_.Count; }
14353 }
14354 public int GetPackedInt32(int index) {
14355 return packedInt32_[index];
14356 }
14357
14358 public const int PackedInt64FieldNumber = 91;
14359 private int packedInt64MemoizedSerializedSize;
14360 private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
14361 public scg::IList<long> PackedInt64List {
14362 get { return pbc::Lists.AsReadOnly(packedInt64_); }
14363 }
14364 public int PackedInt64Count {
14365 get { return packedInt64_.Count; }
14366 }
14367 public long GetPackedInt64(int index) {
14368 return packedInt64_[index];
14369 }
14370
14371 public const int PackedUint32FieldNumber = 92;
14372 private int packedUint32MemoizedSerializedSize;
14373 private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
14374 [global::System.CLSCompliant(false)]
14375 public scg::IList<uint> PackedUint32List {
14376 get { return pbc::Lists.AsReadOnly(packedUint32_); }
14377 }
14378 public int PackedUint32Count {
14379 get { return packedUint32_.Count; }
14380 }
14381 [global::System.CLSCompliant(false)]
14382 public uint GetPackedUint32(int index) {
14383 return packedUint32_[index];
14384 }
14385
14386 public const int PackedUint64FieldNumber = 93;
14387 private int packedUint64MemoizedSerializedSize;
14388 private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
14389 [global::System.CLSCompliant(false)]
14390 public scg::IList<ulong> PackedUint64List {
14391 get { return pbc::Lists.AsReadOnly(packedUint64_); }
14392 }
14393 public int PackedUint64Count {
14394 get { return packedUint64_.Count; }
14395 }
14396 [global::System.CLSCompliant(false)]
14397 public ulong GetPackedUint64(int index) {
14398 return packedUint64_[index];
14399 }
14400
14401 public const int PackedSint32FieldNumber = 94;
14402 private int packedSint32MemoizedSerializedSize;
14403 private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
14404 public scg::IList<int> PackedSint32List {
14405 get { return pbc::Lists.AsReadOnly(packedSint32_); }
14406 }
14407 public int PackedSint32Count {
14408 get { return packedSint32_.Count; }
14409 }
14410 public int GetPackedSint32(int index) {
14411 return packedSint32_[index];
14412 }
14413
14414 public const int PackedSint64FieldNumber = 95;
14415 private int packedSint64MemoizedSerializedSize;
14416 private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
14417 public scg::IList<long> PackedSint64List {
14418 get { return pbc::Lists.AsReadOnly(packedSint64_); }
14419 }
14420 public int PackedSint64Count {
14421 get { return packedSint64_.Count; }
14422 }
14423 public long GetPackedSint64(int index) {
14424 return packedSint64_[index];
14425 }
14426
14427 public const int PackedFixed32FieldNumber = 96;
14428 private int packedFixed32MemoizedSerializedSize;
14429 private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
14430 [global::System.CLSCompliant(false)]
14431 public scg::IList<uint> PackedFixed32List {
14432 get { return pbc::Lists.AsReadOnly(packedFixed32_); }
14433 }
14434 public int PackedFixed32Count {
14435 get { return packedFixed32_.Count; }
14436 }
14437 [global::System.CLSCompliant(false)]
14438 public uint GetPackedFixed32(int index) {
14439 return packedFixed32_[index];
14440 }
14441
14442 public const int PackedFixed64FieldNumber = 97;
14443 private int packedFixed64MemoizedSerializedSize;
14444 private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
14445 [global::System.CLSCompliant(false)]
14446 public scg::IList<ulong> PackedFixed64List {
14447 get { return pbc::Lists.AsReadOnly(packedFixed64_); }
14448 }
14449 public int PackedFixed64Count {
14450 get { return packedFixed64_.Count; }
14451 }
14452 [global::System.CLSCompliant(false)]
14453 public ulong GetPackedFixed64(int index) {
14454 return packedFixed64_[index];
14455 }
14456
14457 public const int PackedSfixed32FieldNumber = 98;
14458 private int packedSfixed32MemoizedSerializedSize;
14459 private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
14460 public scg::IList<int> PackedSfixed32List {
14461 get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
14462 }
14463 public int PackedSfixed32Count {
14464 get { return packedSfixed32_.Count; }
14465 }
14466 public int GetPackedSfixed32(int index) {
14467 return packedSfixed32_[index];
14468 }
14469
14470 public const int PackedSfixed64FieldNumber = 99;
14471 private int packedSfixed64MemoizedSerializedSize;
14472 private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
14473 public scg::IList<long> PackedSfixed64List {
14474 get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
14475 }
14476 public int PackedSfixed64Count {
14477 get { return packedSfixed64_.Count; }
14478 }
14479 public long GetPackedSfixed64(int index) {
14480 return packedSfixed64_[index];
14481 }
14482
14483 public const int PackedFloatFieldNumber = 100;
14484 private int packedFloatMemoizedSerializedSize;
14485 private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
14486 public scg::IList<float> PackedFloatList {
14487 get { return pbc::Lists.AsReadOnly(packedFloat_); }
14488 }
14489 public int PackedFloatCount {
14490 get { return packedFloat_.Count; }
14491 }
14492 public float GetPackedFloat(int index) {
14493 return packedFloat_[index];
14494 }
14495
14496 public const int PackedDoubleFieldNumber = 101;
14497 private int packedDoubleMemoizedSerializedSize;
14498 private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
14499 public scg::IList<double> PackedDoubleList {
14500 get { return pbc::Lists.AsReadOnly(packedDouble_); }
14501 }
14502 public int PackedDoubleCount {
14503 get { return packedDouble_.Count; }
14504 }
14505 public double GetPackedDouble(int index) {
14506 return packedDouble_[index];
14507 }
14508
14509 public const int PackedBoolFieldNumber = 102;
14510 private int packedBoolMemoizedSerializedSize;
14511 private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
14512 public scg::IList<bool> PackedBoolList {
14513 get { return pbc::Lists.AsReadOnly(packedBool_); }
14514 }
14515 public int PackedBoolCount {
14516 get { return packedBool_.Count; }
14517 }
14518 public bool GetPackedBool(int index) {
14519 return packedBool_[index];
14520 }
14521
14522 public const int PackedEnumFieldNumber = 103;
14523 private int packedEnumMemoizedSerializedSize;
14524 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
14525 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
14526 get { return pbc::Lists.AsReadOnly(packedEnum_); }
14527 }
14528 public int PackedEnumCount {
14529 get { return packedEnum_.Count; }
14530 }
14531 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
14532 return packedEnum_[index];
14533 }
14534
14535 public override bool IsInitialized {
14536 get {
14537 return true;
14538 }
14539 }
14540
csharptestffafdaa2011-06-03 12:58:14 -050014541 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014542 int size = SerializedSize;
14543 if (packedInt32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014544 output.WritePackedArray(pbd::FieldType.Int32, 90, "packed_int32", packedInt32MemoizedSerializedSize, packedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014545 }
14546 if (packedInt64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014547 output.WritePackedArray(pbd::FieldType.Int64, 91, "packed_int64", packedInt64MemoizedSerializedSize, packedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014548 }
14549 if (packedUint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014550 output.WritePackedArray(pbd::FieldType.UInt32, 92, "packed_uint32", packedUint32MemoizedSerializedSize, packedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014551 }
14552 if (packedUint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014553 output.WritePackedArray(pbd::FieldType.UInt64, 93, "packed_uint64", packedUint64MemoizedSerializedSize, packedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014554 }
14555 if (packedSint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014556 output.WritePackedArray(pbd::FieldType.SInt32, 94, "packed_sint32", packedSint32MemoizedSerializedSize, packedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014557 }
14558 if (packedSint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014559 output.WritePackedArray(pbd::FieldType.SInt64, 95, "packed_sint64", packedSint64MemoizedSerializedSize, packedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014560 }
14561 if (packedFixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014562 output.WritePackedArray(pbd::FieldType.Fixed32, 96, "packed_fixed32", packedFixed32MemoizedSerializedSize, packedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014563 }
14564 if (packedFixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014565 output.WritePackedArray(pbd::FieldType.Fixed64, 97, "packed_fixed64", packedFixed64MemoizedSerializedSize, packedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014566 }
14567 if (packedSfixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014568 output.WritePackedArray(pbd::FieldType.SFixed32, 98, "packed_sfixed32", packedSfixed32MemoizedSerializedSize, packedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014569 }
14570 if (packedSfixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014571 output.WritePackedArray(pbd::FieldType.SFixed64, 99, "packed_sfixed64", packedSfixed64MemoizedSerializedSize, packedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014572 }
14573 if (packedFloat_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014574 output.WritePackedArray(pbd::FieldType.Float, 100, "packed_float", packedFloatMemoizedSerializedSize, packedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014575 }
14576 if (packedDouble_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014577 output.WritePackedArray(pbd::FieldType.Double, 101, "packed_double", packedDoubleMemoizedSerializedSize, packedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014578 }
14579 if (packedBool_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014580 output.WritePackedArray(pbd::FieldType.Bool, 102, "packed_bool", packedBoolMemoizedSerializedSize, packedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014581 }
14582 if (packedEnum_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050014583 output.WritePackedArray(pbd::FieldType.Enum, 103, "packed_enum", packedEnumMemoizedSerializedSize, packedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014584 }
14585 UnknownFields.WriteTo(output);
14586 }
14587
14588 private int memoizedSerializedSize = -1;
14589 public override int SerializedSize {
14590 get {
14591 int size = memoizedSerializedSize;
14592 if (size != -1) return size;
14593
14594 size = 0;
14595 {
14596 int dataSize = 0;
14597 foreach (int element in PackedInt32List) {
14598 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
14599 }
14600 size += dataSize;
14601 if (packedInt32_.Count != 0) {
14602 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14603 }
14604 packedInt32MemoizedSerializedSize = dataSize;
14605 }
14606 {
14607 int dataSize = 0;
14608 foreach (long element in PackedInt64List) {
14609 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
14610 }
14611 size += dataSize;
14612 if (packedInt64_.Count != 0) {
14613 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14614 }
14615 packedInt64MemoizedSerializedSize = dataSize;
14616 }
14617 {
14618 int dataSize = 0;
14619 foreach (uint element in PackedUint32List) {
14620 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
14621 }
14622 size += dataSize;
14623 if (packedUint32_.Count != 0) {
14624 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14625 }
14626 packedUint32MemoizedSerializedSize = dataSize;
14627 }
14628 {
14629 int dataSize = 0;
14630 foreach (ulong element in PackedUint64List) {
14631 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
14632 }
14633 size += dataSize;
14634 if (packedUint64_.Count != 0) {
14635 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14636 }
14637 packedUint64MemoizedSerializedSize = dataSize;
14638 }
14639 {
14640 int dataSize = 0;
14641 foreach (int element in PackedSint32List) {
14642 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
14643 }
14644 size += dataSize;
14645 if (packedSint32_.Count != 0) {
14646 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14647 }
14648 packedSint32MemoizedSerializedSize = dataSize;
14649 }
14650 {
14651 int dataSize = 0;
14652 foreach (long element in PackedSint64List) {
14653 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
14654 }
14655 size += dataSize;
14656 if (packedSint64_.Count != 0) {
14657 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14658 }
14659 packedSint64MemoizedSerializedSize = dataSize;
14660 }
14661 {
14662 int dataSize = 0;
14663 dataSize = 4 * packedFixed32_.Count;
14664 size += dataSize;
14665 if (packedFixed32_.Count != 0) {
14666 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14667 }
14668 packedFixed32MemoizedSerializedSize = dataSize;
14669 }
14670 {
14671 int dataSize = 0;
14672 dataSize = 8 * packedFixed64_.Count;
14673 size += dataSize;
14674 if (packedFixed64_.Count != 0) {
14675 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14676 }
14677 packedFixed64MemoizedSerializedSize = dataSize;
14678 }
14679 {
14680 int dataSize = 0;
14681 dataSize = 4 * packedSfixed32_.Count;
14682 size += dataSize;
14683 if (packedSfixed32_.Count != 0) {
14684 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14685 }
14686 packedSfixed32MemoizedSerializedSize = dataSize;
14687 }
14688 {
14689 int dataSize = 0;
14690 dataSize = 8 * packedSfixed64_.Count;
14691 size += dataSize;
14692 if (packedSfixed64_.Count != 0) {
14693 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14694 }
14695 packedSfixed64MemoizedSerializedSize = dataSize;
14696 }
14697 {
14698 int dataSize = 0;
14699 dataSize = 4 * packedFloat_.Count;
14700 size += dataSize;
14701 if (packedFloat_.Count != 0) {
14702 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14703 }
14704 packedFloatMemoizedSerializedSize = dataSize;
14705 }
14706 {
14707 int dataSize = 0;
14708 dataSize = 8 * packedDouble_.Count;
14709 size += dataSize;
14710 if (packedDouble_.Count != 0) {
14711 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14712 }
14713 packedDoubleMemoizedSerializedSize = dataSize;
14714 }
14715 {
14716 int dataSize = 0;
14717 dataSize = 1 * packedBool_.Count;
14718 size += dataSize;
14719 if (packedBool_.Count != 0) {
14720 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14721 }
14722 packedBoolMemoizedSerializedSize = dataSize;
14723 }
14724 {
14725 int dataSize = 0;
14726 if (packedEnum_.Count > 0) {
14727 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in packedEnum_) {
14728 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
14729 }
14730 size += dataSize;
14731 size += 2;
14732 size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
14733 }
14734 packedEnumMemoizedSerializedSize = dataSize;
14735 }
14736 size += UnknownFields.SerializedSize;
14737 memoizedSerializedSize = size;
14738 return size;
14739 }
14740 }
14741
14742 public static TestPackedTypes ParseFrom(pb::ByteString data) {
14743 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14744 }
14745 public static TestPackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
14746 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14747 }
14748 public static TestPackedTypes ParseFrom(byte[] data) {
14749 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14750 }
14751 public static TestPackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
14752 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14753 }
14754 public static TestPackedTypes ParseFrom(global::System.IO.Stream input) {
14755 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14756 }
14757 public static TestPackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14758 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14759 }
14760 public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
14761 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
14762 }
14763 public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14764 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
14765 }
csharptest17699c22011-06-03 21:57:15 -050014766 public static TestPackedTypes ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014767 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14768 }
csharptest17699c22011-06-03 21:57:15 -050014769 public static TestPackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014770 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14771 }
14772 public static Builder CreateBuilder() { return new Builder(); }
14773 public override Builder ToBuilder() { return CreateBuilder(this); }
14774 public override Builder CreateBuilderForType() { return new Builder(); }
14775 public static Builder CreateBuilder(TestPackedTypes prototype) {
14776 return (Builder) new Builder().MergeFrom(prototype);
14777 }
14778
csharptest445bdce2011-05-20 15:50:54 -050014779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14780 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14781 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014782 public sealed partial class Builder : pb::GeneratedBuilder<TestPackedTypes, Builder> {
14783 protected override Builder ThisBuilder {
14784 get { return this; }
14785 }
14786 public Builder() {}
14787
14788 TestPackedTypes result = new TestPackedTypes();
14789
14790 protected override TestPackedTypes MessageBeingBuilt {
14791 get { return result; }
14792 }
14793
14794 public override Builder Clear() {
14795 result = new TestPackedTypes();
14796 return this;
14797 }
14798
14799 public override Builder Clone() {
14800 return new Builder().MergeFrom(result);
14801 }
14802
14803 public override pbd::MessageDescriptor DescriptorForType {
14804 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Descriptor; }
14805 }
14806
14807 public override TestPackedTypes DefaultInstanceForType {
14808 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance; }
14809 }
14810
14811 public override TestPackedTypes BuildPartial() {
14812 if (result == null) {
14813 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
14814 }
14815 result.packedInt32_.MakeReadOnly();
14816 result.packedInt64_.MakeReadOnly();
14817 result.packedUint32_.MakeReadOnly();
14818 result.packedUint64_.MakeReadOnly();
14819 result.packedSint32_.MakeReadOnly();
14820 result.packedSint64_.MakeReadOnly();
14821 result.packedFixed32_.MakeReadOnly();
14822 result.packedFixed64_.MakeReadOnly();
14823 result.packedSfixed32_.MakeReadOnly();
14824 result.packedSfixed64_.MakeReadOnly();
14825 result.packedFloat_.MakeReadOnly();
14826 result.packedDouble_.MakeReadOnly();
14827 result.packedBool_.MakeReadOnly();
14828 result.packedEnum_.MakeReadOnly();
14829 TestPackedTypes returnMe = result;
14830 result = null;
14831 return returnMe;
14832 }
14833
14834 public override Builder MergeFrom(pb::IMessage other) {
14835 if (other is TestPackedTypes) {
14836 return MergeFrom((TestPackedTypes) other);
14837 } else {
14838 base.MergeFrom(other);
14839 return this;
14840 }
14841 }
14842
14843 public override Builder MergeFrom(TestPackedTypes other) {
14844 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance) return this;
14845 if (other.packedInt32_.Count != 0) {
14846 base.AddRange(other.packedInt32_, result.packedInt32_);
14847 }
14848 if (other.packedInt64_.Count != 0) {
14849 base.AddRange(other.packedInt64_, result.packedInt64_);
14850 }
14851 if (other.packedUint32_.Count != 0) {
14852 base.AddRange(other.packedUint32_, result.packedUint32_);
14853 }
14854 if (other.packedUint64_.Count != 0) {
14855 base.AddRange(other.packedUint64_, result.packedUint64_);
14856 }
14857 if (other.packedSint32_.Count != 0) {
14858 base.AddRange(other.packedSint32_, result.packedSint32_);
14859 }
14860 if (other.packedSint64_.Count != 0) {
14861 base.AddRange(other.packedSint64_, result.packedSint64_);
14862 }
14863 if (other.packedFixed32_.Count != 0) {
14864 base.AddRange(other.packedFixed32_, result.packedFixed32_);
14865 }
14866 if (other.packedFixed64_.Count != 0) {
14867 base.AddRange(other.packedFixed64_, result.packedFixed64_);
14868 }
14869 if (other.packedSfixed32_.Count != 0) {
14870 base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
14871 }
14872 if (other.packedSfixed64_.Count != 0) {
14873 base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
14874 }
14875 if (other.packedFloat_.Count != 0) {
14876 base.AddRange(other.packedFloat_, result.packedFloat_);
14877 }
14878 if (other.packedDouble_.Count != 0) {
14879 base.AddRange(other.packedDouble_, result.packedDouble_);
14880 }
14881 if (other.packedBool_.Count != 0) {
14882 base.AddRange(other.packedBool_, result.packedBool_);
14883 }
14884 if (other.packedEnum_.Count != 0) {
14885 base.AddRange(other.packedEnum_, result.packedEnum_);
14886 }
14887 this.MergeUnknownFields(other.UnknownFields);
14888 return this;
14889 }
14890
csharptest17699c22011-06-03 21:57:15 -050014891 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014892 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14893 }
14894
csharptest17699c22011-06-03 21:57:15 -050014895 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014896 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050014897 uint tag;
14898 string field_name;
14899 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010014900 switch (tag) {
14901 case 0: {
csharptest99284412011-06-03 14:51:06 -050014902 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010014903 }
14904 default: {
14905 if (pb::WireFormat.IsEndGroupTag(tag)) {
14906 if (unknownFields != null) {
14907 this.UnknownFields = unknownFields.Build();
14908 }
14909 return this;
14910 }
14911 if (unknownFields == null) {
14912 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14913 }
csharptestd2af9e92011-06-03 21:35:02 -050014914 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014915 break;
14916 }
14917 case 722: {
csharptestd2af9e92011-06-03 21:35:02 -050014918 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.packedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014919 break;
14920 }
14921 case 730: {
csharptestd2af9e92011-06-03 21:35:02 -050014922 input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.packedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014923 break;
14924 }
14925 case 738: {
csharptestd2af9e92011-06-03 21:35:02 -050014926 input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.packedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014927 break;
14928 }
14929 case 746: {
csharptestd2af9e92011-06-03 21:35:02 -050014930 input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.packedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014931 break;
14932 }
14933 case 754: {
csharptestd2af9e92011-06-03 21:35:02 -050014934 input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.packedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014935 break;
14936 }
14937 case 762: {
csharptestd2af9e92011-06-03 21:35:02 -050014938 input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.packedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014939 break;
14940 }
14941 case 770: {
csharptestd2af9e92011-06-03 21:35:02 -050014942 input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.packedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014943 break;
14944 }
14945 case 778: {
csharptestd2af9e92011-06-03 21:35:02 -050014946 input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.packedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014947 break;
14948 }
14949 case 786: {
csharptestd2af9e92011-06-03 21:35:02 -050014950 input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.packedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014951 break;
14952 }
14953 case 794: {
csharptestd2af9e92011-06-03 21:35:02 -050014954 input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.packedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014955 break;
14956 }
14957 case 802: {
csharptestd2af9e92011-06-03 21:35:02 -050014958 input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.packedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014959 break;
14960 }
14961 case 810: {
csharptestd2af9e92011-06-03 21:35:02 -050014962 input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.packedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014963 break;
14964 }
14965 case 818: {
csharptestd2af9e92011-06-03 21:35:02 -050014966 input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.packedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014967 break;
14968 }
14969 case 826: {
csharptestd2af9e92011-06-03 21:35:02 -050014970 scg::ICollection<object> unknownItems;
14971 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.packedEnum_, out unknownItems);
14972 if (unknownItems != null) {
14973 if (unknownFields == null) {
14974 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014975 }
csharptestd2af9e92011-06-03 21:35:02 -050014976 foreach (object rawValue in unknownItems)
14977 if (rawValue is int)
14978 unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +010014979 }
Jon Skeet82bb0f12011-04-03 20:17:12 +010014980 break;
14981 }
14982 }
14983 }
csharptest123e5342011-06-03 14:15:21 -050014984
14985 if (unknownFields != null) {
14986 this.UnknownFields = unknownFields.Build();
14987 }
14988 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010014989 }
14990
14991
14992 public pbc::IPopsicleList<int> PackedInt32List {
14993 get { return result.packedInt32_; }
14994 }
14995 public int PackedInt32Count {
14996 get { return result.PackedInt32Count; }
14997 }
14998 public int GetPackedInt32(int index) {
14999 return result.GetPackedInt32(index);
15000 }
15001 public Builder SetPackedInt32(int index, int value) {
15002 result.packedInt32_[index] = value;
15003 return this;
15004 }
15005 public Builder AddPackedInt32(int value) {
15006 result.packedInt32_.Add(value);
15007 return this;
15008 }
15009 public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
15010 base.AddRange(values, result.packedInt32_);
15011 return this;
15012 }
15013 public Builder ClearPackedInt32() {
15014 result.packedInt32_.Clear();
15015 return this;
15016 }
15017
15018 public pbc::IPopsicleList<long> PackedInt64List {
15019 get { return result.packedInt64_; }
15020 }
15021 public int PackedInt64Count {
15022 get { return result.PackedInt64Count; }
15023 }
15024 public long GetPackedInt64(int index) {
15025 return result.GetPackedInt64(index);
15026 }
15027 public Builder SetPackedInt64(int index, long value) {
15028 result.packedInt64_[index] = value;
15029 return this;
15030 }
15031 public Builder AddPackedInt64(long value) {
15032 result.packedInt64_.Add(value);
15033 return this;
15034 }
15035 public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
15036 base.AddRange(values, result.packedInt64_);
15037 return this;
15038 }
15039 public Builder ClearPackedInt64() {
15040 result.packedInt64_.Clear();
15041 return this;
15042 }
15043
15044 [global::System.CLSCompliant(false)]
15045 public pbc::IPopsicleList<uint> PackedUint32List {
15046 get { return result.packedUint32_; }
15047 }
15048 public int PackedUint32Count {
15049 get { return result.PackedUint32Count; }
15050 }
15051 [global::System.CLSCompliant(false)]
15052 public uint GetPackedUint32(int index) {
15053 return result.GetPackedUint32(index);
15054 }
15055 [global::System.CLSCompliant(false)]
15056 public Builder SetPackedUint32(int index, uint value) {
15057 result.packedUint32_[index] = value;
15058 return this;
15059 }
15060 [global::System.CLSCompliant(false)]
15061 public Builder AddPackedUint32(uint value) {
15062 result.packedUint32_.Add(value);
15063 return this;
15064 }
15065 [global::System.CLSCompliant(false)]
15066 public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
15067 base.AddRange(values, result.packedUint32_);
15068 return this;
15069 }
15070 public Builder ClearPackedUint32() {
15071 result.packedUint32_.Clear();
15072 return this;
15073 }
15074
15075 [global::System.CLSCompliant(false)]
15076 public pbc::IPopsicleList<ulong> PackedUint64List {
15077 get { return result.packedUint64_; }
15078 }
15079 public int PackedUint64Count {
15080 get { return result.PackedUint64Count; }
15081 }
15082 [global::System.CLSCompliant(false)]
15083 public ulong GetPackedUint64(int index) {
15084 return result.GetPackedUint64(index);
15085 }
15086 [global::System.CLSCompliant(false)]
15087 public Builder SetPackedUint64(int index, ulong value) {
15088 result.packedUint64_[index] = value;
15089 return this;
15090 }
15091 [global::System.CLSCompliant(false)]
15092 public Builder AddPackedUint64(ulong value) {
15093 result.packedUint64_.Add(value);
15094 return this;
15095 }
15096 [global::System.CLSCompliant(false)]
15097 public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
15098 base.AddRange(values, result.packedUint64_);
15099 return this;
15100 }
15101 public Builder ClearPackedUint64() {
15102 result.packedUint64_.Clear();
15103 return this;
15104 }
15105
15106 public pbc::IPopsicleList<int> PackedSint32List {
15107 get { return result.packedSint32_; }
15108 }
15109 public int PackedSint32Count {
15110 get { return result.PackedSint32Count; }
15111 }
15112 public int GetPackedSint32(int index) {
15113 return result.GetPackedSint32(index);
15114 }
15115 public Builder SetPackedSint32(int index, int value) {
15116 result.packedSint32_[index] = value;
15117 return this;
15118 }
15119 public Builder AddPackedSint32(int value) {
15120 result.packedSint32_.Add(value);
15121 return this;
15122 }
15123 public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
15124 base.AddRange(values, result.packedSint32_);
15125 return this;
15126 }
15127 public Builder ClearPackedSint32() {
15128 result.packedSint32_.Clear();
15129 return this;
15130 }
15131
15132 public pbc::IPopsicleList<long> PackedSint64List {
15133 get { return result.packedSint64_; }
15134 }
15135 public int PackedSint64Count {
15136 get { return result.PackedSint64Count; }
15137 }
15138 public long GetPackedSint64(int index) {
15139 return result.GetPackedSint64(index);
15140 }
15141 public Builder SetPackedSint64(int index, long value) {
15142 result.packedSint64_[index] = value;
15143 return this;
15144 }
15145 public Builder AddPackedSint64(long value) {
15146 result.packedSint64_.Add(value);
15147 return this;
15148 }
15149 public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
15150 base.AddRange(values, result.packedSint64_);
15151 return this;
15152 }
15153 public Builder ClearPackedSint64() {
15154 result.packedSint64_.Clear();
15155 return this;
15156 }
15157
15158 [global::System.CLSCompliant(false)]
15159 public pbc::IPopsicleList<uint> PackedFixed32List {
15160 get { return result.packedFixed32_; }
15161 }
15162 public int PackedFixed32Count {
15163 get { return result.PackedFixed32Count; }
15164 }
15165 [global::System.CLSCompliant(false)]
15166 public uint GetPackedFixed32(int index) {
15167 return result.GetPackedFixed32(index);
15168 }
15169 [global::System.CLSCompliant(false)]
15170 public Builder SetPackedFixed32(int index, uint value) {
15171 result.packedFixed32_[index] = value;
15172 return this;
15173 }
15174 [global::System.CLSCompliant(false)]
15175 public Builder AddPackedFixed32(uint value) {
15176 result.packedFixed32_.Add(value);
15177 return this;
15178 }
15179 [global::System.CLSCompliant(false)]
15180 public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
15181 base.AddRange(values, result.packedFixed32_);
15182 return this;
15183 }
15184 public Builder ClearPackedFixed32() {
15185 result.packedFixed32_.Clear();
15186 return this;
15187 }
15188
15189 [global::System.CLSCompliant(false)]
15190 public pbc::IPopsicleList<ulong> PackedFixed64List {
15191 get { return result.packedFixed64_; }
15192 }
15193 public int PackedFixed64Count {
15194 get { return result.PackedFixed64Count; }
15195 }
15196 [global::System.CLSCompliant(false)]
15197 public ulong GetPackedFixed64(int index) {
15198 return result.GetPackedFixed64(index);
15199 }
15200 [global::System.CLSCompliant(false)]
15201 public Builder SetPackedFixed64(int index, ulong value) {
15202 result.packedFixed64_[index] = value;
15203 return this;
15204 }
15205 [global::System.CLSCompliant(false)]
15206 public Builder AddPackedFixed64(ulong value) {
15207 result.packedFixed64_.Add(value);
15208 return this;
15209 }
15210 [global::System.CLSCompliant(false)]
15211 public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
15212 base.AddRange(values, result.packedFixed64_);
15213 return this;
15214 }
15215 public Builder ClearPackedFixed64() {
15216 result.packedFixed64_.Clear();
15217 return this;
15218 }
15219
15220 public pbc::IPopsicleList<int> PackedSfixed32List {
15221 get { return result.packedSfixed32_; }
15222 }
15223 public int PackedSfixed32Count {
15224 get { return result.PackedSfixed32Count; }
15225 }
15226 public int GetPackedSfixed32(int index) {
15227 return result.GetPackedSfixed32(index);
15228 }
15229 public Builder SetPackedSfixed32(int index, int value) {
15230 result.packedSfixed32_[index] = value;
15231 return this;
15232 }
15233 public Builder AddPackedSfixed32(int value) {
15234 result.packedSfixed32_.Add(value);
15235 return this;
15236 }
15237 public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
15238 base.AddRange(values, result.packedSfixed32_);
15239 return this;
15240 }
15241 public Builder ClearPackedSfixed32() {
15242 result.packedSfixed32_.Clear();
15243 return this;
15244 }
15245
15246 public pbc::IPopsicleList<long> PackedSfixed64List {
15247 get { return result.packedSfixed64_; }
15248 }
15249 public int PackedSfixed64Count {
15250 get { return result.PackedSfixed64Count; }
15251 }
15252 public long GetPackedSfixed64(int index) {
15253 return result.GetPackedSfixed64(index);
15254 }
15255 public Builder SetPackedSfixed64(int index, long value) {
15256 result.packedSfixed64_[index] = value;
15257 return this;
15258 }
15259 public Builder AddPackedSfixed64(long value) {
15260 result.packedSfixed64_.Add(value);
15261 return this;
15262 }
15263 public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
15264 base.AddRange(values, result.packedSfixed64_);
15265 return this;
15266 }
15267 public Builder ClearPackedSfixed64() {
15268 result.packedSfixed64_.Clear();
15269 return this;
15270 }
15271
15272 public pbc::IPopsicleList<float> PackedFloatList {
15273 get { return result.packedFloat_; }
15274 }
15275 public int PackedFloatCount {
15276 get { return result.PackedFloatCount; }
15277 }
15278 public float GetPackedFloat(int index) {
15279 return result.GetPackedFloat(index);
15280 }
15281 public Builder SetPackedFloat(int index, float value) {
15282 result.packedFloat_[index] = value;
15283 return this;
15284 }
15285 public Builder AddPackedFloat(float value) {
15286 result.packedFloat_.Add(value);
15287 return this;
15288 }
15289 public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
15290 base.AddRange(values, result.packedFloat_);
15291 return this;
15292 }
15293 public Builder ClearPackedFloat() {
15294 result.packedFloat_.Clear();
15295 return this;
15296 }
15297
15298 public pbc::IPopsicleList<double> PackedDoubleList {
15299 get { return result.packedDouble_; }
15300 }
15301 public int PackedDoubleCount {
15302 get { return result.PackedDoubleCount; }
15303 }
15304 public double GetPackedDouble(int index) {
15305 return result.GetPackedDouble(index);
15306 }
15307 public Builder SetPackedDouble(int index, double value) {
15308 result.packedDouble_[index] = value;
15309 return this;
15310 }
15311 public Builder AddPackedDouble(double value) {
15312 result.packedDouble_.Add(value);
15313 return this;
15314 }
15315 public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
15316 base.AddRange(values, result.packedDouble_);
15317 return this;
15318 }
15319 public Builder ClearPackedDouble() {
15320 result.packedDouble_.Clear();
15321 return this;
15322 }
15323
15324 public pbc::IPopsicleList<bool> PackedBoolList {
15325 get { return result.packedBool_; }
15326 }
15327 public int PackedBoolCount {
15328 get { return result.PackedBoolCount; }
15329 }
15330 public bool GetPackedBool(int index) {
15331 return result.GetPackedBool(index);
15332 }
15333 public Builder SetPackedBool(int index, bool value) {
15334 result.packedBool_[index] = value;
15335 return this;
15336 }
15337 public Builder AddPackedBool(bool value) {
15338 result.packedBool_.Add(value);
15339 return this;
15340 }
15341 public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
15342 base.AddRange(values, result.packedBool_);
15343 return this;
15344 }
15345 public Builder ClearPackedBool() {
15346 result.packedBool_.Clear();
15347 return this;
15348 }
15349
15350 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
15351 get { return result.packedEnum_; }
15352 }
15353 public int PackedEnumCount {
15354 get { return result.PackedEnumCount; }
15355 }
15356 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
15357 return result.GetPackedEnum(index);
15358 }
15359 public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
15360 result.packedEnum_[index] = value;
15361 return this;
15362 }
15363 public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
15364 result.packedEnum_.Add(value);
15365 return this;
15366 }
15367 public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
15368 base.AddRange(values, result.packedEnum_);
15369 return this;
15370 }
15371 public Builder ClearPackedEnum() {
15372 result.packedEnum_.Clear();
15373 return this;
15374 }
15375 }
15376 static TestPackedTypes() {
15377 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
15378 }
15379 }
15380
csharptest445bdce2011-05-20 15:50:54 -050015381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
15382 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15383 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010015384 public sealed partial class TestUnpackedTypes : pb::GeneratedMessage<TestUnpackedTypes, TestUnpackedTypes.Builder> {
15385 private static readonly TestUnpackedTypes defaultInstance = new Builder().BuildPartial();
15386 public static TestUnpackedTypes DefaultInstance {
15387 get { return defaultInstance; }
15388 }
15389
15390 public override TestUnpackedTypes DefaultInstanceForType {
15391 get { return defaultInstance; }
15392 }
15393
15394 protected override TestUnpackedTypes ThisMessage {
15395 get { return this; }
15396 }
15397
15398 public static pbd::MessageDescriptor Descriptor {
15399 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor; }
15400 }
15401
15402 protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedTypes, TestUnpackedTypes.Builder> InternalFieldAccessors {
15403 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
15404 }
15405
15406 public const int UnpackedInt32FieldNumber = 90;
15407 private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
15408 public scg::IList<int> UnpackedInt32List {
15409 get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
15410 }
15411 public int UnpackedInt32Count {
15412 get { return unpackedInt32_.Count; }
15413 }
15414 public int GetUnpackedInt32(int index) {
15415 return unpackedInt32_[index];
15416 }
15417
15418 public const int UnpackedInt64FieldNumber = 91;
15419 private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
15420 public scg::IList<long> UnpackedInt64List {
15421 get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
15422 }
15423 public int UnpackedInt64Count {
15424 get { return unpackedInt64_.Count; }
15425 }
15426 public long GetUnpackedInt64(int index) {
15427 return unpackedInt64_[index];
15428 }
15429
15430 public const int UnpackedUint32FieldNumber = 92;
15431 private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
15432 [global::System.CLSCompliant(false)]
15433 public scg::IList<uint> UnpackedUint32List {
15434 get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
15435 }
15436 public int UnpackedUint32Count {
15437 get { return unpackedUint32_.Count; }
15438 }
15439 [global::System.CLSCompliant(false)]
15440 public uint GetUnpackedUint32(int index) {
15441 return unpackedUint32_[index];
15442 }
15443
15444 public const int UnpackedUint64FieldNumber = 93;
15445 private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
15446 [global::System.CLSCompliant(false)]
15447 public scg::IList<ulong> UnpackedUint64List {
15448 get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
15449 }
15450 public int UnpackedUint64Count {
15451 get { return unpackedUint64_.Count; }
15452 }
15453 [global::System.CLSCompliant(false)]
15454 public ulong GetUnpackedUint64(int index) {
15455 return unpackedUint64_[index];
15456 }
15457
15458 public const int UnpackedSint32FieldNumber = 94;
15459 private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
15460 public scg::IList<int> UnpackedSint32List {
15461 get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
15462 }
15463 public int UnpackedSint32Count {
15464 get { return unpackedSint32_.Count; }
15465 }
15466 public int GetUnpackedSint32(int index) {
15467 return unpackedSint32_[index];
15468 }
15469
15470 public const int UnpackedSint64FieldNumber = 95;
15471 private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
15472 public scg::IList<long> UnpackedSint64List {
15473 get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
15474 }
15475 public int UnpackedSint64Count {
15476 get { return unpackedSint64_.Count; }
15477 }
15478 public long GetUnpackedSint64(int index) {
15479 return unpackedSint64_[index];
15480 }
15481
15482 public const int UnpackedFixed32FieldNumber = 96;
15483 private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
15484 [global::System.CLSCompliant(false)]
15485 public scg::IList<uint> UnpackedFixed32List {
15486 get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
15487 }
15488 public int UnpackedFixed32Count {
15489 get { return unpackedFixed32_.Count; }
15490 }
15491 [global::System.CLSCompliant(false)]
15492 public uint GetUnpackedFixed32(int index) {
15493 return unpackedFixed32_[index];
15494 }
15495
15496 public const int UnpackedFixed64FieldNumber = 97;
15497 private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
15498 [global::System.CLSCompliant(false)]
15499 public scg::IList<ulong> UnpackedFixed64List {
15500 get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
15501 }
15502 public int UnpackedFixed64Count {
15503 get { return unpackedFixed64_.Count; }
15504 }
15505 [global::System.CLSCompliant(false)]
15506 public ulong GetUnpackedFixed64(int index) {
15507 return unpackedFixed64_[index];
15508 }
15509
15510 public const int UnpackedSfixed32FieldNumber = 98;
15511 private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
15512 public scg::IList<int> UnpackedSfixed32List {
15513 get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
15514 }
15515 public int UnpackedSfixed32Count {
15516 get { return unpackedSfixed32_.Count; }
15517 }
15518 public int GetUnpackedSfixed32(int index) {
15519 return unpackedSfixed32_[index];
15520 }
15521
15522 public const int UnpackedSfixed64FieldNumber = 99;
15523 private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
15524 public scg::IList<long> UnpackedSfixed64List {
15525 get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
15526 }
15527 public int UnpackedSfixed64Count {
15528 get { return unpackedSfixed64_.Count; }
15529 }
15530 public long GetUnpackedSfixed64(int index) {
15531 return unpackedSfixed64_[index];
15532 }
15533
15534 public const int UnpackedFloatFieldNumber = 100;
15535 private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
15536 public scg::IList<float> UnpackedFloatList {
15537 get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
15538 }
15539 public int UnpackedFloatCount {
15540 get { return unpackedFloat_.Count; }
15541 }
15542 public float GetUnpackedFloat(int index) {
15543 return unpackedFloat_[index];
15544 }
15545
15546 public const int UnpackedDoubleFieldNumber = 101;
15547 private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
15548 public scg::IList<double> UnpackedDoubleList {
15549 get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
15550 }
15551 public int UnpackedDoubleCount {
15552 get { return unpackedDouble_.Count; }
15553 }
15554 public double GetUnpackedDouble(int index) {
15555 return unpackedDouble_[index];
15556 }
15557
15558 public const int UnpackedBoolFieldNumber = 102;
15559 private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
15560 public scg::IList<bool> UnpackedBoolList {
15561 get { return pbc::Lists.AsReadOnly(unpackedBool_); }
15562 }
15563 public int UnpackedBoolCount {
15564 get { return unpackedBool_.Count; }
15565 }
15566 public bool GetUnpackedBool(int index) {
15567 return unpackedBool_[index];
15568 }
15569
15570 public const int UnpackedEnumFieldNumber = 103;
15571 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
15572 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
15573 get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
15574 }
15575 public int UnpackedEnumCount {
15576 get { return unpackedEnum_.Count; }
15577 }
15578 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
15579 return unpackedEnum_[index];
15580 }
15581
15582 public override bool IsInitialized {
15583 get {
15584 return true;
15585 }
15586 }
15587
csharptestffafdaa2011-06-03 12:58:14 -050015588 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015589 int size = SerializedSize;
15590 if (unpackedInt32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015591 output.WriteArray(pbd::FieldType.Int32, 90, "unpacked_int32", unpackedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015592 }
15593 if (unpackedInt64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015594 output.WriteArray(pbd::FieldType.Int64, 91, "unpacked_int64", unpackedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015595 }
15596 if (unpackedUint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015597 output.WriteArray(pbd::FieldType.UInt32, 92, "unpacked_uint32", unpackedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015598 }
15599 if (unpackedUint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015600 output.WriteArray(pbd::FieldType.UInt64, 93, "unpacked_uint64", unpackedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015601 }
15602 if (unpackedSint32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015603 output.WriteArray(pbd::FieldType.SInt32, 94, "unpacked_sint32", unpackedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015604 }
15605 if (unpackedSint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015606 output.WriteArray(pbd::FieldType.SInt64, 95, "unpacked_sint64", unpackedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015607 }
15608 if (unpackedFixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015609 output.WriteArray(pbd::FieldType.Fixed32, 96, "unpacked_fixed32", unpackedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015610 }
15611 if (unpackedFixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015612 output.WriteArray(pbd::FieldType.Fixed64, 97, "unpacked_fixed64", unpackedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015613 }
15614 if (unpackedSfixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015615 output.WriteArray(pbd::FieldType.SFixed32, 98, "unpacked_sfixed32", unpackedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015616 }
15617 if (unpackedSfixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015618 output.WriteArray(pbd::FieldType.SFixed64, 99, "unpacked_sfixed64", unpackedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015619 }
15620 if (unpackedFloat_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015621 output.WriteArray(pbd::FieldType.Float, 100, "unpacked_float", unpackedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015622 }
15623 if (unpackedDouble_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015624 output.WriteArray(pbd::FieldType.Double, 101, "unpacked_double", unpackedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015625 }
15626 if (unpackedBool_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015627 output.WriteArray(pbd::FieldType.Bool, 102, "unpacked_bool", unpackedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015628 }
15629 if (unpackedEnum_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050015630 output.WriteArray(pbd::FieldType.Enum, 103, "unpacked_enum", unpackedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015631 }
15632 UnknownFields.WriteTo(output);
15633 }
15634
15635 private int memoizedSerializedSize = -1;
15636 public override int SerializedSize {
15637 get {
15638 int size = memoizedSerializedSize;
15639 if (size != -1) return size;
15640
15641 size = 0;
15642 {
15643 int dataSize = 0;
15644 foreach (int element in UnpackedInt32List) {
15645 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
15646 }
15647 size += dataSize;
15648 size += 2 * unpackedInt32_.Count;
15649 }
15650 {
15651 int dataSize = 0;
15652 foreach (long element in UnpackedInt64List) {
15653 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
15654 }
15655 size += dataSize;
15656 size += 2 * unpackedInt64_.Count;
15657 }
15658 {
15659 int dataSize = 0;
15660 foreach (uint element in UnpackedUint32List) {
15661 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
15662 }
15663 size += dataSize;
15664 size += 2 * unpackedUint32_.Count;
15665 }
15666 {
15667 int dataSize = 0;
15668 foreach (ulong element in UnpackedUint64List) {
15669 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
15670 }
15671 size += dataSize;
15672 size += 2 * unpackedUint64_.Count;
15673 }
15674 {
15675 int dataSize = 0;
15676 foreach (int element in UnpackedSint32List) {
15677 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
15678 }
15679 size += dataSize;
15680 size += 2 * unpackedSint32_.Count;
15681 }
15682 {
15683 int dataSize = 0;
15684 foreach (long element in UnpackedSint64List) {
15685 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
15686 }
15687 size += dataSize;
15688 size += 2 * unpackedSint64_.Count;
15689 }
15690 {
15691 int dataSize = 0;
15692 dataSize = 4 * unpackedFixed32_.Count;
15693 size += dataSize;
15694 size += 2 * unpackedFixed32_.Count;
15695 }
15696 {
15697 int dataSize = 0;
15698 dataSize = 8 * unpackedFixed64_.Count;
15699 size += dataSize;
15700 size += 2 * unpackedFixed64_.Count;
15701 }
15702 {
15703 int dataSize = 0;
15704 dataSize = 4 * unpackedSfixed32_.Count;
15705 size += dataSize;
15706 size += 2 * unpackedSfixed32_.Count;
15707 }
15708 {
15709 int dataSize = 0;
15710 dataSize = 8 * unpackedSfixed64_.Count;
15711 size += dataSize;
15712 size += 2 * unpackedSfixed64_.Count;
15713 }
15714 {
15715 int dataSize = 0;
15716 dataSize = 4 * unpackedFloat_.Count;
15717 size += dataSize;
15718 size += 2 * unpackedFloat_.Count;
15719 }
15720 {
15721 int dataSize = 0;
15722 dataSize = 8 * unpackedDouble_.Count;
15723 size += dataSize;
15724 size += 2 * unpackedDouble_.Count;
15725 }
15726 {
15727 int dataSize = 0;
15728 dataSize = 1 * unpackedBool_.Count;
15729 size += dataSize;
15730 size += 2 * unpackedBool_.Count;
15731 }
15732 {
15733 int dataSize = 0;
15734 if (unpackedEnum_.Count > 0) {
15735 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in unpackedEnum_) {
15736 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
15737 }
15738 size += dataSize;
15739 size += 2 * unpackedEnum_.Count;
15740 }
15741 }
15742 size += UnknownFields.SerializedSize;
15743 memoizedSerializedSize = size;
15744 return size;
15745 }
15746 }
15747
15748 public static TestUnpackedTypes ParseFrom(pb::ByteString data) {
15749 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
15750 }
15751 public static TestUnpackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
15752 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
15753 }
15754 public static TestUnpackedTypes ParseFrom(byte[] data) {
15755 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
15756 }
15757 public static TestUnpackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
15758 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
15759 }
15760 public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input) {
15761 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
15762 }
15763 public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
15764 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
15765 }
15766 public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
15767 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
15768 }
15769 public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
15770 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
15771 }
csharptest17699c22011-06-03 21:57:15 -050015772 public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015773 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
15774 }
csharptest17699c22011-06-03 21:57:15 -050015775 public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015776 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
15777 }
15778 public static Builder CreateBuilder() { return new Builder(); }
15779 public override Builder ToBuilder() { return CreateBuilder(this); }
15780 public override Builder CreateBuilderForType() { return new Builder(); }
15781 public static Builder CreateBuilder(TestUnpackedTypes prototype) {
15782 return (Builder) new Builder().MergeFrom(prototype);
15783 }
15784
csharptest445bdce2011-05-20 15:50:54 -050015785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
15786 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15787 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010015788 public sealed partial class Builder : pb::GeneratedBuilder<TestUnpackedTypes, Builder> {
15789 protected override Builder ThisBuilder {
15790 get { return this; }
15791 }
15792 public Builder() {}
15793
15794 TestUnpackedTypes result = new TestUnpackedTypes();
15795
15796 protected override TestUnpackedTypes MessageBeingBuilt {
15797 get { return result; }
15798 }
15799
15800 public override Builder Clear() {
15801 result = new TestUnpackedTypes();
15802 return this;
15803 }
15804
15805 public override Builder Clone() {
15806 return new Builder().MergeFrom(result);
15807 }
15808
15809 public override pbd::MessageDescriptor DescriptorForType {
15810 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Descriptor; }
15811 }
15812
15813 public override TestUnpackedTypes DefaultInstanceForType {
15814 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance; }
15815 }
15816
15817 public override TestUnpackedTypes BuildPartial() {
15818 if (result == null) {
15819 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
15820 }
15821 result.unpackedInt32_.MakeReadOnly();
15822 result.unpackedInt64_.MakeReadOnly();
15823 result.unpackedUint32_.MakeReadOnly();
15824 result.unpackedUint64_.MakeReadOnly();
15825 result.unpackedSint32_.MakeReadOnly();
15826 result.unpackedSint64_.MakeReadOnly();
15827 result.unpackedFixed32_.MakeReadOnly();
15828 result.unpackedFixed64_.MakeReadOnly();
15829 result.unpackedSfixed32_.MakeReadOnly();
15830 result.unpackedSfixed64_.MakeReadOnly();
15831 result.unpackedFloat_.MakeReadOnly();
15832 result.unpackedDouble_.MakeReadOnly();
15833 result.unpackedBool_.MakeReadOnly();
15834 result.unpackedEnum_.MakeReadOnly();
15835 TestUnpackedTypes returnMe = result;
15836 result = null;
15837 return returnMe;
15838 }
15839
15840 public override Builder MergeFrom(pb::IMessage other) {
15841 if (other is TestUnpackedTypes) {
15842 return MergeFrom((TestUnpackedTypes) other);
15843 } else {
15844 base.MergeFrom(other);
15845 return this;
15846 }
15847 }
15848
15849 public override Builder MergeFrom(TestUnpackedTypes other) {
15850 if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance) return this;
15851 if (other.unpackedInt32_.Count != 0) {
15852 base.AddRange(other.unpackedInt32_, result.unpackedInt32_);
15853 }
15854 if (other.unpackedInt64_.Count != 0) {
15855 base.AddRange(other.unpackedInt64_, result.unpackedInt64_);
15856 }
15857 if (other.unpackedUint32_.Count != 0) {
15858 base.AddRange(other.unpackedUint32_, result.unpackedUint32_);
15859 }
15860 if (other.unpackedUint64_.Count != 0) {
15861 base.AddRange(other.unpackedUint64_, result.unpackedUint64_);
15862 }
15863 if (other.unpackedSint32_.Count != 0) {
15864 base.AddRange(other.unpackedSint32_, result.unpackedSint32_);
15865 }
15866 if (other.unpackedSint64_.Count != 0) {
15867 base.AddRange(other.unpackedSint64_, result.unpackedSint64_);
15868 }
15869 if (other.unpackedFixed32_.Count != 0) {
15870 base.AddRange(other.unpackedFixed32_, result.unpackedFixed32_);
15871 }
15872 if (other.unpackedFixed64_.Count != 0) {
15873 base.AddRange(other.unpackedFixed64_, result.unpackedFixed64_);
15874 }
15875 if (other.unpackedSfixed32_.Count != 0) {
15876 base.AddRange(other.unpackedSfixed32_, result.unpackedSfixed32_);
15877 }
15878 if (other.unpackedSfixed64_.Count != 0) {
15879 base.AddRange(other.unpackedSfixed64_, result.unpackedSfixed64_);
15880 }
15881 if (other.unpackedFloat_.Count != 0) {
15882 base.AddRange(other.unpackedFloat_, result.unpackedFloat_);
15883 }
15884 if (other.unpackedDouble_.Count != 0) {
15885 base.AddRange(other.unpackedDouble_, result.unpackedDouble_);
15886 }
15887 if (other.unpackedBool_.Count != 0) {
15888 base.AddRange(other.unpackedBool_, result.unpackedBool_);
15889 }
15890 if (other.unpackedEnum_.Count != 0) {
15891 base.AddRange(other.unpackedEnum_, result.unpackedEnum_);
15892 }
15893 this.MergeUnknownFields(other.UnknownFields);
15894 return this;
15895 }
15896
csharptest17699c22011-06-03 21:57:15 -050015897 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015898 return MergeFrom(input, pb::ExtensionRegistry.Empty);
15899 }
15900
csharptest17699c22011-06-03 21:57:15 -050015901 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015902 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050015903 uint tag;
15904 string field_name;
15905 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015906 switch (tag) {
15907 case 0: {
csharptest99284412011-06-03 14:51:06 -050015908 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010015909 }
15910 default: {
15911 if (pb::WireFormat.IsEndGroupTag(tag)) {
15912 if (unknownFields != null) {
15913 this.UnknownFields = unknownFields.Build();
15914 }
15915 return this;
15916 }
15917 if (unknownFields == null) {
15918 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
15919 }
csharptestd2af9e92011-06-03 21:35:02 -050015920 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015921 break;
15922 }
15923 case 720: {
csharptestd2af9e92011-06-03 21:35:02 -050015924 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.unpackedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015925 break;
15926 }
15927 case 728: {
csharptestd2af9e92011-06-03 21:35:02 -050015928 input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.unpackedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015929 break;
15930 }
15931 case 736: {
csharptestd2af9e92011-06-03 21:35:02 -050015932 input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.unpackedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015933 break;
15934 }
15935 case 744: {
csharptestd2af9e92011-06-03 21:35:02 -050015936 input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.unpackedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015937 break;
15938 }
15939 case 752: {
csharptestd2af9e92011-06-03 21:35:02 -050015940 input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.unpackedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015941 break;
15942 }
15943 case 760: {
csharptestd2af9e92011-06-03 21:35:02 -050015944 input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.unpackedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015945 break;
15946 }
15947 case 773: {
csharptestd2af9e92011-06-03 21:35:02 -050015948 input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.unpackedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015949 break;
15950 }
15951 case 777: {
csharptestd2af9e92011-06-03 21:35:02 -050015952 input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.unpackedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015953 break;
15954 }
15955 case 789: {
csharptestd2af9e92011-06-03 21:35:02 -050015956 input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.unpackedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015957 break;
15958 }
15959 case 793: {
csharptestd2af9e92011-06-03 21:35:02 -050015960 input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.unpackedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015961 break;
15962 }
15963 case 805: {
csharptestd2af9e92011-06-03 21:35:02 -050015964 input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.unpackedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015965 break;
15966 }
15967 case 809: {
csharptestd2af9e92011-06-03 21:35:02 -050015968 input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.unpackedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015969 break;
15970 }
15971 case 816: {
csharptestd2af9e92011-06-03 21:35:02 -050015972 input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.unpackedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015973 break;
15974 }
15975 case 824: {
csharptestd2af9e92011-06-03 21:35:02 -050015976 scg::ICollection<object> unknownItems;
15977 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.unpackedEnum_, out unknownItems);
15978 if (unknownItems != null) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010015979 if (unknownFields == null) {
15980 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
15981 }
csharptestd2af9e92011-06-03 21:35:02 -050015982 foreach (object rawValue in unknownItems)
15983 if (rawValue is int)
15984 unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
Jon Skeet82bb0f12011-04-03 20:17:12 +010015985 }
15986 break;
15987 }
15988 }
15989 }
csharptest123e5342011-06-03 14:15:21 -050015990
15991 if (unknownFields != null) {
15992 this.UnknownFields = unknownFields.Build();
15993 }
15994 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010015995 }
15996
15997
15998 public pbc::IPopsicleList<int> UnpackedInt32List {
15999 get { return result.unpackedInt32_; }
16000 }
16001 public int UnpackedInt32Count {
16002 get { return result.UnpackedInt32Count; }
16003 }
16004 public int GetUnpackedInt32(int index) {
16005 return result.GetUnpackedInt32(index);
16006 }
16007 public Builder SetUnpackedInt32(int index, int value) {
16008 result.unpackedInt32_[index] = value;
16009 return this;
16010 }
16011 public Builder AddUnpackedInt32(int value) {
16012 result.unpackedInt32_.Add(value);
16013 return this;
16014 }
16015 public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
16016 base.AddRange(values, result.unpackedInt32_);
16017 return this;
16018 }
16019 public Builder ClearUnpackedInt32() {
16020 result.unpackedInt32_.Clear();
16021 return this;
16022 }
16023
16024 public pbc::IPopsicleList<long> UnpackedInt64List {
16025 get { return result.unpackedInt64_; }
16026 }
16027 public int UnpackedInt64Count {
16028 get { return result.UnpackedInt64Count; }
16029 }
16030 public long GetUnpackedInt64(int index) {
16031 return result.GetUnpackedInt64(index);
16032 }
16033 public Builder SetUnpackedInt64(int index, long value) {
16034 result.unpackedInt64_[index] = value;
16035 return this;
16036 }
16037 public Builder AddUnpackedInt64(long value) {
16038 result.unpackedInt64_.Add(value);
16039 return this;
16040 }
16041 public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
16042 base.AddRange(values, result.unpackedInt64_);
16043 return this;
16044 }
16045 public Builder ClearUnpackedInt64() {
16046 result.unpackedInt64_.Clear();
16047 return this;
16048 }
16049
16050 [global::System.CLSCompliant(false)]
16051 public pbc::IPopsicleList<uint> UnpackedUint32List {
16052 get { return result.unpackedUint32_; }
16053 }
16054 public int UnpackedUint32Count {
16055 get { return result.UnpackedUint32Count; }
16056 }
16057 [global::System.CLSCompliant(false)]
16058 public uint GetUnpackedUint32(int index) {
16059 return result.GetUnpackedUint32(index);
16060 }
16061 [global::System.CLSCompliant(false)]
16062 public Builder SetUnpackedUint32(int index, uint value) {
16063 result.unpackedUint32_[index] = value;
16064 return this;
16065 }
16066 [global::System.CLSCompliant(false)]
16067 public Builder AddUnpackedUint32(uint value) {
16068 result.unpackedUint32_.Add(value);
16069 return this;
16070 }
16071 [global::System.CLSCompliant(false)]
16072 public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
16073 base.AddRange(values, result.unpackedUint32_);
16074 return this;
16075 }
16076 public Builder ClearUnpackedUint32() {
16077 result.unpackedUint32_.Clear();
16078 return this;
16079 }
16080
16081 [global::System.CLSCompliant(false)]
16082 public pbc::IPopsicleList<ulong> UnpackedUint64List {
16083 get { return result.unpackedUint64_; }
16084 }
16085 public int UnpackedUint64Count {
16086 get { return result.UnpackedUint64Count; }
16087 }
16088 [global::System.CLSCompliant(false)]
16089 public ulong GetUnpackedUint64(int index) {
16090 return result.GetUnpackedUint64(index);
16091 }
16092 [global::System.CLSCompliant(false)]
16093 public Builder SetUnpackedUint64(int index, ulong value) {
16094 result.unpackedUint64_[index] = value;
16095 return this;
16096 }
16097 [global::System.CLSCompliant(false)]
16098 public Builder AddUnpackedUint64(ulong value) {
16099 result.unpackedUint64_.Add(value);
16100 return this;
16101 }
16102 [global::System.CLSCompliant(false)]
16103 public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
16104 base.AddRange(values, result.unpackedUint64_);
16105 return this;
16106 }
16107 public Builder ClearUnpackedUint64() {
16108 result.unpackedUint64_.Clear();
16109 return this;
16110 }
16111
16112 public pbc::IPopsicleList<int> UnpackedSint32List {
16113 get { return result.unpackedSint32_; }
16114 }
16115 public int UnpackedSint32Count {
16116 get { return result.UnpackedSint32Count; }
16117 }
16118 public int GetUnpackedSint32(int index) {
16119 return result.GetUnpackedSint32(index);
16120 }
16121 public Builder SetUnpackedSint32(int index, int value) {
16122 result.unpackedSint32_[index] = value;
16123 return this;
16124 }
16125 public Builder AddUnpackedSint32(int value) {
16126 result.unpackedSint32_.Add(value);
16127 return this;
16128 }
16129 public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
16130 base.AddRange(values, result.unpackedSint32_);
16131 return this;
16132 }
16133 public Builder ClearUnpackedSint32() {
16134 result.unpackedSint32_.Clear();
16135 return this;
16136 }
16137
16138 public pbc::IPopsicleList<long> UnpackedSint64List {
16139 get { return result.unpackedSint64_; }
16140 }
16141 public int UnpackedSint64Count {
16142 get { return result.UnpackedSint64Count; }
16143 }
16144 public long GetUnpackedSint64(int index) {
16145 return result.GetUnpackedSint64(index);
16146 }
16147 public Builder SetUnpackedSint64(int index, long value) {
16148 result.unpackedSint64_[index] = value;
16149 return this;
16150 }
16151 public Builder AddUnpackedSint64(long value) {
16152 result.unpackedSint64_.Add(value);
16153 return this;
16154 }
16155 public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
16156 base.AddRange(values, result.unpackedSint64_);
16157 return this;
16158 }
16159 public Builder ClearUnpackedSint64() {
16160 result.unpackedSint64_.Clear();
16161 return this;
16162 }
16163
16164 [global::System.CLSCompliant(false)]
16165 public pbc::IPopsicleList<uint> UnpackedFixed32List {
16166 get { return result.unpackedFixed32_; }
16167 }
16168 public int UnpackedFixed32Count {
16169 get { return result.UnpackedFixed32Count; }
16170 }
16171 [global::System.CLSCompliant(false)]
16172 public uint GetUnpackedFixed32(int index) {
16173 return result.GetUnpackedFixed32(index);
16174 }
16175 [global::System.CLSCompliant(false)]
16176 public Builder SetUnpackedFixed32(int index, uint value) {
16177 result.unpackedFixed32_[index] = value;
16178 return this;
16179 }
16180 [global::System.CLSCompliant(false)]
16181 public Builder AddUnpackedFixed32(uint value) {
16182 result.unpackedFixed32_.Add(value);
16183 return this;
16184 }
16185 [global::System.CLSCompliant(false)]
16186 public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
16187 base.AddRange(values, result.unpackedFixed32_);
16188 return this;
16189 }
16190 public Builder ClearUnpackedFixed32() {
16191 result.unpackedFixed32_.Clear();
16192 return this;
16193 }
16194
16195 [global::System.CLSCompliant(false)]
16196 public pbc::IPopsicleList<ulong> UnpackedFixed64List {
16197 get { return result.unpackedFixed64_; }
16198 }
16199 public int UnpackedFixed64Count {
16200 get { return result.UnpackedFixed64Count; }
16201 }
16202 [global::System.CLSCompliant(false)]
16203 public ulong GetUnpackedFixed64(int index) {
16204 return result.GetUnpackedFixed64(index);
16205 }
16206 [global::System.CLSCompliant(false)]
16207 public Builder SetUnpackedFixed64(int index, ulong value) {
16208 result.unpackedFixed64_[index] = value;
16209 return this;
16210 }
16211 [global::System.CLSCompliant(false)]
16212 public Builder AddUnpackedFixed64(ulong value) {
16213 result.unpackedFixed64_.Add(value);
16214 return this;
16215 }
16216 [global::System.CLSCompliant(false)]
16217 public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
16218 base.AddRange(values, result.unpackedFixed64_);
16219 return this;
16220 }
16221 public Builder ClearUnpackedFixed64() {
16222 result.unpackedFixed64_.Clear();
16223 return this;
16224 }
16225
16226 public pbc::IPopsicleList<int> UnpackedSfixed32List {
16227 get { return result.unpackedSfixed32_; }
16228 }
16229 public int UnpackedSfixed32Count {
16230 get { return result.UnpackedSfixed32Count; }
16231 }
16232 public int GetUnpackedSfixed32(int index) {
16233 return result.GetUnpackedSfixed32(index);
16234 }
16235 public Builder SetUnpackedSfixed32(int index, int value) {
16236 result.unpackedSfixed32_[index] = value;
16237 return this;
16238 }
16239 public Builder AddUnpackedSfixed32(int value) {
16240 result.unpackedSfixed32_.Add(value);
16241 return this;
16242 }
16243 public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
16244 base.AddRange(values, result.unpackedSfixed32_);
16245 return this;
16246 }
16247 public Builder ClearUnpackedSfixed32() {
16248 result.unpackedSfixed32_.Clear();
16249 return this;
16250 }
16251
16252 public pbc::IPopsicleList<long> UnpackedSfixed64List {
16253 get { return result.unpackedSfixed64_; }
16254 }
16255 public int UnpackedSfixed64Count {
16256 get { return result.UnpackedSfixed64Count; }
16257 }
16258 public long GetUnpackedSfixed64(int index) {
16259 return result.GetUnpackedSfixed64(index);
16260 }
16261 public Builder SetUnpackedSfixed64(int index, long value) {
16262 result.unpackedSfixed64_[index] = value;
16263 return this;
16264 }
16265 public Builder AddUnpackedSfixed64(long value) {
16266 result.unpackedSfixed64_.Add(value);
16267 return this;
16268 }
16269 public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
16270 base.AddRange(values, result.unpackedSfixed64_);
16271 return this;
16272 }
16273 public Builder ClearUnpackedSfixed64() {
16274 result.unpackedSfixed64_.Clear();
16275 return this;
16276 }
16277
16278 public pbc::IPopsicleList<float> UnpackedFloatList {
16279 get { return result.unpackedFloat_; }
16280 }
16281 public int UnpackedFloatCount {
16282 get { return result.UnpackedFloatCount; }
16283 }
16284 public float GetUnpackedFloat(int index) {
16285 return result.GetUnpackedFloat(index);
16286 }
16287 public Builder SetUnpackedFloat(int index, float value) {
16288 result.unpackedFloat_[index] = value;
16289 return this;
16290 }
16291 public Builder AddUnpackedFloat(float value) {
16292 result.unpackedFloat_.Add(value);
16293 return this;
16294 }
16295 public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
16296 base.AddRange(values, result.unpackedFloat_);
16297 return this;
16298 }
16299 public Builder ClearUnpackedFloat() {
16300 result.unpackedFloat_.Clear();
16301 return this;
16302 }
16303
16304 public pbc::IPopsicleList<double> UnpackedDoubleList {
16305 get { return result.unpackedDouble_; }
16306 }
16307 public int UnpackedDoubleCount {
16308 get { return result.UnpackedDoubleCount; }
16309 }
16310 public double GetUnpackedDouble(int index) {
16311 return result.GetUnpackedDouble(index);
16312 }
16313 public Builder SetUnpackedDouble(int index, double value) {
16314 result.unpackedDouble_[index] = value;
16315 return this;
16316 }
16317 public Builder AddUnpackedDouble(double value) {
16318 result.unpackedDouble_.Add(value);
16319 return this;
16320 }
16321 public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
16322 base.AddRange(values, result.unpackedDouble_);
16323 return this;
16324 }
16325 public Builder ClearUnpackedDouble() {
16326 result.unpackedDouble_.Clear();
16327 return this;
16328 }
16329
16330 public pbc::IPopsicleList<bool> UnpackedBoolList {
16331 get { return result.unpackedBool_; }
16332 }
16333 public int UnpackedBoolCount {
16334 get { return result.UnpackedBoolCount; }
16335 }
16336 public bool GetUnpackedBool(int index) {
16337 return result.GetUnpackedBool(index);
16338 }
16339 public Builder SetUnpackedBool(int index, bool value) {
16340 result.unpackedBool_[index] = value;
16341 return this;
16342 }
16343 public Builder AddUnpackedBool(bool value) {
16344 result.unpackedBool_.Add(value);
16345 return this;
16346 }
16347 public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
16348 base.AddRange(values, result.unpackedBool_);
16349 return this;
16350 }
16351 public Builder ClearUnpackedBool() {
16352 result.unpackedBool_.Clear();
16353 return this;
16354 }
16355
16356 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
16357 get { return result.unpackedEnum_; }
16358 }
16359 public int UnpackedEnumCount {
16360 get { return result.UnpackedEnumCount; }
16361 }
16362 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
16363 return result.GetUnpackedEnum(index);
16364 }
16365 public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
16366 result.unpackedEnum_[index] = value;
16367 return this;
16368 }
16369 public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
16370 result.unpackedEnum_.Add(value);
16371 return this;
16372 }
16373 public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
16374 base.AddRange(values, result.unpackedEnum_);
16375 return this;
16376 }
16377 public Builder ClearUnpackedEnum() {
16378 result.unpackedEnum_.Clear();
16379 return this;
16380 }
16381 }
16382 static TestUnpackedTypes() {
16383 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16384 }
16385 }
16386
csharptest445bdce2011-05-20 15:50:54 -050016387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16388 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16389 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016390 public sealed partial class TestPackedExtensions : pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder> {
16391 private static readonly TestPackedExtensions defaultInstance = new Builder().BuildPartial();
16392 public static TestPackedExtensions DefaultInstance {
16393 get { return defaultInstance; }
16394 }
16395
16396 public override TestPackedExtensions DefaultInstanceForType {
16397 get { return defaultInstance; }
16398 }
16399
16400 protected override TestPackedExtensions ThisMessage {
16401 get { return this; }
16402 }
16403
16404 public static pbd::MessageDescriptor Descriptor {
16405 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__Descriptor; }
16406 }
16407
16408 protected override pb::FieldAccess.FieldAccessorTable<TestPackedExtensions, TestPackedExtensions.Builder> InternalFieldAccessors {
16409 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable; }
16410 }
16411
16412 public override bool IsInitialized {
16413 get {
16414 if (!ExtensionsAreInitialized) return false;
16415 return true;
16416 }
16417 }
16418
csharptestffafdaa2011-06-03 12:58:14 -050016419 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016420 int size = SerializedSize;
16421 pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
16422 extensionWriter.WriteUntil(536870912, output);
16423 UnknownFields.WriteTo(output);
16424 }
16425
16426 private int memoizedSerializedSize = -1;
16427 public override int SerializedSize {
16428 get {
16429 int size = memoizedSerializedSize;
16430 if (size != -1) return size;
16431
16432 size = 0;
16433 size += ExtensionsSerializedSize;
16434 size += UnknownFields.SerializedSize;
16435 memoizedSerializedSize = size;
16436 return size;
16437 }
16438 }
16439
16440 public static TestPackedExtensions ParseFrom(pb::ByteString data) {
16441 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16442 }
16443 public static TestPackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
16444 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16445 }
16446 public static TestPackedExtensions ParseFrom(byte[] data) {
16447 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16448 }
16449 public static TestPackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
16450 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16451 }
16452 public static TestPackedExtensions ParseFrom(global::System.IO.Stream input) {
16453 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16454 }
16455 public static TestPackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16456 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16457 }
16458 public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
16459 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
16460 }
16461 public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16462 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
16463 }
csharptest17699c22011-06-03 21:57:15 -050016464 public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016465 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16466 }
csharptest17699c22011-06-03 21:57:15 -050016467 public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016468 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16469 }
16470 public static Builder CreateBuilder() { return new Builder(); }
16471 public override Builder ToBuilder() { return CreateBuilder(this); }
16472 public override Builder CreateBuilderForType() { return new Builder(); }
16473 public static Builder CreateBuilder(TestPackedExtensions prototype) {
16474 return (Builder) new Builder().MergeFrom(prototype);
16475 }
16476
csharptest445bdce2011-05-20 15:50:54 -050016477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16478 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16479 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016480 public sealed partial class Builder : pb::ExtendableBuilder<TestPackedExtensions, Builder> {
16481 protected override Builder ThisBuilder {
16482 get { return this; }
16483 }
16484 public Builder() {}
16485
16486 TestPackedExtensions result = new TestPackedExtensions();
16487
16488 protected override TestPackedExtensions MessageBeingBuilt {
16489 get { return result; }
16490 }
16491
16492 public override Builder Clear() {
16493 result = new TestPackedExtensions();
16494 return this;
16495 }
16496
16497 public override Builder Clone() {
16498 return new Builder().MergeFrom(result);
16499 }
16500
16501 public override pbd::MessageDescriptor DescriptorForType {
16502 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Descriptor; }
16503 }
16504
16505 public override TestPackedExtensions DefaultInstanceForType {
16506 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance; }
16507 }
16508
16509 public override TestPackedExtensions BuildPartial() {
16510 if (result == null) {
16511 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
16512 }
16513 TestPackedExtensions returnMe = result;
16514 result = null;
16515 return returnMe;
16516 }
16517
16518 public override Builder MergeFrom(pb::IMessage other) {
16519 if (other is TestPackedExtensions) {
16520 return MergeFrom((TestPackedExtensions) other);
16521 } else {
16522 base.MergeFrom(other);
16523 return this;
16524 }
16525 }
16526
16527 public override Builder MergeFrom(TestPackedExtensions other) {
16528 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance) return this;
16529 this.MergeExtensionFields(other);
16530 this.MergeUnknownFields(other.UnknownFields);
16531 return this;
16532 }
16533
csharptest17699c22011-06-03 21:57:15 -050016534 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016535 return MergeFrom(input, pb::ExtensionRegistry.Empty);
16536 }
16537
csharptest17699c22011-06-03 21:57:15 -050016538 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016539 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050016540 uint tag;
16541 string field_name;
16542 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016543 switch (tag) {
16544 case 0: {
csharptest99284412011-06-03 14:51:06 -050016545 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010016546 }
16547 default: {
16548 if (pb::WireFormat.IsEndGroupTag(tag)) {
16549 if (unknownFields != null) {
16550 this.UnknownFields = unknownFields.Build();
16551 }
16552 return this;
16553 }
16554 if (unknownFields == null) {
16555 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16556 }
csharptestd2af9e92011-06-03 21:35:02 -050016557 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016558 break;
16559 }
16560 }
16561 }
csharptest123e5342011-06-03 14:15:21 -050016562
16563 if (unknownFields != null) {
16564 this.UnknownFields = unknownFields.Build();
16565 }
16566 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010016567 }
16568
16569 }
16570 static TestPackedExtensions() {
16571 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16572 }
16573 }
16574
csharptest445bdce2011-05-20 15:50:54 -050016575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16576 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16577 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016578 public sealed partial class TestDynamicExtensions : pb::GeneratedMessage<TestDynamicExtensions, TestDynamicExtensions.Builder> {
16579 private static readonly TestDynamicExtensions defaultInstance = new Builder().BuildPartial();
16580 public static TestDynamicExtensions DefaultInstance {
16581 get { return defaultInstance; }
16582 }
16583
16584 public override TestDynamicExtensions DefaultInstanceForType {
16585 get { return defaultInstance; }
16586 }
16587
16588 protected override TestDynamicExtensions ThisMessage {
16589 get { return this; }
16590 }
16591
16592 public static pbd::MessageDescriptor Descriptor {
16593 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor; }
16594 }
16595
16596 protected override pb::FieldAccess.FieldAccessorTable<TestDynamicExtensions, TestDynamicExtensions.Builder> InternalFieldAccessors {
16597 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable; }
16598 }
16599
16600 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050016601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16602 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16603 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016604 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050016605 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16606 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016607 public enum DynamicEnumType {
16608 DYNAMIC_FOO = 2200,
16609 DYNAMIC_BAR = 2201,
16610 DYNAMIC_BAZ = 2202,
16611 }
16612
csharptest445bdce2011-05-20 15:50:54 -050016613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16614 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16615 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016616 public sealed partial class DynamicMessageType : pb::GeneratedMessage<DynamicMessageType, DynamicMessageType.Builder> {
16617 private static readonly DynamicMessageType defaultInstance = new Builder().BuildPartial();
16618 public static DynamicMessageType DefaultInstance {
16619 get { return defaultInstance; }
16620 }
16621
16622 public override DynamicMessageType DefaultInstanceForType {
16623 get { return defaultInstance; }
16624 }
16625
16626 protected override DynamicMessageType ThisMessage {
16627 get { return this; }
16628 }
16629
16630 public static pbd::MessageDescriptor Descriptor {
16631 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor; }
16632 }
16633
16634 protected override pb::FieldAccess.FieldAccessorTable<DynamicMessageType, DynamicMessageType.Builder> InternalFieldAccessors {
16635 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable; }
16636 }
16637
16638 public const int DynamicFieldFieldNumber = 2100;
16639 private bool hasDynamicField;
16640 private int dynamicField_ = 0;
16641 public bool HasDynamicField {
16642 get { return hasDynamicField; }
16643 }
16644 public int DynamicField {
16645 get { return dynamicField_; }
16646 }
16647
16648 public override bool IsInitialized {
16649 get {
16650 return true;
16651 }
16652 }
16653
csharptestffafdaa2011-06-03 12:58:14 -050016654 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016655 int size = SerializedSize;
16656 if (HasDynamicField) {
csharptest90922db2011-06-03 11:57:47 -050016657 output.WriteInt32(2100, "dynamic_field", DynamicField);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016658 }
16659 UnknownFields.WriteTo(output);
16660 }
16661
16662 private int memoizedSerializedSize = -1;
16663 public override int SerializedSize {
16664 get {
16665 int size = memoizedSerializedSize;
16666 if (size != -1) return size;
16667
16668 size = 0;
16669 if (HasDynamicField) {
16670 size += pb::CodedOutputStream.ComputeInt32Size(2100, DynamicField);
16671 }
16672 size += UnknownFields.SerializedSize;
16673 memoizedSerializedSize = size;
16674 return size;
16675 }
16676 }
16677
16678 public static DynamicMessageType ParseFrom(pb::ByteString data) {
16679 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16680 }
16681 public static DynamicMessageType ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
16682 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16683 }
16684 public static DynamicMessageType ParseFrom(byte[] data) {
16685 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16686 }
16687 public static DynamicMessageType ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
16688 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16689 }
16690 public static DynamicMessageType ParseFrom(global::System.IO.Stream input) {
16691 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16692 }
16693 public static DynamicMessageType ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16694 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16695 }
16696 public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input) {
16697 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
16698 }
16699 public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16700 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
16701 }
csharptest17699c22011-06-03 21:57:15 -050016702 public static DynamicMessageType ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016703 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16704 }
csharptest17699c22011-06-03 21:57:15 -050016705 public static DynamicMessageType ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016706 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16707 }
16708 public static Builder CreateBuilder() { return new Builder(); }
16709 public override Builder ToBuilder() { return CreateBuilder(this); }
16710 public override Builder CreateBuilderForType() { return new Builder(); }
16711 public static Builder CreateBuilder(DynamicMessageType prototype) {
16712 return (Builder) new Builder().MergeFrom(prototype);
16713 }
16714
csharptest445bdce2011-05-20 15:50:54 -050016715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16716 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16717 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016718 public sealed partial class Builder : pb::GeneratedBuilder<DynamicMessageType, Builder> {
16719 protected override Builder ThisBuilder {
16720 get { return this; }
16721 }
16722 public Builder() {}
16723
16724 DynamicMessageType result = new DynamicMessageType();
16725
16726 protected override DynamicMessageType MessageBeingBuilt {
16727 get { return result; }
16728 }
16729
16730 public override Builder Clear() {
16731 result = new DynamicMessageType();
16732 return this;
16733 }
16734
16735 public override Builder Clone() {
16736 return new Builder().MergeFrom(result);
16737 }
16738
16739 public override pbd::MessageDescriptor DescriptorForType {
16740 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Descriptor; }
16741 }
16742
16743 public override DynamicMessageType DefaultInstanceForType {
16744 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
16745 }
16746
16747 public override DynamicMessageType BuildPartial() {
16748 if (result == null) {
16749 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
16750 }
16751 DynamicMessageType returnMe = result;
16752 result = null;
16753 return returnMe;
16754 }
16755
16756 public override Builder MergeFrom(pb::IMessage other) {
16757 if (other is DynamicMessageType) {
16758 return MergeFrom((DynamicMessageType) other);
16759 } else {
16760 base.MergeFrom(other);
16761 return this;
16762 }
16763 }
16764
16765 public override Builder MergeFrom(DynamicMessageType other) {
16766 if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) return this;
16767 if (other.HasDynamicField) {
16768 DynamicField = other.DynamicField;
16769 }
16770 this.MergeUnknownFields(other.UnknownFields);
16771 return this;
16772 }
16773
csharptest17699c22011-06-03 21:57:15 -050016774 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016775 return MergeFrom(input, pb::ExtensionRegistry.Empty);
16776 }
16777
csharptest17699c22011-06-03 21:57:15 -050016778 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016779 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050016780 uint tag;
16781 string field_name;
16782 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016783 switch (tag) {
16784 case 0: {
csharptest99284412011-06-03 14:51:06 -050016785 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010016786 }
16787 default: {
16788 if (pb::WireFormat.IsEndGroupTag(tag)) {
16789 if (unknownFields != null) {
16790 this.UnknownFields = unknownFields.Build();
16791 }
16792 return this;
16793 }
16794 if (unknownFields == null) {
16795 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16796 }
csharptestd2af9e92011-06-03 21:35:02 -050016797 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016798 break;
16799 }
16800 case 16800: {
csharptestd2af9e92011-06-03 21:35:02 -050016801 result.hasDynamicField |= input.ReadInt32(ref result.dynamicField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016802 break;
16803 }
16804 }
16805 }
csharptest123e5342011-06-03 14:15:21 -050016806
16807 if (unknownFields != null) {
16808 this.UnknownFields = unknownFields.Build();
16809 }
16810 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010016811 }
16812
16813
16814 public bool HasDynamicField {
16815 get { return result.HasDynamicField; }
16816 }
16817 public int DynamicField {
16818 get { return result.DynamicField; }
16819 set { SetDynamicField(value); }
16820 }
16821 public Builder SetDynamicField(int value) {
16822 result.hasDynamicField = true;
16823 result.dynamicField_ = value;
16824 return this;
16825 }
16826 public Builder ClearDynamicField() {
16827 result.hasDynamicField = false;
16828 result.dynamicField_ = 0;
16829 return this;
16830 }
16831 }
16832 static DynamicMessageType() {
16833 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16834 }
16835 }
16836
16837 }
16838 #endregion
16839
16840 public const int ScalarExtensionFieldNumber = 2000;
16841 private bool hasScalarExtension;
16842 private uint scalarExtension_ = 0;
16843 public bool HasScalarExtension {
16844 get { return hasScalarExtension; }
16845 }
16846 [global::System.CLSCompliant(false)]
16847 public uint ScalarExtension {
16848 get { return scalarExtension_; }
16849 }
16850
16851 public const int EnumExtensionFieldNumber = 2001;
16852 private bool hasEnumExtension;
16853 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
16854 public bool HasEnumExtension {
16855 get { return hasEnumExtension; }
16856 }
16857 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
16858 get { return enumExtension_; }
16859 }
16860
16861 public const int DynamicEnumExtensionFieldNumber = 2002;
16862 private bool hasDynamicEnumExtension;
16863 private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
16864 public bool HasDynamicEnumExtension {
16865 get { return hasDynamicEnumExtension; }
16866 }
16867 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
16868 get { return dynamicEnumExtension_; }
16869 }
16870
16871 public const int MessageExtensionFieldNumber = 2003;
16872 private bool hasMessageExtension;
16873 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
16874 public bool HasMessageExtension {
16875 get { return hasMessageExtension; }
16876 }
16877 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
16878 get { return messageExtension_; }
16879 }
16880
16881 public const int DynamicMessageExtensionFieldNumber = 2004;
16882 private bool hasDynamicMessageExtension;
16883 private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance;
16884 public bool HasDynamicMessageExtension {
16885 get { return hasDynamicMessageExtension; }
16886 }
16887 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
16888 get { return dynamicMessageExtension_; }
16889 }
16890
16891 public const int RepeatedExtensionFieldNumber = 2005;
16892 private pbc::PopsicleList<string> repeatedExtension_ = new pbc::PopsicleList<string>();
16893 public scg::IList<string> RepeatedExtensionList {
16894 get { return pbc::Lists.AsReadOnly(repeatedExtension_); }
16895 }
16896 public int RepeatedExtensionCount {
16897 get { return repeatedExtension_.Count; }
16898 }
16899 public string GetRepeatedExtension(int index) {
16900 return repeatedExtension_[index];
16901 }
16902
16903 public const int PackedExtensionFieldNumber = 2006;
16904 private int packedExtensionMemoizedSerializedSize;
16905 private pbc::PopsicleList<int> packedExtension_ = new pbc::PopsicleList<int>();
16906 public scg::IList<int> PackedExtensionList {
16907 get { return pbc::Lists.AsReadOnly(packedExtension_); }
16908 }
16909 public int PackedExtensionCount {
16910 get { return packedExtension_.Count; }
16911 }
16912 public int GetPackedExtension(int index) {
16913 return packedExtension_[index];
16914 }
16915
16916 public override bool IsInitialized {
16917 get {
16918 return true;
16919 }
16920 }
16921
csharptestffafdaa2011-06-03 12:58:14 -050016922 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010016923 int size = SerializedSize;
16924 if (HasScalarExtension) {
csharptest90922db2011-06-03 11:57:47 -050016925 output.WriteFixed32(2000, "scalar_extension", ScalarExtension);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016926 }
16927 if (HasEnumExtension) {
csharptest90922db2011-06-03 11:57:47 -050016928 output.WriteEnum(2001, "enum_extension", (int) EnumExtension, EnumExtension.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +010016929 }
16930 if (HasDynamicEnumExtension) {
csharptest90922db2011-06-03 11:57:47 -050016931 output.WriteEnum(2002, "dynamic_enum_extension", (int) DynamicEnumExtension, DynamicEnumExtension.ToString());
Jon Skeet82bb0f12011-04-03 20:17:12 +010016932 }
16933 if (HasMessageExtension) {
csharptest90922db2011-06-03 11:57:47 -050016934 output.WriteMessage(2003, "message_extension", MessageExtension);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016935 }
16936 if (HasDynamicMessageExtension) {
csharptest90922db2011-06-03 11:57:47 -050016937 output.WriteMessage(2004, "dynamic_message_extension", DynamicMessageExtension);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016938 }
16939 if (repeatedExtension_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050016940 output.WriteArray(pbd::FieldType.String, 2005, "repeated_extension", repeatedExtension_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016941 }
16942 if (packedExtension_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050016943 output.WritePackedArray(pbd::FieldType.SInt32, 2006, "packed_extension", packedExtensionMemoizedSerializedSize, packedExtension_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010016944 }
16945 UnknownFields.WriteTo(output);
16946 }
16947
16948 private int memoizedSerializedSize = -1;
16949 public override int SerializedSize {
16950 get {
16951 int size = memoizedSerializedSize;
16952 if (size != -1) return size;
16953
16954 size = 0;
16955 if (HasScalarExtension) {
16956 size += pb::CodedOutputStream.ComputeFixed32Size(2000, ScalarExtension);
16957 }
16958 if (HasEnumExtension) {
16959 size += pb::CodedOutputStream.ComputeEnumSize(2001, (int) EnumExtension);
16960 }
16961 if (HasDynamicEnumExtension) {
16962 size += pb::CodedOutputStream.ComputeEnumSize(2002, (int) DynamicEnumExtension);
16963 }
16964 if (HasMessageExtension) {
16965 size += pb::CodedOutputStream.ComputeMessageSize(2003, MessageExtension);
16966 }
16967 if (HasDynamicMessageExtension) {
16968 size += pb::CodedOutputStream.ComputeMessageSize(2004, DynamicMessageExtension);
16969 }
16970 {
16971 int dataSize = 0;
16972 foreach (string element in RepeatedExtensionList) {
16973 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
16974 }
16975 size += dataSize;
16976 size += 2 * repeatedExtension_.Count;
16977 }
16978 {
16979 int dataSize = 0;
16980 foreach (int element in PackedExtensionList) {
16981 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
16982 }
16983 size += dataSize;
16984 if (packedExtension_.Count != 0) {
16985 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
16986 }
16987 packedExtensionMemoizedSerializedSize = dataSize;
16988 }
16989 size += UnknownFields.SerializedSize;
16990 memoizedSerializedSize = size;
16991 return size;
16992 }
16993 }
16994
16995 public static TestDynamicExtensions ParseFrom(pb::ByteString data) {
16996 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16997 }
16998 public static TestDynamicExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
16999 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17000 }
17001 public static TestDynamicExtensions ParseFrom(byte[] data) {
17002 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17003 }
17004 public static TestDynamicExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
17005 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17006 }
17007 public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input) {
17008 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17009 }
17010 public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17011 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17012 }
17013 public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
17014 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
17015 }
17016 public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17017 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
17018 }
csharptest17699c22011-06-03 21:57:15 -050017019 public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017020 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17021 }
csharptest17699c22011-06-03 21:57:15 -050017022 public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017023 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17024 }
17025 public static Builder CreateBuilder() { return new Builder(); }
17026 public override Builder ToBuilder() { return CreateBuilder(this); }
17027 public override Builder CreateBuilderForType() { return new Builder(); }
17028 public static Builder CreateBuilder(TestDynamicExtensions prototype) {
17029 return (Builder) new Builder().MergeFrom(prototype);
17030 }
17031
csharptest445bdce2011-05-20 15:50:54 -050017032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17033 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17034 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017035 public sealed partial class Builder : pb::GeneratedBuilder<TestDynamicExtensions, Builder> {
17036 protected override Builder ThisBuilder {
17037 get { return this; }
17038 }
17039 public Builder() {}
17040
17041 TestDynamicExtensions result = new TestDynamicExtensions();
17042
17043 protected override TestDynamicExtensions MessageBeingBuilt {
17044 get { return result; }
17045 }
17046
17047 public override Builder Clear() {
17048 result = new TestDynamicExtensions();
17049 return this;
17050 }
17051
17052 public override Builder Clone() {
17053 return new Builder().MergeFrom(result);
17054 }
17055
17056 public override pbd::MessageDescriptor DescriptorForType {
17057 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Descriptor; }
17058 }
17059
17060 public override TestDynamicExtensions DefaultInstanceForType {
17061 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance; }
17062 }
17063
17064 public override TestDynamicExtensions BuildPartial() {
17065 if (result == null) {
17066 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
17067 }
17068 result.repeatedExtension_.MakeReadOnly();
17069 result.packedExtension_.MakeReadOnly();
17070 TestDynamicExtensions returnMe = result;
17071 result = null;
17072 return returnMe;
17073 }
17074
17075 public override Builder MergeFrom(pb::IMessage other) {
17076 if (other is TestDynamicExtensions) {
17077 return MergeFrom((TestDynamicExtensions) other);
17078 } else {
17079 base.MergeFrom(other);
17080 return this;
17081 }
17082 }
17083
17084 public override Builder MergeFrom(TestDynamicExtensions other) {
17085 if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance) return this;
17086 if (other.HasScalarExtension) {
17087 ScalarExtension = other.ScalarExtension;
17088 }
17089 if (other.HasEnumExtension) {
17090 EnumExtension = other.EnumExtension;
17091 }
17092 if (other.HasDynamicEnumExtension) {
17093 DynamicEnumExtension = other.DynamicEnumExtension;
17094 }
17095 if (other.HasMessageExtension) {
17096 MergeMessageExtension(other.MessageExtension);
17097 }
17098 if (other.HasDynamicMessageExtension) {
17099 MergeDynamicMessageExtension(other.DynamicMessageExtension);
17100 }
17101 if (other.repeatedExtension_.Count != 0) {
17102 base.AddRange(other.repeatedExtension_, result.repeatedExtension_);
17103 }
17104 if (other.packedExtension_.Count != 0) {
17105 base.AddRange(other.packedExtension_, result.packedExtension_);
17106 }
17107 this.MergeUnknownFields(other.UnknownFields);
17108 return this;
17109 }
17110
csharptest17699c22011-06-03 21:57:15 -050017111 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017112 return MergeFrom(input, pb::ExtensionRegistry.Empty);
17113 }
17114
csharptest17699c22011-06-03 21:57:15 -050017115 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017116 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050017117 uint tag;
17118 string field_name;
17119 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017120 switch (tag) {
17121 case 0: {
csharptest99284412011-06-03 14:51:06 -050017122 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010017123 }
17124 default: {
17125 if (pb::WireFormat.IsEndGroupTag(tag)) {
17126 if (unknownFields != null) {
17127 this.UnknownFields = unknownFields.Build();
17128 }
17129 return this;
17130 }
17131 if (unknownFields == null) {
17132 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17133 }
csharptestd2af9e92011-06-03 21:35:02 -050017134 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017135 break;
17136 }
17137 case 16005: {
csharptestd2af9e92011-06-03 21:35:02 -050017138 result.hasScalarExtension |= input.ReadFixed32(ref result.scalarExtension_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017139 break;
17140 }
17141 case 16008: {
csharptestd2af9e92011-06-03 21:35:02 -050017142 object unknown;
17143 if(input.ReadEnum(ref result.enumExtension_, out unknown)) {
17144 result.hasEnumExtension = true;
17145 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017146 if (unknownFields == null) {
17147 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17148 }
csharptestd2af9e92011-06-03 21:35:02 -050017149 unknownFields.MergeVarintField(2001, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017150 }
17151 break;
17152 }
17153 case 16016: {
csharptestd2af9e92011-06-03 21:35:02 -050017154 object unknown;
17155 if(input.ReadEnum(ref result.dynamicEnumExtension_, out unknown)) {
17156 result.hasDynamicEnumExtension = true;
17157 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017158 if (unknownFields == null) {
17159 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17160 }
csharptestd2af9e92011-06-03 21:35:02 -050017161 unknownFields.MergeVarintField(2002, (ulong)(int)unknown);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017162 }
17163 break;
17164 }
17165 case 16026: {
17166 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
17167 if (HasMessageExtension) {
17168 subBuilder.MergeFrom(MessageExtension);
17169 }
17170 input.ReadMessage(subBuilder, extensionRegistry);
17171 MessageExtension = subBuilder.BuildPartial();
17172 break;
17173 }
17174 case 16034: {
17175 global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder();
17176 if (HasDynamicMessageExtension) {
17177 subBuilder.MergeFrom(DynamicMessageExtension);
17178 }
17179 input.ReadMessage(subBuilder, extensionRegistry);
17180 DynamicMessageExtension = subBuilder.BuildPartial();
17181 break;
17182 }
17183 case 16042: {
csharptestd2af9e92011-06-03 21:35:02 -050017184 input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedExtension_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017185 break;
17186 }
17187 case 16050: {
csharptestd2af9e92011-06-03 21:35:02 -050017188 input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.packedExtension_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017189 break;
17190 }
17191 }
17192 }
csharptest123e5342011-06-03 14:15:21 -050017193
17194 if (unknownFields != null) {
17195 this.UnknownFields = unknownFields.Build();
17196 }
17197 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010017198 }
17199
17200
17201 public bool HasScalarExtension {
17202 get { return result.HasScalarExtension; }
17203 }
17204 [global::System.CLSCompliant(false)]
17205 public uint ScalarExtension {
17206 get { return result.ScalarExtension; }
17207 set { SetScalarExtension(value); }
17208 }
17209 [global::System.CLSCompliant(false)]
17210 public Builder SetScalarExtension(uint value) {
17211 result.hasScalarExtension = true;
17212 result.scalarExtension_ = value;
17213 return this;
17214 }
17215 public Builder ClearScalarExtension() {
17216 result.hasScalarExtension = false;
17217 result.scalarExtension_ = 0;
17218 return this;
17219 }
17220
17221 public bool HasEnumExtension {
17222 get { return result.HasEnumExtension; }
17223 }
17224 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
17225 get { return result.EnumExtension; }
17226 set { SetEnumExtension(value); }
17227 }
17228 public Builder SetEnumExtension(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
17229 result.hasEnumExtension = true;
17230 result.enumExtension_ = value;
17231 return this;
17232 }
17233 public Builder ClearEnumExtension() {
17234 result.hasEnumExtension = false;
17235 result.enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
17236 return this;
17237 }
17238
17239 public bool HasDynamicEnumExtension {
17240 get { return result.HasDynamicEnumExtension; }
17241 }
17242 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
17243 get { return result.DynamicEnumExtension; }
17244 set { SetDynamicEnumExtension(value); }
17245 }
17246 public Builder SetDynamicEnumExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType value) {
17247 result.hasDynamicEnumExtension = true;
17248 result.dynamicEnumExtension_ = value;
17249 return this;
17250 }
17251 public Builder ClearDynamicEnumExtension() {
17252 result.hasDynamicEnumExtension = false;
17253 result.dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
17254 return this;
17255 }
17256
17257 public bool HasMessageExtension {
17258 get { return result.HasMessageExtension; }
17259 }
17260 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
17261 get { return result.MessageExtension; }
17262 set { SetMessageExtension(value); }
17263 }
17264 public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
17265 pb::ThrowHelper.ThrowIfNull(value, "value");
17266 result.hasMessageExtension = true;
17267 result.messageExtension_ = value;
17268 return this;
17269 }
17270 public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
17271 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
17272 result.hasMessageExtension = true;
17273 result.messageExtension_ = builderForValue.Build();
17274 return this;
17275 }
17276 public Builder MergeMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
17277 pb::ThrowHelper.ThrowIfNull(value, "value");
17278 if (result.HasMessageExtension &&
17279 result.messageExtension_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
17280 result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageExtension_).MergeFrom(value).BuildPartial();
17281 } else {
17282 result.messageExtension_ = value;
17283 }
17284 result.hasMessageExtension = true;
17285 return this;
17286 }
17287 public Builder ClearMessageExtension() {
17288 result.hasMessageExtension = false;
17289 result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
17290 return this;
17291 }
17292
17293 public bool HasDynamicMessageExtension {
17294 get { return result.HasDynamicMessageExtension; }
17295 }
17296 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
17297 get { return result.DynamicMessageExtension; }
17298 set { SetDynamicMessageExtension(value); }
17299 }
17300 public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
17301 pb::ThrowHelper.ThrowIfNull(value, "value");
17302 result.hasDynamicMessageExtension = true;
17303 result.dynamicMessageExtension_ = value;
17304 return this;
17305 }
17306 public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder builderForValue) {
17307 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
17308 result.hasDynamicMessageExtension = true;
17309 result.dynamicMessageExtension_ = builderForValue.Build();
17310 return this;
17311 }
17312 public Builder MergeDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
17313 pb::ThrowHelper.ThrowIfNull(value, "value");
17314 if (result.HasDynamicMessageExtension &&
17315 result.dynamicMessageExtension_ != global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) {
17316 result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder(result.dynamicMessageExtension_).MergeFrom(value).BuildPartial();
17317 } else {
17318 result.dynamicMessageExtension_ = value;
17319 }
17320 result.hasDynamicMessageExtension = true;
17321 return this;
17322 }
17323 public Builder ClearDynamicMessageExtension() {
17324 result.hasDynamicMessageExtension = false;
17325 result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance;
17326 return this;
17327 }
17328
17329 public pbc::IPopsicleList<string> RepeatedExtensionList {
17330 get { return result.repeatedExtension_; }
17331 }
17332 public int RepeatedExtensionCount {
17333 get { return result.RepeatedExtensionCount; }
17334 }
17335 public string GetRepeatedExtension(int index) {
17336 return result.GetRepeatedExtension(index);
17337 }
17338 public Builder SetRepeatedExtension(int index, string value) {
17339 pb::ThrowHelper.ThrowIfNull(value, "value");
17340 result.repeatedExtension_[index] = value;
17341 return this;
17342 }
17343 public Builder AddRepeatedExtension(string value) {
17344 pb::ThrowHelper.ThrowIfNull(value, "value");
17345 result.repeatedExtension_.Add(value);
17346 return this;
17347 }
17348 public Builder AddRangeRepeatedExtension(scg::IEnumerable<string> values) {
17349 base.AddRange(values, result.repeatedExtension_);
17350 return this;
17351 }
17352 public Builder ClearRepeatedExtension() {
17353 result.repeatedExtension_.Clear();
17354 return this;
17355 }
17356
17357 public pbc::IPopsicleList<int> PackedExtensionList {
17358 get { return result.packedExtension_; }
17359 }
17360 public int PackedExtensionCount {
17361 get { return result.PackedExtensionCount; }
17362 }
17363 public int GetPackedExtension(int index) {
17364 return result.GetPackedExtension(index);
17365 }
17366 public Builder SetPackedExtension(int index, int value) {
17367 result.packedExtension_[index] = value;
17368 return this;
17369 }
17370 public Builder AddPackedExtension(int value) {
17371 result.packedExtension_.Add(value);
17372 return this;
17373 }
17374 public Builder AddRangePackedExtension(scg::IEnumerable<int> values) {
17375 base.AddRange(values, result.packedExtension_);
17376 return this;
17377 }
17378 public Builder ClearPackedExtension() {
17379 result.packedExtension_.Clear();
17380 return this;
17381 }
17382 }
17383 static TestDynamicExtensions() {
17384 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
17385 }
17386 }
17387
csharptest445bdce2011-05-20 15:50:54 -050017388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17389 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17390 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017391 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::GeneratedMessage<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> {
17392 private static readonly TestRepeatedScalarDifferentTagSizes defaultInstance = new Builder().BuildPartial();
17393 public static TestRepeatedScalarDifferentTagSizes DefaultInstance {
17394 get { return defaultInstance; }
17395 }
17396
17397 public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
17398 get { return defaultInstance; }
17399 }
17400
17401 protected override TestRepeatedScalarDifferentTagSizes ThisMessage {
17402 get { return this; }
17403 }
17404
17405 public static pbd::MessageDescriptor Descriptor {
17406 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor; }
17407 }
17408
17409 protected override pb::FieldAccess.FieldAccessorTable<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> InternalFieldAccessors {
17410 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
17411 }
17412
17413 public const int RepeatedFixed32FieldNumber = 12;
17414 private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
17415 [global::System.CLSCompliant(false)]
17416 public scg::IList<uint> RepeatedFixed32List {
17417 get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
17418 }
17419 public int RepeatedFixed32Count {
17420 get { return repeatedFixed32_.Count; }
17421 }
17422 [global::System.CLSCompliant(false)]
17423 public uint GetRepeatedFixed32(int index) {
17424 return repeatedFixed32_[index];
17425 }
17426
17427 public const int RepeatedInt32FieldNumber = 13;
17428 private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
17429 public scg::IList<int> RepeatedInt32List {
17430 get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
17431 }
17432 public int RepeatedInt32Count {
17433 get { return repeatedInt32_.Count; }
17434 }
17435 public int GetRepeatedInt32(int index) {
17436 return repeatedInt32_[index];
17437 }
17438
17439 public const int RepeatedFixed64FieldNumber = 2046;
17440 private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
17441 [global::System.CLSCompliant(false)]
17442 public scg::IList<ulong> RepeatedFixed64List {
17443 get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
17444 }
17445 public int RepeatedFixed64Count {
17446 get { return repeatedFixed64_.Count; }
17447 }
17448 [global::System.CLSCompliant(false)]
17449 public ulong GetRepeatedFixed64(int index) {
17450 return repeatedFixed64_[index];
17451 }
17452
17453 public const int RepeatedInt64FieldNumber = 2047;
17454 private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
17455 public scg::IList<long> RepeatedInt64List {
17456 get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
17457 }
17458 public int RepeatedInt64Count {
17459 get { return repeatedInt64_.Count; }
17460 }
17461 public long GetRepeatedInt64(int index) {
17462 return repeatedInt64_[index];
17463 }
17464
17465 public const int RepeatedFloatFieldNumber = 262142;
17466 private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
17467 public scg::IList<float> RepeatedFloatList {
17468 get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
17469 }
17470 public int RepeatedFloatCount {
17471 get { return repeatedFloat_.Count; }
17472 }
17473 public float GetRepeatedFloat(int index) {
17474 return repeatedFloat_[index];
17475 }
17476
17477 public const int RepeatedUint64FieldNumber = 262143;
17478 private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
17479 [global::System.CLSCompliant(false)]
17480 public scg::IList<ulong> RepeatedUint64List {
17481 get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
17482 }
17483 public int RepeatedUint64Count {
17484 get { return repeatedUint64_.Count; }
17485 }
17486 [global::System.CLSCompliant(false)]
17487 public ulong GetRepeatedUint64(int index) {
17488 return repeatedUint64_[index];
17489 }
17490
17491 public override bool IsInitialized {
17492 get {
17493 return true;
17494 }
17495 }
17496
csharptestffafdaa2011-06-03 12:58:14 -050017497 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017498 int size = SerializedSize;
17499 if (repeatedFixed32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017500 output.WriteArray(pbd::FieldType.Fixed32, 12, "repeated_fixed32", repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017501 }
17502 if (repeatedInt32_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017503 output.WriteArray(pbd::FieldType.Int32, 13, "repeated_int32", repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017504 }
17505 if (repeatedFixed64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017506 output.WriteArray(pbd::FieldType.Fixed64, 2046, "repeated_fixed64", repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017507 }
17508 if (repeatedInt64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017509 output.WriteArray(pbd::FieldType.Int64, 2047, "repeated_int64", repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017510 }
17511 if (repeatedFloat_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017512 output.WriteArray(pbd::FieldType.Float, 262142, "repeated_float", repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017513 }
17514 if (repeatedUint64_.Count > 0) {
csharptest90922db2011-06-03 11:57:47 -050017515 output.WriteArray(pbd::FieldType.UInt64, 262143, "repeated_uint64", repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017516 }
17517 UnknownFields.WriteTo(output);
17518 }
17519
17520 private int memoizedSerializedSize = -1;
17521 public override int SerializedSize {
17522 get {
17523 int size = memoizedSerializedSize;
17524 if (size != -1) return size;
17525
17526 size = 0;
17527 {
17528 int dataSize = 0;
17529 dataSize = 4 * repeatedFixed32_.Count;
17530 size += dataSize;
17531 size += 1 * repeatedFixed32_.Count;
17532 }
17533 {
17534 int dataSize = 0;
17535 foreach (int element in RepeatedInt32List) {
17536 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
17537 }
17538 size += dataSize;
17539 size += 1 * repeatedInt32_.Count;
17540 }
17541 {
17542 int dataSize = 0;
17543 dataSize = 8 * repeatedFixed64_.Count;
17544 size += dataSize;
17545 size += 2 * repeatedFixed64_.Count;
17546 }
17547 {
17548 int dataSize = 0;
17549 foreach (long element in RepeatedInt64List) {
17550 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
17551 }
17552 size += dataSize;
17553 size += 2 * repeatedInt64_.Count;
17554 }
17555 {
17556 int dataSize = 0;
17557 dataSize = 4 * repeatedFloat_.Count;
17558 size += dataSize;
17559 size += 3 * repeatedFloat_.Count;
17560 }
17561 {
17562 int dataSize = 0;
17563 foreach (ulong element in RepeatedUint64List) {
17564 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
17565 }
17566 size += dataSize;
17567 size += 3 * repeatedUint64_.Count;
17568 }
17569 size += UnknownFields.SerializedSize;
17570 memoizedSerializedSize = size;
17571 return size;
17572 }
17573 }
17574
17575 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data) {
17576 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17577 }
17578 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
17579 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17580 }
17581 public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data) {
17582 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17583 }
17584 public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
17585 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17586 }
17587 public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input) {
17588 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17589 }
17590 public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17591 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17592 }
17593 public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input) {
17594 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
17595 }
17596 public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17597 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
17598 }
csharptest17699c22011-06-03 21:57:15 -050017599 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017600 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17601 }
csharptest17699c22011-06-03 21:57:15 -050017602 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017603 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17604 }
17605 public static Builder CreateBuilder() { return new Builder(); }
17606 public override Builder ToBuilder() { return CreateBuilder(this); }
17607 public override Builder CreateBuilderForType() { return new Builder(); }
17608 public static Builder CreateBuilder(TestRepeatedScalarDifferentTagSizes prototype) {
17609 return (Builder) new Builder().MergeFrom(prototype);
17610 }
17611
csharptest445bdce2011-05-20 15:50:54 -050017612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17613 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17614 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017615 public sealed partial class Builder : pb::GeneratedBuilder<TestRepeatedScalarDifferentTagSizes, Builder> {
17616 protected override Builder ThisBuilder {
17617 get { return this; }
17618 }
17619 public Builder() {}
17620
17621 TestRepeatedScalarDifferentTagSizes result = new TestRepeatedScalarDifferentTagSizes();
17622
17623 protected override TestRepeatedScalarDifferentTagSizes MessageBeingBuilt {
17624 get { return result; }
17625 }
17626
17627 public override Builder Clear() {
17628 result = new TestRepeatedScalarDifferentTagSizes();
17629 return this;
17630 }
17631
17632 public override Builder Clone() {
17633 return new Builder().MergeFrom(result);
17634 }
17635
17636 public override pbd::MessageDescriptor DescriptorForType {
17637 get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Descriptor; }
17638 }
17639
17640 public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
17641 get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance; }
17642 }
17643
17644 public override TestRepeatedScalarDifferentTagSizes BuildPartial() {
17645 if (result == null) {
17646 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
17647 }
17648 result.repeatedFixed32_.MakeReadOnly();
17649 result.repeatedInt32_.MakeReadOnly();
17650 result.repeatedFixed64_.MakeReadOnly();
17651 result.repeatedInt64_.MakeReadOnly();
17652 result.repeatedFloat_.MakeReadOnly();
17653 result.repeatedUint64_.MakeReadOnly();
17654 TestRepeatedScalarDifferentTagSizes returnMe = result;
17655 result = null;
17656 return returnMe;
17657 }
17658
17659 public override Builder MergeFrom(pb::IMessage other) {
17660 if (other is TestRepeatedScalarDifferentTagSizes) {
17661 return MergeFrom((TestRepeatedScalarDifferentTagSizes) other);
17662 } else {
17663 base.MergeFrom(other);
17664 return this;
17665 }
17666 }
17667
17668 public override Builder MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
17669 if (other == global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance) return this;
17670 if (other.repeatedFixed32_.Count != 0) {
17671 base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
17672 }
17673 if (other.repeatedInt32_.Count != 0) {
17674 base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
17675 }
17676 if (other.repeatedFixed64_.Count != 0) {
17677 base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
17678 }
17679 if (other.repeatedInt64_.Count != 0) {
17680 base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
17681 }
17682 if (other.repeatedFloat_.Count != 0) {
17683 base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
17684 }
17685 if (other.repeatedUint64_.Count != 0) {
17686 base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
17687 }
17688 this.MergeUnknownFields(other.UnknownFields);
17689 return this;
17690 }
17691
csharptest17699c22011-06-03 21:57:15 -050017692 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017693 return MergeFrom(input, pb::ExtensionRegistry.Empty);
17694 }
17695
csharptest17699c22011-06-03 21:57:15 -050017696 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017697 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050017698 uint tag;
17699 string field_name;
17700 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017701 switch (tag) {
17702 case 0: {
csharptest99284412011-06-03 14:51:06 -050017703 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010017704 }
17705 default: {
17706 if (pb::WireFormat.IsEndGroupTag(tag)) {
17707 if (unknownFields != null) {
17708 this.UnknownFields = unknownFields.Build();
17709 }
17710 return this;
17711 }
17712 if (unknownFields == null) {
17713 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17714 }
csharptestd2af9e92011-06-03 21:35:02 -050017715 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017716 break;
17717 }
17718 case 101: {
csharptestd2af9e92011-06-03 21:35:02 -050017719 input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017720 break;
17721 }
17722 case 104: {
csharptestd2af9e92011-06-03 21:35:02 -050017723 input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017724 break;
17725 }
17726 case 16369: {
csharptestd2af9e92011-06-03 21:35:02 -050017727 input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017728 break;
17729 }
17730 case 16376: {
csharptestd2af9e92011-06-03 21:35:02 -050017731 input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017732 break;
17733 }
17734 case 2097141: {
csharptestd2af9e92011-06-03 21:35:02 -050017735 input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017736 break;
17737 }
17738 case 2097144: {
csharptestd2af9e92011-06-03 21:35:02 -050017739 input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017740 break;
17741 }
17742 }
17743 }
csharptest123e5342011-06-03 14:15:21 -050017744
17745 if (unknownFields != null) {
17746 this.UnknownFields = unknownFields.Build();
17747 }
17748 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010017749 }
17750
17751
17752 [global::System.CLSCompliant(false)]
17753 public pbc::IPopsicleList<uint> RepeatedFixed32List {
17754 get { return result.repeatedFixed32_; }
17755 }
17756 public int RepeatedFixed32Count {
17757 get { return result.RepeatedFixed32Count; }
17758 }
17759 [global::System.CLSCompliant(false)]
17760 public uint GetRepeatedFixed32(int index) {
17761 return result.GetRepeatedFixed32(index);
17762 }
17763 [global::System.CLSCompliant(false)]
17764 public Builder SetRepeatedFixed32(int index, uint value) {
17765 result.repeatedFixed32_[index] = value;
17766 return this;
17767 }
17768 [global::System.CLSCompliant(false)]
17769 public Builder AddRepeatedFixed32(uint value) {
17770 result.repeatedFixed32_.Add(value);
17771 return this;
17772 }
17773 [global::System.CLSCompliant(false)]
17774 public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
17775 base.AddRange(values, result.repeatedFixed32_);
17776 return this;
17777 }
17778 public Builder ClearRepeatedFixed32() {
17779 result.repeatedFixed32_.Clear();
17780 return this;
17781 }
17782
17783 public pbc::IPopsicleList<int> RepeatedInt32List {
17784 get { return result.repeatedInt32_; }
17785 }
17786 public int RepeatedInt32Count {
17787 get { return result.RepeatedInt32Count; }
17788 }
17789 public int GetRepeatedInt32(int index) {
17790 return result.GetRepeatedInt32(index);
17791 }
17792 public Builder SetRepeatedInt32(int index, int value) {
17793 result.repeatedInt32_[index] = value;
17794 return this;
17795 }
17796 public Builder AddRepeatedInt32(int value) {
17797 result.repeatedInt32_.Add(value);
17798 return this;
17799 }
17800 public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
17801 base.AddRange(values, result.repeatedInt32_);
17802 return this;
17803 }
17804 public Builder ClearRepeatedInt32() {
17805 result.repeatedInt32_.Clear();
17806 return this;
17807 }
17808
17809 [global::System.CLSCompliant(false)]
17810 public pbc::IPopsicleList<ulong> RepeatedFixed64List {
17811 get { return result.repeatedFixed64_; }
17812 }
17813 public int RepeatedFixed64Count {
17814 get { return result.RepeatedFixed64Count; }
17815 }
17816 [global::System.CLSCompliant(false)]
17817 public ulong GetRepeatedFixed64(int index) {
17818 return result.GetRepeatedFixed64(index);
17819 }
17820 [global::System.CLSCompliant(false)]
17821 public Builder SetRepeatedFixed64(int index, ulong value) {
17822 result.repeatedFixed64_[index] = value;
17823 return this;
17824 }
17825 [global::System.CLSCompliant(false)]
17826 public Builder AddRepeatedFixed64(ulong value) {
17827 result.repeatedFixed64_.Add(value);
17828 return this;
17829 }
17830 [global::System.CLSCompliant(false)]
17831 public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
17832 base.AddRange(values, result.repeatedFixed64_);
17833 return this;
17834 }
17835 public Builder ClearRepeatedFixed64() {
17836 result.repeatedFixed64_.Clear();
17837 return this;
17838 }
17839
17840 public pbc::IPopsicleList<long> RepeatedInt64List {
17841 get { return result.repeatedInt64_; }
17842 }
17843 public int RepeatedInt64Count {
17844 get { return result.RepeatedInt64Count; }
17845 }
17846 public long GetRepeatedInt64(int index) {
17847 return result.GetRepeatedInt64(index);
17848 }
17849 public Builder SetRepeatedInt64(int index, long value) {
17850 result.repeatedInt64_[index] = value;
17851 return this;
17852 }
17853 public Builder AddRepeatedInt64(long value) {
17854 result.repeatedInt64_.Add(value);
17855 return this;
17856 }
17857 public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
17858 base.AddRange(values, result.repeatedInt64_);
17859 return this;
17860 }
17861 public Builder ClearRepeatedInt64() {
17862 result.repeatedInt64_.Clear();
17863 return this;
17864 }
17865
17866 public pbc::IPopsicleList<float> RepeatedFloatList {
17867 get { return result.repeatedFloat_; }
17868 }
17869 public int RepeatedFloatCount {
17870 get { return result.RepeatedFloatCount; }
17871 }
17872 public float GetRepeatedFloat(int index) {
17873 return result.GetRepeatedFloat(index);
17874 }
17875 public Builder SetRepeatedFloat(int index, float value) {
17876 result.repeatedFloat_[index] = value;
17877 return this;
17878 }
17879 public Builder AddRepeatedFloat(float value) {
17880 result.repeatedFloat_.Add(value);
17881 return this;
17882 }
17883 public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
17884 base.AddRange(values, result.repeatedFloat_);
17885 return this;
17886 }
17887 public Builder ClearRepeatedFloat() {
17888 result.repeatedFloat_.Clear();
17889 return this;
17890 }
17891
17892 [global::System.CLSCompliant(false)]
17893 public pbc::IPopsicleList<ulong> RepeatedUint64List {
17894 get { return result.repeatedUint64_; }
17895 }
17896 public int RepeatedUint64Count {
17897 get { return result.RepeatedUint64Count; }
17898 }
17899 [global::System.CLSCompliant(false)]
17900 public ulong GetRepeatedUint64(int index) {
17901 return result.GetRepeatedUint64(index);
17902 }
17903 [global::System.CLSCompliant(false)]
17904 public Builder SetRepeatedUint64(int index, ulong value) {
17905 result.repeatedUint64_[index] = value;
17906 return this;
17907 }
17908 [global::System.CLSCompliant(false)]
17909 public Builder AddRepeatedUint64(ulong value) {
17910 result.repeatedUint64_.Add(value);
17911 return this;
17912 }
17913 [global::System.CLSCompliant(false)]
17914 public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
17915 base.AddRange(values, result.repeatedUint64_);
17916 return this;
17917 }
17918 public Builder ClearRepeatedUint64() {
17919 result.repeatedUint64_.Clear();
17920 return this;
17921 }
17922 }
17923 static TestRepeatedScalarDifferentTagSizes() {
17924 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
17925 }
17926 }
17927
csharptest445bdce2011-05-20 15:50:54 -050017928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17929 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17930 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017931 public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
17932 private static readonly FooRequest defaultInstance = new Builder().BuildPartial();
17933 public static FooRequest DefaultInstance {
17934 get { return defaultInstance; }
17935 }
17936
17937 public override FooRequest DefaultInstanceForType {
17938 get { return defaultInstance; }
17939 }
17940
17941 protected override FooRequest ThisMessage {
17942 get { return this; }
17943 }
17944
17945 public static pbd::MessageDescriptor Descriptor {
17946 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
17947 }
17948
17949 protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
17950 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
17951 }
17952
17953 public override bool IsInitialized {
17954 get {
17955 return true;
17956 }
17957 }
17958
csharptestffafdaa2011-06-03 12:58:14 -050017959 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010017960 int size = SerializedSize;
17961 UnknownFields.WriteTo(output);
17962 }
17963
17964 private int memoizedSerializedSize = -1;
17965 public override int SerializedSize {
17966 get {
17967 int size = memoizedSerializedSize;
17968 if (size != -1) return size;
17969
17970 size = 0;
17971 size += UnknownFields.SerializedSize;
17972 memoizedSerializedSize = size;
17973 return size;
17974 }
17975 }
17976
17977 public static FooRequest ParseFrom(pb::ByteString data) {
17978 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17979 }
17980 public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
17981 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17982 }
17983 public static FooRequest ParseFrom(byte[] data) {
17984 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17985 }
17986 public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
17987 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17988 }
17989 public static FooRequest ParseFrom(global::System.IO.Stream input) {
17990 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17991 }
17992 public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17993 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17994 }
17995 public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input) {
17996 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
17997 }
17998 public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17999 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18000 }
csharptest17699c22011-06-03 21:57:15 -050018001 public static FooRequest ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018002 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18003 }
csharptest17699c22011-06-03 21:57:15 -050018004 public static FooRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018005 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18006 }
18007 public static Builder CreateBuilder() { return new Builder(); }
18008 public override Builder ToBuilder() { return CreateBuilder(this); }
18009 public override Builder CreateBuilderForType() { return new Builder(); }
18010 public static Builder CreateBuilder(FooRequest prototype) {
18011 return (Builder) new Builder().MergeFrom(prototype);
18012 }
18013
csharptest445bdce2011-05-20 15:50:54 -050018014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18015 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18016 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018017 public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> {
18018 protected override Builder ThisBuilder {
18019 get { return this; }
18020 }
18021 public Builder() {}
18022
18023 FooRequest result = new FooRequest();
18024
18025 protected override FooRequest MessageBeingBuilt {
18026 get { return result; }
18027 }
18028
18029 public override Builder Clear() {
18030 result = new FooRequest();
18031 return this;
18032 }
18033
18034 public override Builder Clone() {
18035 return new Builder().MergeFrom(result);
18036 }
18037
18038 public override pbd::MessageDescriptor DescriptorForType {
18039 get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
18040 }
18041
18042 public override FooRequest DefaultInstanceForType {
18043 get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
18044 }
18045
18046 public override FooRequest BuildPartial() {
18047 if (result == null) {
18048 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18049 }
18050 FooRequest returnMe = result;
18051 result = null;
18052 return returnMe;
18053 }
18054
18055 public override Builder MergeFrom(pb::IMessage other) {
18056 if (other is FooRequest) {
18057 return MergeFrom((FooRequest) other);
18058 } else {
18059 base.MergeFrom(other);
18060 return this;
18061 }
18062 }
18063
18064 public override Builder MergeFrom(FooRequest other) {
18065 if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
18066 this.MergeUnknownFields(other.UnknownFields);
18067 return this;
18068 }
18069
csharptest17699c22011-06-03 21:57:15 -050018070 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018071 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18072 }
18073
csharptest17699c22011-06-03 21:57:15 -050018074 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018075 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050018076 uint tag;
18077 string field_name;
18078 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018079 switch (tag) {
18080 case 0: {
csharptest99284412011-06-03 14:51:06 -050018081 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010018082 }
18083 default: {
18084 if (pb::WireFormat.IsEndGroupTag(tag)) {
18085 if (unknownFields != null) {
18086 this.UnknownFields = unknownFields.Build();
18087 }
18088 return this;
18089 }
18090 if (unknownFields == null) {
18091 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18092 }
csharptestd2af9e92011-06-03 21:35:02 -050018093 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010018094 break;
18095 }
18096 }
18097 }
csharptest123e5342011-06-03 14:15:21 -050018098
18099 if (unknownFields != null) {
18100 this.UnknownFields = unknownFields.Build();
18101 }
18102 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010018103 }
18104
18105 }
18106 static FooRequest() {
18107 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18108 }
18109 }
18110
csharptest445bdce2011-05-20 15:50:54 -050018111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18112 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18113 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018114 public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
18115 private static readonly FooResponse defaultInstance = new Builder().BuildPartial();
18116 public static FooResponse DefaultInstance {
18117 get { return defaultInstance; }
18118 }
18119
18120 public override FooResponse DefaultInstanceForType {
18121 get { return defaultInstance; }
18122 }
18123
18124 protected override FooResponse ThisMessage {
18125 get { return this; }
18126 }
18127
18128 public static pbd::MessageDescriptor Descriptor {
18129 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
18130 }
18131
18132 protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
18133 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
18134 }
18135
18136 public override bool IsInitialized {
18137 get {
18138 return true;
18139 }
18140 }
18141
csharptestffafdaa2011-06-03 12:58:14 -050018142 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018143 int size = SerializedSize;
18144 UnknownFields.WriteTo(output);
18145 }
18146
18147 private int memoizedSerializedSize = -1;
18148 public override int SerializedSize {
18149 get {
18150 int size = memoizedSerializedSize;
18151 if (size != -1) return size;
18152
18153 size = 0;
18154 size += UnknownFields.SerializedSize;
18155 memoizedSerializedSize = size;
18156 return size;
18157 }
18158 }
18159
18160 public static FooResponse ParseFrom(pb::ByteString data) {
18161 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18162 }
18163 public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18164 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18165 }
18166 public static FooResponse ParseFrom(byte[] data) {
18167 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18168 }
18169 public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18170 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18171 }
18172 public static FooResponse ParseFrom(global::System.IO.Stream input) {
18173 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18174 }
18175 public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18176 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18177 }
18178 public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input) {
18179 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18180 }
18181 public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18182 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18183 }
csharptest17699c22011-06-03 21:57:15 -050018184 public static FooResponse ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018185 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18186 }
csharptest17699c22011-06-03 21:57:15 -050018187 public static FooResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018188 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18189 }
18190 public static Builder CreateBuilder() { return new Builder(); }
18191 public override Builder ToBuilder() { return CreateBuilder(this); }
18192 public override Builder CreateBuilderForType() { return new Builder(); }
18193 public static Builder CreateBuilder(FooResponse prototype) {
18194 return (Builder) new Builder().MergeFrom(prototype);
18195 }
18196
csharptest445bdce2011-05-20 15:50:54 -050018197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18198 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18199 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018200 public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> {
18201 protected override Builder ThisBuilder {
18202 get { return this; }
18203 }
18204 public Builder() {}
18205
18206 FooResponse result = new FooResponse();
18207
18208 protected override FooResponse MessageBeingBuilt {
18209 get { return result; }
18210 }
18211
18212 public override Builder Clear() {
18213 result = new FooResponse();
18214 return this;
18215 }
18216
18217 public override Builder Clone() {
18218 return new Builder().MergeFrom(result);
18219 }
18220
18221 public override pbd::MessageDescriptor DescriptorForType {
18222 get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
18223 }
18224
18225 public override FooResponse DefaultInstanceForType {
18226 get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
18227 }
18228
18229 public override FooResponse BuildPartial() {
18230 if (result == null) {
18231 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18232 }
18233 FooResponse returnMe = result;
18234 result = null;
18235 return returnMe;
18236 }
18237
18238 public override Builder MergeFrom(pb::IMessage other) {
18239 if (other is FooResponse) {
18240 return MergeFrom((FooResponse) other);
18241 } else {
18242 base.MergeFrom(other);
18243 return this;
18244 }
18245 }
18246
18247 public override Builder MergeFrom(FooResponse other) {
18248 if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
18249 this.MergeUnknownFields(other.UnknownFields);
18250 return this;
18251 }
18252
csharptest17699c22011-06-03 21:57:15 -050018253 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018254 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18255 }
18256
csharptest17699c22011-06-03 21:57:15 -050018257 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018258 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050018259 uint tag;
18260 string field_name;
18261 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018262 switch (tag) {
18263 case 0: {
csharptest99284412011-06-03 14:51:06 -050018264 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010018265 }
18266 default: {
18267 if (pb::WireFormat.IsEndGroupTag(tag)) {
18268 if (unknownFields != null) {
18269 this.UnknownFields = unknownFields.Build();
18270 }
18271 return this;
18272 }
18273 if (unknownFields == null) {
18274 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18275 }
csharptestd2af9e92011-06-03 21:35:02 -050018276 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010018277 break;
18278 }
18279 }
18280 }
csharptest123e5342011-06-03 14:15:21 -050018281
18282 if (unknownFields != null) {
18283 this.UnknownFields = unknownFields.Build();
18284 }
18285 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010018286 }
18287
18288 }
18289 static FooResponse() {
18290 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18291 }
18292 }
18293
csharptest445bdce2011-05-20 15:50:54 -050018294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18295 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18296 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018297 public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
18298 private static readonly BarRequest defaultInstance = new Builder().BuildPartial();
18299 public static BarRequest DefaultInstance {
18300 get { return defaultInstance; }
18301 }
18302
18303 public override BarRequest DefaultInstanceForType {
18304 get { return defaultInstance; }
18305 }
18306
18307 protected override BarRequest ThisMessage {
18308 get { return this; }
18309 }
18310
18311 public static pbd::MessageDescriptor Descriptor {
18312 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
18313 }
18314
18315 protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
18316 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
18317 }
18318
18319 public override bool IsInitialized {
18320 get {
18321 return true;
18322 }
18323 }
18324
csharptestffafdaa2011-06-03 12:58:14 -050018325 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018326 int size = SerializedSize;
18327 UnknownFields.WriteTo(output);
18328 }
18329
18330 private int memoizedSerializedSize = -1;
18331 public override int SerializedSize {
18332 get {
18333 int size = memoizedSerializedSize;
18334 if (size != -1) return size;
18335
18336 size = 0;
18337 size += UnknownFields.SerializedSize;
18338 memoizedSerializedSize = size;
18339 return size;
18340 }
18341 }
18342
18343 public static BarRequest ParseFrom(pb::ByteString data) {
18344 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18345 }
18346 public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18347 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18348 }
18349 public static BarRequest ParseFrom(byte[] data) {
18350 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18351 }
18352 public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18353 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18354 }
18355 public static BarRequest ParseFrom(global::System.IO.Stream input) {
18356 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18357 }
18358 public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18359 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18360 }
18361 public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input) {
18362 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18363 }
18364 public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18365 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18366 }
csharptest17699c22011-06-03 21:57:15 -050018367 public static BarRequest ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018368 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18369 }
csharptest17699c22011-06-03 21:57:15 -050018370 public static BarRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018371 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18372 }
18373 public static Builder CreateBuilder() { return new Builder(); }
18374 public override Builder ToBuilder() { return CreateBuilder(this); }
18375 public override Builder CreateBuilderForType() { return new Builder(); }
18376 public static Builder CreateBuilder(BarRequest prototype) {
18377 return (Builder) new Builder().MergeFrom(prototype);
18378 }
18379
csharptest445bdce2011-05-20 15:50:54 -050018380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18381 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18382 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018383 public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> {
18384 protected override Builder ThisBuilder {
18385 get { return this; }
18386 }
18387 public Builder() {}
18388
18389 BarRequest result = new BarRequest();
18390
18391 protected override BarRequest MessageBeingBuilt {
18392 get { return result; }
18393 }
18394
18395 public override Builder Clear() {
18396 result = new BarRequest();
18397 return this;
18398 }
18399
18400 public override Builder Clone() {
18401 return new Builder().MergeFrom(result);
18402 }
18403
18404 public override pbd::MessageDescriptor DescriptorForType {
18405 get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
18406 }
18407
18408 public override BarRequest DefaultInstanceForType {
18409 get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
18410 }
18411
18412 public override BarRequest BuildPartial() {
18413 if (result == null) {
18414 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18415 }
18416 BarRequest returnMe = result;
18417 result = null;
18418 return returnMe;
18419 }
18420
18421 public override Builder MergeFrom(pb::IMessage other) {
18422 if (other is BarRequest) {
18423 return MergeFrom((BarRequest) other);
18424 } else {
18425 base.MergeFrom(other);
18426 return this;
18427 }
18428 }
18429
18430 public override Builder MergeFrom(BarRequest other) {
18431 if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
18432 this.MergeUnknownFields(other.UnknownFields);
18433 return this;
18434 }
18435
csharptest17699c22011-06-03 21:57:15 -050018436 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018437 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18438 }
18439
csharptest17699c22011-06-03 21:57:15 -050018440 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018441 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050018442 uint tag;
18443 string field_name;
18444 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018445 switch (tag) {
18446 case 0: {
csharptest99284412011-06-03 14:51:06 -050018447 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010018448 }
18449 default: {
18450 if (pb::WireFormat.IsEndGroupTag(tag)) {
18451 if (unknownFields != null) {
18452 this.UnknownFields = unknownFields.Build();
18453 }
18454 return this;
18455 }
18456 if (unknownFields == null) {
18457 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18458 }
csharptestd2af9e92011-06-03 21:35:02 -050018459 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010018460 break;
18461 }
18462 }
18463 }
csharptest123e5342011-06-03 14:15:21 -050018464
18465 if (unknownFields != null) {
18466 this.UnknownFields = unknownFields.Build();
18467 }
18468 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010018469 }
18470
18471 }
18472 static BarRequest() {
18473 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18474 }
18475 }
18476
csharptest445bdce2011-05-20 15:50:54 -050018477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18478 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18479 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018480 public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
18481 private static readonly BarResponse defaultInstance = new Builder().BuildPartial();
18482 public static BarResponse DefaultInstance {
18483 get { return defaultInstance; }
18484 }
18485
18486 public override BarResponse DefaultInstanceForType {
18487 get { return defaultInstance; }
18488 }
18489
18490 protected override BarResponse ThisMessage {
18491 get { return this; }
18492 }
18493
18494 public static pbd::MessageDescriptor Descriptor {
18495 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
18496 }
18497
18498 protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
18499 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
18500 }
18501
18502 public override bool IsInitialized {
18503 get {
18504 return true;
18505 }
18506 }
18507
csharptestffafdaa2011-06-03 12:58:14 -050018508 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018509 int size = SerializedSize;
18510 UnknownFields.WriteTo(output);
18511 }
18512
18513 private int memoizedSerializedSize = -1;
18514 public override int SerializedSize {
18515 get {
18516 int size = memoizedSerializedSize;
18517 if (size != -1) return size;
18518
18519 size = 0;
18520 size += UnknownFields.SerializedSize;
18521 memoizedSerializedSize = size;
18522 return size;
18523 }
18524 }
18525
18526 public static BarResponse ParseFrom(pb::ByteString data) {
18527 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18528 }
18529 public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18530 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18531 }
18532 public static BarResponse ParseFrom(byte[] data) {
18533 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18534 }
18535 public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18536 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18537 }
18538 public static BarResponse ParseFrom(global::System.IO.Stream input) {
18539 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18540 }
18541 public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18542 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18543 }
18544 public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input) {
18545 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18546 }
18547 public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18548 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18549 }
csharptest17699c22011-06-03 21:57:15 -050018550 public static BarResponse ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018551 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18552 }
csharptest17699c22011-06-03 21:57:15 -050018553 public static BarResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018554 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18555 }
18556 public static Builder CreateBuilder() { return new Builder(); }
18557 public override Builder ToBuilder() { return CreateBuilder(this); }
18558 public override Builder CreateBuilderForType() { return new Builder(); }
18559 public static Builder CreateBuilder(BarResponse prototype) {
18560 return (Builder) new Builder().MergeFrom(prototype);
18561 }
18562
csharptest445bdce2011-05-20 15:50:54 -050018563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18564 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18565 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018566 public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> {
18567 protected override Builder ThisBuilder {
18568 get { return this; }
18569 }
18570 public Builder() {}
18571
18572 BarResponse result = new BarResponse();
18573
18574 protected override BarResponse MessageBeingBuilt {
18575 get { return result; }
18576 }
18577
18578 public override Builder Clear() {
18579 result = new BarResponse();
18580 return this;
18581 }
18582
18583 public override Builder Clone() {
18584 return new Builder().MergeFrom(result);
18585 }
18586
18587 public override pbd::MessageDescriptor DescriptorForType {
18588 get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
18589 }
18590
18591 public override BarResponse DefaultInstanceForType {
18592 get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
18593 }
18594
18595 public override BarResponse BuildPartial() {
18596 if (result == null) {
18597 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18598 }
18599 BarResponse returnMe = result;
18600 result = null;
18601 return returnMe;
18602 }
18603
18604 public override Builder MergeFrom(pb::IMessage other) {
18605 if (other is BarResponse) {
18606 return MergeFrom((BarResponse) other);
18607 } else {
18608 base.MergeFrom(other);
18609 return this;
18610 }
18611 }
18612
18613 public override Builder MergeFrom(BarResponse other) {
18614 if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
18615 this.MergeUnknownFields(other.UnknownFields);
18616 return this;
18617 }
18618
csharptest17699c22011-06-03 21:57:15 -050018619 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018620 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18621 }
18622
csharptest17699c22011-06-03 21:57:15 -050018623 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018624 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -050018625 uint tag;
18626 string field_name;
18627 while (input.ReadTag(out tag, out field_name)) {
Jon Skeet82bb0f12011-04-03 20:17:12 +010018628 switch (tag) {
18629 case 0: {
csharptest99284412011-06-03 14:51:06 -050018630 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +010018631 }
18632 default: {
18633 if (pb::WireFormat.IsEndGroupTag(tag)) {
18634 if (unknownFields != null) {
18635 this.UnknownFields = unknownFields.Build();
18636 }
18637 return this;
18638 }
18639 if (unknownFields == null) {
18640 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18641 }
csharptestd2af9e92011-06-03 21:35:02 -050018642 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +010018643 break;
18644 }
18645 }
18646 }
csharptest123e5342011-06-03 14:15:21 -050018647
18648 if (unknownFields != null) {
18649 this.UnknownFields = unknownFields.Build();
18650 }
18651 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +010018652 }
18653
18654 }
18655 static BarResponse() {
18656 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18657 }
18658 }
18659
18660 #endregion
18661
18662 #region Services
csharptestf1816be2011-05-19 12:01:16 -050018663 /*
18664 * Service generation is now disabled by default, use the following option to enable:
18665 * option (google.protobuf.csharp_file_options).service_generator_type = GENERIC;
18666 */
Jon Skeet82bb0f12011-04-03 20:17:12 +010018667 #endregion
18668
18669}