blob: 9d56dc76af35dbf4df7b73a1386cf788cb957e11 [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
1106 public override void WriteTo(pb::CodedOutputStream output) {
1107 int size = SerializedSize;
1108 if (HasBb) {
1109 output.WriteInt32(1, Bb);
1110 }
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 }
1154 public static NestedMessage ParseFrom(pb::CodedInputStream input) {
1155 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1156 }
1157 public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1158 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
1226 public override Builder MergeFrom(pb::CodedInputStream input) {
1227 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1228 }
1229
1230 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1231 pb::UnknownFieldSet.Builder unknownFields = null;
1232 while (true) {
1233 uint tag = input.ReadTag();
1234 switch (tag) {
1235 case 0: {
1236 if (unknownFields != null) {
1237 this.UnknownFields = unknownFields.Build();
1238 }
1239 return this;
1240 }
1241 default: {
1242 if (pb::WireFormat.IsEndGroupTag(tag)) {
1243 if (unknownFields != null) {
1244 this.UnknownFields = unknownFields.Build();
1245 }
1246 return this;
1247 }
1248 if (unknownFields == null) {
1249 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1250 }
1251 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1252 break;
1253 }
1254 case 8: {
1255 Bb = input.ReadInt32();
1256 break;
1257 }
1258 }
1259 }
1260 }
1261
1262
1263 public bool HasBb {
1264 get { return result.HasBb; }
1265 }
1266 public int Bb {
1267 get { return result.Bb; }
1268 set { SetBb(value); }
1269 }
1270 public Builder SetBb(int value) {
1271 result.hasBb = true;
1272 result.bb_ = value;
1273 return this;
1274 }
1275 public Builder ClearBb() {
1276 result.hasBb = false;
1277 result.bb_ = 0;
1278 return this;
1279 }
1280 }
1281 static NestedMessage() {
1282 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1283 }
1284 }
1285
csharptest445bdce2011-05-20 15:50:54 -05001286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1287 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1288 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001289 public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
1290 private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
1291 public static OptionalGroup DefaultInstance {
1292 get { return defaultInstance; }
1293 }
1294
1295 public override OptionalGroup DefaultInstanceForType {
1296 get { return defaultInstance; }
1297 }
1298
1299 protected override OptionalGroup ThisMessage {
1300 get { return this; }
1301 }
1302
1303 public static pbd::MessageDescriptor Descriptor {
1304 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
1305 }
1306
1307 protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
1308 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
1309 }
1310
1311 public const int AFieldNumber = 17;
1312 private bool hasA;
1313 private int a_ = 0;
1314 public bool HasA {
1315 get { return hasA; }
1316 }
1317 public int A {
1318 get { return a_; }
1319 }
1320
1321 public override bool IsInitialized {
1322 get {
1323 return true;
1324 }
1325 }
1326
1327 public override void WriteTo(pb::CodedOutputStream output) {
1328 int size = SerializedSize;
1329 if (HasA) {
1330 output.WriteInt32(17, A);
1331 }
1332 UnknownFields.WriteTo(output);
1333 }
1334
1335 private int memoizedSerializedSize = -1;
1336 public override int SerializedSize {
1337 get {
1338 int size = memoizedSerializedSize;
1339 if (size != -1) return size;
1340
1341 size = 0;
1342 if (HasA) {
1343 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
1344 }
1345 size += UnknownFields.SerializedSize;
1346 memoizedSerializedSize = size;
1347 return size;
1348 }
1349 }
1350
1351 public static OptionalGroup ParseFrom(pb::ByteString data) {
1352 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1353 }
1354 public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1355 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1356 }
1357 public static OptionalGroup ParseFrom(byte[] data) {
1358 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1359 }
1360 public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1361 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1362 }
1363 public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
1364 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1365 }
1366 public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1367 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1368 }
1369 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1370 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1371 }
1372 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1373 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1374 }
1375 public static OptionalGroup ParseFrom(pb::CodedInputStream input) {
1376 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1377 }
1378 public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1379 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1380 }
1381 public static Builder CreateBuilder() { return new Builder(); }
1382 public override Builder ToBuilder() { return CreateBuilder(this); }
1383 public override Builder CreateBuilderForType() { return new Builder(); }
1384 public static Builder CreateBuilder(OptionalGroup prototype) {
1385 return (Builder) new Builder().MergeFrom(prototype);
1386 }
1387
csharptest445bdce2011-05-20 15:50:54 -05001388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1389 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1390 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001391 public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
1392 protected override Builder ThisBuilder {
1393 get { return this; }
1394 }
1395 public Builder() {}
1396
1397 OptionalGroup result = new OptionalGroup();
1398
1399 protected override OptionalGroup MessageBeingBuilt {
1400 get { return result; }
1401 }
1402
1403 public override Builder Clear() {
1404 result = new OptionalGroup();
1405 return this;
1406 }
1407
1408 public override Builder Clone() {
1409 return new Builder().MergeFrom(result);
1410 }
1411
1412 public override pbd::MessageDescriptor DescriptorForType {
1413 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
1414 }
1415
1416 public override OptionalGroup DefaultInstanceForType {
1417 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
1418 }
1419
1420 public override OptionalGroup BuildPartial() {
1421 if (result == null) {
1422 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1423 }
1424 OptionalGroup returnMe = result;
1425 result = null;
1426 return returnMe;
1427 }
1428
1429 public override Builder MergeFrom(pb::IMessage other) {
1430 if (other is OptionalGroup) {
1431 return MergeFrom((OptionalGroup) other);
1432 } else {
1433 base.MergeFrom(other);
1434 return this;
1435 }
1436 }
1437
1438 public override Builder MergeFrom(OptionalGroup other) {
1439 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
1440 if (other.HasA) {
1441 A = other.A;
1442 }
1443 this.MergeUnknownFields(other.UnknownFields);
1444 return this;
1445 }
1446
1447 public override Builder MergeFrom(pb::CodedInputStream input) {
1448 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1449 }
1450
1451 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1452 pb::UnknownFieldSet.Builder unknownFields = null;
1453 while (true) {
1454 uint tag = input.ReadTag();
1455 switch (tag) {
1456 case 0: {
1457 if (unknownFields != null) {
1458 this.UnknownFields = unknownFields.Build();
1459 }
1460 return this;
1461 }
1462 default: {
1463 if (pb::WireFormat.IsEndGroupTag(tag)) {
1464 if (unknownFields != null) {
1465 this.UnknownFields = unknownFields.Build();
1466 }
1467 return this;
1468 }
1469 if (unknownFields == null) {
1470 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1471 }
1472 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1473 break;
1474 }
1475 case 136: {
1476 A = input.ReadInt32();
1477 break;
1478 }
1479 }
1480 }
1481 }
1482
1483
1484 public bool HasA {
1485 get { return result.HasA; }
1486 }
1487 public int A {
1488 get { return result.A; }
1489 set { SetA(value); }
1490 }
1491 public Builder SetA(int value) {
1492 result.hasA = true;
1493 result.a_ = value;
1494 return this;
1495 }
1496 public Builder ClearA() {
1497 result.hasA = false;
1498 result.a_ = 0;
1499 return this;
1500 }
1501 }
1502 static OptionalGroup() {
1503 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1504 }
1505 }
1506
csharptest445bdce2011-05-20 15:50:54 -05001507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1508 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1509 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001510 public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
1511 private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
1512 public static RepeatedGroup DefaultInstance {
1513 get { return defaultInstance; }
1514 }
1515
1516 public override RepeatedGroup DefaultInstanceForType {
1517 get { return defaultInstance; }
1518 }
1519
1520 protected override RepeatedGroup ThisMessage {
1521 get { return this; }
1522 }
1523
1524 public static pbd::MessageDescriptor Descriptor {
1525 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
1526 }
1527
1528 protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
1529 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
1530 }
1531
1532 public const int AFieldNumber = 47;
1533 private bool hasA;
1534 private int a_ = 0;
1535 public bool HasA {
1536 get { return hasA; }
1537 }
1538 public int A {
1539 get { return a_; }
1540 }
1541
1542 public override bool IsInitialized {
1543 get {
1544 return true;
1545 }
1546 }
1547
1548 public override void WriteTo(pb::CodedOutputStream output) {
1549 int size = SerializedSize;
1550 if (HasA) {
1551 output.WriteInt32(47, A);
1552 }
1553 UnknownFields.WriteTo(output);
1554 }
1555
1556 private int memoizedSerializedSize = -1;
1557 public override int SerializedSize {
1558 get {
1559 int size = memoizedSerializedSize;
1560 if (size != -1) return size;
1561
1562 size = 0;
1563 if (HasA) {
1564 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
1565 }
1566 size += UnknownFields.SerializedSize;
1567 memoizedSerializedSize = size;
1568 return size;
1569 }
1570 }
1571
1572 public static RepeatedGroup ParseFrom(pb::ByteString data) {
1573 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1574 }
1575 public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1576 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1577 }
1578 public static RepeatedGroup ParseFrom(byte[] data) {
1579 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1580 }
1581 public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1582 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1583 }
1584 public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
1585 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1586 }
1587 public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1588 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1589 }
1590 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1591 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1592 }
1593 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1594 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1595 }
1596 public static RepeatedGroup ParseFrom(pb::CodedInputStream input) {
1597 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1598 }
1599 public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1600 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1601 }
1602 public static Builder CreateBuilder() { return new Builder(); }
1603 public override Builder ToBuilder() { return CreateBuilder(this); }
1604 public override Builder CreateBuilderForType() { return new Builder(); }
1605 public static Builder CreateBuilder(RepeatedGroup prototype) {
1606 return (Builder) new Builder().MergeFrom(prototype);
1607 }
1608
csharptest445bdce2011-05-20 15:50:54 -05001609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1610 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1611 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001612 public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
1613 protected override Builder ThisBuilder {
1614 get { return this; }
1615 }
1616 public Builder() {}
1617
1618 RepeatedGroup result = new RepeatedGroup();
1619
1620 protected override RepeatedGroup MessageBeingBuilt {
1621 get { return result; }
1622 }
1623
1624 public override Builder Clear() {
1625 result = new RepeatedGroup();
1626 return this;
1627 }
1628
1629 public override Builder Clone() {
1630 return new Builder().MergeFrom(result);
1631 }
1632
1633 public override pbd::MessageDescriptor DescriptorForType {
1634 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
1635 }
1636
1637 public override RepeatedGroup DefaultInstanceForType {
1638 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
1639 }
1640
1641 public override RepeatedGroup BuildPartial() {
1642 if (result == null) {
1643 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1644 }
1645 RepeatedGroup returnMe = result;
1646 result = null;
1647 return returnMe;
1648 }
1649
1650 public override Builder MergeFrom(pb::IMessage other) {
1651 if (other is RepeatedGroup) {
1652 return MergeFrom((RepeatedGroup) other);
1653 } else {
1654 base.MergeFrom(other);
1655 return this;
1656 }
1657 }
1658
1659 public override Builder MergeFrom(RepeatedGroup other) {
1660 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
1661 if (other.HasA) {
1662 A = other.A;
1663 }
1664 this.MergeUnknownFields(other.UnknownFields);
1665 return this;
1666 }
1667
1668 public override Builder MergeFrom(pb::CodedInputStream input) {
1669 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1670 }
1671
1672 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1673 pb::UnknownFieldSet.Builder unknownFields = null;
1674 while (true) {
1675 uint tag = input.ReadTag();
1676 switch (tag) {
1677 case 0: {
1678 if (unknownFields != null) {
1679 this.UnknownFields = unknownFields.Build();
1680 }
1681 return this;
1682 }
1683 default: {
1684 if (pb::WireFormat.IsEndGroupTag(tag)) {
1685 if (unknownFields != null) {
1686 this.UnknownFields = unknownFields.Build();
1687 }
1688 return this;
1689 }
1690 if (unknownFields == null) {
1691 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1692 }
1693 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1694 break;
1695 }
1696 case 376: {
1697 A = input.ReadInt32();
1698 break;
1699 }
1700 }
1701 }
1702 }
1703
1704
1705 public bool HasA {
1706 get { return result.HasA; }
1707 }
1708 public int A {
1709 get { return result.A; }
1710 set { SetA(value); }
1711 }
1712 public Builder SetA(int value) {
1713 result.hasA = true;
1714 result.a_ = value;
1715 return this;
1716 }
1717 public Builder ClearA() {
1718 result.hasA = false;
1719 result.a_ = 0;
1720 return this;
1721 }
1722 }
1723 static RepeatedGroup() {
1724 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
1725 }
1726 }
1727
1728 }
1729 #endregion
1730
1731 public const int OptionalInt32FieldNumber = 1;
1732 private bool hasOptionalInt32;
1733 private int optionalInt32_ = 0;
1734 public bool HasOptionalInt32 {
1735 get { return hasOptionalInt32; }
1736 }
1737 public int OptionalInt32 {
1738 get { return optionalInt32_; }
1739 }
1740
1741 public const int OptionalInt64FieldNumber = 2;
1742 private bool hasOptionalInt64;
1743 private long optionalInt64_ = 0L;
1744 public bool HasOptionalInt64 {
1745 get { return hasOptionalInt64; }
1746 }
1747 public long OptionalInt64 {
1748 get { return optionalInt64_; }
1749 }
1750
1751 public const int OptionalUint32FieldNumber = 3;
1752 private bool hasOptionalUint32;
1753 private uint optionalUint32_ = 0;
1754 public bool HasOptionalUint32 {
1755 get { return hasOptionalUint32; }
1756 }
1757 [global::System.CLSCompliant(false)]
1758 public uint OptionalUint32 {
1759 get { return optionalUint32_; }
1760 }
1761
1762 public const int OptionalUint64FieldNumber = 4;
1763 private bool hasOptionalUint64;
1764 private ulong optionalUint64_ = 0UL;
1765 public bool HasOptionalUint64 {
1766 get { return hasOptionalUint64; }
1767 }
1768 [global::System.CLSCompliant(false)]
1769 public ulong OptionalUint64 {
1770 get { return optionalUint64_; }
1771 }
1772
1773 public const int OptionalSint32FieldNumber = 5;
1774 private bool hasOptionalSint32;
1775 private int optionalSint32_ = 0;
1776 public bool HasOptionalSint32 {
1777 get { return hasOptionalSint32; }
1778 }
1779 public int OptionalSint32 {
1780 get { return optionalSint32_; }
1781 }
1782
1783 public const int OptionalSint64FieldNumber = 6;
1784 private bool hasOptionalSint64;
1785 private long optionalSint64_ = 0;
1786 public bool HasOptionalSint64 {
1787 get { return hasOptionalSint64; }
1788 }
1789 public long OptionalSint64 {
1790 get { return optionalSint64_; }
1791 }
1792
1793 public const int OptionalFixed32FieldNumber = 7;
1794 private bool hasOptionalFixed32;
1795 private uint optionalFixed32_ = 0;
1796 public bool HasOptionalFixed32 {
1797 get { return hasOptionalFixed32; }
1798 }
1799 [global::System.CLSCompliant(false)]
1800 public uint OptionalFixed32 {
1801 get { return optionalFixed32_; }
1802 }
1803
1804 public const int OptionalFixed64FieldNumber = 8;
1805 private bool hasOptionalFixed64;
1806 private ulong optionalFixed64_ = 0;
1807 public bool HasOptionalFixed64 {
1808 get { return hasOptionalFixed64; }
1809 }
1810 [global::System.CLSCompliant(false)]
1811 public ulong OptionalFixed64 {
1812 get { return optionalFixed64_; }
1813 }
1814
1815 public const int OptionalSfixed32FieldNumber = 9;
1816 private bool hasOptionalSfixed32;
1817 private int optionalSfixed32_ = 0;
1818 public bool HasOptionalSfixed32 {
1819 get { return hasOptionalSfixed32; }
1820 }
1821 public int OptionalSfixed32 {
1822 get { return optionalSfixed32_; }
1823 }
1824
1825 public const int OptionalSfixed64FieldNumber = 10;
1826 private bool hasOptionalSfixed64;
1827 private long optionalSfixed64_ = 0;
1828 public bool HasOptionalSfixed64 {
1829 get { return hasOptionalSfixed64; }
1830 }
1831 public long OptionalSfixed64 {
1832 get { return optionalSfixed64_; }
1833 }
1834
1835 public const int OptionalFloatFieldNumber = 11;
1836 private bool hasOptionalFloat;
1837 private float optionalFloat_ = 0F;
1838 public bool HasOptionalFloat {
1839 get { return hasOptionalFloat; }
1840 }
1841 public float OptionalFloat {
1842 get { return optionalFloat_; }
1843 }
1844
1845 public const int OptionalDoubleFieldNumber = 12;
1846 private bool hasOptionalDouble;
1847 private double optionalDouble_ = 0D;
1848 public bool HasOptionalDouble {
1849 get { return hasOptionalDouble; }
1850 }
1851 public double OptionalDouble {
1852 get { return optionalDouble_; }
1853 }
1854
1855 public const int OptionalBoolFieldNumber = 13;
1856 private bool hasOptionalBool;
1857 private bool optionalBool_ = false;
1858 public bool HasOptionalBool {
1859 get { return hasOptionalBool; }
1860 }
1861 public bool OptionalBool {
1862 get { return optionalBool_; }
1863 }
1864
1865 public const int OptionalStringFieldNumber = 14;
1866 private bool hasOptionalString;
1867 private string optionalString_ = "";
1868 public bool HasOptionalString {
1869 get { return hasOptionalString; }
1870 }
1871 public string OptionalString {
1872 get { return optionalString_; }
1873 }
1874
1875 public const int OptionalBytesFieldNumber = 15;
1876 private bool hasOptionalBytes;
1877 private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
1878 public bool HasOptionalBytes {
1879 get { return hasOptionalBytes; }
1880 }
1881 public pb::ByteString OptionalBytes {
1882 get { return optionalBytes_; }
1883 }
1884
1885 public const int OptionalGroupFieldNumber = 16;
1886 private bool hasOptionalGroup;
1887 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
1888 public bool HasOptionalGroup {
1889 get { return hasOptionalGroup; }
1890 }
1891 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
1892 get { return optionalGroup_; }
1893 }
1894
1895 public const int OptionalNestedMessageFieldNumber = 18;
1896 private bool hasOptionalNestedMessage;
1897 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
1898 public bool HasOptionalNestedMessage {
1899 get { return hasOptionalNestedMessage; }
1900 }
1901 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
1902 get { return optionalNestedMessage_; }
1903 }
1904
1905 public const int OptionalForeignMessageFieldNumber = 19;
1906 private bool hasOptionalForeignMessage;
1907 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
1908 public bool HasOptionalForeignMessage {
1909 get { return hasOptionalForeignMessage; }
1910 }
1911 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
1912 get { return optionalForeignMessage_; }
1913 }
1914
1915 public const int OptionalImportMessageFieldNumber = 20;
1916 private bool hasOptionalImportMessage;
1917 private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
1918 public bool HasOptionalImportMessage {
1919 get { return hasOptionalImportMessage; }
1920 }
1921 public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
1922 get { return optionalImportMessage_; }
1923 }
1924
1925 public const int OptionalNestedEnumFieldNumber = 21;
1926 private bool hasOptionalNestedEnum;
1927 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
1928 public bool HasOptionalNestedEnum {
1929 get { return hasOptionalNestedEnum; }
1930 }
1931 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
1932 get { return optionalNestedEnum_; }
1933 }
1934
1935 public const int OptionalForeignEnumFieldNumber = 22;
1936 private bool hasOptionalForeignEnum;
1937 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
1938 public bool HasOptionalForeignEnum {
1939 get { return hasOptionalForeignEnum; }
1940 }
1941 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
1942 get { return optionalForeignEnum_; }
1943 }
1944
1945 public const int OptionalImportEnumFieldNumber = 23;
1946 private bool hasOptionalImportEnum;
1947 private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
1948 public bool HasOptionalImportEnum {
1949 get { return hasOptionalImportEnum; }
1950 }
1951 public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
1952 get { return optionalImportEnum_; }
1953 }
1954
1955 public const int OptionalStringPieceFieldNumber = 24;
1956 private bool hasOptionalStringPiece;
1957 private string optionalStringPiece_ = "";
1958 public bool HasOptionalStringPiece {
1959 get { return hasOptionalStringPiece; }
1960 }
1961 public string OptionalStringPiece {
1962 get { return optionalStringPiece_; }
1963 }
1964
1965 public const int OptionalCordFieldNumber = 25;
1966 private bool hasOptionalCord;
1967 private string optionalCord_ = "";
1968 public bool HasOptionalCord {
1969 get { return hasOptionalCord; }
1970 }
1971 public string OptionalCord {
1972 get { return optionalCord_; }
1973 }
1974
1975 public const int RepeatedInt32FieldNumber = 31;
1976 private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
1977 public scg::IList<int> RepeatedInt32List {
1978 get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
1979 }
1980 public int RepeatedInt32Count {
1981 get { return repeatedInt32_.Count; }
1982 }
1983 public int GetRepeatedInt32(int index) {
1984 return repeatedInt32_[index];
1985 }
1986
1987 public const int RepeatedInt64FieldNumber = 32;
1988 private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
1989 public scg::IList<long> RepeatedInt64List {
1990 get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
1991 }
1992 public int RepeatedInt64Count {
1993 get { return repeatedInt64_.Count; }
1994 }
1995 public long GetRepeatedInt64(int index) {
1996 return repeatedInt64_[index];
1997 }
1998
1999 public const int RepeatedUint32FieldNumber = 33;
2000 private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
2001 [global::System.CLSCompliant(false)]
2002 public scg::IList<uint> RepeatedUint32List {
2003 get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
2004 }
2005 public int RepeatedUint32Count {
2006 get { return repeatedUint32_.Count; }
2007 }
2008 [global::System.CLSCompliant(false)]
2009 public uint GetRepeatedUint32(int index) {
2010 return repeatedUint32_[index];
2011 }
2012
2013 public const int RepeatedUint64FieldNumber = 34;
2014 private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
2015 [global::System.CLSCompliant(false)]
2016 public scg::IList<ulong> RepeatedUint64List {
2017 get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
2018 }
2019 public int RepeatedUint64Count {
2020 get { return repeatedUint64_.Count; }
2021 }
2022 [global::System.CLSCompliant(false)]
2023 public ulong GetRepeatedUint64(int index) {
2024 return repeatedUint64_[index];
2025 }
2026
2027 public const int RepeatedSint32FieldNumber = 35;
2028 private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
2029 public scg::IList<int> RepeatedSint32List {
2030 get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
2031 }
2032 public int RepeatedSint32Count {
2033 get { return repeatedSint32_.Count; }
2034 }
2035 public int GetRepeatedSint32(int index) {
2036 return repeatedSint32_[index];
2037 }
2038
2039 public const int RepeatedSint64FieldNumber = 36;
2040 private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
2041 public scg::IList<long> RepeatedSint64List {
2042 get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
2043 }
2044 public int RepeatedSint64Count {
2045 get { return repeatedSint64_.Count; }
2046 }
2047 public long GetRepeatedSint64(int index) {
2048 return repeatedSint64_[index];
2049 }
2050
2051 public const int RepeatedFixed32FieldNumber = 37;
2052 private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
2053 [global::System.CLSCompliant(false)]
2054 public scg::IList<uint> RepeatedFixed32List {
2055 get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
2056 }
2057 public int RepeatedFixed32Count {
2058 get { return repeatedFixed32_.Count; }
2059 }
2060 [global::System.CLSCompliant(false)]
2061 public uint GetRepeatedFixed32(int index) {
2062 return repeatedFixed32_[index];
2063 }
2064
2065 public const int RepeatedFixed64FieldNumber = 38;
2066 private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
2067 [global::System.CLSCompliant(false)]
2068 public scg::IList<ulong> RepeatedFixed64List {
2069 get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
2070 }
2071 public int RepeatedFixed64Count {
2072 get { return repeatedFixed64_.Count; }
2073 }
2074 [global::System.CLSCompliant(false)]
2075 public ulong GetRepeatedFixed64(int index) {
2076 return repeatedFixed64_[index];
2077 }
2078
2079 public const int RepeatedSfixed32FieldNumber = 39;
2080 private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
2081 public scg::IList<int> RepeatedSfixed32List {
2082 get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
2083 }
2084 public int RepeatedSfixed32Count {
2085 get { return repeatedSfixed32_.Count; }
2086 }
2087 public int GetRepeatedSfixed32(int index) {
2088 return repeatedSfixed32_[index];
2089 }
2090
2091 public const int RepeatedSfixed64FieldNumber = 40;
2092 private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
2093 public scg::IList<long> RepeatedSfixed64List {
2094 get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
2095 }
2096 public int RepeatedSfixed64Count {
2097 get { return repeatedSfixed64_.Count; }
2098 }
2099 public long GetRepeatedSfixed64(int index) {
2100 return repeatedSfixed64_[index];
2101 }
2102
2103 public const int RepeatedFloatFieldNumber = 41;
2104 private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
2105 public scg::IList<float> RepeatedFloatList {
2106 get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
2107 }
2108 public int RepeatedFloatCount {
2109 get { return repeatedFloat_.Count; }
2110 }
2111 public float GetRepeatedFloat(int index) {
2112 return repeatedFloat_[index];
2113 }
2114
2115 public const int RepeatedDoubleFieldNumber = 42;
2116 private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
2117 public scg::IList<double> RepeatedDoubleList {
2118 get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
2119 }
2120 public int RepeatedDoubleCount {
2121 get { return repeatedDouble_.Count; }
2122 }
2123 public double GetRepeatedDouble(int index) {
2124 return repeatedDouble_[index];
2125 }
2126
2127 public const int RepeatedBoolFieldNumber = 43;
2128 private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
2129 public scg::IList<bool> RepeatedBoolList {
2130 get { return pbc::Lists.AsReadOnly(repeatedBool_); }
2131 }
2132 public int RepeatedBoolCount {
2133 get { return repeatedBool_.Count; }
2134 }
2135 public bool GetRepeatedBool(int index) {
2136 return repeatedBool_[index];
2137 }
2138
2139 public const int RepeatedStringFieldNumber = 44;
2140 private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
2141 public scg::IList<string> RepeatedStringList {
2142 get { return pbc::Lists.AsReadOnly(repeatedString_); }
2143 }
2144 public int RepeatedStringCount {
2145 get { return repeatedString_.Count; }
2146 }
2147 public string GetRepeatedString(int index) {
2148 return repeatedString_[index];
2149 }
2150
2151 public const int RepeatedBytesFieldNumber = 45;
2152 private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
2153 public scg::IList<pb::ByteString> RepeatedBytesList {
2154 get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
2155 }
2156 public int RepeatedBytesCount {
2157 get { return repeatedBytes_.Count; }
2158 }
2159 public pb::ByteString GetRepeatedBytes(int index) {
2160 return repeatedBytes_[index];
2161 }
2162
2163 public const int RepeatedGroupFieldNumber = 46;
2164 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
2165 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
2166 get { return repeatedGroup_; }
2167 }
2168 public int RepeatedGroupCount {
2169 get { return repeatedGroup_.Count; }
2170 }
2171 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
2172 return repeatedGroup_[index];
2173 }
2174
2175 public const int RepeatedNestedMessageFieldNumber = 48;
2176 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
2177 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
2178 get { return repeatedNestedMessage_; }
2179 }
2180 public int RepeatedNestedMessageCount {
2181 get { return repeatedNestedMessage_.Count; }
2182 }
2183 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
2184 return repeatedNestedMessage_[index];
2185 }
2186
2187 public const int RepeatedForeignMessageFieldNumber = 49;
2188 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
2189 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
2190 get { return repeatedForeignMessage_; }
2191 }
2192 public int RepeatedForeignMessageCount {
2193 get { return repeatedForeignMessage_.Count; }
2194 }
2195 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
2196 return repeatedForeignMessage_[index];
2197 }
2198
2199 public const int RepeatedImportMessageFieldNumber = 50;
2200 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
2201 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
2202 get { return repeatedImportMessage_; }
2203 }
2204 public int RepeatedImportMessageCount {
2205 get { return repeatedImportMessage_.Count; }
2206 }
2207 public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
2208 return repeatedImportMessage_[index];
2209 }
2210
2211 public const int RepeatedNestedEnumFieldNumber = 51;
2212 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
2213 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
2214 get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
2215 }
2216 public int RepeatedNestedEnumCount {
2217 get { return repeatedNestedEnum_.Count; }
2218 }
2219 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
2220 return repeatedNestedEnum_[index];
2221 }
2222
2223 public const int RepeatedForeignEnumFieldNumber = 52;
2224 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
2225 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
2226 get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
2227 }
2228 public int RepeatedForeignEnumCount {
2229 get { return repeatedForeignEnum_.Count; }
2230 }
2231 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
2232 return repeatedForeignEnum_[index];
2233 }
2234
2235 public const int RepeatedImportEnumFieldNumber = 53;
2236 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
2237 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
2238 get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
2239 }
2240 public int RepeatedImportEnumCount {
2241 get { return repeatedImportEnum_.Count; }
2242 }
2243 public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
2244 return repeatedImportEnum_[index];
2245 }
2246
2247 public const int RepeatedStringPieceFieldNumber = 54;
2248 private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
2249 public scg::IList<string> RepeatedStringPieceList {
2250 get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
2251 }
2252 public int RepeatedStringPieceCount {
2253 get { return repeatedStringPiece_.Count; }
2254 }
2255 public string GetRepeatedStringPiece(int index) {
2256 return repeatedStringPiece_[index];
2257 }
2258
2259 public const int RepeatedCordFieldNumber = 55;
2260 private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
2261 public scg::IList<string> RepeatedCordList {
2262 get { return pbc::Lists.AsReadOnly(repeatedCord_); }
2263 }
2264 public int RepeatedCordCount {
2265 get { return repeatedCord_.Count; }
2266 }
2267 public string GetRepeatedCord(int index) {
2268 return repeatedCord_[index];
2269 }
2270
2271 public const int DefaultInt32FieldNumber = 61;
2272 private bool hasDefaultInt32;
2273 private int defaultInt32_ = 41;
2274 public bool HasDefaultInt32 {
2275 get { return hasDefaultInt32; }
2276 }
2277 public int DefaultInt32 {
2278 get { return defaultInt32_; }
2279 }
2280
2281 public const int DefaultInt64FieldNumber = 62;
2282 private bool hasDefaultInt64;
2283 private long defaultInt64_ = 42L;
2284 public bool HasDefaultInt64 {
2285 get { return hasDefaultInt64; }
2286 }
2287 public long DefaultInt64 {
2288 get { return defaultInt64_; }
2289 }
2290
2291 public const int DefaultUint32FieldNumber = 63;
2292 private bool hasDefaultUint32;
2293 private uint defaultUint32_ = 43;
2294 public bool HasDefaultUint32 {
2295 get { return hasDefaultUint32; }
2296 }
2297 [global::System.CLSCompliant(false)]
2298 public uint DefaultUint32 {
2299 get { return defaultUint32_; }
2300 }
2301
2302 public const int DefaultUint64FieldNumber = 64;
2303 private bool hasDefaultUint64;
2304 private ulong defaultUint64_ = 44UL;
2305 public bool HasDefaultUint64 {
2306 get { return hasDefaultUint64; }
2307 }
2308 [global::System.CLSCompliant(false)]
2309 public ulong DefaultUint64 {
2310 get { return defaultUint64_; }
2311 }
2312
2313 public const int DefaultSint32FieldNumber = 65;
2314 private bool hasDefaultSint32;
2315 private int defaultSint32_ = -45;
2316 public bool HasDefaultSint32 {
2317 get { return hasDefaultSint32; }
2318 }
2319 public int DefaultSint32 {
2320 get { return defaultSint32_; }
2321 }
2322
2323 public const int DefaultSint64FieldNumber = 66;
2324 private bool hasDefaultSint64;
2325 private long defaultSint64_ = 46;
2326 public bool HasDefaultSint64 {
2327 get { return hasDefaultSint64; }
2328 }
2329 public long DefaultSint64 {
2330 get { return defaultSint64_; }
2331 }
2332
2333 public const int DefaultFixed32FieldNumber = 67;
2334 private bool hasDefaultFixed32;
2335 private uint defaultFixed32_ = 47;
2336 public bool HasDefaultFixed32 {
2337 get { return hasDefaultFixed32; }
2338 }
2339 [global::System.CLSCompliant(false)]
2340 public uint DefaultFixed32 {
2341 get { return defaultFixed32_; }
2342 }
2343
2344 public const int DefaultFixed64FieldNumber = 68;
2345 private bool hasDefaultFixed64;
2346 private ulong defaultFixed64_ = 48;
2347 public bool HasDefaultFixed64 {
2348 get { return hasDefaultFixed64; }
2349 }
2350 [global::System.CLSCompliant(false)]
2351 public ulong DefaultFixed64 {
2352 get { return defaultFixed64_; }
2353 }
2354
2355 public const int DefaultSfixed32FieldNumber = 69;
2356 private bool hasDefaultSfixed32;
2357 private int defaultSfixed32_ = 49;
2358 public bool HasDefaultSfixed32 {
2359 get { return hasDefaultSfixed32; }
2360 }
2361 public int DefaultSfixed32 {
2362 get { return defaultSfixed32_; }
2363 }
2364
2365 public const int DefaultSfixed64FieldNumber = 70;
2366 private bool hasDefaultSfixed64;
2367 private long defaultSfixed64_ = -50;
2368 public bool HasDefaultSfixed64 {
2369 get { return hasDefaultSfixed64; }
2370 }
2371 public long DefaultSfixed64 {
2372 get { return defaultSfixed64_; }
2373 }
2374
2375 public const int DefaultFloatFieldNumber = 71;
2376 private bool hasDefaultFloat;
2377 private float defaultFloat_ = 51.5F;
2378 public bool HasDefaultFloat {
2379 get { return hasDefaultFloat; }
2380 }
2381 public float DefaultFloat {
2382 get { return defaultFloat_; }
2383 }
2384
2385 public const int DefaultDoubleFieldNumber = 72;
2386 private bool hasDefaultDouble;
2387 private double defaultDouble_ = 52000D;
2388 public bool HasDefaultDouble {
2389 get { return hasDefaultDouble; }
2390 }
2391 public double DefaultDouble {
2392 get { return defaultDouble_; }
2393 }
2394
2395 public const int DefaultBoolFieldNumber = 73;
2396 private bool hasDefaultBool;
2397 private bool defaultBool_ = true;
2398 public bool HasDefaultBool {
2399 get { return hasDefaultBool; }
2400 }
2401 public bool DefaultBool {
2402 get { return defaultBool_; }
2403 }
2404
2405 public const int DefaultStringFieldNumber = 74;
2406 private bool hasDefaultString;
2407 private string defaultString_ = "hello";
2408 public bool HasDefaultString {
2409 get { return hasDefaultString; }
2410 }
2411 public string DefaultString {
2412 get { return defaultString_; }
2413 }
2414
2415 public const int DefaultBytesFieldNumber = 75;
2416 private bool hasDefaultBytes;
2417 private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue;
2418 public bool HasDefaultBytes {
2419 get { return hasDefaultBytes; }
2420 }
2421 public pb::ByteString DefaultBytes {
2422 get { return defaultBytes_; }
2423 }
2424
2425 public const int DefaultNestedEnumFieldNumber = 81;
2426 private bool hasDefaultNestedEnum;
2427 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
2428 public bool HasDefaultNestedEnum {
2429 get { return hasDefaultNestedEnum; }
2430 }
2431 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
2432 get { return defaultNestedEnum_; }
2433 }
2434
2435 public const int DefaultForeignEnumFieldNumber = 82;
2436 private bool hasDefaultForeignEnum;
2437 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
2438 public bool HasDefaultForeignEnum {
2439 get { return hasDefaultForeignEnum; }
2440 }
2441 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
2442 get { return defaultForeignEnum_; }
2443 }
2444
2445 public const int DefaultImportEnumFieldNumber = 83;
2446 private bool hasDefaultImportEnum;
2447 private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
2448 public bool HasDefaultImportEnum {
2449 get { return hasDefaultImportEnum; }
2450 }
2451 public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
2452 get { return defaultImportEnum_; }
2453 }
2454
2455 public const int DefaultStringPieceFieldNumber = 84;
2456 private bool hasDefaultStringPiece;
2457 private string defaultStringPiece_ = "abc";
2458 public bool HasDefaultStringPiece {
2459 get { return hasDefaultStringPiece; }
2460 }
2461 public string DefaultStringPiece {
2462 get { return defaultStringPiece_; }
2463 }
2464
2465 public const int DefaultCordFieldNumber = 85;
2466 private bool hasDefaultCord;
2467 private string defaultCord_ = "123";
2468 public bool HasDefaultCord {
2469 get { return hasDefaultCord; }
2470 }
2471 public string DefaultCord {
2472 get { return defaultCord_; }
2473 }
2474
2475 public override bool IsInitialized {
2476 get {
2477 return true;
2478 }
2479 }
2480
2481 public override void WriteTo(pb::CodedOutputStream output) {
2482 int size = SerializedSize;
2483 if (HasOptionalInt32) {
2484 output.WriteInt32(1, OptionalInt32);
2485 }
2486 if (HasOptionalInt64) {
2487 output.WriteInt64(2, OptionalInt64);
2488 }
2489 if (HasOptionalUint32) {
2490 output.WriteUInt32(3, OptionalUint32);
2491 }
2492 if (HasOptionalUint64) {
2493 output.WriteUInt64(4, OptionalUint64);
2494 }
2495 if (HasOptionalSint32) {
2496 output.WriteSInt32(5, OptionalSint32);
2497 }
2498 if (HasOptionalSint64) {
2499 output.WriteSInt64(6, OptionalSint64);
2500 }
2501 if (HasOptionalFixed32) {
2502 output.WriteFixed32(7, OptionalFixed32);
2503 }
2504 if (HasOptionalFixed64) {
2505 output.WriteFixed64(8, OptionalFixed64);
2506 }
2507 if (HasOptionalSfixed32) {
2508 output.WriteSFixed32(9, OptionalSfixed32);
2509 }
2510 if (HasOptionalSfixed64) {
2511 output.WriteSFixed64(10, OptionalSfixed64);
2512 }
2513 if (HasOptionalFloat) {
2514 output.WriteFloat(11, OptionalFloat);
2515 }
2516 if (HasOptionalDouble) {
2517 output.WriteDouble(12, OptionalDouble);
2518 }
2519 if (HasOptionalBool) {
2520 output.WriteBool(13, OptionalBool);
2521 }
2522 if (HasOptionalString) {
2523 output.WriteString(14, OptionalString);
2524 }
2525 if (HasOptionalBytes) {
2526 output.WriteBytes(15, OptionalBytes);
2527 }
2528 if (HasOptionalGroup) {
2529 output.WriteGroup(16, OptionalGroup);
2530 }
2531 if (HasOptionalNestedMessage) {
2532 output.WriteMessage(18, OptionalNestedMessage);
2533 }
2534 if (HasOptionalForeignMessage) {
2535 output.WriteMessage(19, OptionalForeignMessage);
2536 }
2537 if (HasOptionalImportMessage) {
2538 output.WriteMessage(20, OptionalImportMessage);
2539 }
2540 if (HasOptionalNestedEnum) {
2541 output.WriteEnum(21, (int) OptionalNestedEnum);
2542 }
2543 if (HasOptionalForeignEnum) {
2544 output.WriteEnum(22, (int) OptionalForeignEnum);
2545 }
2546 if (HasOptionalImportEnum) {
2547 output.WriteEnum(23, (int) OptionalImportEnum);
2548 }
2549 if (HasOptionalStringPiece) {
2550 output.WriteString(24, OptionalStringPiece);
2551 }
2552 if (HasOptionalCord) {
2553 output.WriteString(25, OptionalCord);
2554 }
2555 if (repeatedInt32_.Count > 0) {
2556 foreach (int element in repeatedInt32_) {
2557 output.WriteInt32(31, element);
2558 }
2559 }
2560 if (repeatedInt64_.Count > 0) {
2561 foreach (long element in repeatedInt64_) {
2562 output.WriteInt64(32, element);
2563 }
2564 }
2565 if (repeatedUint32_.Count > 0) {
2566 foreach (uint element in repeatedUint32_) {
2567 output.WriteUInt32(33, element);
2568 }
2569 }
2570 if (repeatedUint64_.Count > 0) {
2571 foreach (ulong element in repeatedUint64_) {
2572 output.WriteUInt64(34, element);
2573 }
2574 }
2575 if (repeatedSint32_.Count > 0) {
2576 foreach (int element in repeatedSint32_) {
2577 output.WriteSInt32(35, element);
2578 }
2579 }
2580 if (repeatedSint64_.Count > 0) {
2581 foreach (long element in repeatedSint64_) {
2582 output.WriteSInt64(36, element);
2583 }
2584 }
2585 if (repeatedFixed32_.Count > 0) {
2586 foreach (uint element in repeatedFixed32_) {
2587 output.WriteFixed32(37, element);
2588 }
2589 }
2590 if (repeatedFixed64_.Count > 0) {
2591 foreach (ulong element in repeatedFixed64_) {
2592 output.WriteFixed64(38, element);
2593 }
2594 }
2595 if (repeatedSfixed32_.Count > 0) {
2596 foreach (int element in repeatedSfixed32_) {
2597 output.WriteSFixed32(39, element);
2598 }
2599 }
2600 if (repeatedSfixed64_.Count > 0) {
2601 foreach (long element in repeatedSfixed64_) {
2602 output.WriteSFixed64(40, element);
2603 }
2604 }
2605 if (repeatedFloat_.Count > 0) {
2606 foreach (float element in repeatedFloat_) {
2607 output.WriteFloat(41, element);
2608 }
2609 }
2610 if (repeatedDouble_.Count > 0) {
2611 foreach (double element in repeatedDouble_) {
2612 output.WriteDouble(42, element);
2613 }
2614 }
2615 if (repeatedBool_.Count > 0) {
2616 foreach (bool element in repeatedBool_) {
2617 output.WriteBool(43, element);
2618 }
2619 }
2620 if (repeatedString_.Count > 0) {
2621 foreach (string element in repeatedString_) {
2622 output.WriteString(44, element);
2623 }
2624 }
2625 if (repeatedBytes_.Count > 0) {
2626 foreach (pb::ByteString element in repeatedBytes_) {
2627 output.WriteBytes(45, element);
2628 }
2629 }
2630 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
2631 output.WriteGroup(46, element);
2632 }
2633 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
2634 output.WriteMessage(48, element);
2635 }
2636 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
2637 output.WriteMessage(49, element);
2638 }
2639 foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
2640 output.WriteMessage(50, element);
2641 }
2642 if (repeatedNestedEnum_.Count > 0) {
2643 foreach (int element in repeatedNestedEnum_) {
2644 output.WriteEnum(51, element);
2645 }
2646 }
2647 if (repeatedForeignEnum_.Count > 0) {
2648 foreach (int element in repeatedForeignEnum_) {
2649 output.WriteEnum(52, element);
2650 }
2651 }
2652 if (repeatedImportEnum_.Count > 0) {
2653 foreach (int element in repeatedImportEnum_) {
2654 output.WriteEnum(53, element);
2655 }
2656 }
2657 if (repeatedStringPiece_.Count > 0) {
2658 foreach (string element in repeatedStringPiece_) {
2659 output.WriteString(54, element);
2660 }
2661 }
2662 if (repeatedCord_.Count > 0) {
2663 foreach (string element in repeatedCord_) {
2664 output.WriteString(55, element);
2665 }
2666 }
2667 if (HasDefaultInt32) {
2668 output.WriteInt32(61, DefaultInt32);
2669 }
2670 if (HasDefaultInt64) {
2671 output.WriteInt64(62, DefaultInt64);
2672 }
2673 if (HasDefaultUint32) {
2674 output.WriteUInt32(63, DefaultUint32);
2675 }
2676 if (HasDefaultUint64) {
2677 output.WriteUInt64(64, DefaultUint64);
2678 }
2679 if (HasDefaultSint32) {
2680 output.WriteSInt32(65, DefaultSint32);
2681 }
2682 if (HasDefaultSint64) {
2683 output.WriteSInt64(66, DefaultSint64);
2684 }
2685 if (HasDefaultFixed32) {
2686 output.WriteFixed32(67, DefaultFixed32);
2687 }
2688 if (HasDefaultFixed64) {
2689 output.WriteFixed64(68, DefaultFixed64);
2690 }
2691 if (HasDefaultSfixed32) {
2692 output.WriteSFixed32(69, DefaultSfixed32);
2693 }
2694 if (HasDefaultSfixed64) {
2695 output.WriteSFixed64(70, DefaultSfixed64);
2696 }
2697 if (HasDefaultFloat) {
2698 output.WriteFloat(71, DefaultFloat);
2699 }
2700 if (HasDefaultDouble) {
2701 output.WriteDouble(72, DefaultDouble);
2702 }
2703 if (HasDefaultBool) {
2704 output.WriteBool(73, DefaultBool);
2705 }
2706 if (HasDefaultString) {
2707 output.WriteString(74, DefaultString);
2708 }
2709 if (HasDefaultBytes) {
2710 output.WriteBytes(75, DefaultBytes);
2711 }
2712 if (HasDefaultNestedEnum) {
2713 output.WriteEnum(81, (int) DefaultNestedEnum);
2714 }
2715 if (HasDefaultForeignEnum) {
2716 output.WriteEnum(82, (int) DefaultForeignEnum);
2717 }
2718 if (HasDefaultImportEnum) {
2719 output.WriteEnum(83, (int) DefaultImportEnum);
2720 }
2721 if (HasDefaultStringPiece) {
2722 output.WriteString(84, DefaultStringPiece);
2723 }
2724 if (HasDefaultCord) {
2725 output.WriteString(85, DefaultCord);
2726 }
2727 UnknownFields.WriteTo(output);
2728 }
2729
2730 private int memoizedSerializedSize = -1;
2731 public override int SerializedSize {
2732 get {
2733 int size = memoizedSerializedSize;
2734 if (size != -1) return size;
2735
2736 size = 0;
2737 if (HasOptionalInt32) {
2738 size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
2739 }
2740 if (HasOptionalInt64) {
2741 size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
2742 }
2743 if (HasOptionalUint32) {
2744 size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
2745 }
2746 if (HasOptionalUint64) {
2747 size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
2748 }
2749 if (HasOptionalSint32) {
2750 size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
2751 }
2752 if (HasOptionalSint64) {
2753 size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
2754 }
2755 if (HasOptionalFixed32) {
2756 size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
2757 }
2758 if (HasOptionalFixed64) {
2759 size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
2760 }
2761 if (HasOptionalSfixed32) {
2762 size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
2763 }
2764 if (HasOptionalSfixed64) {
2765 size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
2766 }
2767 if (HasOptionalFloat) {
2768 size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
2769 }
2770 if (HasOptionalDouble) {
2771 size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
2772 }
2773 if (HasOptionalBool) {
2774 size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
2775 }
2776 if (HasOptionalString) {
2777 size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
2778 }
2779 if (HasOptionalBytes) {
2780 size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
2781 }
2782 if (HasOptionalGroup) {
2783 size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
2784 }
2785 if (HasOptionalNestedMessage) {
2786 size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
2787 }
2788 if (HasOptionalForeignMessage) {
2789 size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
2790 }
2791 if (HasOptionalImportMessage) {
2792 size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
2793 }
2794 if (HasOptionalNestedEnum) {
2795 size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
2796 }
2797 if (HasOptionalForeignEnum) {
2798 size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
2799 }
2800 if (HasOptionalImportEnum) {
2801 size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
2802 }
2803 if (HasOptionalStringPiece) {
2804 size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
2805 }
2806 if (HasOptionalCord) {
2807 size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
2808 }
2809 {
2810 int dataSize = 0;
2811 foreach (int element in RepeatedInt32List) {
2812 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
2813 }
2814 size += dataSize;
2815 size += 2 * repeatedInt32_.Count;
2816 }
2817 {
2818 int dataSize = 0;
2819 foreach (long element in RepeatedInt64List) {
2820 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
2821 }
2822 size += dataSize;
2823 size += 2 * repeatedInt64_.Count;
2824 }
2825 {
2826 int dataSize = 0;
2827 foreach (uint element in RepeatedUint32List) {
2828 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
2829 }
2830 size += dataSize;
2831 size += 2 * repeatedUint32_.Count;
2832 }
2833 {
2834 int dataSize = 0;
2835 foreach (ulong element in RepeatedUint64List) {
2836 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
2837 }
2838 size += dataSize;
2839 size += 2 * repeatedUint64_.Count;
2840 }
2841 {
2842 int dataSize = 0;
2843 foreach (int element in RepeatedSint32List) {
2844 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
2845 }
2846 size += dataSize;
2847 size += 2 * repeatedSint32_.Count;
2848 }
2849 {
2850 int dataSize = 0;
2851 foreach (long element in RepeatedSint64List) {
2852 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
2853 }
2854 size += dataSize;
2855 size += 2 * repeatedSint64_.Count;
2856 }
2857 {
2858 int dataSize = 0;
2859 dataSize = 4 * repeatedFixed32_.Count;
2860 size += dataSize;
2861 size += 2 * repeatedFixed32_.Count;
2862 }
2863 {
2864 int dataSize = 0;
2865 dataSize = 8 * repeatedFixed64_.Count;
2866 size += dataSize;
2867 size += 2 * repeatedFixed64_.Count;
2868 }
2869 {
2870 int dataSize = 0;
2871 dataSize = 4 * repeatedSfixed32_.Count;
2872 size += dataSize;
2873 size += 2 * repeatedSfixed32_.Count;
2874 }
2875 {
2876 int dataSize = 0;
2877 dataSize = 8 * repeatedSfixed64_.Count;
2878 size += dataSize;
2879 size += 2 * repeatedSfixed64_.Count;
2880 }
2881 {
2882 int dataSize = 0;
2883 dataSize = 4 * repeatedFloat_.Count;
2884 size += dataSize;
2885 size += 2 * repeatedFloat_.Count;
2886 }
2887 {
2888 int dataSize = 0;
2889 dataSize = 8 * repeatedDouble_.Count;
2890 size += dataSize;
2891 size += 2 * repeatedDouble_.Count;
2892 }
2893 {
2894 int dataSize = 0;
2895 dataSize = 1 * repeatedBool_.Count;
2896 size += dataSize;
2897 size += 2 * repeatedBool_.Count;
2898 }
2899 {
2900 int dataSize = 0;
2901 foreach (string element in RepeatedStringList) {
2902 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2903 }
2904 size += dataSize;
2905 size += 2 * repeatedString_.Count;
2906 }
2907 {
2908 int dataSize = 0;
2909 foreach (pb::ByteString element in RepeatedBytesList) {
2910 dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
2911 }
2912 size += dataSize;
2913 size += 2 * repeatedBytes_.Count;
2914 }
2915 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
2916 size += pb::CodedOutputStream.ComputeGroupSize(46, element);
2917 }
2918 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
2919 size += pb::CodedOutputStream.ComputeMessageSize(48, element);
2920 }
2921 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
2922 size += pb::CodedOutputStream.ComputeMessageSize(49, element);
2923 }
2924 foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
2925 size += pb::CodedOutputStream.ComputeMessageSize(50, element);
2926 }
2927 {
2928 int dataSize = 0;
2929 if (repeatedNestedEnum_.Count > 0) {
2930 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in repeatedNestedEnum_) {
2931 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2932 }
2933 size += dataSize;
2934 size += 2 * repeatedNestedEnum_.Count;
2935 }
2936 }
2937 {
2938 int dataSize = 0;
2939 if (repeatedForeignEnum_.Count > 0) {
2940 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedForeignEnum_) {
2941 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2942 }
2943 size += dataSize;
2944 size += 2 * repeatedForeignEnum_.Count;
2945 }
2946 }
2947 {
2948 int dataSize = 0;
2949 if (repeatedImportEnum_.Count > 0) {
2950 foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in repeatedImportEnum_) {
2951 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
2952 }
2953 size += dataSize;
2954 size += 2 * repeatedImportEnum_.Count;
2955 }
2956 }
2957 {
2958 int dataSize = 0;
2959 foreach (string element in RepeatedStringPieceList) {
2960 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2961 }
2962 size += dataSize;
2963 size += 2 * repeatedStringPiece_.Count;
2964 }
2965 {
2966 int dataSize = 0;
2967 foreach (string element in RepeatedCordList) {
2968 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
2969 }
2970 size += dataSize;
2971 size += 2 * repeatedCord_.Count;
2972 }
2973 if (HasDefaultInt32) {
2974 size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
2975 }
2976 if (HasDefaultInt64) {
2977 size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
2978 }
2979 if (HasDefaultUint32) {
2980 size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
2981 }
2982 if (HasDefaultUint64) {
2983 size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
2984 }
2985 if (HasDefaultSint32) {
2986 size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
2987 }
2988 if (HasDefaultSint64) {
2989 size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
2990 }
2991 if (HasDefaultFixed32) {
2992 size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
2993 }
2994 if (HasDefaultFixed64) {
2995 size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
2996 }
2997 if (HasDefaultSfixed32) {
2998 size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
2999 }
3000 if (HasDefaultSfixed64) {
3001 size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
3002 }
3003 if (HasDefaultFloat) {
3004 size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
3005 }
3006 if (HasDefaultDouble) {
3007 size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
3008 }
3009 if (HasDefaultBool) {
3010 size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
3011 }
3012 if (HasDefaultString) {
3013 size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
3014 }
3015 if (HasDefaultBytes) {
3016 size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
3017 }
3018 if (HasDefaultNestedEnum) {
3019 size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
3020 }
3021 if (HasDefaultForeignEnum) {
3022 size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
3023 }
3024 if (HasDefaultImportEnum) {
3025 size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
3026 }
3027 if (HasDefaultStringPiece) {
3028 size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
3029 }
3030 if (HasDefaultCord) {
3031 size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
3032 }
3033 size += UnknownFields.SerializedSize;
3034 memoizedSerializedSize = size;
3035 return size;
3036 }
3037 }
3038
3039 public static TestAllTypes ParseFrom(pb::ByteString data) {
3040 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3041 }
3042 public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
3043 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3044 }
3045 public static TestAllTypes ParseFrom(byte[] data) {
3046 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3047 }
3048 public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
3049 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3050 }
3051 public static TestAllTypes ParseFrom(global::System.IO.Stream input) {
3052 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3053 }
3054 public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3055 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3056 }
3057 public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
3058 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
3059 }
3060 public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3061 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
3062 }
3063 public static TestAllTypes ParseFrom(pb::CodedInputStream input) {
3064 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3065 }
3066 public static TestAllTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
3067 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3068 }
3069 public static Builder CreateBuilder() { return new Builder(); }
3070 public override Builder ToBuilder() { return CreateBuilder(this); }
3071 public override Builder CreateBuilderForType() { return new Builder(); }
3072 public static Builder CreateBuilder(TestAllTypes prototype) {
3073 return (Builder) new Builder().MergeFrom(prototype);
3074 }
3075
csharptest445bdce2011-05-20 15:50:54 -05003076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3077 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
3078 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01003079 public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> {
3080 protected override Builder ThisBuilder {
3081 get { return this; }
3082 }
3083 public Builder() {}
3084
3085 TestAllTypes result = new TestAllTypes();
3086
3087 protected override TestAllTypes MessageBeingBuilt {
3088 get { return result; }
3089 }
3090
3091 public override Builder Clear() {
3092 result = new TestAllTypes();
3093 return this;
3094 }
3095
3096 public override Builder Clone() {
3097 return new Builder().MergeFrom(result);
3098 }
3099
3100 public override pbd::MessageDescriptor DescriptorForType {
3101 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
3102 }
3103
3104 public override TestAllTypes DefaultInstanceForType {
3105 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
3106 }
3107
3108 public override TestAllTypes BuildPartial() {
3109 if (result == null) {
3110 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
3111 }
3112 result.repeatedInt32_.MakeReadOnly();
3113 result.repeatedInt64_.MakeReadOnly();
3114 result.repeatedUint32_.MakeReadOnly();
3115 result.repeatedUint64_.MakeReadOnly();
3116 result.repeatedSint32_.MakeReadOnly();
3117 result.repeatedSint64_.MakeReadOnly();
3118 result.repeatedFixed32_.MakeReadOnly();
3119 result.repeatedFixed64_.MakeReadOnly();
3120 result.repeatedSfixed32_.MakeReadOnly();
3121 result.repeatedSfixed64_.MakeReadOnly();
3122 result.repeatedFloat_.MakeReadOnly();
3123 result.repeatedDouble_.MakeReadOnly();
3124 result.repeatedBool_.MakeReadOnly();
3125 result.repeatedString_.MakeReadOnly();
3126 result.repeatedBytes_.MakeReadOnly();
3127 result.repeatedGroup_.MakeReadOnly();
3128 result.repeatedNestedMessage_.MakeReadOnly();
3129 result.repeatedForeignMessage_.MakeReadOnly();
3130 result.repeatedImportMessage_.MakeReadOnly();
3131 result.repeatedNestedEnum_.MakeReadOnly();
3132 result.repeatedForeignEnum_.MakeReadOnly();
3133 result.repeatedImportEnum_.MakeReadOnly();
3134 result.repeatedStringPiece_.MakeReadOnly();
3135 result.repeatedCord_.MakeReadOnly();
3136 TestAllTypes returnMe = result;
3137 result = null;
3138 return returnMe;
3139 }
3140
3141 public override Builder MergeFrom(pb::IMessage other) {
3142 if (other is TestAllTypes) {
3143 return MergeFrom((TestAllTypes) other);
3144 } else {
3145 base.MergeFrom(other);
3146 return this;
3147 }
3148 }
3149
3150 public override Builder MergeFrom(TestAllTypes other) {
3151 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
3152 if (other.HasOptionalInt32) {
3153 OptionalInt32 = other.OptionalInt32;
3154 }
3155 if (other.HasOptionalInt64) {
3156 OptionalInt64 = other.OptionalInt64;
3157 }
3158 if (other.HasOptionalUint32) {
3159 OptionalUint32 = other.OptionalUint32;
3160 }
3161 if (other.HasOptionalUint64) {
3162 OptionalUint64 = other.OptionalUint64;
3163 }
3164 if (other.HasOptionalSint32) {
3165 OptionalSint32 = other.OptionalSint32;
3166 }
3167 if (other.HasOptionalSint64) {
3168 OptionalSint64 = other.OptionalSint64;
3169 }
3170 if (other.HasOptionalFixed32) {
3171 OptionalFixed32 = other.OptionalFixed32;
3172 }
3173 if (other.HasOptionalFixed64) {
3174 OptionalFixed64 = other.OptionalFixed64;
3175 }
3176 if (other.HasOptionalSfixed32) {
3177 OptionalSfixed32 = other.OptionalSfixed32;
3178 }
3179 if (other.HasOptionalSfixed64) {
3180 OptionalSfixed64 = other.OptionalSfixed64;
3181 }
3182 if (other.HasOptionalFloat) {
3183 OptionalFloat = other.OptionalFloat;
3184 }
3185 if (other.HasOptionalDouble) {
3186 OptionalDouble = other.OptionalDouble;
3187 }
3188 if (other.HasOptionalBool) {
3189 OptionalBool = other.OptionalBool;
3190 }
3191 if (other.HasOptionalString) {
3192 OptionalString = other.OptionalString;
3193 }
3194 if (other.HasOptionalBytes) {
3195 OptionalBytes = other.OptionalBytes;
3196 }
3197 if (other.HasOptionalGroup) {
3198 MergeOptionalGroup(other.OptionalGroup);
3199 }
3200 if (other.HasOptionalNestedMessage) {
3201 MergeOptionalNestedMessage(other.OptionalNestedMessage);
3202 }
3203 if (other.HasOptionalForeignMessage) {
3204 MergeOptionalForeignMessage(other.OptionalForeignMessage);
3205 }
3206 if (other.HasOptionalImportMessage) {
3207 MergeOptionalImportMessage(other.OptionalImportMessage);
3208 }
3209 if (other.HasOptionalNestedEnum) {
3210 OptionalNestedEnum = other.OptionalNestedEnum;
3211 }
3212 if (other.HasOptionalForeignEnum) {
3213 OptionalForeignEnum = other.OptionalForeignEnum;
3214 }
3215 if (other.HasOptionalImportEnum) {
3216 OptionalImportEnum = other.OptionalImportEnum;
3217 }
3218 if (other.HasOptionalStringPiece) {
3219 OptionalStringPiece = other.OptionalStringPiece;
3220 }
3221 if (other.HasOptionalCord) {
3222 OptionalCord = other.OptionalCord;
3223 }
3224 if (other.repeatedInt32_.Count != 0) {
3225 base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
3226 }
3227 if (other.repeatedInt64_.Count != 0) {
3228 base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
3229 }
3230 if (other.repeatedUint32_.Count != 0) {
3231 base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
3232 }
3233 if (other.repeatedUint64_.Count != 0) {
3234 base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
3235 }
3236 if (other.repeatedSint32_.Count != 0) {
3237 base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
3238 }
3239 if (other.repeatedSint64_.Count != 0) {
3240 base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
3241 }
3242 if (other.repeatedFixed32_.Count != 0) {
3243 base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
3244 }
3245 if (other.repeatedFixed64_.Count != 0) {
3246 base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
3247 }
3248 if (other.repeatedSfixed32_.Count != 0) {
3249 base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
3250 }
3251 if (other.repeatedSfixed64_.Count != 0) {
3252 base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
3253 }
3254 if (other.repeatedFloat_.Count != 0) {
3255 base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
3256 }
3257 if (other.repeatedDouble_.Count != 0) {
3258 base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
3259 }
3260 if (other.repeatedBool_.Count != 0) {
3261 base.AddRange(other.repeatedBool_, result.repeatedBool_);
3262 }
3263 if (other.repeatedString_.Count != 0) {
3264 base.AddRange(other.repeatedString_, result.repeatedString_);
3265 }
3266 if (other.repeatedBytes_.Count != 0) {
3267 base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
3268 }
3269 if (other.repeatedGroup_.Count != 0) {
3270 base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
3271 }
3272 if (other.repeatedNestedMessage_.Count != 0) {
3273 base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
3274 }
3275 if (other.repeatedForeignMessage_.Count != 0) {
3276 base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
3277 }
3278 if (other.repeatedImportMessage_.Count != 0) {
3279 base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
3280 }
3281 if (other.repeatedNestedEnum_.Count != 0) {
3282 base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
3283 }
3284 if (other.repeatedForeignEnum_.Count != 0) {
3285 base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
3286 }
3287 if (other.repeatedImportEnum_.Count != 0) {
3288 base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
3289 }
3290 if (other.repeatedStringPiece_.Count != 0) {
3291 base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
3292 }
3293 if (other.repeatedCord_.Count != 0) {
3294 base.AddRange(other.repeatedCord_, result.repeatedCord_);
3295 }
3296 if (other.HasDefaultInt32) {
3297 DefaultInt32 = other.DefaultInt32;
3298 }
3299 if (other.HasDefaultInt64) {
3300 DefaultInt64 = other.DefaultInt64;
3301 }
3302 if (other.HasDefaultUint32) {
3303 DefaultUint32 = other.DefaultUint32;
3304 }
3305 if (other.HasDefaultUint64) {
3306 DefaultUint64 = other.DefaultUint64;
3307 }
3308 if (other.HasDefaultSint32) {
3309 DefaultSint32 = other.DefaultSint32;
3310 }
3311 if (other.HasDefaultSint64) {
3312 DefaultSint64 = other.DefaultSint64;
3313 }
3314 if (other.HasDefaultFixed32) {
3315 DefaultFixed32 = other.DefaultFixed32;
3316 }
3317 if (other.HasDefaultFixed64) {
3318 DefaultFixed64 = other.DefaultFixed64;
3319 }
3320 if (other.HasDefaultSfixed32) {
3321 DefaultSfixed32 = other.DefaultSfixed32;
3322 }
3323 if (other.HasDefaultSfixed64) {
3324 DefaultSfixed64 = other.DefaultSfixed64;
3325 }
3326 if (other.HasDefaultFloat) {
3327 DefaultFloat = other.DefaultFloat;
3328 }
3329 if (other.HasDefaultDouble) {
3330 DefaultDouble = other.DefaultDouble;
3331 }
3332 if (other.HasDefaultBool) {
3333 DefaultBool = other.DefaultBool;
3334 }
3335 if (other.HasDefaultString) {
3336 DefaultString = other.DefaultString;
3337 }
3338 if (other.HasDefaultBytes) {
3339 DefaultBytes = other.DefaultBytes;
3340 }
3341 if (other.HasDefaultNestedEnum) {
3342 DefaultNestedEnum = other.DefaultNestedEnum;
3343 }
3344 if (other.HasDefaultForeignEnum) {
3345 DefaultForeignEnum = other.DefaultForeignEnum;
3346 }
3347 if (other.HasDefaultImportEnum) {
3348 DefaultImportEnum = other.DefaultImportEnum;
3349 }
3350 if (other.HasDefaultStringPiece) {
3351 DefaultStringPiece = other.DefaultStringPiece;
3352 }
3353 if (other.HasDefaultCord) {
3354 DefaultCord = other.DefaultCord;
3355 }
3356 this.MergeUnknownFields(other.UnknownFields);
3357 return this;
3358 }
3359
3360 public override Builder MergeFrom(pb::CodedInputStream input) {
3361 return MergeFrom(input, pb::ExtensionRegistry.Empty);
3362 }
3363
3364 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
3365 pb::UnknownFieldSet.Builder unknownFields = null;
3366 while (true) {
3367 uint tag = input.ReadTag();
3368 switch (tag) {
3369 case 0: {
3370 if (unknownFields != null) {
3371 this.UnknownFields = unknownFields.Build();
3372 }
3373 return this;
3374 }
3375 default: {
3376 if (pb::WireFormat.IsEndGroupTag(tag)) {
3377 if (unknownFields != null) {
3378 this.UnknownFields = unknownFields.Build();
3379 }
3380 return this;
3381 }
3382 if (unknownFields == null) {
3383 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3384 }
3385 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
3386 break;
3387 }
3388 case 8: {
3389 OptionalInt32 = input.ReadInt32();
3390 break;
3391 }
3392 case 16: {
3393 OptionalInt64 = input.ReadInt64();
3394 break;
3395 }
3396 case 24: {
3397 OptionalUint32 = input.ReadUInt32();
3398 break;
3399 }
3400 case 32: {
3401 OptionalUint64 = input.ReadUInt64();
3402 break;
3403 }
3404 case 40: {
3405 OptionalSint32 = input.ReadSInt32();
3406 break;
3407 }
3408 case 48: {
3409 OptionalSint64 = input.ReadSInt64();
3410 break;
3411 }
3412 case 61: {
3413 OptionalFixed32 = input.ReadFixed32();
3414 break;
3415 }
3416 case 65: {
3417 OptionalFixed64 = input.ReadFixed64();
3418 break;
3419 }
3420 case 77: {
3421 OptionalSfixed32 = input.ReadSFixed32();
3422 break;
3423 }
3424 case 81: {
3425 OptionalSfixed64 = input.ReadSFixed64();
3426 break;
3427 }
3428 case 93: {
3429 OptionalFloat = input.ReadFloat();
3430 break;
3431 }
3432 case 97: {
3433 OptionalDouble = input.ReadDouble();
3434 break;
3435 }
3436 case 104: {
3437 OptionalBool = input.ReadBool();
3438 break;
3439 }
3440 case 114: {
3441 OptionalString = input.ReadString();
3442 break;
3443 }
3444 case 122: {
3445 OptionalBytes = input.ReadBytes();
3446 break;
3447 }
3448 case 131: {
3449 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
3450 if (HasOptionalGroup) {
3451 subBuilder.MergeFrom(OptionalGroup);
3452 }
3453 input.ReadGroup(16, subBuilder, extensionRegistry);
3454 OptionalGroup = subBuilder.BuildPartial();
3455 break;
3456 }
3457 case 146: {
3458 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
3459 if (HasOptionalNestedMessage) {
3460 subBuilder.MergeFrom(OptionalNestedMessage);
3461 }
3462 input.ReadMessage(subBuilder, extensionRegistry);
3463 OptionalNestedMessage = subBuilder.BuildPartial();
3464 break;
3465 }
3466 case 154: {
3467 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
3468 if (HasOptionalForeignMessage) {
3469 subBuilder.MergeFrom(OptionalForeignMessage);
3470 }
3471 input.ReadMessage(subBuilder, extensionRegistry);
3472 OptionalForeignMessage = subBuilder.BuildPartial();
3473 break;
3474 }
3475 case 162: {
3476 global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
3477 if (HasOptionalImportMessage) {
3478 subBuilder.MergeFrom(OptionalImportMessage);
3479 }
3480 input.ReadMessage(subBuilder, extensionRegistry);
3481 OptionalImportMessage = subBuilder.BuildPartial();
3482 break;
3483 }
3484 case 168: {
3485 int rawValue = input.ReadEnum();
3486 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
3487 if (unknownFields == null) {
3488 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3489 }
3490 unknownFields.MergeVarintField(21, (ulong) rawValue);
3491 } else {
3492 OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
3493 }
3494 break;
3495 }
3496 case 176: {
3497 int rawValue = input.ReadEnum();
3498 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
3499 if (unknownFields == null) {
3500 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3501 }
3502 unknownFields.MergeVarintField(22, (ulong) rawValue);
3503 } else {
3504 OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
3505 }
3506 break;
3507 }
3508 case 184: {
3509 int rawValue = input.ReadEnum();
3510 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
3511 if (unknownFields == null) {
3512 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3513 }
3514 unknownFields.MergeVarintField(23, (ulong) rawValue);
3515 } else {
3516 OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
3517 }
3518 break;
3519 }
3520 case 194: {
3521 OptionalStringPiece = input.ReadString();
3522 break;
3523 }
3524 case 202: {
3525 OptionalCord = input.ReadString();
3526 break;
3527 }
3528 case 248: {
3529 AddRepeatedInt32(input.ReadInt32());
3530 break;
3531 }
3532 case 256: {
3533 AddRepeatedInt64(input.ReadInt64());
3534 break;
3535 }
3536 case 264: {
3537 AddRepeatedUint32(input.ReadUInt32());
3538 break;
3539 }
3540 case 272: {
3541 AddRepeatedUint64(input.ReadUInt64());
3542 break;
3543 }
3544 case 280: {
3545 AddRepeatedSint32(input.ReadSInt32());
3546 break;
3547 }
3548 case 288: {
3549 AddRepeatedSint64(input.ReadSInt64());
3550 break;
3551 }
3552 case 301: {
3553 AddRepeatedFixed32(input.ReadFixed32());
3554 break;
3555 }
3556 case 305: {
3557 AddRepeatedFixed64(input.ReadFixed64());
3558 break;
3559 }
3560 case 317: {
3561 AddRepeatedSfixed32(input.ReadSFixed32());
3562 break;
3563 }
3564 case 321: {
3565 AddRepeatedSfixed64(input.ReadSFixed64());
3566 break;
3567 }
3568 case 333: {
3569 AddRepeatedFloat(input.ReadFloat());
3570 break;
3571 }
3572 case 337: {
3573 AddRepeatedDouble(input.ReadDouble());
3574 break;
3575 }
3576 case 344: {
3577 AddRepeatedBool(input.ReadBool());
3578 break;
3579 }
3580 case 354: {
3581 AddRepeatedString(input.ReadString());
3582 break;
3583 }
3584 case 362: {
3585 AddRepeatedBytes(input.ReadBytes());
3586 break;
3587 }
3588 case 371: {
3589 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder();
3590 input.ReadGroup(46, subBuilder, extensionRegistry);
3591 AddRepeatedGroup(subBuilder.BuildPartial());
3592 break;
3593 }
3594 case 386: {
3595 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
3596 input.ReadMessage(subBuilder, extensionRegistry);
3597 AddRepeatedNestedMessage(subBuilder.BuildPartial());
3598 break;
3599 }
3600 case 394: {
3601 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
3602 input.ReadMessage(subBuilder, extensionRegistry);
3603 AddRepeatedForeignMessage(subBuilder.BuildPartial());
3604 break;
3605 }
3606 case 402: {
3607 global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
3608 input.ReadMessage(subBuilder, extensionRegistry);
3609 AddRepeatedImportMessage(subBuilder.BuildPartial());
3610 break;
3611 }
3612 case 408: {
3613 int rawValue = input.ReadEnum();
3614 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
3615 if (unknownFields == null) {
3616 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3617 }
3618 unknownFields.MergeVarintField(51, (ulong) rawValue);
3619 } else {
3620 AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue);
3621 }
3622 break;
3623 }
3624 case 416: {
3625 int rawValue = input.ReadEnum();
3626 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
3627 if (unknownFields == null) {
3628 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3629 }
3630 unknownFields.MergeVarintField(52, (ulong) rawValue);
3631 } else {
3632 AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue);
3633 }
3634 break;
3635 }
3636 case 424: {
3637 int rawValue = input.ReadEnum();
3638 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
3639 if (unknownFields == null) {
3640 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3641 }
3642 unknownFields.MergeVarintField(53, (ulong) rawValue);
3643 } else {
3644 AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue);
3645 }
3646 break;
3647 }
3648 case 434: {
3649 AddRepeatedStringPiece(input.ReadString());
3650 break;
3651 }
3652 case 442: {
3653 AddRepeatedCord(input.ReadString());
3654 break;
3655 }
3656 case 488: {
3657 DefaultInt32 = input.ReadInt32();
3658 break;
3659 }
3660 case 496: {
3661 DefaultInt64 = input.ReadInt64();
3662 break;
3663 }
3664 case 504: {
3665 DefaultUint32 = input.ReadUInt32();
3666 break;
3667 }
3668 case 512: {
3669 DefaultUint64 = input.ReadUInt64();
3670 break;
3671 }
3672 case 520: {
3673 DefaultSint32 = input.ReadSInt32();
3674 break;
3675 }
3676 case 528: {
3677 DefaultSint64 = input.ReadSInt64();
3678 break;
3679 }
3680 case 541: {
3681 DefaultFixed32 = input.ReadFixed32();
3682 break;
3683 }
3684 case 545: {
3685 DefaultFixed64 = input.ReadFixed64();
3686 break;
3687 }
3688 case 557: {
3689 DefaultSfixed32 = input.ReadSFixed32();
3690 break;
3691 }
3692 case 561: {
3693 DefaultSfixed64 = input.ReadSFixed64();
3694 break;
3695 }
3696 case 573: {
3697 DefaultFloat = input.ReadFloat();
3698 break;
3699 }
3700 case 577: {
3701 DefaultDouble = input.ReadDouble();
3702 break;
3703 }
3704 case 584: {
3705 DefaultBool = input.ReadBool();
3706 break;
3707 }
3708 case 594: {
3709 DefaultString = input.ReadString();
3710 break;
3711 }
3712 case 602: {
3713 DefaultBytes = input.ReadBytes();
3714 break;
3715 }
3716 case 648: {
3717 int rawValue = input.ReadEnum();
3718 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
3719 if (unknownFields == null) {
3720 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3721 }
3722 unknownFields.MergeVarintField(81, (ulong) rawValue);
3723 } else {
3724 DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
3725 }
3726 break;
3727 }
3728 case 656: {
3729 int rawValue = input.ReadEnum();
3730 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
3731 if (unknownFields == null) {
3732 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3733 }
3734 unknownFields.MergeVarintField(82, (ulong) rawValue);
3735 } else {
3736 DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
3737 }
3738 break;
3739 }
3740 case 664: {
3741 int rawValue = input.ReadEnum();
3742 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
3743 if (unknownFields == null) {
3744 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
3745 }
3746 unknownFields.MergeVarintField(83, (ulong) rawValue);
3747 } else {
3748 DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
3749 }
3750 break;
3751 }
3752 case 674: {
3753 DefaultStringPiece = input.ReadString();
3754 break;
3755 }
3756 case 682: {
3757 DefaultCord = input.ReadString();
3758 break;
3759 }
3760 }
3761 }
3762 }
3763
3764
3765 public bool HasOptionalInt32 {
3766 get { return result.HasOptionalInt32; }
3767 }
3768 public int OptionalInt32 {
3769 get { return result.OptionalInt32; }
3770 set { SetOptionalInt32(value); }
3771 }
3772 public Builder SetOptionalInt32(int value) {
3773 result.hasOptionalInt32 = true;
3774 result.optionalInt32_ = value;
3775 return this;
3776 }
3777 public Builder ClearOptionalInt32() {
3778 result.hasOptionalInt32 = false;
3779 result.optionalInt32_ = 0;
3780 return this;
3781 }
3782
3783 public bool HasOptionalInt64 {
3784 get { return result.HasOptionalInt64; }
3785 }
3786 public long OptionalInt64 {
3787 get { return result.OptionalInt64; }
3788 set { SetOptionalInt64(value); }
3789 }
3790 public Builder SetOptionalInt64(long value) {
3791 result.hasOptionalInt64 = true;
3792 result.optionalInt64_ = value;
3793 return this;
3794 }
3795 public Builder ClearOptionalInt64() {
3796 result.hasOptionalInt64 = false;
3797 result.optionalInt64_ = 0L;
3798 return this;
3799 }
3800
3801 public bool HasOptionalUint32 {
3802 get { return result.HasOptionalUint32; }
3803 }
3804 [global::System.CLSCompliant(false)]
3805 public uint OptionalUint32 {
3806 get { return result.OptionalUint32; }
3807 set { SetOptionalUint32(value); }
3808 }
3809 [global::System.CLSCompliant(false)]
3810 public Builder SetOptionalUint32(uint value) {
3811 result.hasOptionalUint32 = true;
3812 result.optionalUint32_ = value;
3813 return this;
3814 }
3815 public Builder ClearOptionalUint32() {
3816 result.hasOptionalUint32 = false;
3817 result.optionalUint32_ = 0;
3818 return this;
3819 }
3820
3821 public bool HasOptionalUint64 {
3822 get { return result.HasOptionalUint64; }
3823 }
3824 [global::System.CLSCompliant(false)]
3825 public ulong OptionalUint64 {
3826 get { return result.OptionalUint64; }
3827 set { SetOptionalUint64(value); }
3828 }
3829 [global::System.CLSCompliant(false)]
3830 public Builder SetOptionalUint64(ulong value) {
3831 result.hasOptionalUint64 = true;
3832 result.optionalUint64_ = value;
3833 return this;
3834 }
3835 public Builder ClearOptionalUint64() {
3836 result.hasOptionalUint64 = false;
3837 result.optionalUint64_ = 0UL;
3838 return this;
3839 }
3840
3841 public bool HasOptionalSint32 {
3842 get { return result.HasOptionalSint32; }
3843 }
3844 public int OptionalSint32 {
3845 get { return result.OptionalSint32; }
3846 set { SetOptionalSint32(value); }
3847 }
3848 public Builder SetOptionalSint32(int value) {
3849 result.hasOptionalSint32 = true;
3850 result.optionalSint32_ = value;
3851 return this;
3852 }
3853 public Builder ClearOptionalSint32() {
3854 result.hasOptionalSint32 = false;
3855 result.optionalSint32_ = 0;
3856 return this;
3857 }
3858
3859 public bool HasOptionalSint64 {
3860 get { return result.HasOptionalSint64; }
3861 }
3862 public long OptionalSint64 {
3863 get { return result.OptionalSint64; }
3864 set { SetOptionalSint64(value); }
3865 }
3866 public Builder SetOptionalSint64(long value) {
3867 result.hasOptionalSint64 = true;
3868 result.optionalSint64_ = value;
3869 return this;
3870 }
3871 public Builder ClearOptionalSint64() {
3872 result.hasOptionalSint64 = false;
3873 result.optionalSint64_ = 0;
3874 return this;
3875 }
3876
3877 public bool HasOptionalFixed32 {
3878 get { return result.HasOptionalFixed32; }
3879 }
3880 [global::System.CLSCompliant(false)]
3881 public uint OptionalFixed32 {
3882 get { return result.OptionalFixed32; }
3883 set { SetOptionalFixed32(value); }
3884 }
3885 [global::System.CLSCompliant(false)]
3886 public Builder SetOptionalFixed32(uint value) {
3887 result.hasOptionalFixed32 = true;
3888 result.optionalFixed32_ = value;
3889 return this;
3890 }
3891 public Builder ClearOptionalFixed32() {
3892 result.hasOptionalFixed32 = false;
3893 result.optionalFixed32_ = 0;
3894 return this;
3895 }
3896
3897 public bool HasOptionalFixed64 {
3898 get { return result.HasOptionalFixed64; }
3899 }
3900 [global::System.CLSCompliant(false)]
3901 public ulong OptionalFixed64 {
3902 get { return result.OptionalFixed64; }
3903 set { SetOptionalFixed64(value); }
3904 }
3905 [global::System.CLSCompliant(false)]
3906 public Builder SetOptionalFixed64(ulong value) {
3907 result.hasOptionalFixed64 = true;
3908 result.optionalFixed64_ = value;
3909 return this;
3910 }
3911 public Builder ClearOptionalFixed64() {
3912 result.hasOptionalFixed64 = false;
3913 result.optionalFixed64_ = 0;
3914 return this;
3915 }
3916
3917 public bool HasOptionalSfixed32 {
3918 get { return result.HasOptionalSfixed32; }
3919 }
3920 public int OptionalSfixed32 {
3921 get { return result.OptionalSfixed32; }
3922 set { SetOptionalSfixed32(value); }
3923 }
3924 public Builder SetOptionalSfixed32(int value) {
3925 result.hasOptionalSfixed32 = true;
3926 result.optionalSfixed32_ = value;
3927 return this;
3928 }
3929 public Builder ClearOptionalSfixed32() {
3930 result.hasOptionalSfixed32 = false;
3931 result.optionalSfixed32_ = 0;
3932 return this;
3933 }
3934
3935 public bool HasOptionalSfixed64 {
3936 get { return result.HasOptionalSfixed64; }
3937 }
3938 public long OptionalSfixed64 {
3939 get { return result.OptionalSfixed64; }
3940 set { SetOptionalSfixed64(value); }
3941 }
3942 public Builder SetOptionalSfixed64(long value) {
3943 result.hasOptionalSfixed64 = true;
3944 result.optionalSfixed64_ = value;
3945 return this;
3946 }
3947 public Builder ClearOptionalSfixed64() {
3948 result.hasOptionalSfixed64 = false;
3949 result.optionalSfixed64_ = 0;
3950 return this;
3951 }
3952
3953 public bool HasOptionalFloat {
3954 get { return result.HasOptionalFloat; }
3955 }
3956 public float OptionalFloat {
3957 get { return result.OptionalFloat; }
3958 set { SetOptionalFloat(value); }
3959 }
3960 public Builder SetOptionalFloat(float value) {
3961 result.hasOptionalFloat = true;
3962 result.optionalFloat_ = value;
3963 return this;
3964 }
3965 public Builder ClearOptionalFloat() {
3966 result.hasOptionalFloat = false;
3967 result.optionalFloat_ = 0F;
3968 return this;
3969 }
3970
3971 public bool HasOptionalDouble {
3972 get { return result.HasOptionalDouble; }
3973 }
3974 public double OptionalDouble {
3975 get { return result.OptionalDouble; }
3976 set { SetOptionalDouble(value); }
3977 }
3978 public Builder SetOptionalDouble(double value) {
3979 result.hasOptionalDouble = true;
3980 result.optionalDouble_ = value;
3981 return this;
3982 }
3983 public Builder ClearOptionalDouble() {
3984 result.hasOptionalDouble = false;
3985 result.optionalDouble_ = 0D;
3986 return this;
3987 }
3988
3989 public bool HasOptionalBool {
3990 get { return result.HasOptionalBool; }
3991 }
3992 public bool OptionalBool {
3993 get { return result.OptionalBool; }
3994 set { SetOptionalBool(value); }
3995 }
3996 public Builder SetOptionalBool(bool value) {
3997 result.hasOptionalBool = true;
3998 result.optionalBool_ = value;
3999 return this;
4000 }
4001 public Builder ClearOptionalBool() {
4002 result.hasOptionalBool = false;
4003 result.optionalBool_ = false;
4004 return this;
4005 }
4006
4007 public bool HasOptionalString {
4008 get { return result.HasOptionalString; }
4009 }
4010 public string OptionalString {
4011 get { return result.OptionalString; }
4012 set { SetOptionalString(value); }
4013 }
4014 public Builder SetOptionalString(string value) {
4015 pb::ThrowHelper.ThrowIfNull(value, "value");
4016 result.hasOptionalString = true;
4017 result.optionalString_ = value;
4018 return this;
4019 }
4020 public Builder ClearOptionalString() {
4021 result.hasOptionalString = false;
4022 result.optionalString_ = "";
4023 return this;
4024 }
4025
4026 public bool HasOptionalBytes {
4027 get { return result.HasOptionalBytes; }
4028 }
4029 public pb::ByteString OptionalBytes {
4030 get { return result.OptionalBytes; }
4031 set { SetOptionalBytes(value); }
4032 }
4033 public Builder SetOptionalBytes(pb::ByteString value) {
4034 pb::ThrowHelper.ThrowIfNull(value, "value");
4035 result.hasOptionalBytes = true;
4036 result.optionalBytes_ = value;
4037 return this;
4038 }
4039 public Builder ClearOptionalBytes() {
4040 result.hasOptionalBytes = false;
4041 result.optionalBytes_ = pb::ByteString.Empty;
4042 return this;
4043 }
4044
4045 public bool HasOptionalGroup {
4046 get { return result.HasOptionalGroup; }
4047 }
4048 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
4049 get { return result.OptionalGroup; }
4050 set { SetOptionalGroup(value); }
4051 }
4052 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
4053 pb::ThrowHelper.ThrowIfNull(value, "value");
4054 result.hasOptionalGroup = true;
4055 result.optionalGroup_ = value;
4056 return this;
4057 }
4058 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
4059 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4060 result.hasOptionalGroup = true;
4061 result.optionalGroup_ = builderForValue.Build();
4062 return this;
4063 }
4064 public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
4065 pb::ThrowHelper.ThrowIfNull(value, "value");
4066 if (result.HasOptionalGroup &&
4067 result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
4068 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
4069 } else {
4070 result.optionalGroup_ = value;
4071 }
4072 result.hasOptionalGroup = true;
4073 return this;
4074 }
4075 public Builder ClearOptionalGroup() {
4076 result.hasOptionalGroup = false;
4077 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
4078 return this;
4079 }
4080
4081 public bool HasOptionalNestedMessage {
4082 get { return result.HasOptionalNestedMessage; }
4083 }
4084 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
4085 get { return result.OptionalNestedMessage; }
4086 set { SetOptionalNestedMessage(value); }
4087 }
4088 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4089 pb::ThrowHelper.ThrowIfNull(value, "value");
4090 result.hasOptionalNestedMessage = true;
4091 result.optionalNestedMessage_ = value;
4092 return this;
4093 }
4094 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4095 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4096 result.hasOptionalNestedMessage = true;
4097 result.optionalNestedMessage_ = builderForValue.Build();
4098 return this;
4099 }
4100 public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4101 pb::ThrowHelper.ThrowIfNull(value, "value");
4102 if (result.HasOptionalNestedMessage &&
4103 result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
4104 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
4105 } else {
4106 result.optionalNestedMessage_ = value;
4107 }
4108 result.hasOptionalNestedMessage = true;
4109 return this;
4110 }
4111 public Builder ClearOptionalNestedMessage() {
4112 result.hasOptionalNestedMessage = false;
4113 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
4114 return this;
4115 }
4116
4117 public bool HasOptionalForeignMessage {
4118 get { return result.HasOptionalForeignMessage; }
4119 }
4120 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
4121 get { return result.OptionalForeignMessage; }
4122 set { SetOptionalForeignMessage(value); }
4123 }
4124 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4125 pb::ThrowHelper.ThrowIfNull(value, "value");
4126 result.hasOptionalForeignMessage = true;
4127 result.optionalForeignMessage_ = value;
4128 return this;
4129 }
4130 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4131 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4132 result.hasOptionalForeignMessage = true;
4133 result.optionalForeignMessage_ = builderForValue.Build();
4134 return this;
4135 }
4136 public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4137 pb::ThrowHelper.ThrowIfNull(value, "value");
4138 if (result.HasOptionalForeignMessage &&
4139 result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
4140 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
4141 } else {
4142 result.optionalForeignMessage_ = value;
4143 }
4144 result.hasOptionalForeignMessage = true;
4145 return this;
4146 }
4147 public Builder ClearOptionalForeignMessage() {
4148 result.hasOptionalForeignMessage = false;
4149 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
4150 return this;
4151 }
4152
4153 public bool HasOptionalImportMessage {
4154 get { return result.HasOptionalImportMessage; }
4155 }
4156 public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
4157 get { return result.OptionalImportMessage; }
4158 set { SetOptionalImportMessage(value); }
4159 }
4160 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4161 pb::ThrowHelper.ThrowIfNull(value, "value");
4162 result.hasOptionalImportMessage = true;
4163 result.optionalImportMessage_ = value;
4164 return this;
4165 }
4166 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4167 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4168 result.hasOptionalImportMessage = true;
4169 result.optionalImportMessage_ = builderForValue.Build();
4170 return this;
4171 }
4172 public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4173 pb::ThrowHelper.ThrowIfNull(value, "value");
4174 if (result.HasOptionalImportMessage &&
4175 result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
4176 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
4177 } else {
4178 result.optionalImportMessage_ = value;
4179 }
4180 result.hasOptionalImportMessage = true;
4181 return this;
4182 }
4183 public Builder ClearOptionalImportMessage() {
4184 result.hasOptionalImportMessage = false;
4185 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
4186 return this;
4187 }
4188
4189 public bool HasOptionalNestedEnum {
4190 get { return result.HasOptionalNestedEnum; }
4191 }
4192 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
4193 get { return result.OptionalNestedEnum; }
4194 set { SetOptionalNestedEnum(value); }
4195 }
4196 public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4197 result.hasOptionalNestedEnum = true;
4198 result.optionalNestedEnum_ = value;
4199 return this;
4200 }
4201 public Builder ClearOptionalNestedEnum() {
4202 result.hasOptionalNestedEnum = false;
4203 result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
4204 return this;
4205 }
4206
4207 public bool HasOptionalForeignEnum {
4208 get { return result.HasOptionalForeignEnum; }
4209 }
4210 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
4211 get { return result.OptionalForeignEnum; }
4212 set { SetOptionalForeignEnum(value); }
4213 }
4214 public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4215 result.hasOptionalForeignEnum = true;
4216 result.optionalForeignEnum_ = value;
4217 return this;
4218 }
4219 public Builder ClearOptionalForeignEnum() {
4220 result.hasOptionalForeignEnum = false;
4221 result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
4222 return this;
4223 }
4224
4225 public bool HasOptionalImportEnum {
4226 get { return result.HasOptionalImportEnum; }
4227 }
4228 public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
4229 get { return result.OptionalImportEnum; }
4230 set { SetOptionalImportEnum(value); }
4231 }
4232 public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4233 result.hasOptionalImportEnum = true;
4234 result.optionalImportEnum_ = value;
4235 return this;
4236 }
4237 public Builder ClearOptionalImportEnum() {
4238 result.hasOptionalImportEnum = false;
4239 result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
4240 return this;
4241 }
4242
4243 public bool HasOptionalStringPiece {
4244 get { return result.HasOptionalStringPiece; }
4245 }
4246 public string OptionalStringPiece {
4247 get { return result.OptionalStringPiece; }
4248 set { SetOptionalStringPiece(value); }
4249 }
4250 public Builder SetOptionalStringPiece(string value) {
4251 pb::ThrowHelper.ThrowIfNull(value, "value");
4252 result.hasOptionalStringPiece = true;
4253 result.optionalStringPiece_ = value;
4254 return this;
4255 }
4256 public Builder ClearOptionalStringPiece() {
4257 result.hasOptionalStringPiece = false;
4258 result.optionalStringPiece_ = "";
4259 return this;
4260 }
4261
4262 public bool HasOptionalCord {
4263 get { return result.HasOptionalCord; }
4264 }
4265 public string OptionalCord {
4266 get { return result.OptionalCord; }
4267 set { SetOptionalCord(value); }
4268 }
4269 public Builder SetOptionalCord(string value) {
4270 pb::ThrowHelper.ThrowIfNull(value, "value");
4271 result.hasOptionalCord = true;
4272 result.optionalCord_ = value;
4273 return this;
4274 }
4275 public Builder ClearOptionalCord() {
4276 result.hasOptionalCord = false;
4277 result.optionalCord_ = "";
4278 return this;
4279 }
4280
4281 public pbc::IPopsicleList<int> RepeatedInt32List {
4282 get { return result.repeatedInt32_; }
4283 }
4284 public int RepeatedInt32Count {
4285 get { return result.RepeatedInt32Count; }
4286 }
4287 public int GetRepeatedInt32(int index) {
4288 return result.GetRepeatedInt32(index);
4289 }
4290 public Builder SetRepeatedInt32(int index, int value) {
4291 result.repeatedInt32_[index] = value;
4292 return this;
4293 }
4294 public Builder AddRepeatedInt32(int value) {
4295 result.repeatedInt32_.Add(value);
4296 return this;
4297 }
4298 public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
4299 base.AddRange(values, result.repeatedInt32_);
4300 return this;
4301 }
4302 public Builder ClearRepeatedInt32() {
4303 result.repeatedInt32_.Clear();
4304 return this;
4305 }
4306
4307 public pbc::IPopsicleList<long> RepeatedInt64List {
4308 get { return result.repeatedInt64_; }
4309 }
4310 public int RepeatedInt64Count {
4311 get { return result.RepeatedInt64Count; }
4312 }
4313 public long GetRepeatedInt64(int index) {
4314 return result.GetRepeatedInt64(index);
4315 }
4316 public Builder SetRepeatedInt64(int index, long value) {
4317 result.repeatedInt64_[index] = value;
4318 return this;
4319 }
4320 public Builder AddRepeatedInt64(long value) {
4321 result.repeatedInt64_.Add(value);
4322 return this;
4323 }
4324 public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
4325 base.AddRange(values, result.repeatedInt64_);
4326 return this;
4327 }
4328 public Builder ClearRepeatedInt64() {
4329 result.repeatedInt64_.Clear();
4330 return this;
4331 }
4332
4333 [global::System.CLSCompliant(false)]
4334 public pbc::IPopsicleList<uint> RepeatedUint32List {
4335 get { return result.repeatedUint32_; }
4336 }
4337 public int RepeatedUint32Count {
4338 get { return result.RepeatedUint32Count; }
4339 }
4340 [global::System.CLSCompliant(false)]
4341 public uint GetRepeatedUint32(int index) {
4342 return result.GetRepeatedUint32(index);
4343 }
4344 [global::System.CLSCompliant(false)]
4345 public Builder SetRepeatedUint32(int index, uint value) {
4346 result.repeatedUint32_[index] = value;
4347 return this;
4348 }
4349 [global::System.CLSCompliant(false)]
4350 public Builder AddRepeatedUint32(uint value) {
4351 result.repeatedUint32_.Add(value);
4352 return this;
4353 }
4354 [global::System.CLSCompliant(false)]
4355 public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
4356 base.AddRange(values, result.repeatedUint32_);
4357 return this;
4358 }
4359 public Builder ClearRepeatedUint32() {
4360 result.repeatedUint32_.Clear();
4361 return this;
4362 }
4363
4364 [global::System.CLSCompliant(false)]
4365 public pbc::IPopsicleList<ulong> RepeatedUint64List {
4366 get { return result.repeatedUint64_; }
4367 }
4368 public int RepeatedUint64Count {
4369 get { return result.RepeatedUint64Count; }
4370 }
4371 [global::System.CLSCompliant(false)]
4372 public ulong GetRepeatedUint64(int index) {
4373 return result.GetRepeatedUint64(index);
4374 }
4375 [global::System.CLSCompliant(false)]
4376 public Builder SetRepeatedUint64(int index, ulong value) {
4377 result.repeatedUint64_[index] = value;
4378 return this;
4379 }
4380 [global::System.CLSCompliant(false)]
4381 public Builder AddRepeatedUint64(ulong value) {
4382 result.repeatedUint64_.Add(value);
4383 return this;
4384 }
4385 [global::System.CLSCompliant(false)]
4386 public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
4387 base.AddRange(values, result.repeatedUint64_);
4388 return this;
4389 }
4390 public Builder ClearRepeatedUint64() {
4391 result.repeatedUint64_.Clear();
4392 return this;
4393 }
4394
4395 public pbc::IPopsicleList<int> RepeatedSint32List {
4396 get { return result.repeatedSint32_; }
4397 }
4398 public int RepeatedSint32Count {
4399 get { return result.RepeatedSint32Count; }
4400 }
4401 public int GetRepeatedSint32(int index) {
4402 return result.GetRepeatedSint32(index);
4403 }
4404 public Builder SetRepeatedSint32(int index, int value) {
4405 result.repeatedSint32_[index] = value;
4406 return this;
4407 }
4408 public Builder AddRepeatedSint32(int value) {
4409 result.repeatedSint32_.Add(value);
4410 return this;
4411 }
4412 public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
4413 base.AddRange(values, result.repeatedSint32_);
4414 return this;
4415 }
4416 public Builder ClearRepeatedSint32() {
4417 result.repeatedSint32_.Clear();
4418 return this;
4419 }
4420
4421 public pbc::IPopsicleList<long> RepeatedSint64List {
4422 get { return result.repeatedSint64_; }
4423 }
4424 public int RepeatedSint64Count {
4425 get { return result.RepeatedSint64Count; }
4426 }
4427 public long GetRepeatedSint64(int index) {
4428 return result.GetRepeatedSint64(index);
4429 }
4430 public Builder SetRepeatedSint64(int index, long value) {
4431 result.repeatedSint64_[index] = value;
4432 return this;
4433 }
4434 public Builder AddRepeatedSint64(long value) {
4435 result.repeatedSint64_.Add(value);
4436 return this;
4437 }
4438 public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
4439 base.AddRange(values, result.repeatedSint64_);
4440 return this;
4441 }
4442 public Builder ClearRepeatedSint64() {
4443 result.repeatedSint64_.Clear();
4444 return this;
4445 }
4446
4447 [global::System.CLSCompliant(false)]
4448 public pbc::IPopsicleList<uint> RepeatedFixed32List {
4449 get { return result.repeatedFixed32_; }
4450 }
4451 public int RepeatedFixed32Count {
4452 get { return result.RepeatedFixed32Count; }
4453 }
4454 [global::System.CLSCompliant(false)]
4455 public uint GetRepeatedFixed32(int index) {
4456 return result.GetRepeatedFixed32(index);
4457 }
4458 [global::System.CLSCompliant(false)]
4459 public Builder SetRepeatedFixed32(int index, uint value) {
4460 result.repeatedFixed32_[index] = value;
4461 return this;
4462 }
4463 [global::System.CLSCompliant(false)]
4464 public Builder AddRepeatedFixed32(uint value) {
4465 result.repeatedFixed32_.Add(value);
4466 return this;
4467 }
4468 [global::System.CLSCompliant(false)]
4469 public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
4470 base.AddRange(values, result.repeatedFixed32_);
4471 return this;
4472 }
4473 public Builder ClearRepeatedFixed32() {
4474 result.repeatedFixed32_.Clear();
4475 return this;
4476 }
4477
4478 [global::System.CLSCompliant(false)]
4479 public pbc::IPopsicleList<ulong> RepeatedFixed64List {
4480 get { return result.repeatedFixed64_; }
4481 }
4482 public int RepeatedFixed64Count {
4483 get { return result.RepeatedFixed64Count; }
4484 }
4485 [global::System.CLSCompliant(false)]
4486 public ulong GetRepeatedFixed64(int index) {
4487 return result.GetRepeatedFixed64(index);
4488 }
4489 [global::System.CLSCompliant(false)]
4490 public Builder SetRepeatedFixed64(int index, ulong value) {
4491 result.repeatedFixed64_[index] = value;
4492 return this;
4493 }
4494 [global::System.CLSCompliant(false)]
4495 public Builder AddRepeatedFixed64(ulong value) {
4496 result.repeatedFixed64_.Add(value);
4497 return this;
4498 }
4499 [global::System.CLSCompliant(false)]
4500 public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
4501 base.AddRange(values, result.repeatedFixed64_);
4502 return this;
4503 }
4504 public Builder ClearRepeatedFixed64() {
4505 result.repeatedFixed64_.Clear();
4506 return this;
4507 }
4508
4509 public pbc::IPopsicleList<int> RepeatedSfixed32List {
4510 get { return result.repeatedSfixed32_; }
4511 }
4512 public int RepeatedSfixed32Count {
4513 get { return result.RepeatedSfixed32Count; }
4514 }
4515 public int GetRepeatedSfixed32(int index) {
4516 return result.GetRepeatedSfixed32(index);
4517 }
4518 public Builder SetRepeatedSfixed32(int index, int value) {
4519 result.repeatedSfixed32_[index] = value;
4520 return this;
4521 }
4522 public Builder AddRepeatedSfixed32(int value) {
4523 result.repeatedSfixed32_.Add(value);
4524 return this;
4525 }
4526 public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
4527 base.AddRange(values, result.repeatedSfixed32_);
4528 return this;
4529 }
4530 public Builder ClearRepeatedSfixed32() {
4531 result.repeatedSfixed32_.Clear();
4532 return this;
4533 }
4534
4535 public pbc::IPopsicleList<long> RepeatedSfixed64List {
4536 get { return result.repeatedSfixed64_; }
4537 }
4538 public int RepeatedSfixed64Count {
4539 get { return result.RepeatedSfixed64Count; }
4540 }
4541 public long GetRepeatedSfixed64(int index) {
4542 return result.GetRepeatedSfixed64(index);
4543 }
4544 public Builder SetRepeatedSfixed64(int index, long value) {
4545 result.repeatedSfixed64_[index] = value;
4546 return this;
4547 }
4548 public Builder AddRepeatedSfixed64(long value) {
4549 result.repeatedSfixed64_.Add(value);
4550 return this;
4551 }
4552 public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
4553 base.AddRange(values, result.repeatedSfixed64_);
4554 return this;
4555 }
4556 public Builder ClearRepeatedSfixed64() {
4557 result.repeatedSfixed64_.Clear();
4558 return this;
4559 }
4560
4561 public pbc::IPopsicleList<float> RepeatedFloatList {
4562 get { return result.repeatedFloat_; }
4563 }
4564 public int RepeatedFloatCount {
4565 get { return result.RepeatedFloatCount; }
4566 }
4567 public float GetRepeatedFloat(int index) {
4568 return result.GetRepeatedFloat(index);
4569 }
4570 public Builder SetRepeatedFloat(int index, float value) {
4571 result.repeatedFloat_[index] = value;
4572 return this;
4573 }
4574 public Builder AddRepeatedFloat(float value) {
4575 result.repeatedFloat_.Add(value);
4576 return this;
4577 }
4578 public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
4579 base.AddRange(values, result.repeatedFloat_);
4580 return this;
4581 }
4582 public Builder ClearRepeatedFloat() {
4583 result.repeatedFloat_.Clear();
4584 return this;
4585 }
4586
4587 public pbc::IPopsicleList<double> RepeatedDoubleList {
4588 get { return result.repeatedDouble_; }
4589 }
4590 public int RepeatedDoubleCount {
4591 get { return result.RepeatedDoubleCount; }
4592 }
4593 public double GetRepeatedDouble(int index) {
4594 return result.GetRepeatedDouble(index);
4595 }
4596 public Builder SetRepeatedDouble(int index, double value) {
4597 result.repeatedDouble_[index] = value;
4598 return this;
4599 }
4600 public Builder AddRepeatedDouble(double value) {
4601 result.repeatedDouble_.Add(value);
4602 return this;
4603 }
4604 public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
4605 base.AddRange(values, result.repeatedDouble_);
4606 return this;
4607 }
4608 public Builder ClearRepeatedDouble() {
4609 result.repeatedDouble_.Clear();
4610 return this;
4611 }
4612
4613 public pbc::IPopsicleList<bool> RepeatedBoolList {
4614 get { return result.repeatedBool_; }
4615 }
4616 public int RepeatedBoolCount {
4617 get { return result.RepeatedBoolCount; }
4618 }
4619 public bool GetRepeatedBool(int index) {
4620 return result.GetRepeatedBool(index);
4621 }
4622 public Builder SetRepeatedBool(int index, bool value) {
4623 result.repeatedBool_[index] = value;
4624 return this;
4625 }
4626 public Builder AddRepeatedBool(bool value) {
4627 result.repeatedBool_.Add(value);
4628 return this;
4629 }
4630 public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
4631 base.AddRange(values, result.repeatedBool_);
4632 return this;
4633 }
4634 public Builder ClearRepeatedBool() {
4635 result.repeatedBool_.Clear();
4636 return this;
4637 }
4638
4639 public pbc::IPopsicleList<string> RepeatedStringList {
4640 get { return result.repeatedString_; }
4641 }
4642 public int RepeatedStringCount {
4643 get { return result.RepeatedStringCount; }
4644 }
4645 public string GetRepeatedString(int index) {
4646 return result.GetRepeatedString(index);
4647 }
4648 public Builder SetRepeatedString(int index, string value) {
4649 pb::ThrowHelper.ThrowIfNull(value, "value");
4650 result.repeatedString_[index] = value;
4651 return this;
4652 }
4653 public Builder AddRepeatedString(string value) {
4654 pb::ThrowHelper.ThrowIfNull(value, "value");
4655 result.repeatedString_.Add(value);
4656 return this;
4657 }
4658 public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
4659 base.AddRange(values, result.repeatedString_);
4660 return this;
4661 }
4662 public Builder ClearRepeatedString() {
4663 result.repeatedString_.Clear();
4664 return this;
4665 }
4666
4667 public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
4668 get { return result.repeatedBytes_; }
4669 }
4670 public int RepeatedBytesCount {
4671 get { return result.RepeatedBytesCount; }
4672 }
4673 public pb::ByteString GetRepeatedBytes(int index) {
4674 return result.GetRepeatedBytes(index);
4675 }
4676 public Builder SetRepeatedBytes(int index, pb::ByteString value) {
4677 pb::ThrowHelper.ThrowIfNull(value, "value");
4678 result.repeatedBytes_[index] = value;
4679 return this;
4680 }
4681 public Builder AddRepeatedBytes(pb::ByteString value) {
4682 pb::ThrowHelper.ThrowIfNull(value, "value");
4683 result.repeatedBytes_.Add(value);
4684 return this;
4685 }
4686 public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
4687 base.AddRange(values, result.repeatedBytes_);
4688 return this;
4689 }
4690 public Builder ClearRepeatedBytes() {
4691 result.repeatedBytes_.Clear();
4692 return this;
4693 }
4694
4695 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
4696 get { return result.repeatedGroup_; }
4697 }
4698 public int RepeatedGroupCount {
4699 get { return result.RepeatedGroupCount; }
4700 }
4701 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
4702 return result.GetRepeatedGroup(index);
4703 }
4704 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
4705 pb::ThrowHelper.ThrowIfNull(value, "value");
4706 result.repeatedGroup_[index] = value;
4707 return this;
4708 }
4709 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
4710 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4711 result.repeatedGroup_[index] = builderForValue.Build();
4712 return this;
4713 }
4714 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
4715 pb::ThrowHelper.ThrowIfNull(value, "value");
4716 result.repeatedGroup_.Add(value);
4717 return this;
4718 }
4719 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
4720 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4721 result.repeatedGroup_.Add(builderForValue.Build());
4722 return this;
4723 }
4724 public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
4725 base.AddRange(values, result.repeatedGroup_);
4726 return this;
4727 }
4728 public Builder ClearRepeatedGroup() {
4729 result.repeatedGroup_.Clear();
4730 return this;
4731 }
4732
4733 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
4734 get { return result.repeatedNestedMessage_; }
4735 }
4736 public int RepeatedNestedMessageCount {
4737 get { return result.RepeatedNestedMessageCount; }
4738 }
4739 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
4740 return result.GetRepeatedNestedMessage(index);
4741 }
4742 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4743 pb::ThrowHelper.ThrowIfNull(value, "value");
4744 result.repeatedNestedMessage_[index] = value;
4745 return this;
4746 }
4747 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4748 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4749 result.repeatedNestedMessage_[index] = builderForValue.Build();
4750 return this;
4751 }
4752 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
4753 pb::ThrowHelper.ThrowIfNull(value, "value");
4754 result.repeatedNestedMessage_.Add(value);
4755 return this;
4756 }
4757 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
4758 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4759 result.repeatedNestedMessage_.Add(builderForValue.Build());
4760 return this;
4761 }
4762 public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
4763 base.AddRange(values, result.repeatedNestedMessage_);
4764 return this;
4765 }
4766 public Builder ClearRepeatedNestedMessage() {
4767 result.repeatedNestedMessage_.Clear();
4768 return this;
4769 }
4770
4771 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
4772 get { return result.repeatedForeignMessage_; }
4773 }
4774 public int RepeatedForeignMessageCount {
4775 get { return result.RepeatedForeignMessageCount; }
4776 }
4777 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
4778 return result.GetRepeatedForeignMessage(index);
4779 }
4780 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4781 pb::ThrowHelper.ThrowIfNull(value, "value");
4782 result.repeatedForeignMessage_[index] = value;
4783 return this;
4784 }
4785 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4786 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4787 result.repeatedForeignMessage_[index] = builderForValue.Build();
4788 return this;
4789 }
4790 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
4791 pb::ThrowHelper.ThrowIfNull(value, "value");
4792 result.repeatedForeignMessage_.Add(value);
4793 return this;
4794 }
4795 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
4796 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4797 result.repeatedForeignMessage_.Add(builderForValue.Build());
4798 return this;
4799 }
4800 public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
4801 base.AddRange(values, result.repeatedForeignMessage_);
4802 return this;
4803 }
4804 public Builder ClearRepeatedForeignMessage() {
4805 result.repeatedForeignMessage_.Clear();
4806 return this;
4807 }
4808
4809 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
4810 get { return result.repeatedImportMessage_; }
4811 }
4812 public int RepeatedImportMessageCount {
4813 get { return result.RepeatedImportMessageCount; }
4814 }
4815 public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
4816 return result.GetRepeatedImportMessage(index);
4817 }
4818 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4819 pb::ThrowHelper.ThrowIfNull(value, "value");
4820 result.repeatedImportMessage_[index] = value;
4821 return this;
4822 }
4823 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4824 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4825 result.repeatedImportMessage_[index] = builderForValue.Build();
4826 return this;
4827 }
4828 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
4829 pb::ThrowHelper.ThrowIfNull(value, "value");
4830 result.repeatedImportMessage_.Add(value);
4831 return this;
4832 }
4833 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
4834 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4835 result.repeatedImportMessage_.Add(builderForValue.Build());
4836 return this;
4837 }
4838 public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
4839 base.AddRange(values, result.repeatedImportMessage_);
4840 return this;
4841 }
4842 public Builder ClearRepeatedImportMessage() {
4843 result.repeatedImportMessage_.Clear();
4844 return this;
4845 }
4846
4847 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
4848 get { return result.repeatedNestedEnum_; }
4849 }
4850 public int RepeatedNestedEnumCount {
4851 get { return result.RepeatedNestedEnumCount; }
4852 }
4853 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
4854 return result.GetRepeatedNestedEnum(index);
4855 }
4856 public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4857 result.repeatedNestedEnum_[index] = value;
4858 return this;
4859 }
4860 public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
4861 result.repeatedNestedEnum_.Add(value);
4862 return this;
4863 }
4864 public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
4865 base.AddRange(values, result.repeatedNestedEnum_);
4866 return this;
4867 }
4868 public Builder ClearRepeatedNestedEnum() {
4869 result.repeatedNestedEnum_.Clear();
4870 return this;
4871 }
4872
4873 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
4874 get { return result.repeatedForeignEnum_; }
4875 }
4876 public int RepeatedForeignEnumCount {
4877 get { return result.RepeatedForeignEnumCount; }
4878 }
4879 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
4880 return result.GetRepeatedForeignEnum(index);
4881 }
4882 public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4883 result.repeatedForeignEnum_[index] = value;
4884 return this;
4885 }
4886 public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
4887 result.repeatedForeignEnum_.Add(value);
4888 return this;
4889 }
4890 public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
4891 base.AddRange(values, result.repeatedForeignEnum_);
4892 return this;
4893 }
4894 public Builder ClearRepeatedForeignEnum() {
4895 result.repeatedForeignEnum_.Clear();
4896 return this;
4897 }
4898
4899 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
4900 get { return result.repeatedImportEnum_; }
4901 }
4902 public int RepeatedImportEnumCount {
4903 get { return result.RepeatedImportEnumCount; }
4904 }
4905 public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
4906 return result.GetRepeatedImportEnum(index);
4907 }
4908 public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4909 result.repeatedImportEnum_[index] = value;
4910 return this;
4911 }
4912 public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
4913 result.repeatedImportEnum_.Add(value);
4914 return this;
4915 }
4916 public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
4917 base.AddRange(values, result.repeatedImportEnum_);
4918 return this;
4919 }
4920 public Builder ClearRepeatedImportEnum() {
4921 result.repeatedImportEnum_.Clear();
4922 return this;
4923 }
4924
4925 public pbc::IPopsicleList<string> RepeatedStringPieceList {
4926 get { return result.repeatedStringPiece_; }
4927 }
4928 public int RepeatedStringPieceCount {
4929 get { return result.RepeatedStringPieceCount; }
4930 }
4931 public string GetRepeatedStringPiece(int index) {
4932 return result.GetRepeatedStringPiece(index);
4933 }
4934 public Builder SetRepeatedStringPiece(int index, string value) {
4935 pb::ThrowHelper.ThrowIfNull(value, "value");
4936 result.repeatedStringPiece_[index] = value;
4937 return this;
4938 }
4939 public Builder AddRepeatedStringPiece(string value) {
4940 pb::ThrowHelper.ThrowIfNull(value, "value");
4941 result.repeatedStringPiece_.Add(value);
4942 return this;
4943 }
4944 public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
4945 base.AddRange(values, result.repeatedStringPiece_);
4946 return this;
4947 }
4948 public Builder ClearRepeatedStringPiece() {
4949 result.repeatedStringPiece_.Clear();
4950 return this;
4951 }
4952
4953 public pbc::IPopsicleList<string> RepeatedCordList {
4954 get { return result.repeatedCord_; }
4955 }
4956 public int RepeatedCordCount {
4957 get { return result.RepeatedCordCount; }
4958 }
4959 public string GetRepeatedCord(int index) {
4960 return result.GetRepeatedCord(index);
4961 }
4962 public Builder SetRepeatedCord(int index, string value) {
4963 pb::ThrowHelper.ThrowIfNull(value, "value");
4964 result.repeatedCord_[index] = value;
4965 return this;
4966 }
4967 public Builder AddRepeatedCord(string value) {
4968 pb::ThrowHelper.ThrowIfNull(value, "value");
4969 result.repeatedCord_.Add(value);
4970 return this;
4971 }
4972 public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
4973 base.AddRange(values, result.repeatedCord_);
4974 return this;
4975 }
4976 public Builder ClearRepeatedCord() {
4977 result.repeatedCord_.Clear();
4978 return this;
4979 }
4980
4981 public bool HasDefaultInt32 {
4982 get { return result.HasDefaultInt32; }
4983 }
4984 public int DefaultInt32 {
4985 get { return result.DefaultInt32; }
4986 set { SetDefaultInt32(value); }
4987 }
4988 public Builder SetDefaultInt32(int value) {
4989 result.hasDefaultInt32 = true;
4990 result.defaultInt32_ = value;
4991 return this;
4992 }
4993 public Builder ClearDefaultInt32() {
4994 result.hasDefaultInt32 = false;
4995 result.defaultInt32_ = 41;
4996 return this;
4997 }
4998
4999 public bool HasDefaultInt64 {
5000 get { return result.HasDefaultInt64; }
5001 }
5002 public long DefaultInt64 {
5003 get { return result.DefaultInt64; }
5004 set { SetDefaultInt64(value); }
5005 }
5006 public Builder SetDefaultInt64(long value) {
5007 result.hasDefaultInt64 = true;
5008 result.defaultInt64_ = value;
5009 return this;
5010 }
5011 public Builder ClearDefaultInt64() {
5012 result.hasDefaultInt64 = false;
5013 result.defaultInt64_ = 42L;
5014 return this;
5015 }
5016
5017 public bool HasDefaultUint32 {
5018 get { return result.HasDefaultUint32; }
5019 }
5020 [global::System.CLSCompliant(false)]
5021 public uint DefaultUint32 {
5022 get { return result.DefaultUint32; }
5023 set { SetDefaultUint32(value); }
5024 }
5025 [global::System.CLSCompliant(false)]
5026 public Builder SetDefaultUint32(uint value) {
5027 result.hasDefaultUint32 = true;
5028 result.defaultUint32_ = value;
5029 return this;
5030 }
5031 public Builder ClearDefaultUint32() {
5032 result.hasDefaultUint32 = false;
5033 result.defaultUint32_ = 43;
5034 return this;
5035 }
5036
5037 public bool HasDefaultUint64 {
5038 get { return result.HasDefaultUint64; }
5039 }
5040 [global::System.CLSCompliant(false)]
5041 public ulong DefaultUint64 {
5042 get { return result.DefaultUint64; }
5043 set { SetDefaultUint64(value); }
5044 }
5045 [global::System.CLSCompliant(false)]
5046 public Builder SetDefaultUint64(ulong value) {
5047 result.hasDefaultUint64 = true;
5048 result.defaultUint64_ = value;
5049 return this;
5050 }
5051 public Builder ClearDefaultUint64() {
5052 result.hasDefaultUint64 = false;
5053 result.defaultUint64_ = 44UL;
5054 return this;
5055 }
5056
5057 public bool HasDefaultSint32 {
5058 get { return result.HasDefaultSint32; }
5059 }
5060 public int DefaultSint32 {
5061 get { return result.DefaultSint32; }
5062 set { SetDefaultSint32(value); }
5063 }
5064 public Builder SetDefaultSint32(int value) {
5065 result.hasDefaultSint32 = true;
5066 result.defaultSint32_ = value;
5067 return this;
5068 }
5069 public Builder ClearDefaultSint32() {
5070 result.hasDefaultSint32 = false;
5071 result.defaultSint32_ = -45;
5072 return this;
5073 }
5074
5075 public bool HasDefaultSint64 {
5076 get { return result.HasDefaultSint64; }
5077 }
5078 public long DefaultSint64 {
5079 get { return result.DefaultSint64; }
5080 set { SetDefaultSint64(value); }
5081 }
5082 public Builder SetDefaultSint64(long value) {
5083 result.hasDefaultSint64 = true;
5084 result.defaultSint64_ = value;
5085 return this;
5086 }
5087 public Builder ClearDefaultSint64() {
5088 result.hasDefaultSint64 = false;
5089 result.defaultSint64_ = 46;
5090 return this;
5091 }
5092
5093 public bool HasDefaultFixed32 {
5094 get { return result.HasDefaultFixed32; }
5095 }
5096 [global::System.CLSCompliant(false)]
5097 public uint DefaultFixed32 {
5098 get { return result.DefaultFixed32; }
5099 set { SetDefaultFixed32(value); }
5100 }
5101 [global::System.CLSCompliant(false)]
5102 public Builder SetDefaultFixed32(uint value) {
5103 result.hasDefaultFixed32 = true;
5104 result.defaultFixed32_ = value;
5105 return this;
5106 }
5107 public Builder ClearDefaultFixed32() {
5108 result.hasDefaultFixed32 = false;
5109 result.defaultFixed32_ = 47;
5110 return this;
5111 }
5112
5113 public bool HasDefaultFixed64 {
5114 get { return result.HasDefaultFixed64; }
5115 }
5116 [global::System.CLSCompliant(false)]
5117 public ulong DefaultFixed64 {
5118 get { return result.DefaultFixed64; }
5119 set { SetDefaultFixed64(value); }
5120 }
5121 [global::System.CLSCompliant(false)]
5122 public Builder SetDefaultFixed64(ulong value) {
5123 result.hasDefaultFixed64 = true;
5124 result.defaultFixed64_ = value;
5125 return this;
5126 }
5127 public Builder ClearDefaultFixed64() {
5128 result.hasDefaultFixed64 = false;
5129 result.defaultFixed64_ = 48;
5130 return this;
5131 }
5132
5133 public bool HasDefaultSfixed32 {
5134 get { return result.HasDefaultSfixed32; }
5135 }
5136 public int DefaultSfixed32 {
5137 get { return result.DefaultSfixed32; }
5138 set { SetDefaultSfixed32(value); }
5139 }
5140 public Builder SetDefaultSfixed32(int value) {
5141 result.hasDefaultSfixed32 = true;
5142 result.defaultSfixed32_ = value;
5143 return this;
5144 }
5145 public Builder ClearDefaultSfixed32() {
5146 result.hasDefaultSfixed32 = false;
5147 result.defaultSfixed32_ = 49;
5148 return this;
5149 }
5150
5151 public bool HasDefaultSfixed64 {
5152 get { return result.HasDefaultSfixed64; }
5153 }
5154 public long DefaultSfixed64 {
5155 get { return result.DefaultSfixed64; }
5156 set { SetDefaultSfixed64(value); }
5157 }
5158 public Builder SetDefaultSfixed64(long value) {
5159 result.hasDefaultSfixed64 = true;
5160 result.defaultSfixed64_ = value;
5161 return this;
5162 }
5163 public Builder ClearDefaultSfixed64() {
5164 result.hasDefaultSfixed64 = false;
5165 result.defaultSfixed64_ = -50;
5166 return this;
5167 }
5168
5169 public bool HasDefaultFloat {
5170 get { return result.HasDefaultFloat; }
5171 }
5172 public float DefaultFloat {
5173 get { return result.DefaultFloat; }
5174 set { SetDefaultFloat(value); }
5175 }
5176 public Builder SetDefaultFloat(float value) {
5177 result.hasDefaultFloat = true;
5178 result.defaultFloat_ = value;
5179 return this;
5180 }
5181 public Builder ClearDefaultFloat() {
5182 result.hasDefaultFloat = false;
5183 result.defaultFloat_ = 51.5F;
5184 return this;
5185 }
5186
5187 public bool HasDefaultDouble {
5188 get { return result.HasDefaultDouble; }
5189 }
5190 public double DefaultDouble {
5191 get { return result.DefaultDouble; }
5192 set { SetDefaultDouble(value); }
5193 }
5194 public Builder SetDefaultDouble(double value) {
5195 result.hasDefaultDouble = true;
5196 result.defaultDouble_ = value;
5197 return this;
5198 }
5199 public Builder ClearDefaultDouble() {
5200 result.hasDefaultDouble = false;
5201 result.defaultDouble_ = 52000D;
5202 return this;
5203 }
5204
5205 public bool HasDefaultBool {
5206 get { return result.HasDefaultBool; }
5207 }
5208 public bool DefaultBool {
5209 get { return result.DefaultBool; }
5210 set { SetDefaultBool(value); }
5211 }
5212 public Builder SetDefaultBool(bool value) {
5213 result.hasDefaultBool = true;
5214 result.defaultBool_ = value;
5215 return this;
5216 }
5217 public Builder ClearDefaultBool() {
5218 result.hasDefaultBool = false;
5219 result.defaultBool_ = true;
5220 return this;
5221 }
5222
5223 public bool HasDefaultString {
5224 get { return result.HasDefaultString; }
5225 }
5226 public string DefaultString {
5227 get { return result.DefaultString; }
5228 set { SetDefaultString(value); }
5229 }
5230 public Builder SetDefaultString(string value) {
5231 pb::ThrowHelper.ThrowIfNull(value, "value");
5232 result.hasDefaultString = true;
5233 result.defaultString_ = value;
5234 return this;
5235 }
5236 public Builder ClearDefaultString() {
5237 result.hasDefaultString = false;
5238 result.defaultString_ = "hello";
5239 return this;
5240 }
5241
5242 public bool HasDefaultBytes {
5243 get { return result.HasDefaultBytes; }
5244 }
5245 public pb::ByteString DefaultBytes {
5246 get { return result.DefaultBytes; }
5247 set { SetDefaultBytes(value); }
5248 }
5249 public Builder SetDefaultBytes(pb::ByteString value) {
5250 pb::ThrowHelper.ThrowIfNull(value, "value");
5251 result.hasDefaultBytes = true;
5252 result.defaultBytes_ = value;
5253 return this;
5254 }
5255 public Builder ClearDefaultBytes() {
5256 result.hasDefaultBytes = false;
5257 result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue;
5258 return this;
5259 }
5260
5261 public bool HasDefaultNestedEnum {
5262 get { return result.HasDefaultNestedEnum; }
5263 }
5264 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
5265 get { return result.DefaultNestedEnum; }
5266 set { SetDefaultNestedEnum(value); }
5267 }
5268 public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
5269 result.hasDefaultNestedEnum = true;
5270 result.defaultNestedEnum_ = value;
5271 return this;
5272 }
5273 public Builder ClearDefaultNestedEnum() {
5274 result.hasDefaultNestedEnum = false;
5275 result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
5276 return this;
5277 }
5278
5279 public bool HasDefaultForeignEnum {
5280 get { return result.HasDefaultForeignEnum; }
5281 }
5282 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
5283 get { return result.DefaultForeignEnum; }
5284 set { SetDefaultForeignEnum(value); }
5285 }
5286 public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
5287 result.hasDefaultForeignEnum = true;
5288 result.defaultForeignEnum_ = value;
5289 return this;
5290 }
5291 public Builder ClearDefaultForeignEnum() {
5292 result.hasDefaultForeignEnum = false;
5293 result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
5294 return this;
5295 }
5296
5297 public bool HasDefaultImportEnum {
5298 get { return result.HasDefaultImportEnum; }
5299 }
5300 public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
5301 get { return result.DefaultImportEnum; }
5302 set { SetDefaultImportEnum(value); }
5303 }
5304 public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
5305 result.hasDefaultImportEnum = true;
5306 result.defaultImportEnum_ = value;
5307 return this;
5308 }
5309 public Builder ClearDefaultImportEnum() {
5310 result.hasDefaultImportEnum = false;
5311 result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
5312 return this;
5313 }
5314
5315 public bool HasDefaultStringPiece {
5316 get { return result.HasDefaultStringPiece; }
5317 }
5318 public string DefaultStringPiece {
5319 get { return result.DefaultStringPiece; }
5320 set { SetDefaultStringPiece(value); }
5321 }
5322 public Builder SetDefaultStringPiece(string value) {
5323 pb::ThrowHelper.ThrowIfNull(value, "value");
5324 result.hasDefaultStringPiece = true;
5325 result.defaultStringPiece_ = value;
5326 return this;
5327 }
5328 public Builder ClearDefaultStringPiece() {
5329 result.hasDefaultStringPiece = false;
5330 result.defaultStringPiece_ = "abc";
5331 return this;
5332 }
5333
5334 public bool HasDefaultCord {
5335 get { return result.HasDefaultCord; }
5336 }
5337 public string DefaultCord {
5338 get { return result.DefaultCord; }
5339 set { SetDefaultCord(value); }
5340 }
5341 public Builder SetDefaultCord(string value) {
5342 pb::ThrowHelper.ThrowIfNull(value, "value");
5343 result.hasDefaultCord = true;
5344 result.defaultCord_ = value;
5345 return this;
5346 }
5347 public Builder ClearDefaultCord() {
5348 result.hasDefaultCord = false;
5349 result.defaultCord_ = "123";
5350 return this;
5351 }
5352 }
5353 static TestAllTypes() {
5354 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5355 }
5356 }
5357
csharptest445bdce2011-05-20 15:50:54 -05005358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5359 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5360 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005361 public sealed partial class TestDeprecatedFields : pb::GeneratedMessage<TestDeprecatedFields, TestDeprecatedFields.Builder> {
5362 private static readonly TestDeprecatedFields defaultInstance = new Builder().BuildPartial();
5363 public static TestDeprecatedFields DefaultInstance {
5364 get { return defaultInstance; }
5365 }
5366
5367 public override TestDeprecatedFields DefaultInstanceForType {
5368 get { return defaultInstance; }
5369 }
5370
5371 protected override TestDeprecatedFields ThisMessage {
5372 get { return this; }
5373 }
5374
5375 public static pbd::MessageDescriptor Descriptor {
5376 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor; }
5377 }
5378
5379 protected override pb::FieldAccess.FieldAccessorTable<TestDeprecatedFields, TestDeprecatedFields.Builder> InternalFieldAccessors {
5380 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
5381 }
5382
5383 public const int DeprecatedInt32FieldNumber = 1;
5384 private bool hasDeprecatedInt32;
5385 private int deprecatedInt32_ = 0;
5386 public bool HasDeprecatedInt32 {
5387 get { return hasDeprecatedInt32; }
5388 }
5389 public int DeprecatedInt32 {
5390 get { return deprecatedInt32_; }
5391 }
5392
5393 public override bool IsInitialized {
5394 get {
5395 return true;
5396 }
5397 }
5398
5399 public override void WriteTo(pb::CodedOutputStream output) {
5400 int size = SerializedSize;
5401 if (HasDeprecatedInt32) {
5402 output.WriteInt32(1, DeprecatedInt32);
5403 }
5404 UnknownFields.WriteTo(output);
5405 }
5406
5407 private int memoizedSerializedSize = -1;
5408 public override int SerializedSize {
5409 get {
5410 int size = memoizedSerializedSize;
5411 if (size != -1) return size;
5412
5413 size = 0;
5414 if (HasDeprecatedInt32) {
5415 size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedInt32);
5416 }
5417 size += UnknownFields.SerializedSize;
5418 memoizedSerializedSize = size;
5419 return size;
5420 }
5421 }
5422
5423 public static TestDeprecatedFields ParseFrom(pb::ByteString data) {
5424 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5425 }
5426 public static TestDeprecatedFields ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5427 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5428 }
5429 public static TestDeprecatedFields ParseFrom(byte[] data) {
5430 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5431 }
5432 public static TestDeprecatedFields ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5433 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5434 }
5435 public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input) {
5436 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5437 }
5438 public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5439 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5440 }
5441 public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input) {
5442 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5443 }
5444 public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5445 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5446 }
5447 public static TestDeprecatedFields ParseFrom(pb::CodedInputStream input) {
5448 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5449 }
5450 public static TestDeprecatedFields ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5451 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5452 }
5453 public static Builder CreateBuilder() { return new Builder(); }
5454 public override Builder ToBuilder() { return CreateBuilder(this); }
5455 public override Builder CreateBuilderForType() { return new Builder(); }
5456 public static Builder CreateBuilder(TestDeprecatedFields prototype) {
5457 return (Builder) new Builder().MergeFrom(prototype);
5458 }
5459
csharptest445bdce2011-05-20 15:50:54 -05005460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5461 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5462 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005463 public sealed partial class Builder : pb::GeneratedBuilder<TestDeprecatedFields, Builder> {
5464 protected override Builder ThisBuilder {
5465 get { return this; }
5466 }
5467 public Builder() {}
5468
5469 TestDeprecatedFields result = new TestDeprecatedFields();
5470
5471 protected override TestDeprecatedFields MessageBeingBuilt {
5472 get { return result; }
5473 }
5474
5475 public override Builder Clear() {
5476 result = new TestDeprecatedFields();
5477 return this;
5478 }
5479
5480 public override Builder Clone() {
5481 return new Builder().MergeFrom(result);
5482 }
5483
5484 public override pbd::MessageDescriptor DescriptorForType {
5485 get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Descriptor; }
5486 }
5487
5488 public override TestDeprecatedFields DefaultInstanceForType {
5489 get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance; }
5490 }
5491
5492 public override TestDeprecatedFields BuildPartial() {
5493 if (result == null) {
5494 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5495 }
5496 TestDeprecatedFields returnMe = result;
5497 result = null;
5498 return returnMe;
5499 }
5500
5501 public override Builder MergeFrom(pb::IMessage other) {
5502 if (other is TestDeprecatedFields) {
5503 return MergeFrom((TestDeprecatedFields) other);
5504 } else {
5505 base.MergeFrom(other);
5506 return this;
5507 }
5508 }
5509
5510 public override Builder MergeFrom(TestDeprecatedFields other) {
5511 if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance) return this;
5512 if (other.HasDeprecatedInt32) {
5513 DeprecatedInt32 = other.DeprecatedInt32;
5514 }
5515 this.MergeUnknownFields(other.UnknownFields);
5516 return this;
5517 }
5518
5519 public override Builder MergeFrom(pb::CodedInputStream input) {
5520 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5521 }
5522
5523 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5524 pb::UnknownFieldSet.Builder unknownFields = null;
5525 while (true) {
5526 uint tag = input.ReadTag();
5527 switch (tag) {
5528 case 0: {
5529 if (unknownFields != null) {
5530 this.UnknownFields = unknownFields.Build();
5531 }
5532 return this;
5533 }
5534 default: {
5535 if (pb::WireFormat.IsEndGroupTag(tag)) {
5536 if (unknownFields != null) {
5537 this.UnknownFields = unknownFields.Build();
5538 }
5539 return this;
5540 }
5541 if (unknownFields == null) {
5542 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5543 }
5544 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
5545 break;
5546 }
5547 case 8: {
5548 DeprecatedInt32 = input.ReadInt32();
5549 break;
5550 }
5551 }
5552 }
5553 }
5554
5555
5556 public bool HasDeprecatedInt32 {
5557 get { return result.HasDeprecatedInt32; }
5558 }
5559 public int DeprecatedInt32 {
5560 get { return result.DeprecatedInt32; }
5561 set { SetDeprecatedInt32(value); }
5562 }
5563 public Builder SetDeprecatedInt32(int value) {
5564 result.hasDeprecatedInt32 = true;
5565 result.deprecatedInt32_ = value;
5566 return this;
5567 }
5568 public Builder ClearDeprecatedInt32() {
5569 result.hasDeprecatedInt32 = false;
5570 result.deprecatedInt32_ = 0;
5571 return this;
5572 }
5573 }
5574 static TestDeprecatedFields() {
5575 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5576 }
5577 }
5578
csharptest445bdce2011-05-20 15:50:54 -05005579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5580 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5581 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005582 public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
5583 private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial();
5584 public static ForeignMessage DefaultInstance {
5585 get { return defaultInstance; }
5586 }
5587
5588 public override ForeignMessage DefaultInstanceForType {
5589 get { return defaultInstance; }
5590 }
5591
5592 protected override ForeignMessage ThisMessage {
5593 get { return this; }
5594 }
5595
5596 public static pbd::MessageDescriptor Descriptor {
5597 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
5598 }
5599
5600 protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
5601 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
5602 }
5603
5604 public const int CFieldNumber = 1;
5605 private bool hasC;
5606 private int c_ = 0;
5607 public bool HasC {
5608 get { return hasC; }
5609 }
5610 public int C {
5611 get { return c_; }
5612 }
5613
5614 public override bool IsInitialized {
5615 get {
5616 return true;
5617 }
5618 }
5619
5620 public override void WriteTo(pb::CodedOutputStream output) {
5621 int size = SerializedSize;
5622 if (HasC) {
5623 output.WriteInt32(1, C);
5624 }
5625 UnknownFields.WriteTo(output);
5626 }
5627
5628 private int memoizedSerializedSize = -1;
5629 public override int SerializedSize {
5630 get {
5631 int size = memoizedSerializedSize;
5632 if (size != -1) return size;
5633
5634 size = 0;
5635 if (HasC) {
5636 size += pb::CodedOutputStream.ComputeInt32Size(1, C);
5637 }
5638 size += UnknownFields.SerializedSize;
5639 memoizedSerializedSize = size;
5640 return size;
5641 }
5642 }
5643
5644 public static ForeignMessage ParseFrom(pb::ByteString data) {
5645 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5646 }
5647 public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5648 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5649 }
5650 public static ForeignMessage ParseFrom(byte[] data) {
5651 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5652 }
5653 public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5654 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5655 }
5656 public static ForeignMessage ParseFrom(global::System.IO.Stream input) {
5657 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5658 }
5659 public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5660 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5661 }
5662 public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input) {
5663 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5664 }
5665 public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5666 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5667 }
5668 public static ForeignMessage ParseFrom(pb::CodedInputStream input) {
5669 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5670 }
5671 public static ForeignMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5672 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5673 }
5674 public static Builder CreateBuilder() { return new Builder(); }
5675 public override Builder ToBuilder() { return CreateBuilder(this); }
5676 public override Builder CreateBuilderForType() { return new Builder(); }
5677 public static Builder CreateBuilder(ForeignMessage prototype) {
5678 return (Builder) new Builder().MergeFrom(prototype);
5679 }
5680
csharptest445bdce2011-05-20 15:50:54 -05005681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5682 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5683 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005684 public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> {
5685 protected override Builder ThisBuilder {
5686 get { return this; }
5687 }
5688 public Builder() {}
5689
5690 ForeignMessage result = new ForeignMessage();
5691
5692 protected override ForeignMessage MessageBeingBuilt {
5693 get { return result; }
5694 }
5695
5696 public override Builder Clear() {
5697 result = new ForeignMessage();
5698 return this;
5699 }
5700
5701 public override Builder Clone() {
5702 return new Builder().MergeFrom(result);
5703 }
5704
5705 public override pbd::MessageDescriptor DescriptorForType {
5706 get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
5707 }
5708
5709 public override ForeignMessage DefaultInstanceForType {
5710 get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
5711 }
5712
5713 public override ForeignMessage BuildPartial() {
5714 if (result == null) {
5715 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5716 }
5717 ForeignMessage returnMe = result;
5718 result = null;
5719 return returnMe;
5720 }
5721
5722 public override Builder MergeFrom(pb::IMessage other) {
5723 if (other is ForeignMessage) {
5724 return MergeFrom((ForeignMessage) other);
5725 } else {
5726 base.MergeFrom(other);
5727 return this;
5728 }
5729 }
5730
5731 public override Builder MergeFrom(ForeignMessage other) {
5732 if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
5733 if (other.HasC) {
5734 C = other.C;
5735 }
5736 this.MergeUnknownFields(other.UnknownFields);
5737 return this;
5738 }
5739
5740 public override Builder MergeFrom(pb::CodedInputStream input) {
5741 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5742 }
5743
5744 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5745 pb::UnknownFieldSet.Builder unknownFields = null;
5746 while (true) {
5747 uint tag = input.ReadTag();
5748 switch (tag) {
5749 case 0: {
5750 if (unknownFields != null) {
5751 this.UnknownFields = unknownFields.Build();
5752 }
5753 return this;
5754 }
5755 default: {
5756 if (pb::WireFormat.IsEndGroupTag(tag)) {
5757 if (unknownFields != null) {
5758 this.UnknownFields = unknownFields.Build();
5759 }
5760 return this;
5761 }
5762 if (unknownFields == null) {
5763 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5764 }
5765 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
5766 break;
5767 }
5768 case 8: {
5769 C = input.ReadInt32();
5770 break;
5771 }
5772 }
5773 }
5774 }
5775
5776
5777 public bool HasC {
5778 get { return result.HasC; }
5779 }
5780 public int C {
5781 get { return result.C; }
5782 set { SetC(value); }
5783 }
5784 public Builder SetC(int value) {
5785 result.hasC = true;
5786 result.c_ = value;
5787 return this;
5788 }
5789 public Builder ClearC() {
5790 result.hasC = false;
5791 result.c_ = 0;
5792 return this;
5793 }
5794 }
5795 static ForeignMessage() {
5796 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5797 }
5798 }
5799
csharptest445bdce2011-05-20 15:50:54 -05005800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5801 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5802 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005803 public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
5804 private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial();
5805 public static TestAllExtensions DefaultInstance {
5806 get { return defaultInstance; }
5807 }
5808
5809 public override TestAllExtensions DefaultInstanceForType {
5810 get { return defaultInstance; }
5811 }
5812
5813 protected override TestAllExtensions ThisMessage {
5814 get { return this; }
5815 }
5816
5817 public static pbd::MessageDescriptor Descriptor {
5818 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
5819 }
5820
5821 protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
5822 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
5823 }
5824
5825 public override bool IsInitialized {
5826 get {
5827 if (!ExtensionsAreInitialized) return false;
5828 return true;
5829 }
5830 }
5831
5832 public override void WriteTo(pb::CodedOutputStream output) {
5833 int size = SerializedSize;
5834 pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
5835 extensionWriter.WriteUntil(536870912, output);
5836 UnknownFields.WriteTo(output);
5837 }
5838
5839 private int memoizedSerializedSize = -1;
5840 public override int SerializedSize {
5841 get {
5842 int size = memoizedSerializedSize;
5843 if (size != -1) return size;
5844
5845 size = 0;
5846 size += ExtensionsSerializedSize;
5847 size += UnknownFields.SerializedSize;
5848 memoizedSerializedSize = size;
5849 return size;
5850 }
5851 }
5852
5853 public static TestAllExtensions ParseFrom(pb::ByteString data) {
5854 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5855 }
5856 public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5857 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5858 }
5859 public static TestAllExtensions ParseFrom(byte[] data) {
5860 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5861 }
5862 public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5863 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5864 }
5865 public static TestAllExtensions ParseFrom(global::System.IO.Stream input) {
5866 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5867 }
5868 public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5869 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5870 }
5871 public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
5872 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5873 }
5874 public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5875 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5876 }
5877 public static TestAllExtensions ParseFrom(pb::CodedInputStream input) {
5878 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5879 }
5880 public static TestAllExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5881 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5882 }
5883 public static Builder CreateBuilder() { return new Builder(); }
5884 public override Builder ToBuilder() { return CreateBuilder(this); }
5885 public override Builder CreateBuilderForType() { return new Builder(); }
5886 public static Builder CreateBuilder(TestAllExtensions prototype) {
5887 return (Builder) new Builder().MergeFrom(prototype);
5888 }
5889
csharptest445bdce2011-05-20 15:50:54 -05005890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5891 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5892 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005893 public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> {
5894 protected override Builder ThisBuilder {
5895 get { return this; }
5896 }
5897 public Builder() {}
5898
5899 TestAllExtensions result = new TestAllExtensions();
5900
5901 protected override TestAllExtensions MessageBeingBuilt {
5902 get { return result; }
5903 }
5904
5905 public override Builder Clear() {
5906 result = new TestAllExtensions();
5907 return this;
5908 }
5909
5910 public override Builder Clone() {
5911 return new Builder().MergeFrom(result);
5912 }
5913
5914 public override pbd::MessageDescriptor DescriptorForType {
5915 get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
5916 }
5917
5918 public override TestAllExtensions DefaultInstanceForType {
5919 get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
5920 }
5921
5922 public override TestAllExtensions BuildPartial() {
5923 if (result == null) {
5924 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5925 }
5926 TestAllExtensions returnMe = result;
5927 result = null;
5928 return returnMe;
5929 }
5930
5931 public override Builder MergeFrom(pb::IMessage other) {
5932 if (other is TestAllExtensions) {
5933 return MergeFrom((TestAllExtensions) other);
5934 } else {
5935 base.MergeFrom(other);
5936 return this;
5937 }
5938 }
5939
5940 public override Builder MergeFrom(TestAllExtensions other) {
5941 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
5942 this.MergeExtensionFields(other);
5943 this.MergeUnknownFields(other.UnknownFields);
5944 return this;
5945 }
5946
5947 public override Builder MergeFrom(pb::CodedInputStream input) {
5948 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5949 }
5950
5951 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
5952 pb::UnknownFieldSet.Builder unknownFields = null;
5953 while (true) {
5954 uint tag = input.ReadTag();
5955 switch (tag) {
5956 case 0: {
5957 if (unknownFields != null) {
5958 this.UnknownFields = unknownFields.Build();
5959 }
5960 return this;
5961 }
5962 default: {
5963 if (pb::WireFormat.IsEndGroupTag(tag)) {
5964 if (unknownFields != null) {
5965 this.UnknownFields = unknownFields.Build();
5966 }
5967 return this;
5968 }
5969 if (unknownFields == null) {
5970 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
5971 }
5972 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
5973 break;
5974 }
5975 }
5976 }
5977 }
5978
5979 }
5980 static TestAllExtensions() {
5981 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
5982 }
5983 }
5984
csharptest445bdce2011-05-20 15:50:54 -05005985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5986 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5987 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005988 public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
5989 private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial();
5990 public static OptionalGroup_extension DefaultInstance {
5991 get { return defaultInstance; }
5992 }
5993
5994 public override OptionalGroup_extension DefaultInstanceForType {
5995 get { return defaultInstance; }
5996 }
5997
5998 protected override OptionalGroup_extension ThisMessage {
5999 get { return this; }
6000 }
6001
6002 public static pbd::MessageDescriptor Descriptor {
6003 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
6004 }
6005
6006 protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
6007 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
6008 }
6009
6010 public const int AFieldNumber = 17;
6011 private bool hasA;
6012 private int a_ = 0;
6013 public bool HasA {
6014 get { return hasA; }
6015 }
6016 public int A {
6017 get { return a_; }
6018 }
6019
6020 public override bool IsInitialized {
6021 get {
6022 return true;
6023 }
6024 }
6025
6026 public override void WriteTo(pb::CodedOutputStream output) {
6027 int size = SerializedSize;
6028 if (HasA) {
6029 output.WriteInt32(17, A);
6030 }
6031 UnknownFields.WriteTo(output);
6032 }
6033
6034 private int memoizedSerializedSize = -1;
6035 public override int SerializedSize {
6036 get {
6037 int size = memoizedSerializedSize;
6038 if (size != -1) return size;
6039
6040 size = 0;
6041 if (HasA) {
6042 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
6043 }
6044 size += UnknownFields.SerializedSize;
6045 memoizedSerializedSize = size;
6046 return size;
6047 }
6048 }
6049
6050 public static OptionalGroup_extension ParseFrom(pb::ByteString data) {
6051 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6052 }
6053 public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6054 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6055 }
6056 public static OptionalGroup_extension ParseFrom(byte[] data) {
6057 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6058 }
6059 public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6060 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6061 }
6062 public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
6063 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6064 }
6065 public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6066 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6067 }
6068 public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
6069 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6070 }
6071 public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6072 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6073 }
6074 public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
6075 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6076 }
6077 public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6078 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6079 }
6080 public static Builder CreateBuilder() { return new Builder(); }
6081 public override Builder ToBuilder() { return CreateBuilder(this); }
6082 public override Builder CreateBuilderForType() { return new Builder(); }
6083 public static Builder CreateBuilder(OptionalGroup_extension prototype) {
6084 return (Builder) new Builder().MergeFrom(prototype);
6085 }
6086
csharptest445bdce2011-05-20 15:50:54 -05006087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6088 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6089 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006090 public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> {
6091 protected override Builder ThisBuilder {
6092 get { return this; }
6093 }
6094 public Builder() {}
6095
6096 OptionalGroup_extension result = new OptionalGroup_extension();
6097
6098 protected override OptionalGroup_extension MessageBeingBuilt {
6099 get { return result; }
6100 }
6101
6102 public override Builder Clear() {
6103 result = new OptionalGroup_extension();
6104 return this;
6105 }
6106
6107 public override Builder Clone() {
6108 return new Builder().MergeFrom(result);
6109 }
6110
6111 public override pbd::MessageDescriptor DescriptorForType {
6112 get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
6113 }
6114
6115 public override OptionalGroup_extension DefaultInstanceForType {
6116 get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
6117 }
6118
6119 public override OptionalGroup_extension BuildPartial() {
6120 if (result == null) {
6121 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6122 }
6123 OptionalGroup_extension returnMe = result;
6124 result = null;
6125 return returnMe;
6126 }
6127
6128 public override Builder MergeFrom(pb::IMessage other) {
6129 if (other is OptionalGroup_extension) {
6130 return MergeFrom((OptionalGroup_extension) other);
6131 } else {
6132 base.MergeFrom(other);
6133 return this;
6134 }
6135 }
6136
6137 public override Builder MergeFrom(OptionalGroup_extension other) {
6138 if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
6139 if (other.HasA) {
6140 A = other.A;
6141 }
6142 this.MergeUnknownFields(other.UnknownFields);
6143 return this;
6144 }
6145
6146 public override Builder MergeFrom(pb::CodedInputStream input) {
6147 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6148 }
6149
6150 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6151 pb::UnknownFieldSet.Builder unknownFields = null;
6152 while (true) {
6153 uint tag = input.ReadTag();
6154 switch (tag) {
6155 case 0: {
6156 if (unknownFields != null) {
6157 this.UnknownFields = unknownFields.Build();
6158 }
6159 return this;
6160 }
6161 default: {
6162 if (pb::WireFormat.IsEndGroupTag(tag)) {
6163 if (unknownFields != null) {
6164 this.UnknownFields = unknownFields.Build();
6165 }
6166 return this;
6167 }
6168 if (unknownFields == null) {
6169 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6170 }
6171 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
6172 break;
6173 }
6174 case 136: {
6175 A = input.ReadInt32();
6176 break;
6177 }
6178 }
6179 }
6180 }
6181
6182
6183 public bool HasA {
6184 get { return result.HasA; }
6185 }
6186 public int A {
6187 get { return result.A; }
6188 set { SetA(value); }
6189 }
6190 public Builder SetA(int value) {
6191 result.hasA = true;
6192 result.a_ = value;
6193 return this;
6194 }
6195 public Builder ClearA() {
6196 result.hasA = false;
6197 result.a_ = 0;
6198 return this;
6199 }
6200 }
6201 static OptionalGroup_extension() {
6202 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6203 }
6204 }
6205
csharptest445bdce2011-05-20 15:50:54 -05006206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6207 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6208 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006209 public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
6210 private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial();
6211 public static RepeatedGroup_extension DefaultInstance {
6212 get { return defaultInstance; }
6213 }
6214
6215 public override RepeatedGroup_extension DefaultInstanceForType {
6216 get { return defaultInstance; }
6217 }
6218
6219 protected override RepeatedGroup_extension ThisMessage {
6220 get { return this; }
6221 }
6222
6223 public static pbd::MessageDescriptor Descriptor {
6224 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
6225 }
6226
6227 protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
6228 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
6229 }
6230
6231 public const int AFieldNumber = 47;
6232 private bool hasA;
6233 private int a_ = 0;
6234 public bool HasA {
6235 get { return hasA; }
6236 }
6237 public int A {
6238 get { return a_; }
6239 }
6240
6241 public override bool IsInitialized {
6242 get {
6243 return true;
6244 }
6245 }
6246
6247 public override void WriteTo(pb::CodedOutputStream output) {
6248 int size = SerializedSize;
6249 if (HasA) {
6250 output.WriteInt32(47, A);
6251 }
6252 UnknownFields.WriteTo(output);
6253 }
6254
6255 private int memoizedSerializedSize = -1;
6256 public override int SerializedSize {
6257 get {
6258 int size = memoizedSerializedSize;
6259 if (size != -1) return size;
6260
6261 size = 0;
6262 if (HasA) {
6263 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
6264 }
6265 size += UnknownFields.SerializedSize;
6266 memoizedSerializedSize = size;
6267 return size;
6268 }
6269 }
6270
6271 public static RepeatedGroup_extension ParseFrom(pb::ByteString data) {
6272 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6273 }
6274 public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6275 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6276 }
6277 public static RepeatedGroup_extension ParseFrom(byte[] data) {
6278 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6279 }
6280 public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6281 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6282 }
6283 public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
6284 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6285 }
6286 public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6287 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6288 }
6289 public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
6290 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6291 }
6292 public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6293 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6294 }
6295 public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
6296 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6297 }
6298 public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6299 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6300 }
6301 public static Builder CreateBuilder() { return new Builder(); }
6302 public override Builder ToBuilder() { return CreateBuilder(this); }
6303 public override Builder CreateBuilderForType() { return new Builder(); }
6304 public static Builder CreateBuilder(RepeatedGroup_extension prototype) {
6305 return (Builder) new Builder().MergeFrom(prototype);
6306 }
6307
csharptest445bdce2011-05-20 15:50:54 -05006308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6309 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6310 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006311 public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> {
6312 protected override Builder ThisBuilder {
6313 get { return this; }
6314 }
6315 public Builder() {}
6316
6317 RepeatedGroup_extension result = new RepeatedGroup_extension();
6318
6319 protected override RepeatedGroup_extension MessageBeingBuilt {
6320 get { return result; }
6321 }
6322
6323 public override Builder Clear() {
6324 result = new RepeatedGroup_extension();
6325 return this;
6326 }
6327
6328 public override Builder Clone() {
6329 return new Builder().MergeFrom(result);
6330 }
6331
6332 public override pbd::MessageDescriptor DescriptorForType {
6333 get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
6334 }
6335
6336 public override RepeatedGroup_extension DefaultInstanceForType {
6337 get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
6338 }
6339
6340 public override RepeatedGroup_extension BuildPartial() {
6341 if (result == null) {
6342 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6343 }
6344 RepeatedGroup_extension returnMe = result;
6345 result = null;
6346 return returnMe;
6347 }
6348
6349 public override Builder MergeFrom(pb::IMessage other) {
6350 if (other is RepeatedGroup_extension) {
6351 return MergeFrom((RepeatedGroup_extension) other);
6352 } else {
6353 base.MergeFrom(other);
6354 return this;
6355 }
6356 }
6357
6358 public override Builder MergeFrom(RepeatedGroup_extension other) {
6359 if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
6360 if (other.HasA) {
6361 A = other.A;
6362 }
6363 this.MergeUnknownFields(other.UnknownFields);
6364 return this;
6365 }
6366
6367 public override Builder MergeFrom(pb::CodedInputStream input) {
6368 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6369 }
6370
6371 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6372 pb::UnknownFieldSet.Builder unknownFields = null;
6373 while (true) {
6374 uint tag = input.ReadTag();
6375 switch (tag) {
6376 case 0: {
6377 if (unknownFields != null) {
6378 this.UnknownFields = unknownFields.Build();
6379 }
6380 return this;
6381 }
6382 default: {
6383 if (pb::WireFormat.IsEndGroupTag(tag)) {
6384 if (unknownFields != null) {
6385 this.UnknownFields = unknownFields.Build();
6386 }
6387 return this;
6388 }
6389 if (unknownFields == null) {
6390 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6391 }
6392 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
6393 break;
6394 }
6395 case 376: {
6396 A = input.ReadInt32();
6397 break;
6398 }
6399 }
6400 }
6401 }
6402
6403
6404 public bool HasA {
6405 get { return result.HasA; }
6406 }
6407 public int A {
6408 get { return result.A; }
6409 set { SetA(value); }
6410 }
6411 public Builder SetA(int value) {
6412 result.hasA = true;
6413 result.a_ = value;
6414 return this;
6415 }
6416 public Builder ClearA() {
6417 result.hasA = false;
6418 result.a_ = 0;
6419 return this;
6420 }
6421 }
6422 static RepeatedGroup_extension() {
6423 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6424 }
6425 }
6426
csharptest445bdce2011-05-20 15:50:54 -05006427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6428 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6429 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006430 public sealed partial class TestNestedExtension : pb::GeneratedMessage<TestNestedExtension, TestNestedExtension.Builder> {
6431 private static readonly TestNestedExtension defaultInstance = new Builder().BuildPartial();
6432 public static TestNestedExtension DefaultInstance {
6433 get { return defaultInstance; }
6434 }
6435
6436 public override TestNestedExtension DefaultInstanceForType {
6437 get { return defaultInstance; }
6438 }
6439
6440 protected override TestNestedExtension ThisMessage {
6441 get { return this; }
6442 }
6443
6444 public static pbd::MessageDescriptor Descriptor {
6445 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedExtension__Descriptor; }
6446 }
6447
6448 protected override pb::FieldAccess.FieldAccessorTable<TestNestedExtension, TestNestedExtension.Builder> InternalFieldAccessors {
6449 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable; }
6450 }
6451
6452 public const int TestFieldNumber = 1002;
6453 public static pb::GeneratedExtensionBase<string> Test;
6454 public override bool IsInitialized {
6455 get {
6456 return true;
6457 }
6458 }
6459
6460 public override void WriteTo(pb::CodedOutputStream output) {
6461 int size = SerializedSize;
6462 UnknownFields.WriteTo(output);
6463 }
6464
6465 private int memoizedSerializedSize = -1;
6466 public override int SerializedSize {
6467 get {
6468 int size = memoizedSerializedSize;
6469 if (size != -1) return size;
6470
6471 size = 0;
6472 size += UnknownFields.SerializedSize;
6473 memoizedSerializedSize = size;
6474 return size;
6475 }
6476 }
6477
6478 public static TestNestedExtension ParseFrom(pb::ByteString data) {
6479 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6480 }
6481 public static TestNestedExtension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6482 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6483 }
6484 public static TestNestedExtension ParseFrom(byte[] data) {
6485 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6486 }
6487 public static TestNestedExtension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6488 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6489 }
6490 public static TestNestedExtension ParseFrom(global::System.IO.Stream input) {
6491 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6492 }
6493 public static TestNestedExtension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6494 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6495 }
6496 public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input) {
6497 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6498 }
6499 public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6500 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6501 }
6502 public static TestNestedExtension ParseFrom(pb::CodedInputStream input) {
6503 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6504 }
6505 public static TestNestedExtension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6506 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6507 }
6508 public static Builder CreateBuilder() { return new Builder(); }
6509 public override Builder ToBuilder() { return CreateBuilder(this); }
6510 public override Builder CreateBuilderForType() { return new Builder(); }
6511 public static Builder CreateBuilder(TestNestedExtension prototype) {
6512 return (Builder) new Builder().MergeFrom(prototype);
6513 }
6514
csharptest445bdce2011-05-20 15:50:54 -05006515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6516 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6517 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006518 public sealed partial class Builder : pb::GeneratedBuilder<TestNestedExtension, Builder> {
6519 protected override Builder ThisBuilder {
6520 get { return this; }
6521 }
6522 public Builder() {}
6523
6524 TestNestedExtension result = new TestNestedExtension();
6525
6526 protected override TestNestedExtension MessageBeingBuilt {
6527 get { return result; }
6528 }
6529
6530 public override Builder Clear() {
6531 result = new TestNestedExtension();
6532 return this;
6533 }
6534
6535 public override Builder Clone() {
6536 return new Builder().MergeFrom(result);
6537 }
6538
6539 public override pbd::MessageDescriptor DescriptorForType {
6540 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor; }
6541 }
6542
6543 public override TestNestedExtension DefaultInstanceForType {
6544 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance; }
6545 }
6546
6547 public override TestNestedExtension BuildPartial() {
6548 if (result == null) {
6549 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6550 }
6551 TestNestedExtension returnMe = result;
6552 result = null;
6553 return returnMe;
6554 }
6555
6556 public override Builder MergeFrom(pb::IMessage other) {
6557 if (other is TestNestedExtension) {
6558 return MergeFrom((TestNestedExtension) other);
6559 } else {
6560 base.MergeFrom(other);
6561 return this;
6562 }
6563 }
6564
6565 public override Builder MergeFrom(TestNestedExtension other) {
6566 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance) return this;
6567 this.MergeUnknownFields(other.UnknownFields);
6568 return this;
6569 }
6570
6571 public override Builder MergeFrom(pb::CodedInputStream input) {
6572 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6573 }
6574
6575 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
6576 pb::UnknownFieldSet.Builder unknownFields = null;
6577 while (true) {
6578 uint tag = input.ReadTag();
6579 switch (tag) {
6580 case 0: {
6581 if (unknownFields != null) {
6582 this.UnknownFields = unknownFields.Build();
6583 }
6584 return this;
6585 }
6586 default: {
6587 if (pb::WireFormat.IsEndGroupTag(tag)) {
6588 if (unknownFields != null) {
6589 this.UnknownFields = unknownFields.Build();
6590 }
6591 return this;
6592 }
6593 if (unknownFields == null) {
6594 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
6595 }
6596 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
6597 break;
6598 }
6599 }
6600 }
6601 }
6602
6603 }
6604 static TestNestedExtension() {
6605 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
6606 }
6607 }
6608
csharptest445bdce2011-05-20 15:50:54 -05006609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6610 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6611 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006612 public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
6613 private static readonly TestRequired defaultInstance = new Builder().BuildPartial();
6614 public static TestRequired DefaultInstance {
6615 get { return defaultInstance; }
6616 }
6617
6618 public override TestRequired DefaultInstanceForType {
6619 get { return defaultInstance; }
6620 }
6621
6622 protected override TestRequired ThisMessage {
6623 get { return this; }
6624 }
6625
6626 public static pbd::MessageDescriptor Descriptor {
6627 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
6628 }
6629
6630 protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
6631 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
6632 }
6633
6634 public const int SingleFieldNumber = 1000;
6635 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single;
6636 public const int MultiFieldNumber = 1001;
6637 public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi;
6638 public const int AFieldNumber = 1;
6639 private bool hasA;
6640 private int a_ = 0;
6641 public bool HasA {
6642 get { return hasA; }
6643 }
6644 public int A {
6645 get { return a_; }
6646 }
6647
6648 public const int Dummy2FieldNumber = 2;
6649 private bool hasDummy2;
6650 private int dummy2_ = 0;
6651 public bool HasDummy2 {
6652 get { return hasDummy2; }
6653 }
6654 public int Dummy2 {
6655 get { return dummy2_; }
6656 }
6657
6658 public const int BFieldNumber = 3;
6659 private bool hasB;
6660 private int b_ = 0;
6661 public bool HasB {
6662 get { return hasB; }
6663 }
6664 public int B {
6665 get { return b_; }
6666 }
6667
6668 public const int Dummy4FieldNumber = 4;
6669 private bool hasDummy4;
6670 private int dummy4_ = 0;
6671 public bool HasDummy4 {
6672 get { return hasDummy4; }
6673 }
6674 public int Dummy4 {
6675 get { return dummy4_; }
6676 }
6677
6678 public const int Dummy5FieldNumber = 5;
6679 private bool hasDummy5;
6680 private int dummy5_ = 0;
6681 public bool HasDummy5 {
6682 get { return hasDummy5; }
6683 }
6684 public int Dummy5 {
6685 get { return dummy5_; }
6686 }
6687
6688 public const int Dummy6FieldNumber = 6;
6689 private bool hasDummy6;
6690 private int dummy6_ = 0;
6691 public bool HasDummy6 {
6692 get { return hasDummy6; }
6693 }
6694 public int Dummy6 {
6695 get { return dummy6_; }
6696 }
6697
6698 public const int Dummy7FieldNumber = 7;
6699 private bool hasDummy7;
6700 private int dummy7_ = 0;
6701 public bool HasDummy7 {
6702 get { return hasDummy7; }
6703 }
6704 public int Dummy7 {
6705 get { return dummy7_; }
6706 }
6707
6708 public const int Dummy8FieldNumber = 8;
6709 private bool hasDummy8;
6710 private int dummy8_ = 0;
6711 public bool HasDummy8 {
6712 get { return hasDummy8; }
6713 }
6714 public int Dummy8 {
6715 get { return dummy8_; }
6716 }
6717
6718 public const int Dummy9FieldNumber = 9;
6719 private bool hasDummy9;
6720 private int dummy9_ = 0;
6721 public bool HasDummy9 {
6722 get { return hasDummy9; }
6723 }
6724 public int Dummy9 {
6725 get { return dummy9_; }
6726 }
6727
6728 public const int Dummy10FieldNumber = 10;
6729 private bool hasDummy10;
6730 private int dummy10_ = 0;
6731 public bool HasDummy10 {
6732 get { return hasDummy10; }
6733 }
6734 public int Dummy10 {
6735 get { return dummy10_; }
6736 }
6737
6738 public const int Dummy11FieldNumber = 11;
6739 private bool hasDummy11;
6740 private int dummy11_ = 0;
6741 public bool HasDummy11 {
6742 get { return hasDummy11; }
6743 }
6744 public int Dummy11 {
6745 get { return dummy11_; }
6746 }
6747
6748 public const int Dummy12FieldNumber = 12;
6749 private bool hasDummy12;
6750 private int dummy12_ = 0;
6751 public bool HasDummy12 {
6752 get { return hasDummy12; }
6753 }
6754 public int Dummy12 {
6755 get { return dummy12_; }
6756 }
6757
6758 public const int Dummy13FieldNumber = 13;
6759 private bool hasDummy13;
6760 private int dummy13_ = 0;
6761 public bool HasDummy13 {
6762 get { return hasDummy13; }
6763 }
6764 public int Dummy13 {
6765 get { return dummy13_; }
6766 }
6767
6768 public const int Dummy14FieldNumber = 14;
6769 private bool hasDummy14;
6770 private int dummy14_ = 0;
6771 public bool HasDummy14 {
6772 get { return hasDummy14; }
6773 }
6774 public int Dummy14 {
6775 get { return dummy14_; }
6776 }
6777
6778 public const int Dummy15FieldNumber = 15;
6779 private bool hasDummy15;
6780 private int dummy15_ = 0;
6781 public bool HasDummy15 {
6782 get { return hasDummy15; }
6783 }
6784 public int Dummy15 {
6785 get { return dummy15_; }
6786 }
6787
6788 public const int Dummy16FieldNumber = 16;
6789 private bool hasDummy16;
6790 private int dummy16_ = 0;
6791 public bool HasDummy16 {
6792 get { return hasDummy16; }
6793 }
6794 public int Dummy16 {
6795 get { return dummy16_; }
6796 }
6797
6798 public const int Dummy17FieldNumber = 17;
6799 private bool hasDummy17;
6800 private int dummy17_ = 0;
6801 public bool HasDummy17 {
6802 get { return hasDummy17; }
6803 }
6804 public int Dummy17 {
6805 get { return dummy17_; }
6806 }
6807
6808 public const int Dummy18FieldNumber = 18;
6809 private bool hasDummy18;
6810 private int dummy18_ = 0;
6811 public bool HasDummy18 {
6812 get { return hasDummy18; }
6813 }
6814 public int Dummy18 {
6815 get { return dummy18_; }
6816 }
6817
6818 public const int Dummy19FieldNumber = 19;
6819 private bool hasDummy19;
6820 private int dummy19_ = 0;
6821 public bool HasDummy19 {
6822 get { return hasDummy19; }
6823 }
6824 public int Dummy19 {
6825 get { return dummy19_; }
6826 }
6827
6828 public const int Dummy20FieldNumber = 20;
6829 private bool hasDummy20;
6830 private int dummy20_ = 0;
6831 public bool HasDummy20 {
6832 get { return hasDummy20; }
6833 }
6834 public int Dummy20 {
6835 get { return dummy20_; }
6836 }
6837
6838 public const int Dummy21FieldNumber = 21;
6839 private bool hasDummy21;
6840 private int dummy21_ = 0;
6841 public bool HasDummy21 {
6842 get { return hasDummy21; }
6843 }
6844 public int Dummy21 {
6845 get { return dummy21_; }
6846 }
6847
6848 public const int Dummy22FieldNumber = 22;
6849 private bool hasDummy22;
6850 private int dummy22_ = 0;
6851 public bool HasDummy22 {
6852 get { return hasDummy22; }
6853 }
6854 public int Dummy22 {
6855 get { return dummy22_; }
6856 }
6857
6858 public const int Dummy23FieldNumber = 23;
6859 private bool hasDummy23;
6860 private int dummy23_ = 0;
6861 public bool HasDummy23 {
6862 get { return hasDummy23; }
6863 }
6864 public int Dummy23 {
6865 get { return dummy23_; }
6866 }
6867
6868 public const int Dummy24FieldNumber = 24;
6869 private bool hasDummy24;
6870 private int dummy24_ = 0;
6871 public bool HasDummy24 {
6872 get { return hasDummy24; }
6873 }
6874 public int Dummy24 {
6875 get { return dummy24_; }
6876 }
6877
6878 public const int Dummy25FieldNumber = 25;
6879 private bool hasDummy25;
6880 private int dummy25_ = 0;
6881 public bool HasDummy25 {
6882 get { return hasDummy25; }
6883 }
6884 public int Dummy25 {
6885 get { return dummy25_; }
6886 }
6887
6888 public const int Dummy26FieldNumber = 26;
6889 private bool hasDummy26;
6890 private int dummy26_ = 0;
6891 public bool HasDummy26 {
6892 get { return hasDummy26; }
6893 }
6894 public int Dummy26 {
6895 get { return dummy26_; }
6896 }
6897
6898 public const int Dummy27FieldNumber = 27;
6899 private bool hasDummy27;
6900 private int dummy27_ = 0;
6901 public bool HasDummy27 {
6902 get { return hasDummy27; }
6903 }
6904 public int Dummy27 {
6905 get { return dummy27_; }
6906 }
6907
6908 public const int Dummy28FieldNumber = 28;
6909 private bool hasDummy28;
6910 private int dummy28_ = 0;
6911 public bool HasDummy28 {
6912 get { return hasDummy28; }
6913 }
6914 public int Dummy28 {
6915 get { return dummy28_; }
6916 }
6917
6918 public const int Dummy29FieldNumber = 29;
6919 private bool hasDummy29;
6920 private int dummy29_ = 0;
6921 public bool HasDummy29 {
6922 get { return hasDummy29; }
6923 }
6924 public int Dummy29 {
6925 get { return dummy29_; }
6926 }
6927
6928 public const int Dummy30FieldNumber = 30;
6929 private bool hasDummy30;
6930 private int dummy30_ = 0;
6931 public bool HasDummy30 {
6932 get { return hasDummy30; }
6933 }
6934 public int Dummy30 {
6935 get { return dummy30_; }
6936 }
6937
6938 public const int Dummy31FieldNumber = 31;
6939 private bool hasDummy31;
6940 private int dummy31_ = 0;
6941 public bool HasDummy31 {
6942 get { return hasDummy31; }
6943 }
6944 public int Dummy31 {
6945 get { return dummy31_; }
6946 }
6947
6948 public const int Dummy32FieldNumber = 32;
6949 private bool hasDummy32;
6950 private int dummy32_ = 0;
6951 public bool HasDummy32 {
6952 get { return hasDummy32; }
6953 }
6954 public int Dummy32 {
6955 get { return dummy32_; }
6956 }
6957
6958 public const int CFieldNumber = 33;
6959 private bool hasC;
6960 private int c_ = 0;
6961 public bool HasC {
6962 get { return hasC; }
6963 }
6964 public int C {
6965 get { return c_; }
6966 }
6967
6968 public override bool IsInitialized {
6969 get {
6970 if (!hasA) return false;
6971 if (!hasB) return false;
6972 if (!hasC) return false;
6973 return true;
6974 }
6975 }
6976
6977 public override void WriteTo(pb::CodedOutputStream output) {
6978 int size = SerializedSize;
6979 if (HasA) {
6980 output.WriteInt32(1, A);
6981 }
6982 if (HasDummy2) {
6983 output.WriteInt32(2, Dummy2);
6984 }
6985 if (HasB) {
6986 output.WriteInt32(3, B);
6987 }
6988 if (HasDummy4) {
6989 output.WriteInt32(4, Dummy4);
6990 }
6991 if (HasDummy5) {
6992 output.WriteInt32(5, Dummy5);
6993 }
6994 if (HasDummy6) {
6995 output.WriteInt32(6, Dummy6);
6996 }
6997 if (HasDummy7) {
6998 output.WriteInt32(7, Dummy7);
6999 }
7000 if (HasDummy8) {
7001 output.WriteInt32(8, Dummy8);
7002 }
7003 if (HasDummy9) {
7004 output.WriteInt32(9, Dummy9);
7005 }
7006 if (HasDummy10) {
7007 output.WriteInt32(10, Dummy10);
7008 }
7009 if (HasDummy11) {
7010 output.WriteInt32(11, Dummy11);
7011 }
7012 if (HasDummy12) {
7013 output.WriteInt32(12, Dummy12);
7014 }
7015 if (HasDummy13) {
7016 output.WriteInt32(13, Dummy13);
7017 }
7018 if (HasDummy14) {
7019 output.WriteInt32(14, Dummy14);
7020 }
7021 if (HasDummy15) {
7022 output.WriteInt32(15, Dummy15);
7023 }
7024 if (HasDummy16) {
7025 output.WriteInt32(16, Dummy16);
7026 }
7027 if (HasDummy17) {
7028 output.WriteInt32(17, Dummy17);
7029 }
7030 if (HasDummy18) {
7031 output.WriteInt32(18, Dummy18);
7032 }
7033 if (HasDummy19) {
7034 output.WriteInt32(19, Dummy19);
7035 }
7036 if (HasDummy20) {
7037 output.WriteInt32(20, Dummy20);
7038 }
7039 if (HasDummy21) {
7040 output.WriteInt32(21, Dummy21);
7041 }
7042 if (HasDummy22) {
7043 output.WriteInt32(22, Dummy22);
7044 }
7045 if (HasDummy23) {
7046 output.WriteInt32(23, Dummy23);
7047 }
7048 if (HasDummy24) {
7049 output.WriteInt32(24, Dummy24);
7050 }
7051 if (HasDummy25) {
7052 output.WriteInt32(25, Dummy25);
7053 }
7054 if (HasDummy26) {
7055 output.WriteInt32(26, Dummy26);
7056 }
7057 if (HasDummy27) {
7058 output.WriteInt32(27, Dummy27);
7059 }
7060 if (HasDummy28) {
7061 output.WriteInt32(28, Dummy28);
7062 }
7063 if (HasDummy29) {
7064 output.WriteInt32(29, Dummy29);
7065 }
7066 if (HasDummy30) {
7067 output.WriteInt32(30, Dummy30);
7068 }
7069 if (HasDummy31) {
7070 output.WriteInt32(31, Dummy31);
7071 }
7072 if (HasDummy32) {
7073 output.WriteInt32(32, Dummy32);
7074 }
7075 if (HasC) {
7076 output.WriteInt32(33, C);
7077 }
7078 UnknownFields.WriteTo(output);
7079 }
7080
7081 private int memoizedSerializedSize = -1;
7082 public override int SerializedSize {
7083 get {
7084 int size = memoizedSerializedSize;
7085 if (size != -1) return size;
7086
7087 size = 0;
7088 if (HasA) {
7089 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
7090 }
7091 if (HasDummy2) {
7092 size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
7093 }
7094 if (HasB) {
7095 size += pb::CodedOutputStream.ComputeInt32Size(3, B);
7096 }
7097 if (HasDummy4) {
7098 size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
7099 }
7100 if (HasDummy5) {
7101 size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
7102 }
7103 if (HasDummy6) {
7104 size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
7105 }
7106 if (HasDummy7) {
7107 size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
7108 }
7109 if (HasDummy8) {
7110 size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
7111 }
7112 if (HasDummy9) {
7113 size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
7114 }
7115 if (HasDummy10) {
7116 size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
7117 }
7118 if (HasDummy11) {
7119 size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
7120 }
7121 if (HasDummy12) {
7122 size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
7123 }
7124 if (HasDummy13) {
7125 size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
7126 }
7127 if (HasDummy14) {
7128 size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
7129 }
7130 if (HasDummy15) {
7131 size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
7132 }
7133 if (HasDummy16) {
7134 size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
7135 }
7136 if (HasDummy17) {
7137 size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
7138 }
7139 if (HasDummy18) {
7140 size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
7141 }
7142 if (HasDummy19) {
7143 size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
7144 }
7145 if (HasDummy20) {
7146 size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
7147 }
7148 if (HasDummy21) {
7149 size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
7150 }
7151 if (HasDummy22) {
7152 size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
7153 }
7154 if (HasDummy23) {
7155 size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
7156 }
7157 if (HasDummy24) {
7158 size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
7159 }
7160 if (HasDummy25) {
7161 size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
7162 }
7163 if (HasDummy26) {
7164 size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
7165 }
7166 if (HasDummy27) {
7167 size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
7168 }
7169 if (HasDummy28) {
7170 size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
7171 }
7172 if (HasDummy29) {
7173 size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
7174 }
7175 if (HasDummy30) {
7176 size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
7177 }
7178 if (HasDummy31) {
7179 size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
7180 }
7181 if (HasDummy32) {
7182 size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
7183 }
7184 if (HasC) {
7185 size += pb::CodedOutputStream.ComputeInt32Size(33, C);
7186 }
7187 size += UnknownFields.SerializedSize;
7188 memoizedSerializedSize = size;
7189 return size;
7190 }
7191 }
7192
7193 public static TestRequired ParseFrom(pb::ByteString data) {
7194 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7195 }
7196 public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
7197 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7198 }
7199 public static TestRequired ParseFrom(byte[] data) {
7200 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7201 }
7202 public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
7203 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7204 }
7205 public static TestRequired ParseFrom(global::System.IO.Stream input) {
7206 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7207 }
7208 public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7209 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7210 }
7211 public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input) {
7212 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
7213 }
7214 public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7215 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
7216 }
7217 public static TestRequired ParseFrom(pb::CodedInputStream input) {
7218 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7219 }
7220 public static TestRequired ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
7221 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7222 }
7223 public static Builder CreateBuilder() { return new Builder(); }
7224 public override Builder ToBuilder() { return CreateBuilder(this); }
7225 public override Builder CreateBuilderForType() { return new Builder(); }
7226 public static Builder CreateBuilder(TestRequired prototype) {
7227 return (Builder) new Builder().MergeFrom(prototype);
7228 }
7229
csharptest445bdce2011-05-20 15:50:54 -05007230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7231 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
7232 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01007233 public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> {
7234 protected override Builder ThisBuilder {
7235 get { return this; }
7236 }
7237 public Builder() {}
7238
7239 TestRequired result = new TestRequired();
7240
7241 protected override TestRequired MessageBeingBuilt {
7242 get { return result; }
7243 }
7244
7245 public override Builder Clear() {
7246 result = new TestRequired();
7247 return this;
7248 }
7249
7250 public override Builder Clone() {
7251 return new Builder().MergeFrom(result);
7252 }
7253
7254 public override pbd::MessageDescriptor DescriptorForType {
7255 get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
7256 }
7257
7258 public override TestRequired DefaultInstanceForType {
7259 get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
7260 }
7261
7262 public override TestRequired BuildPartial() {
7263 if (result == null) {
7264 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
7265 }
7266 TestRequired returnMe = result;
7267 result = null;
7268 return returnMe;
7269 }
7270
7271 public override Builder MergeFrom(pb::IMessage other) {
7272 if (other is TestRequired) {
7273 return MergeFrom((TestRequired) other);
7274 } else {
7275 base.MergeFrom(other);
7276 return this;
7277 }
7278 }
7279
7280 public override Builder MergeFrom(TestRequired other) {
7281 if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
7282 if (other.HasA) {
7283 A = other.A;
7284 }
7285 if (other.HasDummy2) {
7286 Dummy2 = other.Dummy2;
7287 }
7288 if (other.HasB) {
7289 B = other.B;
7290 }
7291 if (other.HasDummy4) {
7292 Dummy4 = other.Dummy4;
7293 }
7294 if (other.HasDummy5) {
7295 Dummy5 = other.Dummy5;
7296 }
7297 if (other.HasDummy6) {
7298 Dummy6 = other.Dummy6;
7299 }
7300 if (other.HasDummy7) {
7301 Dummy7 = other.Dummy7;
7302 }
7303 if (other.HasDummy8) {
7304 Dummy8 = other.Dummy8;
7305 }
7306 if (other.HasDummy9) {
7307 Dummy9 = other.Dummy9;
7308 }
7309 if (other.HasDummy10) {
7310 Dummy10 = other.Dummy10;
7311 }
7312 if (other.HasDummy11) {
7313 Dummy11 = other.Dummy11;
7314 }
7315 if (other.HasDummy12) {
7316 Dummy12 = other.Dummy12;
7317 }
7318 if (other.HasDummy13) {
7319 Dummy13 = other.Dummy13;
7320 }
7321 if (other.HasDummy14) {
7322 Dummy14 = other.Dummy14;
7323 }
7324 if (other.HasDummy15) {
7325 Dummy15 = other.Dummy15;
7326 }
7327 if (other.HasDummy16) {
7328 Dummy16 = other.Dummy16;
7329 }
7330 if (other.HasDummy17) {
7331 Dummy17 = other.Dummy17;
7332 }
7333 if (other.HasDummy18) {
7334 Dummy18 = other.Dummy18;
7335 }
7336 if (other.HasDummy19) {
7337 Dummy19 = other.Dummy19;
7338 }
7339 if (other.HasDummy20) {
7340 Dummy20 = other.Dummy20;
7341 }
7342 if (other.HasDummy21) {
7343 Dummy21 = other.Dummy21;
7344 }
7345 if (other.HasDummy22) {
7346 Dummy22 = other.Dummy22;
7347 }
7348 if (other.HasDummy23) {
7349 Dummy23 = other.Dummy23;
7350 }
7351 if (other.HasDummy24) {
7352 Dummy24 = other.Dummy24;
7353 }
7354 if (other.HasDummy25) {
7355 Dummy25 = other.Dummy25;
7356 }
7357 if (other.HasDummy26) {
7358 Dummy26 = other.Dummy26;
7359 }
7360 if (other.HasDummy27) {
7361 Dummy27 = other.Dummy27;
7362 }
7363 if (other.HasDummy28) {
7364 Dummy28 = other.Dummy28;
7365 }
7366 if (other.HasDummy29) {
7367 Dummy29 = other.Dummy29;
7368 }
7369 if (other.HasDummy30) {
7370 Dummy30 = other.Dummy30;
7371 }
7372 if (other.HasDummy31) {
7373 Dummy31 = other.Dummy31;
7374 }
7375 if (other.HasDummy32) {
7376 Dummy32 = other.Dummy32;
7377 }
7378 if (other.HasC) {
7379 C = other.C;
7380 }
7381 this.MergeUnknownFields(other.UnknownFields);
7382 return this;
7383 }
7384
7385 public override Builder MergeFrom(pb::CodedInputStream input) {
7386 return MergeFrom(input, pb::ExtensionRegistry.Empty);
7387 }
7388
7389 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
7390 pb::UnknownFieldSet.Builder unknownFields = null;
7391 while (true) {
7392 uint tag = input.ReadTag();
7393 switch (tag) {
7394 case 0: {
7395 if (unknownFields != null) {
7396 this.UnknownFields = unknownFields.Build();
7397 }
7398 return this;
7399 }
7400 default: {
7401 if (pb::WireFormat.IsEndGroupTag(tag)) {
7402 if (unknownFields != null) {
7403 this.UnknownFields = unknownFields.Build();
7404 }
7405 return this;
7406 }
7407 if (unknownFields == null) {
7408 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
7409 }
7410 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
7411 break;
7412 }
7413 case 8: {
7414 A = input.ReadInt32();
7415 break;
7416 }
7417 case 16: {
7418 Dummy2 = input.ReadInt32();
7419 break;
7420 }
7421 case 24: {
7422 B = input.ReadInt32();
7423 break;
7424 }
7425 case 32: {
7426 Dummy4 = input.ReadInt32();
7427 break;
7428 }
7429 case 40: {
7430 Dummy5 = input.ReadInt32();
7431 break;
7432 }
7433 case 48: {
7434 Dummy6 = input.ReadInt32();
7435 break;
7436 }
7437 case 56: {
7438 Dummy7 = input.ReadInt32();
7439 break;
7440 }
7441 case 64: {
7442 Dummy8 = input.ReadInt32();
7443 break;
7444 }
7445 case 72: {
7446 Dummy9 = input.ReadInt32();
7447 break;
7448 }
7449 case 80: {
7450 Dummy10 = input.ReadInt32();
7451 break;
7452 }
7453 case 88: {
7454 Dummy11 = input.ReadInt32();
7455 break;
7456 }
7457 case 96: {
7458 Dummy12 = input.ReadInt32();
7459 break;
7460 }
7461 case 104: {
7462 Dummy13 = input.ReadInt32();
7463 break;
7464 }
7465 case 112: {
7466 Dummy14 = input.ReadInt32();
7467 break;
7468 }
7469 case 120: {
7470 Dummy15 = input.ReadInt32();
7471 break;
7472 }
7473 case 128: {
7474 Dummy16 = input.ReadInt32();
7475 break;
7476 }
7477 case 136: {
7478 Dummy17 = input.ReadInt32();
7479 break;
7480 }
7481 case 144: {
7482 Dummy18 = input.ReadInt32();
7483 break;
7484 }
7485 case 152: {
7486 Dummy19 = input.ReadInt32();
7487 break;
7488 }
7489 case 160: {
7490 Dummy20 = input.ReadInt32();
7491 break;
7492 }
7493 case 168: {
7494 Dummy21 = input.ReadInt32();
7495 break;
7496 }
7497 case 176: {
7498 Dummy22 = input.ReadInt32();
7499 break;
7500 }
7501 case 184: {
7502 Dummy23 = input.ReadInt32();
7503 break;
7504 }
7505 case 192: {
7506 Dummy24 = input.ReadInt32();
7507 break;
7508 }
7509 case 200: {
7510 Dummy25 = input.ReadInt32();
7511 break;
7512 }
7513 case 208: {
7514 Dummy26 = input.ReadInt32();
7515 break;
7516 }
7517 case 216: {
7518 Dummy27 = input.ReadInt32();
7519 break;
7520 }
7521 case 224: {
7522 Dummy28 = input.ReadInt32();
7523 break;
7524 }
7525 case 232: {
7526 Dummy29 = input.ReadInt32();
7527 break;
7528 }
7529 case 240: {
7530 Dummy30 = input.ReadInt32();
7531 break;
7532 }
7533 case 248: {
7534 Dummy31 = input.ReadInt32();
7535 break;
7536 }
7537 case 256: {
7538 Dummy32 = input.ReadInt32();
7539 break;
7540 }
7541 case 264: {
7542 C = input.ReadInt32();
7543 break;
7544 }
7545 }
7546 }
7547 }
7548
7549
7550 public bool HasA {
7551 get { return result.HasA; }
7552 }
7553 public int A {
7554 get { return result.A; }
7555 set { SetA(value); }
7556 }
7557 public Builder SetA(int value) {
7558 result.hasA = true;
7559 result.a_ = value;
7560 return this;
7561 }
7562 public Builder ClearA() {
7563 result.hasA = false;
7564 result.a_ = 0;
7565 return this;
7566 }
7567
7568 public bool HasDummy2 {
7569 get { return result.HasDummy2; }
7570 }
7571 public int Dummy2 {
7572 get { return result.Dummy2; }
7573 set { SetDummy2(value); }
7574 }
7575 public Builder SetDummy2(int value) {
7576 result.hasDummy2 = true;
7577 result.dummy2_ = value;
7578 return this;
7579 }
7580 public Builder ClearDummy2() {
7581 result.hasDummy2 = false;
7582 result.dummy2_ = 0;
7583 return this;
7584 }
7585
7586 public bool HasB {
7587 get { return result.HasB; }
7588 }
7589 public int B {
7590 get { return result.B; }
7591 set { SetB(value); }
7592 }
7593 public Builder SetB(int value) {
7594 result.hasB = true;
7595 result.b_ = value;
7596 return this;
7597 }
7598 public Builder ClearB() {
7599 result.hasB = false;
7600 result.b_ = 0;
7601 return this;
7602 }
7603
7604 public bool HasDummy4 {
7605 get { return result.HasDummy4; }
7606 }
7607 public int Dummy4 {
7608 get { return result.Dummy4; }
7609 set { SetDummy4(value); }
7610 }
7611 public Builder SetDummy4(int value) {
7612 result.hasDummy4 = true;
7613 result.dummy4_ = value;
7614 return this;
7615 }
7616 public Builder ClearDummy4() {
7617 result.hasDummy4 = false;
7618 result.dummy4_ = 0;
7619 return this;
7620 }
7621
7622 public bool HasDummy5 {
7623 get { return result.HasDummy5; }
7624 }
7625 public int Dummy5 {
7626 get { return result.Dummy5; }
7627 set { SetDummy5(value); }
7628 }
7629 public Builder SetDummy5(int value) {
7630 result.hasDummy5 = true;
7631 result.dummy5_ = value;
7632 return this;
7633 }
7634 public Builder ClearDummy5() {
7635 result.hasDummy5 = false;
7636 result.dummy5_ = 0;
7637 return this;
7638 }
7639
7640 public bool HasDummy6 {
7641 get { return result.HasDummy6; }
7642 }
7643 public int Dummy6 {
7644 get { return result.Dummy6; }
7645 set { SetDummy6(value); }
7646 }
7647 public Builder SetDummy6(int value) {
7648 result.hasDummy6 = true;
7649 result.dummy6_ = value;
7650 return this;
7651 }
7652 public Builder ClearDummy6() {
7653 result.hasDummy6 = false;
7654 result.dummy6_ = 0;
7655 return this;
7656 }
7657
7658 public bool HasDummy7 {
7659 get { return result.HasDummy7; }
7660 }
7661 public int Dummy7 {
7662 get { return result.Dummy7; }
7663 set { SetDummy7(value); }
7664 }
7665 public Builder SetDummy7(int value) {
7666 result.hasDummy7 = true;
7667 result.dummy7_ = value;
7668 return this;
7669 }
7670 public Builder ClearDummy7() {
7671 result.hasDummy7 = false;
7672 result.dummy7_ = 0;
7673 return this;
7674 }
7675
7676 public bool HasDummy8 {
7677 get { return result.HasDummy8; }
7678 }
7679 public int Dummy8 {
7680 get { return result.Dummy8; }
7681 set { SetDummy8(value); }
7682 }
7683 public Builder SetDummy8(int value) {
7684 result.hasDummy8 = true;
7685 result.dummy8_ = value;
7686 return this;
7687 }
7688 public Builder ClearDummy8() {
7689 result.hasDummy8 = false;
7690 result.dummy8_ = 0;
7691 return this;
7692 }
7693
7694 public bool HasDummy9 {
7695 get { return result.HasDummy9; }
7696 }
7697 public int Dummy9 {
7698 get { return result.Dummy9; }
7699 set { SetDummy9(value); }
7700 }
7701 public Builder SetDummy9(int value) {
7702 result.hasDummy9 = true;
7703 result.dummy9_ = value;
7704 return this;
7705 }
7706 public Builder ClearDummy9() {
7707 result.hasDummy9 = false;
7708 result.dummy9_ = 0;
7709 return this;
7710 }
7711
7712 public bool HasDummy10 {
7713 get { return result.HasDummy10; }
7714 }
7715 public int Dummy10 {
7716 get { return result.Dummy10; }
7717 set { SetDummy10(value); }
7718 }
7719 public Builder SetDummy10(int value) {
7720 result.hasDummy10 = true;
7721 result.dummy10_ = value;
7722 return this;
7723 }
7724 public Builder ClearDummy10() {
7725 result.hasDummy10 = false;
7726 result.dummy10_ = 0;
7727 return this;
7728 }
7729
7730 public bool HasDummy11 {
7731 get { return result.HasDummy11; }
7732 }
7733 public int Dummy11 {
7734 get { return result.Dummy11; }
7735 set { SetDummy11(value); }
7736 }
7737 public Builder SetDummy11(int value) {
7738 result.hasDummy11 = true;
7739 result.dummy11_ = value;
7740 return this;
7741 }
7742 public Builder ClearDummy11() {
7743 result.hasDummy11 = false;
7744 result.dummy11_ = 0;
7745 return this;
7746 }
7747
7748 public bool HasDummy12 {
7749 get { return result.HasDummy12; }
7750 }
7751 public int Dummy12 {
7752 get { return result.Dummy12; }
7753 set { SetDummy12(value); }
7754 }
7755 public Builder SetDummy12(int value) {
7756 result.hasDummy12 = true;
7757 result.dummy12_ = value;
7758 return this;
7759 }
7760 public Builder ClearDummy12() {
7761 result.hasDummy12 = false;
7762 result.dummy12_ = 0;
7763 return this;
7764 }
7765
7766 public bool HasDummy13 {
7767 get { return result.HasDummy13; }
7768 }
7769 public int Dummy13 {
7770 get { return result.Dummy13; }
7771 set { SetDummy13(value); }
7772 }
7773 public Builder SetDummy13(int value) {
7774 result.hasDummy13 = true;
7775 result.dummy13_ = value;
7776 return this;
7777 }
7778 public Builder ClearDummy13() {
7779 result.hasDummy13 = false;
7780 result.dummy13_ = 0;
7781 return this;
7782 }
7783
7784 public bool HasDummy14 {
7785 get { return result.HasDummy14; }
7786 }
7787 public int Dummy14 {
7788 get { return result.Dummy14; }
7789 set { SetDummy14(value); }
7790 }
7791 public Builder SetDummy14(int value) {
7792 result.hasDummy14 = true;
7793 result.dummy14_ = value;
7794 return this;
7795 }
7796 public Builder ClearDummy14() {
7797 result.hasDummy14 = false;
7798 result.dummy14_ = 0;
7799 return this;
7800 }
7801
7802 public bool HasDummy15 {
7803 get { return result.HasDummy15; }
7804 }
7805 public int Dummy15 {
7806 get { return result.Dummy15; }
7807 set { SetDummy15(value); }
7808 }
7809 public Builder SetDummy15(int value) {
7810 result.hasDummy15 = true;
7811 result.dummy15_ = value;
7812 return this;
7813 }
7814 public Builder ClearDummy15() {
7815 result.hasDummy15 = false;
7816 result.dummy15_ = 0;
7817 return this;
7818 }
7819
7820 public bool HasDummy16 {
7821 get { return result.HasDummy16; }
7822 }
7823 public int Dummy16 {
7824 get { return result.Dummy16; }
7825 set { SetDummy16(value); }
7826 }
7827 public Builder SetDummy16(int value) {
7828 result.hasDummy16 = true;
7829 result.dummy16_ = value;
7830 return this;
7831 }
7832 public Builder ClearDummy16() {
7833 result.hasDummy16 = false;
7834 result.dummy16_ = 0;
7835 return this;
7836 }
7837
7838 public bool HasDummy17 {
7839 get { return result.HasDummy17; }
7840 }
7841 public int Dummy17 {
7842 get { return result.Dummy17; }
7843 set { SetDummy17(value); }
7844 }
7845 public Builder SetDummy17(int value) {
7846 result.hasDummy17 = true;
7847 result.dummy17_ = value;
7848 return this;
7849 }
7850 public Builder ClearDummy17() {
7851 result.hasDummy17 = false;
7852 result.dummy17_ = 0;
7853 return this;
7854 }
7855
7856 public bool HasDummy18 {
7857 get { return result.HasDummy18; }
7858 }
7859 public int Dummy18 {
7860 get { return result.Dummy18; }
7861 set { SetDummy18(value); }
7862 }
7863 public Builder SetDummy18(int value) {
7864 result.hasDummy18 = true;
7865 result.dummy18_ = value;
7866 return this;
7867 }
7868 public Builder ClearDummy18() {
7869 result.hasDummy18 = false;
7870 result.dummy18_ = 0;
7871 return this;
7872 }
7873
7874 public bool HasDummy19 {
7875 get { return result.HasDummy19; }
7876 }
7877 public int Dummy19 {
7878 get { return result.Dummy19; }
7879 set { SetDummy19(value); }
7880 }
7881 public Builder SetDummy19(int value) {
7882 result.hasDummy19 = true;
7883 result.dummy19_ = value;
7884 return this;
7885 }
7886 public Builder ClearDummy19() {
7887 result.hasDummy19 = false;
7888 result.dummy19_ = 0;
7889 return this;
7890 }
7891
7892 public bool HasDummy20 {
7893 get { return result.HasDummy20; }
7894 }
7895 public int Dummy20 {
7896 get { return result.Dummy20; }
7897 set { SetDummy20(value); }
7898 }
7899 public Builder SetDummy20(int value) {
7900 result.hasDummy20 = true;
7901 result.dummy20_ = value;
7902 return this;
7903 }
7904 public Builder ClearDummy20() {
7905 result.hasDummy20 = false;
7906 result.dummy20_ = 0;
7907 return this;
7908 }
7909
7910 public bool HasDummy21 {
7911 get { return result.HasDummy21; }
7912 }
7913 public int Dummy21 {
7914 get { return result.Dummy21; }
7915 set { SetDummy21(value); }
7916 }
7917 public Builder SetDummy21(int value) {
7918 result.hasDummy21 = true;
7919 result.dummy21_ = value;
7920 return this;
7921 }
7922 public Builder ClearDummy21() {
7923 result.hasDummy21 = false;
7924 result.dummy21_ = 0;
7925 return this;
7926 }
7927
7928 public bool HasDummy22 {
7929 get { return result.HasDummy22; }
7930 }
7931 public int Dummy22 {
7932 get { return result.Dummy22; }
7933 set { SetDummy22(value); }
7934 }
7935 public Builder SetDummy22(int value) {
7936 result.hasDummy22 = true;
7937 result.dummy22_ = value;
7938 return this;
7939 }
7940 public Builder ClearDummy22() {
7941 result.hasDummy22 = false;
7942 result.dummy22_ = 0;
7943 return this;
7944 }
7945
7946 public bool HasDummy23 {
7947 get { return result.HasDummy23; }
7948 }
7949 public int Dummy23 {
7950 get { return result.Dummy23; }
7951 set { SetDummy23(value); }
7952 }
7953 public Builder SetDummy23(int value) {
7954 result.hasDummy23 = true;
7955 result.dummy23_ = value;
7956 return this;
7957 }
7958 public Builder ClearDummy23() {
7959 result.hasDummy23 = false;
7960 result.dummy23_ = 0;
7961 return this;
7962 }
7963
7964 public bool HasDummy24 {
7965 get { return result.HasDummy24; }
7966 }
7967 public int Dummy24 {
7968 get { return result.Dummy24; }
7969 set { SetDummy24(value); }
7970 }
7971 public Builder SetDummy24(int value) {
7972 result.hasDummy24 = true;
7973 result.dummy24_ = value;
7974 return this;
7975 }
7976 public Builder ClearDummy24() {
7977 result.hasDummy24 = false;
7978 result.dummy24_ = 0;
7979 return this;
7980 }
7981
7982 public bool HasDummy25 {
7983 get { return result.HasDummy25; }
7984 }
7985 public int Dummy25 {
7986 get { return result.Dummy25; }
7987 set { SetDummy25(value); }
7988 }
7989 public Builder SetDummy25(int value) {
7990 result.hasDummy25 = true;
7991 result.dummy25_ = value;
7992 return this;
7993 }
7994 public Builder ClearDummy25() {
7995 result.hasDummy25 = false;
7996 result.dummy25_ = 0;
7997 return this;
7998 }
7999
8000 public bool HasDummy26 {
8001 get { return result.HasDummy26; }
8002 }
8003 public int Dummy26 {
8004 get { return result.Dummy26; }
8005 set { SetDummy26(value); }
8006 }
8007 public Builder SetDummy26(int value) {
8008 result.hasDummy26 = true;
8009 result.dummy26_ = value;
8010 return this;
8011 }
8012 public Builder ClearDummy26() {
8013 result.hasDummy26 = false;
8014 result.dummy26_ = 0;
8015 return this;
8016 }
8017
8018 public bool HasDummy27 {
8019 get { return result.HasDummy27; }
8020 }
8021 public int Dummy27 {
8022 get { return result.Dummy27; }
8023 set { SetDummy27(value); }
8024 }
8025 public Builder SetDummy27(int value) {
8026 result.hasDummy27 = true;
8027 result.dummy27_ = value;
8028 return this;
8029 }
8030 public Builder ClearDummy27() {
8031 result.hasDummy27 = false;
8032 result.dummy27_ = 0;
8033 return this;
8034 }
8035
8036 public bool HasDummy28 {
8037 get { return result.HasDummy28; }
8038 }
8039 public int Dummy28 {
8040 get { return result.Dummy28; }
8041 set { SetDummy28(value); }
8042 }
8043 public Builder SetDummy28(int value) {
8044 result.hasDummy28 = true;
8045 result.dummy28_ = value;
8046 return this;
8047 }
8048 public Builder ClearDummy28() {
8049 result.hasDummy28 = false;
8050 result.dummy28_ = 0;
8051 return this;
8052 }
8053
8054 public bool HasDummy29 {
8055 get { return result.HasDummy29; }
8056 }
8057 public int Dummy29 {
8058 get { return result.Dummy29; }
8059 set { SetDummy29(value); }
8060 }
8061 public Builder SetDummy29(int value) {
8062 result.hasDummy29 = true;
8063 result.dummy29_ = value;
8064 return this;
8065 }
8066 public Builder ClearDummy29() {
8067 result.hasDummy29 = false;
8068 result.dummy29_ = 0;
8069 return this;
8070 }
8071
8072 public bool HasDummy30 {
8073 get { return result.HasDummy30; }
8074 }
8075 public int Dummy30 {
8076 get { return result.Dummy30; }
8077 set { SetDummy30(value); }
8078 }
8079 public Builder SetDummy30(int value) {
8080 result.hasDummy30 = true;
8081 result.dummy30_ = value;
8082 return this;
8083 }
8084 public Builder ClearDummy30() {
8085 result.hasDummy30 = false;
8086 result.dummy30_ = 0;
8087 return this;
8088 }
8089
8090 public bool HasDummy31 {
8091 get { return result.HasDummy31; }
8092 }
8093 public int Dummy31 {
8094 get { return result.Dummy31; }
8095 set { SetDummy31(value); }
8096 }
8097 public Builder SetDummy31(int value) {
8098 result.hasDummy31 = true;
8099 result.dummy31_ = value;
8100 return this;
8101 }
8102 public Builder ClearDummy31() {
8103 result.hasDummy31 = false;
8104 result.dummy31_ = 0;
8105 return this;
8106 }
8107
8108 public bool HasDummy32 {
8109 get { return result.HasDummy32; }
8110 }
8111 public int Dummy32 {
8112 get { return result.Dummy32; }
8113 set { SetDummy32(value); }
8114 }
8115 public Builder SetDummy32(int value) {
8116 result.hasDummy32 = true;
8117 result.dummy32_ = value;
8118 return this;
8119 }
8120 public Builder ClearDummy32() {
8121 result.hasDummy32 = false;
8122 result.dummy32_ = 0;
8123 return this;
8124 }
8125
8126 public bool HasC {
8127 get { return result.HasC; }
8128 }
8129 public int C {
8130 get { return result.C; }
8131 set { SetC(value); }
8132 }
8133 public Builder SetC(int value) {
8134 result.hasC = true;
8135 result.c_ = value;
8136 return this;
8137 }
8138 public Builder ClearC() {
8139 result.hasC = false;
8140 result.c_ = 0;
8141 return this;
8142 }
8143 }
8144 static TestRequired() {
8145 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8146 }
8147 }
8148
csharptest445bdce2011-05-20 15:50:54 -05008149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8150 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8151 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008152 public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
8153 private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial();
8154 public static TestRequiredForeign DefaultInstance {
8155 get { return defaultInstance; }
8156 }
8157
8158 public override TestRequiredForeign DefaultInstanceForType {
8159 get { return defaultInstance; }
8160 }
8161
8162 protected override TestRequiredForeign ThisMessage {
8163 get { return this; }
8164 }
8165
8166 public static pbd::MessageDescriptor Descriptor {
8167 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
8168 }
8169
8170 protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
8171 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
8172 }
8173
8174 public const int OptionalMessageFieldNumber = 1;
8175 private bool hasOptionalMessage;
8176 private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
8177 public bool HasOptionalMessage {
8178 get { return hasOptionalMessage; }
8179 }
8180 public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
8181 get { return optionalMessage_; }
8182 }
8183
8184 public const int RepeatedMessageFieldNumber = 2;
8185 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
8186 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
8187 get { return repeatedMessage_; }
8188 }
8189 public int RepeatedMessageCount {
8190 get { return repeatedMessage_.Count; }
8191 }
8192 public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
8193 return repeatedMessage_[index];
8194 }
8195
8196 public const int DummyFieldNumber = 3;
8197 private bool hasDummy;
8198 private int dummy_ = 0;
8199 public bool HasDummy {
8200 get { return hasDummy; }
8201 }
8202 public int Dummy {
8203 get { return dummy_; }
8204 }
8205
8206 public override bool IsInitialized {
8207 get {
8208 if (HasOptionalMessage) {
8209 if (!OptionalMessage.IsInitialized) return false;
8210 }
8211 foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
8212 if (!element.IsInitialized) return false;
8213 }
8214 return true;
8215 }
8216 }
8217
8218 public override void WriteTo(pb::CodedOutputStream output) {
8219 int size = SerializedSize;
8220 if (HasOptionalMessage) {
8221 output.WriteMessage(1, OptionalMessage);
8222 }
8223 foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
8224 output.WriteMessage(2, element);
8225 }
8226 if (HasDummy) {
8227 output.WriteInt32(3, Dummy);
8228 }
8229 UnknownFields.WriteTo(output);
8230 }
8231
8232 private int memoizedSerializedSize = -1;
8233 public override int SerializedSize {
8234 get {
8235 int size = memoizedSerializedSize;
8236 if (size != -1) return size;
8237
8238 size = 0;
8239 if (HasOptionalMessage) {
8240 size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
8241 }
8242 foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
8243 size += pb::CodedOutputStream.ComputeMessageSize(2, element);
8244 }
8245 if (HasDummy) {
8246 size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
8247 }
8248 size += UnknownFields.SerializedSize;
8249 memoizedSerializedSize = size;
8250 return size;
8251 }
8252 }
8253
8254 public static TestRequiredForeign ParseFrom(pb::ByteString data) {
8255 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8256 }
8257 public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8258 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8259 }
8260 public static TestRequiredForeign ParseFrom(byte[] data) {
8261 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8262 }
8263 public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8264 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8265 }
8266 public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
8267 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8268 }
8269 public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8270 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8271 }
8272 public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input) {
8273 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8274 }
8275 public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8276 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8277 }
8278 public static TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
8279 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8280 }
8281 public static TestRequiredForeign ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8282 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8283 }
8284 public static Builder CreateBuilder() { return new Builder(); }
8285 public override Builder ToBuilder() { return CreateBuilder(this); }
8286 public override Builder CreateBuilderForType() { return new Builder(); }
8287 public static Builder CreateBuilder(TestRequiredForeign prototype) {
8288 return (Builder) new Builder().MergeFrom(prototype);
8289 }
8290
csharptest445bdce2011-05-20 15:50:54 -05008291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8292 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8293 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008294 public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> {
8295 protected override Builder ThisBuilder {
8296 get { return this; }
8297 }
8298 public Builder() {}
8299
8300 TestRequiredForeign result = new TestRequiredForeign();
8301
8302 protected override TestRequiredForeign MessageBeingBuilt {
8303 get { return result; }
8304 }
8305
8306 public override Builder Clear() {
8307 result = new TestRequiredForeign();
8308 return this;
8309 }
8310
8311 public override Builder Clone() {
8312 return new Builder().MergeFrom(result);
8313 }
8314
8315 public override pbd::MessageDescriptor DescriptorForType {
8316 get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
8317 }
8318
8319 public override TestRequiredForeign DefaultInstanceForType {
8320 get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
8321 }
8322
8323 public override TestRequiredForeign BuildPartial() {
8324 if (result == null) {
8325 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8326 }
8327 result.repeatedMessage_.MakeReadOnly();
8328 TestRequiredForeign returnMe = result;
8329 result = null;
8330 return returnMe;
8331 }
8332
8333 public override Builder MergeFrom(pb::IMessage other) {
8334 if (other is TestRequiredForeign) {
8335 return MergeFrom((TestRequiredForeign) other);
8336 } else {
8337 base.MergeFrom(other);
8338 return this;
8339 }
8340 }
8341
8342 public override Builder MergeFrom(TestRequiredForeign other) {
8343 if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
8344 if (other.HasOptionalMessage) {
8345 MergeOptionalMessage(other.OptionalMessage);
8346 }
8347 if (other.repeatedMessage_.Count != 0) {
8348 base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
8349 }
8350 if (other.HasDummy) {
8351 Dummy = other.Dummy;
8352 }
8353 this.MergeUnknownFields(other.UnknownFields);
8354 return this;
8355 }
8356
8357 public override Builder MergeFrom(pb::CodedInputStream input) {
8358 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8359 }
8360
8361 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8362 pb::UnknownFieldSet.Builder unknownFields = null;
8363 while (true) {
8364 uint tag = input.ReadTag();
8365 switch (tag) {
8366 case 0: {
8367 if (unknownFields != null) {
8368 this.UnknownFields = unknownFields.Build();
8369 }
8370 return this;
8371 }
8372 default: {
8373 if (pb::WireFormat.IsEndGroupTag(tag)) {
8374 if (unknownFields != null) {
8375 this.UnknownFields = unknownFields.Build();
8376 }
8377 return this;
8378 }
8379 if (unknownFields == null) {
8380 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8381 }
8382 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
8383 break;
8384 }
8385 case 10: {
8386 global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
8387 if (HasOptionalMessage) {
8388 subBuilder.MergeFrom(OptionalMessage);
8389 }
8390 input.ReadMessage(subBuilder, extensionRegistry);
8391 OptionalMessage = subBuilder.BuildPartial();
8392 break;
8393 }
8394 case 18: {
8395 global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
8396 input.ReadMessage(subBuilder, extensionRegistry);
8397 AddRepeatedMessage(subBuilder.BuildPartial());
8398 break;
8399 }
8400 case 24: {
8401 Dummy = input.ReadInt32();
8402 break;
8403 }
8404 }
8405 }
8406 }
8407
8408
8409 public bool HasOptionalMessage {
8410 get { return result.HasOptionalMessage; }
8411 }
8412 public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
8413 get { return result.OptionalMessage; }
8414 set { SetOptionalMessage(value); }
8415 }
8416 public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8417 pb::ThrowHelper.ThrowIfNull(value, "value");
8418 result.hasOptionalMessage = true;
8419 result.optionalMessage_ = value;
8420 return this;
8421 }
8422 public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8423 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8424 result.hasOptionalMessage = true;
8425 result.optionalMessage_ = builderForValue.Build();
8426 return this;
8427 }
8428 public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8429 pb::ThrowHelper.ThrowIfNull(value, "value");
8430 if (result.HasOptionalMessage &&
8431 result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
8432 result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
8433 } else {
8434 result.optionalMessage_ = value;
8435 }
8436 result.hasOptionalMessage = true;
8437 return this;
8438 }
8439 public Builder ClearOptionalMessage() {
8440 result.hasOptionalMessage = false;
8441 result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
8442 return this;
8443 }
8444
8445 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
8446 get { return result.repeatedMessage_; }
8447 }
8448 public int RepeatedMessageCount {
8449 get { return result.RepeatedMessageCount; }
8450 }
8451 public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
8452 return result.GetRepeatedMessage(index);
8453 }
8454 public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8455 pb::ThrowHelper.ThrowIfNull(value, "value");
8456 result.repeatedMessage_[index] = value;
8457 return this;
8458 }
8459 public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8460 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8461 result.repeatedMessage_[index] = builderForValue.Build();
8462 return this;
8463 }
8464 public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
8465 pb::ThrowHelper.ThrowIfNull(value, "value");
8466 result.repeatedMessage_.Add(value);
8467 return this;
8468 }
8469 public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
8470 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8471 result.repeatedMessage_.Add(builderForValue.Build());
8472 return this;
8473 }
8474 public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
8475 base.AddRange(values, result.repeatedMessage_);
8476 return this;
8477 }
8478 public Builder ClearRepeatedMessage() {
8479 result.repeatedMessage_.Clear();
8480 return this;
8481 }
8482
8483 public bool HasDummy {
8484 get { return result.HasDummy; }
8485 }
8486 public int Dummy {
8487 get { return result.Dummy; }
8488 set { SetDummy(value); }
8489 }
8490 public Builder SetDummy(int value) {
8491 result.hasDummy = true;
8492 result.dummy_ = value;
8493 return this;
8494 }
8495 public Builder ClearDummy() {
8496 result.hasDummy = false;
8497 result.dummy_ = 0;
8498 return this;
8499 }
8500 }
8501 static TestRequiredForeign() {
8502 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8503 }
8504 }
8505
csharptest445bdce2011-05-20 15:50:54 -05008506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8507 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8508 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008509 public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
8510 private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial();
8511 public static TestForeignNested DefaultInstance {
8512 get { return defaultInstance; }
8513 }
8514
8515 public override TestForeignNested DefaultInstanceForType {
8516 get { return defaultInstance; }
8517 }
8518
8519 protected override TestForeignNested ThisMessage {
8520 get { return this; }
8521 }
8522
8523 public static pbd::MessageDescriptor Descriptor {
8524 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
8525 }
8526
8527 protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
8528 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
8529 }
8530
8531 public const int ForeignNestedFieldNumber = 1;
8532 private bool hasForeignNested;
8533 private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
8534 public bool HasForeignNested {
8535 get { return hasForeignNested; }
8536 }
8537 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
8538 get { return foreignNested_; }
8539 }
8540
8541 public override bool IsInitialized {
8542 get {
8543 return true;
8544 }
8545 }
8546
8547 public override void WriteTo(pb::CodedOutputStream output) {
8548 int size = SerializedSize;
8549 if (HasForeignNested) {
8550 output.WriteMessage(1, ForeignNested);
8551 }
8552 UnknownFields.WriteTo(output);
8553 }
8554
8555 private int memoizedSerializedSize = -1;
8556 public override int SerializedSize {
8557 get {
8558 int size = memoizedSerializedSize;
8559 if (size != -1) return size;
8560
8561 size = 0;
8562 if (HasForeignNested) {
8563 size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
8564 }
8565 size += UnknownFields.SerializedSize;
8566 memoizedSerializedSize = size;
8567 return size;
8568 }
8569 }
8570
8571 public static TestForeignNested ParseFrom(pb::ByteString data) {
8572 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8573 }
8574 public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8575 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8576 }
8577 public static TestForeignNested ParseFrom(byte[] data) {
8578 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8579 }
8580 public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8581 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8582 }
8583 public static TestForeignNested ParseFrom(global::System.IO.Stream input) {
8584 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8585 }
8586 public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8587 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8588 }
8589 public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input) {
8590 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8591 }
8592 public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8593 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8594 }
8595 public static TestForeignNested ParseFrom(pb::CodedInputStream input) {
8596 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8597 }
8598 public static TestForeignNested ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8599 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8600 }
8601 public static Builder CreateBuilder() { return new Builder(); }
8602 public override Builder ToBuilder() { return CreateBuilder(this); }
8603 public override Builder CreateBuilderForType() { return new Builder(); }
8604 public static Builder CreateBuilder(TestForeignNested prototype) {
8605 return (Builder) new Builder().MergeFrom(prototype);
8606 }
8607
csharptest445bdce2011-05-20 15:50:54 -05008608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8609 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8610 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008611 public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> {
8612 protected override Builder ThisBuilder {
8613 get { return this; }
8614 }
8615 public Builder() {}
8616
8617 TestForeignNested result = new TestForeignNested();
8618
8619 protected override TestForeignNested MessageBeingBuilt {
8620 get { return result; }
8621 }
8622
8623 public override Builder Clear() {
8624 result = new TestForeignNested();
8625 return this;
8626 }
8627
8628 public override Builder Clone() {
8629 return new Builder().MergeFrom(result);
8630 }
8631
8632 public override pbd::MessageDescriptor DescriptorForType {
8633 get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
8634 }
8635
8636 public override TestForeignNested DefaultInstanceForType {
8637 get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
8638 }
8639
8640 public override TestForeignNested BuildPartial() {
8641 if (result == null) {
8642 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8643 }
8644 TestForeignNested returnMe = result;
8645 result = null;
8646 return returnMe;
8647 }
8648
8649 public override Builder MergeFrom(pb::IMessage other) {
8650 if (other is TestForeignNested) {
8651 return MergeFrom((TestForeignNested) other);
8652 } else {
8653 base.MergeFrom(other);
8654 return this;
8655 }
8656 }
8657
8658 public override Builder MergeFrom(TestForeignNested other) {
8659 if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
8660 if (other.HasForeignNested) {
8661 MergeForeignNested(other.ForeignNested);
8662 }
8663 this.MergeUnknownFields(other.UnknownFields);
8664 return this;
8665 }
8666
8667 public override Builder MergeFrom(pb::CodedInputStream input) {
8668 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8669 }
8670
8671 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8672 pb::UnknownFieldSet.Builder unknownFields = null;
8673 while (true) {
8674 uint tag = input.ReadTag();
8675 switch (tag) {
8676 case 0: {
8677 if (unknownFields != null) {
8678 this.UnknownFields = unknownFields.Build();
8679 }
8680 return this;
8681 }
8682 default: {
8683 if (pb::WireFormat.IsEndGroupTag(tag)) {
8684 if (unknownFields != null) {
8685 this.UnknownFields = unknownFields.Build();
8686 }
8687 return this;
8688 }
8689 if (unknownFields == null) {
8690 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8691 }
8692 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
8693 break;
8694 }
8695 case 10: {
8696 global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
8697 if (HasForeignNested) {
8698 subBuilder.MergeFrom(ForeignNested);
8699 }
8700 input.ReadMessage(subBuilder, extensionRegistry);
8701 ForeignNested = subBuilder.BuildPartial();
8702 break;
8703 }
8704 }
8705 }
8706 }
8707
8708
8709 public bool HasForeignNested {
8710 get { return result.HasForeignNested; }
8711 }
8712 public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
8713 get { return result.ForeignNested; }
8714 set { SetForeignNested(value); }
8715 }
8716 public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
8717 pb::ThrowHelper.ThrowIfNull(value, "value");
8718 result.hasForeignNested = true;
8719 result.foreignNested_ = value;
8720 return this;
8721 }
8722 public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
8723 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
8724 result.hasForeignNested = true;
8725 result.foreignNested_ = builderForValue.Build();
8726 return this;
8727 }
8728 public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
8729 pb::ThrowHelper.ThrowIfNull(value, "value");
8730 if (result.HasForeignNested &&
8731 result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
8732 result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
8733 } else {
8734 result.foreignNested_ = value;
8735 }
8736 result.hasForeignNested = true;
8737 return this;
8738 }
8739 public Builder ClearForeignNested() {
8740 result.hasForeignNested = false;
8741 result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
8742 return this;
8743 }
8744 }
8745 static TestForeignNested() {
8746 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8747 }
8748 }
8749
csharptest445bdce2011-05-20 15:50:54 -05008750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8751 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8752 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008753 public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
8754 private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial();
8755 public static TestEmptyMessage DefaultInstance {
8756 get { return defaultInstance; }
8757 }
8758
8759 public override TestEmptyMessage DefaultInstanceForType {
8760 get { return defaultInstance; }
8761 }
8762
8763 protected override TestEmptyMessage ThisMessage {
8764 get { return this; }
8765 }
8766
8767 public static pbd::MessageDescriptor Descriptor {
8768 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
8769 }
8770
8771 protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
8772 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
8773 }
8774
8775 public override bool IsInitialized {
8776 get {
8777 return true;
8778 }
8779 }
8780
8781 public override void WriteTo(pb::CodedOutputStream output) {
8782 int size = SerializedSize;
8783 UnknownFields.WriteTo(output);
8784 }
8785
8786 private int memoizedSerializedSize = -1;
8787 public override int SerializedSize {
8788 get {
8789 int size = memoizedSerializedSize;
8790 if (size != -1) return size;
8791
8792 size = 0;
8793 size += UnknownFields.SerializedSize;
8794 memoizedSerializedSize = size;
8795 return size;
8796 }
8797 }
8798
8799 public static TestEmptyMessage ParseFrom(pb::ByteString data) {
8800 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8801 }
8802 public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8803 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8804 }
8805 public static TestEmptyMessage ParseFrom(byte[] data) {
8806 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8807 }
8808 public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8809 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8810 }
8811 public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
8812 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8813 }
8814 public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8815 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8816 }
8817 public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
8818 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8819 }
8820 public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8821 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8822 }
8823 public static TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
8824 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8825 }
8826 public static TestEmptyMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8827 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8828 }
8829 public static Builder CreateBuilder() { return new Builder(); }
8830 public override Builder ToBuilder() { return CreateBuilder(this); }
8831 public override Builder CreateBuilderForType() { return new Builder(); }
8832 public static Builder CreateBuilder(TestEmptyMessage prototype) {
8833 return (Builder) new Builder().MergeFrom(prototype);
8834 }
8835
csharptest445bdce2011-05-20 15:50:54 -05008836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8837 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8838 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008839 public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> {
8840 protected override Builder ThisBuilder {
8841 get { return this; }
8842 }
8843 public Builder() {}
8844
8845 TestEmptyMessage result = new TestEmptyMessage();
8846
8847 protected override TestEmptyMessage MessageBeingBuilt {
8848 get { return result; }
8849 }
8850
8851 public override Builder Clear() {
8852 result = new TestEmptyMessage();
8853 return this;
8854 }
8855
8856 public override Builder Clone() {
8857 return new Builder().MergeFrom(result);
8858 }
8859
8860 public override pbd::MessageDescriptor DescriptorForType {
8861 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
8862 }
8863
8864 public override TestEmptyMessage DefaultInstanceForType {
8865 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
8866 }
8867
8868 public override TestEmptyMessage BuildPartial() {
8869 if (result == null) {
8870 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8871 }
8872 TestEmptyMessage returnMe = result;
8873 result = null;
8874 return returnMe;
8875 }
8876
8877 public override Builder MergeFrom(pb::IMessage other) {
8878 if (other is TestEmptyMessage) {
8879 return MergeFrom((TestEmptyMessage) other);
8880 } else {
8881 base.MergeFrom(other);
8882 return this;
8883 }
8884 }
8885
8886 public override Builder MergeFrom(TestEmptyMessage other) {
8887 if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
8888 this.MergeUnknownFields(other.UnknownFields);
8889 return this;
8890 }
8891
8892 public override Builder MergeFrom(pb::CodedInputStream input) {
8893 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8894 }
8895
8896 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
8897 pb::UnknownFieldSet.Builder unknownFields = null;
8898 while (true) {
8899 uint tag = input.ReadTag();
8900 switch (tag) {
8901 case 0: {
8902 if (unknownFields != null) {
8903 this.UnknownFields = unknownFields.Build();
8904 }
8905 return this;
8906 }
8907 default: {
8908 if (pb::WireFormat.IsEndGroupTag(tag)) {
8909 if (unknownFields != null) {
8910 this.UnknownFields = unknownFields.Build();
8911 }
8912 return this;
8913 }
8914 if (unknownFields == null) {
8915 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
8916 }
8917 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
8918 break;
8919 }
8920 }
8921 }
8922 }
8923
8924 }
8925 static TestEmptyMessage() {
8926 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
8927 }
8928 }
8929
csharptest445bdce2011-05-20 15:50:54 -05008930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8931 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8932 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008933 public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
8934 private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial();
8935 public static TestEmptyMessageWithExtensions DefaultInstance {
8936 get { return defaultInstance; }
8937 }
8938
8939 public override TestEmptyMessageWithExtensions DefaultInstanceForType {
8940 get { return defaultInstance; }
8941 }
8942
8943 protected override TestEmptyMessageWithExtensions ThisMessage {
8944 get { return this; }
8945 }
8946
8947 public static pbd::MessageDescriptor Descriptor {
8948 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
8949 }
8950
8951 protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
8952 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
8953 }
8954
8955 public override bool IsInitialized {
8956 get {
8957 if (!ExtensionsAreInitialized) return false;
8958 return true;
8959 }
8960 }
8961
8962 public override void WriteTo(pb::CodedOutputStream output) {
8963 int size = SerializedSize;
8964 pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
8965 extensionWriter.WriteUntil(536870912, output);
8966 UnknownFields.WriteTo(output);
8967 }
8968
8969 private int memoizedSerializedSize = -1;
8970 public override int SerializedSize {
8971 get {
8972 int size = memoizedSerializedSize;
8973 if (size != -1) return size;
8974
8975 size = 0;
8976 size += ExtensionsSerializedSize;
8977 size += UnknownFields.SerializedSize;
8978 memoizedSerializedSize = size;
8979 return size;
8980 }
8981 }
8982
8983 public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
8984 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8985 }
8986 public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8987 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8988 }
8989 public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
8990 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8991 }
8992 public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8993 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8994 }
8995 public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
8996 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8997 }
8998 public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8999 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9000 }
9001 public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
9002 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9003 }
9004 public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9005 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9006 }
9007 public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
9008 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9009 }
9010 public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9011 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9012 }
9013 public static Builder CreateBuilder() { return new Builder(); }
9014 public override Builder ToBuilder() { return CreateBuilder(this); }
9015 public override Builder CreateBuilderForType() { return new Builder(); }
9016 public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) {
9017 return (Builder) new Builder().MergeFrom(prototype);
9018 }
9019
csharptest445bdce2011-05-20 15:50:54 -05009020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9021 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9022 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009023 public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> {
9024 protected override Builder ThisBuilder {
9025 get { return this; }
9026 }
9027 public Builder() {}
9028
9029 TestEmptyMessageWithExtensions result = new TestEmptyMessageWithExtensions();
9030
9031 protected override TestEmptyMessageWithExtensions MessageBeingBuilt {
9032 get { return result; }
9033 }
9034
9035 public override Builder Clear() {
9036 result = new TestEmptyMessageWithExtensions();
9037 return this;
9038 }
9039
9040 public override Builder Clone() {
9041 return new Builder().MergeFrom(result);
9042 }
9043
9044 public override pbd::MessageDescriptor DescriptorForType {
9045 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
9046 }
9047
9048 public override TestEmptyMessageWithExtensions DefaultInstanceForType {
9049 get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
9050 }
9051
9052 public override TestEmptyMessageWithExtensions BuildPartial() {
9053 if (result == null) {
9054 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9055 }
9056 TestEmptyMessageWithExtensions returnMe = result;
9057 result = null;
9058 return returnMe;
9059 }
9060
9061 public override Builder MergeFrom(pb::IMessage other) {
9062 if (other is TestEmptyMessageWithExtensions) {
9063 return MergeFrom((TestEmptyMessageWithExtensions) other);
9064 } else {
9065 base.MergeFrom(other);
9066 return this;
9067 }
9068 }
9069
9070 public override Builder MergeFrom(TestEmptyMessageWithExtensions other) {
9071 if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
9072 this.MergeExtensionFields(other);
9073 this.MergeUnknownFields(other.UnknownFields);
9074 return this;
9075 }
9076
9077 public override Builder MergeFrom(pb::CodedInputStream input) {
9078 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9079 }
9080
9081 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9082 pb::UnknownFieldSet.Builder unknownFields = null;
9083 while (true) {
9084 uint tag = input.ReadTag();
9085 switch (tag) {
9086 case 0: {
9087 if (unknownFields != null) {
9088 this.UnknownFields = unknownFields.Build();
9089 }
9090 return this;
9091 }
9092 default: {
9093 if (pb::WireFormat.IsEndGroupTag(tag)) {
9094 if (unknownFields != null) {
9095 this.UnknownFields = unknownFields.Build();
9096 }
9097 return this;
9098 }
9099 if (unknownFields == null) {
9100 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9101 }
9102 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
9103 break;
9104 }
9105 }
9106 }
9107 }
9108
9109 }
9110 static TestEmptyMessageWithExtensions() {
9111 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9112 }
9113 }
9114
csharptest445bdce2011-05-20 15:50:54 -05009115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9116 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9117 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009118 public sealed partial class TestMultipleExtensionRanges : pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> {
9119 private static readonly TestMultipleExtensionRanges defaultInstance = new Builder().BuildPartial();
9120 public static TestMultipleExtensionRanges DefaultInstance {
9121 get { return defaultInstance; }
9122 }
9123
9124 public override TestMultipleExtensionRanges DefaultInstanceForType {
9125 get { return defaultInstance; }
9126 }
9127
9128 protected override TestMultipleExtensionRanges ThisMessage {
9129 get { return this; }
9130 }
9131
9132 public static pbd::MessageDescriptor Descriptor {
9133 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor; }
9134 }
9135
9136 protected override pb::FieldAccess.FieldAccessorTable<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> InternalFieldAccessors {
9137 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable; }
9138 }
9139
9140 public override bool IsInitialized {
9141 get {
9142 if (!ExtensionsAreInitialized) return false;
9143 return true;
9144 }
9145 }
9146
9147 public override void WriteTo(pb::CodedOutputStream output) {
9148 int size = SerializedSize;
9149 pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
9150 extensionWriter.WriteUntil(43, output);
9151 extensionWriter.WriteUntil(4244, output);
9152 extensionWriter.WriteUntil(536870912, output);
9153 UnknownFields.WriteTo(output);
9154 }
9155
9156 private int memoizedSerializedSize = -1;
9157 public override int SerializedSize {
9158 get {
9159 int size = memoizedSerializedSize;
9160 if (size != -1) return size;
9161
9162 size = 0;
9163 size += ExtensionsSerializedSize;
9164 size += UnknownFields.SerializedSize;
9165 memoizedSerializedSize = size;
9166 return size;
9167 }
9168 }
9169
9170 public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data) {
9171 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9172 }
9173 public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9174 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9175 }
9176 public static TestMultipleExtensionRanges ParseFrom(byte[] data) {
9177 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9178 }
9179 public static TestMultipleExtensionRanges ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9180 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9181 }
9182 public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input) {
9183 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9184 }
9185 public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9186 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9187 }
9188 public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input) {
9189 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9190 }
9191 public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9192 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9193 }
9194 public static TestMultipleExtensionRanges ParseFrom(pb::CodedInputStream input) {
9195 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9196 }
9197 public static TestMultipleExtensionRanges ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9198 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9199 }
9200 public static Builder CreateBuilder() { return new Builder(); }
9201 public override Builder ToBuilder() { return CreateBuilder(this); }
9202 public override Builder CreateBuilderForType() { return new Builder(); }
9203 public static Builder CreateBuilder(TestMultipleExtensionRanges prototype) {
9204 return (Builder) new Builder().MergeFrom(prototype);
9205 }
9206
csharptest445bdce2011-05-20 15:50:54 -05009207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9208 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9209 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009210 public sealed partial class Builder : pb::ExtendableBuilder<TestMultipleExtensionRanges, Builder> {
9211 protected override Builder ThisBuilder {
9212 get { return this; }
9213 }
9214 public Builder() {}
9215
9216 TestMultipleExtensionRanges result = new TestMultipleExtensionRanges();
9217
9218 protected override TestMultipleExtensionRanges MessageBeingBuilt {
9219 get { return result; }
9220 }
9221
9222 public override Builder Clear() {
9223 result = new TestMultipleExtensionRanges();
9224 return this;
9225 }
9226
9227 public override Builder Clone() {
9228 return new Builder().MergeFrom(result);
9229 }
9230
9231 public override pbd::MessageDescriptor DescriptorForType {
9232 get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Descriptor; }
9233 }
9234
9235 public override TestMultipleExtensionRanges DefaultInstanceForType {
9236 get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance; }
9237 }
9238
9239 public override TestMultipleExtensionRanges BuildPartial() {
9240 if (result == null) {
9241 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9242 }
9243 TestMultipleExtensionRanges returnMe = result;
9244 result = null;
9245 return returnMe;
9246 }
9247
9248 public override Builder MergeFrom(pb::IMessage other) {
9249 if (other is TestMultipleExtensionRanges) {
9250 return MergeFrom((TestMultipleExtensionRanges) other);
9251 } else {
9252 base.MergeFrom(other);
9253 return this;
9254 }
9255 }
9256
9257 public override Builder MergeFrom(TestMultipleExtensionRanges other) {
9258 if (other == global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance) return this;
9259 this.MergeExtensionFields(other);
9260 this.MergeUnknownFields(other.UnknownFields);
9261 return this;
9262 }
9263
9264 public override Builder MergeFrom(pb::CodedInputStream input) {
9265 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9266 }
9267
9268 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9269 pb::UnknownFieldSet.Builder unknownFields = null;
9270 while (true) {
9271 uint tag = input.ReadTag();
9272 switch (tag) {
9273 case 0: {
9274 if (unknownFields != null) {
9275 this.UnknownFields = unknownFields.Build();
9276 }
9277 return this;
9278 }
9279 default: {
9280 if (pb::WireFormat.IsEndGroupTag(tag)) {
9281 if (unknownFields != null) {
9282 this.UnknownFields = unknownFields.Build();
9283 }
9284 return this;
9285 }
9286 if (unknownFields == null) {
9287 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9288 }
9289 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
9290 break;
9291 }
9292 }
9293 }
9294 }
9295
9296 }
9297 static TestMultipleExtensionRanges() {
9298 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9299 }
9300 }
9301
csharptest445bdce2011-05-20 15:50:54 -05009302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9303 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9304 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009305 public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
9306 private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial();
9307 public static TestReallyLargeTagNumber DefaultInstance {
9308 get { return defaultInstance; }
9309 }
9310
9311 public override TestReallyLargeTagNumber DefaultInstanceForType {
9312 get { return defaultInstance; }
9313 }
9314
9315 protected override TestReallyLargeTagNumber ThisMessage {
9316 get { return this; }
9317 }
9318
9319 public static pbd::MessageDescriptor Descriptor {
9320 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
9321 }
9322
9323 protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
9324 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
9325 }
9326
9327 public const int AFieldNumber = 1;
9328 private bool hasA;
9329 private int a_ = 0;
9330 public bool HasA {
9331 get { return hasA; }
9332 }
9333 public int A {
9334 get { return a_; }
9335 }
9336
9337 public const int BbFieldNumber = 268435455;
9338 private bool hasBb;
9339 private int bb_ = 0;
9340 public bool HasBb {
9341 get { return hasBb; }
9342 }
9343 public int Bb {
9344 get { return bb_; }
9345 }
9346
9347 public override bool IsInitialized {
9348 get {
9349 return true;
9350 }
9351 }
9352
9353 public override void WriteTo(pb::CodedOutputStream output) {
9354 int size = SerializedSize;
9355 if (HasA) {
9356 output.WriteInt32(1, A);
9357 }
9358 if (HasBb) {
9359 output.WriteInt32(268435455, Bb);
9360 }
9361 UnknownFields.WriteTo(output);
9362 }
9363
9364 private int memoizedSerializedSize = -1;
9365 public override int SerializedSize {
9366 get {
9367 int size = memoizedSerializedSize;
9368 if (size != -1) return size;
9369
9370 size = 0;
9371 if (HasA) {
9372 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
9373 }
9374 if (HasBb) {
9375 size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
9376 }
9377 size += UnknownFields.SerializedSize;
9378 memoizedSerializedSize = size;
9379 return size;
9380 }
9381 }
9382
9383 public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
9384 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9385 }
9386 public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9387 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9388 }
9389 public static TestReallyLargeTagNumber ParseFrom(byte[] data) {
9390 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9391 }
9392 public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9393 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9394 }
9395 public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
9396 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9397 }
9398 public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9399 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9400 }
9401 public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input) {
9402 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9403 }
9404 public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9405 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9406 }
9407 public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
9408 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9409 }
9410 public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9411 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9412 }
9413 public static Builder CreateBuilder() { return new Builder(); }
9414 public override Builder ToBuilder() { return CreateBuilder(this); }
9415 public override Builder CreateBuilderForType() { return new Builder(); }
9416 public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) {
9417 return (Builder) new Builder().MergeFrom(prototype);
9418 }
9419
csharptest445bdce2011-05-20 15:50:54 -05009420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9421 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9422 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009423 public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> {
9424 protected override Builder ThisBuilder {
9425 get { return this; }
9426 }
9427 public Builder() {}
9428
9429 TestReallyLargeTagNumber result = new TestReallyLargeTagNumber();
9430
9431 protected override TestReallyLargeTagNumber MessageBeingBuilt {
9432 get { return result; }
9433 }
9434
9435 public override Builder Clear() {
9436 result = new TestReallyLargeTagNumber();
9437 return this;
9438 }
9439
9440 public override Builder Clone() {
9441 return new Builder().MergeFrom(result);
9442 }
9443
9444 public override pbd::MessageDescriptor DescriptorForType {
9445 get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
9446 }
9447
9448 public override TestReallyLargeTagNumber DefaultInstanceForType {
9449 get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
9450 }
9451
9452 public override TestReallyLargeTagNumber BuildPartial() {
9453 if (result == null) {
9454 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9455 }
9456 TestReallyLargeTagNumber returnMe = result;
9457 result = null;
9458 return returnMe;
9459 }
9460
9461 public override Builder MergeFrom(pb::IMessage other) {
9462 if (other is TestReallyLargeTagNumber) {
9463 return MergeFrom((TestReallyLargeTagNumber) other);
9464 } else {
9465 base.MergeFrom(other);
9466 return this;
9467 }
9468 }
9469
9470 public override Builder MergeFrom(TestReallyLargeTagNumber other) {
9471 if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
9472 if (other.HasA) {
9473 A = other.A;
9474 }
9475 if (other.HasBb) {
9476 Bb = other.Bb;
9477 }
9478 this.MergeUnknownFields(other.UnknownFields);
9479 return this;
9480 }
9481
9482 public override Builder MergeFrom(pb::CodedInputStream input) {
9483 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9484 }
9485
9486 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9487 pb::UnknownFieldSet.Builder unknownFields = null;
9488 while (true) {
9489 uint tag = input.ReadTag();
9490 switch (tag) {
9491 case 0: {
9492 if (unknownFields != null) {
9493 this.UnknownFields = unknownFields.Build();
9494 }
9495 return this;
9496 }
9497 default: {
9498 if (pb::WireFormat.IsEndGroupTag(tag)) {
9499 if (unknownFields != null) {
9500 this.UnknownFields = unknownFields.Build();
9501 }
9502 return this;
9503 }
9504 if (unknownFields == null) {
9505 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9506 }
9507 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
9508 break;
9509 }
9510 case 8: {
9511 A = input.ReadInt32();
9512 break;
9513 }
9514 case 2147483640: {
9515 Bb = input.ReadInt32();
9516 break;
9517 }
9518 }
9519 }
9520 }
9521
9522
9523 public bool HasA {
9524 get { return result.HasA; }
9525 }
9526 public int A {
9527 get { return result.A; }
9528 set { SetA(value); }
9529 }
9530 public Builder SetA(int value) {
9531 result.hasA = true;
9532 result.a_ = value;
9533 return this;
9534 }
9535 public Builder ClearA() {
9536 result.hasA = false;
9537 result.a_ = 0;
9538 return this;
9539 }
9540
9541 public bool HasBb {
9542 get { return result.HasBb; }
9543 }
9544 public int Bb {
9545 get { return result.Bb; }
9546 set { SetBb(value); }
9547 }
9548 public Builder SetBb(int value) {
9549 result.hasBb = true;
9550 result.bb_ = value;
9551 return this;
9552 }
9553 public Builder ClearBb() {
9554 result.hasBb = false;
9555 result.bb_ = 0;
9556 return this;
9557 }
9558 }
9559 static TestReallyLargeTagNumber() {
9560 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9561 }
9562 }
9563
csharptest445bdce2011-05-20 15:50:54 -05009564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9565 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9566 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009567 public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
9568 private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial();
9569 public static TestRecursiveMessage DefaultInstance {
9570 get { return defaultInstance; }
9571 }
9572
9573 public override TestRecursiveMessage DefaultInstanceForType {
9574 get { return defaultInstance; }
9575 }
9576
9577 protected override TestRecursiveMessage ThisMessage {
9578 get { return this; }
9579 }
9580
9581 public static pbd::MessageDescriptor Descriptor {
9582 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
9583 }
9584
9585 protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
9586 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
9587 }
9588
9589 public const int AFieldNumber = 1;
9590 private bool hasA;
9591 private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
9592 public bool HasA {
9593 get { return hasA; }
9594 }
9595 public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
9596 get { return a_; }
9597 }
9598
9599 public const int IFieldNumber = 2;
9600 private bool hasI;
9601 private int i_ = 0;
9602 public bool HasI {
9603 get { return hasI; }
9604 }
9605 public int I {
9606 get { return i_; }
9607 }
9608
9609 public override bool IsInitialized {
9610 get {
9611 return true;
9612 }
9613 }
9614
9615 public override void WriteTo(pb::CodedOutputStream output) {
9616 int size = SerializedSize;
9617 if (HasA) {
9618 output.WriteMessage(1, A);
9619 }
9620 if (HasI) {
9621 output.WriteInt32(2, I);
9622 }
9623 UnknownFields.WriteTo(output);
9624 }
9625
9626 private int memoizedSerializedSize = -1;
9627 public override int SerializedSize {
9628 get {
9629 int size = memoizedSerializedSize;
9630 if (size != -1) return size;
9631
9632 size = 0;
9633 if (HasA) {
9634 size += pb::CodedOutputStream.ComputeMessageSize(1, A);
9635 }
9636 if (HasI) {
9637 size += pb::CodedOutputStream.ComputeInt32Size(2, I);
9638 }
9639 size += UnknownFields.SerializedSize;
9640 memoizedSerializedSize = size;
9641 return size;
9642 }
9643 }
9644
9645 public static TestRecursiveMessage ParseFrom(pb::ByteString data) {
9646 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9647 }
9648 public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9649 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9650 }
9651 public static TestRecursiveMessage ParseFrom(byte[] data) {
9652 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9653 }
9654 public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9655 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9656 }
9657 public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
9658 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9659 }
9660 public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9661 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9662 }
9663 public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input) {
9664 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9665 }
9666 public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9667 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9668 }
9669 public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
9670 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9671 }
9672 public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9673 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9674 }
9675 public static Builder CreateBuilder() { return new Builder(); }
9676 public override Builder ToBuilder() { return CreateBuilder(this); }
9677 public override Builder CreateBuilderForType() { return new Builder(); }
9678 public static Builder CreateBuilder(TestRecursiveMessage prototype) {
9679 return (Builder) new Builder().MergeFrom(prototype);
9680 }
9681
csharptest445bdce2011-05-20 15:50:54 -05009682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9683 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9684 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009685 public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> {
9686 protected override Builder ThisBuilder {
9687 get { return this; }
9688 }
9689 public Builder() {}
9690
9691 TestRecursiveMessage result = new TestRecursiveMessage();
9692
9693 protected override TestRecursiveMessage MessageBeingBuilt {
9694 get { return result; }
9695 }
9696
9697 public override Builder Clear() {
9698 result = new TestRecursiveMessage();
9699 return this;
9700 }
9701
9702 public override Builder Clone() {
9703 return new Builder().MergeFrom(result);
9704 }
9705
9706 public override pbd::MessageDescriptor DescriptorForType {
9707 get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
9708 }
9709
9710 public override TestRecursiveMessage DefaultInstanceForType {
9711 get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
9712 }
9713
9714 public override TestRecursiveMessage BuildPartial() {
9715 if (result == null) {
9716 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9717 }
9718 TestRecursiveMessage returnMe = result;
9719 result = null;
9720 return returnMe;
9721 }
9722
9723 public override Builder MergeFrom(pb::IMessage other) {
9724 if (other is TestRecursiveMessage) {
9725 return MergeFrom((TestRecursiveMessage) other);
9726 } else {
9727 base.MergeFrom(other);
9728 return this;
9729 }
9730 }
9731
9732 public override Builder MergeFrom(TestRecursiveMessage other) {
9733 if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
9734 if (other.HasA) {
9735 MergeA(other.A);
9736 }
9737 if (other.HasI) {
9738 I = other.I;
9739 }
9740 this.MergeUnknownFields(other.UnknownFields);
9741 return this;
9742 }
9743
9744 public override Builder MergeFrom(pb::CodedInputStream input) {
9745 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9746 }
9747
9748 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9749 pb::UnknownFieldSet.Builder unknownFields = null;
9750 while (true) {
9751 uint tag = input.ReadTag();
9752 switch (tag) {
9753 case 0: {
9754 if (unknownFields != null) {
9755 this.UnknownFields = unknownFields.Build();
9756 }
9757 return this;
9758 }
9759 default: {
9760 if (pb::WireFormat.IsEndGroupTag(tag)) {
9761 if (unknownFields != null) {
9762 this.UnknownFields = unknownFields.Build();
9763 }
9764 return this;
9765 }
9766 if (unknownFields == null) {
9767 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
9768 }
9769 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
9770 break;
9771 }
9772 case 10: {
9773 global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
9774 if (HasA) {
9775 subBuilder.MergeFrom(A);
9776 }
9777 input.ReadMessage(subBuilder, extensionRegistry);
9778 A = subBuilder.BuildPartial();
9779 break;
9780 }
9781 case 16: {
9782 I = input.ReadInt32();
9783 break;
9784 }
9785 }
9786 }
9787 }
9788
9789
9790 public bool HasA {
9791 get { return result.HasA; }
9792 }
9793 public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
9794 get { return result.A; }
9795 set { SetA(value); }
9796 }
9797 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
9798 pb::ThrowHelper.ThrowIfNull(value, "value");
9799 result.hasA = true;
9800 result.a_ = value;
9801 return this;
9802 }
9803 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
9804 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
9805 result.hasA = true;
9806 result.a_ = builderForValue.Build();
9807 return this;
9808 }
9809 public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
9810 pb::ThrowHelper.ThrowIfNull(value, "value");
9811 if (result.HasA &&
9812 result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
9813 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
9814 } else {
9815 result.a_ = value;
9816 }
9817 result.hasA = true;
9818 return this;
9819 }
9820 public Builder ClearA() {
9821 result.hasA = false;
9822 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
9823 return this;
9824 }
9825
9826 public bool HasI {
9827 get { return result.HasI; }
9828 }
9829 public int I {
9830 get { return result.I; }
9831 set { SetI(value); }
9832 }
9833 public Builder SetI(int value) {
9834 result.hasI = true;
9835 result.i_ = value;
9836 return this;
9837 }
9838 public Builder ClearI() {
9839 result.hasI = false;
9840 result.i_ = 0;
9841 return this;
9842 }
9843 }
9844 static TestRecursiveMessage() {
9845 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
9846 }
9847 }
9848
csharptest445bdce2011-05-20 15:50:54 -05009849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9850 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9851 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009852 public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
9853 private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial();
9854 public static TestMutualRecursionA DefaultInstance {
9855 get { return defaultInstance; }
9856 }
9857
9858 public override TestMutualRecursionA DefaultInstanceForType {
9859 get { return defaultInstance; }
9860 }
9861
9862 protected override TestMutualRecursionA ThisMessage {
9863 get { return this; }
9864 }
9865
9866 public static pbd::MessageDescriptor Descriptor {
9867 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
9868 }
9869
9870 protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
9871 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
9872 }
9873
9874 public const int BbFieldNumber = 1;
9875 private bool hasBb;
9876 private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
9877 public bool HasBb {
9878 get { return hasBb; }
9879 }
9880 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
9881 get { return bb_; }
9882 }
9883
9884 public override bool IsInitialized {
9885 get {
9886 return true;
9887 }
9888 }
9889
9890 public override void WriteTo(pb::CodedOutputStream output) {
9891 int size = SerializedSize;
9892 if (HasBb) {
9893 output.WriteMessage(1, Bb);
9894 }
9895 UnknownFields.WriteTo(output);
9896 }
9897
9898 private int memoizedSerializedSize = -1;
9899 public override int SerializedSize {
9900 get {
9901 int size = memoizedSerializedSize;
9902 if (size != -1) return size;
9903
9904 size = 0;
9905 if (HasBb) {
9906 size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
9907 }
9908 size += UnknownFields.SerializedSize;
9909 memoizedSerializedSize = size;
9910 return size;
9911 }
9912 }
9913
9914 public static TestMutualRecursionA ParseFrom(pb::ByteString data) {
9915 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9916 }
9917 public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9918 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9919 }
9920 public static TestMutualRecursionA ParseFrom(byte[] data) {
9921 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9922 }
9923 public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9924 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9925 }
9926 public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
9927 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9928 }
9929 public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9930 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9931 }
9932 public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input) {
9933 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9934 }
9935 public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9936 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9937 }
9938 public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
9939 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9940 }
9941 public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9942 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9943 }
9944 public static Builder CreateBuilder() { return new Builder(); }
9945 public override Builder ToBuilder() { return CreateBuilder(this); }
9946 public override Builder CreateBuilderForType() { return new Builder(); }
9947 public static Builder CreateBuilder(TestMutualRecursionA prototype) {
9948 return (Builder) new Builder().MergeFrom(prototype);
9949 }
9950
csharptest445bdce2011-05-20 15:50:54 -05009951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9952 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9953 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009954 public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> {
9955 protected override Builder ThisBuilder {
9956 get { return this; }
9957 }
9958 public Builder() {}
9959
9960 TestMutualRecursionA result = new TestMutualRecursionA();
9961
9962 protected override TestMutualRecursionA MessageBeingBuilt {
9963 get { return result; }
9964 }
9965
9966 public override Builder Clear() {
9967 result = new TestMutualRecursionA();
9968 return this;
9969 }
9970
9971 public override Builder Clone() {
9972 return new Builder().MergeFrom(result);
9973 }
9974
9975 public override pbd::MessageDescriptor DescriptorForType {
9976 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
9977 }
9978
9979 public override TestMutualRecursionA DefaultInstanceForType {
9980 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
9981 }
9982
9983 public override TestMutualRecursionA BuildPartial() {
9984 if (result == null) {
9985 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9986 }
9987 TestMutualRecursionA returnMe = result;
9988 result = null;
9989 return returnMe;
9990 }
9991
9992 public override Builder MergeFrom(pb::IMessage other) {
9993 if (other is TestMutualRecursionA) {
9994 return MergeFrom((TestMutualRecursionA) other);
9995 } else {
9996 base.MergeFrom(other);
9997 return this;
9998 }
9999 }
10000
10001 public override Builder MergeFrom(TestMutualRecursionA other) {
10002 if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
10003 if (other.HasBb) {
10004 MergeBb(other.Bb);
10005 }
10006 this.MergeUnknownFields(other.UnknownFields);
10007 return this;
10008 }
10009
10010 public override Builder MergeFrom(pb::CodedInputStream input) {
10011 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10012 }
10013
10014 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10015 pb::UnknownFieldSet.Builder unknownFields = null;
10016 while (true) {
10017 uint tag = input.ReadTag();
10018 switch (tag) {
10019 case 0: {
10020 if (unknownFields != null) {
10021 this.UnknownFields = unknownFields.Build();
10022 }
10023 return this;
10024 }
10025 default: {
10026 if (pb::WireFormat.IsEndGroupTag(tag)) {
10027 if (unknownFields != null) {
10028 this.UnknownFields = unknownFields.Build();
10029 }
10030 return this;
10031 }
10032 if (unknownFields == null) {
10033 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10034 }
10035 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
10036 break;
10037 }
10038 case 10: {
10039 global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
10040 if (HasBb) {
10041 subBuilder.MergeFrom(Bb);
10042 }
10043 input.ReadMessage(subBuilder, extensionRegistry);
10044 Bb = subBuilder.BuildPartial();
10045 break;
10046 }
10047 }
10048 }
10049 }
10050
10051
10052 public bool HasBb {
10053 get { return result.HasBb; }
10054 }
10055 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
10056 get { return result.Bb; }
10057 set { SetBb(value); }
10058 }
10059 public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
10060 pb::ThrowHelper.ThrowIfNull(value, "value");
10061 result.hasBb = true;
10062 result.bb_ = value;
10063 return this;
10064 }
10065 public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
10066 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
10067 result.hasBb = true;
10068 result.bb_ = builderForValue.Build();
10069 return this;
10070 }
10071 public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
10072 pb::ThrowHelper.ThrowIfNull(value, "value");
10073 if (result.HasBb &&
10074 result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
10075 result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
10076 } else {
10077 result.bb_ = value;
10078 }
10079 result.hasBb = true;
10080 return this;
10081 }
10082 public Builder ClearBb() {
10083 result.hasBb = false;
10084 result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
10085 return this;
10086 }
10087 }
10088 static TestMutualRecursionA() {
10089 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10090 }
10091 }
10092
csharptest445bdce2011-05-20 15:50:54 -050010093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10094 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10095 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010096 public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
10097 private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial();
10098 public static TestMutualRecursionB DefaultInstance {
10099 get { return defaultInstance; }
10100 }
10101
10102 public override TestMutualRecursionB DefaultInstanceForType {
10103 get { return defaultInstance; }
10104 }
10105
10106 protected override TestMutualRecursionB ThisMessage {
10107 get { return this; }
10108 }
10109
10110 public static pbd::MessageDescriptor Descriptor {
10111 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
10112 }
10113
10114 protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
10115 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
10116 }
10117
10118 public const int AFieldNumber = 1;
10119 private bool hasA;
10120 private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
10121 public bool HasA {
10122 get { return hasA; }
10123 }
10124 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
10125 get { return a_; }
10126 }
10127
10128 public const int OptionalInt32FieldNumber = 2;
10129 private bool hasOptionalInt32;
10130 private int optionalInt32_ = 0;
10131 public bool HasOptionalInt32 {
10132 get { return hasOptionalInt32; }
10133 }
10134 public int OptionalInt32 {
10135 get { return optionalInt32_; }
10136 }
10137
10138 public override bool IsInitialized {
10139 get {
10140 return true;
10141 }
10142 }
10143
10144 public override void WriteTo(pb::CodedOutputStream output) {
10145 int size = SerializedSize;
10146 if (HasA) {
10147 output.WriteMessage(1, A);
10148 }
10149 if (HasOptionalInt32) {
10150 output.WriteInt32(2, OptionalInt32);
10151 }
10152 UnknownFields.WriteTo(output);
10153 }
10154
10155 private int memoizedSerializedSize = -1;
10156 public override int SerializedSize {
10157 get {
10158 int size = memoizedSerializedSize;
10159 if (size != -1) return size;
10160
10161 size = 0;
10162 if (HasA) {
10163 size += pb::CodedOutputStream.ComputeMessageSize(1, A);
10164 }
10165 if (HasOptionalInt32) {
10166 size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
10167 }
10168 size += UnknownFields.SerializedSize;
10169 memoizedSerializedSize = size;
10170 return size;
10171 }
10172 }
10173
10174 public static TestMutualRecursionB ParseFrom(pb::ByteString data) {
10175 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10176 }
10177 public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10178 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10179 }
10180 public static TestMutualRecursionB ParseFrom(byte[] data) {
10181 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10182 }
10183 public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10184 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10185 }
10186 public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
10187 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10188 }
10189 public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10190 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10191 }
10192 public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input) {
10193 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10194 }
10195 public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10196 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10197 }
10198 public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
10199 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10200 }
10201 public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10202 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10203 }
10204 public static Builder CreateBuilder() { return new Builder(); }
10205 public override Builder ToBuilder() { return CreateBuilder(this); }
10206 public override Builder CreateBuilderForType() { return new Builder(); }
10207 public static Builder CreateBuilder(TestMutualRecursionB prototype) {
10208 return (Builder) new Builder().MergeFrom(prototype);
10209 }
10210
csharptest445bdce2011-05-20 15:50:54 -050010211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10212 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10213 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010214 public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> {
10215 protected override Builder ThisBuilder {
10216 get { return this; }
10217 }
10218 public Builder() {}
10219
10220 TestMutualRecursionB result = new TestMutualRecursionB();
10221
10222 protected override TestMutualRecursionB MessageBeingBuilt {
10223 get { return result; }
10224 }
10225
10226 public override Builder Clear() {
10227 result = new TestMutualRecursionB();
10228 return this;
10229 }
10230
10231 public override Builder Clone() {
10232 return new Builder().MergeFrom(result);
10233 }
10234
10235 public override pbd::MessageDescriptor DescriptorForType {
10236 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
10237 }
10238
10239 public override TestMutualRecursionB DefaultInstanceForType {
10240 get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
10241 }
10242
10243 public override TestMutualRecursionB BuildPartial() {
10244 if (result == null) {
10245 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10246 }
10247 TestMutualRecursionB returnMe = result;
10248 result = null;
10249 return returnMe;
10250 }
10251
10252 public override Builder MergeFrom(pb::IMessage other) {
10253 if (other is TestMutualRecursionB) {
10254 return MergeFrom((TestMutualRecursionB) other);
10255 } else {
10256 base.MergeFrom(other);
10257 return this;
10258 }
10259 }
10260
10261 public override Builder MergeFrom(TestMutualRecursionB other) {
10262 if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
10263 if (other.HasA) {
10264 MergeA(other.A);
10265 }
10266 if (other.HasOptionalInt32) {
10267 OptionalInt32 = other.OptionalInt32;
10268 }
10269 this.MergeUnknownFields(other.UnknownFields);
10270 return this;
10271 }
10272
10273 public override Builder MergeFrom(pb::CodedInputStream input) {
10274 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10275 }
10276
10277 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10278 pb::UnknownFieldSet.Builder unknownFields = null;
10279 while (true) {
10280 uint tag = input.ReadTag();
10281 switch (tag) {
10282 case 0: {
10283 if (unknownFields != null) {
10284 this.UnknownFields = unknownFields.Build();
10285 }
10286 return this;
10287 }
10288 default: {
10289 if (pb::WireFormat.IsEndGroupTag(tag)) {
10290 if (unknownFields != null) {
10291 this.UnknownFields = unknownFields.Build();
10292 }
10293 return this;
10294 }
10295 if (unknownFields == null) {
10296 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10297 }
10298 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
10299 break;
10300 }
10301 case 10: {
10302 global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
10303 if (HasA) {
10304 subBuilder.MergeFrom(A);
10305 }
10306 input.ReadMessage(subBuilder, extensionRegistry);
10307 A = subBuilder.BuildPartial();
10308 break;
10309 }
10310 case 16: {
10311 OptionalInt32 = input.ReadInt32();
10312 break;
10313 }
10314 }
10315 }
10316 }
10317
10318
10319 public bool HasA {
10320 get { return result.HasA; }
10321 }
10322 public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
10323 get { return result.A; }
10324 set { SetA(value); }
10325 }
10326 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
10327 pb::ThrowHelper.ThrowIfNull(value, "value");
10328 result.hasA = true;
10329 result.a_ = value;
10330 return this;
10331 }
10332 public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
10333 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
10334 result.hasA = true;
10335 result.a_ = builderForValue.Build();
10336 return this;
10337 }
10338 public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
10339 pb::ThrowHelper.ThrowIfNull(value, "value");
10340 if (result.HasA &&
10341 result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
10342 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
10343 } else {
10344 result.a_ = value;
10345 }
10346 result.hasA = true;
10347 return this;
10348 }
10349 public Builder ClearA() {
10350 result.hasA = false;
10351 result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
10352 return this;
10353 }
10354
10355 public bool HasOptionalInt32 {
10356 get { return result.HasOptionalInt32; }
10357 }
10358 public int OptionalInt32 {
10359 get { return result.OptionalInt32; }
10360 set { SetOptionalInt32(value); }
10361 }
10362 public Builder SetOptionalInt32(int value) {
10363 result.hasOptionalInt32 = true;
10364 result.optionalInt32_ = value;
10365 return this;
10366 }
10367 public Builder ClearOptionalInt32() {
10368 result.hasOptionalInt32 = false;
10369 result.optionalInt32_ = 0;
10370 return this;
10371 }
10372 }
10373 static TestMutualRecursionB() {
10374 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10375 }
10376 }
10377
csharptest445bdce2011-05-20 15:50:54 -050010378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10379 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10380 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010381 public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
10382 private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial();
10383 public static TestDupFieldNumber DefaultInstance {
10384 get { return defaultInstance; }
10385 }
10386
10387 public override TestDupFieldNumber DefaultInstanceForType {
10388 get { return defaultInstance; }
10389 }
10390
10391 protected override TestDupFieldNumber ThisMessage {
10392 get { return this; }
10393 }
10394
10395 public static pbd::MessageDescriptor Descriptor {
10396 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
10397 }
10398
10399 protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
10400 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
10401 }
10402
10403 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050010404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10405 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10406 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010407 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050010408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10409 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10410 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010411 public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
10412 private static readonly Foo defaultInstance = new Builder().BuildPartial();
10413 public static Foo DefaultInstance {
10414 get { return defaultInstance; }
10415 }
10416
10417 public override Foo DefaultInstanceForType {
10418 get { return defaultInstance; }
10419 }
10420
10421 protected override Foo ThisMessage {
10422 get { return this; }
10423 }
10424
10425 public static pbd::MessageDescriptor Descriptor {
10426 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
10427 }
10428
10429 protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
10430 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
10431 }
10432
10433 public const int AFieldNumber = 1;
10434 private bool hasA;
10435 private int a_ = 0;
10436 public bool HasA {
10437 get { return hasA; }
10438 }
10439 public int A {
10440 get { return a_; }
10441 }
10442
10443 public override bool IsInitialized {
10444 get {
10445 return true;
10446 }
10447 }
10448
10449 public override void WriteTo(pb::CodedOutputStream output) {
10450 int size = SerializedSize;
10451 if (HasA) {
10452 output.WriteInt32(1, A);
10453 }
10454 UnknownFields.WriteTo(output);
10455 }
10456
10457 private int memoizedSerializedSize = -1;
10458 public override int SerializedSize {
10459 get {
10460 int size = memoizedSerializedSize;
10461 if (size != -1) return size;
10462
10463 size = 0;
10464 if (HasA) {
10465 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10466 }
10467 size += UnknownFields.SerializedSize;
10468 memoizedSerializedSize = size;
10469 return size;
10470 }
10471 }
10472
10473 public static Foo ParseFrom(pb::ByteString data) {
10474 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10475 }
10476 public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10477 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10478 }
10479 public static Foo ParseFrom(byte[] data) {
10480 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10481 }
10482 public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10483 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10484 }
10485 public static Foo ParseFrom(global::System.IO.Stream input) {
10486 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10487 }
10488 public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10489 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10490 }
10491 public static Foo ParseDelimitedFrom(global::System.IO.Stream input) {
10492 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10493 }
10494 public static Foo ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10495 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10496 }
10497 public static Foo ParseFrom(pb::CodedInputStream input) {
10498 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10499 }
10500 public static Foo ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10501 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10502 }
10503 public static Builder CreateBuilder() { return new Builder(); }
10504 public override Builder ToBuilder() { return CreateBuilder(this); }
10505 public override Builder CreateBuilderForType() { return new Builder(); }
10506 public static Builder CreateBuilder(Foo prototype) {
10507 return (Builder) new Builder().MergeFrom(prototype);
10508 }
10509
csharptest445bdce2011-05-20 15:50:54 -050010510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10511 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10512 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010513 public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> {
10514 protected override Builder ThisBuilder {
10515 get { return this; }
10516 }
10517 public Builder() {}
10518
10519 Foo result = new Foo();
10520
10521 protected override Foo MessageBeingBuilt {
10522 get { return result; }
10523 }
10524
10525 public override Builder Clear() {
10526 result = new Foo();
10527 return this;
10528 }
10529
10530 public override Builder Clone() {
10531 return new Builder().MergeFrom(result);
10532 }
10533
10534 public override pbd::MessageDescriptor DescriptorForType {
10535 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
10536 }
10537
10538 public override Foo DefaultInstanceForType {
10539 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
10540 }
10541
10542 public override Foo BuildPartial() {
10543 if (result == null) {
10544 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10545 }
10546 Foo returnMe = result;
10547 result = null;
10548 return returnMe;
10549 }
10550
10551 public override Builder MergeFrom(pb::IMessage other) {
10552 if (other is Foo) {
10553 return MergeFrom((Foo) other);
10554 } else {
10555 base.MergeFrom(other);
10556 return this;
10557 }
10558 }
10559
10560 public override Builder MergeFrom(Foo other) {
10561 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
10562 if (other.HasA) {
10563 A = other.A;
10564 }
10565 this.MergeUnknownFields(other.UnknownFields);
10566 return this;
10567 }
10568
10569 public override Builder MergeFrom(pb::CodedInputStream input) {
10570 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10571 }
10572
10573 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10574 pb::UnknownFieldSet.Builder unknownFields = null;
10575 while (true) {
10576 uint tag = input.ReadTag();
10577 switch (tag) {
10578 case 0: {
10579 if (unknownFields != null) {
10580 this.UnknownFields = unknownFields.Build();
10581 }
10582 return this;
10583 }
10584 default: {
10585 if (pb::WireFormat.IsEndGroupTag(tag)) {
10586 if (unknownFields != null) {
10587 this.UnknownFields = unknownFields.Build();
10588 }
10589 return this;
10590 }
10591 if (unknownFields == null) {
10592 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10593 }
10594 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
10595 break;
10596 }
10597 case 8: {
10598 A = input.ReadInt32();
10599 break;
10600 }
10601 }
10602 }
10603 }
10604
10605
10606 public bool HasA {
10607 get { return result.HasA; }
10608 }
10609 public int A {
10610 get { return result.A; }
10611 set { SetA(value); }
10612 }
10613 public Builder SetA(int value) {
10614 result.hasA = true;
10615 result.a_ = value;
10616 return this;
10617 }
10618 public Builder ClearA() {
10619 result.hasA = false;
10620 result.a_ = 0;
10621 return this;
10622 }
10623 }
10624 static Foo() {
10625 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10626 }
10627 }
10628
csharptest445bdce2011-05-20 15:50:54 -050010629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10630 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10631 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010632 public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
10633 private static readonly Bar defaultInstance = new Builder().BuildPartial();
10634 public static Bar DefaultInstance {
10635 get { return defaultInstance; }
10636 }
10637
10638 public override Bar DefaultInstanceForType {
10639 get { return defaultInstance; }
10640 }
10641
10642 protected override Bar ThisMessage {
10643 get { return this; }
10644 }
10645
10646 public static pbd::MessageDescriptor Descriptor {
10647 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
10648 }
10649
10650 protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
10651 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
10652 }
10653
10654 public const int AFieldNumber = 1;
10655 private bool hasA;
10656 private int a_ = 0;
10657 public bool HasA {
10658 get { return hasA; }
10659 }
10660 public int A {
10661 get { return a_; }
10662 }
10663
10664 public override bool IsInitialized {
10665 get {
10666 return true;
10667 }
10668 }
10669
10670 public override void WriteTo(pb::CodedOutputStream output) {
10671 int size = SerializedSize;
10672 if (HasA) {
10673 output.WriteInt32(1, A);
10674 }
10675 UnknownFields.WriteTo(output);
10676 }
10677
10678 private int memoizedSerializedSize = -1;
10679 public override int SerializedSize {
10680 get {
10681 int size = memoizedSerializedSize;
10682 if (size != -1) return size;
10683
10684 size = 0;
10685 if (HasA) {
10686 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10687 }
10688 size += UnknownFields.SerializedSize;
10689 memoizedSerializedSize = size;
10690 return size;
10691 }
10692 }
10693
10694 public static Bar ParseFrom(pb::ByteString data) {
10695 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10696 }
10697 public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10698 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10699 }
10700 public static Bar ParseFrom(byte[] data) {
10701 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10702 }
10703 public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10704 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10705 }
10706 public static Bar ParseFrom(global::System.IO.Stream input) {
10707 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10708 }
10709 public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10710 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10711 }
10712 public static Bar ParseDelimitedFrom(global::System.IO.Stream input) {
10713 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10714 }
10715 public static Bar ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10716 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10717 }
10718 public static Bar ParseFrom(pb::CodedInputStream input) {
10719 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10720 }
10721 public static Bar ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10722 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10723 }
10724 public static Builder CreateBuilder() { return new Builder(); }
10725 public override Builder ToBuilder() { return CreateBuilder(this); }
10726 public override Builder CreateBuilderForType() { return new Builder(); }
10727 public static Builder CreateBuilder(Bar prototype) {
10728 return (Builder) new Builder().MergeFrom(prototype);
10729 }
10730
csharptest445bdce2011-05-20 15:50:54 -050010731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10732 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10733 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010734 public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> {
10735 protected override Builder ThisBuilder {
10736 get { return this; }
10737 }
10738 public Builder() {}
10739
10740 Bar result = new Bar();
10741
10742 protected override Bar MessageBeingBuilt {
10743 get { return result; }
10744 }
10745
10746 public override Builder Clear() {
10747 result = new Bar();
10748 return this;
10749 }
10750
10751 public override Builder Clone() {
10752 return new Builder().MergeFrom(result);
10753 }
10754
10755 public override pbd::MessageDescriptor DescriptorForType {
10756 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
10757 }
10758
10759 public override Bar DefaultInstanceForType {
10760 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
10761 }
10762
10763 public override Bar BuildPartial() {
10764 if (result == null) {
10765 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10766 }
10767 Bar returnMe = result;
10768 result = null;
10769 return returnMe;
10770 }
10771
10772 public override Builder MergeFrom(pb::IMessage other) {
10773 if (other is Bar) {
10774 return MergeFrom((Bar) other);
10775 } else {
10776 base.MergeFrom(other);
10777 return this;
10778 }
10779 }
10780
10781 public override Builder MergeFrom(Bar other) {
10782 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
10783 if (other.HasA) {
10784 A = other.A;
10785 }
10786 this.MergeUnknownFields(other.UnknownFields);
10787 return this;
10788 }
10789
10790 public override Builder MergeFrom(pb::CodedInputStream input) {
10791 return MergeFrom(input, pb::ExtensionRegistry.Empty);
10792 }
10793
10794 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10795 pb::UnknownFieldSet.Builder unknownFields = null;
10796 while (true) {
10797 uint tag = input.ReadTag();
10798 switch (tag) {
10799 case 0: {
10800 if (unknownFields != null) {
10801 this.UnknownFields = unknownFields.Build();
10802 }
10803 return this;
10804 }
10805 default: {
10806 if (pb::WireFormat.IsEndGroupTag(tag)) {
10807 if (unknownFields != null) {
10808 this.UnknownFields = unknownFields.Build();
10809 }
10810 return this;
10811 }
10812 if (unknownFields == null) {
10813 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
10814 }
10815 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
10816 break;
10817 }
10818 case 8: {
10819 A = input.ReadInt32();
10820 break;
10821 }
10822 }
10823 }
10824 }
10825
10826
10827 public bool HasA {
10828 get { return result.HasA; }
10829 }
10830 public int A {
10831 get { return result.A; }
10832 set { SetA(value); }
10833 }
10834 public Builder SetA(int value) {
10835 result.hasA = true;
10836 result.a_ = value;
10837 return this;
10838 }
10839 public Builder ClearA() {
10840 result.hasA = false;
10841 result.a_ = 0;
10842 return this;
10843 }
10844 }
10845 static Bar() {
10846 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
10847 }
10848 }
10849
10850 }
10851 #endregion
10852
10853 public const int AFieldNumber = 1;
10854 private bool hasA;
10855 private int a_ = 0;
10856 public bool HasA {
10857 get { return hasA; }
10858 }
10859 public int A {
10860 get { return a_; }
10861 }
10862
10863 public const int FooFieldNumber = 2;
10864 private bool hasFoo;
10865 private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
10866 public bool HasFoo {
10867 get { return hasFoo; }
10868 }
10869 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
10870 get { return foo_; }
10871 }
10872
10873 public const int BarFieldNumber = 3;
10874 private bool hasBar;
10875 private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
10876 public bool HasBar {
10877 get { return hasBar; }
10878 }
10879 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
10880 get { return bar_; }
10881 }
10882
10883 public override bool IsInitialized {
10884 get {
10885 return true;
10886 }
10887 }
10888
10889 public override void WriteTo(pb::CodedOutputStream output) {
10890 int size = SerializedSize;
10891 if (HasA) {
10892 output.WriteInt32(1, A);
10893 }
10894 if (HasFoo) {
10895 output.WriteGroup(2, Foo);
10896 }
10897 if (HasBar) {
10898 output.WriteGroup(3, Bar);
10899 }
10900 UnknownFields.WriteTo(output);
10901 }
10902
10903 private int memoizedSerializedSize = -1;
10904 public override int SerializedSize {
10905 get {
10906 int size = memoizedSerializedSize;
10907 if (size != -1) return size;
10908
10909 size = 0;
10910 if (HasA) {
10911 size += pb::CodedOutputStream.ComputeInt32Size(1, A);
10912 }
10913 if (HasFoo) {
10914 size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
10915 }
10916 if (HasBar) {
10917 size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
10918 }
10919 size += UnknownFields.SerializedSize;
10920 memoizedSerializedSize = size;
10921 return size;
10922 }
10923 }
10924
10925 public static TestDupFieldNumber ParseFrom(pb::ByteString data) {
10926 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10927 }
10928 public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
10929 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10930 }
10931 public static TestDupFieldNumber ParseFrom(byte[] data) {
10932 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
10933 }
10934 public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
10935 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
10936 }
10937 public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
10938 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10939 }
10940 public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10941 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10942 }
10943 public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input) {
10944 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
10945 }
10946 public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
10947 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
10948 }
10949 public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
10950 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
10951 }
10952 public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
10953 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
10954 }
10955 public static Builder CreateBuilder() { return new Builder(); }
10956 public override Builder ToBuilder() { return CreateBuilder(this); }
10957 public override Builder CreateBuilderForType() { return new Builder(); }
10958 public static Builder CreateBuilder(TestDupFieldNumber prototype) {
10959 return (Builder) new Builder().MergeFrom(prototype);
10960 }
10961
csharptest445bdce2011-05-20 15:50:54 -050010962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10963 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
10964 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010010965 public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> {
10966 protected override Builder ThisBuilder {
10967 get { return this; }
10968 }
10969 public Builder() {}
10970
10971 TestDupFieldNumber result = new TestDupFieldNumber();
10972
10973 protected override TestDupFieldNumber MessageBeingBuilt {
10974 get { return result; }
10975 }
10976
10977 public override Builder Clear() {
10978 result = new TestDupFieldNumber();
10979 return this;
10980 }
10981
10982 public override Builder Clone() {
10983 return new Builder().MergeFrom(result);
10984 }
10985
10986 public override pbd::MessageDescriptor DescriptorForType {
10987 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
10988 }
10989
10990 public override TestDupFieldNumber DefaultInstanceForType {
10991 get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
10992 }
10993
10994 public override TestDupFieldNumber BuildPartial() {
10995 if (result == null) {
10996 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
10997 }
10998 TestDupFieldNumber returnMe = result;
10999 result = null;
11000 return returnMe;
11001 }
11002
11003 public override Builder MergeFrom(pb::IMessage other) {
11004 if (other is TestDupFieldNumber) {
11005 return MergeFrom((TestDupFieldNumber) other);
11006 } else {
11007 base.MergeFrom(other);
11008 return this;
11009 }
11010 }
11011
11012 public override Builder MergeFrom(TestDupFieldNumber other) {
11013 if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
11014 if (other.HasA) {
11015 A = other.A;
11016 }
11017 if (other.HasFoo) {
11018 MergeFoo(other.Foo);
11019 }
11020 if (other.HasBar) {
11021 MergeBar(other.Bar);
11022 }
11023 this.MergeUnknownFields(other.UnknownFields);
11024 return this;
11025 }
11026
11027 public override Builder MergeFrom(pb::CodedInputStream input) {
11028 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11029 }
11030
11031 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
11032 pb::UnknownFieldSet.Builder unknownFields = null;
11033 while (true) {
11034 uint tag = input.ReadTag();
11035 switch (tag) {
11036 case 0: {
11037 if (unknownFields != null) {
11038 this.UnknownFields = unknownFields.Build();
11039 }
11040 return this;
11041 }
11042 default: {
11043 if (pb::WireFormat.IsEndGroupTag(tag)) {
11044 if (unknownFields != null) {
11045 this.UnknownFields = unknownFields.Build();
11046 }
11047 return this;
11048 }
11049 if (unknownFields == null) {
11050 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11051 }
11052 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
11053 break;
11054 }
11055 case 8: {
11056 A = input.ReadInt32();
11057 break;
11058 }
11059 case 19: {
11060 global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
11061 if (HasFoo) {
11062 subBuilder.MergeFrom(Foo);
11063 }
11064 input.ReadGroup(2, subBuilder, extensionRegistry);
11065 Foo = subBuilder.BuildPartial();
11066 break;
11067 }
11068 case 27: {
11069 global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
11070 if (HasBar) {
11071 subBuilder.MergeFrom(Bar);
11072 }
11073 input.ReadGroup(3, subBuilder, extensionRegistry);
11074 Bar = subBuilder.BuildPartial();
11075 break;
11076 }
11077 }
11078 }
11079 }
11080
11081
11082 public bool HasA {
11083 get { return result.HasA; }
11084 }
11085 public int A {
11086 get { return result.A; }
11087 set { SetA(value); }
11088 }
11089 public Builder SetA(int value) {
11090 result.hasA = true;
11091 result.a_ = value;
11092 return this;
11093 }
11094 public Builder ClearA() {
11095 result.hasA = false;
11096 result.a_ = 0;
11097 return this;
11098 }
11099
11100 public bool HasFoo {
11101 get { return result.HasFoo; }
11102 }
11103 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
11104 get { return result.Foo; }
11105 set { SetFoo(value); }
11106 }
11107 public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
11108 pb::ThrowHelper.ThrowIfNull(value, "value");
11109 result.hasFoo = true;
11110 result.foo_ = value;
11111 return this;
11112 }
11113 public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
11114 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11115 result.hasFoo = true;
11116 result.foo_ = builderForValue.Build();
11117 return this;
11118 }
11119 public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
11120 pb::ThrowHelper.ThrowIfNull(value, "value");
11121 if (result.HasFoo &&
11122 result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
11123 result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
11124 } else {
11125 result.foo_ = value;
11126 }
11127 result.hasFoo = true;
11128 return this;
11129 }
11130 public Builder ClearFoo() {
11131 result.hasFoo = false;
11132 result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
11133 return this;
11134 }
11135
11136 public bool HasBar {
11137 get { return result.HasBar; }
11138 }
11139 public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
11140 get { return result.Bar; }
11141 set { SetBar(value); }
11142 }
11143 public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
11144 pb::ThrowHelper.ThrowIfNull(value, "value");
11145 result.hasBar = true;
11146 result.bar_ = value;
11147 return this;
11148 }
11149 public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
11150 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11151 result.hasBar = true;
11152 result.bar_ = builderForValue.Build();
11153 return this;
11154 }
11155 public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
11156 pb::ThrowHelper.ThrowIfNull(value, "value");
11157 if (result.HasBar &&
11158 result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
11159 result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
11160 } else {
11161 result.bar_ = value;
11162 }
11163 result.hasBar = true;
11164 return this;
11165 }
11166 public Builder ClearBar() {
11167 result.hasBar = false;
11168 result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
11169 return this;
11170 }
11171 }
11172 static TestDupFieldNumber() {
11173 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11174 }
11175 }
11176
csharptest445bdce2011-05-20 15:50:54 -050011177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11178 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11179 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011180 public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
11181 private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial();
11182 public static TestNestedMessageHasBits DefaultInstance {
11183 get { return defaultInstance; }
11184 }
11185
11186 public override TestNestedMessageHasBits DefaultInstanceForType {
11187 get { return defaultInstance; }
11188 }
11189
11190 protected override TestNestedMessageHasBits ThisMessage {
11191 get { return this; }
11192 }
11193
11194 public static pbd::MessageDescriptor Descriptor {
11195 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
11196 }
11197
11198 protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
11199 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
11200 }
11201
11202 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050011203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11204 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11205 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011206 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050011207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11208 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11209 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011210 public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
11211 private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
11212 public static NestedMessage DefaultInstance {
11213 get { return defaultInstance; }
11214 }
11215
11216 public override NestedMessage DefaultInstanceForType {
11217 get { return defaultInstance; }
11218 }
11219
11220 protected override NestedMessage ThisMessage {
11221 get { return this; }
11222 }
11223
11224 public static pbd::MessageDescriptor Descriptor {
11225 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
11226 }
11227
11228 protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
11229 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
11230 }
11231
11232 public const int NestedmessageRepeatedInt32FieldNumber = 1;
11233 private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>();
11234 public scg::IList<int> NestedmessageRepeatedInt32List {
11235 get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); }
11236 }
11237 public int NestedmessageRepeatedInt32Count {
11238 get { return nestedmessageRepeatedInt32_.Count; }
11239 }
11240 public int GetNestedmessageRepeatedInt32(int index) {
11241 return nestedmessageRepeatedInt32_[index];
11242 }
11243
11244 public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
11245 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
11246 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
11247 get { return nestedmessageRepeatedForeignmessage_; }
11248 }
11249 public int NestedmessageRepeatedForeignmessageCount {
11250 get { return nestedmessageRepeatedForeignmessage_.Count; }
11251 }
11252 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
11253 return nestedmessageRepeatedForeignmessage_[index];
11254 }
11255
11256 public override bool IsInitialized {
11257 get {
11258 return true;
11259 }
11260 }
11261
11262 public override void WriteTo(pb::CodedOutputStream output) {
11263 int size = SerializedSize;
11264 if (nestedmessageRepeatedInt32_.Count > 0) {
11265 foreach (int element in nestedmessageRepeatedInt32_) {
11266 output.WriteInt32(1, element);
11267 }
11268 }
11269 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
11270 output.WriteMessage(2, element);
11271 }
11272 UnknownFields.WriteTo(output);
11273 }
11274
11275 private int memoizedSerializedSize = -1;
11276 public override int SerializedSize {
11277 get {
11278 int size = memoizedSerializedSize;
11279 if (size != -1) return size;
11280
11281 size = 0;
11282 {
11283 int dataSize = 0;
11284 foreach (int element in NestedmessageRepeatedInt32List) {
11285 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
11286 }
11287 size += dataSize;
11288 size += 1 * nestedmessageRepeatedInt32_.Count;
11289 }
11290 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
11291 size += pb::CodedOutputStream.ComputeMessageSize(2, element);
11292 }
11293 size += UnknownFields.SerializedSize;
11294 memoizedSerializedSize = size;
11295 return size;
11296 }
11297 }
11298
11299 public static NestedMessage ParseFrom(pb::ByteString data) {
11300 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11301 }
11302 public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
11303 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11304 }
11305 public static NestedMessage ParseFrom(byte[] data) {
11306 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11307 }
11308 public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
11309 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11310 }
11311 public static NestedMessage ParseFrom(global::System.IO.Stream input) {
11312 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11313 }
11314 public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11315 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11316 }
11317 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
11318 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
11319 }
11320 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11321 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
11322 }
11323 public static NestedMessage ParseFrom(pb::CodedInputStream input) {
11324 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11325 }
11326 public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
11327 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11328 }
11329 public static Builder CreateBuilder() { return new Builder(); }
11330 public override Builder ToBuilder() { return CreateBuilder(this); }
11331 public override Builder CreateBuilderForType() { return new Builder(); }
11332 public static Builder CreateBuilder(NestedMessage prototype) {
11333 return (Builder) new Builder().MergeFrom(prototype);
11334 }
11335
csharptest445bdce2011-05-20 15:50:54 -050011336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11337 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11338 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011339 public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
11340 protected override Builder ThisBuilder {
11341 get { return this; }
11342 }
11343 public Builder() {}
11344
11345 NestedMessage result = new NestedMessage();
11346
11347 protected override NestedMessage MessageBeingBuilt {
11348 get { return result; }
11349 }
11350
11351 public override Builder Clear() {
11352 result = new NestedMessage();
11353 return this;
11354 }
11355
11356 public override Builder Clone() {
11357 return new Builder().MergeFrom(result);
11358 }
11359
11360 public override pbd::MessageDescriptor DescriptorForType {
11361 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
11362 }
11363
11364 public override NestedMessage DefaultInstanceForType {
11365 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
11366 }
11367
11368 public override NestedMessage BuildPartial() {
11369 if (result == null) {
11370 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
11371 }
11372 result.nestedmessageRepeatedInt32_.MakeReadOnly();
11373 result.nestedmessageRepeatedForeignmessage_.MakeReadOnly();
11374 NestedMessage returnMe = result;
11375 result = null;
11376 return returnMe;
11377 }
11378
11379 public override Builder MergeFrom(pb::IMessage other) {
11380 if (other is NestedMessage) {
11381 return MergeFrom((NestedMessage) other);
11382 } else {
11383 base.MergeFrom(other);
11384 return this;
11385 }
11386 }
11387
11388 public override Builder MergeFrom(NestedMessage other) {
11389 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
11390 if (other.nestedmessageRepeatedInt32_.Count != 0) {
11391 base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
11392 }
11393 if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
11394 base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
11395 }
11396 this.MergeUnknownFields(other.UnknownFields);
11397 return this;
11398 }
11399
11400 public override Builder MergeFrom(pb::CodedInputStream input) {
11401 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11402 }
11403
11404 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
11405 pb::UnknownFieldSet.Builder unknownFields = null;
11406 while (true) {
11407 uint tag = input.ReadTag();
11408 switch (tag) {
11409 case 0: {
11410 if (unknownFields != null) {
11411 this.UnknownFields = unknownFields.Build();
11412 }
11413 return this;
11414 }
11415 default: {
11416 if (pb::WireFormat.IsEndGroupTag(tag)) {
11417 if (unknownFields != null) {
11418 this.UnknownFields = unknownFields.Build();
11419 }
11420 return this;
11421 }
11422 if (unknownFields == null) {
11423 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11424 }
11425 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
11426 break;
11427 }
11428 case 8: {
11429 AddNestedmessageRepeatedInt32(input.ReadInt32());
11430 break;
11431 }
11432 case 18: {
11433 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
11434 input.ReadMessage(subBuilder, extensionRegistry);
11435 AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
11436 break;
11437 }
11438 }
11439 }
11440 }
11441
11442
11443 public pbc::IPopsicleList<int> NestedmessageRepeatedInt32List {
11444 get { return result.nestedmessageRepeatedInt32_; }
11445 }
11446 public int NestedmessageRepeatedInt32Count {
11447 get { return result.NestedmessageRepeatedInt32Count; }
11448 }
11449 public int GetNestedmessageRepeatedInt32(int index) {
11450 return result.GetNestedmessageRepeatedInt32(index);
11451 }
11452 public Builder SetNestedmessageRepeatedInt32(int index, int value) {
11453 result.nestedmessageRepeatedInt32_[index] = value;
11454 return this;
11455 }
11456 public Builder AddNestedmessageRepeatedInt32(int value) {
11457 result.nestedmessageRepeatedInt32_.Add(value);
11458 return this;
11459 }
11460 public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
11461 base.AddRange(values, result.nestedmessageRepeatedInt32_);
11462 return this;
11463 }
11464 public Builder ClearNestedmessageRepeatedInt32() {
11465 result.nestedmessageRepeatedInt32_.Clear();
11466 return this;
11467 }
11468
11469 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
11470 get { return result.nestedmessageRepeatedForeignmessage_; }
11471 }
11472 public int NestedmessageRepeatedForeignmessageCount {
11473 get { return result.NestedmessageRepeatedForeignmessageCount; }
11474 }
11475 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
11476 return result.GetNestedmessageRepeatedForeignmessage(index);
11477 }
11478 public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
11479 pb::ThrowHelper.ThrowIfNull(value, "value");
11480 result.nestedmessageRepeatedForeignmessage_[index] = value;
11481 return this;
11482 }
11483 public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
11484 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11485 result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
11486 return this;
11487 }
11488 public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
11489 pb::ThrowHelper.ThrowIfNull(value, "value");
11490 result.nestedmessageRepeatedForeignmessage_.Add(value);
11491 return this;
11492 }
11493 public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
11494 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11495 result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
11496 return this;
11497 }
11498 public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
11499 base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
11500 return this;
11501 }
11502 public Builder ClearNestedmessageRepeatedForeignmessage() {
11503 result.nestedmessageRepeatedForeignmessage_.Clear();
11504 return this;
11505 }
11506 }
11507 static NestedMessage() {
11508 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11509 }
11510 }
11511
11512 }
11513 #endregion
11514
11515 public const int OptionalNestedMessageFieldNumber = 1;
11516 private bool hasOptionalNestedMessage;
11517 private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
11518 public bool HasOptionalNestedMessage {
11519 get { return hasOptionalNestedMessage; }
11520 }
11521 public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
11522 get { return optionalNestedMessage_; }
11523 }
11524
11525 public override bool IsInitialized {
11526 get {
11527 return true;
11528 }
11529 }
11530
11531 public override void WriteTo(pb::CodedOutputStream output) {
11532 int size = SerializedSize;
11533 if (HasOptionalNestedMessage) {
11534 output.WriteMessage(1, OptionalNestedMessage);
11535 }
11536 UnknownFields.WriteTo(output);
11537 }
11538
11539 private int memoizedSerializedSize = -1;
11540 public override int SerializedSize {
11541 get {
11542 int size = memoizedSerializedSize;
11543 if (size != -1) return size;
11544
11545 size = 0;
11546 if (HasOptionalNestedMessage) {
11547 size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
11548 }
11549 size += UnknownFields.SerializedSize;
11550 memoizedSerializedSize = size;
11551 return size;
11552 }
11553 }
11554
11555 public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
11556 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11557 }
11558 public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
11559 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11560 }
11561 public static TestNestedMessageHasBits ParseFrom(byte[] data) {
11562 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
11563 }
11564 public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
11565 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
11566 }
11567 public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
11568 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11569 }
11570 public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11571 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11572 }
11573 public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input) {
11574 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
11575 }
11576 public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
11577 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
11578 }
11579 public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
11580 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
11581 }
11582 public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
11583 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
11584 }
11585 public static Builder CreateBuilder() { return new Builder(); }
11586 public override Builder ToBuilder() { return CreateBuilder(this); }
11587 public override Builder CreateBuilderForType() { return new Builder(); }
11588 public static Builder CreateBuilder(TestNestedMessageHasBits prototype) {
11589 return (Builder) new Builder().MergeFrom(prototype);
11590 }
11591
csharptest445bdce2011-05-20 15:50:54 -050011592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11593 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11594 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011595 public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> {
11596 protected override Builder ThisBuilder {
11597 get { return this; }
11598 }
11599 public Builder() {}
11600
11601 TestNestedMessageHasBits result = new TestNestedMessageHasBits();
11602
11603 protected override TestNestedMessageHasBits MessageBeingBuilt {
11604 get { return result; }
11605 }
11606
11607 public override Builder Clear() {
11608 result = new TestNestedMessageHasBits();
11609 return this;
11610 }
11611
11612 public override Builder Clone() {
11613 return new Builder().MergeFrom(result);
11614 }
11615
11616 public override pbd::MessageDescriptor DescriptorForType {
11617 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
11618 }
11619
11620 public override TestNestedMessageHasBits DefaultInstanceForType {
11621 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
11622 }
11623
11624 public override TestNestedMessageHasBits BuildPartial() {
11625 if (result == null) {
11626 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
11627 }
11628 TestNestedMessageHasBits returnMe = result;
11629 result = null;
11630 return returnMe;
11631 }
11632
11633 public override Builder MergeFrom(pb::IMessage other) {
11634 if (other is TestNestedMessageHasBits) {
11635 return MergeFrom((TestNestedMessageHasBits) other);
11636 } else {
11637 base.MergeFrom(other);
11638 return this;
11639 }
11640 }
11641
11642 public override Builder MergeFrom(TestNestedMessageHasBits other) {
11643 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
11644 if (other.HasOptionalNestedMessage) {
11645 MergeOptionalNestedMessage(other.OptionalNestedMessage);
11646 }
11647 this.MergeUnknownFields(other.UnknownFields);
11648 return this;
11649 }
11650
11651 public override Builder MergeFrom(pb::CodedInputStream input) {
11652 return MergeFrom(input, pb::ExtensionRegistry.Empty);
11653 }
11654
11655 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
11656 pb::UnknownFieldSet.Builder unknownFields = null;
11657 while (true) {
11658 uint tag = input.ReadTag();
11659 switch (tag) {
11660 case 0: {
11661 if (unknownFields != null) {
11662 this.UnknownFields = unknownFields.Build();
11663 }
11664 return this;
11665 }
11666 default: {
11667 if (pb::WireFormat.IsEndGroupTag(tag)) {
11668 if (unknownFields != null) {
11669 this.UnknownFields = unknownFields.Build();
11670 }
11671 return this;
11672 }
11673 if (unknownFields == null) {
11674 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
11675 }
11676 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
11677 break;
11678 }
11679 case 10: {
11680 global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
11681 if (HasOptionalNestedMessage) {
11682 subBuilder.MergeFrom(OptionalNestedMessage);
11683 }
11684 input.ReadMessage(subBuilder, extensionRegistry);
11685 OptionalNestedMessage = subBuilder.BuildPartial();
11686 break;
11687 }
11688 }
11689 }
11690 }
11691
11692
11693 public bool HasOptionalNestedMessage {
11694 get { return result.HasOptionalNestedMessage; }
11695 }
11696 public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
11697 get { return result.OptionalNestedMessage; }
11698 set { SetOptionalNestedMessage(value); }
11699 }
11700 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
11701 pb::ThrowHelper.ThrowIfNull(value, "value");
11702 result.hasOptionalNestedMessage = true;
11703 result.optionalNestedMessage_ = value;
11704 return this;
11705 }
11706 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
11707 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
11708 result.hasOptionalNestedMessage = true;
11709 result.optionalNestedMessage_ = builderForValue.Build();
11710 return this;
11711 }
11712 public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
11713 pb::ThrowHelper.ThrowIfNull(value, "value");
11714 if (result.HasOptionalNestedMessage &&
11715 result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
11716 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
11717 } else {
11718 result.optionalNestedMessage_ = value;
11719 }
11720 result.hasOptionalNestedMessage = true;
11721 return this;
11722 }
11723 public Builder ClearOptionalNestedMessage() {
11724 result.hasOptionalNestedMessage = false;
11725 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
11726 return this;
11727 }
11728 }
11729 static TestNestedMessageHasBits() {
11730 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
11731 }
11732 }
11733
csharptest445bdce2011-05-20 15:50:54 -050011734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
11735 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11736 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010011737 public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
11738 private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial();
11739 public static TestCamelCaseFieldNames DefaultInstance {
11740 get { return defaultInstance; }
11741 }
11742
11743 public override TestCamelCaseFieldNames DefaultInstanceForType {
11744 get { return defaultInstance; }
11745 }
11746
11747 protected override TestCamelCaseFieldNames ThisMessage {
11748 get { return this; }
11749 }
11750
11751 public static pbd::MessageDescriptor Descriptor {
11752 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
11753 }
11754
11755 protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
11756 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
11757 }
11758
11759 public const int PrimitiveFieldFieldNumber = 1;
11760 private bool hasPrimitiveField;
11761 private int primitiveField_ = 0;
11762 public bool HasPrimitiveField {
11763 get { return hasPrimitiveField; }
11764 }
11765 public int PrimitiveField {
11766 get { return primitiveField_; }
11767 }
11768
11769 public const int StringFieldFieldNumber = 2;
11770 private bool hasStringField;
11771 private string stringField_ = "";
11772 public bool HasStringField {
11773 get { return hasStringField; }
11774 }
11775 public string StringField {
11776 get { return stringField_; }
11777 }
11778
11779 public const int EnumFieldFieldNumber = 3;
11780 private bool hasEnumField;
11781 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
11782 public bool HasEnumField {
11783 get { return hasEnumField; }
11784 }
11785 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
11786 get { return enumField_; }
11787 }
11788
11789 public const int MessageFieldFieldNumber = 4;
11790 private bool hasMessageField;
11791 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
11792 public bool HasMessageField {
11793 get { return hasMessageField; }
11794 }
11795 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
11796 get { return messageField_; }
11797 }
11798
11799 public const int StringPieceFieldFieldNumber = 5;
11800 private bool hasStringPieceField;
11801 private string stringPieceField_ = "";
11802 public bool HasStringPieceField {
11803 get { return hasStringPieceField; }
11804 }
11805 public string StringPieceField {
11806 get { return stringPieceField_; }
11807 }
11808
11809 public const int CordFieldFieldNumber = 6;
11810 private bool hasCordField;
11811 private string cordField_ = "";
11812 public bool HasCordField {
11813 get { return hasCordField; }
11814 }
11815 public string CordField {
11816 get { return cordField_; }
11817 }
11818
11819 public const int RepeatedPrimitiveFieldFieldNumber = 7;
11820 private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>();
11821 public scg::IList<int> RepeatedPrimitiveFieldList {
11822 get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); }
11823 }
11824 public int RepeatedPrimitiveFieldCount {
11825 get { return repeatedPrimitiveField_.Count; }
11826 }
11827 public int GetRepeatedPrimitiveField(int index) {
11828 return repeatedPrimitiveField_[index];
11829 }
11830
11831 public const int RepeatedStringFieldFieldNumber = 8;
11832 private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>();
11833 public scg::IList<string> RepeatedStringFieldList {
11834 get { return pbc::Lists.AsReadOnly(repeatedStringField_); }
11835 }
11836 public int RepeatedStringFieldCount {
11837 get { return repeatedStringField_.Count; }
11838 }
11839 public string GetRepeatedStringField(int index) {
11840 return repeatedStringField_[index];
11841 }
11842
11843 public const int RepeatedEnumFieldFieldNumber = 9;
11844 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
11845 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
11846 get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
11847 }
11848 public int RepeatedEnumFieldCount {
11849 get { return repeatedEnumField_.Count; }
11850 }
11851 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
11852 return repeatedEnumField_[index];
11853 }
11854
11855 public const int RepeatedMessageFieldFieldNumber = 10;
11856 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
11857 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
11858 get { return repeatedMessageField_; }
11859 }
11860 public int RepeatedMessageFieldCount {
11861 get { return repeatedMessageField_.Count; }
11862 }
11863 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
11864 return repeatedMessageField_[index];
11865 }
11866
11867 public const int RepeatedStringPieceFieldFieldNumber = 11;
11868 private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>();
11869 public scg::IList<string> RepeatedStringPieceFieldList {
11870 get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); }
11871 }
11872 public int RepeatedStringPieceFieldCount {
11873 get { return repeatedStringPieceField_.Count; }
11874 }
11875 public string GetRepeatedStringPieceField(int index) {
11876 return repeatedStringPieceField_[index];
11877 }
11878
11879 public const int RepeatedCordFieldFieldNumber = 12;
11880 private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>();
11881 public scg::IList<string> RepeatedCordFieldList {
11882 get { return pbc::Lists.AsReadOnly(repeatedCordField_); }
11883 }
11884 public int RepeatedCordFieldCount {
11885 get { return repeatedCordField_.Count; }
11886 }
11887 public string GetRepeatedCordField(int index) {
11888 return repeatedCordField_[index];
11889 }
11890
11891 public override bool IsInitialized {
11892 get {
11893 return true;
11894 }
11895 }
11896
11897 public override void WriteTo(pb::CodedOutputStream output) {
11898 int size = SerializedSize;
11899 if (HasPrimitiveField) {
11900 output.WriteInt32(1, PrimitiveField);
11901 }
11902 if (HasStringField) {
11903 output.WriteString(2, StringField);
11904 }
11905 if (HasEnumField) {
11906 output.WriteEnum(3, (int) EnumField);
11907 }
11908 if (HasMessageField) {
11909 output.WriteMessage(4, MessageField);
11910 }
11911 if (HasStringPieceField) {
11912 output.WriteString(5, StringPieceField);
11913 }
11914 if (HasCordField) {
11915 output.WriteString(6, CordField);
11916 }
11917 if (repeatedPrimitiveField_.Count > 0) {
11918 foreach (int element in repeatedPrimitiveField_) {
11919 output.WriteInt32(7, element);
11920 }
11921 }
11922 if (repeatedStringField_.Count > 0) {
11923 foreach (string element in repeatedStringField_) {
11924 output.WriteString(8, element);
11925 }
11926 }
11927 if (repeatedEnumField_.Count > 0) {
11928 foreach (int element in repeatedEnumField_) {
11929 output.WriteEnum(9, element);
11930 }
11931 }
11932 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
11933 output.WriteMessage(10, element);
11934 }
11935 if (repeatedStringPieceField_.Count > 0) {
11936 foreach (string element in repeatedStringPieceField_) {
11937 output.WriteString(11, element);
11938 }
11939 }
11940 if (repeatedCordField_.Count > 0) {
11941 foreach (string element in repeatedCordField_) {
11942 output.WriteString(12, element);
11943 }
11944 }
11945 UnknownFields.WriteTo(output);
11946 }
11947
11948 private int memoizedSerializedSize = -1;
11949 public override int SerializedSize {
11950 get {
11951 int size = memoizedSerializedSize;
11952 if (size != -1) return size;
11953
11954 size = 0;
11955 if (HasPrimitiveField) {
11956 size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
11957 }
11958 if (HasStringField) {
11959 size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
11960 }
11961 if (HasEnumField) {
11962 size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField);
11963 }
11964 if (HasMessageField) {
11965 size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
11966 }
11967 if (HasStringPieceField) {
11968 size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
11969 }
11970 if (HasCordField) {
11971 size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
11972 }
11973 {
11974 int dataSize = 0;
11975 foreach (int element in RepeatedPrimitiveFieldList) {
11976 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
11977 }
11978 size += dataSize;
11979 size += 1 * repeatedPrimitiveField_.Count;
11980 }
11981 {
11982 int dataSize = 0;
11983 foreach (string element in RepeatedStringFieldList) {
11984 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
11985 }
11986 size += dataSize;
11987 size += 1 * repeatedStringField_.Count;
11988 }
11989 {
11990 int dataSize = 0;
11991 if (repeatedEnumField_.Count > 0) {
11992 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedEnumField_) {
11993 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
11994 }
11995 size += dataSize;
11996 size += 1 * repeatedEnumField_.Count;
11997 }
11998 }
11999 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
12000 size += pb::CodedOutputStream.ComputeMessageSize(10, element);
12001 }
12002 {
12003 int dataSize = 0;
12004 foreach (string element in RepeatedStringPieceFieldList) {
12005 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
12006 }
12007 size += dataSize;
12008 size += 1 * repeatedStringPieceField_.Count;
12009 }
12010 {
12011 int dataSize = 0;
12012 foreach (string element in RepeatedCordFieldList) {
12013 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
12014 }
12015 size += dataSize;
12016 size += 1 * repeatedCordField_.Count;
12017 }
12018 size += UnknownFields.SerializedSize;
12019 memoizedSerializedSize = size;
12020 return size;
12021 }
12022 }
12023
12024 public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
12025 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12026 }
12027 public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
12028 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12029 }
12030 public static TestCamelCaseFieldNames ParseFrom(byte[] data) {
12031 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12032 }
12033 public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
12034 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12035 }
12036 public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
12037 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12038 }
12039 public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12040 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12041 }
12042 public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input) {
12043 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
12044 }
12045 public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12046 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
12047 }
12048 public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
12049 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12050 }
12051 public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
12052 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12053 }
12054 public static Builder CreateBuilder() { return new Builder(); }
12055 public override Builder ToBuilder() { return CreateBuilder(this); }
12056 public override Builder CreateBuilderForType() { return new Builder(); }
12057 public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) {
12058 return (Builder) new Builder().MergeFrom(prototype);
12059 }
12060
csharptest445bdce2011-05-20 15:50:54 -050012061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12062 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12063 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012064 public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> {
12065 protected override Builder ThisBuilder {
12066 get { return this; }
12067 }
12068 public Builder() {}
12069
12070 TestCamelCaseFieldNames result = new TestCamelCaseFieldNames();
12071
12072 protected override TestCamelCaseFieldNames MessageBeingBuilt {
12073 get { return result; }
12074 }
12075
12076 public override Builder Clear() {
12077 result = new TestCamelCaseFieldNames();
12078 return this;
12079 }
12080
12081 public override Builder Clone() {
12082 return new Builder().MergeFrom(result);
12083 }
12084
12085 public override pbd::MessageDescriptor DescriptorForType {
12086 get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
12087 }
12088
12089 public override TestCamelCaseFieldNames DefaultInstanceForType {
12090 get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
12091 }
12092
12093 public override TestCamelCaseFieldNames BuildPartial() {
12094 if (result == null) {
12095 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
12096 }
12097 result.repeatedPrimitiveField_.MakeReadOnly();
12098 result.repeatedStringField_.MakeReadOnly();
12099 result.repeatedEnumField_.MakeReadOnly();
12100 result.repeatedMessageField_.MakeReadOnly();
12101 result.repeatedStringPieceField_.MakeReadOnly();
12102 result.repeatedCordField_.MakeReadOnly();
12103 TestCamelCaseFieldNames returnMe = result;
12104 result = null;
12105 return returnMe;
12106 }
12107
12108 public override Builder MergeFrom(pb::IMessage other) {
12109 if (other is TestCamelCaseFieldNames) {
12110 return MergeFrom((TestCamelCaseFieldNames) other);
12111 } else {
12112 base.MergeFrom(other);
12113 return this;
12114 }
12115 }
12116
12117 public override Builder MergeFrom(TestCamelCaseFieldNames other) {
12118 if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
12119 if (other.HasPrimitiveField) {
12120 PrimitiveField = other.PrimitiveField;
12121 }
12122 if (other.HasStringField) {
12123 StringField = other.StringField;
12124 }
12125 if (other.HasEnumField) {
12126 EnumField = other.EnumField;
12127 }
12128 if (other.HasMessageField) {
12129 MergeMessageField(other.MessageField);
12130 }
12131 if (other.HasStringPieceField) {
12132 StringPieceField = other.StringPieceField;
12133 }
12134 if (other.HasCordField) {
12135 CordField = other.CordField;
12136 }
12137 if (other.repeatedPrimitiveField_.Count != 0) {
12138 base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
12139 }
12140 if (other.repeatedStringField_.Count != 0) {
12141 base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
12142 }
12143 if (other.repeatedEnumField_.Count != 0) {
12144 base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
12145 }
12146 if (other.repeatedMessageField_.Count != 0) {
12147 base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
12148 }
12149 if (other.repeatedStringPieceField_.Count != 0) {
12150 base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
12151 }
12152 if (other.repeatedCordField_.Count != 0) {
12153 base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
12154 }
12155 this.MergeUnknownFields(other.UnknownFields);
12156 return this;
12157 }
12158
12159 public override Builder MergeFrom(pb::CodedInputStream input) {
12160 return MergeFrom(input, pb::ExtensionRegistry.Empty);
12161 }
12162
12163 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
12164 pb::UnknownFieldSet.Builder unknownFields = null;
12165 while (true) {
12166 uint tag = input.ReadTag();
12167 switch (tag) {
12168 case 0: {
12169 if (unknownFields != null) {
12170 this.UnknownFields = unknownFields.Build();
12171 }
12172 return this;
12173 }
12174 default: {
12175 if (pb::WireFormat.IsEndGroupTag(tag)) {
12176 if (unknownFields != null) {
12177 this.UnknownFields = unknownFields.Build();
12178 }
12179 return this;
12180 }
12181 if (unknownFields == null) {
12182 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12183 }
12184 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
12185 break;
12186 }
12187 case 8: {
12188 PrimitiveField = input.ReadInt32();
12189 break;
12190 }
12191 case 18: {
12192 StringField = input.ReadString();
12193 break;
12194 }
12195 case 24: {
12196 int rawValue = input.ReadEnum();
12197 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
12198 if (unknownFields == null) {
12199 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12200 }
12201 unknownFields.MergeVarintField(3, (ulong) rawValue);
12202 } else {
12203 EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
12204 }
12205 break;
12206 }
12207 case 34: {
12208 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
12209 if (HasMessageField) {
12210 subBuilder.MergeFrom(MessageField);
12211 }
12212 input.ReadMessage(subBuilder, extensionRegistry);
12213 MessageField = subBuilder.BuildPartial();
12214 break;
12215 }
12216 case 42: {
12217 StringPieceField = input.ReadString();
12218 break;
12219 }
12220 case 50: {
12221 CordField = input.ReadString();
12222 break;
12223 }
12224 case 56: {
12225 AddRepeatedPrimitiveField(input.ReadInt32());
12226 break;
12227 }
12228 case 66: {
12229 AddRepeatedStringField(input.ReadString());
12230 break;
12231 }
12232 case 72: {
12233 int rawValue = input.ReadEnum();
12234 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
12235 if (unknownFields == null) {
12236 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12237 }
12238 unknownFields.MergeVarintField(9, (ulong) rawValue);
12239 } else {
12240 AddRepeatedEnumField((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue);
12241 }
12242 break;
12243 }
12244 case 82: {
12245 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
12246 input.ReadMessage(subBuilder, extensionRegistry);
12247 AddRepeatedMessageField(subBuilder.BuildPartial());
12248 break;
12249 }
12250 case 90: {
12251 AddRepeatedStringPieceField(input.ReadString());
12252 break;
12253 }
12254 case 98: {
12255 AddRepeatedCordField(input.ReadString());
12256 break;
12257 }
12258 }
12259 }
12260 }
12261
12262
12263 public bool HasPrimitiveField {
12264 get { return result.HasPrimitiveField; }
12265 }
12266 public int PrimitiveField {
12267 get { return result.PrimitiveField; }
12268 set { SetPrimitiveField(value); }
12269 }
12270 public Builder SetPrimitiveField(int value) {
12271 result.hasPrimitiveField = true;
12272 result.primitiveField_ = value;
12273 return this;
12274 }
12275 public Builder ClearPrimitiveField() {
12276 result.hasPrimitiveField = false;
12277 result.primitiveField_ = 0;
12278 return this;
12279 }
12280
12281 public bool HasStringField {
12282 get { return result.HasStringField; }
12283 }
12284 public string StringField {
12285 get { return result.StringField; }
12286 set { SetStringField(value); }
12287 }
12288 public Builder SetStringField(string value) {
12289 pb::ThrowHelper.ThrowIfNull(value, "value");
12290 result.hasStringField = true;
12291 result.stringField_ = value;
12292 return this;
12293 }
12294 public Builder ClearStringField() {
12295 result.hasStringField = false;
12296 result.stringField_ = "";
12297 return this;
12298 }
12299
12300 public bool HasEnumField {
12301 get { return result.HasEnumField; }
12302 }
12303 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
12304 get { return result.EnumField; }
12305 set { SetEnumField(value); }
12306 }
12307 public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12308 result.hasEnumField = true;
12309 result.enumField_ = value;
12310 return this;
12311 }
12312 public Builder ClearEnumField() {
12313 result.hasEnumField = false;
12314 result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
12315 return this;
12316 }
12317
12318 public bool HasMessageField {
12319 get { return result.HasMessageField; }
12320 }
12321 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
12322 get { return result.MessageField; }
12323 set { SetMessageField(value); }
12324 }
12325 public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12326 pb::ThrowHelper.ThrowIfNull(value, "value");
12327 result.hasMessageField = true;
12328 result.messageField_ = value;
12329 return this;
12330 }
12331 public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12332 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12333 result.hasMessageField = true;
12334 result.messageField_ = builderForValue.Build();
12335 return this;
12336 }
12337 public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12338 pb::ThrowHelper.ThrowIfNull(value, "value");
12339 if (result.HasMessageField &&
12340 result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
12341 result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
12342 } else {
12343 result.messageField_ = value;
12344 }
12345 result.hasMessageField = true;
12346 return this;
12347 }
12348 public Builder ClearMessageField() {
12349 result.hasMessageField = false;
12350 result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
12351 return this;
12352 }
12353
12354 public bool HasStringPieceField {
12355 get { return result.HasStringPieceField; }
12356 }
12357 public string StringPieceField {
12358 get { return result.StringPieceField; }
12359 set { SetStringPieceField(value); }
12360 }
12361 public Builder SetStringPieceField(string value) {
12362 pb::ThrowHelper.ThrowIfNull(value, "value");
12363 result.hasStringPieceField = true;
12364 result.stringPieceField_ = value;
12365 return this;
12366 }
12367 public Builder ClearStringPieceField() {
12368 result.hasStringPieceField = false;
12369 result.stringPieceField_ = "";
12370 return this;
12371 }
12372
12373 public bool HasCordField {
12374 get { return result.HasCordField; }
12375 }
12376 public string CordField {
12377 get { return result.CordField; }
12378 set { SetCordField(value); }
12379 }
12380 public Builder SetCordField(string value) {
12381 pb::ThrowHelper.ThrowIfNull(value, "value");
12382 result.hasCordField = true;
12383 result.cordField_ = value;
12384 return this;
12385 }
12386 public Builder ClearCordField() {
12387 result.hasCordField = false;
12388 result.cordField_ = "";
12389 return this;
12390 }
12391
12392 public pbc::IPopsicleList<int> RepeatedPrimitiveFieldList {
12393 get { return result.repeatedPrimitiveField_; }
12394 }
12395 public int RepeatedPrimitiveFieldCount {
12396 get { return result.RepeatedPrimitiveFieldCount; }
12397 }
12398 public int GetRepeatedPrimitiveField(int index) {
12399 return result.GetRepeatedPrimitiveField(index);
12400 }
12401 public Builder SetRepeatedPrimitiveField(int index, int value) {
12402 result.repeatedPrimitiveField_[index] = value;
12403 return this;
12404 }
12405 public Builder AddRepeatedPrimitiveField(int value) {
12406 result.repeatedPrimitiveField_.Add(value);
12407 return this;
12408 }
12409 public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
12410 base.AddRange(values, result.repeatedPrimitiveField_);
12411 return this;
12412 }
12413 public Builder ClearRepeatedPrimitiveField() {
12414 result.repeatedPrimitiveField_.Clear();
12415 return this;
12416 }
12417
12418 public pbc::IPopsicleList<string> RepeatedStringFieldList {
12419 get { return result.repeatedStringField_; }
12420 }
12421 public int RepeatedStringFieldCount {
12422 get { return result.RepeatedStringFieldCount; }
12423 }
12424 public string GetRepeatedStringField(int index) {
12425 return result.GetRepeatedStringField(index);
12426 }
12427 public Builder SetRepeatedStringField(int index, string value) {
12428 pb::ThrowHelper.ThrowIfNull(value, "value");
12429 result.repeatedStringField_[index] = value;
12430 return this;
12431 }
12432 public Builder AddRepeatedStringField(string value) {
12433 pb::ThrowHelper.ThrowIfNull(value, "value");
12434 result.repeatedStringField_.Add(value);
12435 return this;
12436 }
12437 public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
12438 base.AddRange(values, result.repeatedStringField_);
12439 return this;
12440 }
12441 public Builder ClearRepeatedStringField() {
12442 result.repeatedStringField_.Clear();
12443 return this;
12444 }
12445
12446 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
12447 get { return result.repeatedEnumField_; }
12448 }
12449 public int RepeatedEnumFieldCount {
12450 get { return result.RepeatedEnumFieldCount; }
12451 }
12452 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
12453 return result.GetRepeatedEnumField(index);
12454 }
12455 public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12456 result.repeatedEnumField_[index] = value;
12457 return this;
12458 }
12459 public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
12460 result.repeatedEnumField_.Add(value);
12461 return this;
12462 }
12463 public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
12464 base.AddRange(values, result.repeatedEnumField_);
12465 return this;
12466 }
12467 public Builder ClearRepeatedEnumField() {
12468 result.repeatedEnumField_.Clear();
12469 return this;
12470 }
12471
12472 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
12473 get { return result.repeatedMessageField_; }
12474 }
12475 public int RepeatedMessageFieldCount {
12476 get { return result.RepeatedMessageFieldCount; }
12477 }
12478 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
12479 return result.GetRepeatedMessageField(index);
12480 }
12481 public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12482 pb::ThrowHelper.ThrowIfNull(value, "value");
12483 result.repeatedMessageField_[index] = value;
12484 return this;
12485 }
12486 public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12487 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12488 result.repeatedMessageField_[index] = builderForValue.Build();
12489 return this;
12490 }
12491 public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
12492 pb::ThrowHelper.ThrowIfNull(value, "value");
12493 result.repeatedMessageField_.Add(value);
12494 return this;
12495 }
12496 public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
12497 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
12498 result.repeatedMessageField_.Add(builderForValue.Build());
12499 return this;
12500 }
12501 public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
12502 base.AddRange(values, result.repeatedMessageField_);
12503 return this;
12504 }
12505 public Builder ClearRepeatedMessageField() {
12506 result.repeatedMessageField_.Clear();
12507 return this;
12508 }
12509
12510 public pbc::IPopsicleList<string> RepeatedStringPieceFieldList {
12511 get { return result.repeatedStringPieceField_; }
12512 }
12513 public int RepeatedStringPieceFieldCount {
12514 get { return result.RepeatedStringPieceFieldCount; }
12515 }
12516 public string GetRepeatedStringPieceField(int index) {
12517 return result.GetRepeatedStringPieceField(index);
12518 }
12519 public Builder SetRepeatedStringPieceField(int index, string value) {
12520 pb::ThrowHelper.ThrowIfNull(value, "value");
12521 result.repeatedStringPieceField_[index] = value;
12522 return this;
12523 }
12524 public Builder AddRepeatedStringPieceField(string value) {
12525 pb::ThrowHelper.ThrowIfNull(value, "value");
12526 result.repeatedStringPieceField_.Add(value);
12527 return this;
12528 }
12529 public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
12530 base.AddRange(values, result.repeatedStringPieceField_);
12531 return this;
12532 }
12533 public Builder ClearRepeatedStringPieceField() {
12534 result.repeatedStringPieceField_.Clear();
12535 return this;
12536 }
12537
12538 public pbc::IPopsicleList<string> RepeatedCordFieldList {
12539 get { return result.repeatedCordField_; }
12540 }
12541 public int RepeatedCordFieldCount {
12542 get { return result.RepeatedCordFieldCount; }
12543 }
12544 public string GetRepeatedCordField(int index) {
12545 return result.GetRepeatedCordField(index);
12546 }
12547 public Builder SetRepeatedCordField(int index, string value) {
12548 pb::ThrowHelper.ThrowIfNull(value, "value");
12549 result.repeatedCordField_[index] = value;
12550 return this;
12551 }
12552 public Builder AddRepeatedCordField(string value) {
12553 pb::ThrowHelper.ThrowIfNull(value, "value");
12554 result.repeatedCordField_.Add(value);
12555 return this;
12556 }
12557 public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
12558 base.AddRange(values, result.repeatedCordField_);
12559 return this;
12560 }
12561 public Builder ClearRepeatedCordField() {
12562 result.repeatedCordField_.Clear();
12563 return this;
12564 }
12565 }
12566 static TestCamelCaseFieldNames() {
12567 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
12568 }
12569 }
12570
csharptest445bdce2011-05-20 15:50:54 -050012571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12572 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12573 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012574 public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
12575 private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial();
12576 public static TestFieldOrderings DefaultInstance {
12577 get { return defaultInstance; }
12578 }
12579
12580 public override TestFieldOrderings DefaultInstanceForType {
12581 get { return defaultInstance; }
12582 }
12583
12584 protected override TestFieldOrderings ThisMessage {
12585 get { return this; }
12586 }
12587
12588 public static pbd::MessageDescriptor Descriptor {
12589 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
12590 }
12591
12592 protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
12593 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
12594 }
12595
12596 public const int MyStringFieldNumber = 11;
12597 private bool hasMyString;
12598 private string myString_ = "";
12599 public bool HasMyString {
12600 get { return hasMyString; }
12601 }
12602 public string MyString {
12603 get { return myString_; }
12604 }
12605
12606 public const int MyIntFieldNumber = 1;
12607 private bool hasMyInt;
12608 private long myInt_ = 0L;
12609 public bool HasMyInt {
12610 get { return hasMyInt; }
12611 }
12612 public long MyInt {
12613 get { return myInt_; }
12614 }
12615
12616 public const int MyFloatFieldNumber = 101;
12617 private bool hasMyFloat;
12618 private float myFloat_ = 0F;
12619 public bool HasMyFloat {
12620 get { return hasMyFloat; }
12621 }
12622 public float MyFloat {
12623 get { return myFloat_; }
12624 }
12625
12626 public override bool IsInitialized {
12627 get {
12628 if (!ExtensionsAreInitialized) return false;
12629 return true;
12630 }
12631 }
12632
12633 public override void WriteTo(pb::CodedOutputStream output) {
12634 int size = SerializedSize;
12635 pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
12636 if (HasMyInt) {
12637 output.WriteInt64(1, MyInt);
12638 }
12639 extensionWriter.WriteUntil(11, output);
12640 if (HasMyString) {
12641 output.WriteString(11, MyString);
12642 }
12643 extensionWriter.WriteUntil(101, output);
12644 if (HasMyFloat) {
12645 output.WriteFloat(101, MyFloat);
12646 }
12647 UnknownFields.WriteTo(output);
12648 }
12649
12650 private int memoizedSerializedSize = -1;
12651 public override int SerializedSize {
12652 get {
12653 int size = memoizedSerializedSize;
12654 if (size != -1) return size;
12655
12656 size = 0;
12657 if (HasMyString) {
12658 size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
12659 }
12660 if (HasMyInt) {
12661 size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
12662 }
12663 if (HasMyFloat) {
12664 size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
12665 }
12666 size += ExtensionsSerializedSize;
12667 size += UnknownFields.SerializedSize;
12668 memoizedSerializedSize = size;
12669 return size;
12670 }
12671 }
12672
12673 public static TestFieldOrderings ParseFrom(pb::ByteString data) {
12674 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12675 }
12676 public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
12677 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12678 }
12679 public static TestFieldOrderings ParseFrom(byte[] data) {
12680 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
12681 }
12682 public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
12683 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
12684 }
12685 public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
12686 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12687 }
12688 public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12689 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12690 }
12691 public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input) {
12692 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
12693 }
12694 public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
12695 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
12696 }
12697 public static TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
12698 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
12699 }
12700 public static TestFieldOrderings ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
12701 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
12702 }
12703 public static Builder CreateBuilder() { return new Builder(); }
12704 public override Builder ToBuilder() { return CreateBuilder(this); }
12705 public override Builder CreateBuilderForType() { return new Builder(); }
12706 public static Builder CreateBuilder(TestFieldOrderings prototype) {
12707 return (Builder) new Builder().MergeFrom(prototype);
12708 }
12709
csharptest445bdce2011-05-20 15:50:54 -050012710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12711 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12712 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012713 public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> {
12714 protected override Builder ThisBuilder {
12715 get { return this; }
12716 }
12717 public Builder() {}
12718
12719 TestFieldOrderings result = new TestFieldOrderings();
12720
12721 protected override TestFieldOrderings MessageBeingBuilt {
12722 get { return result; }
12723 }
12724
12725 public override Builder Clear() {
12726 result = new TestFieldOrderings();
12727 return this;
12728 }
12729
12730 public override Builder Clone() {
12731 return new Builder().MergeFrom(result);
12732 }
12733
12734 public override pbd::MessageDescriptor DescriptorForType {
12735 get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
12736 }
12737
12738 public override TestFieldOrderings DefaultInstanceForType {
12739 get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
12740 }
12741
12742 public override TestFieldOrderings BuildPartial() {
12743 if (result == null) {
12744 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
12745 }
12746 TestFieldOrderings returnMe = result;
12747 result = null;
12748 return returnMe;
12749 }
12750
12751 public override Builder MergeFrom(pb::IMessage other) {
12752 if (other is TestFieldOrderings) {
12753 return MergeFrom((TestFieldOrderings) other);
12754 } else {
12755 base.MergeFrom(other);
12756 return this;
12757 }
12758 }
12759
12760 public override Builder MergeFrom(TestFieldOrderings other) {
12761 if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
12762 if (other.HasMyString) {
12763 MyString = other.MyString;
12764 }
12765 if (other.HasMyInt) {
12766 MyInt = other.MyInt;
12767 }
12768 if (other.HasMyFloat) {
12769 MyFloat = other.MyFloat;
12770 }
12771 this.MergeExtensionFields(other);
12772 this.MergeUnknownFields(other.UnknownFields);
12773 return this;
12774 }
12775
12776 public override Builder MergeFrom(pb::CodedInputStream input) {
12777 return MergeFrom(input, pb::ExtensionRegistry.Empty);
12778 }
12779
12780 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
12781 pb::UnknownFieldSet.Builder unknownFields = null;
12782 while (true) {
12783 uint tag = input.ReadTag();
12784 switch (tag) {
12785 case 0: {
12786 if (unknownFields != null) {
12787 this.UnknownFields = unknownFields.Build();
12788 }
12789 return this;
12790 }
12791 default: {
12792 if (pb::WireFormat.IsEndGroupTag(tag)) {
12793 if (unknownFields != null) {
12794 this.UnknownFields = unknownFields.Build();
12795 }
12796 return this;
12797 }
12798 if (unknownFields == null) {
12799 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
12800 }
12801 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
12802 break;
12803 }
12804 case 8: {
12805 MyInt = input.ReadInt64();
12806 break;
12807 }
12808 case 90: {
12809 MyString = input.ReadString();
12810 break;
12811 }
12812 case 813: {
12813 MyFloat = input.ReadFloat();
12814 break;
12815 }
12816 }
12817 }
12818 }
12819
12820
12821 public bool HasMyString {
12822 get { return result.HasMyString; }
12823 }
12824 public string MyString {
12825 get { return result.MyString; }
12826 set { SetMyString(value); }
12827 }
12828 public Builder SetMyString(string value) {
12829 pb::ThrowHelper.ThrowIfNull(value, "value");
12830 result.hasMyString = true;
12831 result.myString_ = value;
12832 return this;
12833 }
12834 public Builder ClearMyString() {
12835 result.hasMyString = false;
12836 result.myString_ = "";
12837 return this;
12838 }
12839
12840 public bool HasMyInt {
12841 get { return result.HasMyInt; }
12842 }
12843 public long MyInt {
12844 get { return result.MyInt; }
12845 set { SetMyInt(value); }
12846 }
12847 public Builder SetMyInt(long value) {
12848 result.hasMyInt = true;
12849 result.myInt_ = value;
12850 return this;
12851 }
12852 public Builder ClearMyInt() {
12853 result.hasMyInt = false;
12854 result.myInt_ = 0L;
12855 return this;
12856 }
12857
12858 public bool HasMyFloat {
12859 get { return result.HasMyFloat; }
12860 }
12861 public float MyFloat {
12862 get { return result.MyFloat; }
12863 set { SetMyFloat(value); }
12864 }
12865 public Builder SetMyFloat(float value) {
12866 result.hasMyFloat = true;
12867 result.myFloat_ = value;
12868 return this;
12869 }
12870 public Builder ClearMyFloat() {
12871 result.hasMyFloat = false;
12872 result.myFloat_ = 0F;
12873 return this;
12874 }
12875 }
12876 static TestFieldOrderings() {
12877 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
12878 }
12879 }
12880
csharptest445bdce2011-05-20 15:50:54 -050012881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12882 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
12883 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010012884 public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
12885 private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial();
12886 public static TestExtremeDefaultValues DefaultInstance {
12887 get { return defaultInstance; }
12888 }
12889
12890 public override TestExtremeDefaultValues DefaultInstanceForType {
12891 get { return defaultInstance; }
12892 }
12893
12894 protected override TestExtremeDefaultValues ThisMessage {
12895 get { return this; }
12896 }
12897
12898 public static pbd::MessageDescriptor Descriptor {
12899 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
12900 }
12901
12902 protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
12903 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
12904 }
12905
12906 public const int EscapedBytesFieldNumber = 1;
12907 private bool hasEscapedBytes;
12908 private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
12909 public bool HasEscapedBytes {
12910 get { return hasEscapedBytes; }
12911 }
12912 public pb::ByteString EscapedBytes {
12913 get { return escapedBytes_; }
12914 }
12915
12916 public const int LargeUint32FieldNumber = 2;
12917 private bool hasLargeUint32;
12918 private uint largeUint32_ = 4294967295;
12919 public bool HasLargeUint32 {
12920 get { return hasLargeUint32; }
12921 }
12922 [global::System.CLSCompliant(false)]
12923 public uint LargeUint32 {
12924 get { return largeUint32_; }
12925 }
12926
12927 public const int LargeUint64FieldNumber = 3;
12928 private bool hasLargeUint64;
12929 private ulong largeUint64_ = 18446744073709551615UL;
12930 public bool HasLargeUint64 {
12931 get { return hasLargeUint64; }
12932 }
12933 [global::System.CLSCompliant(false)]
12934 public ulong LargeUint64 {
12935 get { return largeUint64_; }
12936 }
12937
12938 public const int SmallInt32FieldNumber = 4;
12939 private bool hasSmallInt32;
12940 private int smallInt32_ = -2147483647;
12941 public bool HasSmallInt32 {
12942 get { return hasSmallInt32; }
12943 }
12944 public int SmallInt32 {
12945 get { return smallInt32_; }
12946 }
12947
12948 public const int SmallInt64FieldNumber = 5;
12949 private bool hasSmallInt64;
12950 private long smallInt64_ = -9223372036854775807L;
12951 public bool HasSmallInt64 {
12952 get { return hasSmallInt64; }
12953 }
12954 public long SmallInt64 {
12955 get { return smallInt64_; }
12956 }
12957
12958 public const int Utf8StringFieldNumber = 6;
12959 private bool hasUtf8String;
12960 private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue;
12961 public bool HasUtf8String {
12962 get { return hasUtf8String; }
12963 }
12964 public string Utf8String {
12965 get { return utf8String_; }
12966 }
12967
12968 public const int ZeroFloatFieldNumber = 7;
12969 private bool hasZeroFloat;
12970 private float zeroFloat_ = 0F;
12971 public bool HasZeroFloat {
12972 get { return hasZeroFloat; }
12973 }
12974 public float ZeroFloat {
12975 get { return zeroFloat_; }
12976 }
12977
12978 public const int OneFloatFieldNumber = 8;
12979 private bool hasOneFloat;
12980 private float oneFloat_ = 1F;
12981 public bool HasOneFloat {
12982 get { return hasOneFloat; }
12983 }
12984 public float OneFloat {
12985 get { return oneFloat_; }
12986 }
12987
12988 public const int SmallFloatFieldNumber = 9;
12989 private bool hasSmallFloat;
12990 private float smallFloat_ = 1.5F;
12991 public bool HasSmallFloat {
12992 get { return hasSmallFloat; }
12993 }
12994 public float SmallFloat {
12995 get { return smallFloat_; }
12996 }
12997
12998 public const int NegativeOneFloatFieldNumber = 10;
12999 private bool hasNegativeOneFloat;
13000 private float negativeOneFloat_ = -1F;
13001 public bool HasNegativeOneFloat {
13002 get { return hasNegativeOneFloat; }
13003 }
13004 public float NegativeOneFloat {
13005 get { return negativeOneFloat_; }
13006 }
13007
13008 public const int NegativeFloatFieldNumber = 11;
13009 private bool hasNegativeFloat;
13010 private float negativeFloat_ = -1.5F;
13011 public bool HasNegativeFloat {
13012 get { return hasNegativeFloat; }
13013 }
13014 public float NegativeFloat {
13015 get { return negativeFloat_; }
13016 }
13017
13018 public const int LargeFloatFieldNumber = 12;
13019 private bool hasLargeFloat;
13020 private float largeFloat_ = 2E+08F;
13021 public bool HasLargeFloat {
13022 get { return hasLargeFloat; }
13023 }
13024 public float LargeFloat {
13025 get { return largeFloat_; }
13026 }
13027
13028 public const int SmallNegativeFloatFieldNumber = 13;
13029 private bool hasSmallNegativeFloat;
13030 private float smallNegativeFloat_ = -8E-28F;
13031 public bool HasSmallNegativeFloat {
13032 get { return hasSmallNegativeFloat; }
13033 }
13034 public float SmallNegativeFloat {
13035 get { return smallNegativeFloat_; }
13036 }
13037
13038 public const int InfDoubleFieldNumber = 14;
13039 private bool hasInfDouble;
13040 private double infDouble_ = double.PositiveInfinity;
13041 public bool HasInfDouble {
13042 get { return hasInfDouble; }
13043 }
13044 public double InfDouble {
13045 get { return infDouble_; }
13046 }
13047
13048 public const int NegInfDoubleFieldNumber = 15;
13049 private bool hasNegInfDouble;
13050 private double negInfDouble_ = double.NegativeInfinity;
13051 public bool HasNegInfDouble {
13052 get { return hasNegInfDouble; }
13053 }
13054 public double NegInfDouble {
13055 get { return negInfDouble_; }
13056 }
13057
13058 public const int NanDoubleFieldNumber = 16;
13059 private bool hasNanDouble;
13060 private double nanDouble_ = double.NaN;
13061 public bool HasNanDouble {
13062 get { return hasNanDouble; }
13063 }
13064 public double NanDouble {
13065 get { return nanDouble_; }
13066 }
13067
13068 public const int InfFloatFieldNumber = 17;
13069 private bool hasInfFloat;
13070 private float infFloat_ = float.PositiveInfinity;
13071 public bool HasInfFloat {
13072 get { return hasInfFloat; }
13073 }
13074 public float InfFloat {
13075 get { return infFloat_; }
13076 }
13077
13078 public const int NegInfFloatFieldNumber = 18;
13079 private bool hasNegInfFloat;
13080 private float negInfFloat_ = float.NegativeInfinity;
13081 public bool HasNegInfFloat {
13082 get { return hasNegInfFloat; }
13083 }
13084 public float NegInfFloat {
13085 get { return negInfFloat_; }
13086 }
13087
13088 public const int NanFloatFieldNumber = 19;
13089 private bool hasNanFloat;
13090 private float nanFloat_ = float.NaN;
13091 public bool HasNanFloat {
13092 get { return hasNanFloat; }
13093 }
13094 public float NanFloat {
13095 get { return nanFloat_; }
13096 }
13097
13098 public override bool IsInitialized {
13099 get {
13100 return true;
13101 }
13102 }
13103
13104 public override void WriteTo(pb::CodedOutputStream output) {
13105 int size = SerializedSize;
13106 if (HasEscapedBytes) {
13107 output.WriteBytes(1, EscapedBytes);
13108 }
13109 if (HasLargeUint32) {
13110 output.WriteUInt32(2, LargeUint32);
13111 }
13112 if (HasLargeUint64) {
13113 output.WriteUInt64(3, LargeUint64);
13114 }
13115 if (HasSmallInt32) {
13116 output.WriteInt32(4, SmallInt32);
13117 }
13118 if (HasSmallInt64) {
13119 output.WriteInt64(5, SmallInt64);
13120 }
13121 if (HasUtf8String) {
13122 output.WriteString(6, Utf8String);
13123 }
13124 if (HasZeroFloat) {
13125 output.WriteFloat(7, ZeroFloat);
13126 }
13127 if (HasOneFloat) {
13128 output.WriteFloat(8, OneFloat);
13129 }
13130 if (HasSmallFloat) {
13131 output.WriteFloat(9, SmallFloat);
13132 }
13133 if (HasNegativeOneFloat) {
13134 output.WriteFloat(10, NegativeOneFloat);
13135 }
13136 if (HasNegativeFloat) {
13137 output.WriteFloat(11, NegativeFloat);
13138 }
13139 if (HasLargeFloat) {
13140 output.WriteFloat(12, LargeFloat);
13141 }
13142 if (HasSmallNegativeFloat) {
13143 output.WriteFloat(13, SmallNegativeFloat);
13144 }
13145 if (HasInfDouble) {
13146 output.WriteDouble(14, InfDouble);
13147 }
13148 if (HasNegInfDouble) {
13149 output.WriteDouble(15, NegInfDouble);
13150 }
13151 if (HasNanDouble) {
13152 output.WriteDouble(16, NanDouble);
13153 }
13154 if (HasInfFloat) {
13155 output.WriteFloat(17, InfFloat);
13156 }
13157 if (HasNegInfFloat) {
13158 output.WriteFloat(18, NegInfFloat);
13159 }
13160 if (HasNanFloat) {
13161 output.WriteFloat(19, NanFloat);
13162 }
13163 UnknownFields.WriteTo(output);
13164 }
13165
13166 private int memoizedSerializedSize = -1;
13167 public override int SerializedSize {
13168 get {
13169 int size = memoizedSerializedSize;
13170 if (size != -1) return size;
13171
13172 size = 0;
13173 if (HasEscapedBytes) {
13174 size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
13175 }
13176 if (HasLargeUint32) {
13177 size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
13178 }
13179 if (HasLargeUint64) {
13180 size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
13181 }
13182 if (HasSmallInt32) {
13183 size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
13184 }
13185 if (HasSmallInt64) {
13186 size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
13187 }
13188 if (HasUtf8String) {
13189 size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
13190 }
13191 if (HasZeroFloat) {
13192 size += pb::CodedOutputStream.ComputeFloatSize(7, ZeroFloat);
13193 }
13194 if (HasOneFloat) {
13195 size += pb::CodedOutputStream.ComputeFloatSize(8, OneFloat);
13196 }
13197 if (HasSmallFloat) {
13198 size += pb::CodedOutputStream.ComputeFloatSize(9, SmallFloat);
13199 }
13200 if (HasNegativeOneFloat) {
13201 size += pb::CodedOutputStream.ComputeFloatSize(10, NegativeOneFloat);
13202 }
13203 if (HasNegativeFloat) {
13204 size += pb::CodedOutputStream.ComputeFloatSize(11, NegativeFloat);
13205 }
13206 if (HasLargeFloat) {
13207 size += pb::CodedOutputStream.ComputeFloatSize(12, LargeFloat);
13208 }
13209 if (HasSmallNegativeFloat) {
13210 size += pb::CodedOutputStream.ComputeFloatSize(13, SmallNegativeFloat);
13211 }
13212 if (HasInfDouble) {
13213 size += pb::CodedOutputStream.ComputeDoubleSize(14, InfDouble);
13214 }
13215 if (HasNegInfDouble) {
13216 size += pb::CodedOutputStream.ComputeDoubleSize(15, NegInfDouble);
13217 }
13218 if (HasNanDouble) {
13219 size += pb::CodedOutputStream.ComputeDoubleSize(16, NanDouble);
13220 }
13221 if (HasInfFloat) {
13222 size += pb::CodedOutputStream.ComputeFloatSize(17, InfFloat);
13223 }
13224 if (HasNegInfFloat) {
13225 size += pb::CodedOutputStream.ComputeFloatSize(18, NegInfFloat);
13226 }
13227 if (HasNanFloat) {
13228 size += pb::CodedOutputStream.ComputeFloatSize(19, NanFloat);
13229 }
13230 size += UnknownFields.SerializedSize;
13231 memoizedSerializedSize = size;
13232 return size;
13233 }
13234 }
13235
13236 public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
13237 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13238 }
13239 public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
13240 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13241 }
13242 public static TestExtremeDefaultValues ParseFrom(byte[] data) {
13243 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13244 }
13245 public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
13246 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13247 }
13248 public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
13249 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13250 }
13251 public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13252 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13253 }
13254 public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input) {
13255 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
13256 }
13257 public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13258 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
13259 }
13260 public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
13261 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13262 }
13263 public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
13264 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13265 }
13266 public static Builder CreateBuilder() { return new Builder(); }
13267 public override Builder ToBuilder() { return CreateBuilder(this); }
13268 public override Builder CreateBuilderForType() { return new Builder(); }
13269 public static Builder CreateBuilder(TestExtremeDefaultValues prototype) {
13270 return (Builder) new Builder().MergeFrom(prototype);
13271 }
13272
csharptest445bdce2011-05-20 15:50:54 -050013273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13274 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13275 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013276 public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> {
13277 protected override Builder ThisBuilder {
13278 get { return this; }
13279 }
13280 public Builder() {}
13281
13282 TestExtremeDefaultValues result = new TestExtremeDefaultValues();
13283
13284 protected override TestExtremeDefaultValues MessageBeingBuilt {
13285 get { return result; }
13286 }
13287
13288 public override Builder Clear() {
13289 result = new TestExtremeDefaultValues();
13290 return this;
13291 }
13292
13293 public override Builder Clone() {
13294 return new Builder().MergeFrom(result);
13295 }
13296
13297 public override pbd::MessageDescriptor DescriptorForType {
13298 get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
13299 }
13300
13301 public override TestExtremeDefaultValues DefaultInstanceForType {
13302 get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
13303 }
13304
13305 public override TestExtremeDefaultValues BuildPartial() {
13306 if (result == null) {
13307 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
13308 }
13309 TestExtremeDefaultValues returnMe = result;
13310 result = null;
13311 return returnMe;
13312 }
13313
13314 public override Builder MergeFrom(pb::IMessage other) {
13315 if (other is TestExtremeDefaultValues) {
13316 return MergeFrom((TestExtremeDefaultValues) other);
13317 } else {
13318 base.MergeFrom(other);
13319 return this;
13320 }
13321 }
13322
13323 public override Builder MergeFrom(TestExtremeDefaultValues other) {
13324 if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
13325 if (other.HasEscapedBytes) {
13326 EscapedBytes = other.EscapedBytes;
13327 }
13328 if (other.HasLargeUint32) {
13329 LargeUint32 = other.LargeUint32;
13330 }
13331 if (other.HasLargeUint64) {
13332 LargeUint64 = other.LargeUint64;
13333 }
13334 if (other.HasSmallInt32) {
13335 SmallInt32 = other.SmallInt32;
13336 }
13337 if (other.HasSmallInt64) {
13338 SmallInt64 = other.SmallInt64;
13339 }
13340 if (other.HasUtf8String) {
13341 Utf8String = other.Utf8String;
13342 }
13343 if (other.HasZeroFloat) {
13344 ZeroFloat = other.ZeroFloat;
13345 }
13346 if (other.HasOneFloat) {
13347 OneFloat = other.OneFloat;
13348 }
13349 if (other.HasSmallFloat) {
13350 SmallFloat = other.SmallFloat;
13351 }
13352 if (other.HasNegativeOneFloat) {
13353 NegativeOneFloat = other.NegativeOneFloat;
13354 }
13355 if (other.HasNegativeFloat) {
13356 NegativeFloat = other.NegativeFloat;
13357 }
13358 if (other.HasLargeFloat) {
13359 LargeFloat = other.LargeFloat;
13360 }
13361 if (other.HasSmallNegativeFloat) {
13362 SmallNegativeFloat = other.SmallNegativeFloat;
13363 }
13364 if (other.HasInfDouble) {
13365 InfDouble = other.InfDouble;
13366 }
13367 if (other.HasNegInfDouble) {
13368 NegInfDouble = other.NegInfDouble;
13369 }
13370 if (other.HasNanDouble) {
13371 NanDouble = other.NanDouble;
13372 }
13373 if (other.HasInfFloat) {
13374 InfFloat = other.InfFloat;
13375 }
13376 if (other.HasNegInfFloat) {
13377 NegInfFloat = other.NegInfFloat;
13378 }
13379 if (other.HasNanFloat) {
13380 NanFloat = other.NanFloat;
13381 }
13382 this.MergeUnknownFields(other.UnknownFields);
13383 return this;
13384 }
13385
13386 public override Builder MergeFrom(pb::CodedInputStream input) {
13387 return MergeFrom(input, pb::ExtensionRegistry.Empty);
13388 }
13389
13390 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
13391 pb::UnknownFieldSet.Builder unknownFields = null;
13392 while (true) {
13393 uint tag = input.ReadTag();
13394 switch (tag) {
13395 case 0: {
13396 if (unknownFields != null) {
13397 this.UnknownFields = unknownFields.Build();
13398 }
13399 return this;
13400 }
13401 default: {
13402 if (pb::WireFormat.IsEndGroupTag(tag)) {
13403 if (unknownFields != null) {
13404 this.UnknownFields = unknownFields.Build();
13405 }
13406 return this;
13407 }
13408 if (unknownFields == null) {
13409 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
13410 }
13411 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
13412 break;
13413 }
13414 case 10: {
13415 EscapedBytes = input.ReadBytes();
13416 break;
13417 }
13418 case 16: {
13419 LargeUint32 = input.ReadUInt32();
13420 break;
13421 }
13422 case 24: {
13423 LargeUint64 = input.ReadUInt64();
13424 break;
13425 }
13426 case 32: {
13427 SmallInt32 = input.ReadInt32();
13428 break;
13429 }
13430 case 40: {
13431 SmallInt64 = input.ReadInt64();
13432 break;
13433 }
13434 case 50: {
13435 Utf8String = input.ReadString();
13436 break;
13437 }
13438 case 61: {
13439 ZeroFloat = input.ReadFloat();
13440 break;
13441 }
13442 case 69: {
13443 OneFloat = input.ReadFloat();
13444 break;
13445 }
13446 case 77: {
13447 SmallFloat = input.ReadFloat();
13448 break;
13449 }
13450 case 85: {
13451 NegativeOneFloat = input.ReadFloat();
13452 break;
13453 }
13454 case 93: {
13455 NegativeFloat = input.ReadFloat();
13456 break;
13457 }
13458 case 101: {
13459 LargeFloat = input.ReadFloat();
13460 break;
13461 }
13462 case 109: {
13463 SmallNegativeFloat = input.ReadFloat();
13464 break;
13465 }
13466 case 113: {
13467 InfDouble = input.ReadDouble();
13468 break;
13469 }
13470 case 121: {
13471 NegInfDouble = input.ReadDouble();
13472 break;
13473 }
13474 case 129: {
13475 NanDouble = input.ReadDouble();
13476 break;
13477 }
13478 case 141: {
13479 InfFloat = input.ReadFloat();
13480 break;
13481 }
13482 case 149: {
13483 NegInfFloat = input.ReadFloat();
13484 break;
13485 }
13486 case 157: {
13487 NanFloat = input.ReadFloat();
13488 break;
13489 }
13490 }
13491 }
13492 }
13493
13494
13495 public bool HasEscapedBytes {
13496 get { return result.HasEscapedBytes; }
13497 }
13498 public pb::ByteString EscapedBytes {
13499 get { return result.EscapedBytes; }
13500 set { SetEscapedBytes(value); }
13501 }
13502 public Builder SetEscapedBytes(pb::ByteString value) {
13503 pb::ThrowHelper.ThrowIfNull(value, "value");
13504 result.hasEscapedBytes = true;
13505 result.escapedBytes_ = value;
13506 return this;
13507 }
13508 public Builder ClearEscapedBytes() {
13509 result.hasEscapedBytes = false;
13510 result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
13511 return this;
13512 }
13513
13514 public bool HasLargeUint32 {
13515 get { return result.HasLargeUint32; }
13516 }
13517 [global::System.CLSCompliant(false)]
13518 public uint LargeUint32 {
13519 get { return result.LargeUint32; }
13520 set { SetLargeUint32(value); }
13521 }
13522 [global::System.CLSCompliant(false)]
13523 public Builder SetLargeUint32(uint value) {
13524 result.hasLargeUint32 = true;
13525 result.largeUint32_ = value;
13526 return this;
13527 }
13528 public Builder ClearLargeUint32() {
13529 result.hasLargeUint32 = false;
13530 result.largeUint32_ = 4294967295;
13531 return this;
13532 }
13533
13534 public bool HasLargeUint64 {
13535 get { return result.HasLargeUint64; }
13536 }
13537 [global::System.CLSCompliant(false)]
13538 public ulong LargeUint64 {
13539 get { return result.LargeUint64; }
13540 set { SetLargeUint64(value); }
13541 }
13542 [global::System.CLSCompliant(false)]
13543 public Builder SetLargeUint64(ulong value) {
13544 result.hasLargeUint64 = true;
13545 result.largeUint64_ = value;
13546 return this;
13547 }
13548 public Builder ClearLargeUint64() {
13549 result.hasLargeUint64 = false;
13550 result.largeUint64_ = 18446744073709551615UL;
13551 return this;
13552 }
13553
13554 public bool HasSmallInt32 {
13555 get { return result.HasSmallInt32; }
13556 }
13557 public int SmallInt32 {
13558 get { return result.SmallInt32; }
13559 set { SetSmallInt32(value); }
13560 }
13561 public Builder SetSmallInt32(int value) {
13562 result.hasSmallInt32 = true;
13563 result.smallInt32_ = value;
13564 return this;
13565 }
13566 public Builder ClearSmallInt32() {
13567 result.hasSmallInt32 = false;
13568 result.smallInt32_ = -2147483647;
13569 return this;
13570 }
13571
13572 public bool HasSmallInt64 {
13573 get { return result.HasSmallInt64; }
13574 }
13575 public long SmallInt64 {
13576 get { return result.SmallInt64; }
13577 set { SetSmallInt64(value); }
13578 }
13579 public Builder SetSmallInt64(long value) {
13580 result.hasSmallInt64 = true;
13581 result.smallInt64_ = value;
13582 return this;
13583 }
13584 public Builder ClearSmallInt64() {
13585 result.hasSmallInt64 = false;
13586 result.smallInt64_ = -9223372036854775807L;
13587 return this;
13588 }
13589
13590 public bool HasUtf8String {
13591 get { return result.HasUtf8String; }
13592 }
13593 public string Utf8String {
13594 get { return result.Utf8String; }
13595 set { SetUtf8String(value); }
13596 }
13597 public Builder SetUtf8String(string value) {
13598 pb::ThrowHelper.ThrowIfNull(value, "value");
13599 result.hasUtf8String = true;
13600 result.utf8String_ = value;
13601 return this;
13602 }
13603 public Builder ClearUtf8String() {
13604 result.hasUtf8String = false;
13605 result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue;
13606 return this;
13607 }
13608
13609 public bool HasZeroFloat {
13610 get { return result.HasZeroFloat; }
13611 }
13612 public float ZeroFloat {
13613 get { return result.ZeroFloat; }
13614 set { SetZeroFloat(value); }
13615 }
13616 public Builder SetZeroFloat(float value) {
13617 result.hasZeroFloat = true;
13618 result.zeroFloat_ = value;
13619 return this;
13620 }
13621 public Builder ClearZeroFloat() {
13622 result.hasZeroFloat = false;
13623 result.zeroFloat_ = 0F;
13624 return this;
13625 }
13626
13627 public bool HasOneFloat {
13628 get { return result.HasOneFloat; }
13629 }
13630 public float OneFloat {
13631 get { return result.OneFloat; }
13632 set { SetOneFloat(value); }
13633 }
13634 public Builder SetOneFloat(float value) {
13635 result.hasOneFloat = true;
13636 result.oneFloat_ = value;
13637 return this;
13638 }
13639 public Builder ClearOneFloat() {
13640 result.hasOneFloat = false;
13641 result.oneFloat_ = 1F;
13642 return this;
13643 }
13644
13645 public bool HasSmallFloat {
13646 get { return result.HasSmallFloat; }
13647 }
13648 public float SmallFloat {
13649 get { return result.SmallFloat; }
13650 set { SetSmallFloat(value); }
13651 }
13652 public Builder SetSmallFloat(float value) {
13653 result.hasSmallFloat = true;
13654 result.smallFloat_ = value;
13655 return this;
13656 }
13657 public Builder ClearSmallFloat() {
13658 result.hasSmallFloat = false;
13659 result.smallFloat_ = 1.5F;
13660 return this;
13661 }
13662
13663 public bool HasNegativeOneFloat {
13664 get { return result.HasNegativeOneFloat; }
13665 }
13666 public float NegativeOneFloat {
13667 get { return result.NegativeOneFloat; }
13668 set { SetNegativeOneFloat(value); }
13669 }
13670 public Builder SetNegativeOneFloat(float value) {
13671 result.hasNegativeOneFloat = true;
13672 result.negativeOneFloat_ = value;
13673 return this;
13674 }
13675 public Builder ClearNegativeOneFloat() {
13676 result.hasNegativeOneFloat = false;
13677 result.negativeOneFloat_ = -1F;
13678 return this;
13679 }
13680
13681 public bool HasNegativeFloat {
13682 get { return result.HasNegativeFloat; }
13683 }
13684 public float NegativeFloat {
13685 get { return result.NegativeFloat; }
13686 set { SetNegativeFloat(value); }
13687 }
13688 public Builder SetNegativeFloat(float value) {
13689 result.hasNegativeFloat = true;
13690 result.negativeFloat_ = value;
13691 return this;
13692 }
13693 public Builder ClearNegativeFloat() {
13694 result.hasNegativeFloat = false;
13695 result.negativeFloat_ = -1.5F;
13696 return this;
13697 }
13698
13699 public bool HasLargeFloat {
13700 get { return result.HasLargeFloat; }
13701 }
13702 public float LargeFloat {
13703 get { return result.LargeFloat; }
13704 set { SetLargeFloat(value); }
13705 }
13706 public Builder SetLargeFloat(float value) {
13707 result.hasLargeFloat = true;
13708 result.largeFloat_ = value;
13709 return this;
13710 }
13711 public Builder ClearLargeFloat() {
13712 result.hasLargeFloat = false;
13713 result.largeFloat_ = 2E+08F;
13714 return this;
13715 }
13716
13717 public bool HasSmallNegativeFloat {
13718 get { return result.HasSmallNegativeFloat; }
13719 }
13720 public float SmallNegativeFloat {
13721 get { return result.SmallNegativeFloat; }
13722 set { SetSmallNegativeFloat(value); }
13723 }
13724 public Builder SetSmallNegativeFloat(float value) {
13725 result.hasSmallNegativeFloat = true;
13726 result.smallNegativeFloat_ = value;
13727 return this;
13728 }
13729 public Builder ClearSmallNegativeFloat() {
13730 result.hasSmallNegativeFloat = false;
13731 result.smallNegativeFloat_ = -8E-28F;
13732 return this;
13733 }
13734
13735 public bool HasInfDouble {
13736 get { return result.HasInfDouble; }
13737 }
13738 public double InfDouble {
13739 get { return result.InfDouble; }
13740 set { SetInfDouble(value); }
13741 }
13742 public Builder SetInfDouble(double value) {
13743 result.hasInfDouble = true;
13744 result.infDouble_ = value;
13745 return this;
13746 }
13747 public Builder ClearInfDouble() {
13748 result.hasInfDouble = false;
13749 result.infDouble_ = double.PositiveInfinity;
13750 return this;
13751 }
13752
13753 public bool HasNegInfDouble {
13754 get { return result.HasNegInfDouble; }
13755 }
13756 public double NegInfDouble {
13757 get { return result.NegInfDouble; }
13758 set { SetNegInfDouble(value); }
13759 }
13760 public Builder SetNegInfDouble(double value) {
13761 result.hasNegInfDouble = true;
13762 result.negInfDouble_ = value;
13763 return this;
13764 }
13765 public Builder ClearNegInfDouble() {
13766 result.hasNegInfDouble = false;
13767 result.negInfDouble_ = double.NegativeInfinity;
13768 return this;
13769 }
13770
13771 public bool HasNanDouble {
13772 get { return result.HasNanDouble; }
13773 }
13774 public double NanDouble {
13775 get { return result.NanDouble; }
13776 set { SetNanDouble(value); }
13777 }
13778 public Builder SetNanDouble(double value) {
13779 result.hasNanDouble = true;
13780 result.nanDouble_ = value;
13781 return this;
13782 }
13783 public Builder ClearNanDouble() {
13784 result.hasNanDouble = false;
13785 result.nanDouble_ = double.NaN;
13786 return this;
13787 }
13788
13789 public bool HasInfFloat {
13790 get { return result.HasInfFloat; }
13791 }
13792 public float InfFloat {
13793 get { return result.InfFloat; }
13794 set { SetInfFloat(value); }
13795 }
13796 public Builder SetInfFloat(float value) {
13797 result.hasInfFloat = true;
13798 result.infFloat_ = value;
13799 return this;
13800 }
13801 public Builder ClearInfFloat() {
13802 result.hasInfFloat = false;
13803 result.infFloat_ = float.PositiveInfinity;
13804 return this;
13805 }
13806
13807 public bool HasNegInfFloat {
13808 get { return result.HasNegInfFloat; }
13809 }
13810 public float NegInfFloat {
13811 get { return result.NegInfFloat; }
13812 set { SetNegInfFloat(value); }
13813 }
13814 public Builder SetNegInfFloat(float value) {
13815 result.hasNegInfFloat = true;
13816 result.negInfFloat_ = value;
13817 return this;
13818 }
13819 public Builder ClearNegInfFloat() {
13820 result.hasNegInfFloat = false;
13821 result.negInfFloat_ = float.NegativeInfinity;
13822 return this;
13823 }
13824
13825 public bool HasNanFloat {
13826 get { return result.HasNanFloat; }
13827 }
13828 public float NanFloat {
13829 get { return result.NanFloat; }
13830 set { SetNanFloat(value); }
13831 }
13832 public Builder SetNanFloat(float value) {
13833 result.hasNanFloat = true;
13834 result.nanFloat_ = value;
13835 return this;
13836 }
13837 public Builder ClearNanFloat() {
13838 result.hasNanFloat = false;
13839 result.nanFloat_ = float.NaN;
13840 return this;
13841 }
13842 }
13843 static TestExtremeDefaultValues() {
13844 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
13845 }
13846 }
13847
csharptest445bdce2011-05-20 15:50:54 -050013848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13849 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13850 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013851 public sealed partial class OneString : pb::GeneratedMessage<OneString, OneString.Builder> {
13852 private static readonly OneString defaultInstance = new Builder().BuildPartial();
13853 public static OneString DefaultInstance {
13854 get { return defaultInstance; }
13855 }
13856
13857 public override OneString DefaultInstanceForType {
13858 get { return defaultInstance; }
13859 }
13860
13861 protected override OneString ThisMessage {
13862 get { return this; }
13863 }
13864
13865 public static pbd::MessageDescriptor Descriptor {
13866 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneString__Descriptor; }
13867 }
13868
13869 protected override pb::FieldAccess.FieldAccessorTable<OneString, OneString.Builder> InternalFieldAccessors {
13870 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
13871 }
13872
13873 public const int DataFieldNumber = 1;
13874 private bool hasData;
13875 private string data_ = "";
13876 public bool HasData {
13877 get { return hasData; }
13878 }
13879 public string Data {
13880 get { return data_; }
13881 }
13882
13883 public override bool IsInitialized {
13884 get {
13885 return true;
13886 }
13887 }
13888
13889 public override void WriteTo(pb::CodedOutputStream output) {
13890 int size = SerializedSize;
13891 if (HasData) {
13892 output.WriteString(1, Data);
13893 }
13894 UnknownFields.WriteTo(output);
13895 }
13896
13897 private int memoizedSerializedSize = -1;
13898 public override int SerializedSize {
13899 get {
13900 int size = memoizedSerializedSize;
13901 if (size != -1) return size;
13902
13903 size = 0;
13904 if (HasData) {
13905 size += pb::CodedOutputStream.ComputeStringSize(1, Data);
13906 }
13907 size += UnknownFields.SerializedSize;
13908 memoizedSerializedSize = size;
13909 return size;
13910 }
13911 }
13912
13913 public static OneString ParseFrom(pb::ByteString data) {
13914 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13915 }
13916 public static OneString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
13917 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13918 }
13919 public static OneString ParseFrom(byte[] data) {
13920 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
13921 }
13922 public static OneString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
13923 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
13924 }
13925 public static OneString ParseFrom(global::System.IO.Stream input) {
13926 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13927 }
13928 public static OneString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13929 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13930 }
13931 public static OneString ParseDelimitedFrom(global::System.IO.Stream input) {
13932 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
13933 }
13934 public static OneString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
13935 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
13936 }
13937 public static OneString ParseFrom(pb::CodedInputStream input) {
13938 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
13939 }
13940 public static OneString ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
13941 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
13942 }
13943 public static Builder CreateBuilder() { return new Builder(); }
13944 public override Builder ToBuilder() { return CreateBuilder(this); }
13945 public override Builder CreateBuilderForType() { return new Builder(); }
13946 public static Builder CreateBuilder(OneString prototype) {
13947 return (Builder) new Builder().MergeFrom(prototype);
13948 }
13949
csharptest445bdce2011-05-20 15:50:54 -050013950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13951 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13952 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010013953 public sealed partial class Builder : pb::GeneratedBuilder<OneString, Builder> {
13954 protected override Builder ThisBuilder {
13955 get { return this; }
13956 }
13957 public Builder() {}
13958
13959 OneString result = new OneString();
13960
13961 protected override OneString MessageBeingBuilt {
13962 get { return result; }
13963 }
13964
13965 public override Builder Clear() {
13966 result = new OneString();
13967 return this;
13968 }
13969
13970 public override Builder Clone() {
13971 return new Builder().MergeFrom(result);
13972 }
13973
13974 public override pbd::MessageDescriptor DescriptorForType {
13975 get { return global::Google.ProtocolBuffers.TestProtos.OneString.Descriptor; }
13976 }
13977
13978 public override OneString DefaultInstanceForType {
13979 get { return global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance; }
13980 }
13981
13982 public override OneString BuildPartial() {
13983 if (result == null) {
13984 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
13985 }
13986 OneString returnMe = result;
13987 result = null;
13988 return returnMe;
13989 }
13990
13991 public override Builder MergeFrom(pb::IMessage other) {
13992 if (other is OneString) {
13993 return MergeFrom((OneString) other);
13994 } else {
13995 base.MergeFrom(other);
13996 return this;
13997 }
13998 }
13999
14000 public override Builder MergeFrom(OneString other) {
14001 if (other == global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance) return this;
14002 if (other.HasData) {
14003 Data = other.Data;
14004 }
14005 this.MergeUnknownFields(other.UnknownFields);
14006 return this;
14007 }
14008
14009 public override Builder MergeFrom(pb::CodedInputStream input) {
14010 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14011 }
14012
14013 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
14014 pb::UnknownFieldSet.Builder unknownFields = null;
14015 while (true) {
14016 uint tag = input.ReadTag();
14017 switch (tag) {
14018 case 0: {
14019 if (unknownFields != null) {
14020 this.UnknownFields = unknownFields.Build();
14021 }
14022 return this;
14023 }
14024 default: {
14025 if (pb::WireFormat.IsEndGroupTag(tag)) {
14026 if (unknownFields != null) {
14027 this.UnknownFields = unknownFields.Build();
14028 }
14029 return this;
14030 }
14031 if (unknownFields == null) {
14032 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14033 }
14034 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
14035 break;
14036 }
14037 case 10: {
14038 Data = input.ReadString();
14039 break;
14040 }
14041 }
14042 }
14043 }
14044
14045
14046 public bool HasData {
14047 get { return result.HasData; }
14048 }
14049 public string Data {
14050 get { return result.Data; }
14051 set { SetData(value); }
14052 }
14053 public Builder SetData(string value) {
14054 pb::ThrowHelper.ThrowIfNull(value, "value");
14055 result.hasData = true;
14056 result.data_ = value;
14057 return this;
14058 }
14059 public Builder ClearData() {
14060 result.hasData = false;
14061 result.data_ = "";
14062 return this;
14063 }
14064 }
14065 static OneString() {
14066 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
14067 }
14068 }
14069
csharptest445bdce2011-05-20 15:50:54 -050014070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14071 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14072 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014073 public sealed partial class OneBytes : pb::GeneratedMessage<OneBytes, OneBytes.Builder> {
14074 private static readonly OneBytes defaultInstance = new Builder().BuildPartial();
14075 public static OneBytes DefaultInstance {
14076 get { return defaultInstance; }
14077 }
14078
14079 public override OneBytes DefaultInstanceForType {
14080 get { return defaultInstance; }
14081 }
14082
14083 protected override OneBytes ThisMessage {
14084 get { return this; }
14085 }
14086
14087 public static pbd::MessageDescriptor Descriptor {
14088 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneBytes__Descriptor; }
14089 }
14090
14091 protected override pb::FieldAccess.FieldAccessorTable<OneBytes, OneBytes.Builder> InternalFieldAccessors {
14092 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
14093 }
14094
14095 public const int DataFieldNumber = 1;
14096 private bool hasData;
14097 private pb::ByteString data_ = pb::ByteString.Empty;
14098 public bool HasData {
14099 get { return hasData; }
14100 }
14101 public pb::ByteString Data {
14102 get { return data_; }
14103 }
14104
14105 public override bool IsInitialized {
14106 get {
14107 return true;
14108 }
14109 }
14110
14111 public override void WriteTo(pb::CodedOutputStream output) {
14112 int size = SerializedSize;
14113 if (HasData) {
14114 output.WriteBytes(1, Data);
14115 }
14116 UnknownFields.WriteTo(output);
14117 }
14118
14119 private int memoizedSerializedSize = -1;
14120 public override int SerializedSize {
14121 get {
14122 int size = memoizedSerializedSize;
14123 if (size != -1) return size;
14124
14125 size = 0;
14126 if (HasData) {
14127 size += pb::CodedOutputStream.ComputeBytesSize(1, Data);
14128 }
14129 size += UnknownFields.SerializedSize;
14130 memoizedSerializedSize = size;
14131 return size;
14132 }
14133 }
14134
14135 public static OneBytes ParseFrom(pb::ByteString data) {
14136 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14137 }
14138 public static OneBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
14139 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14140 }
14141 public static OneBytes ParseFrom(byte[] data) {
14142 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14143 }
14144 public static OneBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
14145 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14146 }
14147 public static OneBytes ParseFrom(global::System.IO.Stream input) {
14148 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14149 }
14150 public static OneBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14151 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14152 }
14153 public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input) {
14154 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
14155 }
14156 public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14157 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
14158 }
14159 public static OneBytes ParseFrom(pb::CodedInputStream input) {
14160 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14161 }
14162 public static OneBytes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
14163 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14164 }
14165 public static Builder CreateBuilder() { return new Builder(); }
14166 public override Builder ToBuilder() { return CreateBuilder(this); }
14167 public override Builder CreateBuilderForType() { return new Builder(); }
14168 public static Builder CreateBuilder(OneBytes prototype) {
14169 return (Builder) new Builder().MergeFrom(prototype);
14170 }
14171
csharptest445bdce2011-05-20 15:50:54 -050014172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14173 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14174 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014175 public sealed partial class Builder : pb::GeneratedBuilder<OneBytes, Builder> {
14176 protected override Builder ThisBuilder {
14177 get { return this; }
14178 }
14179 public Builder() {}
14180
14181 OneBytes result = new OneBytes();
14182
14183 protected override OneBytes MessageBeingBuilt {
14184 get { return result; }
14185 }
14186
14187 public override Builder Clear() {
14188 result = new OneBytes();
14189 return this;
14190 }
14191
14192 public override Builder Clone() {
14193 return new Builder().MergeFrom(result);
14194 }
14195
14196 public override pbd::MessageDescriptor DescriptorForType {
14197 get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.Descriptor; }
14198 }
14199
14200 public override OneBytes DefaultInstanceForType {
14201 get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance; }
14202 }
14203
14204 public override OneBytes BuildPartial() {
14205 if (result == null) {
14206 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
14207 }
14208 OneBytes returnMe = result;
14209 result = null;
14210 return returnMe;
14211 }
14212
14213 public override Builder MergeFrom(pb::IMessage other) {
14214 if (other is OneBytes) {
14215 return MergeFrom((OneBytes) other);
14216 } else {
14217 base.MergeFrom(other);
14218 return this;
14219 }
14220 }
14221
14222 public override Builder MergeFrom(OneBytes other) {
14223 if (other == global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance) return this;
14224 if (other.HasData) {
14225 Data = other.Data;
14226 }
14227 this.MergeUnknownFields(other.UnknownFields);
14228 return this;
14229 }
14230
14231 public override Builder MergeFrom(pb::CodedInputStream input) {
14232 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14233 }
14234
14235 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
14236 pb::UnknownFieldSet.Builder unknownFields = null;
14237 while (true) {
14238 uint tag = input.ReadTag();
14239 switch (tag) {
14240 case 0: {
14241 if (unknownFields != null) {
14242 this.UnknownFields = unknownFields.Build();
14243 }
14244 return this;
14245 }
14246 default: {
14247 if (pb::WireFormat.IsEndGroupTag(tag)) {
14248 if (unknownFields != null) {
14249 this.UnknownFields = unknownFields.Build();
14250 }
14251 return this;
14252 }
14253 if (unknownFields == null) {
14254 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14255 }
14256 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
14257 break;
14258 }
14259 case 10: {
14260 Data = input.ReadBytes();
14261 break;
14262 }
14263 }
14264 }
14265 }
14266
14267
14268 public bool HasData {
14269 get { return result.HasData; }
14270 }
14271 public pb::ByteString Data {
14272 get { return result.Data; }
14273 set { SetData(value); }
14274 }
14275 public Builder SetData(pb::ByteString value) {
14276 pb::ThrowHelper.ThrowIfNull(value, "value");
14277 result.hasData = true;
14278 result.data_ = value;
14279 return this;
14280 }
14281 public Builder ClearData() {
14282 result.hasData = false;
14283 result.data_ = pb::ByteString.Empty;
14284 return this;
14285 }
14286 }
14287 static OneBytes() {
14288 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
14289 }
14290 }
14291
csharptest445bdce2011-05-20 15:50:54 -050014292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14293 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14294 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014295 public sealed partial class TestPackedTypes : pb::GeneratedMessage<TestPackedTypes, TestPackedTypes.Builder> {
14296 private static readonly TestPackedTypes defaultInstance = new Builder().BuildPartial();
14297 public static TestPackedTypes DefaultInstance {
14298 get { return defaultInstance; }
14299 }
14300
14301 public override TestPackedTypes DefaultInstanceForType {
14302 get { return defaultInstance; }
14303 }
14304
14305 protected override TestPackedTypes ThisMessage {
14306 get { return this; }
14307 }
14308
14309 public static pbd::MessageDescriptor Descriptor {
14310 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__Descriptor; }
14311 }
14312
14313 protected override pb::FieldAccess.FieldAccessorTable<TestPackedTypes, TestPackedTypes.Builder> InternalFieldAccessors {
14314 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
14315 }
14316
14317 public const int PackedInt32FieldNumber = 90;
14318 private int packedInt32MemoizedSerializedSize;
14319 private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
14320 public scg::IList<int> PackedInt32List {
14321 get { return pbc::Lists.AsReadOnly(packedInt32_); }
14322 }
14323 public int PackedInt32Count {
14324 get { return packedInt32_.Count; }
14325 }
14326 public int GetPackedInt32(int index) {
14327 return packedInt32_[index];
14328 }
14329
14330 public const int PackedInt64FieldNumber = 91;
14331 private int packedInt64MemoizedSerializedSize;
14332 private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
14333 public scg::IList<long> PackedInt64List {
14334 get { return pbc::Lists.AsReadOnly(packedInt64_); }
14335 }
14336 public int PackedInt64Count {
14337 get { return packedInt64_.Count; }
14338 }
14339 public long GetPackedInt64(int index) {
14340 return packedInt64_[index];
14341 }
14342
14343 public const int PackedUint32FieldNumber = 92;
14344 private int packedUint32MemoizedSerializedSize;
14345 private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
14346 [global::System.CLSCompliant(false)]
14347 public scg::IList<uint> PackedUint32List {
14348 get { return pbc::Lists.AsReadOnly(packedUint32_); }
14349 }
14350 public int PackedUint32Count {
14351 get { return packedUint32_.Count; }
14352 }
14353 [global::System.CLSCompliant(false)]
14354 public uint GetPackedUint32(int index) {
14355 return packedUint32_[index];
14356 }
14357
14358 public const int PackedUint64FieldNumber = 93;
14359 private int packedUint64MemoizedSerializedSize;
14360 private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
14361 [global::System.CLSCompliant(false)]
14362 public scg::IList<ulong> PackedUint64List {
14363 get { return pbc::Lists.AsReadOnly(packedUint64_); }
14364 }
14365 public int PackedUint64Count {
14366 get { return packedUint64_.Count; }
14367 }
14368 [global::System.CLSCompliant(false)]
14369 public ulong GetPackedUint64(int index) {
14370 return packedUint64_[index];
14371 }
14372
14373 public const int PackedSint32FieldNumber = 94;
14374 private int packedSint32MemoizedSerializedSize;
14375 private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
14376 public scg::IList<int> PackedSint32List {
14377 get { return pbc::Lists.AsReadOnly(packedSint32_); }
14378 }
14379 public int PackedSint32Count {
14380 get { return packedSint32_.Count; }
14381 }
14382 public int GetPackedSint32(int index) {
14383 return packedSint32_[index];
14384 }
14385
14386 public const int PackedSint64FieldNumber = 95;
14387 private int packedSint64MemoizedSerializedSize;
14388 private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
14389 public scg::IList<long> PackedSint64List {
14390 get { return pbc::Lists.AsReadOnly(packedSint64_); }
14391 }
14392 public int PackedSint64Count {
14393 get { return packedSint64_.Count; }
14394 }
14395 public long GetPackedSint64(int index) {
14396 return packedSint64_[index];
14397 }
14398
14399 public const int PackedFixed32FieldNumber = 96;
14400 private int packedFixed32MemoizedSerializedSize;
14401 private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
14402 [global::System.CLSCompliant(false)]
14403 public scg::IList<uint> PackedFixed32List {
14404 get { return pbc::Lists.AsReadOnly(packedFixed32_); }
14405 }
14406 public int PackedFixed32Count {
14407 get { return packedFixed32_.Count; }
14408 }
14409 [global::System.CLSCompliant(false)]
14410 public uint GetPackedFixed32(int index) {
14411 return packedFixed32_[index];
14412 }
14413
14414 public const int PackedFixed64FieldNumber = 97;
14415 private int packedFixed64MemoizedSerializedSize;
14416 private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
14417 [global::System.CLSCompliant(false)]
14418 public scg::IList<ulong> PackedFixed64List {
14419 get { return pbc::Lists.AsReadOnly(packedFixed64_); }
14420 }
14421 public int PackedFixed64Count {
14422 get { return packedFixed64_.Count; }
14423 }
14424 [global::System.CLSCompliant(false)]
14425 public ulong GetPackedFixed64(int index) {
14426 return packedFixed64_[index];
14427 }
14428
14429 public const int PackedSfixed32FieldNumber = 98;
14430 private int packedSfixed32MemoizedSerializedSize;
14431 private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
14432 public scg::IList<int> PackedSfixed32List {
14433 get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
14434 }
14435 public int PackedSfixed32Count {
14436 get { return packedSfixed32_.Count; }
14437 }
14438 public int GetPackedSfixed32(int index) {
14439 return packedSfixed32_[index];
14440 }
14441
14442 public const int PackedSfixed64FieldNumber = 99;
14443 private int packedSfixed64MemoizedSerializedSize;
14444 private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
14445 public scg::IList<long> PackedSfixed64List {
14446 get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
14447 }
14448 public int PackedSfixed64Count {
14449 get { return packedSfixed64_.Count; }
14450 }
14451 public long GetPackedSfixed64(int index) {
14452 return packedSfixed64_[index];
14453 }
14454
14455 public const int PackedFloatFieldNumber = 100;
14456 private int packedFloatMemoizedSerializedSize;
14457 private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
14458 public scg::IList<float> PackedFloatList {
14459 get { return pbc::Lists.AsReadOnly(packedFloat_); }
14460 }
14461 public int PackedFloatCount {
14462 get { return packedFloat_.Count; }
14463 }
14464 public float GetPackedFloat(int index) {
14465 return packedFloat_[index];
14466 }
14467
14468 public const int PackedDoubleFieldNumber = 101;
14469 private int packedDoubleMemoizedSerializedSize;
14470 private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
14471 public scg::IList<double> PackedDoubleList {
14472 get { return pbc::Lists.AsReadOnly(packedDouble_); }
14473 }
14474 public int PackedDoubleCount {
14475 get { return packedDouble_.Count; }
14476 }
14477 public double GetPackedDouble(int index) {
14478 return packedDouble_[index];
14479 }
14480
14481 public const int PackedBoolFieldNumber = 102;
14482 private int packedBoolMemoizedSerializedSize;
14483 private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
14484 public scg::IList<bool> PackedBoolList {
14485 get { return pbc::Lists.AsReadOnly(packedBool_); }
14486 }
14487 public int PackedBoolCount {
14488 get { return packedBool_.Count; }
14489 }
14490 public bool GetPackedBool(int index) {
14491 return packedBool_[index];
14492 }
14493
14494 public const int PackedEnumFieldNumber = 103;
14495 private int packedEnumMemoizedSerializedSize;
14496 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
14497 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
14498 get { return pbc::Lists.AsReadOnly(packedEnum_); }
14499 }
14500 public int PackedEnumCount {
14501 get { return packedEnum_.Count; }
14502 }
14503 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
14504 return packedEnum_[index];
14505 }
14506
14507 public override bool IsInitialized {
14508 get {
14509 return true;
14510 }
14511 }
14512
14513 public override void WriteTo(pb::CodedOutputStream output) {
14514 int size = SerializedSize;
14515 if (packedInt32_.Count > 0) {
14516 output.WriteRawVarint32(722);
14517 output.WriteRawVarint32((uint) packedInt32MemoizedSerializedSize);
14518 foreach (int element in packedInt32_) {
14519 output.WriteInt32NoTag(element);
14520 }
14521 }
14522 if (packedInt64_.Count > 0) {
14523 output.WriteRawVarint32(730);
14524 output.WriteRawVarint32((uint) packedInt64MemoizedSerializedSize);
14525 foreach (long element in packedInt64_) {
14526 output.WriteInt64NoTag(element);
14527 }
14528 }
14529 if (packedUint32_.Count > 0) {
14530 output.WriteRawVarint32(738);
14531 output.WriteRawVarint32((uint) packedUint32MemoizedSerializedSize);
14532 foreach (uint element in packedUint32_) {
14533 output.WriteUInt32NoTag(element);
14534 }
14535 }
14536 if (packedUint64_.Count > 0) {
14537 output.WriteRawVarint32(746);
14538 output.WriteRawVarint32((uint) packedUint64MemoizedSerializedSize);
14539 foreach (ulong element in packedUint64_) {
14540 output.WriteUInt64NoTag(element);
14541 }
14542 }
14543 if (packedSint32_.Count > 0) {
14544 output.WriteRawVarint32(754);
14545 output.WriteRawVarint32((uint) packedSint32MemoizedSerializedSize);
14546 foreach (int element in packedSint32_) {
14547 output.WriteSInt32NoTag(element);
14548 }
14549 }
14550 if (packedSint64_.Count > 0) {
14551 output.WriteRawVarint32(762);
14552 output.WriteRawVarint32((uint) packedSint64MemoizedSerializedSize);
14553 foreach (long element in packedSint64_) {
14554 output.WriteSInt64NoTag(element);
14555 }
14556 }
14557 if (packedFixed32_.Count > 0) {
14558 output.WriteRawVarint32(770);
14559 output.WriteRawVarint32((uint) packedFixed32MemoizedSerializedSize);
14560 foreach (uint element in packedFixed32_) {
14561 output.WriteFixed32NoTag(element);
14562 }
14563 }
14564 if (packedFixed64_.Count > 0) {
14565 output.WriteRawVarint32(778);
14566 output.WriteRawVarint32((uint) packedFixed64MemoizedSerializedSize);
14567 foreach (ulong element in packedFixed64_) {
14568 output.WriteFixed64NoTag(element);
14569 }
14570 }
14571 if (packedSfixed32_.Count > 0) {
14572 output.WriteRawVarint32(786);
14573 output.WriteRawVarint32((uint) packedSfixed32MemoizedSerializedSize);
14574 foreach (int element in packedSfixed32_) {
14575 output.WriteSFixed32NoTag(element);
14576 }
14577 }
14578 if (packedSfixed64_.Count > 0) {
14579 output.WriteRawVarint32(794);
14580 output.WriteRawVarint32((uint) packedSfixed64MemoizedSerializedSize);
14581 foreach (long element in packedSfixed64_) {
14582 output.WriteSFixed64NoTag(element);
14583 }
14584 }
14585 if (packedFloat_.Count > 0) {
14586 output.WriteRawVarint32(802);
14587 output.WriteRawVarint32((uint) packedFloatMemoizedSerializedSize);
14588 foreach (float element in packedFloat_) {
14589 output.WriteFloatNoTag(element);
14590 }
14591 }
14592 if (packedDouble_.Count > 0) {
14593 output.WriteRawVarint32(810);
14594 output.WriteRawVarint32((uint) packedDoubleMemoizedSerializedSize);
14595 foreach (double element in packedDouble_) {
14596 output.WriteDoubleNoTag(element);
14597 }
14598 }
14599 if (packedBool_.Count > 0) {
14600 output.WriteRawVarint32(818);
14601 output.WriteRawVarint32((uint) packedBoolMemoizedSerializedSize);
14602 foreach (bool element in packedBool_) {
14603 output.WriteBoolNoTag(element);
14604 }
14605 }
14606 if (packedEnum_.Count > 0) {
14607 output.WriteRawVarint32(826);
14608 output.WriteRawVarint32((uint) packedEnumMemoizedSerializedSize);
14609 foreach (int element in packedEnum_) {
14610 output.WriteEnumNoTag(element);
14611 }
14612 }
14613 UnknownFields.WriteTo(output);
14614 }
14615
14616 private int memoizedSerializedSize = -1;
14617 public override int SerializedSize {
14618 get {
14619 int size = memoizedSerializedSize;
14620 if (size != -1) return size;
14621
14622 size = 0;
14623 {
14624 int dataSize = 0;
14625 foreach (int element in PackedInt32List) {
14626 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
14627 }
14628 size += dataSize;
14629 if (packedInt32_.Count != 0) {
14630 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14631 }
14632 packedInt32MemoizedSerializedSize = dataSize;
14633 }
14634 {
14635 int dataSize = 0;
14636 foreach (long element in PackedInt64List) {
14637 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
14638 }
14639 size += dataSize;
14640 if (packedInt64_.Count != 0) {
14641 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14642 }
14643 packedInt64MemoizedSerializedSize = dataSize;
14644 }
14645 {
14646 int dataSize = 0;
14647 foreach (uint element in PackedUint32List) {
14648 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
14649 }
14650 size += dataSize;
14651 if (packedUint32_.Count != 0) {
14652 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14653 }
14654 packedUint32MemoizedSerializedSize = dataSize;
14655 }
14656 {
14657 int dataSize = 0;
14658 foreach (ulong element in PackedUint64List) {
14659 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
14660 }
14661 size += dataSize;
14662 if (packedUint64_.Count != 0) {
14663 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14664 }
14665 packedUint64MemoizedSerializedSize = dataSize;
14666 }
14667 {
14668 int dataSize = 0;
14669 foreach (int element in PackedSint32List) {
14670 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
14671 }
14672 size += dataSize;
14673 if (packedSint32_.Count != 0) {
14674 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14675 }
14676 packedSint32MemoizedSerializedSize = dataSize;
14677 }
14678 {
14679 int dataSize = 0;
14680 foreach (long element in PackedSint64List) {
14681 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
14682 }
14683 size += dataSize;
14684 if (packedSint64_.Count != 0) {
14685 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14686 }
14687 packedSint64MemoizedSerializedSize = dataSize;
14688 }
14689 {
14690 int dataSize = 0;
14691 dataSize = 4 * packedFixed32_.Count;
14692 size += dataSize;
14693 if (packedFixed32_.Count != 0) {
14694 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14695 }
14696 packedFixed32MemoizedSerializedSize = dataSize;
14697 }
14698 {
14699 int dataSize = 0;
14700 dataSize = 8 * packedFixed64_.Count;
14701 size += dataSize;
14702 if (packedFixed64_.Count != 0) {
14703 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14704 }
14705 packedFixed64MemoizedSerializedSize = dataSize;
14706 }
14707 {
14708 int dataSize = 0;
14709 dataSize = 4 * packedSfixed32_.Count;
14710 size += dataSize;
14711 if (packedSfixed32_.Count != 0) {
14712 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14713 }
14714 packedSfixed32MemoizedSerializedSize = dataSize;
14715 }
14716 {
14717 int dataSize = 0;
14718 dataSize = 8 * packedSfixed64_.Count;
14719 size += dataSize;
14720 if (packedSfixed64_.Count != 0) {
14721 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14722 }
14723 packedSfixed64MemoizedSerializedSize = dataSize;
14724 }
14725 {
14726 int dataSize = 0;
14727 dataSize = 4 * packedFloat_.Count;
14728 size += dataSize;
14729 if (packedFloat_.Count != 0) {
14730 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14731 }
14732 packedFloatMemoizedSerializedSize = dataSize;
14733 }
14734 {
14735 int dataSize = 0;
14736 dataSize = 8 * packedDouble_.Count;
14737 size += dataSize;
14738 if (packedDouble_.Count != 0) {
14739 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14740 }
14741 packedDoubleMemoizedSerializedSize = dataSize;
14742 }
14743 {
14744 int dataSize = 0;
14745 dataSize = 1 * packedBool_.Count;
14746 size += dataSize;
14747 if (packedBool_.Count != 0) {
14748 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
14749 }
14750 packedBoolMemoizedSerializedSize = dataSize;
14751 }
14752 {
14753 int dataSize = 0;
14754 if (packedEnum_.Count > 0) {
14755 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in packedEnum_) {
14756 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
14757 }
14758 size += dataSize;
14759 size += 2;
14760 size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
14761 }
14762 packedEnumMemoizedSerializedSize = dataSize;
14763 }
14764 size += UnknownFields.SerializedSize;
14765 memoizedSerializedSize = size;
14766 return size;
14767 }
14768 }
14769
14770 public static TestPackedTypes ParseFrom(pb::ByteString data) {
14771 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14772 }
14773 public static TestPackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
14774 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14775 }
14776 public static TestPackedTypes ParseFrom(byte[] data) {
14777 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
14778 }
14779 public static TestPackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
14780 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
14781 }
14782 public static TestPackedTypes ParseFrom(global::System.IO.Stream input) {
14783 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14784 }
14785 public static TestPackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14786 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14787 }
14788 public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
14789 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
14790 }
14791 public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
14792 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
14793 }
14794 public static TestPackedTypes ParseFrom(pb::CodedInputStream input) {
14795 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
14796 }
14797 public static TestPackedTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
14798 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
14799 }
14800 public static Builder CreateBuilder() { return new Builder(); }
14801 public override Builder ToBuilder() { return CreateBuilder(this); }
14802 public override Builder CreateBuilderForType() { return new Builder(); }
14803 public static Builder CreateBuilder(TestPackedTypes prototype) {
14804 return (Builder) new Builder().MergeFrom(prototype);
14805 }
14806
csharptest445bdce2011-05-20 15:50:54 -050014807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14808 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
14809 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014810 public sealed partial class Builder : pb::GeneratedBuilder<TestPackedTypes, Builder> {
14811 protected override Builder ThisBuilder {
14812 get { return this; }
14813 }
14814 public Builder() {}
14815
14816 TestPackedTypes result = new TestPackedTypes();
14817
14818 protected override TestPackedTypes MessageBeingBuilt {
14819 get { return result; }
14820 }
14821
14822 public override Builder Clear() {
14823 result = new TestPackedTypes();
14824 return this;
14825 }
14826
14827 public override Builder Clone() {
14828 return new Builder().MergeFrom(result);
14829 }
14830
14831 public override pbd::MessageDescriptor DescriptorForType {
14832 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Descriptor; }
14833 }
14834
14835 public override TestPackedTypes DefaultInstanceForType {
14836 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance; }
14837 }
14838
14839 public override TestPackedTypes BuildPartial() {
14840 if (result == null) {
14841 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
14842 }
14843 result.packedInt32_.MakeReadOnly();
14844 result.packedInt64_.MakeReadOnly();
14845 result.packedUint32_.MakeReadOnly();
14846 result.packedUint64_.MakeReadOnly();
14847 result.packedSint32_.MakeReadOnly();
14848 result.packedSint64_.MakeReadOnly();
14849 result.packedFixed32_.MakeReadOnly();
14850 result.packedFixed64_.MakeReadOnly();
14851 result.packedSfixed32_.MakeReadOnly();
14852 result.packedSfixed64_.MakeReadOnly();
14853 result.packedFloat_.MakeReadOnly();
14854 result.packedDouble_.MakeReadOnly();
14855 result.packedBool_.MakeReadOnly();
14856 result.packedEnum_.MakeReadOnly();
14857 TestPackedTypes returnMe = result;
14858 result = null;
14859 return returnMe;
14860 }
14861
14862 public override Builder MergeFrom(pb::IMessage other) {
14863 if (other is TestPackedTypes) {
14864 return MergeFrom((TestPackedTypes) other);
14865 } else {
14866 base.MergeFrom(other);
14867 return this;
14868 }
14869 }
14870
14871 public override Builder MergeFrom(TestPackedTypes other) {
14872 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance) return this;
14873 if (other.packedInt32_.Count != 0) {
14874 base.AddRange(other.packedInt32_, result.packedInt32_);
14875 }
14876 if (other.packedInt64_.Count != 0) {
14877 base.AddRange(other.packedInt64_, result.packedInt64_);
14878 }
14879 if (other.packedUint32_.Count != 0) {
14880 base.AddRange(other.packedUint32_, result.packedUint32_);
14881 }
14882 if (other.packedUint64_.Count != 0) {
14883 base.AddRange(other.packedUint64_, result.packedUint64_);
14884 }
14885 if (other.packedSint32_.Count != 0) {
14886 base.AddRange(other.packedSint32_, result.packedSint32_);
14887 }
14888 if (other.packedSint64_.Count != 0) {
14889 base.AddRange(other.packedSint64_, result.packedSint64_);
14890 }
14891 if (other.packedFixed32_.Count != 0) {
14892 base.AddRange(other.packedFixed32_, result.packedFixed32_);
14893 }
14894 if (other.packedFixed64_.Count != 0) {
14895 base.AddRange(other.packedFixed64_, result.packedFixed64_);
14896 }
14897 if (other.packedSfixed32_.Count != 0) {
14898 base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
14899 }
14900 if (other.packedSfixed64_.Count != 0) {
14901 base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
14902 }
14903 if (other.packedFloat_.Count != 0) {
14904 base.AddRange(other.packedFloat_, result.packedFloat_);
14905 }
14906 if (other.packedDouble_.Count != 0) {
14907 base.AddRange(other.packedDouble_, result.packedDouble_);
14908 }
14909 if (other.packedBool_.Count != 0) {
14910 base.AddRange(other.packedBool_, result.packedBool_);
14911 }
14912 if (other.packedEnum_.Count != 0) {
14913 base.AddRange(other.packedEnum_, result.packedEnum_);
14914 }
14915 this.MergeUnknownFields(other.UnknownFields);
14916 return this;
14917 }
14918
14919 public override Builder MergeFrom(pb::CodedInputStream input) {
14920 return MergeFrom(input, pb::ExtensionRegistry.Empty);
14921 }
14922
14923 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
14924 pb::UnknownFieldSet.Builder unknownFields = null;
14925 while (true) {
14926 uint tag = input.ReadTag();
14927 switch (tag) {
14928 case 0: {
14929 if (unknownFields != null) {
14930 this.UnknownFields = unknownFields.Build();
14931 }
14932 return this;
14933 }
14934 default: {
14935 if (pb::WireFormat.IsEndGroupTag(tag)) {
14936 if (unknownFields != null) {
14937 this.UnknownFields = unknownFields.Build();
14938 }
14939 return this;
14940 }
14941 if (unknownFields == null) {
14942 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
14943 }
14944 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
14945 break;
14946 }
14947 case 722: {
14948 int length = input.ReadInt32();
14949 int limit = input.PushLimit(length);
14950 while (!input.ReachedLimit) {
14951 AddPackedInt32(input.ReadInt32());
14952 }
14953 input.PopLimit(limit);
14954 break;
14955 }
14956 case 730: {
14957 int length = input.ReadInt32();
14958 int limit = input.PushLimit(length);
14959 while (!input.ReachedLimit) {
14960 AddPackedInt64(input.ReadInt64());
14961 }
14962 input.PopLimit(limit);
14963 break;
14964 }
14965 case 738: {
14966 int length = input.ReadInt32();
14967 int limit = input.PushLimit(length);
14968 while (!input.ReachedLimit) {
14969 AddPackedUint32(input.ReadUInt32());
14970 }
14971 input.PopLimit(limit);
14972 break;
14973 }
14974 case 746: {
14975 int length = input.ReadInt32();
14976 int limit = input.PushLimit(length);
14977 while (!input.ReachedLimit) {
14978 AddPackedUint64(input.ReadUInt64());
14979 }
14980 input.PopLimit(limit);
14981 break;
14982 }
14983 case 754: {
14984 int length = input.ReadInt32();
14985 int limit = input.PushLimit(length);
14986 while (!input.ReachedLimit) {
14987 AddPackedSint32(input.ReadSInt32());
14988 }
14989 input.PopLimit(limit);
14990 break;
14991 }
14992 case 762: {
14993 int length = input.ReadInt32();
14994 int limit = input.PushLimit(length);
14995 while (!input.ReachedLimit) {
14996 AddPackedSint64(input.ReadSInt64());
14997 }
14998 input.PopLimit(limit);
14999 break;
15000 }
15001 case 770: {
15002 int length = input.ReadInt32();
15003 int limit = input.PushLimit(length);
15004 while (!input.ReachedLimit) {
15005 AddPackedFixed32(input.ReadFixed32());
15006 }
15007 input.PopLimit(limit);
15008 break;
15009 }
15010 case 778: {
15011 int length = input.ReadInt32();
15012 int limit = input.PushLimit(length);
15013 while (!input.ReachedLimit) {
15014 AddPackedFixed64(input.ReadFixed64());
15015 }
15016 input.PopLimit(limit);
15017 break;
15018 }
15019 case 786: {
15020 int length = input.ReadInt32();
15021 int limit = input.PushLimit(length);
15022 while (!input.ReachedLimit) {
15023 AddPackedSfixed32(input.ReadSFixed32());
15024 }
15025 input.PopLimit(limit);
15026 break;
15027 }
15028 case 794: {
15029 int length = input.ReadInt32();
15030 int limit = input.PushLimit(length);
15031 while (!input.ReachedLimit) {
15032 AddPackedSfixed64(input.ReadSFixed64());
15033 }
15034 input.PopLimit(limit);
15035 break;
15036 }
15037 case 802: {
15038 int length = input.ReadInt32();
15039 int limit = input.PushLimit(length);
15040 while (!input.ReachedLimit) {
15041 AddPackedFloat(input.ReadFloat());
15042 }
15043 input.PopLimit(limit);
15044 break;
15045 }
15046 case 810: {
15047 int length = input.ReadInt32();
15048 int limit = input.PushLimit(length);
15049 while (!input.ReachedLimit) {
15050 AddPackedDouble(input.ReadDouble());
15051 }
15052 input.PopLimit(limit);
15053 break;
15054 }
15055 case 818: {
15056 int length = input.ReadInt32();
15057 int limit = input.PushLimit(length);
15058 while (!input.ReachedLimit) {
15059 AddPackedBool(input.ReadBool());
15060 }
15061 input.PopLimit(limit);
15062 break;
15063 }
15064 case 826: {
15065 int length = input.ReadInt32();
15066 int oldLimit = input.PushLimit(length);
15067 while (!input.ReachedLimit) {
15068 int rawValue = input.ReadEnum();
15069 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
15070 if (unknownFields == null) {
15071 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
15072 }
15073 unknownFields.MergeVarintField(103, (ulong) rawValue);
15074 } else {
15075 AddPackedEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue);
15076 }
15077 }
15078 input.PopLimit(oldLimit);
15079 break;
15080 }
15081 }
15082 }
15083 }
15084
15085
15086 public pbc::IPopsicleList<int> PackedInt32List {
15087 get { return result.packedInt32_; }
15088 }
15089 public int PackedInt32Count {
15090 get { return result.PackedInt32Count; }
15091 }
15092 public int GetPackedInt32(int index) {
15093 return result.GetPackedInt32(index);
15094 }
15095 public Builder SetPackedInt32(int index, int value) {
15096 result.packedInt32_[index] = value;
15097 return this;
15098 }
15099 public Builder AddPackedInt32(int value) {
15100 result.packedInt32_.Add(value);
15101 return this;
15102 }
15103 public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
15104 base.AddRange(values, result.packedInt32_);
15105 return this;
15106 }
15107 public Builder ClearPackedInt32() {
15108 result.packedInt32_.Clear();
15109 return this;
15110 }
15111
15112 public pbc::IPopsicleList<long> PackedInt64List {
15113 get { return result.packedInt64_; }
15114 }
15115 public int PackedInt64Count {
15116 get { return result.PackedInt64Count; }
15117 }
15118 public long GetPackedInt64(int index) {
15119 return result.GetPackedInt64(index);
15120 }
15121 public Builder SetPackedInt64(int index, long value) {
15122 result.packedInt64_[index] = value;
15123 return this;
15124 }
15125 public Builder AddPackedInt64(long value) {
15126 result.packedInt64_.Add(value);
15127 return this;
15128 }
15129 public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
15130 base.AddRange(values, result.packedInt64_);
15131 return this;
15132 }
15133 public Builder ClearPackedInt64() {
15134 result.packedInt64_.Clear();
15135 return this;
15136 }
15137
15138 [global::System.CLSCompliant(false)]
15139 public pbc::IPopsicleList<uint> PackedUint32List {
15140 get { return result.packedUint32_; }
15141 }
15142 public int PackedUint32Count {
15143 get { return result.PackedUint32Count; }
15144 }
15145 [global::System.CLSCompliant(false)]
15146 public uint GetPackedUint32(int index) {
15147 return result.GetPackedUint32(index);
15148 }
15149 [global::System.CLSCompliant(false)]
15150 public Builder SetPackedUint32(int index, uint value) {
15151 result.packedUint32_[index] = value;
15152 return this;
15153 }
15154 [global::System.CLSCompliant(false)]
15155 public Builder AddPackedUint32(uint value) {
15156 result.packedUint32_.Add(value);
15157 return this;
15158 }
15159 [global::System.CLSCompliant(false)]
15160 public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
15161 base.AddRange(values, result.packedUint32_);
15162 return this;
15163 }
15164 public Builder ClearPackedUint32() {
15165 result.packedUint32_.Clear();
15166 return this;
15167 }
15168
15169 [global::System.CLSCompliant(false)]
15170 public pbc::IPopsicleList<ulong> PackedUint64List {
15171 get { return result.packedUint64_; }
15172 }
15173 public int PackedUint64Count {
15174 get { return result.PackedUint64Count; }
15175 }
15176 [global::System.CLSCompliant(false)]
15177 public ulong GetPackedUint64(int index) {
15178 return result.GetPackedUint64(index);
15179 }
15180 [global::System.CLSCompliant(false)]
15181 public Builder SetPackedUint64(int index, ulong value) {
15182 result.packedUint64_[index] = value;
15183 return this;
15184 }
15185 [global::System.CLSCompliant(false)]
15186 public Builder AddPackedUint64(ulong value) {
15187 result.packedUint64_.Add(value);
15188 return this;
15189 }
15190 [global::System.CLSCompliant(false)]
15191 public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
15192 base.AddRange(values, result.packedUint64_);
15193 return this;
15194 }
15195 public Builder ClearPackedUint64() {
15196 result.packedUint64_.Clear();
15197 return this;
15198 }
15199
15200 public pbc::IPopsicleList<int> PackedSint32List {
15201 get { return result.packedSint32_; }
15202 }
15203 public int PackedSint32Count {
15204 get { return result.PackedSint32Count; }
15205 }
15206 public int GetPackedSint32(int index) {
15207 return result.GetPackedSint32(index);
15208 }
15209 public Builder SetPackedSint32(int index, int value) {
15210 result.packedSint32_[index] = value;
15211 return this;
15212 }
15213 public Builder AddPackedSint32(int value) {
15214 result.packedSint32_.Add(value);
15215 return this;
15216 }
15217 public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
15218 base.AddRange(values, result.packedSint32_);
15219 return this;
15220 }
15221 public Builder ClearPackedSint32() {
15222 result.packedSint32_.Clear();
15223 return this;
15224 }
15225
15226 public pbc::IPopsicleList<long> PackedSint64List {
15227 get { return result.packedSint64_; }
15228 }
15229 public int PackedSint64Count {
15230 get { return result.PackedSint64Count; }
15231 }
15232 public long GetPackedSint64(int index) {
15233 return result.GetPackedSint64(index);
15234 }
15235 public Builder SetPackedSint64(int index, long value) {
15236 result.packedSint64_[index] = value;
15237 return this;
15238 }
15239 public Builder AddPackedSint64(long value) {
15240 result.packedSint64_.Add(value);
15241 return this;
15242 }
15243 public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
15244 base.AddRange(values, result.packedSint64_);
15245 return this;
15246 }
15247 public Builder ClearPackedSint64() {
15248 result.packedSint64_.Clear();
15249 return this;
15250 }
15251
15252 [global::System.CLSCompliant(false)]
15253 public pbc::IPopsicleList<uint> PackedFixed32List {
15254 get { return result.packedFixed32_; }
15255 }
15256 public int PackedFixed32Count {
15257 get { return result.PackedFixed32Count; }
15258 }
15259 [global::System.CLSCompliant(false)]
15260 public uint GetPackedFixed32(int index) {
15261 return result.GetPackedFixed32(index);
15262 }
15263 [global::System.CLSCompliant(false)]
15264 public Builder SetPackedFixed32(int index, uint value) {
15265 result.packedFixed32_[index] = value;
15266 return this;
15267 }
15268 [global::System.CLSCompliant(false)]
15269 public Builder AddPackedFixed32(uint value) {
15270 result.packedFixed32_.Add(value);
15271 return this;
15272 }
15273 [global::System.CLSCompliant(false)]
15274 public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
15275 base.AddRange(values, result.packedFixed32_);
15276 return this;
15277 }
15278 public Builder ClearPackedFixed32() {
15279 result.packedFixed32_.Clear();
15280 return this;
15281 }
15282
15283 [global::System.CLSCompliant(false)]
15284 public pbc::IPopsicleList<ulong> PackedFixed64List {
15285 get { return result.packedFixed64_; }
15286 }
15287 public int PackedFixed64Count {
15288 get { return result.PackedFixed64Count; }
15289 }
15290 [global::System.CLSCompliant(false)]
15291 public ulong GetPackedFixed64(int index) {
15292 return result.GetPackedFixed64(index);
15293 }
15294 [global::System.CLSCompliant(false)]
15295 public Builder SetPackedFixed64(int index, ulong value) {
15296 result.packedFixed64_[index] = value;
15297 return this;
15298 }
15299 [global::System.CLSCompliant(false)]
15300 public Builder AddPackedFixed64(ulong value) {
15301 result.packedFixed64_.Add(value);
15302 return this;
15303 }
15304 [global::System.CLSCompliant(false)]
15305 public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
15306 base.AddRange(values, result.packedFixed64_);
15307 return this;
15308 }
15309 public Builder ClearPackedFixed64() {
15310 result.packedFixed64_.Clear();
15311 return this;
15312 }
15313
15314 public pbc::IPopsicleList<int> PackedSfixed32List {
15315 get { return result.packedSfixed32_; }
15316 }
15317 public int PackedSfixed32Count {
15318 get { return result.PackedSfixed32Count; }
15319 }
15320 public int GetPackedSfixed32(int index) {
15321 return result.GetPackedSfixed32(index);
15322 }
15323 public Builder SetPackedSfixed32(int index, int value) {
15324 result.packedSfixed32_[index] = value;
15325 return this;
15326 }
15327 public Builder AddPackedSfixed32(int value) {
15328 result.packedSfixed32_.Add(value);
15329 return this;
15330 }
15331 public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
15332 base.AddRange(values, result.packedSfixed32_);
15333 return this;
15334 }
15335 public Builder ClearPackedSfixed32() {
15336 result.packedSfixed32_.Clear();
15337 return this;
15338 }
15339
15340 public pbc::IPopsicleList<long> PackedSfixed64List {
15341 get { return result.packedSfixed64_; }
15342 }
15343 public int PackedSfixed64Count {
15344 get { return result.PackedSfixed64Count; }
15345 }
15346 public long GetPackedSfixed64(int index) {
15347 return result.GetPackedSfixed64(index);
15348 }
15349 public Builder SetPackedSfixed64(int index, long value) {
15350 result.packedSfixed64_[index] = value;
15351 return this;
15352 }
15353 public Builder AddPackedSfixed64(long value) {
15354 result.packedSfixed64_.Add(value);
15355 return this;
15356 }
15357 public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
15358 base.AddRange(values, result.packedSfixed64_);
15359 return this;
15360 }
15361 public Builder ClearPackedSfixed64() {
15362 result.packedSfixed64_.Clear();
15363 return this;
15364 }
15365
15366 public pbc::IPopsicleList<float> PackedFloatList {
15367 get { return result.packedFloat_; }
15368 }
15369 public int PackedFloatCount {
15370 get { return result.PackedFloatCount; }
15371 }
15372 public float GetPackedFloat(int index) {
15373 return result.GetPackedFloat(index);
15374 }
15375 public Builder SetPackedFloat(int index, float value) {
15376 result.packedFloat_[index] = value;
15377 return this;
15378 }
15379 public Builder AddPackedFloat(float value) {
15380 result.packedFloat_.Add(value);
15381 return this;
15382 }
15383 public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
15384 base.AddRange(values, result.packedFloat_);
15385 return this;
15386 }
15387 public Builder ClearPackedFloat() {
15388 result.packedFloat_.Clear();
15389 return this;
15390 }
15391
15392 public pbc::IPopsicleList<double> PackedDoubleList {
15393 get { return result.packedDouble_; }
15394 }
15395 public int PackedDoubleCount {
15396 get { return result.PackedDoubleCount; }
15397 }
15398 public double GetPackedDouble(int index) {
15399 return result.GetPackedDouble(index);
15400 }
15401 public Builder SetPackedDouble(int index, double value) {
15402 result.packedDouble_[index] = value;
15403 return this;
15404 }
15405 public Builder AddPackedDouble(double value) {
15406 result.packedDouble_.Add(value);
15407 return this;
15408 }
15409 public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
15410 base.AddRange(values, result.packedDouble_);
15411 return this;
15412 }
15413 public Builder ClearPackedDouble() {
15414 result.packedDouble_.Clear();
15415 return this;
15416 }
15417
15418 public pbc::IPopsicleList<bool> PackedBoolList {
15419 get { return result.packedBool_; }
15420 }
15421 public int PackedBoolCount {
15422 get { return result.PackedBoolCount; }
15423 }
15424 public bool GetPackedBool(int index) {
15425 return result.GetPackedBool(index);
15426 }
15427 public Builder SetPackedBool(int index, bool value) {
15428 result.packedBool_[index] = value;
15429 return this;
15430 }
15431 public Builder AddPackedBool(bool value) {
15432 result.packedBool_.Add(value);
15433 return this;
15434 }
15435 public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
15436 base.AddRange(values, result.packedBool_);
15437 return this;
15438 }
15439 public Builder ClearPackedBool() {
15440 result.packedBool_.Clear();
15441 return this;
15442 }
15443
15444 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
15445 get { return result.packedEnum_; }
15446 }
15447 public int PackedEnumCount {
15448 get { return result.PackedEnumCount; }
15449 }
15450 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
15451 return result.GetPackedEnum(index);
15452 }
15453 public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
15454 result.packedEnum_[index] = value;
15455 return this;
15456 }
15457 public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
15458 result.packedEnum_.Add(value);
15459 return this;
15460 }
15461 public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
15462 base.AddRange(values, result.packedEnum_);
15463 return this;
15464 }
15465 public Builder ClearPackedEnum() {
15466 result.packedEnum_.Clear();
15467 return this;
15468 }
15469 }
15470 static TestPackedTypes() {
15471 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
15472 }
15473 }
15474
csharptest445bdce2011-05-20 15:50:54 -050015475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
15476 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15477 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010015478 public sealed partial class TestUnpackedTypes : pb::GeneratedMessage<TestUnpackedTypes, TestUnpackedTypes.Builder> {
15479 private static readonly TestUnpackedTypes defaultInstance = new Builder().BuildPartial();
15480 public static TestUnpackedTypes DefaultInstance {
15481 get { return defaultInstance; }
15482 }
15483
15484 public override TestUnpackedTypes DefaultInstanceForType {
15485 get { return defaultInstance; }
15486 }
15487
15488 protected override TestUnpackedTypes ThisMessage {
15489 get { return this; }
15490 }
15491
15492 public static pbd::MessageDescriptor Descriptor {
15493 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor; }
15494 }
15495
15496 protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedTypes, TestUnpackedTypes.Builder> InternalFieldAccessors {
15497 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
15498 }
15499
15500 public const int UnpackedInt32FieldNumber = 90;
15501 private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
15502 public scg::IList<int> UnpackedInt32List {
15503 get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
15504 }
15505 public int UnpackedInt32Count {
15506 get { return unpackedInt32_.Count; }
15507 }
15508 public int GetUnpackedInt32(int index) {
15509 return unpackedInt32_[index];
15510 }
15511
15512 public const int UnpackedInt64FieldNumber = 91;
15513 private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
15514 public scg::IList<long> UnpackedInt64List {
15515 get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
15516 }
15517 public int UnpackedInt64Count {
15518 get { return unpackedInt64_.Count; }
15519 }
15520 public long GetUnpackedInt64(int index) {
15521 return unpackedInt64_[index];
15522 }
15523
15524 public const int UnpackedUint32FieldNumber = 92;
15525 private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
15526 [global::System.CLSCompliant(false)]
15527 public scg::IList<uint> UnpackedUint32List {
15528 get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
15529 }
15530 public int UnpackedUint32Count {
15531 get { return unpackedUint32_.Count; }
15532 }
15533 [global::System.CLSCompliant(false)]
15534 public uint GetUnpackedUint32(int index) {
15535 return unpackedUint32_[index];
15536 }
15537
15538 public const int UnpackedUint64FieldNumber = 93;
15539 private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
15540 [global::System.CLSCompliant(false)]
15541 public scg::IList<ulong> UnpackedUint64List {
15542 get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
15543 }
15544 public int UnpackedUint64Count {
15545 get { return unpackedUint64_.Count; }
15546 }
15547 [global::System.CLSCompliant(false)]
15548 public ulong GetUnpackedUint64(int index) {
15549 return unpackedUint64_[index];
15550 }
15551
15552 public const int UnpackedSint32FieldNumber = 94;
15553 private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
15554 public scg::IList<int> UnpackedSint32List {
15555 get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
15556 }
15557 public int UnpackedSint32Count {
15558 get { return unpackedSint32_.Count; }
15559 }
15560 public int GetUnpackedSint32(int index) {
15561 return unpackedSint32_[index];
15562 }
15563
15564 public const int UnpackedSint64FieldNumber = 95;
15565 private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
15566 public scg::IList<long> UnpackedSint64List {
15567 get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
15568 }
15569 public int UnpackedSint64Count {
15570 get { return unpackedSint64_.Count; }
15571 }
15572 public long GetUnpackedSint64(int index) {
15573 return unpackedSint64_[index];
15574 }
15575
15576 public const int UnpackedFixed32FieldNumber = 96;
15577 private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
15578 [global::System.CLSCompliant(false)]
15579 public scg::IList<uint> UnpackedFixed32List {
15580 get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
15581 }
15582 public int UnpackedFixed32Count {
15583 get { return unpackedFixed32_.Count; }
15584 }
15585 [global::System.CLSCompliant(false)]
15586 public uint GetUnpackedFixed32(int index) {
15587 return unpackedFixed32_[index];
15588 }
15589
15590 public const int UnpackedFixed64FieldNumber = 97;
15591 private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
15592 [global::System.CLSCompliant(false)]
15593 public scg::IList<ulong> UnpackedFixed64List {
15594 get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
15595 }
15596 public int UnpackedFixed64Count {
15597 get { return unpackedFixed64_.Count; }
15598 }
15599 [global::System.CLSCompliant(false)]
15600 public ulong GetUnpackedFixed64(int index) {
15601 return unpackedFixed64_[index];
15602 }
15603
15604 public const int UnpackedSfixed32FieldNumber = 98;
15605 private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
15606 public scg::IList<int> UnpackedSfixed32List {
15607 get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
15608 }
15609 public int UnpackedSfixed32Count {
15610 get { return unpackedSfixed32_.Count; }
15611 }
15612 public int GetUnpackedSfixed32(int index) {
15613 return unpackedSfixed32_[index];
15614 }
15615
15616 public const int UnpackedSfixed64FieldNumber = 99;
15617 private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
15618 public scg::IList<long> UnpackedSfixed64List {
15619 get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
15620 }
15621 public int UnpackedSfixed64Count {
15622 get { return unpackedSfixed64_.Count; }
15623 }
15624 public long GetUnpackedSfixed64(int index) {
15625 return unpackedSfixed64_[index];
15626 }
15627
15628 public const int UnpackedFloatFieldNumber = 100;
15629 private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
15630 public scg::IList<float> UnpackedFloatList {
15631 get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
15632 }
15633 public int UnpackedFloatCount {
15634 get { return unpackedFloat_.Count; }
15635 }
15636 public float GetUnpackedFloat(int index) {
15637 return unpackedFloat_[index];
15638 }
15639
15640 public const int UnpackedDoubleFieldNumber = 101;
15641 private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
15642 public scg::IList<double> UnpackedDoubleList {
15643 get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
15644 }
15645 public int UnpackedDoubleCount {
15646 get { return unpackedDouble_.Count; }
15647 }
15648 public double GetUnpackedDouble(int index) {
15649 return unpackedDouble_[index];
15650 }
15651
15652 public const int UnpackedBoolFieldNumber = 102;
15653 private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
15654 public scg::IList<bool> UnpackedBoolList {
15655 get { return pbc::Lists.AsReadOnly(unpackedBool_); }
15656 }
15657 public int UnpackedBoolCount {
15658 get { return unpackedBool_.Count; }
15659 }
15660 public bool GetUnpackedBool(int index) {
15661 return unpackedBool_[index];
15662 }
15663
15664 public const int UnpackedEnumFieldNumber = 103;
15665 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
15666 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
15667 get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
15668 }
15669 public int UnpackedEnumCount {
15670 get { return unpackedEnum_.Count; }
15671 }
15672 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
15673 return unpackedEnum_[index];
15674 }
15675
15676 public override bool IsInitialized {
15677 get {
15678 return true;
15679 }
15680 }
15681
15682 public override void WriteTo(pb::CodedOutputStream output) {
15683 int size = SerializedSize;
15684 if (unpackedInt32_.Count > 0) {
15685 foreach (int element in unpackedInt32_) {
15686 output.WriteInt32(90, element);
15687 }
15688 }
15689 if (unpackedInt64_.Count > 0) {
15690 foreach (long element in unpackedInt64_) {
15691 output.WriteInt64(91, element);
15692 }
15693 }
15694 if (unpackedUint32_.Count > 0) {
15695 foreach (uint element in unpackedUint32_) {
15696 output.WriteUInt32(92, element);
15697 }
15698 }
15699 if (unpackedUint64_.Count > 0) {
15700 foreach (ulong element in unpackedUint64_) {
15701 output.WriteUInt64(93, element);
15702 }
15703 }
15704 if (unpackedSint32_.Count > 0) {
15705 foreach (int element in unpackedSint32_) {
15706 output.WriteSInt32(94, element);
15707 }
15708 }
15709 if (unpackedSint64_.Count > 0) {
15710 foreach (long element in unpackedSint64_) {
15711 output.WriteSInt64(95, element);
15712 }
15713 }
15714 if (unpackedFixed32_.Count > 0) {
15715 foreach (uint element in unpackedFixed32_) {
15716 output.WriteFixed32(96, element);
15717 }
15718 }
15719 if (unpackedFixed64_.Count > 0) {
15720 foreach (ulong element in unpackedFixed64_) {
15721 output.WriteFixed64(97, element);
15722 }
15723 }
15724 if (unpackedSfixed32_.Count > 0) {
15725 foreach (int element in unpackedSfixed32_) {
15726 output.WriteSFixed32(98, element);
15727 }
15728 }
15729 if (unpackedSfixed64_.Count > 0) {
15730 foreach (long element in unpackedSfixed64_) {
15731 output.WriteSFixed64(99, element);
15732 }
15733 }
15734 if (unpackedFloat_.Count > 0) {
15735 foreach (float element in unpackedFloat_) {
15736 output.WriteFloat(100, element);
15737 }
15738 }
15739 if (unpackedDouble_.Count > 0) {
15740 foreach (double element in unpackedDouble_) {
15741 output.WriteDouble(101, element);
15742 }
15743 }
15744 if (unpackedBool_.Count > 0) {
15745 foreach (bool element in unpackedBool_) {
15746 output.WriteBool(102, element);
15747 }
15748 }
15749 if (unpackedEnum_.Count > 0) {
15750 foreach (int element in unpackedEnum_) {
15751 output.WriteEnum(103, element);
15752 }
15753 }
15754 UnknownFields.WriteTo(output);
15755 }
15756
15757 private int memoizedSerializedSize = -1;
15758 public override int SerializedSize {
15759 get {
15760 int size = memoizedSerializedSize;
15761 if (size != -1) return size;
15762
15763 size = 0;
15764 {
15765 int dataSize = 0;
15766 foreach (int element in UnpackedInt32List) {
15767 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
15768 }
15769 size += dataSize;
15770 size += 2 * unpackedInt32_.Count;
15771 }
15772 {
15773 int dataSize = 0;
15774 foreach (long element in UnpackedInt64List) {
15775 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
15776 }
15777 size += dataSize;
15778 size += 2 * unpackedInt64_.Count;
15779 }
15780 {
15781 int dataSize = 0;
15782 foreach (uint element in UnpackedUint32List) {
15783 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
15784 }
15785 size += dataSize;
15786 size += 2 * unpackedUint32_.Count;
15787 }
15788 {
15789 int dataSize = 0;
15790 foreach (ulong element in UnpackedUint64List) {
15791 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
15792 }
15793 size += dataSize;
15794 size += 2 * unpackedUint64_.Count;
15795 }
15796 {
15797 int dataSize = 0;
15798 foreach (int element in UnpackedSint32List) {
15799 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
15800 }
15801 size += dataSize;
15802 size += 2 * unpackedSint32_.Count;
15803 }
15804 {
15805 int dataSize = 0;
15806 foreach (long element in UnpackedSint64List) {
15807 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
15808 }
15809 size += dataSize;
15810 size += 2 * unpackedSint64_.Count;
15811 }
15812 {
15813 int dataSize = 0;
15814 dataSize = 4 * unpackedFixed32_.Count;
15815 size += dataSize;
15816 size += 2 * unpackedFixed32_.Count;
15817 }
15818 {
15819 int dataSize = 0;
15820 dataSize = 8 * unpackedFixed64_.Count;
15821 size += dataSize;
15822 size += 2 * unpackedFixed64_.Count;
15823 }
15824 {
15825 int dataSize = 0;
15826 dataSize = 4 * unpackedSfixed32_.Count;
15827 size += dataSize;
15828 size += 2 * unpackedSfixed32_.Count;
15829 }
15830 {
15831 int dataSize = 0;
15832 dataSize = 8 * unpackedSfixed64_.Count;
15833 size += dataSize;
15834 size += 2 * unpackedSfixed64_.Count;
15835 }
15836 {
15837 int dataSize = 0;
15838 dataSize = 4 * unpackedFloat_.Count;
15839 size += dataSize;
15840 size += 2 * unpackedFloat_.Count;
15841 }
15842 {
15843 int dataSize = 0;
15844 dataSize = 8 * unpackedDouble_.Count;
15845 size += dataSize;
15846 size += 2 * unpackedDouble_.Count;
15847 }
15848 {
15849 int dataSize = 0;
15850 dataSize = 1 * unpackedBool_.Count;
15851 size += dataSize;
15852 size += 2 * unpackedBool_.Count;
15853 }
15854 {
15855 int dataSize = 0;
15856 if (unpackedEnum_.Count > 0) {
15857 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in unpackedEnum_) {
15858 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
15859 }
15860 size += dataSize;
15861 size += 2 * unpackedEnum_.Count;
15862 }
15863 }
15864 size += UnknownFields.SerializedSize;
15865 memoizedSerializedSize = size;
15866 return size;
15867 }
15868 }
15869
15870 public static TestUnpackedTypes ParseFrom(pb::ByteString data) {
15871 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
15872 }
15873 public static TestUnpackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
15874 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
15875 }
15876 public static TestUnpackedTypes ParseFrom(byte[] data) {
15877 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
15878 }
15879 public static TestUnpackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
15880 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
15881 }
15882 public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input) {
15883 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
15884 }
15885 public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
15886 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
15887 }
15888 public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
15889 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
15890 }
15891 public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
15892 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
15893 }
15894 public static TestUnpackedTypes ParseFrom(pb::CodedInputStream input) {
15895 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
15896 }
15897 public static TestUnpackedTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
15898 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
15899 }
15900 public static Builder CreateBuilder() { return new Builder(); }
15901 public override Builder ToBuilder() { return CreateBuilder(this); }
15902 public override Builder CreateBuilderForType() { return new Builder(); }
15903 public static Builder CreateBuilder(TestUnpackedTypes prototype) {
15904 return (Builder) new Builder().MergeFrom(prototype);
15905 }
15906
csharptest445bdce2011-05-20 15:50:54 -050015907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
15908 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15909 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010015910 public sealed partial class Builder : pb::GeneratedBuilder<TestUnpackedTypes, Builder> {
15911 protected override Builder ThisBuilder {
15912 get { return this; }
15913 }
15914 public Builder() {}
15915
15916 TestUnpackedTypes result = new TestUnpackedTypes();
15917
15918 protected override TestUnpackedTypes MessageBeingBuilt {
15919 get { return result; }
15920 }
15921
15922 public override Builder Clear() {
15923 result = new TestUnpackedTypes();
15924 return this;
15925 }
15926
15927 public override Builder Clone() {
15928 return new Builder().MergeFrom(result);
15929 }
15930
15931 public override pbd::MessageDescriptor DescriptorForType {
15932 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Descriptor; }
15933 }
15934
15935 public override TestUnpackedTypes DefaultInstanceForType {
15936 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance; }
15937 }
15938
15939 public override TestUnpackedTypes BuildPartial() {
15940 if (result == null) {
15941 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
15942 }
15943 result.unpackedInt32_.MakeReadOnly();
15944 result.unpackedInt64_.MakeReadOnly();
15945 result.unpackedUint32_.MakeReadOnly();
15946 result.unpackedUint64_.MakeReadOnly();
15947 result.unpackedSint32_.MakeReadOnly();
15948 result.unpackedSint64_.MakeReadOnly();
15949 result.unpackedFixed32_.MakeReadOnly();
15950 result.unpackedFixed64_.MakeReadOnly();
15951 result.unpackedSfixed32_.MakeReadOnly();
15952 result.unpackedSfixed64_.MakeReadOnly();
15953 result.unpackedFloat_.MakeReadOnly();
15954 result.unpackedDouble_.MakeReadOnly();
15955 result.unpackedBool_.MakeReadOnly();
15956 result.unpackedEnum_.MakeReadOnly();
15957 TestUnpackedTypes returnMe = result;
15958 result = null;
15959 return returnMe;
15960 }
15961
15962 public override Builder MergeFrom(pb::IMessage other) {
15963 if (other is TestUnpackedTypes) {
15964 return MergeFrom((TestUnpackedTypes) other);
15965 } else {
15966 base.MergeFrom(other);
15967 return this;
15968 }
15969 }
15970
15971 public override Builder MergeFrom(TestUnpackedTypes other) {
15972 if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance) return this;
15973 if (other.unpackedInt32_.Count != 0) {
15974 base.AddRange(other.unpackedInt32_, result.unpackedInt32_);
15975 }
15976 if (other.unpackedInt64_.Count != 0) {
15977 base.AddRange(other.unpackedInt64_, result.unpackedInt64_);
15978 }
15979 if (other.unpackedUint32_.Count != 0) {
15980 base.AddRange(other.unpackedUint32_, result.unpackedUint32_);
15981 }
15982 if (other.unpackedUint64_.Count != 0) {
15983 base.AddRange(other.unpackedUint64_, result.unpackedUint64_);
15984 }
15985 if (other.unpackedSint32_.Count != 0) {
15986 base.AddRange(other.unpackedSint32_, result.unpackedSint32_);
15987 }
15988 if (other.unpackedSint64_.Count != 0) {
15989 base.AddRange(other.unpackedSint64_, result.unpackedSint64_);
15990 }
15991 if (other.unpackedFixed32_.Count != 0) {
15992 base.AddRange(other.unpackedFixed32_, result.unpackedFixed32_);
15993 }
15994 if (other.unpackedFixed64_.Count != 0) {
15995 base.AddRange(other.unpackedFixed64_, result.unpackedFixed64_);
15996 }
15997 if (other.unpackedSfixed32_.Count != 0) {
15998 base.AddRange(other.unpackedSfixed32_, result.unpackedSfixed32_);
15999 }
16000 if (other.unpackedSfixed64_.Count != 0) {
16001 base.AddRange(other.unpackedSfixed64_, result.unpackedSfixed64_);
16002 }
16003 if (other.unpackedFloat_.Count != 0) {
16004 base.AddRange(other.unpackedFloat_, result.unpackedFloat_);
16005 }
16006 if (other.unpackedDouble_.Count != 0) {
16007 base.AddRange(other.unpackedDouble_, result.unpackedDouble_);
16008 }
16009 if (other.unpackedBool_.Count != 0) {
16010 base.AddRange(other.unpackedBool_, result.unpackedBool_);
16011 }
16012 if (other.unpackedEnum_.Count != 0) {
16013 base.AddRange(other.unpackedEnum_, result.unpackedEnum_);
16014 }
16015 this.MergeUnknownFields(other.UnknownFields);
16016 return this;
16017 }
16018
16019 public override Builder MergeFrom(pb::CodedInputStream input) {
16020 return MergeFrom(input, pb::ExtensionRegistry.Empty);
16021 }
16022
16023 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
16024 pb::UnknownFieldSet.Builder unknownFields = null;
16025 while (true) {
16026 uint tag = input.ReadTag();
16027 switch (tag) {
16028 case 0: {
16029 if (unknownFields != null) {
16030 this.UnknownFields = unknownFields.Build();
16031 }
16032 return this;
16033 }
16034 default: {
16035 if (pb::WireFormat.IsEndGroupTag(tag)) {
16036 if (unknownFields != null) {
16037 this.UnknownFields = unknownFields.Build();
16038 }
16039 return this;
16040 }
16041 if (unknownFields == null) {
16042 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16043 }
16044 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
16045 break;
16046 }
16047 case 720: {
16048 AddUnpackedInt32(input.ReadInt32());
16049 break;
16050 }
16051 case 728: {
16052 AddUnpackedInt64(input.ReadInt64());
16053 break;
16054 }
16055 case 736: {
16056 AddUnpackedUint32(input.ReadUInt32());
16057 break;
16058 }
16059 case 744: {
16060 AddUnpackedUint64(input.ReadUInt64());
16061 break;
16062 }
16063 case 752: {
16064 AddUnpackedSint32(input.ReadSInt32());
16065 break;
16066 }
16067 case 760: {
16068 AddUnpackedSint64(input.ReadSInt64());
16069 break;
16070 }
16071 case 773: {
16072 AddUnpackedFixed32(input.ReadFixed32());
16073 break;
16074 }
16075 case 777: {
16076 AddUnpackedFixed64(input.ReadFixed64());
16077 break;
16078 }
16079 case 789: {
16080 AddUnpackedSfixed32(input.ReadSFixed32());
16081 break;
16082 }
16083 case 793: {
16084 AddUnpackedSfixed64(input.ReadSFixed64());
16085 break;
16086 }
16087 case 805: {
16088 AddUnpackedFloat(input.ReadFloat());
16089 break;
16090 }
16091 case 809: {
16092 AddUnpackedDouble(input.ReadDouble());
16093 break;
16094 }
16095 case 816: {
16096 AddUnpackedBool(input.ReadBool());
16097 break;
16098 }
16099 case 824: {
16100 int rawValue = input.ReadEnum();
16101 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
16102 if (unknownFields == null) {
16103 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16104 }
16105 unknownFields.MergeVarintField(103, (ulong) rawValue);
16106 } else {
16107 AddUnpackedEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue);
16108 }
16109 break;
16110 }
16111 }
16112 }
16113 }
16114
16115
16116 public pbc::IPopsicleList<int> UnpackedInt32List {
16117 get { return result.unpackedInt32_; }
16118 }
16119 public int UnpackedInt32Count {
16120 get { return result.UnpackedInt32Count; }
16121 }
16122 public int GetUnpackedInt32(int index) {
16123 return result.GetUnpackedInt32(index);
16124 }
16125 public Builder SetUnpackedInt32(int index, int value) {
16126 result.unpackedInt32_[index] = value;
16127 return this;
16128 }
16129 public Builder AddUnpackedInt32(int value) {
16130 result.unpackedInt32_.Add(value);
16131 return this;
16132 }
16133 public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
16134 base.AddRange(values, result.unpackedInt32_);
16135 return this;
16136 }
16137 public Builder ClearUnpackedInt32() {
16138 result.unpackedInt32_.Clear();
16139 return this;
16140 }
16141
16142 public pbc::IPopsicleList<long> UnpackedInt64List {
16143 get { return result.unpackedInt64_; }
16144 }
16145 public int UnpackedInt64Count {
16146 get { return result.UnpackedInt64Count; }
16147 }
16148 public long GetUnpackedInt64(int index) {
16149 return result.GetUnpackedInt64(index);
16150 }
16151 public Builder SetUnpackedInt64(int index, long value) {
16152 result.unpackedInt64_[index] = value;
16153 return this;
16154 }
16155 public Builder AddUnpackedInt64(long value) {
16156 result.unpackedInt64_.Add(value);
16157 return this;
16158 }
16159 public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
16160 base.AddRange(values, result.unpackedInt64_);
16161 return this;
16162 }
16163 public Builder ClearUnpackedInt64() {
16164 result.unpackedInt64_.Clear();
16165 return this;
16166 }
16167
16168 [global::System.CLSCompliant(false)]
16169 public pbc::IPopsicleList<uint> UnpackedUint32List {
16170 get { return result.unpackedUint32_; }
16171 }
16172 public int UnpackedUint32Count {
16173 get { return result.UnpackedUint32Count; }
16174 }
16175 [global::System.CLSCompliant(false)]
16176 public uint GetUnpackedUint32(int index) {
16177 return result.GetUnpackedUint32(index);
16178 }
16179 [global::System.CLSCompliant(false)]
16180 public Builder SetUnpackedUint32(int index, uint value) {
16181 result.unpackedUint32_[index] = value;
16182 return this;
16183 }
16184 [global::System.CLSCompliant(false)]
16185 public Builder AddUnpackedUint32(uint value) {
16186 result.unpackedUint32_.Add(value);
16187 return this;
16188 }
16189 [global::System.CLSCompliant(false)]
16190 public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
16191 base.AddRange(values, result.unpackedUint32_);
16192 return this;
16193 }
16194 public Builder ClearUnpackedUint32() {
16195 result.unpackedUint32_.Clear();
16196 return this;
16197 }
16198
16199 [global::System.CLSCompliant(false)]
16200 public pbc::IPopsicleList<ulong> UnpackedUint64List {
16201 get { return result.unpackedUint64_; }
16202 }
16203 public int UnpackedUint64Count {
16204 get { return result.UnpackedUint64Count; }
16205 }
16206 [global::System.CLSCompliant(false)]
16207 public ulong GetUnpackedUint64(int index) {
16208 return result.GetUnpackedUint64(index);
16209 }
16210 [global::System.CLSCompliant(false)]
16211 public Builder SetUnpackedUint64(int index, ulong value) {
16212 result.unpackedUint64_[index] = value;
16213 return this;
16214 }
16215 [global::System.CLSCompliant(false)]
16216 public Builder AddUnpackedUint64(ulong value) {
16217 result.unpackedUint64_.Add(value);
16218 return this;
16219 }
16220 [global::System.CLSCompliant(false)]
16221 public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
16222 base.AddRange(values, result.unpackedUint64_);
16223 return this;
16224 }
16225 public Builder ClearUnpackedUint64() {
16226 result.unpackedUint64_.Clear();
16227 return this;
16228 }
16229
16230 public pbc::IPopsicleList<int> UnpackedSint32List {
16231 get { return result.unpackedSint32_; }
16232 }
16233 public int UnpackedSint32Count {
16234 get { return result.UnpackedSint32Count; }
16235 }
16236 public int GetUnpackedSint32(int index) {
16237 return result.GetUnpackedSint32(index);
16238 }
16239 public Builder SetUnpackedSint32(int index, int value) {
16240 result.unpackedSint32_[index] = value;
16241 return this;
16242 }
16243 public Builder AddUnpackedSint32(int value) {
16244 result.unpackedSint32_.Add(value);
16245 return this;
16246 }
16247 public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
16248 base.AddRange(values, result.unpackedSint32_);
16249 return this;
16250 }
16251 public Builder ClearUnpackedSint32() {
16252 result.unpackedSint32_.Clear();
16253 return this;
16254 }
16255
16256 public pbc::IPopsicleList<long> UnpackedSint64List {
16257 get { return result.unpackedSint64_; }
16258 }
16259 public int UnpackedSint64Count {
16260 get { return result.UnpackedSint64Count; }
16261 }
16262 public long GetUnpackedSint64(int index) {
16263 return result.GetUnpackedSint64(index);
16264 }
16265 public Builder SetUnpackedSint64(int index, long value) {
16266 result.unpackedSint64_[index] = value;
16267 return this;
16268 }
16269 public Builder AddUnpackedSint64(long value) {
16270 result.unpackedSint64_.Add(value);
16271 return this;
16272 }
16273 public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
16274 base.AddRange(values, result.unpackedSint64_);
16275 return this;
16276 }
16277 public Builder ClearUnpackedSint64() {
16278 result.unpackedSint64_.Clear();
16279 return this;
16280 }
16281
16282 [global::System.CLSCompliant(false)]
16283 public pbc::IPopsicleList<uint> UnpackedFixed32List {
16284 get { return result.unpackedFixed32_; }
16285 }
16286 public int UnpackedFixed32Count {
16287 get { return result.UnpackedFixed32Count; }
16288 }
16289 [global::System.CLSCompliant(false)]
16290 public uint GetUnpackedFixed32(int index) {
16291 return result.GetUnpackedFixed32(index);
16292 }
16293 [global::System.CLSCompliant(false)]
16294 public Builder SetUnpackedFixed32(int index, uint value) {
16295 result.unpackedFixed32_[index] = value;
16296 return this;
16297 }
16298 [global::System.CLSCompliant(false)]
16299 public Builder AddUnpackedFixed32(uint value) {
16300 result.unpackedFixed32_.Add(value);
16301 return this;
16302 }
16303 [global::System.CLSCompliant(false)]
16304 public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
16305 base.AddRange(values, result.unpackedFixed32_);
16306 return this;
16307 }
16308 public Builder ClearUnpackedFixed32() {
16309 result.unpackedFixed32_.Clear();
16310 return this;
16311 }
16312
16313 [global::System.CLSCompliant(false)]
16314 public pbc::IPopsicleList<ulong> UnpackedFixed64List {
16315 get { return result.unpackedFixed64_; }
16316 }
16317 public int UnpackedFixed64Count {
16318 get { return result.UnpackedFixed64Count; }
16319 }
16320 [global::System.CLSCompliant(false)]
16321 public ulong GetUnpackedFixed64(int index) {
16322 return result.GetUnpackedFixed64(index);
16323 }
16324 [global::System.CLSCompliant(false)]
16325 public Builder SetUnpackedFixed64(int index, ulong value) {
16326 result.unpackedFixed64_[index] = value;
16327 return this;
16328 }
16329 [global::System.CLSCompliant(false)]
16330 public Builder AddUnpackedFixed64(ulong value) {
16331 result.unpackedFixed64_.Add(value);
16332 return this;
16333 }
16334 [global::System.CLSCompliant(false)]
16335 public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
16336 base.AddRange(values, result.unpackedFixed64_);
16337 return this;
16338 }
16339 public Builder ClearUnpackedFixed64() {
16340 result.unpackedFixed64_.Clear();
16341 return this;
16342 }
16343
16344 public pbc::IPopsicleList<int> UnpackedSfixed32List {
16345 get { return result.unpackedSfixed32_; }
16346 }
16347 public int UnpackedSfixed32Count {
16348 get { return result.UnpackedSfixed32Count; }
16349 }
16350 public int GetUnpackedSfixed32(int index) {
16351 return result.GetUnpackedSfixed32(index);
16352 }
16353 public Builder SetUnpackedSfixed32(int index, int value) {
16354 result.unpackedSfixed32_[index] = value;
16355 return this;
16356 }
16357 public Builder AddUnpackedSfixed32(int value) {
16358 result.unpackedSfixed32_.Add(value);
16359 return this;
16360 }
16361 public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
16362 base.AddRange(values, result.unpackedSfixed32_);
16363 return this;
16364 }
16365 public Builder ClearUnpackedSfixed32() {
16366 result.unpackedSfixed32_.Clear();
16367 return this;
16368 }
16369
16370 public pbc::IPopsicleList<long> UnpackedSfixed64List {
16371 get { return result.unpackedSfixed64_; }
16372 }
16373 public int UnpackedSfixed64Count {
16374 get { return result.UnpackedSfixed64Count; }
16375 }
16376 public long GetUnpackedSfixed64(int index) {
16377 return result.GetUnpackedSfixed64(index);
16378 }
16379 public Builder SetUnpackedSfixed64(int index, long value) {
16380 result.unpackedSfixed64_[index] = value;
16381 return this;
16382 }
16383 public Builder AddUnpackedSfixed64(long value) {
16384 result.unpackedSfixed64_.Add(value);
16385 return this;
16386 }
16387 public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
16388 base.AddRange(values, result.unpackedSfixed64_);
16389 return this;
16390 }
16391 public Builder ClearUnpackedSfixed64() {
16392 result.unpackedSfixed64_.Clear();
16393 return this;
16394 }
16395
16396 public pbc::IPopsicleList<float> UnpackedFloatList {
16397 get { return result.unpackedFloat_; }
16398 }
16399 public int UnpackedFloatCount {
16400 get { return result.UnpackedFloatCount; }
16401 }
16402 public float GetUnpackedFloat(int index) {
16403 return result.GetUnpackedFloat(index);
16404 }
16405 public Builder SetUnpackedFloat(int index, float value) {
16406 result.unpackedFloat_[index] = value;
16407 return this;
16408 }
16409 public Builder AddUnpackedFloat(float value) {
16410 result.unpackedFloat_.Add(value);
16411 return this;
16412 }
16413 public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
16414 base.AddRange(values, result.unpackedFloat_);
16415 return this;
16416 }
16417 public Builder ClearUnpackedFloat() {
16418 result.unpackedFloat_.Clear();
16419 return this;
16420 }
16421
16422 public pbc::IPopsicleList<double> UnpackedDoubleList {
16423 get { return result.unpackedDouble_; }
16424 }
16425 public int UnpackedDoubleCount {
16426 get { return result.UnpackedDoubleCount; }
16427 }
16428 public double GetUnpackedDouble(int index) {
16429 return result.GetUnpackedDouble(index);
16430 }
16431 public Builder SetUnpackedDouble(int index, double value) {
16432 result.unpackedDouble_[index] = value;
16433 return this;
16434 }
16435 public Builder AddUnpackedDouble(double value) {
16436 result.unpackedDouble_.Add(value);
16437 return this;
16438 }
16439 public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
16440 base.AddRange(values, result.unpackedDouble_);
16441 return this;
16442 }
16443 public Builder ClearUnpackedDouble() {
16444 result.unpackedDouble_.Clear();
16445 return this;
16446 }
16447
16448 public pbc::IPopsicleList<bool> UnpackedBoolList {
16449 get { return result.unpackedBool_; }
16450 }
16451 public int UnpackedBoolCount {
16452 get { return result.UnpackedBoolCount; }
16453 }
16454 public bool GetUnpackedBool(int index) {
16455 return result.GetUnpackedBool(index);
16456 }
16457 public Builder SetUnpackedBool(int index, bool value) {
16458 result.unpackedBool_[index] = value;
16459 return this;
16460 }
16461 public Builder AddUnpackedBool(bool value) {
16462 result.unpackedBool_.Add(value);
16463 return this;
16464 }
16465 public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
16466 base.AddRange(values, result.unpackedBool_);
16467 return this;
16468 }
16469 public Builder ClearUnpackedBool() {
16470 result.unpackedBool_.Clear();
16471 return this;
16472 }
16473
16474 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
16475 get { return result.unpackedEnum_; }
16476 }
16477 public int UnpackedEnumCount {
16478 get { return result.UnpackedEnumCount; }
16479 }
16480 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
16481 return result.GetUnpackedEnum(index);
16482 }
16483 public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
16484 result.unpackedEnum_[index] = value;
16485 return this;
16486 }
16487 public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
16488 result.unpackedEnum_.Add(value);
16489 return this;
16490 }
16491 public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
16492 base.AddRange(values, result.unpackedEnum_);
16493 return this;
16494 }
16495 public Builder ClearUnpackedEnum() {
16496 result.unpackedEnum_.Clear();
16497 return this;
16498 }
16499 }
16500 static TestUnpackedTypes() {
16501 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16502 }
16503 }
16504
csharptest445bdce2011-05-20 15:50:54 -050016505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16506 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16507 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016508 public sealed partial class TestPackedExtensions : pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder> {
16509 private static readonly TestPackedExtensions defaultInstance = new Builder().BuildPartial();
16510 public static TestPackedExtensions DefaultInstance {
16511 get { return defaultInstance; }
16512 }
16513
16514 public override TestPackedExtensions DefaultInstanceForType {
16515 get { return defaultInstance; }
16516 }
16517
16518 protected override TestPackedExtensions ThisMessage {
16519 get { return this; }
16520 }
16521
16522 public static pbd::MessageDescriptor Descriptor {
16523 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__Descriptor; }
16524 }
16525
16526 protected override pb::FieldAccess.FieldAccessorTable<TestPackedExtensions, TestPackedExtensions.Builder> InternalFieldAccessors {
16527 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable; }
16528 }
16529
16530 public override bool IsInitialized {
16531 get {
16532 if (!ExtensionsAreInitialized) return false;
16533 return true;
16534 }
16535 }
16536
16537 public override void WriteTo(pb::CodedOutputStream output) {
16538 int size = SerializedSize;
16539 pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
16540 extensionWriter.WriteUntil(536870912, output);
16541 UnknownFields.WriteTo(output);
16542 }
16543
16544 private int memoizedSerializedSize = -1;
16545 public override int SerializedSize {
16546 get {
16547 int size = memoizedSerializedSize;
16548 if (size != -1) return size;
16549
16550 size = 0;
16551 size += ExtensionsSerializedSize;
16552 size += UnknownFields.SerializedSize;
16553 memoizedSerializedSize = size;
16554 return size;
16555 }
16556 }
16557
16558 public static TestPackedExtensions ParseFrom(pb::ByteString data) {
16559 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16560 }
16561 public static TestPackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
16562 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16563 }
16564 public static TestPackedExtensions ParseFrom(byte[] data) {
16565 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16566 }
16567 public static TestPackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
16568 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16569 }
16570 public static TestPackedExtensions ParseFrom(global::System.IO.Stream input) {
16571 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16572 }
16573 public static TestPackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16574 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16575 }
16576 public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
16577 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
16578 }
16579 public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16580 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
16581 }
16582 public static TestPackedExtensions ParseFrom(pb::CodedInputStream input) {
16583 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16584 }
16585 public static TestPackedExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
16586 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16587 }
16588 public static Builder CreateBuilder() { return new Builder(); }
16589 public override Builder ToBuilder() { return CreateBuilder(this); }
16590 public override Builder CreateBuilderForType() { return new Builder(); }
16591 public static Builder CreateBuilder(TestPackedExtensions prototype) {
16592 return (Builder) new Builder().MergeFrom(prototype);
16593 }
16594
csharptest445bdce2011-05-20 15:50:54 -050016595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16596 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16597 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016598 public sealed partial class Builder : pb::ExtendableBuilder<TestPackedExtensions, Builder> {
16599 protected override Builder ThisBuilder {
16600 get { return this; }
16601 }
16602 public Builder() {}
16603
16604 TestPackedExtensions result = new TestPackedExtensions();
16605
16606 protected override TestPackedExtensions MessageBeingBuilt {
16607 get { return result; }
16608 }
16609
16610 public override Builder Clear() {
16611 result = new TestPackedExtensions();
16612 return this;
16613 }
16614
16615 public override Builder Clone() {
16616 return new Builder().MergeFrom(result);
16617 }
16618
16619 public override pbd::MessageDescriptor DescriptorForType {
16620 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Descriptor; }
16621 }
16622
16623 public override TestPackedExtensions DefaultInstanceForType {
16624 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance; }
16625 }
16626
16627 public override TestPackedExtensions BuildPartial() {
16628 if (result == null) {
16629 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
16630 }
16631 TestPackedExtensions returnMe = result;
16632 result = null;
16633 return returnMe;
16634 }
16635
16636 public override Builder MergeFrom(pb::IMessage other) {
16637 if (other is TestPackedExtensions) {
16638 return MergeFrom((TestPackedExtensions) other);
16639 } else {
16640 base.MergeFrom(other);
16641 return this;
16642 }
16643 }
16644
16645 public override Builder MergeFrom(TestPackedExtensions other) {
16646 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance) return this;
16647 this.MergeExtensionFields(other);
16648 this.MergeUnknownFields(other.UnknownFields);
16649 return this;
16650 }
16651
16652 public override Builder MergeFrom(pb::CodedInputStream input) {
16653 return MergeFrom(input, pb::ExtensionRegistry.Empty);
16654 }
16655
16656 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
16657 pb::UnknownFieldSet.Builder unknownFields = null;
16658 while (true) {
16659 uint tag = input.ReadTag();
16660 switch (tag) {
16661 case 0: {
16662 if (unknownFields != null) {
16663 this.UnknownFields = unknownFields.Build();
16664 }
16665 return this;
16666 }
16667 default: {
16668 if (pb::WireFormat.IsEndGroupTag(tag)) {
16669 if (unknownFields != null) {
16670 this.UnknownFields = unknownFields.Build();
16671 }
16672 return this;
16673 }
16674 if (unknownFields == null) {
16675 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16676 }
16677 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
16678 break;
16679 }
16680 }
16681 }
16682 }
16683
16684 }
16685 static TestPackedExtensions() {
16686 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16687 }
16688 }
16689
csharptest445bdce2011-05-20 15:50:54 -050016690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16691 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16692 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016693 public sealed partial class TestDynamicExtensions : pb::GeneratedMessage<TestDynamicExtensions, TestDynamicExtensions.Builder> {
16694 private static readonly TestDynamicExtensions defaultInstance = new Builder().BuildPartial();
16695 public static TestDynamicExtensions DefaultInstance {
16696 get { return defaultInstance; }
16697 }
16698
16699 public override TestDynamicExtensions DefaultInstanceForType {
16700 get { return defaultInstance; }
16701 }
16702
16703 protected override TestDynamicExtensions ThisMessage {
16704 get { return this; }
16705 }
16706
16707 public static pbd::MessageDescriptor Descriptor {
16708 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor; }
16709 }
16710
16711 protected override pb::FieldAccess.FieldAccessorTable<TestDynamicExtensions, TestDynamicExtensions.Builder> InternalFieldAccessors {
16712 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable; }
16713 }
16714
16715 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -050016716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16717 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16718 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016719 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -050016720 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16721 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016722 public enum DynamicEnumType {
16723 DYNAMIC_FOO = 2200,
16724 DYNAMIC_BAR = 2201,
16725 DYNAMIC_BAZ = 2202,
16726 }
16727
csharptest445bdce2011-05-20 15:50:54 -050016728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16729 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16730 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016731 public sealed partial class DynamicMessageType : pb::GeneratedMessage<DynamicMessageType, DynamicMessageType.Builder> {
16732 private static readonly DynamicMessageType defaultInstance = new Builder().BuildPartial();
16733 public static DynamicMessageType DefaultInstance {
16734 get { return defaultInstance; }
16735 }
16736
16737 public override DynamicMessageType DefaultInstanceForType {
16738 get { return defaultInstance; }
16739 }
16740
16741 protected override DynamicMessageType ThisMessage {
16742 get { return this; }
16743 }
16744
16745 public static pbd::MessageDescriptor Descriptor {
16746 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor; }
16747 }
16748
16749 protected override pb::FieldAccess.FieldAccessorTable<DynamicMessageType, DynamicMessageType.Builder> InternalFieldAccessors {
16750 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable; }
16751 }
16752
16753 public const int DynamicFieldFieldNumber = 2100;
16754 private bool hasDynamicField;
16755 private int dynamicField_ = 0;
16756 public bool HasDynamicField {
16757 get { return hasDynamicField; }
16758 }
16759 public int DynamicField {
16760 get { return dynamicField_; }
16761 }
16762
16763 public override bool IsInitialized {
16764 get {
16765 return true;
16766 }
16767 }
16768
16769 public override void WriteTo(pb::CodedOutputStream output) {
16770 int size = SerializedSize;
16771 if (HasDynamicField) {
16772 output.WriteInt32(2100, DynamicField);
16773 }
16774 UnknownFields.WriteTo(output);
16775 }
16776
16777 private int memoizedSerializedSize = -1;
16778 public override int SerializedSize {
16779 get {
16780 int size = memoizedSerializedSize;
16781 if (size != -1) return size;
16782
16783 size = 0;
16784 if (HasDynamicField) {
16785 size += pb::CodedOutputStream.ComputeInt32Size(2100, DynamicField);
16786 }
16787 size += UnknownFields.SerializedSize;
16788 memoizedSerializedSize = size;
16789 return size;
16790 }
16791 }
16792
16793 public static DynamicMessageType ParseFrom(pb::ByteString data) {
16794 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16795 }
16796 public static DynamicMessageType ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
16797 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16798 }
16799 public static DynamicMessageType ParseFrom(byte[] data) {
16800 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
16801 }
16802 public static DynamicMessageType ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
16803 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
16804 }
16805 public static DynamicMessageType ParseFrom(global::System.IO.Stream input) {
16806 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16807 }
16808 public static DynamicMessageType ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16809 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16810 }
16811 public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input) {
16812 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
16813 }
16814 public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
16815 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
16816 }
16817 public static DynamicMessageType ParseFrom(pb::CodedInputStream input) {
16818 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
16819 }
16820 public static DynamicMessageType ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
16821 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
16822 }
16823 public static Builder CreateBuilder() { return new Builder(); }
16824 public override Builder ToBuilder() { return CreateBuilder(this); }
16825 public override Builder CreateBuilderForType() { return new Builder(); }
16826 public static Builder CreateBuilder(DynamicMessageType prototype) {
16827 return (Builder) new Builder().MergeFrom(prototype);
16828 }
16829
csharptest445bdce2011-05-20 15:50:54 -050016830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
16831 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16832 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010016833 public sealed partial class Builder : pb::GeneratedBuilder<DynamicMessageType, Builder> {
16834 protected override Builder ThisBuilder {
16835 get { return this; }
16836 }
16837 public Builder() {}
16838
16839 DynamicMessageType result = new DynamicMessageType();
16840
16841 protected override DynamicMessageType MessageBeingBuilt {
16842 get { return result; }
16843 }
16844
16845 public override Builder Clear() {
16846 result = new DynamicMessageType();
16847 return this;
16848 }
16849
16850 public override Builder Clone() {
16851 return new Builder().MergeFrom(result);
16852 }
16853
16854 public override pbd::MessageDescriptor DescriptorForType {
16855 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Descriptor; }
16856 }
16857
16858 public override DynamicMessageType DefaultInstanceForType {
16859 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
16860 }
16861
16862 public override DynamicMessageType BuildPartial() {
16863 if (result == null) {
16864 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
16865 }
16866 DynamicMessageType returnMe = result;
16867 result = null;
16868 return returnMe;
16869 }
16870
16871 public override Builder MergeFrom(pb::IMessage other) {
16872 if (other is DynamicMessageType) {
16873 return MergeFrom((DynamicMessageType) other);
16874 } else {
16875 base.MergeFrom(other);
16876 return this;
16877 }
16878 }
16879
16880 public override Builder MergeFrom(DynamicMessageType other) {
16881 if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) return this;
16882 if (other.HasDynamicField) {
16883 DynamicField = other.DynamicField;
16884 }
16885 this.MergeUnknownFields(other.UnknownFields);
16886 return this;
16887 }
16888
16889 public override Builder MergeFrom(pb::CodedInputStream input) {
16890 return MergeFrom(input, pb::ExtensionRegistry.Empty);
16891 }
16892
16893 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
16894 pb::UnknownFieldSet.Builder unknownFields = null;
16895 while (true) {
16896 uint tag = input.ReadTag();
16897 switch (tag) {
16898 case 0: {
16899 if (unknownFields != null) {
16900 this.UnknownFields = unknownFields.Build();
16901 }
16902 return this;
16903 }
16904 default: {
16905 if (pb::WireFormat.IsEndGroupTag(tag)) {
16906 if (unknownFields != null) {
16907 this.UnknownFields = unknownFields.Build();
16908 }
16909 return this;
16910 }
16911 if (unknownFields == null) {
16912 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
16913 }
16914 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
16915 break;
16916 }
16917 case 16800: {
16918 DynamicField = input.ReadInt32();
16919 break;
16920 }
16921 }
16922 }
16923 }
16924
16925
16926 public bool HasDynamicField {
16927 get { return result.HasDynamicField; }
16928 }
16929 public int DynamicField {
16930 get { return result.DynamicField; }
16931 set { SetDynamicField(value); }
16932 }
16933 public Builder SetDynamicField(int value) {
16934 result.hasDynamicField = true;
16935 result.dynamicField_ = value;
16936 return this;
16937 }
16938 public Builder ClearDynamicField() {
16939 result.hasDynamicField = false;
16940 result.dynamicField_ = 0;
16941 return this;
16942 }
16943 }
16944 static DynamicMessageType() {
16945 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
16946 }
16947 }
16948
16949 }
16950 #endregion
16951
16952 public const int ScalarExtensionFieldNumber = 2000;
16953 private bool hasScalarExtension;
16954 private uint scalarExtension_ = 0;
16955 public bool HasScalarExtension {
16956 get { return hasScalarExtension; }
16957 }
16958 [global::System.CLSCompliant(false)]
16959 public uint ScalarExtension {
16960 get { return scalarExtension_; }
16961 }
16962
16963 public const int EnumExtensionFieldNumber = 2001;
16964 private bool hasEnumExtension;
16965 private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
16966 public bool HasEnumExtension {
16967 get { return hasEnumExtension; }
16968 }
16969 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
16970 get { return enumExtension_; }
16971 }
16972
16973 public const int DynamicEnumExtensionFieldNumber = 2002;
16974 private bool hasDynamicEnumExtension;
16975 private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
16976 public bool HasDynamicEnumExtension {
16977 get { return hasDynamicEnumExtension; }
16978 }
16979 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
16980 get { return dynamicEnumExtension_; }
16981 }
16982
16983 public const int MessageExtensionFieldNumber = 2003;
16984 private bool hasMessageExtension;
16985 private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
16986 public bool HasMessageExtension {
16987 get { return hasMessageExtension; }
16988 }
16989 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
16990 get { return messageExtension_; }
16991 }
16992
16993 public const int DynamicMessageExtensionFieldNumber = 2004;
16994 private bool hasDynamicMessageExtension;
16995 private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance;
16996 public bool HasDynamicMessageExtension {
16997 get { return hasDynamicMessageExtension; }
16998 }
16999 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
17000 get { return dynamicMessageExtension_; }
17001 }
17002
17003 public const int RepeatedExtensionFieldNumber = 2005;
17004 private pbc::PopsicleList<string> repeatedExtension_ = new pbc::PopsicleList<string>();
17005 public scg::IList<string> RepeatedExtensionList {
17006 get { return pbc::Lists.AsReadOnly(repeatedExtension_); }
17007 }
17008 public int RepeatedExtensionCount {
17009 get { return repeatedExtension_.Count; }
17010 }
17011 public string GetRepeatedExtension(int index) {
17012 return repeatedExtension_[index];
17013 }
17014
17015 public const int PackedExtensionFieldNumber = 2006;
17016 private int packedExtensionMemoizedSerializedSize;
17017 private pbc::PopsicleList<int> packedExtension_ = new pbc::PopsicleList<int>();
17018 public scg::IList<int> PackedExtensionList {
17019 get { return pbc::Lists.AsReadOnly(packedExtension_); }
17020 }
17021 public int PackedExtensionCount {
17022 get { return packedExtension_.Count; }
17023 }
17024 public int GetPackedExtension(int index) {
17025 return packedExtension_[index];
17026 }
17027
17028 public override bool IsInitialized {
17029 get {
17030 return true;
17031 }
17032 }
17033
17034 public override void WriteTo(pb::CodedOutputStream output) {
17035 int size = SerializedSize;
17036 if (HasScalarExtension) {
17037 output.WriteFixed32(2000, ScalarExtension);
17038 }
17039 if (HasEnumExtension) {
17040 output.WriteEnum(2001, (int) EnumExtension);
17041 }
17042 if (HasDynamicEnumExtension) {
17043 output.WriteEnum(2002, (int) DynamicEnumExtension);
17044 }
17045 if (HasMessageExtension) {
17046 output.WriteMessage(2003, MessageExtension);
17047 }
17048 if (HasDynamicMessageExtension) {
17049 output.WriteMessage(2004, DynamicMessageExtension);
17050 }
17051 if (repeatedExtension_.Count > 0) {
17052 foreach (string element in repeatedExtension_) {
17053 output.WriteString(2005, element);
17054 }
17055 }
17056 if (packedExtension_.Count > 0) {
17057 output.WriteRawVarint32(16050);
17058 output.WriteRawVarint32((uint) packedExtensionMemoizedSerializedSize);
17059 foreach (int element in packedExtension_) {
17060 output.WriteSInt32NoTag(element);
17061 }
17062 }
17063 UnknownFields.WriteTo(output);
17064 }
17065
17066 private int memoizedSerializedSize = -1;
17067 public override int SerializedSize {
17068 get {
17069 int size = memoizedSerializedSize;
17070 if (size != -1) return size;
17071
17072 size = 0;
17073 if (HasScalarExtension) {
17074 size += pb::CodedOutputStream.ComputeFixed32Size(2000, ScalarExtension);
17075 }
17076 if (HasEnumExtension) {
17077 size += pb::CodedOutputStream.ComputeEnumSize(2001, (int) EnumExtension);
17078 }
17079 if (HasDynamicEnumExtension) {
17080 size += pb::CodedOutputStream.ComputeEnumSize(2002, (int) DynamicEnumExtension);
17081 }
17082 if (HasMessageExtension) {
17083 size += pb::CodedOutputStream.ComputeMessageSize(2003, MessageExtension);
17084 }
17085 if (HasDynamicMessageExtension) {
17086 size += pb::CodedOutputStream.ComputeMessageSize(2004, DynamicMessageExtension);
17087 }
17088 {
17089 int dataSize = 0;
17090 foreach (string element in RepeatedExtensionList) {
17091 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
17092 }
17093 size += dataSize;
17094 size += 2 * repeatedExtension_.Count;
17095 }
17096 {
17097 int dataSize = 0;
17098 foreach (int element in PackedExtensionList) {
17099 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
17100 }
17101 size += dataSize;
17102 if (packedExtension_.Count != 0) {
17103 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
17104 }
17105 packedExtensionMemoizedSerializedSize = dataSize;
17106 }
17107 size += UnknownFields.SerializedSize;
17108 memoizedSerializedSize = size;
17109 return size;
17110 }
17111 }
17112
17113 public static TestDynamicExtensions ParseFrom(pb::ByteString data) {
17114 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17115 }
17116 public static TestDynamicExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
17117 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17118 }
17119 public static TestDynamicExtensions ParseFrom(byte[] data) {
17120 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17121 }
17122 public static TestDynamicExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
17123 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17124 }
17125 public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input) {
17126 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17127 }
17128 public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17129 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17130 }
17131 public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
17132 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
17133 }
17134 public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17135 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
17136 }
17137 public static TestDynamicExtensions ParseFrom(pb::CodedInputStream input) {
17138 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17139 }
17140 public static TestDynamicExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
17141 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17142 }
17143 public static Builder CreateBuilder() { return new Builder(); }
17144 public override Builder ToBuilder() { return CreateBuilder(this); }
17145 public override Builder CreateBuilderForType() { return new Builder(); }
17146 public static Builder CreateBuilder(TestDynamicExtensions prototype) {
17147 return (Builder) new Builder().MergeFrom(prototype);
17148 }
17149
csharptest445bdce2011-05-20 15:50:54 -050017150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17151 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17152 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017153 public sealed partial class Builder : pb::GeneratedBuilder<TestDynamicExtensions, Builder> {
17154 protected override Builder ThisBuilder {
17155 get { return this; }
17156 }
17157 public Builder() {}
17158
17159 TestDynamicExtensions result = new TestDynamicExtensions();
17160
17161 protected override TestDynamicExtensions MessageBeingBuilt {
17162 get { return result; }
17163 }
17164
17165 public override Builder Clear() {
17166 result = new TestDynamicExtensions();
17167 return this;
17168 }
17169
17170 public override Builder Clone() {
17171 return new Builder().MergeFrom(result);
17172 }
17173
17174 public override pbd::MessageDescriptor DescriptorForType {
17175 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Descriptor; }
17176 }
17177
17178 public override TestDynamicExtensions DefaultInstanceForType {
17179 get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance; }
17180 }
17181
17182 public override TestDynamicExtensions BuildPartial() {
17183 if (result == null) {
17184 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
17185 }
17186 result.repeatedExtension_.MakeReadOnly();
17187 result.packedExtension_.MakeReadOnly();
17188 TestDynamicExtensions returnMe = result;
17189 result = null;
17190 return returnMe;
17191 }
17192
17193 public override Builder MergeFrom(pb::IMessage other) {
17194 if (other is TestDynamicExtensions) {
17195 return MergeFrom((TestDynamicExtensions) other);
17196 } else {
17197 base.MergeFrom(other);
17198 return this;
17199 }
17200 }
17201
17202 public override Builder MergeFrom(TestDynamicExtensions other) {
17203 if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance) return this;
17204 if (other.HasScalarExtension) {
17205 ScalarExtension = other.ScalarExtension;
17206 }
17207 if (other.HasEnumExtension) {
17208 EnumExtension = other.EnumExtension;
17209 }
17210 if (other.HasDynamicEnumExtension) {
17211 DynamicEnumExtension = other.DynamicEnumExtension;
17212 }
17213 if (other.HasMessageExtension) {
17214 MergeMessageExtension(other.MessageExtension);
17215 }
17216 if (other.HasDynamicMessageExtension) {
17217 MergeDynamicMessageExtension(other.DynamicMessageExtension);
17218 }
17219 if (other.repeatedExtension_.Count != 0) {
17220 base.AddRange(other.repeatedExtension_, result.repeatedExtension_);
17221 }
17222 if (other.packedExtension_.Count != 0) {
17223 base.AddRange(other.packedExtension_, result.packedExtension_);
17224 }
17225 this.MergeUnknownFields(other.UnknownFields);
17226 return this;
17227 }
17228
17229 public override Builder MergeFrom(pb::CodedInputStream input) {
17230 return MergeFrom(input, pb::ExtensionRegistry.Empty);
17231 }
17232
17233 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
17234 pb::UnknownFieldSet.Builder unknownFields = null;
17235 while (true) {
17236 uint tag = input.ReadTag();
17237 switch (tag) {
17238 case 0: {
17239 if (unknownFields != null) {
17240 this.UnknownFields = unknownFields.Build();
17241 }
17242 return this;
17243 }
17244 default: {
17245 if (pb::WireFormat.IsEndGroupTag(tag)) {
17246 if (unknownFields != null) {
17247 this.UnknownFields = unknownFields.Build();
17248 }
17249 return this;
17250 }
17251 if (unknownFields == null) {
17252 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17253 }
17254 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
17255 break;
17256 }
17257 case 16005: {
17258 ScalarExtension = input.ReadFixed32();
17259 break;
17260 }
17261 case 16008: {
17262 int rawValue = input.ReadEnum();
17263 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
17264 if (unknownFields == null) {
17265 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17266 }
17267 unknownFields.MergeVarintField(2001, (ulong) rawValue);
17268 } else {
17269 EnumExtension = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
17270 }
17271 break;
17272 }
17273 case 16016: {
17274 int rawValue = input.ReadEnum();
17275 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType), rawValue)) {
17276 if (unknownFields == null) {
17277 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17278 }
17279 unknownFields.MergeVarintField(2002, (ulong) rawValue);
17280 } else {
17281 DynamicEnumExtension = (global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType) rawValue;
17282 }
17283 break;
17284 }
17285 case 16026: {
17286 global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
17287 if (HasMessageExtension) {
17288 subBuilder.MergeFrom(MessageExtension);
17289 }
17290 input.ReadMessage(subBuilder, extensionRegistry);
17291 MessageExtension = subBuilder.BuildPartial();
17292 break;
17293 }
17294 case 16034: {
17295 global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder();
17296 if (HasDynamicMessageExtension) {
17297 subBuilder.MergeFrom(DynamicMessageExtension);
17298 }
17299 input.ReadMessage(subBuilder, extensionRegistry);
17300 DynamicMessageExtension = subBuilder.BuildPartial();
17301 break;
17302 }
17303 case 16042: {
17304 AddRepeatedExtension(input.ReadString());
17305 break;
17306 }
17307 case 16050: {
17308 int length = input.ReadInt32();
17309 int limit = input.PushLimit(length);
17310 while (!input.ReachedLimit) {
17311 AddPackedExtension(input.ReadSInt32());
17312 }
17313 input.PopLimit(limit);
17314 break;
17315 }
17316 }
17317 }
17318 }
17319
17320
17321 public bool HasScalarExtension {
17322 get { return result.HasScalarExtension; }
17323 }
17324 [global::System.CLSCompliant(false)]
17325 public uint ScalarExtension {
17326 get { return result.ScalarExtension; }
17327 set { SetScalarExtension(value); }
17328 }
17329 [global::System.CLSCompliant(false)]
17330 public Builder SetScalarExtension(uint value) {
17331 result.hasScalarExtension = true;
17332 result.scalarExtension_ = value;
17333 return this;
17334 }
17335 public Builder ClearScalarExtension() {
17336 result.hasScalarExtension = false;
17337 result.scalarExtension_ = 0;
17338 return this;
17339 }
17340
17341 public bool HasEnumExtension {
17342 get { return result.HasEnumExtension; }
17343 }
17344 public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
17345 get { return result.EnumExtension; }
17346 set { SetEnumExtension(value); }
17347 }
17348 public Builder SetEnumExtension(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
17349 result.hasEnumExtension = true;
17350 result.enumExtension_ = value;
17351 return this;
17352 }
17353 public Builder ClearEnumExtension() {
17354 result.hasEnumExtension = false;
17355 result.enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
17356 return this;
17357 }
17358
17359 public bool HasDynamicEnumExtension {
17360 get { return result.HasDynamicEnumExtension; }
17361 }
17362 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
17363 get { return result.DynamicEnumExtension; }
17364 set { SetDynamicEnumExtension(value); }
17365 }
17366 public Builder SetDynamicEnumExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType value) {
17367 result.hasDynamicEnumExtension = true;
17368 result.dynamicEnumExtension_ = value;
17369 return this;
17370 }
17371 public Builder ClearDynamicEnumExtension() {
17372 result.hasDynamicEnumExtension = false;
17373 result.dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
17374 return this;
17375 }
17376
17377 public bool HasMessageExtension {
17378 get { return result.HasMessageExtension; }
17379 }
17380 public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
17381 get { return result.MessageExtension; }
17382 set { SetMessageExtension(value); }
17383 }
17384 public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
17385 pb::ThrowHelper.ThrowIfNull(value, "value");
17386 result.hasMessageExtension = true;
17387 result.messageExtension_ = value;
17388 return this;
17389 }
17390 public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
17391 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
17392 result.hasMessageExtension = true;
17393 result.messageExtension_ = builderForValue.Build();
17394 return this;
17395 }
17396 public Builder MergeMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
17397 pb::ThrowHelper.ThrowIfNull(value, "value");
17398 if (result.HasMessageExtension &&
17399 result.messageExtension_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
17400 result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageExtension_).MergeFrom(value).BuildPartial();
17401 } else {
17402 result.messageExtension_ = value;
17403 }
17404 result.hasMessageExtension = true;
17405 return this;
17406 }
17407 public Builder ClearMessageExtension() {
17408 result.hasMessageExtension = false;
17409 result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
17410 return this;
17411 }
17412
17413 public bool HasDynamicMessageExtension {
17414 get { return result.HasDynamicMessageExtension; }
17415 }
17416 public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
17417 get { return result.DynamicMessageExtension; }
17418 set { SetDynamicMessageExtension(value); }
17419 }
17420 public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
17421 pb::ThrowHelper.ThrowIfNull(value, "value");
17422 result.hasDynamicMessageExtension = true;
17423 result.dynamicMessageExtension_ = value;
17424 return this;
17425 }
17426 public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder builderForValue) {
17427 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
17428 result.hasDynamicMessageExtension = true;
17429 result.dynamicMessageExtension_ = builderForValue.Build();
17430 return this;
17431 }
17432 public Builder MergeDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
17433 pb::ThrowHelper.ThrowIfNull(value, "value");
17434 if (result.HasDynamicMessageExtension &&
17435 result.dynamicMessageExtension_ != global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) {
17436 result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder(result.dynamicMessageExtension_).MergeFrom(value).BuildPartial();
17437 } else {
17438 result.dynamicMessageExtension_ = value;
17439 }
17440 result.hasDynamicMessageExtension = true;
17441 return this;
17442 }
17443 public Builder ClearDynamicMessageExtension() {
17444 result.hasDynamicMessageExtension = false;
17445 result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance;
17446 return this;
17447 }
17448
17449 public pbc::IPopsicleList<string> RepeatedExtensionList {
17450 get { return result.repeatedExtension_; }
17451 }
17452 public int RepeatedExtensionCount {
17453 get { return result.RepeatedExtensionCount; }
17454 }
17455 public string GetRepeatedExtension(int index) {
17456 return result.GetRepeatedExtension(index);
17457 }
17458 public Builder SetRepeatedExtension(int index, string value) {
17459 pb::ThrowHelper.ThrowIfNull(value, "value");
17460 result.repeatedExtension_[index] = value;
17461 return this;
17462 }
17463 public Builder AddRepeatedExtension(string value) {
17464 pb::ThrowHelper.ThrowIfNull(value, "value");
17465 result.repeatedExtension_.Add(value);
17466 return this;
17467 }
17468 public Builder AddRangeRepeatedExtension(scg::IEnumerable<string> values) {
17469 base.AddRange(values, result.repeatedExtension_);
17470 return this;
17471 }
17472 public Builder ClearRepeatedExtension() {
17473 result.repeatedExtension_.Clear();
17474 return this;
17475 }
17476
17477 public pbc::IPopsicleList<int> PackedExtensionList {
17478 get { return result.packedExtension_; }
17479 }
17480 public int PackedExtensionCount {
17481 get { return result.PackedExtensionCount; }
17482 }
17483 public int GetPackedExtension(int index) {
17484 return result.GetPackedExtension(index);
17485 }
17486 public Builder SetPackedExtension(int index, int value) {
17487 result.packedExtension_[index] = value;
17488 return this;
17489 }
17490 public Builder AddPackedExtension(int value) {
17491 result.packedExtension_.Add(value);
17492 return this;
17493 }
17494 public Builder AddRangePackedExtension(scg::IEnumerable<int> values) {
17495 base.AddRange(values, result.packedExtension_);
17496 return this;
17497 }
17498 public Builder ClearPackedExtension() {
17499 result.packedExtension_.Clear();
17500 return this;
17501 }
17502 }
17503 static TestDynamicExtensions() {
17504 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
17505 }
17506 }
17507
csharptest445bdce2011-05-20 15:50:54 -050017508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17509 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17510 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017511 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::GeneratedMessage<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> {
17512 private static readonly TestRepeatedScalarDifferentTagSizes defaultInstance = new Builder().BuildPartial();
17513 public static TestRepeatedScalarDifferentTagSizes DefaultInstance {
17514 get { return defaultInstance; }
17515 }
17516
17517 public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
17518 get { return defaultInstance; }
17519 }
17520
17521 protected override TestRepeatedScalarDifferentTagSizes ThisMessage {
17522 get { return this; }
17523 }
17524
17525 public static pbd::MessageDescriptor Descriptor {
17526 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor; }
17527 }
17528
17529 protected override pb::FieldAccess.FieldAccessorTable<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> InternalFieldAccessors {
17530 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
17531 }
17532
17533 public const int RepeatedFixed32FieldNumber = 12;
17534 private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
17535 [global::System.CLSCompliant(false)]
17536 public scg::IList<uint> RepeatedFixed32List {
17537 get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
17538 }
17539 public int RepeatedFixed32Count {
17540 get { return repeatedFixed32_.Count; }
17541 }
17542 [global::System.CLSCompliant(false)]
17543 public uint GetRepeatedFixed32(int index) {
17544 return repeatedFixed32_[index];
17545 }
17546
17547 public const int RepeatedInt32FieldNumber = 13;
17548 private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
17549 public scg::IList<int> RepeatedInt32List {
17550 get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
17551 }
17552 public int RepeatedInt32Count {
17553 get { return repeatedInt32_.Count; }
17554 }
17555 public int GetRepeatedInt32(int index) {
17556 return repeatedInt32_[index];
17557 }
17558
17559 public const int RepeatedFixed64FieldNumber = 2046;
17560 private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
17561 [global::System.CLSCompliant(false)]
17562 public scg::IList<ulong> RepeatedFixed64List {
17563 get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
17564 }
17565 public int RepeatedFixed64Count {
17566 get { return repeatedFixed64_.Count; }
17567 }
17568 [global::System.CLSCompliant(false)]
17569 public ulong GetRepeatedFixed64(int index) {
17570 return repeatedFixed64_[index];
17571 }
17572
17573 public const int RepeatedInt64FieldNumber = 2047;
17574 private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
17575 public scg::IList<long> RepeatedInt64List {
17576 get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
17577 }
17578 public int RepeatedInt64Count {
17579 get { return repeatedInt64_.Count; }
17580 }
17581 public long GetRepeatedInt64(int index) {
17582 return repeatedInt64_[index];
17583 }
17584
17585 public const int RepeatedFloatFieldNumber = 262142;
17586 private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
17587 public scg::IList<float> RepeatedFloatList {
17588 get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
17589 }
17590 public int RepeatedFloatCount {
17591 get { return repeatedFloat_.Count; }
17592 }
17593 public float GetRepeatedFloat(int index) {
17594 return repeatedFloat_[index];
17595 }
17596
17597 public const int RepeatedUint64FieldNumber = 262143;
17598 private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
17599 [global::System.CLSCompliant(false)]
17600 public scg::IList<ulong> RepeatedUint64List {
17601 get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
17602 }
17603 public int RepeatedUint64Count {
17604 get { return repeatedUint64_.Count; }
17605 }
17606 [global::System.CLSCompliant(false)]
17607 public ulong GetRepeatedUint64(int index) {
17608 return repeatedUint64_[index];
17609 }
17610
17611 public override bool IsInitialized {
17612 get {
17613 return true;
17614 }
17615 }
17616
17617 public override void WriteTo(pb::CodedOutputStream output) {
17618 int size = SerializedSize;
17619 if (repeatedFixed32_.Count > 0) {
17620 foreach (uint element in repeatedFixed32_) {
17621 output.WriteFixed32(12, element);
17622 }
17623 }
17624 if (repeatedInt32_.Count > 0) {
17625 foreach (int element in repeatedInt32_) {
17626 output.WriteInt32(13, element);
17627 }
17628 }
17629 if (repeatedFixed64_.Count > 0) {
17630 foreach (ulong element in repeatedFixed64_) {
17631 output.WriteFixed64(2046, element);
17632 }
17633 }
17634 if (repeatedInt64_.Count > 0) {
17635 foreach (long element in repeatedInt64_) {
17636 output.WriteInt64(2047, element);
17637 }
17638 }
17639 if (repeatedFloat_.Count > 0) {
17640 foreach (float element in repeatedFloat_) {
17641 output.WriteFloat(262142, element);
17642 }
17643 }
17644 if (repeatedUint64_.Count > 0) {
17645 foreach (ulong element in repeatedUint64_) {
17646 output.WriteUInt64(262143, element);
17647 }
17648 }
17649 UnknownFields.WriteTo(output);
17650 }
17651
17652 private int memoizedSerializedSize = -1;
17653 public override int SerializedSize {
17654 get {
17655 int size = memoizedSerializedSize;
17656 if (size != -1) return size;
17657
17658 size = 0;
17659 {
17660 int dataSize = 0;
17661 dataSize = 4 * repeatedFixed32_.Count;
17662 size += dataSize;
17663 size += 1 * repeatedFixed32_.Count;
17664 }
17665 {
17666 int dataSize = 0;
17667 foreach (int element in RepeatedInt32List) {
17668 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
17669 }
17670 size += dataSize;
17671 size += 1 * repeatedInt32_.Count;
17672 }
17673 {
17674 int dataSize = 0;
17675 dataSize = 8 * repeatedFixed64_.Count;
17676 size += dataSize;
17677 size += 2 * repeatedFixed64_.Count;
17678 }
17679 {
17680 int dataSize = 0;
17681 foreach (long element in RepeatedInt64List) {
17682 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
17683 }
17684 size += dataSize;
17685 size += 2 * repeatedInt64_.Count;
17686 }
17687 {
17688 int dataSize = 0;
17689 dataSize = 4 * repeatedFloat_.Count;
17690 size += dataSize;
17691 size += 3 * repeatedFloat_.Count;
17692 }
17693 {
17694 int dataSize = 0;
17695 foreach (ulong element in RepeatedUint64List) {
17696 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
17697 }
17698 size += dataSize;
17699 size += 3 * repeatedUint64_.Count;
17700 }
17701 size += UnknownFields.SerializedSize;
17702 memoizedSerializedSize = size;
17703 return size;
17704 }
17705 }
17706
17707 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data) {
17708 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17709 }
17710 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
17711 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17712 }
17713 public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data) {
17714 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
17715 }
17716 public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
17717 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
17718 }
17719 public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input) {
17720 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17721 }
17722 public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17723 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17724 }
17725 public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input) {
17726 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
17727 }
17728 public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
17729 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
17730 }
17731 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::CodedInputStream input) {
17732 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
17733 }
17734 public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
17735 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
17736 }
17737 public static Builder CreateBuilder() { return new Builder(); }
17738 public override Builder ToBuilder() { return CreateBuilder(this); }
17739 public override Builder CreateBuilderForType() { return new Builder(); }
17740 public static Builder CreateBuilder(TestRepeatedScalarDifferentTagSizes prototype) {
17741 return (Builder) new Builder().MergeFrom(prototype);
17742 }
17743
csharptest445bdce2011-05-20 15:50:54 -050017744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
17745 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
17746 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010017747 public sealed partial class Builder : pb::GeneratedBuilder<TestRepeatedScalarDifferentTagSizes, Builder> {
17748 protected override Builder ThisBuilder {
17749 get { return this; }
17750 }
17751 public Builder() {}
17752
17753 TestRepeatedScalarDifferentTagSizes result = new TestRepeatedScalarDifferentTagSizes();
17754
17755 protected override TestRepeatedScalarDifferentTagSizes MessageBeingBuilt {
17756 get { return result; }
17757 }
17758
17759 public override Builder Clear() {
17760 result = new TestRepeatedScalarDifferentTagSizes();
17761 return this;
17762 }
17763
17764 public override Builder Clone() {
17765 return new Builder().MergeFrom(result);
17766 }
17767
17768 public override pbd::MessageDescriptor DescriptorForType {
17769 get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Descriptor; }
17770 }
17771
17772 public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
17773 get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance; }
17774 }
17775
17776 public override TestRepeatedScalarDifferentTagSizes BuildPartial() {
17777 if (result == null) {
17778 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
17779 }
17780 result.repeatedFixed32_.MakeReadOnly();
17781 result.repeatedInt32_.MakeReadOnly();
17782 result.repeatedFixed64_.MakeReadOnly();
17783 result.repeatedInt64_.MakeReadOnly();
17784 result.repeatedFloat_.MakeReadOnly();
17785 result.repeatedUint64_.MakeReadOnly();
17786 TestRepeatedScalarDifferentTagSizes returnMe = result;
17787 result = null;
17788 return returnMe;
17789 }
17790
17791 public override Builder MergeFrom(pb::IMessage other) {
17792 if (other is TestRepeatedScalarDifferentTagSizes) {
17793 return MergeFrom((TestRepeatedScalarDifferentTagSizes) other);
17794 } else {
17795 base.MergeFrom(other);
17796 return this;
17797 }
17798 }
17799
17800 public override Builder MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
17801 if (other == global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance) return this;
17802 if (other.repeatedFixed32_.Count != 0) {
17803 base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
17804 }
17805 if (other.repeatedInt32_.Count != 0) {
17806 base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
17807 }
17808 if (other.repeatedFixed64_.Count != 0) {
17809 base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
17810 }
17811 if (other.repeatedInt64_.Count != 0) {
17812 base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
17813 }
17814 if (other.repeatedFloat_.Count != 0) {
17815 base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
17816 }
17817 if (other.repeatedUint64_.Count != 0) {
17818 base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
17819 }
17820 this.MergeUnknownFields(other.UnknownFields);
17821 return this;
17822 }
17823
17824 public override Builder MergeFrom(pb::CodedInputStream input) {
17825 return MergeFrom(input, pb::ExtensionRegistry.Empty);
17826 }
17827
17828 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
17829 pb::UnknownFieldSet.Builder unknownFields = null;
17830 while (true) {
17831 uint tag = input.ReadTag();
17832 switch (tag) {
17833 case 0: {
17834 if (unknownFields != null) {
17835 this.UnknownFields = unknownFields.Build();
17836 }
17837 return this;
17838 }
17839 default: {
17840 if (pb::WireFormat.IsEndGroupTag(tag)) {
17841 if (unknownFields != null) {
17842 this.UnknownFields = unknownFields.Build();
17843 }
17844 return this;
17845 }
17846 if (unknownFields == null) {
17847 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
17848 }
17849 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
17850 break;
17851 }
17852 case 101: {
17853 AddRepeatedFixed32(input.ReadFixed32());
17854 break;
17855 }
17856 case 104: {
17857 AddRepeatedInt32(input.ReadInt32());
17858 break;
17859 }
17860 case 16369: {
17861 AddRepeatedFixed64(input.ReadFixed64());
17862 break;
17863 }
17864 case 16376: {
17865 AddRepeatedInt64(input.ReadInt64());
17866 break;
17867 }
17868 case 2097141: {
17869 AddRepeatedFloat(input.ReadFloat());
17870 break;
17871 }
17872 case 2097144: {
17873 AddRepeatedUint64(input.ReadUInt64());
17874 break;
17875 }
17876 }
17877 }
17878 }
17879
17880
17881 [global::System.CLSCompliant(false)]
17882 public pbc::IPopsicleList<uint> RepeatedFixed32List {
17883 get { return result.repeatedFixed32_; }
17884 }
17885 public int RepeatedFixed32Count {
17886 get { return result.RepeatedFixed32Count; }
17887 }
17888 [global::System.CLSCompliant(false)]
17889 public uint GetRepeatedFixed32(int index) {
17890 return result.GetRepeatedFixed32(index);
17891 }
17892 [global::System.CLSCompliant(false)]
17893 public Builder SetRepeatedFixed32(int index, uint value) {
17894 result.repeatedFixed32_[index] = value;
17895 return this;
17896 }
17897 [global::System.CLSCompliant(false)]
17898 public Builder AddRepeatedFixed32(uint value) {
17899 result.repeatedFixed32_.Add(value);
17900 return this;
17901 }
17902 [global::System.CLSCompliant(false)]
17903 public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
17904 base.AddRange(values, result.repeatedFixed32_);
17905 return this;
17906 }
17907 public Builder ClearRepeatedFixed32() {
17908 result.repeatedFixed32_.Clear();
17909 return this;
17910 }
17911
17912 public pbc::IPopsicleList<int> RepeatedInt32List {
17913 get { return result.repeatedInt32_; }
17914 }
17915 public int RepeatedInt32Count {
17916 get { return result.RepeatedInt32Count; }
17917 }
17918 public int GetRepeatedInt32(int index) {
17919 return result.GetRepeatedInt32(index);
17920 }
17921 public Builder SetRepeatedInt32(int index, int value) {
17922 result.repeatedInt32_[index] = value;
17923 return this;
17924 }
17925 public Builder AddRepeatedInt32(int value) {
17926 result.repeatedInt32_.Add(value);
17927 return this;
17928 }
17929 public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
17930 base.AddRange(values, result.repeatedInt32_);
17931 return this;
17932 }
17933 public Builder ClearRepeatedInt32() {
17934 result.repeatedInt32_.Clear();
17935 return this;
17936 }
17937
17938 [global::System.CLSCompliant(false)]
17939 public pbc::IPopsicleList<ulong> RepeatedFixed64List {
17940 get { return result.repeatedFixed64_; }
17941 }
17942 public int RepeatedFixed64Count {
17943 get { return result.RepeatedFixed64Count; }
17944 }
17945 [global::System.CLSCompliant(false)]
17946 public ulong GetRepeatedFixed64(int index) {
17947 return result.GetRepeatedFixed64(index);
17948 }
17949 [global::System.CLSCompliant(false)]
17950 public Builder SetRepeatedFixed64(int index, ulong value) {
17951 result.repeatedFixed64_[index] = value;
17952 return this;
17953 }
17954 [global::System.CLSCompliant(false)]
17955 public Builder AddRepeatedFixed64(ulong value) {
17956 result.repeatedFixed64_.Add(value);
17957 return this;
17958 }
17959 [global::System.CLSCompliant(false)]
17960 public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
17961 base.AddRange(values, result.repeatedFixed64_);
17962 return this;
17963 }
17964 public Builder ClearRepeatedFixed64() {
17965 result.repeatedFixed64_.Clear();
17966 return this;
17967 }
17968
17969 public pbc::IPopsicleList<long> RepeatedInt64List {
17970 get { return result.repeatedInt64_; }
17971 }
17972 public int RepeatedInt64Count {
17973 get { return result.RepeatedInt64Count; }
17974 }
17975 public long GetRepeatedInt64(int index) {
17976 return result.GetRepeatedInt64(index);
17977 }
17978 public Builder SetRepeatedInt64(int index, long value) {
17979 result.repeatedInt64_[index] = value;
17980 return this;
17981 }
17982 public Builder AddRepeatedInt64(long value) {
17983 result.repeatedInt64_.Add(value);
17984 return this;
17985 }
17986 public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
17987 base.AddRange(values, result.repeatedInt64_);
17988 return this;
17989 }
17990 public Builder ClearRepeatedInt64() {
17991 result.repeatedInt64_.Clear();
17992 return this;
17993 }
17994
17995 public pbc::IPopsicleList<float> RepeatedFloatList {
17996 get { return result.repeatedFloat_; }
17997 }
17998 public int RepeatedFloatCount {
17999 get { return result.RepeatedFloatCount; }
18000 }
18001 public float GetRepeatedFloat(int index) {
18002 return result.GetRepeatedFloat(index);
18003 }
18004 public Builder SetRepeatedFloat(int index, float value) {
18005 result.repeatedFloat_[index] = value;
18006 return this;
18007 }
18008 public Builder AddRepeatedFloat(float value) {
18009 result.repeatedFloat_.Add(value);
18010 return this;
18011 }
18012 public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
18013 base.AddRange(values, result.repeatedFloat_);
18014 return this;
18015 }
18016 public Builder ClearRepeatedFloat() {
18017 result.repeatedFloat_.Clear();
18018 return this;
18019 }
18020
18021 [global::System.CLSCompliant(false)]
18022 public pbc::IPopsicleList<ulong> RepeatedUint64List {
18023 get { return result.repeatedUint64_; }
18024 }
18025 public int RepeatedUint64Count {
18026 get { return result.RepeatedUint64Count; }
18027 }
18028 [global::System.CLSCompliant(false)]
18029 public ulong GetRepeatedUint64(int index) {
18030 return result.GetRepeatedUint64(index);
18031 }
18032 [global::System.CLSCompliant(false)]
18033 public Builder SetRepeatedUint64(int index, ulong value) {
18034 result.repeatedUint64_[index] = value;
18035 return this;
18036 }
18037 [global::System.CLSCompliant(false)]
18038 public Builder AddRepeatedUint64(ulong value) {
18039 result.repeatedUint64_.Add(value);
18040 return this;
18041 }
18042 [global::System.CLSCompliant(false)]
18043 public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
18044 base.AddRange(values, result.repeatedUint64_);
18045 return this;
18046 }
18047 public Builder ClearRepeatedUint64() {
18048 result.repeatedUint64_.Clear();
18049 return this;
18050 }
18051 }
18052 static TestRepeatedScalarDifferentTagSizes() {
18053 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18054 }
18055 }
18056
csharptest445bdce2011-05-20 15:50:54 -050018057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18058 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18059 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018060 public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
18061 private static readonly FooRequest defaultInstance = new Builder().BuildPartial();
18062 public static FooRequest DefaultInstance {
18063 get { return defaultInstance; }
18064 }
18065
18066 public override FooRequest DefaultInstanceForType {
18067 get { return defaultInstance; }
18068 }
18069
18070 protected override FooRequest ThisMessage {
18071 get { return this; }
18072 }
18073
18074 public static pbd::MessageDescriptor Descriptor {
18075 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
18076 }
18077
18078 protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
18079 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
18080 }
18081
18082 public override bool IsInitialized {
18083 get {
18084 return true;
18085 }
18086 }
18087
18088 public override void WriteTo(pb::CodedOutputStream output) {
18089 int size = SerializedSize;
18090 UnknownFields.WriteTo(output);
18091 }
18092
18093 private int memoizedSerializedSize = -1;
18094 public override int SerializedSize {
18095 get {
18096 int size = memoizedSerializedSize;
18097 if (size != -1) return size;
18098
18099 size = 0;
18100 size += UnknownFields.SerializedSize;
18101 memoizedSerializedSize = size;
18102 return size;
18103 }
18104 }
18105
18106 public static FooRequest ParseFrom(pb::ByteString data) {
18107 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18108 }
18109 public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18110 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18111 }
18112 public static FooRequest ParseFrom(byte[] data) {
18113 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18114 }
18115 public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18116 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18117 }
18118 public static FooRequest ParseFrom(global::System.IO.Stream input) {
18119 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18120 }
18121 public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18122 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18123 }
18124 public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input) {
18125 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18126 }
18127 public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18128 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18129 }
18130 public static FooRequest ParseFrom(pb::CodedInputStream input) {
18131 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18132 }
18133 public static FooRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18134 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18135 }
18136 public static Builder CreateBuilder() { return new Builder(); }
18137 public override Builder ToBuilder() { return CreateBuilder(this); }
18138 public override Builder CreateBuilderForType() { return new Builder(); }
18139 public static Builder CreateBuilder(FooRequest prototype) {
18140 return (Builder) new Builder().MergeFrom(prototype);
18141 }
18142
csharptest445bdce2011-05-20 15:50:54 -050018143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18144 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18145 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018146 public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> {
18147 protected override Builder ThisBuilder {
18148 get { return this; }
18149 }
18150 public Builder() {}
18151
18152 FooRequest result = new FooRequest();
18153
18154 protected override FooRequest MessageBeingBuilt {
18155 get { return result; }
18156 }
18157
18158 public override Builder Clear() {
18159 result = new FooRequest();
18160 return this;
18161 }
18162
18163 public override Builder Clone() {
18164 return new Builder().MergeFrom(result);
18165 }
18166
18167 public override pbd::MessageDescriptor DescriptorForType {
18168 get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
18169 }
18170
18171 public override FooRequest DefaultInstanceForType {
18172 get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
18173 }
18174
18175 public override FooRequest BuildPartial() {
18176 if (result == null) {
18177 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18178 }
18179 FooRequest returnMe = result;
18180 result = null;
18181 return returnMe;
18182 }
18183
18184 public override Builder MergeFrom(pb::IMessage other) {
18185 if (other is FooRequest) {
18186 return MergeFrom((FooRequest) other);
18187 } else {
18188 base.MergeFrom(other);
18189 return this;
18190 }
18191 }
18192
18193 public override Builder MergeFrom(FooRequest other) {
18194 if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
18195 this.MergeUnknownFields(other.UnknownFields);
18196 return this;
18197 }
18198
18199 public override Builder MergeFrom(pb::CodedInputStream input) {
18200 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18201 }
18202
18203 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18204 pb::UnknownFieldSet.Builder unknownFields = null;
18205 while (true) {
18206 uint tag = input.ReadTag();
18207 switch (tag) {
18208 case 0: {
18209 if (unknownFields != null) {
18210 this.UnknownFields = unknownFields.Build();
18211 }
18212 return this;
18213 }
18214 default: {
18215 if (pb::WireFormat.IsEndGroupTag(tag)) {
18216 if (unknownFields != null) {
18217 this.UnknownFields = unknownFields.Build();
18218 }
18219 return this;
18220 }
18221 if (unknownFields == null) {
18222 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18223 }
18224 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
18225 break;
18226 }
18227 }
18228 }
18229 }
18230
18231 }
18232 static FooRequest() {
18233 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18234 }
18235 }
18236
csharptest445bdce2011-05-20 15:50:54 -050018237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18238 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18239 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018240 public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
18241 private static readonly FooResponse defaultInstance = new Builder().BuildPartial();
18242 public static FooResponse DefaultInstance {
18243 get { return defaultInstance; }
18244 }
18245
18246 public override FooResponse DefaultInstanceForType {
18247 get { return defaultInstance; }
18248 }
18249
18250 protected override FooResponse ThisMessage {
18251 get { return this; }
18252 }
18253
18254 public static pbd::MessageDescriptor Descriptor {
18255 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
18256 }
18257
18258 protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
18259 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
18260 }
18261
18262 public override bool IsInitialized {
18263 get {
18264 return true;
18265 }
18266 }
18267
18268 public override void WriteTo(pb::CodedOutputStream output) {
18269 int size = SerializedSize;
18270 UnknownFields.WriteTo(output);
18271 }
18272
18273 private int memoizedSerializedSize = -1;
18274 public override int SerializedSize {
18275 get {
18276 int size = memoizedSerializedSize;
18277 if (size != -1) return size;
18278
18279 size = 0;
18280 size += UnknownFields.SerializedSize;
18281 memoizedSerializedSize = size;
18282 return size;
18283 }
18284 }
18285
18286 public static FooResponse ParseFrom(pb::ByteString data) {
18287 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18288 }
18289 public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18290 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18291 }
18292 public static FooResponse ParseFrom(byte[] data) {
18293 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18294 }
18295 public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18296 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18297 }
18298 public static FooResponse ParseFrom(global::System.IO.Stream input) {
18299 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18300 }
18301 public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18302 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18303 }
18304 public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input) {
18305 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18306 }
18307 public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18308 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18309 }
18310 public static FooResponse ParseFrom(pb::CodedInputStream input) {
18311 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18312 }
18313 public static FooResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18314 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18315 }
18316 public static Builder CreateBuilder() { return new Builder(); }
18317 public override Builder ToBuilder() { return CreateBuilder(this); }
18318 public override Builder CreateBuilderForType() { return new Builder(); }
18319 public static Builder CreateBuilder(FooResponse prototype) {
18320 return (Builder) new Builder().MergeFrom(prototype);
18321 }
18322
csharptest445bdce2011-05-20 15:50:54 -050018323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18324 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18325 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018326 public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> {
18327 protected override Builder ThisBuilder {
18328 get { return this; }
18329 }
18330 public Builder() {}
18331
18332 FooResponse result = new FooResponse();
18333
18334 protected override FooResponse MessageBeingBuilt {
18335 get { return result; }
18336 }
18337
18338 public override Builder Clear() {
18339 result = new FooResponse();
18340 return this;
18341 }
18342
18343 public override Builder Clone() {
18344 return new Builder().MergeFrom(result);
18345 }
18346
18347 public override pbd::MessageDescriptor DescriptorForType {
18348 get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
18349 }
18350
18351 public override FooResponse DefaultInstanceForType {
18352 get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
18353 }
18354
18355 public override FooResponse BuildPartial() {
18356 if (result == null) {
18357 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18358 }
18359 FooResponse returnMe = result;
18360 result = null;
18361 return returnMe;
18362 }
18363
18364 public override Builder MergeFrom(pb::IMessage other) {
18365 if (other is FooResponse) {
18366 return MergeFrom((FooResponse) other);
18367 } else {
18368 base.MergeFrom(other);
18369 return this;
18370 }
18371 }
18372
18373 public override Builder MergeFrom(FooResponse other) {
18374 if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
18375 this.MergeUnknownFields(other.UnknownFields);
18376 return this;
18377 }
18378
18379 public override Builder MergeFrom(pb::CodedInputStream input) {
18380 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18381 }
18382
18383 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18384 pb::UnknownFieldSet.Builder unknownFields = null;
18385 while (true) {
18386 uint tag = input.ReadTag();
18387 switch (tag) {
18388 case 0: {
18389 if (unknownFields != null) {
18390 this.UnknownFields = unknownFields.Build();
18391 }
18392 return this;
18393 }
18394 default: {
18395 if (pb::WireFormat.IsEndGroupTag(tag)) {
18396 if (unknownFields != null) {
18397 this.UnknownFields = unknownFields.Build();
18398 }
18399 return this;
18400 }
18401 if (unknownFields == null) {
18402 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18403 }
18404 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
18405 break;
18406 }
18407 }
18408 }
18409 }
18410
18411 }
18412 static FooResponse() {
18413 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18414 }
18415 }
18416
csharptest445bdce2011-05-20 15:50:54 -050018417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18418 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18419 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018420 public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
18421 private static readonly BarRequest defaultInstance = new Builder().BuildPartial();
18422 public static BarRequest DefaultInstance {
18423 get { return defaultInstance; }
18424 }
18425
18426 public override BarRequest DefaultInstanceForType {
18427 get { return defaultInstance; }
18428 }
18429
18430 protected override BarRequest ThisMessage {
18431 get { return this; }
18432 }
18433
18434 public static pbd::MessageDescriptor Descriptor {
18435 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
18436 }
18437
18438 protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
18439 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
18440 }
18441
18442 public override bool IsInitialized {
18443 get {
18444 return true;
18445 }
18446 }
18447
18448 public override void WriteTo(pb::CodedOutputStream output) {
18449 int size = SerializedSize;
18450 UnknownFields.WriteTo(output);
18451 }
18452
18453 private int memoizedSerializedSize = -1;
18454 public override int SerializedSize {
18455 get {
18456 int size = memoizedSerializedSize;
18457 if (size != -1) return size;
18458
18459 size = 0;
18460 size += UnknownFields.SerializedSize;
18461 memoizedSerializedSize = size;
18462 return size;
18463 }
18464 }
18465
18466 public static BarRequest ParseFrom(pb::ByteString data) {
18467 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18468 }
18469 public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18470 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18471 }
18472 public static BarRequest ParseFrom(byte[] data) {
18473 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18474 }
18475 public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18476 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18477 }
18478 public static BarRequest ParseFrom(global::System.IO.Stream input) {
18479 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18480 }
18481 public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18482 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18483 }
18484 public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input) {
18485 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18486 }
18487 public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18488 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18489 }
18490 public static BarRequest ParseFrom(pb::CodedInputStream input) {
18491 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18492 }
18493 public static BarRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18494 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18495 }
18496 public static Builder CreateBuilder() { return new Builder(); }
18497 public override Builder ToBuilder() { return CreateBuilder(this); }
18498 public override Builder CreateBuilderForType() { return new Builder(); }
18499 public static Builder CreateBuilder(BarRequest prototype) {
18500 return (Builder) new Builder().MergeFrom(prototype);
18501 }
18502
csharptest445bdce2011-05-20 15:50:54 -050018503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18504 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18505 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018506 public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> {
18507 protected override Builder ThisBuilder {
18508 get { return this; }
18509 }
18510 public Builder() {}
18511
18512 BarRequest result = new BarRequest();
18513
18514 protected override BarRequest MessageBeingBuilt {
18515 get { return result; }
18516 }
18517
18518 public override Builder Clear() {
18519 result = new BarRequest();
18520 return this;
18521 }
18522
18523 public override Builder Clone() {
18524 return new Builder().MergeFrom(result);
18525 }
18526
18527 public override pbd::MessageDescriptor DescriptorForType {
18528 get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
18529 }
18530
18531 public override BarRequest DefaultInstanceForType {
18532 get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
18533 }
18534
18535 public override BarRequest BuildPartial() {
18536 if (result == null) {
18537 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18538 }
18539 BarRequest returnMe = result;
18540 result = null;
18541 return returnMe;
18542 }
18543
18544 public override Builder MergeFrom(pb::IMessage other) {
18545 if (other is BarRequest) {
18546 return MergeFrom((BarRequest) other);
18547 } else {
18548 base.MergeFrom(other);
18549 return this;
18550 }
18551 }
18552
18553 public override Builder MergeFrom(BarRequest other) {
18554 if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
18555 this.MergeUnknownFields(other.UnknownFields);
18556 return this;
18557 }
18558
18559 public override Builder MergeFrom(pb::CodedInputStream input) {
18560 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18561 }
18562
18563 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18564 pb::UnknownFieldSet.Builder unknownFields = null;
18565 while (true) {
18566 uint tag = input.ReadTag();
18567 switch (tag) {
18568 case 0: {
18569 if (unknownFields != null) {
18570 this.UnknownFields = unknownFields.Build();
18571 }
18572 return this;
18573 }
18574 default: {
18575 if (pb::WireFormat.IsEndGroupTag(tag)) {
18576 if (unknownFields != null) {
18577 this.UnknownFields = unknownFields.Build();
18578 }
18579 return this;
18580 }
18581 if (unknownFields == null) {
18582 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18583 }
18584 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
18585 break;
18586 }
18587 }
18588 }
18589 }
18590
18591 }
18592 static BarRequest() {
18593 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18594 }
18595 }
18596
csharptest445bdce2011-05-20 15:50:54 -050018597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18598 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18599 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018600 public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
18601 private static readonly BarResponse defaultInstance = new Builder().BuildPartial();
18602 public static BarResponse DefaultInstance {
18603 get { return defaultInstance; }
18604 }
18605
18606 public override BarResponse DefaultInstanceForType {
18607 get { return defaultInstance; }
18608 }
18609
18610 protected override BarResponse ThisMessage {
18611 get { return this; }
18612 }
18613
18614 public static pbd::MessageDescriptor Descriptor {
18615 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
18616 }
18617
18618 protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
18619 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
18620 }
18621
18622 public override bool IsInitialized {
18623 get {
18624 return true;
18625 }
18626 }
18627
18628 public override void WriteTo(pb::CodedOutputStream output) {
18629 int size = SerializedSize;
18630 UnknownFields.WriteTo(output);
18631 }
18632
18633 private int memoizedSerializedSize = -1;
18634 public override int SerializedSize {
18635 get {
18636 int size = memoizedSerializedSize;
18637 if (size != -1) return size;
18638
18639 size = 0;
18640 size += UnknownFields.SerializedSize;
18641 memoizedSerializedSize = size;
18642 return size;
18643 }
18644 }
18645
18646 public static BarResponse ParseFrom(pb::ByteString data) {
18647 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18648 }
18649 public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
18650 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18651 }
18652 public static BarResponse ParseFrom(byte[] data) {
18653 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
18654 }
18655 public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
18656 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
18657 }
18658 public static BarResponse ParseFrom(global::System.IO.Stream input) {
18659 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18660 }
18661 public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18662 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18663 }
18664 public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input) {
18665 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
18666 }
18667 public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
18668 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
18669 }
18670 public static BarResponse ParseFrom(pb::CodedInputStream input) {
18671 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
18672 }
18673 public static BarResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18674 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
18675 }
18676 public static Builder CreateBuilder() { return new Builder(); }
18677 public override Builder ToBuilder() { return CreateBuilder(this); }
18678 public override Builder CreateBuilderForType() { return new Builder(); }
18679 public static Builder CreateBuilder(BarResponse prototype) {
18680 return (Builder) new Builder().MergeFrom(prototype);
18681 }
18682
csharptest445bdce2011-05-20 15:50:54 -050018683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
18684 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
18685 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010018686 public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> {
18687 protected override Builder ThisBuilder {
18688 get { return this; }
18689 }
18690 public Builder() {}
18691
18692 BarResponse result = new BarResponse();
18693
18694 protected override BarResponse MessageBeingBuilt {
18695 get { return result; }
18696 }
18697
18698 public override Builder Clear() {
18699 result = new BarResponse();
18700 return this;
18701 }
18702
18703 public override Builder Clone() {
18704 return new Builder().MergeFrom(result);
18705 }
18706
18707 public override pbd::MessageDescriptor DescriptorForType {
18708 get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
18709 }
18710
18711 public override BarResponse DefaultInstanceForType {
18712 get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
18713 }
18714
18715 public override BarResponse BuildPartial() {
18716 if (result == null) {
18717 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
18718 }
18719 BarResponse returnMe = result;
18720 result = null;
18721 return returnMe;
18722 }
18723
18724 public override Builder MergeFrom(pb::IMessage other) {
18725 if (other is BarResponse) {
18726 return MergeFrom((BarResponse) other);
18727 } else {
18728 base.MergeFrom(other);
18729 return this;
18730 }
18731 }
18732
18733 public override Builder MergeFrom(BarResponse other) {
18734 if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
18735 this.MergeUnknownFields(other.UnknownFields);
18736 return this;
18737 }
18738
18739 public override Builder MergeFrom(pb::CodedInputStream input) {
18740 return MergeFrom(input, pb::ExtensionRegistry.Empty);
18741 }
18742
18743 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
18744 pb::UnknownFieldSet.Builder unknownFields = null;
18745 while (true) {
18746 uint tag = input.ReadTag();
18747 switch (tag) {
18748 case 0: {
18749 if (unknownFields != null) {
18750 this.UnknownFields = unknownFields.Build();
18751 }
18752 return this;
18753 }
18754 default: {
18755 if (pb::WireFormat.IsEndGroupTag(tag)) {
18756 if (unknownFields != null) {
18757 this.UnknownFields = unknownFields.Build();
18758 }
18759 return this;
18760 }
18761 if (unknownFields == null) {
18762 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
18763 }
18764 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
18765 break;
18766 }
18767 }
18768 }
18769 }
18770
18771 }
18772 static BarResponse() {
18773 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor, null);
18774 }
18775 }
18776
18777 #endregion
18778
18779 #region Services
csharptestf1816be2011-05-19 12:01:16 -050018780 /*
18781 * Service generation is now disabled by default, use the following option to enable:
18782 * option (google.protobuf.csharp_file_options).service_generator_type = GENERIC;
18783 */
Jon Skeet82bb0f12011-04-03 20:17:12 +010018784 #endregion
18785
18786}