blob: 3135a4ba700b4e20432990da992035a7058b8516 [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!
csharptest4a594ca2011-09-09 15:53:10 -05002#pragma warning disable 1591, 0612
csharptest2d887332011-08-12 20:13:44 -05003#region Designer generated code
Jon Skeet82bb0f12011-04-03 20:17:12 +01004
5using pb = global::Google.ProtocolBuffers;
6using pbc = global::Google.ProtocolBuffers.Collections;
7using pbd = global::Google.ProtocolBuffers.Descriptors;
8using scg = global::System.Collections.Generic;
9namespace Google.ProtocolBuffers.TestProtos {
10
csharptest445bdce2011-05-20 15:50:54 -050011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +010014 public static partial class UnitTestLiteProtoFile {
15
16 #region Extension registration
17 public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
18 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite);
19 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite);
20 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite);
21 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite);
22 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite);
23 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite);
24 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite);
25 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite);
26 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite);
27 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite);
28 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite);
29 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite);
30 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite);
31 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite);
32 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite);
33 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite);
34 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite);
35 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite);
36 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite);
37 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite);
38 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite);
39 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite);
40 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite);
41 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite);
42 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite);
43 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite);
44 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite);
45 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite);
46 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite);
47 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite);
48 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite);
49 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite);
50 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite);
51 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite);
52 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite);
53 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite);
54 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite);
55 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite);
56 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite);
57 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite);
58 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite);
59 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite);
60 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite);
61 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite);
62 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite);
63 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite);
64 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite);
65 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite);
66 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite);
67 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite);
68 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite);
69 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite);
70 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite);
71 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite);
72 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite);
73 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite);
74 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite);
75 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite);
76 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite);
77 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite);
78 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite);
79 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite);
80 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite);
81 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite);
82 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite);
83 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite);
84 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite);
85 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite);
86 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite);
87 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite);
88 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite);
89 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite);
90 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite);
91 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite);
92 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite);
93 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite);
94 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite);
95 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite);
96 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite);
97 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite);
98 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite);
99 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite);
csharptestc2a1f9b2011-06-06 11:40:01 -0500100 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite);
101 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite);
102 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite);
103 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite);
104 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite);
105 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite);
106 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite);
107 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite);
108 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite);
109 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite);
110 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite);
111 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite);
112 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite);
113 registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite);
Jon Skeet82bb0f12011-04-03 20:17:12 +0100114 registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
115 }
116 #endregion
117 #region Extensions
118 public const int OptionalInt32ExtensionLiteFieldNumber = 1;
119 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
120 public const int OptionalInt64ExtensionLiteFieldNumber = 2;
121 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
122 public const int OptionalUint32ExtensionLiteFieldNumber = 3;
123 [global::System.CLSCompliant(false)]
124 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
125 public const int OptionalUint64ExtensionLiteFieldNumber = 4;
126 [global::System.CLSCompliant(false)]
127 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
128 public const int OptionalSint32ExtensionLiteFieldNumber = 5;
129 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
130 public const int OptionalSint64ExtensionLiteFieldNumber = 6;
131 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
132 public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
133 [global::System.CLSCompliant(false)]
134 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
135 public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
136 [global::System.CLSCompliant(false)]
137 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
138 public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
139 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
140 public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
141 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
142 public const int OptionalFloatExtensionLiteFieldNumber = 11;
143 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
144 public const int OptionalDoubleExtensionLiteFieldNumber = 12;
145 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
146 public const int OptionalBoolExtensionLiteFieldNumber = 13;
147 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
148 public const int OptionalStringExtensionLiteFieldNumber = 14;
149 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
150 public const int OptionalBytesExtensionLiteFieldNumber = 15;
151 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
152 public const int OptionalGroupExtensionLiteFieldNumber = 16;
153 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
154 public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
155 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
156 public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
157 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
158 public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
159 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
160 public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
161 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
162 public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
163 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
164 public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
165 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
166 public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
167 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
168 public const int OptionalCordExtensionLiteFieldNumber = 25;
169 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
170 public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
171 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
172 public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
173 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
174 public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
175 [global::System.CLSCompliant(false)]
176 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
177 public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
178 [global::System.CLSCompliant(false)]
179 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
180 public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
181 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
182 public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
183 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
184 public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
185 [global::System.CLSCompliant(false)]
186 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
187 public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
188 [global::System.CLSCompliant(false)]
189 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
190 public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
191 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
192 public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
193 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
194 public const int RepeatedFloatExtensionLiteFieldNumber = 41;
195 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
196 public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
197 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
198 public const int RepeatedBoolExtensionLiteFieldNumber = 43;
199 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
200 public const int RepeatedStringExtensionLiteFieldNumber = 44;
201 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
202 public const int RepeatedBytesExtensionLiteFieldNumber = 45;
203 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
204 public const int RepeatedGroupExtensionLiteFieldNumber = 46;
205 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
206 public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
207 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
208 public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
209 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
210 public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
211 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
212 public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
213 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
214 public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
215 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
216 public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
217 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
218 public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
219 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
220 public const int RepeatedCordExtensionLiteFieldNumber = 55;
221 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
222 public const int DefaultInt32ExtensionLiteFieldNumber = 61;
223 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
224 public const int DefaultInt64ExtensionLiteFieldNumber = 62;
225 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
226 public const int DefaultUint32ExtensionLiteFieldNumber = 63;
227 [global::System.CLSCompliant(false)]
228 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
229 public const int DefaultUint64ExtensionLiteFieldNumber = 64;
230 [global::System.CLSCompliant(false)]
231 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
232 public const int DefaultSint32ExtensionLiteFieldNumber = 65;
233 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
234 public const int DefaultSint64ExtensionLiteFieldNumber = 66;
235 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
236 public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
237 [global::System.CLSCompliant(false)]
238 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
239 public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
240 [global::System.CLSCompliant(false)]
241 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
242 public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
243 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
244 public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
245 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
246 public const int DefaultFloatExtensionLiteFieldNumber = 71;
247 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
248 public const int DefaultDoubleExtensionLiteFieldNumber = 72;
249 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
250 public const int DefaultBoolExtensionLiteFieldNumber = 73;
251 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
252 public const int DefaultStringExtensionLiteFieldNumber = 74;
253 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
254 public const int DefaultBytesExtensionLiteFieldNumber = 75;
255 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
256 public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
257 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
258 public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
259 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
260 public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
261 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
262 public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
263 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
264 public const int DefaultCordExtensionLiteFieldNumber = 85;
265 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
266 public const int PackedInt32ExtensionLiteFieldNumber = 90;
267 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
268 public const int PackedInt64ExtensionLiteFieldNumber = 91;
269 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
270 public const int PackedUint32ExtensionLiteFieldNumber = 92;
271 [global::System.CLSCompliant(false)]
272 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
273 public const int PackedUint64ExtensionLiteFieldNumber = 93;
274 [global::System.CLSCompliant(false)]
275 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
276 public const int PackedSint32ExtensionLiteFieldNumber = 94;
277 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
278 public const int PackedSint64ExtensionLiteFieldNumber = 95;
279 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
280 public const int PackedFixed32ExtensionLiteFieldNumber = 96;
281 [global::System.CLSCompliant(false)]
282 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
283 public const int PackedFixed64ExtensionLiteFieldNumber = 97;
284 [global::System.CLSCompliant(false)]
285 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
286 public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
287 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
288 public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
289 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
290 public const int PackedFloatExtensionLiteFieldNumber = 100;
291 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
292 public const int PackedDoubleExtensionLiteFieldNumber = 101;
293 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
294 public const int PackedBoolExtensionLiteFieldNumber = 102;
295 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
296 public const int PackedEnumExtensionLiteFieldNumber = 103;
297 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
csharptestc2a1f9b2011-06-06 11:40:01 -0500298 public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
299 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
300 public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
301 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
302 public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
303 [global::System.CLSCompliant(false)]
304 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
305 public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
306 [global::System.CLSCompliant(false)]
307 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
308 public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
309 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
310 public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
311 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
312 public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
313 [global::System.CLSCompliant(false)]
314 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
315 public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
316 [global::System.CLSCompliant(false)]
317 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
318 public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
319 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
320 public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
321 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
322 public const int UnpackedFloatExtensionLiteFieldNumber = 100;
323 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
324 public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
325 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
326 public const int UnpackedBoolExtensionLiteFieldNumber = 102;
327 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
328 public const int UnpackedEnumExtensionLiteFieldNumber = 103;
329 public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumExtensionLite;
Jon Skeet82bb0f12011-04-03 20:17:12 +0100330 #endregion
331
332 #region Static variables
333 #endregion
334 #region Extensions
335 internal static readonly object Descriptor;
336 static UnitTestLiteProtoFile() {
337 Descriptor = null;
338 global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
339 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
340 "protobuf_unittest.TestNestedExtensionLite.nested_extension",
341 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
342 default(int),
343 null,
344 null,
345 global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
346 pbd::FieldType.Int32);
347 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
348 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
349 "protobuf_unittest.optional_int32_extension_lite",
350 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
351 default(int),
352 null,
353 null,
354 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
355 pbd::FieldType.Int32);
356 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
357 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
358 "protobuf_unittest.optional_int64_extension_lite",
359 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
360 default(long),
361 null,
362 null,
363 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
364 pbd::FieldType.Int64);
365 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
366 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
367 "protobuf_unittest.optional_uint32_extension_lite",
368 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
369 default(uint),
370 null,
371 null,
372 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
373 pbd::FieldType.UInt32);
374 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
375 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
376 "protobuf_unittest.optional_uint64_extension_lite",
377 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
378 default(ulong),
379 null,
380 null,
381 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
382 pbd::FieldType.UInt64);
383 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
384 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
385 "protobuf_unittest.optional_sint32_extension_lite",
386 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
387 default(int),
388 null,
389 null,
390 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
391 pbd::FieldType.SInt32);
392 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
393 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
394 "protobuf_unittest.optional_sint64_extension_lite",
395 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
396 default(long),
397 null,
398 null,
399 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
400 pbd::FieldType.SInt64);
401 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
402 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
403 "protobuf_unittest.optional_fixed32_extension_lite",
404 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
405 default(uint),
406 null,
407 null,
408 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
409 pbd::FieldType.Fixed32);
410 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
411 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
412 "protobuf_unittest.optional_fixed64_extension_lite",
413 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
414 default(ulong),
415 null,
416 null,
417 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
418 pbd::FieldType.Fixed64);
419 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
420 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
421 "protobuf_unittest.optional_sfixed32_extension_lite",
422 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
423 default(int),
424 null,
425 null,
426 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
427 pbd::FieldType.SFixed32);
428 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
429 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
430 "protobuf_unittest.optional_sfixed64_extension_lite",
431 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
432 default(long),
433 null,
434 null,
435 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
436 pbd::FieldType.SFixed64);
437 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
438 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
439 "protobuf_unittest.optional_float_extension_lite",
440 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
441 default(float),
442 null,
443 null,
444 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
445 pbd::FieldType.Float);
446 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
447 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
448 "protobuf_unittest.optional_double_extension_lite",
449 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
450 default(double),
451 null,
452 null,
453 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
454 pbd::FieldType.Double);
455 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
456 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
457 "protobuf_unittest.optional_bool_extension_lite",
458 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
459 default(bool),
460 null,
461 null,
462 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
463 pbd::FieldType.Bool);
464 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
465 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
466 "protobuf_unittest.optional_string_extension_lite",
467 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
468 null,
469 null,
470 null,
471 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
472 pbd::FieldType.String);
473 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
474 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
475 "protobuf_unittest.optional_bytes_extension_lite",
476 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
477 null,
478 null,
479 null,
480 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
481 pbd::FieldType.Bytes);
482 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
483 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
484 "protobuf_unittest.optionalgroup_extension_lite",
485 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
486 null,
487 global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
488 null,
489 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
490 pbd::FieldType.Group);
491 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
492 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
493 "protobuf_unittest.optional_nested_message_extension_lite",
494 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
495 null,
496 global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
497 null,
498 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
499 pbd::FieldType.Message);
500 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
501 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
502 "protobuf_unittest.optional_foreign_message_extension_lite",
503 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
504 null,
505 global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
506 null,
507 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
508 pbd::FieldType.Message);
509 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
510 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
511 "protobuf_unittest.optional_import_message_extension_lite",
512 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
513 null,
514 global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
515 null,
516 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
517 pbd::FieldType.Message);
518 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
519 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
520 "protobuf_unittest.optional_nested_enum_extension_lite",
521 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
522 default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
523 null,
524 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
525 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
526 pbd::FieldType.Enum);
527 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
528 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
529 "protobuf_unittest.optional_foreign_enum_extension_lite",
530 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
531 default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
532 null,
533 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
534 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
535 pbd::FieldType.Enum);
536 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
537 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
538 "protobuf_unittest.optional_import_enum_extension_lite",
539 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
540 default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
541 null,
542 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
543 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
544 pbd::FieldType.Enum);
545 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
546 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
547 "protobuf_unittest.optional_string_piece_extension_lite",
548 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
549 null,
550 null,
551 null,
552 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
553 pbd::FieldType.String);
554 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
555 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
556 "protobuf_unittest.optional_cord_extension_lite",
557 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
558 null,
559 null,
560 null,
561 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
562 pbd::FieldType.String);
563 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
564 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
565 "protobuf_unittest.repeated_int32_extension_lite",
566 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
567 null,
568 null,
569 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
570 pbd::FieldType.Int32,
571 false);
572 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
573 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
574 "protobuf_unittest.repeated_int64_extension_lite",
575 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
576 null,
577 null,
578 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
579 pbd::FieldType.Int64,
580 false);
581 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
582 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
583 "protobuf_unittest.repeated_uint32_extension_lite",
584 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
585 null,
586 null,
587 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
588 pbd::FieldType.UInt32,
589 false);
590 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
591 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
592 "protobuf_unittest.repeated_uint64_extension_lite",
593 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
594 null,
595 null,
596 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
597 pbd::FieldType.UInt64,
598 false);
599 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
600 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
601 "protobuf_unittest.repeated_sint32_extension_lite",
602 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
603 null,
604 null,
605 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
606 pbd::FieldType.SInt32,
607 false);
608 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
609 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
610 "protobuf_unittest.repeated_sint64_extension_lite",
611 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
612 null,
613 null,
614 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
615 pbd::FieldType.SInt64,
616 false);
617 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
618 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
619 "protobuf_unittest.repeated_fixed32_extension_lite",
620 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
621 null,
622 null,
623 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
624 pbd::FieldType.Fixed32,
625 false);
626 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
627 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
628 "protobuf_unittest.repeated_fixed64_extension_lite",
629 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
630 null,
631 null,
632 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
633 pbd::FieldType.Fixed64,
634 false);
635 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
636 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
637 "protobuf_unittest.repeated_sfixed32_extension_lite",
638 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
639 null,
640 null,
641 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
642 pbd::FieldType.SFixed32,
643 false);
644 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
645 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
646 "protobuf_unittest.repeated_sfixed64_extension_lite",
647 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
648 null,
649 null,
650 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
651 pbd::FieldType.SFixed64,
652 false);
653 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
654 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
655 "protobuf_unittest.repeated_float_extension_lite",
656 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
657 null,
658 null,
659 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
660 pbd::FieldType.Float,
661 false);
662 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
663 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
664 "protobuf_unittest.repeated_double_extension_lite",
665 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
666 null,
667 null,
668 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
669 pbd::FieldType.Double,
670 false);
671 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
672 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
673 "protobuf_unittest.repeated_bool_extension_lite",
674 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
675 null,
676 null,
677 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
678 pbd::FieldType.Bool,
679 false);
680 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
681 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
682 "protobuf_unittest.repeated_string_extension_lite",
683 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
684 null,
685 null,
686 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
687 pbd::FieldType.String,
688 false);
689 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
690 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
691 "protobuf_unittest.repeated_bytes_extension_lite",
692 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
693 null,
694 null,
695 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
696 pbd::FieldType.Bytes,
697 false);
698 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
699 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
700 "protobuf_unittest.repeatedgroup_extension_lite",
701 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
702 global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
703 null,
704 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
705 pbd::FieldType.Group,
706 false);
707 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
708 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
709 "protobuf_unittest.repeated_nested_message_extension_lite",
710 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
711 global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
712 null,
713 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
714 pbd::FieldType.Message,
715 false);
716 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
717 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
718 "protobuf_unittest.repeated_foreign_message_extension_lite",
719 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
720 global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
721 null,
722 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
723 pbd::FieldType.Message,
724 false);
725 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
726 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
727 "protobuf_unittest.repeated_import_message_extension_lite",
728 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
729 global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
730 null,
731 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
732 pbd::FieldType.Message,
733 false);
734 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
735 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
736 "protobuf_unittest.repeated_nested_enum_extension_lite",
737 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
738 null,
739 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
740 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
741 pbd::FieldType.Enum,
742 false);
743 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
744 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
745 "protobuf_unittest.repeated_foreign_enum_extension_lite",
746 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
747 null,
748 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
749 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
750 pbd::FieldType.Enum,
751 false);
752 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
753 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
754 "protobuf_unittest.repeated_import_enum_extension_lite",
755 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
756 null,
757 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
758 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
759 pbd::FieldType.Enum,
760 false);
761 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
762 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
763 "protobuf_unittest.repeated_string_piece_extension_lite",
764 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
765 null,
766 null,
767 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
768 pbd::FieldType.String,
769 false);
770 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
771 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
772 "protobuf_unittest.repeated_cord_extension_lite",
773 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
774 null,
775 null,
776 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
777 pbd::FieldType.String,
778 false);
779 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
780 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
781 "protobuf_unittest.default_int32_extension_lite",
782 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
783 41,
784 null,
785 null,
786 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
787 pbd::FieldType.Int32);
788 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
789 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
790 "protobuf_unittest.default_int64_extension_lite",
791 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
792 42L,
793 null,
794 null,
795 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
796 pbd::FieldType.Int64);
797 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
798 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
799 "protobuf_unittest.default_uint32_extension_lite",
800 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
801 43,
802 null,
803 null,
804 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
805 pbd::FieldType.UInt32);
806 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
807 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
808 "protobuf_unittest.default_uint64_extension_lite",
809 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
810 44UL,
811 null,
812 null,
813 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
814 pbd::FieldType.UInt64);
815 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
816 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
817 "protobuf_unittest.default_sint32_extension_lite",
818 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
819 -45,
820 null,
821 null,
822 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
823 pbd::FieldType.SInt32);
824 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
825 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
826 "protobuf_unittest.default_sint64_extension_lite",
827 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
828 46,
829 null,
830 null,
831 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
832 pbd::FieldType.SInt64);
833 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
834 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
835 "protobuf_unittest.default_fixed32_extension_lite",
836 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
837 47,
838 null,
839 null,
840 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
841 pbd::FieldType.Fixed32);
842 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
843 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
844 "protobuf_unittest.default_fixed64_extension_lite",
845 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
846 48,
847 null,
848 null,
849 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
850 pbd::FieldType.Fixed64);
851 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
852 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
853 "protobuf_unittest.default_sfixed32_extension_lite",
854 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
855 49,
856 null,
857 null,
858 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
859 pbd::FieldType.SFixed32);
860 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
861 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
862 "protobuf_unittest.default_sfixed64_extension_lite",
863 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
864 -50,
865 null,
866 null,
867 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
868 pbd::FieldType.SFixed64);
869 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
870 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
871 "protobuf_unittest.default_float_extension_lite",
872 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
873 51.5F,
874 null,
875 null,
876 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
877 pbd::FieldType.Float);
878 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
879 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
880 "protobuf_unittest.default_double_extension_lite",
881 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
882 52000D,
883 null,
884 null,
885 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
886 pbd::FieldType.Double);
887 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
888 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
889 "protobuf_unittest.default_bool_extension_lite",
890 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
891 true,
892 null,
893 null,
894 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
895 pbd::FieldType.Bool);
896 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
897 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
898 "protobuf_unittest.default_string_extension_lite",
899 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
900 "hello",
901 null,
902 null,
903 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
904 pbd::FieldType.String);
905 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
906 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
907 "protobuf_unittest.default_bytes_extension_lite",
908 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
csharptest02760b22011-07-14 14:46:42 -0500909 pb::ByteString.FromBase64("d29ybGQ="),
Jon Skeet82bb0f12011-04-03 20:17:12 +0100910 null,
911 null,
912 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
913 pbd::FieldType.Bytes);
914 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
915 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
916 "protobuf_unittest.default_nested_enum_extension_lite",
917 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
918 global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
919 null,
920 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
921 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
922 pbd::FieldType.Enum);
923 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
924 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
925 "protobuf_unittest.default_foreign_enum_extension_lite",
926 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
927 global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
928 null,
929 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
930 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
931 pbd::FieldType.Enum);
932 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
933 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
934 "protobuf_unittest.default_import_enum_extension_lite",
935 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
936 global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
937 null,
938 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
939 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
940 pbd::FieldType.Enum);
941 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
942 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
943 "protobuf_unittest.default_string_piece_extension_lite",
944 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
945 "abc",
946 null,
947 null,
948 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
949 pbd::FieldType.String);
950 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
951 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
952 "protobuf_unittest.default_cord_extension_lite",
953 global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
954 "123",
955 null,
956 null,
957 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
958 pbd::FieldType.String);
959 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
960 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
961 "protobuf_unittest.packed_int32_extension_lite",
962 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
963 null,
964 null,
965 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
966 pbd::FieldType.Int32,
967 true);
968 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
969 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
970 "protobuf_unittest.packed_int64_extension_lite",
971 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
972 null,
973 null,
974 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
975 pbd::FieldType.Int64,
976 true);
977 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
978 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
979 "protobuf_unittest.packed_uint32_extension_lite",
980 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
981 null,
982 null,
983 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
984 pbd::FieldType.UInt32,
985 true);
986 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
987 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
988 "protobuf_unittest.packed_uint64_extension_lite",
989 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
990 null,
991 null,
992 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
993 pbd::FieldType.UInt64,
994 true);
995 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
996 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
997 "protobuf_unittest.packed_sint32_extension_lite",
998 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
999 null,
1000 null,
1001 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
1002 pbd::FieldType.SInt32,
1003 true);
1004 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
1005 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
1006 "protobuf_unittest.packed_sint64_extension_lite",
1007 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1008 null,
1009 null,
1010 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
1011 pbd::FieldType.SInt64,
1012 true);
1013 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
1014 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
1015 "protobuf_unittest.packed_fixed32_extension_lite",
1016 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1017 null,
1018 null,
1019 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
1020 pbd::FieldType.Fixed32,
1021 true);
1022 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
1023 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
1024 "protobuf_unittest.packed_fixed64_extension_lite",
1025 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1026 null,
1027 null,
1028 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
1029 pbd::FieldType.Fixed64,
1030 true);
1031 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
1032 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
1033 "protobuf_unittest.packed_sfixed32_extension_lite",
1034 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1035 null,
1036 null,
1037 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
1038 pbd::FieldType.SFixed32,
1039 true);
1040 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
1041 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
1042 "protobuf_unittest.packed_sfixed64_extension_lite",
1043 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1044 null,
1045 null,
1046 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
1047 pbd::FieldType.SFixed64,
1048 true);
1049 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
1050 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
1051 "protobuf_unittest.packed_float_extension_lite",
1052 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1053 null,
1054 null,
1055 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
1056 pbd::FieldType.Float,
1057 true);
1058 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
1059 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
1060 "protobuf_unittest.packed_double_extension_lite",
1061 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1062 null,
1063 null,
1064 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
1065 pbd::FieldType.Double,
1066 true);
1067 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
1068 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
1069 "protobuf_unittest.packed_bool_extension_lite",
1070 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1071 null,
1072 null,
1073 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
1074 pbd::FieldType.Bool,
1075 true);
1076 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
1077 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
1078 "protobuf_unittest.packed_enum_extension_lite",
1079 global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
1080 null,
1081 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
1082 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
1083 pbd::FieldType.Enum,
1084 true);
csharptestc2a1f9b2011-06-06 11:40:01 -05001085 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite =
1086 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
1087 "protobuf_unittest.unpacked_int32_extension_lite",
1088 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1089 null,
1090 null,
1091 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
1092 pbd::FieldType.Int32,
1093 false);
1094 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite =
1095 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
1096 "protobuf_unittest.unpacked_int64_extension_lite",
1097 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1098 null,
1099 null,
1100 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
1101 pbd::FieldType.Int64,
1102 false);
1103 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite =
1104 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
1105 "protobuf_unittest.unpacked_uint32_extension_lite",
1106 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1107 null,
1108 null,
1109 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
1110 pbd::FieldType.UInt32,
1111 false);
1112 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite =
1113 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
1114 "protobuf_unittest.unpacked_uint64_extension_lite",
1115 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1116 null,
1117 null,
1118 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
1119 pbd::FieldType.UInt64,
1120 false);
1121 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite =
1122 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
1123 "protobuf_unittest.unpacked_sint32_extension_lite",
1124 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1125 null,
1126 null,
1127 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
1128 pbd::FieldType.SInt32,
1129 false);
1130 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite =
1131 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
1132 "protobuf_unittest.unpacked_sint64_extension_lite",
1133 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1134 null,
1135 null,
1136 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
1137 pbd::FieldType.SInt64,
1138 false);
1139 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite =
1140 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
1141 "protobuf_unittest.unpacked_fixed32_extension_lite",
1142 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1143 null,
1144 null,
1145 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
1146 pbd::FieldType.Fixed32,
1147 false);
1148 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite =
1149 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
1150 "protobuf_unittest.unpacked_fixed64_extension_lite",
1151 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1152 null,
1153 null,
1154 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
1155 pbd::FieldType.Fixed64,
1156 false);
1157 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite =
1158 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
1159 "protobuf_unittest.unpacked_sfixed32_extension_lite",
1160 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1161 null,
1162 null,
1163 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
1164 pbd::FieldType.SFixed32,
1165 false);
1166 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite =
1167 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
1168 "protobuf_unittest.unpacked_sfixed64_extension_lite",
1169 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1170 null,
1171 null,
1172 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
1173 pbd::FieldType.SFixed64,
1174 false);
1175 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite =
1176 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
1177 "protobuf_unittest.unpacked_float_extension_lite",
1178 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1179 null,
1180 null,
1181 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
1182 pbd::FieldType.Float,
1183 false);
1184 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite =
1185 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
1186 "protobuf_unittest.unpacked_double_extension_lite",
1187 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1188 null,
1189 null,
1190 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
1191 pbd::FieldType.Double,
1192 false);
1193 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite =
1194 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
1195 "protobuf_unittest.unpacked_bool_extension_lite",
1196 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1197 null,
1198 null,
1199 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
1200 pbd::FieldType.Bool,
1201 false);
1202 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite =
1203 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
1204 "protobuf_unittest.unpacked_enum_extension_lite",
1205 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
1206 null,
1207 new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
1208 global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
1209 pbd::FieldType.Enum,
1210 false);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001211 }
1212 #endregion
1213
1214 }
1215 #region Enums
csharptest445bdce2011-05-20 15:50:54 -05001216 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1217 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001218 public enum ForeignEnumLite {
1219 FOREIGN_LITE_FOO = 4,
1220 FOREIGN_LITE_BAR = 5,
1221 FOREIGN_LITE_BAZ = 6,
1222 }
1223
1224 #endregion
1225
1226 #region Messages
csharptest445bdce2011-05-20 15:50:54 -05001227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1228 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1229 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001230 public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001231 private TestAllTypesLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001232 private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001233 private static readonly string[] _testAllTypesLiteFieldNames = new string[] { "default_bool", "default_bytes", "default_cord", "default_double", "default_fixed32", "default_fixed64", "default_float", "default_foreign_enum", "default_import_enum", "default_int32", "default_int64", "default_nested_enum", "default_sfixed32", "default_sfixed64", "default_sint32", "default_sint64", "default_string", "default_string_piece", "default_uint32", "default_uint64", "optional_bool", "optional_bytes", "optional_cord", "optional_double", "optional_fixed32", "optional_fixed64", "optional_float", "optional_foreign_enum", "optional_foreign_message", "optional_import_enum", "optional_import_message", "optional_int32", "optional_int64", "optional_nested_enum", "optional_nested_message", "optional_sfixed32", "optional_sfixed64", "optional_sint32", "optional_sint64", "optional_string", "optional_string_piece", "optional_uint32", "optional_uint64", "optionalgroup", "repeated_bool", "repeated_bytes", "repeated_cord", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_string_piece", "repeated_uint32", "repeated_uint64", "repeatedgroup" };
1234 private static readonly uint[] _testAllTypesLiteFieldTags = new uint[] { 584, 602, 682, 577, 541, 545, 573, 656, 664, 488, 496, 648, 557, 561, 520, 528, 594, 674, 504, 512, 104, 122, 202, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 77, 81, 40, 48, 114, 194, 24, 32, 131, 344, 362, 442, 337, 301, 305, 333, 416, 394, 424, 402, 248, 256, 408, 386, 317, 321, 280, 288, 354, 434, 264, 272, 371 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01001235 public static TestAllTypesLite DefaultInstance {
1236 get { return defaultInstance; }
1237 }
1238
1239 public override TestAllTypesLite DefaultInstanceForType {
1240 get { return defaultInstance; }
1241 }
1242
1243 protected override TestAllTypesLite ThisMessage {
1244 get { return this; }
1245 }
1246
1247 #region Nested types
csharptest445bdce2011-05-20 15:50:54 -05001248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1249 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1250 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001251 public static class Types {
csharptest445bdce2011-05-20 15:50:54 -05001252 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1253 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001254 public enum NestedEnum {
1255 FOO = 1,
1256 BAR = 2,
1257 BAZ = 3,
1258 }
1259
csharptest445bdce2011-05-20 15:50:54 -05001260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1261 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1262 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001263 public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001264 private NestedMessage() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001265 private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001266 private static readonly string[] _nestedMessageFieldNames = new string[] { "bb" };
1267 private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01001268 public static NestedMessage DefaultInstance {
1269 get { return defaultInstance; }
1270 }
1271
1272 public override NestedMessage DefaultInstanceForType {
1273 get { return defaultInstance; }
1274 }
1275
1276 protected override NestedMessage ThisMessage {
1277 get { return this; }
1278 }
1279
1280 public const int BbFieldNumber = 1;
1281 private bool hasBb;
csharptestced18e12011-06-09 19:47:56 -05001282 private int bb_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001283 public bool HasBb {
1284 get { return hasBb; }
1285 }
1286 public int Bb {
1287 get { return bb_; }
1288 }
1289
1290 public override bool IsInitialized {
1291 get {
1292 return true;
1293 }
1294 }
1295
csharptestffafdaa2011-06-03 12:58:14 -05001296 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001297 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001298 string[] field_names = _nestedMessageFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001299 if (hasBb) {
csharptest920b09a2011-06-08 20:13:29 -05001300 output.WriteInt32(1, field_names[0], Bb);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001301 }
1302 }
1303
1304 private int memoizedSerializedSize = -1;
1305 public override int SerializedSize {
1306 get {
1307 int size = memoizedSerializedSize;
1308 if (size != -1) return size;
1309
1310 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001311 if (hasBb) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001312 size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
1313 }
1314 memoizedSerializedSize = size;
1315 return size;
1316 }
1317 }
1318
1319 #region Lite runtime methods
1320 public override int GetHashCode() {
1321 int hash = GetType().GetHashCode();
1322 if (hasBb) hash ^= bb_.GetHashCode();
1323 return hash;
1324 }
1325
1326 public override bool Equals(object obj) {
1327 NestedMessage other = obj as NestedMessage;
1328 if (other == null) return false;
1329 if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
1330 return true;
1331 }
1332
1333 public override void PrintTo(global::System.IO.TextWriter writer) {
1334 PrintField("bb", hasBb, bb_, writer);
1335 }
1336 #endregion
1337
1338 public static NestedMessage ParseFrom(pb::ByteString data) {
1339 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1340 }
1341 public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1342 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1343 }
1344 public static NestedMessage ParseFrom(byte[] data) {
1345 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1346 }
1347 public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1348 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1349 }
1350 public static NestedMessage ParseFrom(global::System.IO.Stream input) {
1351 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1352 }
1353 public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1354 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1355 }
1356 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
1357 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1358 }
1359 public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1360 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1361 }
csharptest17699c22011-06-03 21:57:15 -05001362 public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001363 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1364 }
csharptest17699c22011-06-03 21:57:15 -05001365 public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001366 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1367 }
1368 public static Builder CreateBuilder() { return new Builder(); }
1369 public override Builder ToBuilder() { return CreateBuilder(this); }
1370 public override Builder CreateBuilderForType() { return new Builder(); }
1371 public static Builder CreateBuilder(NestedMessage prototype) {
1372 return (Builder) new Builder().MergeFrom(prototype);
1373 }
1374
csharptest445bdce2011-05-20 15:50:54 -05001375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1376 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1377 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001378 public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> {
1379 protected override Builder ThisBuilder {
1380 get { return this; }
1381 }
1382 public Builder() {}
1383
1384 NestedMessage result = new NestedMessage();
1385
1386 protected override NestedMessage MessageBeingBuilt {
1387 get { return result; }
1388 }
1389
1390 public override Builder Clear() {
1391 result = new NestedMessage();
1392 return this;
1393 }
1394
1395 public override Builder Clone() {
1396 return new Builder().MergeFrom(result);
1397 }
1398
1399 public override NestedMessage DefaultInstanceForType {
1400 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
1401 }
1402
1403 public override NestedMessage BuildPartial() {
1404 if (result == null) {
1405 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1406 }
1407 NestedMessage returnMe = result;
1408 result = null;
1409 return returnMe;
1410 }
1411
1412 public override Builder MergeFrom(pb::IMessageLite other) {
1413 if (other is NestedMessage) {
1414 return MergeFrom((NestedMessage) other);
1415 } else {
1416 base.MergeFrom(other);
1417 return this;
1418 }
1419 }
1420
1421 public override Builder MergeFrom(NestedMessage other) {
1422 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
1423 if (other.HasBb) {
1424 Bb = other.Bb;
1425 }
1426 return this;
1427 }
1428
csharptest17699c22011-06-03 21:57:15 -05001429 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001430 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1431 }
1432
csharptest17699c22011-06-03 21:57:15 -05001433 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05001434 uint tag;
1435 string field_name;
1436 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001437 if(tag == 0 && field_name != null) {
1438 int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
1439 if(field_ordinal >= 0)
1440 tag = _nestedMessageFieldTags[field_ordinal];
1441 else {
1442 ParseUnknownField(input, extensionRegistry, tag, field_name);
1443 continue;
1444 }
1445 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001446 switch (tag) {
1447 case 0: {
csharptest99284412011-06-03 14:51:06 -05001448 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001449 }
1450 default: {
1451 if (pb::WireFormat.IsEndGroupTag(tag)) {
1452 return this;
1453 }
csharptestd2af9e92011-06-03 21:35:02 -05001454 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001455 break;
1456 }
1457 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05001458 result.hasBb = input.ReadInt32(ref result.bb_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001459 break;
1460 }
1461 }
1462 }
csharptest123e5342011-06-03 14:15:21 -05001463
1464 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001465 }
1466
1467
1468 public bool HasBb {
csharptestc671a4b2011-06-08 11:51:24 -05001469 get { return result.hasBb; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001470 }
1471 public int Bb {
1472 get { return result.Bb; }
1473 set { SetBb(value); }
1474 }
1475 public Builder SetBb(int value) {
1476 result.hasBb = true;
1477 result.bb_ = value;
1478 return this;
1479 }
1480 public Builder ClearBb() {
1481 result.hasBb = false;
1482 result.bb_ = 0;
1483 return this;
1484 }
1485 }
1486 static NestedMessage() {
1487 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
1488 }
1489 }
1490
csharptest445bdce2011-05-20 15:50:54 -05001491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1492 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1493 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001494 public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001495 private OptionalGroup() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001496 private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001497 private static readonly string[] _optionalGroupFieldNames = new string[] { "a" };
1498 private static readonly uint[] _optionalGroupFieldTags = new uint[] { 136 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01001499 public static OptionalGroup DefaultInstance {
1500 get { return defaultInstance; }
1501 }
1502
1503 public override OptionalGroup DefaultInstanceForType {
1504 get { return defaultInstance; }
1505 }
1506
1507 protected override OptionalGroup ThisMessage {
1508 get { return this; }
1509 }
1510
1511 public const int AFieldNumber = 17;
1512 private bool hasA;
csharptestced18e12011-06-09 19:47:56 -05001513 private int a_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001514 public bool HasA {
1515 get { return hasA; }
1516 }
1517 public int A {
1518 get { return a_; }
1519 }
1520
1521 public override bool IsInitialized {
1522 get {
1523 return true;
1524 }
1525 }
1526
csharptestffafdaa2011-06-03 12:58:14 -05001527 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001528 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001529 string[] field_names = _optionalGroupFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001530 if (hasA) {
csharptest920b09a2011-06-08 20:13:29 -05001531 output.WriteInt32(17, field_names[0], A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001532 }
1533 }
1534
1535 private int memoizedSerializedSize = -1;
1536 public override int SerializedSize {
1537 get {
1538 int size = memoizedSerializedSize;
1539 if (size != -1) return size;
1540
1541 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001542 if (hasA) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001543 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
1544 }
1545 memoizedSerializedSize = size;
1546 return size;
1547 }
1548 }
1549
1550 #region Lite runtime methods
1551 public override int GetHashCode() {
1552 int hash = GetType().GetHashCode();
1553 if (hasA) hash ^= a_.GetHashCode();
1554 return hash;
1555 }
1556
1557 public override bool Equals(object obj) {
1558 OptionalGroup other = obj as OptionalGroup;
1559 if (other == null) return false;
1560 if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
1561 return true;
1562 }
1563
1564 public override void PrintTo(global::System.IO.TextWriter writer) {
1565 PrintField("a", hasA, a_, writer);
1566 }
1567 #endregion
1568
1569 public static OptionalGroup ParseFrom(pb::ByteString data) {
1570 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1571 }
1572 public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1573 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1574 }
1575 public static OptionalGroup ParseFrom(byte[] data) {
1576 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1577 }
1578 public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1579 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1580 }
1581 public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
1582 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1583 }
1584 public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1585 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1586 }
1587 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1588 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1589 }
1590 public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1591 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1592 }
csharptest17699c22011-06-03 21:57:15 -05001593 public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001594 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1595 }
csharptest17699c22011-06-03 21:57:15 -05001596 public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001597 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1598 }
1599 public static Builder CreateBuilder() { return new Builder(); }
1600 public override Builder ToBuilder() { return CreateBuilder(this); }
1601 public override Builder CreateBuilderForType() { return new Builder(); }
1602 public static Builder CreateBuilder(OptionalGroup prototype) {
1603 return (Builder) new Builder().MergeFrom(prototype);
1604 }
1605
csharptest445bdce2011-05-20 15:50:54 -05001606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1607 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1608 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001609 public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> {
1610 protected override Builder ThisBuilder {
1611 get { return this; }
1612 }
1613 public Builder() {}
1614
1615 OptionalGroup result = new OptionalGroup();
1616
1617 protected override OptionalGroup MessageBeingBuilt {
1618 get { return result; }
1619 }
1620
1621 public override Builder Clear() {
1622 result = new OptionalGroup();
1623 return this;
1624 }
1625
1626 public override Builder Clone() {
1627 return new Builder().MergeFrom(result);
1628 }
1629
1630 public override OptionalGroup DefaultInstanceForType {
1631 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
1632 }
1633
1634 public override OptionalGroup BuildPartial() {
1635 if (result == null) {
1636 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1637 }
1638 OptionalGroup returnMe = result;
1639 result = null;
1640 return returnMe;
1641 }
1642
1643 public override Builder MergeFrom(pb::IMessageLite other) {
1644 if (other is OptionalGroup) {
1645 return MergeFrom((OptionalGroup) other);
1646 } else {
1647 base.MergeFrom(other);
1648 return this;
1649 }
1650 }
1651
1652 public override Builder MergeFrom(OptionalGroup other) {
1653 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
1654 if (other.HasA) {
1655 A = other.A;
1656 }
1657 return this;
1658 }
1659
csharptest17699c22011-06-03 21:57:15 -05001660 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001661 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1662 }
1663
csharptest17699c22011-06-03 21:57:15 -05001664 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05001665 uint tag;
1666 string field_name;
1667 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001668 if(tag == 0 && field_name != null) {
1669 int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
1670 if(field_ordinal >= 0)
1671 tag = _optionalGroupFieldTags[field_ordinal];
1672 else {
1673 ParseUnknownField(input, extensionRegistry, tag, field_name);
1674 continue;
1675 }
1676 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001677 switch (tag) {
1678 case 0: {
csharptest99284412011-06-03 14:51:06 -05001679 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001680 }
1681 default: {
1682 if (pb::WireFormat.IsEndGroupTag(tag)) {
1683 return this;
1684 }
csharptestd2af9e92011-06-03 21:35:02 -05001685 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001686 break;
1687 }
1688 case 136: {
csharptest920b09a2011-06-08 20:13:29 -05001689 result.hasA = input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001690 break;
1691 }
1692 }
1693 }
csharptest123e5342011-06-03 14:15:21 -05001694
1695 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001696 }
1697
1698
1699 public bool HasA {
csharptestc671a4b2011-06-08 11:51:24 -05001700 get { return result.hasA; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001701 }
1702 public int A {
1703 get { return result.A; }
1704 set { SetA(value); }
1705 }
1706 public Builder SetA(int value) {
1707 result.hasA = true;
1708 result.a_ = value;
1709 return this;
1710 }
1711 public Builder ClearA() {
1712 result.hasA = false;
1713 result.a_ = 0;
1714 return this;
1715 }
1716 }
1717 static OptionalGroup() {
1718 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
1719 }
1720 }
1721
csharptest445bdce2011-05-20 15:50:54 -05001722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1723 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1724 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001725 public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001726 private RepeatedGroup() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001727 private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001728 private static readonly string[] _repeatedGroupFieldNames = new string[] { "a" };
1729 private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 376 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01001730 public static RepeatedGroup DefaultInstance {
1731 get { return defaultInstance; }
1732 }
1733
1734 public override RepeatedGroup DefaultInstanceForType {
1735 get { return defaultInstance; }
1736 }
1737
1738 protected override RepeatedGroup ThisMessage {
1739 get { return this; }
1740 }
1741
1742 public const int AFieldNumber = 47;
1743 private bool hasA;
csharptestced18e12011-06-09 19:47:56 -05001744 private int a_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001745 public bool HasA {
1746 get { return hasA; }
1747 }
1748 public int A {
1749 get { return a_; }
1750 }
1751
1752 public override bool IsInitialized {
1753 get {
1754 return true;
1755 }
1756 }
1757
csharptestffafdaa2011-06-03 12:58:14 -05001758 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001759 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001760 string[] field_names = _repeatedGroupFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001761 if (hasA) {
csharptest920b09a2011-06-08 20:13:29 -05001762 output.WriteInt32(47, field_names[0], A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001763 }
1764 }
1765
1766 private int memoizedSerializedSize = -1;
1767 public override int SerializedSize {
1768 get {
1769 int size = memoizedSerializedSize;
1770 if (size != -1) return size;
1771
1772 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001773 if (hasA) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001774 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
1775 }
1776 memoizedSerializedSize = size;
1777 return size;
1778 }
1779 }
1780
1781 #region Lite runtime methods
1782 public override int GetHashCode() {
1783 int hash = GetType().GetHashCode();
1784 if (hasA) hash ^= a_.GetHashCode();
1785 return hash;
1786 }
1787
1788 public override bool Equals(object obj) {
1789 RepeatedGroup other = obj as RepeatedGroup;
1790 if (other == null) return false;
1791 if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
1792 return true;
1793 }
1794
1795 public override void PrintTo(global::System.IO.TextWriter writer) {
1796 PrintField("a", hasA, a_, writer);
1797 }
1798 #endregion
1799
1800 public static RepeatedGroup ParseFrom(pb::ByteString data) {
1801 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1802 }
1803 public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1804 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1805 }
1806 public static RepeatedGroup ParseFrom(byte[] data) {
1807 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1808 }
1809 public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1810 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1811 }
1812 public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
1813 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1814 }
1815 public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1816 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1817 }
1818 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
1819 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1820 }
1821 public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1822 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1823 }
csharptest17699c22011-06-03 21:57:15 -05001824 public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001825 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1826 }
csharptest17699c22011-06-03 21:57:15 -05001827 public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001828 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1829 }
1830 public static Builder CreateBuilder() { return new Builder(); }
1831 public override Builder ToBuilder() { return CreateBuilder(this); }
1832 public override Builder CreateBuilderForType() { return new Builder(); }
1833 public static Builder CreateBuilder(RepeatedGroup prototype) {
1834 return (Builder) new Builder().MergeFrom(prototype);
1835 }
1836
csharptest445bdce2011-05-20 15:50:54 -05001837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1838 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1839 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01001840 public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> {
1841 protected override Builder ThisBuilder {
1842 get { return this; }
1843 }
1844 public Builder() {}
1845
1846 RepeatedGroup result = new RepeatedGroup();
1847
1848 protected override RepeatedGroup MessageBeingBuilt {
1849 get { return result; }
1850 }
1851
1852 public override Builder Clear() {
1853 result = new RepeatedGroup();
1854 return this;
1855 }
1856
1857 public override Builder Clone() {
1858 return new Builder().MergeFrom(result);
1859 }
1860
1861 public override RepeatedGroup DefaultInstanceForType {
1862 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
1863 }
1864
1865 public override RepeatedGroup BuildPartial() {
1866 if (result == null) {
1867 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1868 }
1869 RepeatedGroup returnMe = result;
1870 result = null;
1871 return returnMe;
1872 }
1873
1874 public override Builder MergeFrom(pb::IMessageLite other) {
1875 if (other is RepeatedGroup) {
1876 return MergeFrom((RepeatedGroup) other);
1877 } else {
1878 base.MergeFrom(other);
1879 return this;
1880 }
1881 }
1882
1883 public override Builder MergeFrom(RepeatedGroup other) {
1884 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
1885 if (other.HasA) {
1886 A = other.A;
1887 }
1888 return this;
1889 }
1890
csharptest17699c22011-06-03 21:57:15 -05001891 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01001892 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1893 }
1894
csharptest17699c22011-06-03 21:57:15 -05001895 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05001896 uint tag;
1897 string field_name;
1898 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001899 if(tag == 0 && field_name != null) {
1900 int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
1901 if(field_ordinal >= 0)
1902 tag = _repeatedGroupFieldTags[field_ordinal];
1903 else {
1904 ParseUnknownField(input, extensionRegistry, tag, field_name);
1905 continue;
1906 }
1907 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001908 switch (tag) {
1909 case 0: {
csharptest99284412011-06-03 14:51:06 -05001910 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01001911 }
1912 default: {
1913 if (pb::WireFormat.IsEndGroupTag(tag)) {
1914 return this;
1915 }
csharptestd2af9e92011-06-03 21:35:02 -05001916 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001917 break;
1918 }
1919 case 376: {
csharptest920b09a2011-06-08 20:13:29 -05001920 result.hasA = input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01001921 break;
1922 }
1923 }
1924 }
csharptest123e5342011-06-03 14:15:21 -05001925
1926 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001927 }
1928
1929
1930 public bool HasA {
csharptestc671a4b2011-06-08 11:51:24 -05001931 get { return result.hasA; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01001932 }
1933 public int A {
1934 get { return result.A; }
1935 set { SetA(value); }
1936 }
1937 public Builder SetA(int value) {
1938 result.hasA = true;
1939 result.a_ = value;
1940 return this;
1941 }
1942 public Builder ClearA() {
1943 result.hasA = false;
1944 result.a_ = 0;
1945 return this;
1946 }
1947 }
1948 static RepeatedGroup() {
1949 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
1950 }
1951 }
1952
1953 }
1954 #endregion
1955
1956 public const int OptionalInt32FieldNumber = 1;
1957 private bool hasOptionalInt32;
csharptestced18e12011-06-09 19:47:56 -05001958 private int optionalInt32_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001959 public bool HasOptionalInt32 {
1960 get { return hasOptionalInt32; }
1961 }
1962 public int OptionalInt32 {
1963 get { return optionalInt32_; }
1964 }
1965
1966 public const int OptionalInt64FieldNumber = 2;
1967 private bool hasOptionalInt64;
csharptestced18e12011-06-09 19:47:56 -05001968 private long optionalInt64_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001969 public bool HasOptionalInt64 {
1970 get { return hasOptionalInt64; }
1971 }
1972 public long OptionalInt64 {
1973 get { return optionalInt64_; }
1974 }
1975
1976 public const int OptionalUint32FieldNumber = 3;
1977 private bool hasOptionalUint32;
csharptestced18e12011-06-09 19:47:56 -05001978 private uint optionalUint32_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001979 public bool HasOptionalUint32 {
1980 get { return hasOptionalUint32; }
1981 }
1982 [global::System.CLSCompliant(false)]
1983 public uint OptionalUint32 {
1984 get { return optionalUint32_; }
1985 }
1986
1987 public const int OptionalUint64FieldNumber = 4;
1988 private bool hasOptionalUint64;
csharptestced18e12011-06-09 19:47:56 -05001989 private ulong optionalUint64_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01001990 public bool HasOptionalUint64 {
1991 get { return hasOptionalUint64; }
1992 }
1993 [global::System.CLSCompliant(false)]
1994 public ulong OptionalUint64 {
1995 get { return optionalUint64_; }
1996 }
1997
1998 public const int OptionalSint32FieldNumber = 5;
1999 private bool hasOptionalSint32;
csharptestced18e12011-06-09 19:47:56 -05002000 private int optionalSint32_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002001 public bool HasOptionalSint32 {
2002 get { return hasOptionalSint32; }
2003 }
2004 public int OptionalSint32 {
2005 get { return optionalSint32_; }
2006 }
2007
2008 public const int OptionalSint64FieldNumber = 6;
2009 private bool hasOptionalSint64;
csharptestced18e12011-06-09 19:47:56 -05002010 private long optionalSint64_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002011 public bool HasOptionalSint64 {
2012 get { return hasOptionalSint64; }
2013 }
2014 public long OptionalSint64 {
2015 get { return optionalSint64_; }
2016 }
2017
2018 public const int OptionalFixed32FieldNumber = 7;
2019 private bool hasOptionalFixed32;
csharptestced18e12011-06-09 19:47:56 -05002020 private uint optionalFixed32_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002021 public bool HasOptionalFixed32 {
2022 get { return hasOptionalFixed32; }
2023 }
2024 [global::System.CLSCompliant(false)]
2025 public uint OptionalFixed32 {
2026 get { return optionalFixed32_; }
2027 }
2028
2029 public const int OptionalFixed64FieldNumber = 8;
2030 private bool hasOptionalFixed64;
csharptestced18e12011-06-09 19:47:56 -05002031 private ulong optionalFixed64_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002032 public bool HasOptionalFixed64 {
2033 get { return hasOptionalFixed64; }
2034 }
2035 [global::System.CLSCompliant(false)]
2036 public ulong OptionalFixed64 {
2037 get { return optionalFixed64_; }
2038 }
2039
2040 public const int OptionalSfixed32FieldNumber = 9;
2041 private bool hasOptionalSfixed32;
csharptestced18e12011-06-09 19:47:56 -05002042 private int optionalSfixed32_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002043 public bool HasOptionalSfixed32 {
2044 get { return hasOptionalSfixed32; }
2045 }
2046 public int OptionalSfixed32 {
2047 get { return optionalSfixed32_; }
2048 }
2049
2050 public const int OptionalSfixed64FieldNumber = 10;
2051 private bool hasOptionalSfixed64;
csharptestced18e12011-06-09 19:47:56 -05002052 private long optionalSfixed64_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002053 public bool HasOptionalSfixed64 {
2054 get { return hasOptionalSfixed64; }
2055 }
2056 public long OptionalSfixed64 {
2057 get { return optionalSfixed64_; }
2058 }
2059
2060 public const int OptionalFloatFieldNumber = 11;
2061 private bool hasOptionalFloat;
csharptestced18e12011-06-09 19:47:56 -05002062 private float optionalFloat_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002063 public bool HasOptionalFloat {
2064 get { return hasOptionalFloat; }
2065 }
2066 public float OptionalFloat {
2067 get { return optionalFloat_; }
2068 }
2069
2070 public const int OptionalDoubleFieldNumber = 12;
2071 private bool hasOptionalDouble;
csharptestced18e12011-06-09 19:47:56 -05002072 private double optionalDouble_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002073 public bool HasOptionalDouble {
2074 get { return hasOptionalDouble; }
2075 }
2076 public double OptionalDouble {
2077 get { return optionalDouble_; }
2078 }
2079
2080 public const int OptionalBoolFieldNumber = 13;
2081 private bool hasOptionalBool;
csharptestced18e12011-06-09 19:47:56 -05002082 private bool optionalBool_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01002083 public bool HasOptionalBool {
2084 get { return hasOptionalBool; }
2085 }
2086 public bool OptionalBool {
2087 get { return optionalBool_; }
2088 }
2089
2090 public const int OptionalStringFieldNumber = 14;
2091 private bool hasOptionalString;
2092 private string optionalString_ = "";
2093 public bool HasOptionalString {
2094 get { return hasOptionalString; }
2095 }
2096 public string OptionalString {
2097 get { return optionalString_; }
2098 }
2099
2100 public const int OptionalBytesFieldNumber = 15;
2101 private bool hasOptionalBytes;
2102 private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
2103 public bool HasOptionalBytes {
2104 get { return hasOptionalBytes; }
2105 }
2106 public pb::ByteString OptionalBytes {
2107 get { return optionalBytes_; }
2108 }
2109
2110 public const int OptionalGroupFieldNumber = 16;
2111 private bool hasOptionalGroup;
2112 private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
2113 public bool HasOptionalGroup {
2114 get { return hasOptionalGroup; }
2115 }
2116 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
2117 get { return optionalGroup_; }
2118 }
2119
2120 public const int OptionalNestedMessageFieldNumber = 18;
2121 private bool hasOptionalNestedMessage;
2122 private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
2123 public bool HasOptionalNestedMessage {
2124 get { return hasOptionalNestedMessage; }
2125 }
2126 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
2127 get { return optionalNestedMessage_; }
2128 }
2129
2130 public const int OptionalForeignMessageFieldNumber = 19;
2131 private bool hasOptionalForeignMessage;
2132 private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
2133 public bool HasOptionalForeignMessage {
2134 get { return hasOptionalForeignMessage; }
2135 }
2136 public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
2137 get { return optionalForeignMessage_; }
2138 }
2139
2140 public const int OptionalImportMessageFieldNumber = 20;
2141 private bool hasOptionalImportMessage;
2142 private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
2143 public bool HasOptionalImportMessage {
2144 get { return hasOptionalImportMessage; }
2145 }
2146 public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
2147 get { return optionalImportMessage_; }
2148 }
2149
2150 public const int OptionalNestedEnumFieldNumber = 21;
2151 private bool hasOptionalNestedEnum;
2152 private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
2153 public bool HasOptionalNestedEnum {
2154 get { return hasOptionalNestedEnum; }
2155 }
2156 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
2157 get { return optionalNestedEnum_; }
2158 }
2159
2160 public const int OptionalForeignEnumFieldNumber = 22;
2161 private bool hasOptionalForeignEnum;
2162 private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
2163 public bool HasOptionalForeignEnum {
2164 get { return hasOptionalForeignEnum; }
2165 }
2166 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
2167 get { return optionalForeignEnum_; }
2168 }
2169
2170 public const int OptionalImportEnumFieldNumber = 23;
2171 private bool hasOptionalImportEnum;
2172 private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
2173 public bool HasOptionalImportEnum {
2174 get { return hasOptionalImportEnum; }
2175 }
2176 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
2177 get { return optionalImportEnum_; }
2178 }
2179
2180 public const int OptionalStringPieceFieldNumber = 24;
2181 private bool hasOptionalStringPiece;
2182 private string optionalStringPiece_ = "";
2183 public bool HasOptionalStringPiece {
2184 get { return hasOptionalStringPiece; }
2185 }
2186 public string OptionalStringPiece {
2187 get { return optionalStringPiece_; }
2188 }
2189
2190 public const int OptionalCordFieldNumber = 25;
2191 private bool hasOptionalCord;
2192 private string optionalCord_ = "";
2193 public bool HasOptionalCord {
2194 get { return hasOptionalCord; }
2195 }
2196 public string OptionalCord {
2197 get { return optionalCord_; }
2198 }
2199
2200 public const int RepeatedInt32FieldNumber = 31;
2201 private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
2202 public scg::IList<int> RepeatedInt32List {
2203 get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
2204 }
2205 public int RepeatedInt32Count {
2206 get { return repeatedInt32_.Count; }
2207 }
2208 public int GetRepeatedInt32(int index) {
2209 return repeatedInt32_[index];
2210 }
2211
2212 public const int RepeatedInt64FieldNumber = 32;
2213 private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
2214 public scg::IList<long> RepeatedInt64List {
2215 get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
2216 }
2217 public int RepeatedInt64Count {
2218 get { return repeatedInt64_.Count; }
2219 }
2220 public long GetRepeatedInt64(int index) {
2221 return repeatedInt64_[index];
2222 }
2223
2224 public const int RepeatedUint32FieldNumber = 33;
2225 private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
2226 [global::System.CLSCompliant(false)]
2227 public scg::IList<uint> RepeatedUint32List {
2228 get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
2229 }
2230 public int RepeatedUint32Count {
2231 get { return repeatedUint32_.Count; }
2232 }
2233 [global::System.CLSCompliant(false)]
2234 public uint GetRepeatedUint32(int index) {
2235 return repeatedUint32_[index];
2236 }
2237
2238 public const int RepeatedUint64FieldNumber = 34;
2239 private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
2240 [global::System.CLSCompliant(false)]
2241 public scg::IList<ulong> RepeatedUint64List {
2242 get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
2243 }
2244 public int RepeatedUint64Count {
2245 get { return repeatedUint64_.Count; }
2246 }
2247 [global::System.CLSCompliant(false)]
2248 public ulong GetRepeatedUint64(int index) {
2249 return repeatedUint64_[index];
2250 }
2251
2252 public const int RepeatedSint32FieldNumber = 35;
2253 private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
2254 public scg::IList<int> RepeatedSint32List {
2255 get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
2256 }
2257 public int RepeatedSint32Count {
2258 get { return repeatedSint32_.Count; }
2259 }
2260 public int GetRepeatedSint32(int index) {
2261 return repeatedSint32_[index];
2262 }
2263
2264 public const int RepeatedSint64FieldNumber = 36;
2265 private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
2266 public scg::IList<long> RepeatedSint64List {
2267 get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
2268 }
2269 public int RepeatedSint64Count {
2270 get { return repeatedSint64_.Count; }
2271 }
2272 public long GetRepeatedSint64(int index) {
2273 return repeatedSint64_[index];
2274 }
2275
2276 public const int RepeatedFixed32FieldNumber = 37;
2277 private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
2278 [global::System.CLSCompliant(false)]
2279 public scg::IList<uint> RepeatedFixed32List {
2280 get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
2281 }
2282 public int RepeatedFixed32Count {
2283 get { return repeatedFixed32_.Count; }
2284 }
2285 [global::System.CLSCompliant(false)]
2286 public uint GetRepeatedFixed32(int index) {
2287 return repeatedFixed32_[index];
2288 }
2289
2290 public const int RepeatedFixed64FieldNumber = 38;
2291 private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
2292 [global::System.CLSCompliant(false)]
2293 public scg::IList<ulong> RepeatedFixed64List {
2294 get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
2295 }
2296 public int RepeatedFixed64Count {
2297 get { return repeatedFixed64_.Count; }
2298 }
2299 [global::System.CLSCompliant(false)]
2300 public ulong GetRepeatedFixed64(int index) {
2301 return repeatedFixed64_[index];
2302 }
2303
2304 public const int RepeatedSfixed32FieldNumber = 39;
2305 private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
2306 public scg::IList<int> RepeatedSfixed32List {
2307 get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
2308 }
2309 public int RepeatedSfixed32Count {
2310 get { return repeatedSfixed32_.Count; }
2311 }
2312 public int GetRepeatedSfixed32(int index) {
2313 return repeatedSfixed32_[index];
2314 }
2315
2316 public const int RepeatedSfixed64FieldNumber = 40;
2317 private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
2318 public scg::IList<long> RepeatedSfixed64List {
2319 get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
2320 }
2321 public int RepeatedSfixed64Count {
2322 get { return repeatedSfixed64_.Count; }
2323 }
2324 public long GetRepeatedSfixed64(int index) {
2325 return repeatedSfixed64_[index];
2326 }
2327
2328 public const int RepeatedFloatFieldNumber = 41;
2329 private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
2330 public scg::IList<float> RepeatedFloatList {
2331 get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
2332 }
2333 public int RepeatedFloatCount {
2334 get { return repeatedFloat_.Count; }
2335 }
2336 public float GetRepeatedFloat(int index) {
2337 return repeatedFloat_[index];
2338 }
2339
2340 public const int RepeatedDoubleFieldNumber = 42;
2341 private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
2342 public scg::IList<double> RepeatedDoubleList {
2343 get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
2344 }
2345 public int RepeatedDoubleCount {
2346 get { return repeatedDouble_.Count; }
2347 }
2348 public double GetRepeatedDouble(int index) {
2349 return repeatedDouble_[index];
2350 }
2351
2352 public const int RepeatedBoolFieldNumber = 43;
2353 private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
2354 public scg::IList<bool> RepeatedBoolList {
2355 get { return pbc::Lists.AsReadOnly(repeatedBool_); }
2356 }
2357 public int RepeatedBoolCount {
2358 get { return repeatedBool_.Count; }
2359 }
2360 public bool GetRepeatedBool(int index) {
2361 return repeatedBool_[index];
2362 }
2363
2364 public const int RepeatedStringFieldNumber = 44;
2365 private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
2366 public scg::IList<string> RepeatedStringList {
2367 get { return pbc::Lists.AsReadOnly(repeatedString_); }
2368 }
2369 public int RepeatedStringCount {
2370 get { return repeatedString_.Count; }
2371 }
2372 public string GetRepeatedString(int index) {
2373 return repeatedString_[index];
2374 }
2375
2376 public const int RepeatedBytesFieldNumber = 45;
2377 private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
2378 public scg::IList<pb::ByteString> RepeatedBytesList {
2379 get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
2380 }
2381 public int RepeatedBytesCount {
2382 get { return repeatedBytes_.Count; }
2383 }
2384 public pb::ByteString GetRepeatedBytes(int index) {
2385 return repeatedBytes_[index];
2386 }
2387
2388 public const int RepeatedGroupFieldNumber = 46;
2389 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
2390 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
2391 get { return repeatedGroup_; }
2392 }
2393 public int RepeatedGroupCount {
2394 get { return repeatedGroup_.Count; }
2395 }
2396 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
2397 return repeatedGroup_[index];
2398 }
2399
2400 public const int RepeatedNestedMessageFieldNumber = 48;
2401 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
2402 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
2403 get { return repeatedNestedMessage_; }
2404 }
2405 public int RepeatedNestedMessageCount {
2406 get { return repeatedNestedMessage_.Count; }
2407 }
2408 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
2409 return repeatedNestedMessage_[index];
2410 }
2411
2412 public const int RepeatedForeignMessageFieldNumber = 49;
2413 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
2414 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
2415 get { return repeatedForeignMessage_; }
2416 }
2417 public int RepeatedForeignMessageCount {
2418 get { return repeatedForeignMessage_.Count; }
2419 }
2420 public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
2421 return repeatedForeignMessage_[index];
2422 }
2423
2424 public const int RepeatedImportMessageFieldNumber = 50;
2425 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
2426 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
2427 get { return repeatedImportMessage_; }
2428 }
2429 public int RepeatedImportMessageCount {
2430 get { return repeatedImportMessage_.Count; }
2431 }
2432 public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
2433 return repeatedImportMessage_[index];
2434 }
2435
2436 public const int RepeatedNestedEnumFieldNumber = 51;
2437 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
2438 public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
2439 get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
2440 }
2441 public int RepeatedNestedEnumCount {
2442 get { return repeatedNestedEnum_.Count; }
2443 }
2444 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
2445 return repeatedNestedEnum_[index];
2446 }
2447
2448 public const int RepeatedForeignEnumFieldNumber = 52;
2449 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
2450 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
2451 get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
2452 }
2453 public int RepeatedForeignEnumCount {
2454 get { return repeatedForeignEnum_.Count; }
2455 }
2456 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
2457 return repeatedForeignEnum_[index];
2458 }
2459
2460 public const int RepeatedImportEnumFieldNumber = 53;
2461 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
2462 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
2463 get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
2464 }
2465 public int RepeatedImportEnumCount {
2466 get { return repeatedImportEnum_.Count; }
2467 }
2468 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
2469 return repeatedImportEnum_[index];
2470 }
2471
2472 public const int RepeatedStringPieceFieldNumber = 54;
2473 private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
2474 public scg::IList<string> RepeatedStringPieceList {
2475 get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
2476 }
2477 public int RepeatedStringPieceCount {
2478 get { return repeatedStringPiece_.Count; }
2479 }
2480 public string GetRepeatedStringPiece(int index) {
2481 return repeatedStringPiece_[index];
2482 }
2483
2484 public const int RepeatedCordFieldNumber = 55;
2485 private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
2486 public scg::IList<string> RepeatedCordList {
2487 get { return pbc::Lists.AsReadOnly(repeatedCord_); }
2488 }
2489 public int RepeatedCordCount {
2490 get { return repeatedCord_.Count; }
2491 }
2492 public string GetRepeatedCord(int index) {
2493 return repeatedCord_[index];
2494 }
2495
2496 public const int DefaultInt32FieldNumber = 61;
2497 private bool hasDefaultInt32;
2498 private int defaultInt32_ = 41;
2499 public bool HasDefaultInt32 {
2500 get { return hasDefaultInt32; }
2501 }
2502 public int DefaultInt32 {
2503 get { return defaultInt32_; }
2504 }
2505
2506 public const int DefaultInt64FieldNumber = 62;
2507 private bool hasDefaultInt64;
2508 private long defaultInt64_ = 42L;
2509 public bool HasDefaultInt64 {
2510 get { return hasDefaultInt64; }
2511 }
2512 public long DefaultInt64 {
2513 get { return defaultInt64_; }
2514 }
2515
2516 public const int DefaultUint32FieldNumber = 63;
2517 private bool hasDefaultUint32;
2518 private uint defaultUint32_ = 43;
2519 public bool HasDefaultUint32 {
2520 get { return hasDefaultUint32; }
2521 }
2522 [global::System.CLSCompliant(false)]
2523 public uint DefaultUint32 {
2524 get { return defaultUint32_; }
2525 }
2526
2527 public const int DefaultUint64FieldNumber = 64;
2528 private bool hasDefaultUint64;
2529 private ulong defaultUint64_ = 44UL;
2530 public bool HasDefaultUint64 {
2531 get { return hasDefaultUint64; }
2532 }
2533 [global::System.CLSCompliant(false)]
2534 public ulong DefaultUint64 {
2535 get { return defaultUint64_; }
2536 }
2537
2538 public const int DefaultSint32FieldNumber = 65;
2539 private bool hasDefaultSint32;
2540 private int defaultSint32_ = -45;
2541 public bool HasDefaultSint32 {
2542 get { return hasDefaultSint32; }
2543 }
2544 public int DefaultSint32 {
2545 get { return defaultSint32_; }
2546 }
2547
2548 public const int DefaultSint64FieldNumber = 66;
2549 private bool hasDefaultSint64;
2550 private long defaultSint64_ = 46;
2551 public bool HasDefaultSint64 {
2552 get { return hasDefaultSint64; }
2553 }
2554 public long DefaultSint64 {
2555 get { return defaultSint64_; }
2556 }
2557
2558 public const int DefaultFixed32FieldNumber = 67;
2559 private bool hasDefaultFixed32;
2560 private uint defaultFixed32_ = 47;
2561 public bool HasDefaultFixed32 {
2562 get { return hasDefaultFixed32; }
2563 }
2564 [global::System.CLSCompliant(false)]
2565 public uint DefaultFixed32 {
2566 get { return defaultFixed32_; }
2567 }
2568
2569 public const int DefaultFixed64FieldNumber = 68;
2570 private bool hasDefaultFixed64;
2571 private ulong defaultFixed64_ = 48;
2572 public bool HasDefaultFixed64 {
2573 get { return hasDefaultFixed64; }
2574 }
2575 [global::System.CLSCompliant(false)]
2576 public ulong DefaultFixed64 {
2577 get { return defaultFixed64_; }
2578 }
2579
2580 public const int DefaultSfixed32FieldNumber = 69;
2581 private bool hasDefaultSfixed32;
2582 private int defaultSfixed32_ = 49;
2583 public bool HasDefaultSfixed32 {
2584 get { return hasDefaultSfixed32; }
2585 }
2586 public int DefaultSfixed32 {
2587 get { return defaultSfixed32_; }
2588 }
2589
2590 public const int DefaultSfixed64FieldNumber = 70;
2591 private bool hasDefaultSfixed64;
2592 private long defaultSfixed64_ = -50;
2593 public bool HasDefaultSfixed64 {
2594 get { return hasDefaultSfixed64; }
2595 }
2596 public long DefaultSfixed64 {
2597 get { return defaultSfixed64_; }
2598 }
2599
2600 public const int DefaultFloatFieldNumber = 71;
2601 private bool hasDefaultFloat;
2602 private float defaultFloat_ = 51.5F;
2603 public bool HasDefaultFloat {
2604 get { return hasDefaultFloat; }
2605 }
2606 public float DefaultFloat {
2607 get { return defaultFloat_; }
2608 }
2609
2610 public const int DefaultDoubleFieldNumber = 72;
2611 private bool hasDefaultDouble;
2612 private double defaultDouble_ = 52000D;
2613 public bool HasDefaultDouble {
2614 get { return hasDefaultDouble; }
2615 }
2616 public double DefaultDouble {
2617 get { return defaultDouble_; }
2618 }
2619
2620 public const int DefaultBoolFieldNumber = 73;
2621 private bool hasDefaultBool;
2622 private bool defaultBool_ = true;
2623 public bool HasDefaultBool {
2624 get { return hasDefaultBool; }
2625 }
2626 public bool DefaultBool {
2627 get { return defaultBool_; }
2628 }
2629
2630 public const int DefaultStringFieldNumber = 74;
2631 private bool hasDefaultString;
2632 private string defaultString_ = "hello";
2633 public bool HasDefaultString {
2634 get { return hasDefaultString; }
2635 }
2636 public string DefaultString {
2637 get { return defaultString_; }
2638 }
2639
2640 public const int DefaultBytesFieldNumber = 75;
2641 private bool hasDefaultBytes;
csharptest02760b22011-07-14 14:46:42 -05002642 private pb::ByteString defaultBytes_ = pb::ByteString.FromBase64("d29ybGQ=");
Jon Skeet82bb0f12011-04-03 20:17:12 +01002643 public bool HasDefaultBytes {
2644 get { return hasDefaultBytes; }
2645 }
2646 public pb::ByteString DefaultBytes {
2647 get { return defaultBytes_; }
2648 }
2649
2650 public const int DefaultNestedEnumFieldNumber = 81;
2651 private bool hasDefaultNestedEnum;
2652 private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
2653 public bool HasDefaultNestedEnum {
2654 get { return hasDefaultNestedEnum; }
2655 }
2656 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
2657 get { return defaultNestedEnum_; }
2658 }
2659
2660 public const int DefaultForeignEnumFieldNumber = 82;
2661 private bool hasDefaultForeignEnum;
2662 private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
2663 public bool HasDefaultForeignEnum {
2664 get { return hasDefaultForeignEnum; }
2665 }
2666 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
2667 get { return defaultForeignEnum_; }
2668 }
2669
2670 public const int DefaultImportEnumFieldNumber = 83;
2671 private bool hasDefaultImportEnum;
2672 private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
2673 public bool HasDefaultImportEnum {
2674 get { return hasDefaultImportEnum; }
2675 }
2676 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
2677 get { return defaultImportEnum_; }
2678 }
2679
2680 public const int DefaultStringPieceFieldNumber = 84;
2681 private bool hasDefaultStringPiece;
2682 private string defaultStringPiece_ = "abc";
2683 public bool HasDefaultStringPiece {
2684 get { return hasDefaultStringPiece; }
2685 }
2686 public string DefaultStringPiece {
2687 get { return defaultStringPiece_; }
2688 }
2689
2690 public const int DefaultCordFieldNumber = 85;
2691 private bool hasDefaultCord;
2692 private string defaultCord_ = "123";
2693 public bool HasDefaultCord {
2694 get { return hasDefaultCord; }
2695 }
2696 public string DefaultCord {
2697 get { return defaultCord_; }
2698 }
2699
2700 public override bool IsInitialized {
2701 get {
2702 return true;
2703 }
2704 }
2705
csharptestffafdaa2011-06-03 12:58:14 -05002706 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002707 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05002708 string[] field_names = _testAllTypesLiteFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05002709 if (hasOptionalInt32) {
csharptest920b09a2011-06-08 20:13:29 -05002710 output.WriteInt32(1, field_names[31], OptionalInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002711 }
csharptestc671a4b2011-06-08 11:51:24 -05002712 if (hasOptionalInt64) {
csharptest920b09a2011-06-08 20:13:29 -05002713 output.WriteInt64(2, field_names[32], OptionalInt64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002714 }
csharptestc671a4b2011-06-08 11:51:24 -05002715 if (hasOptionalUint32) {
csharptest920b09a2011-06-08 20:13:29 -05002716 output.WriteUInt32(3, field_names[41], OptionalUint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002717 }
csharptestc671a4b2011-06-08 11:51:24 -05002718 if (hasOptionalUint64) {
csharptest920b09a2011-06-08 20:13:29 -05002719 output.WriteUInt64(4, field_names[42], OptionalUint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002720 }
csharptestc671a4b2011-06-08 11:51:24 -05002721 if (hasOptionalSint32) {
csharptest920b09a2011-06-08 20:13:29 -05002722 output.WriteSInt32(5, field_names[37], OptionalSint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002723 }
csharptestc671a4b2011-06-08 11:51:24 -05002724 if (hasOptionalSint64) {
csharptest920b09a2011-06-08 20:13:29 -05002725 output.WriteSInt64(6, field_names[38], OptionalSint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002726 }
csharptestc671a4b2011-06-08 11:51:24 -05002727 if (hasOptionalFixed32) {
csharptest920b09a2011-06-08 20:13:29 -05002728 output.WriteFixed32(7, field_names[24], OptionalFixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002729 }
csharptestc671a4b2011-06-08 11:51:24 -05002730 if (hasOptionalFixed64) {
csharptest920b09a2011-06-08 20:13:29 -05002731 output.WriteFixed64(8, field_names[25], OptionalFixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002732 }
csharptestc671a4b2011-06-08 11:51:24 -05002733 if (hasOptionalSfixed32) {
csharptest920b09a2011-06-08 20:13:29 -05002734 output.WriteSFixed32(9, field_names[35], OptionalSfixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002735 }
csharptestc671a4b2011-06-08 11:51:24 -05002736 if (hasOptionalSfixed64) {
csharptest920b09a2011-06-08 20:13:29 -05002737 output.WriteSFixed64(10, field_names[36], OptionalSfixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002738 }
csharptestc671a4b2011-06-08 11:51:24 -05002739 if (hasOptionalFloat) {
csharptest920b09a2011-06-08 20:13:29 -05002740 output.WriteFloat(11, field_names[26], OptionalFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002741 }
csharptestc671a4b2011-06-08 11:51:24 -05002742 if (hasOptionalDouble) {
csharptest920b09a2011-06-08 20:13:29 -05002743 output.WriteDouble(12, field_names[23], OptionalDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002744 }
csharptestc671a4b2011-06-08 11:51:24 -05002745 if (hasOptionalBool) {
csharptest920b09a2011-06-08 20:13:29 -05002746 output.WriteBool(13, field_names[20], OptionalBool);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002747 }
csharptestc671a4b2011-06-08 11:51:24 -05002748 if (hasOptionalString) {
csharptest920b09a2011-06-08 20:13:29 -05002749 output.WriteString(14, field_names[39], OptionalString);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002750 }
csharptestc671a4b2011-06-08 11:51:24 -05002751 if (hasOptionalBytes) {
csharptest920b09a2011-06-08 20:13:29 -05002752 output.WriteBytes(15, field_names[21], OptionalBytes);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002753 }
csharptestc671a4b2011-06-08 11:51:24 -05002754 if (hasOptionalGroup) {
csharptest920b09a2011-06-08 20:13:29 -05002755 output.WriteGroup(16, field_names[43], OptionalGroup);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002756 }
csharptestc671a4b2011-06-08 11:51:24 -05002757 if (hasOptionalNestedMessage) {
csharptest920b09a2011-06-08 20:13:29 -05002758 output.WriteMessage(18, field_names[34], OptionalNestedMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002759 }
csharptestc671a4b2011-06-08 11:51:24 -05002760 if (hasOptionalForeignMessage) {
csharptest920b09a2011-06-08 20:13:29 -05002761 output.WriteMessage(19, field_names[28], OptionalForeignMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002762 }
csharptestc671a4b2011-06-08 11:51:24 -05002763 if (hasOptionalImportMessage) {
csharptest920b09a2011-06-08 20:13:29 -05002764 output.WriteMessage(20, field_names[30], OptionalImportMessage);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002765 }
csharptestc671a4b2011-06-08 11:51:24 -05002766 if (hasOptionalNestedEnum) {
csharptestced18e12011-06-09 19:47:56 -05002767 output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002768 }
csharptestc671a4b2011-06-08 11:51:24 -05002769 if (hasOptionalForeignEnum) {
csharptestced18e12011-06-09 19:47:56 -05002770 output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002771 }
csharptestc671a4b2011-06-08 11:51:24 -05002772 if (hasOptionalImportEnum) {
csharptestced18e12011-06-09 19:47:56 -05002773 output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002774 }
csharptestc671a4b2011-06-08 11:51:24 -05002775 if (hasOptionalStringPiece) {
csharptest920b09a2011-06-08 20:13:29 -05002776 output.WriteString(24, field_names[40], OptionalStringPiece);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002777 }
csharptestc671a4b2011-06-08 11:51:24 -05002778 if (hasOptionalCord) {
csharptest920b09a2011-06-08 20:13:29 -05002779 output.WriteString(25, field_names[22], OptionalCord);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002780 }
2781 if (repeatedInt32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002782 output.WriteInt32Array(31, field_names[55], repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002783 }
2784 if (repeatedInt64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002785 output.WriteInt64Array(32, field_names[56], repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002786 }
2787 if (repeatedUint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002788 output.WriteUInt32Array(33, field_names[65], repeatedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002789 }
2790 if (repeatedUint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002791 output.WriteUInt64Array(34, field_names[66], repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002792 }
2793 if (repeatedSint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002794 output.WriteSInt32Array(35, field_names[61], repeatedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002795 }
2796 if (repeatedSint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002797 output.WriteSInt64Array(36, field_names[62], repeatedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002798 }
2799 if (repeatedFixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002800 output.WriteFixed32Array(37, field_names[48], repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002801 }
2802 if (repeatedFixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002803 output.WriteFixed64Array(38, field_names[49], repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002804 }
2805 if (repeatedSfixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002806 output.WriteSFixed32Array(39, field_names[59], repeatedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002807 }
2808 if (repeatedSfixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002809 output.WriteSFixed64Array(40, field_names[60], repeatedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002810 }
2811 if (repeatedFloat_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002812 output.WriteFloatArray(41, field_names[50], repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002813 }
2814 if (repeatedDouble_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002815 output.WriteDoubleArray(42, field_names[47], repeatedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002816 }
2817 if (repeatedBool_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002818 output.WriteBoolArray(43, field_names[44], repeatedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002819 }
2820 if (repeatedString_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002821 output.WriteStringArray(44, field_names[63], repeatedString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002822 }
2823 if (repeatedBytes_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002824 output.WriteBytesArray(45, field_names[45], repeatedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002825 }
csharptest90922db2011-06-03 11:57:47 -05002826 if (repeatedGroup_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002827 output.WriteGroupArray(46, field_names[67], repeatedGroup_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002828 }
csharptest90922db2011-06-03 11:57:47 -05002829 if (repeatedNestedMessage_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002830 output.WriteMessageArray(48, field_names[58], repeatedNestedMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002831 }
csharptest90922db2011-06-03 11:57:47 -05002832 if (repeatedForeignMessage_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002833 output.WriteMessageArray(49, field_names[52], repeatedForeignMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002834 }
csharptest90922db2011-06-03 11:57:47 -05002835 if (repeatedImportMessage_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002836 output.WriteMessageArray(50, field_names[54], repeatedImportMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002837 }
2838 if (repeatedNestedEnum_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002839 output.WriteEnumArray(51, field_names[57], repeatedNestedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002840 }
2841 if (repeatedForeignEnum_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002842 output.WriteEnumArray(52, field_names[51], repeatedForeignEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002843 }
2844 if (repeatedImportEnum_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002845 output.WriteEnumArray(53, field_names[53], repeatedImportEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002846 }
2847 if (repeatedStringPiece_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002848 output.WriteStringArray(54, field_names[64], repeatedStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002849 }
2850 if (repeatedCord_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05002851 output.WriteStringArray(55, field_names[46], repeatedCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002852 }
csharptestc671a4b2011-06-08 11:51:24 -05002853 if (hasDefaultInt32) {
csharptest920b09a2011-06-08 20:13:29 -05002854 output.WriteInt32(61, field_names[9], DefaultInt32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002855 }
csharptestc671a4b2011-06-08 11:51:24 -05002856 if (hasDefaultInt64) {
csharptest920b09a2011-06-08 20:13:29 -05002857 output.WriteInt64(62, field_names[10], DefaultInt64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002858 }
csharptestc671a4b2011-06-08 11:51:24 -05002859 if (hasDefaultUint32) {
csharptest920b09a2011-06-08 20:13:29 -05002860 output.WriteUInt32(63, field_names[18], DefaultUint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002861 }
csharptestc671a4b2011-06-08 11:51:24 -05002862 if (hasDefaultUint64) {
csharptest920b09a2011-06-08 20:13:29 -05002863 output.WriteUInt64(64, field_names[19], DefaultUint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002864 }
csharptestc671a4b2011-06-08 11:51:24 -05002865 if (hasDefaultSint32) {
csharptest920b09a2011-06-08 20:13:29 -05002866 output.WriteSInt32(65, field_names[14], DefaultSint32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002867 }
csharptestc671a4b2011-06-08 11:51:24 -05002868 if (hasDefaultSint64) {
csharptest920b09a2011-06-08 20:13:29 -05002869 output.WriteSInt64(66, field_names[15], DefaultSint64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002870 }
csharptestc671a4b2011-06-08 11:51:24 -05002871 if (hasDefaultFixed32) {
csharptest920b09a2011-06-08 20:13:29 -05002872 output.WriteFixed32(67, field_names[4], DefaultFixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002873 }
csharptestc671a4b2011-06-08 11:51:24 -05002874 if (hasDefaultFixed64) {
csharptest920b09a2011-06-08 20:13:29 -05002875 output.WriteFixed64(68, field_names[5], DefaultFixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002876 }
csharptestc671a4b2011-06-08 11:51:24 -05002877 if (hasDefaultSfixed32) {
csharptest920b09a2011-06-08 20:13:29 -05002878 output.WriteSFixed32(69, field_names[12], DefaultSfixed32);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002879 }
csharptestc671a4b2011-06-08 11:51:24 -05002880 if (hasDefaultSfixed64) {
csharptest920b09a2011-06-08 20:13:29 -05002881 output.WriteSFixed64(70, field_names[13], DefaultSfixed64);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002882 }
csharptestc671a4b2011-06-08 11:51:24 -05002883 if (hasDefaultFloat) {
csharptest920b09a2011-06-08 20:13:29 -05002884 output.WriteFloat(71, field_names[6], DefaultFloat);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002885 }
csharptestc671a4b2011-06-08 11:51:24 -05002886 if (hasDefaultDouble) {
csharptest920b09a2011-06-08 20:13:29 -05002887 output.WriteDouble(72, field_names[3], DefaultDouble);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002888 }
csharptestc671a4b2011-06-08 11:51:24 -05002889 if (hasDefaultBool) {
csharptest920b09a2011-06-08 20:13:29 -05002890 output.WriteBool(73, field_names[0], DefaultBool);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002891 }
csharptestc671a4b2011-06-08 11:51:24 -05002892 if (hasDefaultString) {
csharptest920b09a2011-06-08 20:13:29 -05002893 output.WriteString(74, field_names[16], DefaultString);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002894 }
csharptestc671a4b2011-06-08 11:51:24 -05002895 if (hasDefaultBytes) {
csharptest920b09a2011-06-08 20:13:29 -05002896 output.WriteBytes(75, field_names[1], DefaultBytes);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002897 }
csharptestc671a4b2011-06-08 11:51:24 -05002898 if (hasDefaultNestedEnum) {
csharptestced18e12011-06-09 19:47:56 -05002899 output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002900 }
csharptestc671a4b2011-06-08 11:51:24 -05002901 if (hasDefaultForeignEnum) {
csharptestced18e12011-06-09 19:47:56 -05002902 output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002903 }
csharptestc671a4b2011-06-08 11:51:24 -05002904 if (hasDefaultImportEnum) {
csharptestced18e12011-06-09 19:47:56 -05002905 output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002906 }
csharptestc671a4b2011-06-08 11:51:24 -05002907 if (hasDefaultStringPiece) {
csharptest920b09a2011-06-08 20:13:29 -05002908 output.WriteString(84, field_names[17], DefaultStringPiece);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002909 }
csharptestc671a4b2011-06-08 11:51:24 -05002910 if (hasDefaultCord) {
csharptest920b09a2011-06-08 20:13:29 -05002911 output.WriteString(85, field_names[2], DefaultCord);
Jon Skeet82bb0f12011-04-03 20:17:12 +01002912 }
2913 }
2914
2915 private int memoizedSerializedSize = -1;
2916 public override int SerializedSize {
2917 get {
2918 int size = memoizedSerializedSize;
2919 if (size != -1) return size;
2920
2921 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05002922 if (hasOptionalInt32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002923 size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
2924 }
csharptestc671a4b2011-06-08 11:51:24 -05002925 if (hasOptionalInt64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002926 size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
2927 }
csharptestc671a4b2011-06-08 11:51:24 -05002928 if (hasOptionalUint32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002929 size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
2930 }
csharptestc671a4b2011-06-08 11:51:24 -05002931 if (hasOptionalUint64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002932 size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
2933 }
csharptestc671a4b2011-06-08 11:51:24 -05002934 if (hasOptionalSint32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002935 size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
2936 }
csharptestc671a4b2011-06-08 11:51:24 -05002937 if (hasOptionalSint64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002938 size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
2939 }
csharptestc671a4b2011-06-08 11:51:24 -05002940 if (hasOptionalFixed32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002941 size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
2942 }
csharptestc671a4b2011-06-08 11:51:24 -05002943 if (hasOptionalFixed64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002944 size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
2945 }
csharptestc671a4b2011-06-08 11:51:24 -05002946 if (hasOptionalSfixed32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002947 size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
2948 }
csharptestc671a4b2011-06-08 11:51:24 -05002949 if (hasOptionalSfixed64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002950 size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
2951 }
csharptestc671a4b2011-06-08 11:51:24 -05002952 if (hasOptionalFloat) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002953 size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
2954 }
csharptestc671a4b2011-06-08 11:51:24 -05002955 if (hasOptionalDouble) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002956 size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
2957 }
csharptestc671a4b2011-06-08 11:51:24 -05002958 if (hasOptionalBool) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002959 size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
2960 }
csharptestc671a4b2011-06-08 11:51:24 -05002961 if (hasOptionalString) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002962 size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
2963 }
csharptestc671a4b2011-06-08 11:51:24 -05002964 if (hasOptionalBytes) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002965 size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
2966 }
csharptestc671a4b2011-06-08 11:51:24 -05002967 if (hasOptionalGroup) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002968 size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
2969 }
csharptestc671a4b2011-06-08 11:51:24 -05002970 if (hasOptionalNestedMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002971 size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
2972 }
csharptestc671a4b2011-06-08 11:51:24 -05002973 if (hasOptionalForeignMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002974 size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
2975 }
csharptestc671a4b2011-06-08 11:51:24 -05002976 if (hasOptionalImportMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002977 size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
2978 }
csharptestc671a4b2011-06-08 11:51:24 -05002979 if (hasOptionalNestedEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002980 size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
2981 }
csharptestc671a4b2011-06-08 11:51:24 -05002982 if (hasOptionalForeignEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002983 size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
2984 }
csharptestc671a4b2011-06-08 11:51:24 -05002985 if (hasOptionalImportEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002986 size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
2987 }
csharptestc671a4b2011-06-08 11:51:24 -05002988 if (hasOptionalStringPiece) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002989 size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
2990 }
csharptestc671a4b2011-06-08 11:51:24 -05002991 if (hasOptionalCord) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01002992 size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
2993 }
2994 {
2995 int dataSize = 0;
2996 foreach (int element in RepeatedInt32List) {
2997 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
2998 }
2999 size += dataSize;
3000 size += 2 * repeatedInt32_.Count;
3001 }
3002 {
3003 int dataSize = 0;
3004 foreach (long element in RepeatedInt64List) {
3005 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
3006 }
3007 size += dataSize;
3008 size += 2 * repeatedInt64_.Count;
3009 }
3010 {
3011 int dataSize = 0;
3012 foreach (uint element in RepeatedUint32List) {
3013 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
3014 }
3015 size += dataSize;
3016 size += 2 * repeatedUint32_.Count;
3017 }
3018 {
3019 int dataSize = 0;
3020 foreach (ulong element in RepeatedUint64List) {
3021 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
3022 }
3023 size += dataSize;
3024 size += 2 * repeatedUint64_.Count;
3025 }
3026 {
3027 int dataSize = 0;
3028 foreach (int element in RepeatedSint32List) {
3029 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
3030 }
3031 size += dataSize;
3032 size += 2 * repeatedSint32_.Count;
3033 }
3034 {
3035 int dataSize = 0;
3036 foreach (long element in RepeatedSint64List) {
3037 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
3038 }
3039 size += dataSize;
3040 size += 2 * repeatedSint64_.Count;
3041 }
3042 {
3043 int dataSize = 0;
3044 dataSize = 4 * repeatedFixed32_.Count;
3045 size += dataSize;
3046 size += 2 * repeatedFixed32_.Count;
3047 }
3048 {
3049 int dataSize = 0;
3050 dataSize = 8 * repeatedFixed64_.Count;
3051 size += dataSize;
3052 size += 2 * repeatedFixed64_.Count;
3053 }
3054 {
3055 int dataSize = 0;
3056 dataSize = 4 * repeatedSfixed32_.Count;
3057 size += dataSize;
3058 size += 2 * repeatedSfixed32_.Count;
3059 }
3060 {
3061 int dataSize = 0;
3062 dataSize = 8 * repeatedSfixed64_.Count;
3063 size += dataSize;
3064 size += 2 * repeatedSfixed64_.Count;
3065 }
3066 {
3067 int dataSize = 0;
3068 dataSize = 4 * repeatedFloat_.Count;
3069 size += dataSize;
3070 size += 2 * repeatedFloat_.Count;
3071 }
3072 {
3073 int dataSize = 0;
3074 dataSize = 8 * repeatedDouble_.Count;
3075 size += dataSize;
3076 size += 2 * repeatedDouble_.Count;
3077 }
3078 {
3079 int dataSize = 0;
3080 dataSize = 1 * repeatedBool_.Count;
3081 size += dataSize;
3082 size += 2 * repeatedBool_.Count;
3083 }
3084 {
3085 int dataSize = 0;
3086 foreach (string element in RepeatedStringList) {
3087 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
3088 }
3089 size += dataSize;
3090 size += 2 * repeatedString_.Count;
3091 }
3092 {
3093 int dataSize = 0;
3094 foreach (pb::ByteString element in RepeatedBytesList) {
3095 dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
3096 }
3097 size += dataSize;
3098 size += 2 * repeatedBytes_.Count;
3099 }
3100 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
3101 size += pb::CodedOutputStream.ComputeGroupSize(46, element);
3102 }
3103 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
3104 size += pb::CodedOutputStream.ComputeMessageSize(48, element);
3105 }
3106 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
3107 size += pb::CodedOutputStream.ComputeMessageSize(49, element);
3108 }
3109 foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
3110 size += pb::CodedOutputStream.ComputeMessageSize(50, element);
3111 }
3112 {
3113 int dataSize = 0;
3114 if (repeatedNestedEnum_.Count > 0) {
3115 foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) {
3116 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
3117 }
3118 size += dataSize;
3119 size += 2 * repeatedNestedEnum_.Count;
3120 }
3121 }
3122 {
3123 int dataSize = 0;
3124 if (repeatedForeignEnum_.Count > 0) {
3125 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) {
3126 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
3127 }
3128 size += dataSize;
3129 size += 2 * repeatedForeignEnum_.Count;
3130 }
3131 }
3132 {
3133 int dataSize = 0;
3134 if (repeatedImportEnum_.Count > 0) {
3135 foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) {
3136 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
3137 }
3138 size += dataSize;
3139 size += 2 * repeatedImportEnum_.Count;
3140 }
3141 }
3142 {
3143 int dataSize = 0;
3144 foreach (string element in RepeatedStringPieceList) {
3145 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
3146 }
3147 size += dataSize;
3148 size += 2 * repeatedStringPiece_.Count;
3149 }
3150 {
3151 int dataSize = 0;
3152 foreach (string element in RepeatedCordList) {
3153 dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
3154 }
3155 size += dataSize;
3156 size += 2 * repeatedCord_.Count;
3157 }
csharptestc671a4b2011-06-08 11:51:24 -05003158 if (hasDefaultInt32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003159 size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
3160 }
csharptestc671a4b2011-06-08 11:51:24 -05003161 if (hasDefaultInt64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003162 size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
3163 }
csharptestc671a4b2011-06-08 11:51:24 -05003164 if (hasDefaultUint32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003165 size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
3166 }
csharptestc671a4b2011-06-08 11:51:24 -05003167 if (hasDefaultUint64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003168 size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
3169 }
csharptestc671a4b2011-06-08 11:51:24 -05003170 if (hasDefaultSint32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003171 size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
3172 }
csharptestc671a4b2011-06-08 11:51:24 -05003173 if (hasDefaultSint64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003174 size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
3175 }
csharptestc671a4b2011-06-08 11:51:24 -05003176 if (hasDefaultFixed32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003177 size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
3178 }
csharptestc671a4b2011-06-08 11:51:24 -05003179 if (hasDefaultFixed64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003180 size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
3181 }
csharptestc671a4b2011-06-08 11:51:24 -05003182 if (hasDefaultSfixed32) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003183 size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
3184 }
csharptestc671a4b2011-06-08 11:51:24 -05003185 if (hasDefaultSfixed64) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003186 size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
3187 }
csharptestc671a4b2011-06-08 11:51:24 -05003188 if (hasDefaultFloat) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003189 size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
3190 }
csharptestc671a4b2011-06-08 11:51:24 -05003191 if (hasDefaultDouble) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003192 size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
3193 }
csharptestc671a4b2011-06-08 11:51:24 -05003194 if (hasDefaultBool) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003195 size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
3196 }
csharptestc671a4b2011-06-08 11:51:24 -05003197 if (hasDefaultString) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003198 size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
3199 }
csharptestc671a4b2011-06-08 11:51:24 -05003200 if (hasDefaultBytes) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003201 size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
3202 }
csharptestc671a4b2011-06-08 11:51:24 -05003203 if (hasDefaultNestedEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003204 size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
3205 }
csharptestc671a4b2011-06-08 11:51:24 -05003206 if (hasDefaultForeignEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003207 size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
3208 }
csharptestc671a4b2011-06-08 11:51:24 -05003209 if (hasDefaultImportEnum) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003210 size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
3211 }
csharptestc671a4b2011-06-08 11:51:24 -05003212 if (hasDefaultStringPiece) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003213 size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
3214 }
csharptestc671a4b2011-06-08 11:51:24 -05003215 if (hasDefaultCord) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003216 size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
3217 }
3218 memoizedSerializedSize = size;
3219 return size;
3220 }
3221 }
3222
3223 #region Lite runtime methods
3224 public override int GetHashCode() {
3225 int hash = GetType().GetHashCode();
3226 if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
3227 if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
3228 if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
3229 if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
3230 if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
3231 if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
3232 if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
3233 if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
3234 if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
3235 if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
3236 if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
3237 if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
3238 if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
3239 if (hasOptionalString) hash ^= optionalString_.GetHashCode();
3240 if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
3241 if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
3242 if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
3243 if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
3244 if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
3245 if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
3246 if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
3247 if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
3248 if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
3249 if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
3250 foreach(int i in repeatedInt32_)
3251 hash ^= i.GetHashCode();
3252 foreach(long i in repeatedInt64_)
3253 hash ^= i.GetHashCode();
3254 foreach(uint i in repeatedUint32_)
3255 hash ^= i.GetHashCode();
3256 foreach(ulong i in repeatedUint64_)
3257 hash ^= i.GetHashCode();
3258 foreach(int i in repeatedSint32_)
3259 hash ^= i.GetHashCode();
3260 foreach(long i in repeatedSint64_)
3261 hash ^= i.GetHashCode();
3262 foreach(uint i in repeatedFixed32_)
3263 hash ^= i.GetHashCode();
3264 foreach(ulong i in repeatedFixed64_)
3265 hash ^= i.GetHashCode();
3266 foreach(int i in repeatedSfixed32_)
3267 hash ^= i.GetHashCode();
3268 foreach(long i in repeatedSfixed64_)
3269 hash ^= i.GetHashCode();
3270 foreach(float i in repeatedFloat_)
3271 hash ^= i.GetHashCode();
3272 foreach(double i in repeatedDouble_)
3273 hash ^= i.GetHashCode();
3274 foreach(bool i in repeatedBool_)
3275 hash ^= i.GetHashCode();
3276 foreach(string i in repeatedString_)
3277 hash ^= i.GetHashCode();
3278 foreach(pb::ByteString i in repeatedBytes_)
3279 hash ^= i.GetHashCode();
3280 foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
3281 hash ^= i.GetHashCode();
3282 foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
3283 hash ^= i.GetHashCode();
3284 foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
3285 hash ^= i.GetHashCode();
3286 foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
3287 hash ^= i.GetHashCode();
3288 foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
3289 hash ^= i.GetHashCode();
3290 foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
3291 hash ^= i.GetHashCode();
3292 foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
3293 hash ^= i.GetHashCode();
3294 foreach(string i in repeatedStringPiece_)
3295 hash ^= i.GetHashCode();
3296 foreach(string i in repeatedCord_)
3297 hash ^= i.GetHashCode();
3298 if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
3299 if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
3300 if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
3301 if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
3302 if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
3303 if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
3304 if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
3305 if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
3306 if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
3307 if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
3308 if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
3309 if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
3310 if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
3311 if (hasDefaultString) hash ^= defaultString_.GetHashCode();
3312 if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
3313 if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
3314 if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
3315 if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
3316 if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
3317 if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
3318 return hash;
3319 }
3320
3321 public override bool Equals(object obj) {
3322 TestAllTypesLite other = obj as TestAllTypesLite;
3323 if (other == null) return false;
3324 if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
3325 if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
3326 if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
3327 if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
3328 if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
3329 if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
3330 if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
3331 if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
3332 if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
3333 if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
3334 if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
3335 if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
3336 if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
3337 if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
3338 if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
3339 if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
3340 if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
3341 if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
3342 if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
3343 if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
3344 if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
3345 if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
3346 if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
3347 if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
3348 if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
3349 for(int ix=0; ix < repeatedInt32_.Count; ix++)
3350 if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
3351 if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
3352 for(int ix=0; ix < repeatedInt64_.Count; ix++)
3353 if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
3354 if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
3355 for(int ix=0; ix < repeatedUint32_.Count; ix++)
3356 if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
3357 if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
3358 for(int ix=0; ix < repeatedUint64_.Count; ix++)
3359 if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
3360 if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
3361 for(int ix=0; ix < repeatedSint32_.Count; ix++)
3362 if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
3363 if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
3364 for(int ix=0; ix < repeatedSint64_.Count; ix++)
3365 if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
3366 if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
3367 for(int ix=0; ix < repeatedFixed32_.Count; ix++)
3368 if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
3369 if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
3370 for(int ix=0; ix < repeatedFixed64_.Count; ix++)
3371 if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
3372 if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
3373 for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
3374 if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
3375 if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
3376 for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
3377 if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
3378 if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
3379 for(int ix=0; ix < repeatedFloat_.Count; ix++)
3380 if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
3381 if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
3382 for(int ix=0; ix < repeatedDouble_.Count; ix++)
3383 if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
3384 if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
3385 for(int ix=0; ix < repeatedBool_.Count; ix++)
3386 if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
3387 if(repeatedString_.Count != other.repeatedString_.Count) return false;
3388 for(int ix=0; ix < repeatedString_.Count; ix++)
3389 if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
3390 if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
3391 for(int ix=0; ix < repeatedBytes_.Count; ix++)
3392 if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
3393 if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
3394 for(int ix=0; ix < repeatedGroup_.Count; ix++)
3395 if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
3396 if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
3397 for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
3398 if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
3399 if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
3400 for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
3401 if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
3402 if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
3403 for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
3404 if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
3405 if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
3406 for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
3407 if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
3408 if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
3409 for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
3410 if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
3411 if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
3412 for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
3413 if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
3414 if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
3415 for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
3416 if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
3417 if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
3418 for(int ix=0; ix < repeatedCord_.Count; ix++)
3419 if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
3420 if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
3421 if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
3422 if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
3423 if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
3424 if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
3425 if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
3426 if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
3427 if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
3428 if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
3429 if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
3430 if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
3431 if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
3432 if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
3433 if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
3434 if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
3435 if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
3436 if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
3437 if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
3438 if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
3439 if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
3440 return true;
3441 }
3442
3443 public override void PrintTo(global::System.IO.TextWriter writer) {
3444 PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
3445 PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
3446 PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
3447 PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
3448 PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
3449 PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
3450 PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
3451 PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
3452 PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
3453 PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
3454 PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
3455 PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
3456 PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
3457 PrintField("optional_string", hasOptionalString, optionalString_, writer);
3458 PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
3459 PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
3460 PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
3461 PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
3462 PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
3463 PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
3464 PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
3465 PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
3466 PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
3467 PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
3468 PrintField("repeated_int32", repeatedInt32_, writer);
3469 PrintField("repeated_int64", repeatedInt64_, writer);
3470 PrintField("repeated_uint32", repeatedUint32_, writer);
3471 PrintField("repeated_uint64", repeatedUint64_, writer);
3472 PrintField("repeated_sint32", repeatedSint32_, writer);
3473 PrintField("repeated_sint64", repeatedSint64_, writer);
3474 PrintField("repeated_fixed32", repeatedFixed32_, writer);
3475 PrintField("repeated_fixed64", repeatedFixed64_, writer);
3476 PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
3477 PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
3478 PrintField("repeated_float", repeatedFloat_, writer);
3479 PrintField("repeated_double", repeatedDouble_, writer);
3480 PrintField("repeated_bool", repeatedBool_, writer);
3481 PrintField("repeated_string", repeatedString_, writer);
3482 PrintField("repeated_bytes", repeatedBytes_, writer);
3483 PrintField("RepeatedGroup", repeatedGroup_, writer);
3484 PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
3485 PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
3486 PrintField("repeated_import_message", repeatedImportMessage_, writer);
3487 PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
3488 PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
3489 PrintField("repeated_import_enum", repeatedImportEnum_, writer);
3490 PrintField("repeated_string_piece", repeatedStringPiece_, writer);
3491 PrintField("repeated_cord", repeatedCord_, writer);
3492 PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
3493 PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
3494 PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
3495 PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
3496 PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
3497 PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
3498 PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
3499 PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
3500 PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
3501 PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
3502 PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
3503 PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
3504 PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
3505 PrintField("default_string", hasDefaultString, defaultString_, writer);
3506 PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
3507 PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
3508 PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
3509 PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
3510 PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
3511 PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
3512 }
3513 #endregion
3514
3515 public static TestAllTypesLite ParseFrom(pb::ByteString data) {
3516 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3517 }
3518 public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
3519 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3520 }
3521 public static TestAllTypesLite ParseFrom(byte[] data) {
3522 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
3523 }
3524 public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
3525 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
3526 }
3527 public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
3528 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3529 }
3530 public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3531 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3532 }
3533 public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
3534 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
3535 }
3536 public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
3537 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
3538 }
csharptest17699c22011-06-03 21:57:15 -05003539 public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003540 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
3541 }
csharptest17699c22011-06-03 21:57:15 -05003542 public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003543 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
3544 }
3545 public static Builder CreateBuilder() { return new Builder(); }
3546 public override Builder ToBuilder() { return CreateBuilder(this); }
3547 public override Builder CreateBuilderForType() { return new Builder(); }
3548 public static Builder CreateBuilder(TestAllTypesLite prototype) {
3549 return (Builder) new Builder().MergeFrom(prototype);
3550 }
3551
csharptest445bdce2011-05-20 15:50:54 -05003552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3553 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
3554 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01003555 public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
3556 protected override Builder ThisBuilder {
3557 get { return this; }
3558 }
3559 public Builder() {}
3560
3561 TestAllTypesLite result = new TestAllTypesLite();
3562
3563 protected override TestAllTypesLite MessageBeingBuilt {
3564 get { return result; }
3565 }
3566
3567 public override Builder Clear() {
3568 result = new TestAllTypesLite();
3569 return this;
3570 }
3571
3572 public override Builder Clone() {
3573 return new Builder().MergeFrom(result);
3574 }
3575
3576 public override TestAllTypesLite DefaultInstanceForType {
3577 get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
3578 }
3579
3580 public override TestAllTypesLite BuildPartial() {
3581 if (result == null) {
3582 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
3583 }
3584 result.repeatedInt32_.MakeReadOnly();
3585 result.repeatedInt64_.MakeReadOnly();
3586 result.repeatedUint32_.MakeReadOnly();
3587 result.repeatedUint64_.MakeReadOnly();
3588 result.repeatedSint32_.MakeReadOnly();
3589 result.repeatedSint64_.MakeReadOnly();
3590 result.repeatedFixed32_.MakeReadOnly();
3591 result.repeatedFixed64_.MakeReadOnly();
3592 result.repeatedSfixed32_.MakeReadOnly();
3593 result.repeatedSfixed64_.MakeReadOnly();
3594 result.repeatedFloat_.MakeReadOnly();
3595 result.repeatedDouble_.MakeReadOnly();
3596 result.repeatedBool_.MakeReadOnly();
3597 result.repeatedString_.MakeReadOnly();
3598 result.repeatedBytes_.MakeReadOnly();
3599 result.repeatedGroup_.MakeReadOnly();
3600 result.repeatedNestedMessage_.MakeReadOnly();
3601 result.repeatedForeignMessage_.MakeReadOnly();
3602 result.repeatedImportMessage_.MakeReadOnly();
3603 result.repeatedNestedEnum_.MakeReadOnly();
3604 result.repeatedForeignEnum_.MakeReadOnly();
3605 result.repeatedImportEnum_.MakeReadOnly();
3606 result.repeatedStringPiece_.MakeReadOnly();
3607 result.repeatedCord_.MakeReadOnly();
3608 TestAllTypesLite returnMe = result;
3609 result = null;
3610 return returnMe;
3611 }
3612
3613 public override Builder MergeFrom(pb::IMessageLite other) {
3614 if (other is TestAllTypesLite) {
3615 return MergeFrom((TestAllTypesLite) other);
3616 } else {
3617 base.MergeFrom(other);
3618 return this;
3619 }
3620 }
3621
3622 public override Builder MergeFrom(TestAllTypesLite other) {
3623 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this;
3624 if (other.HasOptionalInt32) {
3625 OptionalInt32 = other.OptionalInt32;
3626 }
3627 if (other.HasOptionalInt64) {
3628 OptionalInt64 = other.OptionalInt64;
3629 }
3630 if (other.HasOptionalUint32) {
3631 OptionalUint32 = other.OptionalUint32;
3632 }
3633 if (other.HasOptionalUint64) {
3634 OptionalUint64 = other.OptionalUint64;
3635 }
3636 if (other.HasOptionalSint32) {
3637 OptionalSint32 = other.OptionalSint32;
3638 }
3639 if (other.HasOptionalSint64) {
3640 OptionalSint64 = other.OptionalSint64;
3641 }
3642 if (other.HasOptionalFixed32) {
3643 OptionalFixed32 = other.OptionalFixed32;
3644 }
3645 if (other.HasOptionalFixed64) {
3646 OptionalFixed64 = other.OptionalFixed64;
3647 }
3648 if (other.HasOptionalSfixed32) {
3649 OptionalSfixed32 = other.OptionalSfixed32;
3650 }
3651 if (other.HasOptionalSfixed64) {
3652 OptionalSfixed64 = other.OptionalSfixed64;
3653 }
3654 if (other.HasOptionalFloat) {
3655 OptionalFloat = other.OptionalFloat;
3656 }
3657 if (other.HasOptionalDouble) {
3658 OptionalDouble = other.OptionalDouble;
3659 }
3660 if (other.HasOptionalBool) {
3661 OptionalBool = other.OptionalBool;
3662 }
3663 if (other.HasOptionalString) {
3664 OptionalString = other.OptionalString;
3665 }
3666 if (other.HasOptionalBytes) {
3667 OptionalBytes = other.OptionalBytes;
3668 }
3669 if (other.HasOptionalGroup) {
3670 MergeOptionalGroup(other.OptionalGroup);
3671 }
3672 if (other.HasOptionalNestedMessage) {
3673 MergeOptionalNestedMessage(other.OptionalNestedMessage);
3674 }
3675 if (other.HasOptionalForeignMessage) {
3676 MergeOptionalForeignMessage(other.OptionalForeignMessage);
3677 }
3678 if (other.HasOptionalImportMessage) {
3679 MergeOptionalImportMessage(other.OptionalImportMessage);
3680 }
3681 if (other.HasOptionalNestedEnum) {
3682 OptionalNestedEnum = other.OptionalNestedEnum;
3683 }
3684 if (other.HasOptionalForeignEnum) {
3685 OptionalForeignEnum = other.OptionalForeignEnum;
3686 }
3687 if (other.HasOptionalImportEnum) {
3688 OptionalImportEnum = other.OptionalImportEnum;
3689 }
3690 if (other.HasOptionalStringPiece) {
3691 OptionalStringPiece = other.OptionalStringPiece;
3692 }
3693 if (other.HasOptionalCord) {
3694 OptionalCord = other.OptionalCord;
3695 }
3696 if (other.repeatedInt32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003697 result.repeatedInt32_.Add(other.repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003698 }
3699 if (other.repeatedInt64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003700 result.repeatedInt64_.Add(other.repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003701 }
3702 if (other.repeatedUint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003703 result.repeatedUint32_.Add(other.repeatedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003704 }
3705 if (other.repeatedUint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003706 result.repeatedUint64_.Add(other.repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003707 }
3708 if (other.repeatedSint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003709 result.repeatedSint32_.Add(other.repeatedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003710 }
3711 if (other.repeatedSint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003712 result.repeatedSint64_.Add(other.repeatedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003713 }
3714 if (other.repeatedFixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003715 result.repeatedFixed32_.Add(other.repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003716 }
3717 if (other.repeatedFixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003718 result.repeatedFixed64_.Add(other.repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003719 }
3720 if (other.repeatedSfixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003721 result.repeatedSfixed32_.Add(other.repeatedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003722 }
3723 if (other.repeatedSfixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003724 result.repeatedSfixed64_.Add(other.repeatedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003725 }
3726 if (other.repeatedFloat_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003727 result.repeatedFloat_.Add(other.repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003728 }
3729 if (other.repeatedDouble_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003730 result.repeatedDouble_.Add(other.repeatedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003731 }
3732 if (other.repeatedBool_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003733 result.repeatedBool_.Add(other.repeatedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003734 }
3735 if (other.repeatedString_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003736 result.repeatedString_.Add(other.repeatedString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003737 }
3738 if (other.repeatedBytes_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003739 result.repeatedBytes_.Add(other.repeatedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003740 }
3741 if (other.repeatedGroup_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003742 result.repeatedGroup_.Add(other.repeatedGroup_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003743 }
3744 if (other.repeatedNestedMessage_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003745 result.repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003746 }
3747 if (other.repeatedForeignMessage_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003748 result.repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003749 }
3750 if (other.repeatedImportMessage_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003751 result.repeatedImportMessage_.Add(other.repeatedImportMessage_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003752 }
3753 if (other.repeatedNestedEnum_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003754 result.repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003755 }
3756 if (other.repeatedForeignEnum_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003757 result.repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003758 }
3759 if (other.repeatedImportEnum_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003760 result.repeatedImportEnum_.Add(other.repeatedImportEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003761 }
3762 if (other.repeatedStringPiece_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003763 result.repeatedStringPiece_.Add(other.repeatedStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003764 }
3765 if (other.repeatedCord_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05003766 result.repeatedCord_.Add(other.repeatedCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003767 }
3768 if (other.HasDefaultInt32) {
3769 DefaultInt32 = other.DefaultInt32;
3770 }
3771 if (other.HasDefaultInt64) {
3772 DefaultInt64 = other.DefaultInt64;
3773 }
3774 if (other.HasDefaultUint32) {
3775 DefaultUint32 = other.DefaultUint32;
3776 }
3777 if (other.HasDefaultUint64) {
3778 DefaultUint64 = other.DefaultUint64;
3779 }
3780 if (other.HasDefaultSint32) {
3781 DefaultSint32 = other.DefaultSint32;
3782 }
3783 if (other.HasDefaultSint64) {
3784 DefaultSint64 = other.DefaultSint64;
3785 }
3786 if (other.HasDefaultFixed32) {
3787 DefaultFixed32 = other.DefaultFixed32;
3788 }
3789 if (other.HasDefaultFixed64) {
3790 DefaultFixed64 = other.DefaultFixed64;
3791 }
3792 if (other.HasDefaultSfixed32) {
3793 DefaultSfixed32 = other.DefaultSfixed32;
3794 }
3795 if (other.HasDefaultSfixed64) {
3796 DefaultSfixed64 = other.DefaultSfixed64;
3797 }
3798 if (other.HasDefaultFloat) {
3799 DefaultFloat = other.DefaultFloat;
3800 }
3801 if (other.HasDefaultDouble) {
3802 DefaultDouble = other.DefaultDouble;
3803 }
3804 if (other.HasDefaultBool) {
3805 DefaultBool = other.DefaultBool;
3806 }
3807 if (other.HasDefaultString) {
3808 DefaultString = other.DefaultString;
3809 }
3810 if (other.HasDefaultBytes) {
3811 DefaultBytes = other.DefaultBytes;
3812 }
3813 if (other.HasDefaultNestedEnum) {
3814 DefaultNestedEnum = other.DefaultNestedEnum;
3815 }
3816 if (other.HasDefaultForeignEnum) {
3817 DefaultForeignEnum = other.DefaultForeignEnum;
3818 }
3819 if (other.HasDefaultImportEnum) {
3820 DefaultImportEnum = other.DefaultImportEnum;
3821 }
3822 if (other.HasDefaultStringPiece) {
3823 DefaultStringPiece = other.DefaultStringPiece;
3824 }
3825 if (other.HasDefaultCord) {
3826 DefaultCord = other.DefaultCord;
3827 }
3828 return this;
3829 }
3830
csharptest17699c22011-06-03 21:57:15 -05003831 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003832 return MergeFrom(input, pb::ExtensionRegistry.Empty);
3833 }
3834
csharptest17699c22011-06-03 21:57:15 -05003835 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05003836 uint tag;
3837 string field_name;
3838 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05003839 if(tag == 0 && field_name != null) {
3840 int field_ordinal = global::System.Array.BinarySearch(_testAllTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
3841 if(field_ordinal >= 0)
3842 tag = _testAllTypesLiteFieldTags[field_ordinal];
3843 else {
3844 ParseUnknownField(input, extensionRegistry, tag, field_name);
3845 continue;
3846 }
3847 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01003848 switch (tag) {
3849 case 0: {
csharptest99284412011-06-03 14:51:06 -05003850 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01003851 }
3852 default: {
3853 if (pb::WireFormat.IsEndGroupTag(tag)) {
3854 return this;
3855 }
csharptestd2af9e92011-06-03 21:35:02 -05003856 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003857 break;
3858 }
3859 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05003860 result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003861 break;
3862 }
3863 case 16: {
csharptest920b09a2011-06-08 20:13:29 -05003864 result.hasOptionalInt64 = input.ReadInt64(ref result.optionalInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003865 break;
3866 }
3867 case 24: {
csharptest920b09a2011-06-08 20:13:29 -05003868 result.hasOptionalUint32 = input.ReadUInt32(ref result.optionalUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003869 break;
3870 }
3871 case 32: {
csharptest920b09a2011-06-08 20:13:29 -05003872 result.hasOptionalUint64 = input.ReadUInt64(ref result.optionalUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003873 break;
3874 }
3875 case 40: {
csharptest920b09a2011-06-08 20:13:29 -05003876 result.hasOptionalSint32 = input.ReadSInt32(ref result.optionalSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003877 break;
3878 }
3879 case 48: {
csharptest920b09a2011-06-08 20:13:29 -05003880 result.hasOptionalSint64 = input.ReadSInt64(ref result.optionalSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003881 break;
3882 }
3883 case 61: {
csharptest920b09a2011-06-08 20:13:29 -05003884 result.hasOptionalFixed32 = input.ReadFixed32(ref result.optionalFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003885 break;
3886 }
3887 case 65: {
csharptest920b09a2011-06-08 20:13:29 -05003888 result.hasOptionalFixed64 = input.ReadFixed64(ref result.optionalFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003889 break;
3890 }
3891 case 77: {
csharptest920b09a2011-06-08 20:13:29 -05003892 result.hasOptionalSfixed32 = input.ReadSFixed32(ref result.optionalSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003893 break;
3894 }
3895 case 81: {
csharptest920b09a2011-06-08 20:13:29 -05003896 result.hasOptionalSfixed64 = input.ReadSFixed64(ref result.optionalSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003897 break;
3898 }
3899 case 93: {
csharptest920b09a2011-06-08 20:13:29 -05003900 result.hasOptionalFloat = input.ReadFloat(ref result.optionalFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003901 break;
3902 }
3903 case 97: {
csharptest920b09a2011-06-08 20:13:29 -05003904 result.hasOptionalDouble = input.ReadDouble(ref result.optionalDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003905 break;
3906 }
3907 case 104: {
csharptest920b09a2011-06-08 20:13:29 -05003908 result.hasOptionalBool = input.ReadBool(ref result.optionalBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003909 break;
3910 }
3911 case 114: {
csharptest920b09a2011-06-08 20:13:29 -05003912 result.hasOptionalString = input.ReadString(ref result.optionalString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003913 break;
3914 }
3915 case 122: {
csharptest920b09a2011-06-08 20:13:29 -05003916 result.hasOptionalBytes = input.ReadBytes(ref result.optionalBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003917 break;
3918 }
3919 case 131: {
3920 global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder();
csharptestc671a4b2011-06-08 11:51:24 -05003921 if (result.hasOptionalGroup) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003922 subBuilder.MergeFrom(OptionalGroup);
3923 }
3924 input.ReadGroup(16, subBuilder, extensionRegistry);
3925 OptionalGroup = subBuilder.BuildPartial();
3926 break;
3927 }
3928 case 146: {
3929 global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder();
csharptestc671a4b2011-06-08 11:51:24 -05003930 if (result.hasOptionalNestedMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003931 subBuilder.MergeFrom(OptionalNestedMessage);
3932 }
3933 input.ReadMessage(subBuilder, extensionRegistry);
3934 OptionalNestedMessage = subBuilder.BuildPartial();
3935 break;
3936 }
3937 case 154: {
3938 global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
csharptestc671a4b2011-06-08 11:51:24 -05003939 if (result.hasOptionalForeignMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003940 subBuilder.MergeFrom(OptionalForeignMessage);
3941 }
3942 input.ReadMessage(subBuilder, extensionRegistry);
3943 OptionalForeignMessage = subBuilder.BuildPartial();
3944 break;
3945 }
3946 case 162: {
3947 global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder();
csharptestc671a4b2011-06-08 11:51:24 -05003948 if (result.hasOptionalImportMessage) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003949 subBuilder.MergeFrom(OptionalImportMessage);
3950 }
3951 input.ReadMessage(subBuilder, extensionRegistry);
3952 OptionalImportMessage = subBuilder.BuildPartial();
3953 break;
3954 }
3955 case 168: {
csharptestd2af9e92011-06-03 21:35:02 -05003956 object unknown;
3957 if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
3958 result.hasOptionalNestedEnum = true;
3959 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003960 }
3961 break;
3962 }
3963 case 176: {
csharptestd2af9e92011-06-03 21:35:02 -05003964 object unknown;
3965 if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
3966 result.hasOptionalForeignEnum = true;
3967 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003968 }
3969 break;
3970 }
3971 case 184: {
csharptestd2af9e92011-06-03 21:35:02 -05003972 object unknown;
3973 if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
3974 result.hasOptionalImportEnum = true;
3975 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01003976 }
3977 break;
3978 }
3979 case 194: {
csharptest920b09a2011-06-08 20:13:29 -05003980 result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003981 break;
3982 }
3983 case 202: {
csharptest920b09a2011-06-08 20:13:29 -05003984 result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003985 break;
3986 }
csharptest6da31702011-06-04 12:52:57 -05003987 case 250:
Jon Skeet82bb0f12011-04-03 20:17:12 +01003988 case 248: {
csharptestb00ea132011-06-10 01:09:57 -05003989 input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003990 break;
3991 }
csharptest6da31702011-06-04 12:52:57 -05003992 case 258:
Jon Skeet82bb0f12011-04-03 20:17:12 +01003993 case 256: {
csharptestb00ea132011-06-10 01:09:57 -05003994 input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01003995 break;
3996 }
csharptest6da31702011-06-04 12:52:57 -05003997 case 266:
Jon Skeet82bb0f12011-04-03 20:17:12 +01003998 case 264: {
csharptestb00ea132011-06-10 01:09:57 -05003999 input.ReadUInt32Array(tag, field_name, result.repeatedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004000 break;
4001 }
csharptest6da31702011-06-04 12:52:57 -05004002 case 274:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004003 case 272: {
csharptestb00ea132011-06-10 01:09:57 -05004004 input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004005 break;
4006 }
csharptest6da31702011-06-04 12:52:57 -05004007 case 282:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004008 case 280: {
csharptestb00ea132011-06-10 01:09:57 -05004009 input.ReadSInt32Array(tag, field_name, result.repeatedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004010 break;
4011 }
csharptest6da31702011-06-04 12:52:57 -05004012 case 290:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004013 case 288: {
csharptestb00ea132011-06-10 01:09:57 -05004014 input.ReadSInt64Array(tag, field_name, result.repeatedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004015 break;
4016 }
csharptest6da31702011-06-04 12:52:57 -05004017 case 298:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004018 case 301: {
csharptestb00ea132011-06-10 01:09:57 -05004019 input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004020 break;
4021 }
csharptest6da31702011-06-04 12:52:57 -05004022 case 306:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004023 case 305: {
csharptestb00ea132011-06-10 01:09:57 -05004024 input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004025 break;
4026 }
csharptest6da31702011-06-04 12:52:57 -05004027 case 314:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004028 case 317: {
csharptestb00ea132011-06-10 01:09:57 -05004029 input.ReadSFixed32Array(tag, field_name, result.repeatedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004030 break;
4031 }
csharptest6da31702011-06-04 12:52:57 -05004032 case 322:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004033 case 321: {
csharptestb00ea132011-06-10 01:09:57 -05004034 input.ReadSFixed64Array(tag, field_name, result.repeatedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004035 break;
4036 }
csharptest6da31702011-06-04 12:52:57 -05004037 case 330:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004038 case 333: {
csharptestb00ea132011-06-10 01:09:57 -05004039 input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004040 break;
4041 }
csharptest6da31702011-06-04 12:52:57 -05004042 case 338:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004043 case 337: {
csharptestb00ea132011-06-10 01:09:57 -05004044 input.ReadDoubleArray(tag, field_name, result.repeatedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004045 break;
4046 }
csharptest6da31702011-06-04 12:52:57 -05004047 case 346:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004048 case 344: {
csharptestb00ea132011-06-10 01:09:57 -05004049 input.ReadBoolArray(tag, field_name, result.repeatedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004050 break;
4051 }
4052 case 354: {
csharptestb00ea132011-06-10 01:09:57 -05004053 input.ReadStringArray(tag, field_name, result.repeatedString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004054 break;
4055 }
4056 case 362: {
csharptestb00ea132011-06-10 01:09:57 -05004057 input.ReadBytesArray(tag, field_name, result.repeatedBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004058 break;
4059 }
4060 case 371: {
csharptestd2af9e92011-06-03 21:35:02 -05004061 input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004062 break;
4063 }
4064 case 386: {
csharptestd2af9e92011-06-03 21:35:02 -05004065 input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004066 break;
4067 }
4068 case 394: {
csharptestd2af9e92011-06-03 21:35:02 -05004069 input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004070 break;
4071 }
4072 case 402: {
csharptestd2af9e92011-06-03 21:35:02 -05004073 input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, extensionRegistry);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004074 break;
4075 }
csharptest6da31702011-06-04 12:52:57 -05004076 case 410:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004077 case 408: {
csharptestd2af9e92011-06-03 21:35:02 -05004078 scg::ICollection<object> unknownItems;
4079 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004080 break;
4081 }
csharptest6da31702011-06-04 12:52:57 -05004082 case 418:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004083 case 416: {
csharptestd2af9e92011-06-03 21:35:02 -05004084 scg::ICollection<object> unknownItems;
4085 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004086 break;
4087 }
csharptest6da31702011-06-04 12:52:57 -05004088 case 426:
Jon Skeet82bb0f12011-04-03 20:17:12 +01004089 case 424: {
csharptestd2af9e92011-06-03 21:35:02 -05004090 scg::ICollection<object> unknownItems;
4091 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004092 break;
4093 }
4094 case 434: {
csharptestb00ea132011-06-10 01:09:57 -05004095 input.ReadStringArray(tag, field_name, result.repeatedStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004096 break;
4097 }
4098 case 442: {
csharptestb00ea132011-06-10 01:09:57 -05004099 input.ReadStringArray(tag, field_name, result.repeatedCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004100 break;
4101 }
4102 case 488: {
csharptest920b09a2011-06-08 20:13:29 -05004103 result.hasDefaultInt32 = input.ReadInt32(ref result.defaultInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004104 break;
4105 }
4106 case 496: {
csharptest920b09a2011-06-08 20:13:29 -05004107 result.hasDefaultInt64 = input.ReadInt64(ref result.defaultInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004108 break;
4109 }
4110 case 504: {
csharptest920b09a2011-06-08 20:13:29 -05004111 result.hasDefaultUint32 = input.ReadUInt32(ref result.defaultUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004112 break;
4113 }
4114 case 512: {
csharptest920b09a2011-06-08 20:13:29 -05004115 result.hasDefaultUint64 = input.ReadUInt64(ref result.defaultUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004116 break;
4117 }
4118 case 520: {
csharptest920b09a2011-06-08 20:13:29 -05004119 result.hasDefaultSint32 = input.ReadSInt32(ref result.defaultSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004120 break;
4121 }
4122 case 528: {
csharptest920b09a2011-06-08 20:13:29 -05004123 result.hasDefaultSint64 = input.ReadSInt64(ref result.defaultSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004124 break;
4125 }
4126 case 541: {
csharptest920b09a2011-06-08 20:13:29 -05004127 result.hasDefaultFixed32 = input.ReadFixed32(ref result.defaultFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004128 break;
4129 }
4130 case 545: {
csharptest920b09a2011-06-08 20:13:29 -05004131 result.hasDefaultFixed64 = input.ReadFixed64(ref result.defaultFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004132 break;
4133 }
4134 case 557: {
csharptest920b09a2011-06-08 20:13:29 -05004135 result.hasDefaultSfixed32 = input.ReadSFixed32(ref result.defaultSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004136 break;
4137 }
4138 case 561: {
csharptest920b09a2011-06-08 20:13:29 -05004139 result.hasDefaultSfixed64 = input.ReadSFixed64(ref result.defaultSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004140 break;
4141 }
4142 case 573: {
csharptest920b09a2011-06-08 20:13:29 -05004143 result.hasDefaultFloat = input.ReadFloat(ref result.defaultFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004144 break;
4145 }
4146 case 577: {
csharptest920b09a2011-06-08 20:13:29 -05004147 result.hasDefaultDouble = input.ReadDouble(ref result.defaultDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004148 break;
4149 }
4150 case 584: {
csharptest920b09a2011-06-08 20:13:29 -05004151 result.hasDefaultBool = input.ReadBool(ref result.defaultBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004152 break;
4153 }
4154 case 594: {
csharptest920b09a2011-06-08 20:13:29 -05004155 result.hasDefaultString = input.ReadString(ref result.defaultString_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004156 break;
4157 }
4158 case 602: {
csharptest920b09a2011-06-08 20:13:29 -05004159 result.hasDefaultBytes = input.ReadBytes(ref result.defaultBytes_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004160 break;
4161 }
4162 case 648: {
csharptestd2af9e92011-06-03 21:35:02 -05004163 object unknown;
4164 if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
4165 result.hasDefaultNestedEnum = true;
4166 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01004167 }
4168 break;
4169 }
4170 case 656: {
csharptestd2af9e92011-06-03 21:35:02 -05004171 object unknown;
4172 if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
4173 result.hasDefaultForeignEnum = true;
4174 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01004175 }
4176 break;
4177 }
4178 case 664: {
csharptestd2af9e92011-06-03 21:35:02 -05004179 object unknown;
4180 if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
4181 result.hasDefaultImportEnum = true;
4182 } else if(unknown is int) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01004183 }
4184 break;
4185 }
4186 case 674: {
csharptest920b09a2011-06-08 20:13:29 -05004187 result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004188 break;
4189 }
4190 case 682: {
csharptest920b09a2011-06-08 20:13:29 -05004191 result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004192 break;
4193 }
4194 }
4195 }
csharptest123e5342011-06-03 14:15:21 -05004196
4197 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01004198 }
4199
4200
4201 public bool HasOptionalInt32 {
csharptestc671a4b2011-06-08 11:51:24 -05004202 get { return result.hasOptionalInt32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004203 }
4204 public int OptionalInt32 {
4205 get { return result.OptionalInt32; }
4206 set { SetOptionalInt32(value); }
4207 }
4208 public Builder SetOptionalInt32(int value) {
4209 result.hasOptionalInt32 = true;
4210 result.optionalInt32_ = value;
4211 return this;
4212 }
4213 public Builder ClearOptionalInt32() {
4214 result.hasOptionalInt32 = false;
4215 result.optionalInt32_ = 0;
4216 return this;
4217 }
4218
4219 public bool HasOptionalInt64 {
csharptestc671a4b2011-06-08 11:51:24 -05004220 get { return result.hasOptionalInt64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004221 }
4222 public long OptionalInt64 {
4223 get { return result.OptionalInt64; }
4224 set { SetOptionalInt64(value); }
4225 }
4226 public Builder SetOptionalInt64(long value) {
4227 result.hasOptionalInt64 = true;
4228 result.optionalInt64_ = value;
4229 return this;
4230 }
4231 public Builder ClearOptionalInt64() {
4232 result.hasOptionalInt64 = false;
4233 result.optionalInt64_ = 0L;
4234 return this;
4235 }
4236
4237 public bool HasOptionalUint32 {
csharptestc671a4b2011-06-08 11:51:24 -05004238 get { return result.hasOptionalUint32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004239 }
4240 [global::System.CLSCompliant(false)]
4241 public uint OptionalUint32 {
4242 get { return result.OptionalUint32; }
4243 set { SetOptionalUint32(value); }
4244 }
4245 [global::System.CLSCompliant(false)]
4246 public Builder SetOptionalUint32(uint value) {
4247 result.hasOptionalUint32 = true;
4248 result.optionalUint32_ = value;
4249 return this;
4250 }
4251 public Builder ClearOptionalUint32() {
4252 result.hasOptionalUint32 = false;
4253 result.optionalUint32_ = 0;
4254 return this;
4255 }
4256
4257 public bool HasOptionalUint64 {
csharptestc671a4b2011-06-08 11:51:24 -05004258 get { return result.hasOptionalUint64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004259 }
4260 [global::System.CLSCompliant(false)]
4261 public ulong OptionalUint64 {
4262 get { return result.OptionalUint64; }
4263 set { SetOptionalUint64(value); }
4264 }
4265 [global::System.CLSCompliant(false)]
4266 public Builder SetOptionalUint64(ulong value) {
4267 result.hasOptionalUint64 = true;
4268 result.optionalUint64_ = value;
4269 return this;
4270 }
4271 public Builder ClearOptionalUint64() {
4272 result.hasOptionalUint64 = false;
4273 result.optionalUint64_ = 0UL;
4274 return this;
4275 }
4276
4277 public bool HasOptionalSint32 {
csharptestc671a4b2011-06-08 11:51:24 -05004278 get { return result.hasOptionalSint32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004279 }
4280 public int OptionalSint32 {
4281 get { return result.OptionalSint32; }
4282 set { SetOptionalSint32(value); }
4283 }
4284 public Builder SetOptionalSint32(int value) {
4285 result.hasOptionalSint32 = true;
4286 result.optionalSint32_ = value;
4287 return this;
4288 }
4289 public Builder ClearOptionalSint32() {
4290 result.hasOptionalSint32 = false;
4291 result.optionalSint32_ = 0;
4292 return this;
4293 }
4294
4295 public bool HasOptionalSint64 {
csharptestc671a4b2011-06-08 11:51:24 -05004296 get { return result.hasOptionalSint64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004297 }
4298 public long OptionalSint64 {
4299 get { return result.OptionalSint64; }
4300 set { SetOptionalSint64(value); }
4301 }
4302 public Builder SetOptionalSint64(long value) {
4303 result.hasOptionalSint64 = true;
4304 result.optionalSint64_ = value;
4305 return this;
4306 }
4307 public Builder ClearOptionalSint64() {
4308 result.hasOptionalSint64 = false;
4309 result.optionalSint64_ = 0;
4310 return this;
4311 }
4312
4313 public bool HasOptionalFixed32 {
csharptestc671a4b2011-06-08 11:51:24 -05004314 get { return result.hasOptionalFixed32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004315 }
4316 [global::System.CLSCompliant(false)]
4317 public uint OptionalFixed32 {
4318 get { return result.OptionalFixed32; }
4319 set { SetOptionalFixed32(value); }
4320 }
4321 [global::System.CLSCompliant(false)]
4322 public Builder SetOptionalFixed32(uint value) {
4323 result.hasOptionalFixed32 = true;
4324 result.optionalFixed32_ = value;
4325 return this;
4326 }
4327 public Builder ClearOptionalFixed32() {
4328 result.hasOptionalFixed32 = false;
4329 result.optionalFixed32_ = 0;
4330 return this;
4331 }
4332
4333 public bool HasOptionalFixed64 {
csharptestc671a4b2011-06-08 11:51:24 -05004334 get { return result.hasOptionalFixed64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004335 }
4336 [global::System.CLSCompliant(false)]
4337 public ulong OptionalFixed64 {
4338 get { return result.OptionalFixed64; }
4339 set { SetOptionalFixed64(value); }
4340 }
4341 [global::System.CLSCompliant(false)]
4342 public Builder SetOptionalFixed64(ulong value) {
4343 result.hasOptionalFixed64 = true;
4344 result.optionalFixed64_ = value;
4345 return this;
4346 }
4347 public Builder ClearOptionalFixed64() {
4348 result.hasOptionalFixed64 = false;
4349 result.optionalFixed64_ = 0;
4350 return this;
4351 }
4352
4353 public bool HasOptionalSfixed32 {
csharptestc671a4b2011-06-08 11:51:24 -05004354 get { return result.hasOptionalSfixed32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004355 }
4356 public int OptionalSfixed32 {
4357 get { return result.OptionalSfixed32; }
4358 set { SetOptionalSfixed32(value); }
4359 }
4360 public Builder SetOptionalSfixed32(int value) {
4361 result.hasOptionalSfixed32 = true;
4362 result.optionalSfixed32_ = value;
4363 return this;
4364 }
4365 public Builder ClearOptionalSfixed32() {
4366 result.hasOptionalSfixed32 = false;
4367 result.optionalSfixed32_ = 0;
4368 return this;
4369 }
4370
4371 public bool HasOptionalSfixed64 {
csharptestc671a4b2011-06-08 11:51:24 -05004372 get { return result.hasOptionalSfixed64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004373 }
4374 public long OptionalSfixed64 {
4375 get { return result.OptionalSfixed64; }
4376 set { SetOptionalSfixed64(value); }
4377 }
4378 public Builder SetOptionalSfixed64(long value) {
4379 result.hasOptionalSfixed64 = true;
4380 result.optionalSfixed64_ = value;
4381 return this;
4382 }
4383 public Builder ClearOptionalSfixed64() {
4384 result.hasOptionalSfixed64 = false;
4385 result.optionalSfixed64_ = 0;
4386 return this;
4387 }
4388
4389 public bool HasOptionalFloat {
csharptestc671a4b2011-06-08 11:51:24 -05004390 get { return result.hasOptionalFloat; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004391 }
4392 public float OptionalFloat {
4393 get { return result.OptionalFloat; }
4394 set { SetOptionalFloat(value); }
4395 }
4396 public Builder SetOptionalFloat(float value) {
4397 result.hasOptionalFloat = true;
4398 result.optionalFloat_ = value;
4399 return this;
4400 }
4401 public Builder ClearOptionalFloat() {
4402 result.hasOptionalFloat = false;
4403 result.optionalFloat_ = 0F;
4404 return this;
4405 }
4406
4407 public bool HasOptionalDouble {
csharptestc671a4b2011-06-08 11:51:24 -05004408 get { return result.hasOptionalDouble; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004409 }
4410 public double OptionalDouble {
4411 get { return result.OptionalDouble; }
4412 set { SetOptionalDouble(value); }
4413 }
4414 public Builder SetOptionalDouble(double value) {
4415 result.hasOptionalDouble = true;
4416 result.optionalDouble_ = value;
4417 return this;
4418 }
4419 public Builder ClearOptionalDouble() {
4420 result.hasOptionalDouble = false;
4421 result.optionalDouble_ = 0D;
4422 return this;
4423 }
4424
4425 public bool HasOptionalBool {
csharptestc671a4b2011-06-08 11:51:24 -05004426 get { return result.hasOptionalBool; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004427 }
4428 public bool OptionalBool {
4429 get { return result.OptionalBool; }
4430 set { SetOptionalBool(value); }
4431 }
4432 public Builder SetOptionalBool(bool value) {
4433 result.hasOptionalBool = true;
4434 result.optionalBool_ = value;
4435 return this;
4436 }
4437 public Builder ClearOptionalBool() {
4438 result.hasOptionalBool = false;
4439 result.optionalBool_ = false;
4440 return this;
4441 }
4442
4443 public bool HasOptionalString {
csharptestc671a4b2011-06-08 11:51:24 -05004444 get { return result.hasOptionalString; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004445 }
4446 public string OptionalString {
4447 get { return result.OptionalString; }
4448 set { SetOptionalString(value); }
4449 }
4450 public Builder SetOptionalString(string value) {
4451 pb::ThrowHelper.ThrowIfNull(value, "value");
4452 result.hasOptionalString = true;
4453 result.optionalString_ = value;
4454 return this;
4455 }
4456 public Builder ClearOptionalString() {
4457 result.hasOptionalString = false;
4458 result.optionalString_ = "";
4459 return this;
4460 }
4461
4462 public bool HasOptionalBytes {
csharptestc671a4b2011-06-08 11:51:24 -05004463 get { return result.hasOptionalBytes; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004464 }
4465 public pb::ByteString OptionalBytes {
4466 get { return result.OptionalBytes; }
4467 set { SetOptionalBytes(value); }
4468 }
4469 public Builder SetOptionalBytes(pb::ByteString value) {
4470 pb::ThrowHelper.ThrowIfNull(value, "value");
4471 result.hasOptionalBytes = true;
4472 result.optionalBytes_ = value;
4473 return this;
4474 }
4475 public Builder ClearOptionalBytes() {
4476 result.hasOptionalBytes = false;
4477 result.optionalBytes_ = pb::ByteString.Empty;
4478 return this;
4479 }
4480
4481 public bool HasOptionalGroup {
csharptestc671a4b2011-06-08 11:51:24 -05004482 get { return result.hasOptionalGroup; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004483 }
4484 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
4485 get { return result.OptionalGroup; }
4486 set { SetOptionalGroup(value); }
4487 }
4488 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
4489 pb::ThrowHelper.ThrowIfNull(value, "value");
4490 result.hasOptionalGroup = true;
4491 result.optionalGroup_ = value;
4492 return this;
4493 }
4494 public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) {
4495 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4496 result.hasOptionalGroup = true;
4497 result.optionalGroup_ = builderForValue.Build();
4498 return this;
4499 }
4500 public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
4501 pb::ThrowHelper.ThrowIfNull(value, "value");
csharptestc671a4b2011-06-08 11:51:24 -05004502 if (result.hasOptionalGroup &&
Jon Skeet82bb0f12011-04-03 20:17:12 +01004503 result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
4504 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
4505 } else {
4506 result.optionalGroup_ = value;
4507 }
4508 result.hasOptionalGroup = true;
4509 return this;
4510 }
4511 public Builder ClearOptionalGroup() {
4512 result.hasOptionalGroup = false;
4513 result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
4514 return this;
4515 }
4516
4517 public bool HasOptionalNestedMessage {
csharptestc671a4b2011-06-08 11:51:24 -05004518 get { return result.hasOptionalNestedMessage; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004519 }
4520 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
4521 get { return result.OptionalNestedMessage; }
4522 set { SetOptionalNestedMessage(value); }
4523 }
4524 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
4525 pb::ThrowHelper.ThrowIfNull(value, "value");
4526 result.hasOptionalNestedMessage = true;
4527 result.optionalNestedMessage_ = value;
4528 return this;
4529 }
4530 public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
4531 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4532 result.hasOptionalNestedMessage = true;
4533 result.optionalNestedMessage_ = builderForValue.Build();
4534 return this;
4535 }
4536 public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
4537 pb::ThrowHelper.ThrowIfNull(value, "value");
csharptestc671a4b2011-06-08 11:51:24 -05004538 if (result.hasOptionalNestedMessage &&
Jon Skeet82bb0f12011-04-03 20:17:12 +01004539 result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
4540 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
4541 } else {
4542 result.optionalNestedMessage_ = value;
4543 }
4544 result.hasOptionalNestedMessage = true;
4545 return this;
4546 }
4547 public Builder ClearOptionalNestedMessage() {
4548 result.hasOptionalNestedMessage = false;
4549 result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
4550 return this;
4551 }
4552
4553 public bool HasOptionalForeignMessage {
csharptestc671a4b2011-06-08 11:51:24 -05004554 get { return result.hasOptionalForeignMessage; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004555 }
4556 public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
4557 get { return result.OptionalForeignMessage; }
4558 set { SetOptionalForeignMessage(value); }
4559 }
4560 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
4561 pb::ThrowHelper.ThrowIfNull(value, "value");
4562 result.hasOptionalForeignMessage = true;
4563 result.optionalForeignMessage_ = value;
4564 return this;
4565 }
4566 public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
4567 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4568 result.hasOptionalForeignMessage = true;
4569 result.optionalForeignMessage_ = builderForValue.Build();
4570 return this;
4571 }
4572 public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
4573 pb::ThrowHelper.ThrowIfNull(value, "value");
csharptestc671a4b2011-06-08 11:51:24 -05004574 if (result.hasOptionalForeignMessage &&
Jon Skeet82bb0f12011-04-03 20:17:12 +01004575 result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
4576 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
4577 } else {
4578 result.optionalForeignMessage_ = value;
4579 }
4580 result.hasOptionalForeignMessage = true;
4581 return this;
4582 }
4583 public Builder ClearOptionalForeignMessage() {
4584 result.hasOptionalForeignMessage = false;
4585 result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
4586 return this;
4587 }
4588
4589 public bool HasOptionalImportMessage {
csharptestc671a4b2011-06-08 11:51:24 -05004590 get { return result.hasOptionalImportMessage; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004591 }
4592 public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
4593 get { return result.OptionalImportMessage; }
4594 set { SetOptionalImportMessage(value); }
4595 }
4596 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
4597 pb::ThrowHelper.ThrowIfNull(value, "value");
4598 result.hasOptionalImportMessage = true;
4599 result.optionalImportMessage_ = value;
4600 return this;
4601 }
4602 public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
4603 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
4604 result.hasOptionalImportMessage = true;
4605 result.optionalImportMessage_ = builderForValue.Build();
4606 return this;
4607 }
4608 public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
4609 pb::ThrowHelper.ThrowIfNull(value, "value");
csharptestc671a4b2011-06-08 11:51:24 -05004610 if (result.hasOptionalImportMessage &&
Jon Skeet82bb0f12011-04-03 20:17:12 +01004611 result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
4612 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
4613 } else {
4614 result.optionalImportMessage_ = value;
4615 }
4616 result.hasOptionalImportMessage = true;
4617 return this;
4618 }
4619 public Builder ClearOptionalImportMessage() {
4620 result.hasOptionalImportMessage = false;
4621 result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
4622 return this;
4623 }
4624
4625 public bool HasOptionalNestedEnum {
csharptestc671a4b2011-06-08 11:51:24 -05004626 get { return result.hasOptionalNestedEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004627 }
4628 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
4629 get { return result.OptionalNestedEnum; }
4630 set { SetOptionalNestedEnum(value); }
4631 }
4632 public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
4633 result.hasOptionalNestedEnum = true;
4634 result.optionalNestedEnum_ = value;
4635 return this;
4636 }
4637 public Builder ClearOptionalNestedEnum() {
4638 result.hasOptionalNestedEnum = false;
4639 result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
4640 return this;
4641 }
4642
4643 public bool HasOptionalForeignEnum {
csharptestc671a4b2011-06-08 11:51:24 -05004644 get { return result.hasOptionalForeignEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004645 }
4646 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
4647 get { return result.OptionalForeignEnum; }
4648 set { SetOptionalForeignEnum(value); }
4649 }
4650 public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
4651 result.hasOptionalForeignEnum = true;
4652 result.optionalForeignEnum_ = value;
4653 return this;
4654 }
4655 public Builder ClearOptionalForeignEnum() {
4656 result.hasOptionalForeignEnum = false;
4657 result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
4658 return this;
4659 }
4660
4661 public bool HasOptionalImportEnum {
csharptestc671a4b2011-06-08 11:51:24 -05004662 get { return result.hasOptionalImportEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004663 }
4664 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
4665 get { return result.OptionalImportEnum; }
4666 set { SetOptionalImportEnum(value); }
4667 }
4668 public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
4669 result.hasOptionalImportEnum = true;
4670 result.optionalImportEnum_ = value;
4671 return this;
4672 }
4673 public Builder ClearOptionalImportEnum() {
4674 result.hasOptionalImportEnum = false;
4675 result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
4676 return this;
4677 }
4678
4679 public bool HasOptionalStringPiece {
csharptestc671a4b2011-06-08 11:51:24 -05004680 get { return result.hasOptionalStringPiece; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004681 }
4682 public string OptionalStringPiece {
4683 get { return result.OptionalStringPiece; }
4684 set { SetOptionalStringPiece(value); }
4685 }
4686 public Builder SetOptionalStringPiece(string value) {
4687 pb::ThrowHelper.ThrowIfNull(value, "value");
4688 result.hasOptionalStringPiece = true;
4689 result.optionalStringPiece_ = value;
4690 return this;
4691 }
4692 public Builder ClearOptionalStringPiece() {
4693 result.hasOptionalStringPiece = false;
4694 result.optionalStringPiece_ = "";
4695 return this;
4696 }
4697
4698 public bool HasOptionalCord {
csharptestc671a4b2011-06-08 11:51:24 -05004699 get { return result.hasOptionalCord; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01004700 }
4701 public string OptionalCord {
4702 get { return result.OptionalCord; }
4703 set { SetOptionalCord(value); }
4704 }
4705 public Builder SetOptionalCord(string value) {
4706 pb::ThrowHelper.ThrowIfNull(value, "value");
4707 result.hasOptionalCord = true;
4708 result.optionalCord_ = value;
4709 return this;
4710 }
4711 public Builder ClearOptionalCord() {
4712 result.hasOptionalCord = false;
4713 result.optionalCord_ = "";
4714 return this;
4715 }
4716
4717 public pbc::IPopsicleList<int> RepeatedInt32List {
4718 get { return result.repeatedInt32_; }
4719 }
4720 public int RepeatedInt32Count {
4721 get { return result.RepeatedInt32Count; }
4722 }
4723 public int GetRepeatedInt32(int index) {
4724 return result.GetRepeatedInt32(index);
4725 }
4726 public Builder SetRepeatedInt32(int index, int value) {
4727 result.repeatedInt32_[index] = value;
4728 return this;
4729 }
4730 public Builder AddRepeatedInt32(int value) {
4731 result.repeatedInt32_.Add(value);
4732 return this;
4733 }
4734 public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004735 result.repeatedInt32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004736 return this;
4737 }
4738 public Builder ClearRepeatedInt32() {
4739 result.repeatedInt32_.Clear();
4740 return this;
4741 }
4742
4743 public pbc::IPopsicleList<long> RepeatedInt64List {
4744 get { return result.repeatedInt64_; }
4745 }
4746 public int RepeatedInt64Count {
4747 get { return result.RepeatedInt64Count; }
4748 }
4749 public long GetRepeatedInt64(int index) {
4750 return result.GetRepeatedInt64(index);
4751 }
4752 public Builder SetRepeatedInt64(int index, long value) {
4753 result.repeatedInt64_[index] = value;
4754 return this;
4755 }
4756 public Builder AddRepeatedInt64(long value) {
4757 result.repeatedInt64_.Add(value);
4758 return this;
4759 }
4760 public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004761 result.repeatedInt64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004762 return this;
4763 }
4764 public Builder ClearRepeatedInt64() {
4765 result.repeatedInt64_.Clear();
4766 return this;
4767 }
4768
4769 [global::System.CLSCompliant(false)]
4770 public pbc::IPopsicleList<uint> RepeatedUint32List {
4771 get { return result.repeatedUint32_; }
4772 }
4773 public int RepeatedUint32Count {
4774 get { return result.RepeatedUint32Count; }
4775 }
4776 [global::System.CLSCompliant(false)]
4777 public uint GetRepeatedUint32(int index) {
4778 return result.GetRepeatedUint32(index);
4779 }
4780 [global::System.CLSCompliant(false)]
4781 public Builder SetRepeatedUint32(int index, uint value) {
4782 result.repeatedUint32_[index] = value;
4783 return this;
4784 }
4785 [global::System.CLSCompliant(false)]
4786 public Builder AddRepeatedUint32(uint value) {
4787 result.repeatedUint32_.Add(value);
4788 return this;
4789 }
4790 [global::System.CLSCompliant(false)]
4791 public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004792 result.repeatedUint32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004793 return this;
4794 }
4795 public Builder ClearRepeatedUint32() {
4796 result.repeatedUint32_.Clear();
4797 return this;
4798 }
4799
4800 [global::System.CLSCompliant(false)]
4801 public pbc::IPopsicleList<ulong> RepeatedUint64List {
4802 get { return result.repeatedUint64_; }
4803 }
4804 public int RepeatedUint64Count {
4805 get { return result.RepeatedUint64Count; }
4806 }
4807 [global::System.CLSCompliant(false)]
4808 public ulong GetRepeatedUint64(int index) {
4809 return result.GetRepeatedUint64(index);
4810 }
4811 [global::System.CLSCompliant(false)]
4812 public Builder SetRepeatedUint64(int index, ulong value) {
4813 result.repeatedUint64_[index] = value;
4814 return this;
4815 }
4816 [global::System.CLSCompliant(false)]
4817 public Builder AddRepeatedUint64(ulong value) {
4818 result.repeatedUint64_.Add(value);
4819 return this;
4820 }
4821 [global::System.CLSCompliant(false)]
4822 public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004823 result.repeatedUint64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004824 return this;
4825 }
4826 public Builder ClearRepeatedUint64() {
4827 result.repeatedUint64_.Clear();
4828 return this;
4829 }
4830
4831 public pbc::IPopsicleList<int> RepeatedSint32List {
4832 get { return result.repeatedSint32_; }
4833 }
4834 public int RepeatedSint32Count {
4835 get { return result.RepeatedSint32Count; }
4836 }
4837 public int GetRepeatedSint32(int index) {
4838 return result.GetRepeatedSint32(index);
4839 }
4840 public Builder SetRepeatedSint32(int index, int value) {
4841 result.repeatedSint32_[index] = value;
4842 return this;
4843 }
4844 public Builder AddRepeatedSint32(int value) {
4845 result.repeatedSint32_.Add(value);
4846 return this;
4847 }
4848 public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004849 result.repeatedSint32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004850 return this;
4851 }
4852 public Builder ClearRepeatedSint32() {
4853 result.repeatedSint32_.Clear();
4854 return this;
4855 }
4856
4857 public pbc::IPopsicleList<long> RepeatedSint64List {
4858 get { return result.repeatedSint64_; }
4859 }
4860 public int RepeatedSint64Count {
4861 get { return result.RepeatedSint64Count; }
4862 }
4863 public long GetRepeatedSint64(int index) {
4864 return result.GetRepeatedSint64(index);
4865 }
4866 public Builder SetRepeatedSint64(int index, long value) {
4867 result.repeatedSint64_[index] = value;
4868 return this;
4869 }
4870 public Builder AddRepeatedSint64(long value) {
4871 result.repeatedSint64_.Add(value);
4872 return this;
4873 }
4874 public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004875 result.repeatedSint64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004876 return this;
4877 }
4878 public Builder ClearRepeatedSint64() {
4879 result.repeatedSint64_.Clear();
4880 return this;
4881 }
4882
4883 [global::System.CLSCompliant(false)]
4884 public pbc::IPopsicleList<uint> RepeatedFixed32List {
4885 get { return result.repeatedFixed32_; }
4886 }
4887 public int RepeatedFixed32Count {
4888 get { return result.RepeatedFixed32Count; }
4889 }
4890 [global::System.CLSCompliant(false)]
4891 public uint GetRepeatedFixed32(int index) {
4892 return result.GetRepeatedFixed32(index);
4893 }
4894 [global::System.CLSCompliant(false)]
4895 public Builder SetRepeatedFixed32(int index, uint value) {
4896 result.repeatedFixed32_[index] = value;
4897 return this;
4898 }
4899 [global::System.CLSCompliant(false)]
4900 public Builder AddRepeatedFixed32(uint value) {
4901 result.repeatedFixed32_.Add(value);
4902 return this;
4903 }
4904 [global::System.CLSCompliant(false)]
4905 public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004906 result.repeatedFixed32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004907 return this;
4908 }
4909 public Builder ClearRepeatedFixed32() {
4910 result.repeatedFixed32_.Clear();
4911 return this;
4912 }
4913
4914 [global::System.CLSCompliant(false)]
4915 public pbc::IPopsicleList<ulong> RepeatedFixed64List {
4916 get { return result.repeatedFixed64_; }
4917 }
4918 public int RepeatedFixed64Count {
4919 get { return result.RepeatedFixed64Count; }
4920 }
4921 [global::System.CLSCompliant(false)]
4922 public ulong GetRepeatedFixed64(int index) {
4923 return result.GetRepeatedFixed64(index);
4924 }
4925 [global::System.CLSCompliant(false)]
4926 public Builder SetRepeatedFixed64(int index, ulong value) {
4927 result.repeatedFixed64_[index] = value;
4928 return this;
4929 }
4930 [global::System.CLSCompliant(false)]
4931 public Builder AddRepeatedFixed64(ulong value) {
4932 result.repeatedFixed64_.Add(value);
4933 return this;
4934 }
4935 [global::System.CLSCompliant(false)]
4936 public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004937 result.repeatedFixed64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004938 return this;
4939 }
4940 public Builder ClearRepeatedFixed64() {
4941 result.repeatedFixed64_.Clear();
4942 return this;
4943 }
4944
4945 public pbc::IPopsicleList<int> RepeatedSfixed32List {
4946 get { return result.repeatedSfixed32_; }
4947 }
4948 public int RepeatedSfixed32Count {
4949 get { return result.RepeatedSfixed32Count; }
4950 }
4951 public int GetRepeatedSfixed32(int index) {
4952 return result.GetRepeatedSfixed32(index);
4953 }
4954 public Builder SetRepeatedSfixed32(int index, int value) {
4955 result.repeatedSfixed32_[index] = value;
4956 return this;
4957 }
4958 public Builder AddRepeatedSfixed32(int value) {
4959 result.repeatedSfixed32_.Add(value);
4960 return this;
4961 }
4962 public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004963 result.repeatedSfixed32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004964 return this;
4965 }
4966 public Builder ClearRepeatedSfixed32() {
4967 result.repeatedSfixed32_.Clear();
4968 return this;
4969 }
4970
4971 public pbc::IPopsicleList<long> RepeatedSfixed64List {
4972 get { return result.repeatedSfixed64_; }
4973 }
4974 public int RepeatedSfixed64Count {
4975 get { return result.RepeatedSfixed64Count; }
4976 }
4977 public long GetRepeatedSfixed64(int index) {
4978 return result.GetRepeatedSfixed64(index);
4979 }
4980 public Builder SetRepeatedSfixed64(int index, long value) {
4981 result.repeatedSfixed64_[index] = value;
4982 return this;
4983 }
4984 public Builder AddRepeatedSfixed64(long value) {
4985 result.repeatedSfixed64_.Add(value);
4986 return this;
4987 }
4988 public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05004989 result.repeatedSfixed64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01004990 return this;
4991 }
4992 public Builder ClearRepeatedSfixed64() {
4993 result.repeatedSfixed64_.Clear();
4994 return this;
4995 }
4996
4997 public pbc::IPopsicleList<float> RepeatedFloatList {
4998 get { return result.repeatedFloat_; }
4999 }
5000 public int RepeatedFloatCount {
5001 get { return result.RepeatedFloatCount; }
5002 }
5003 public float GetRepeatedFloat(int index) {
5004 return result.GetRepeatedFloat(index);
5005 }
5006 public Builder SetRepeatedFloat(int index, float value) {
5007 result.repeatedFloat_[index] = value;
5008 return this;
5009 }
5010 public Builder AddRepeatedFloat(float value) {
5011 result.repeatedFloat_.Add(value);
5012 return this;
5013 }
5014 public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005015 result.repeatedFloat_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005016 return this;
5017 }
5018 public Builder ClearRepeatedFloat() {
5019 result.repeatedFloat_.Clear();
5020 return this;
5021 }
5022
5023 public pbc::IPopsicleList<double> RepeatedDoubleList {
5024 get { return result.repeatedDouble_; }
5025 }
5026 public int RepeatedDoubleCount {
5027 get { return result.RepeatedDoubleCount; }
5028 }
5029 public double GetRepeatedDouble(int index) {
5030 return result.GetRepeatedDouble(index);
5031 }
5032 public Builder SetRepeatedDouble(int index, double value) {
5033 result.repeatedDouble_[index] = value;
5034 return this;
5035 }
5036 public Builder AddRepeatedDouble(double value) {
5037 result.repeatedDouble_.Add(value);
5038 return this;
5039 }
5040 public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005041 result.repeatedDouble_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005042 return this;
5043 }
5044 public Builder ClearRepeatedDouble() {
5045 result.repeatedDouble_.Clear();
5046 return this;
5047 }
5048
5049 public pbc::IPopsicleList<bool> RepeatedBoolList {
5050 get { return result.repeatedBool_; }
5051 }
5052 public int RepeatedBoolCount {
5053 get { return result.RepeatedBoolCount; }
5054 }
5055 public bool GetRepeatedBool(int index) {
5056 return result.GetRepeatedBool(index);
5057 }
5058 public Builder SetRepeatedBool(int index, bool value) {
5059 result.repeatedBool_[index] = value;
5060 return this;
5061 }
5062 public Builder AddRepeatedBool(bool value) {
5063 result.repeatedBool_.Add(value);
5064 return this;
5065 }
5066 public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005067 result.repeatedBool_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005068 return this;
5069 }
5070 public Builder ClearRepeatedBool() {
5071 result.repeatedBool_.Clear();
5072 return this;
5073 }
5074
5075 public pbc::IPopsicleList<string> RepeatedStringList {
5076 get { return result.repeatedString_; }
5077 }
5078 public int RepeatedStringCount {
5079 get { return result.RepeatedStringCount; }
5080 }
5081 public string GetRepeatedString(int index) {
5082 return result.GetRepeatedString(index);
5083 }
5084 public Builder SetRepeatedString(int index, string value) {
5085 pb::ThrowHelper.ThrowIfNull(value, "value");
5086 result.repeatedString_[index] = value;
5087 return this;
5088 }
5089 public Builder AddRepeatedString(string value) {
5090 pb::ThrowHelper.ThrowIfNull(value, "value");
5091 result.repeatedString_.Add(value);
5092 return this;
5093 }
5094 public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005095 result.repeatedString_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005096 return this;
5097 }
5098 public Builder ClearRepeatedString() {
5099 result.repeatedString_.Clear();
5100 return this;
5101 }
5102
5103 public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
5104 get { return result.repeatedBytes_; }
5105 }
5106 public int RepeatedBytesCount {
5107 get { return result.RepeatedBytesCount; }
5108 }
5109 public pb::ByteString GetRepeatedBytes(int index) {
5110 return result.GetRepeatedBytes(index);
5111 }
5112 public Builder SetRepeatedBytes(int index, pb::ByteString value) {
5113 pb::ThrowHelper.ThrowIfNull(value, "value");
5114 result.repeatedBytes_[index] = value;
5115 return this;
5116 }
5117 public Builder AddRepeatedBytes(pb::ByteString value) {
5118 pb::ThrowHelper.ThrowIfNull(value, "value");
5119 result.repeatedBytes_.Add(value);
5120 return this;
5121 }
5122 public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005123 result.repeatedBytes_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005124 return this;
5125 }
5126 public Builder ClearRepeatedBytes() {
5127 result.repeatedBytes_.Clear();
5128 return this;
5129 }
5130
5131 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
5132 get { return result.repeatedGroup_; }
5133 }
5134 public int RepeatedGroupCount {
5135 get { return result.RepeatedGroupCount; }
5136 }
5137 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
5138 return result.GetRepeatedGroup(index);
5139 }
5140 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
5141 pb::ThrowHelper.ThrowIfNull(value, "value");
5142 result.repeatedGroup_[index] = value;
5143 return this;
5144 }
5145 public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
5146 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5147 result.repeatedGroup_[index] = builderForValue.Build();
5148 return this;
5149 }
5150 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
5151 pb::ThrowHelper.ThrowIfNull(value, "value");
5152 result.repeatedGroup_.Add(value);
5153 return this;
5154 }
5155 public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
5156 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5157 result.repeatedGroup_.Add(builderForValue.Build());
5158 return this;
5159 }
5160 public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005161 result.repeatedGroup_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005162 return this;
5163 }
5164 public Builder ClearRepeatedGroup() {
5165 result.repeatedGroup_.Clear();
5166 return this;
5167 }
5168
5169 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
5170 get { return result.repeatedNestedMessage_; }
5171 }
5172 public int RepeatedNestedMessageCount {
5173 get { return result.RepeatedNestedMessageCount; }
5174 }
5175 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
5176 return result.GetRepeatedNestedMessage(index);
5177 }
5178 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
5179 pb::ThrowHelper.ThrowIfNull(value, "value");
5180 result.repeatedNestedMessage_[index] = value;
5181 return this;
5182 }
5183 public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
5184 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5185 result.repeatedNestedMessage_[index] = builderForValue.Build();
5186 return this;
5187 }
5188 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
5189 pb::ThrowHelper.ThrowIfNull(value, "value");
5190 result.repeatedNestedMessage_.Add(value);
5191 return this;
5192 }
5193 public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
5194 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5195 result.repeatedNestedMessage_.Add(builderForValue.Build());
5196 return this;
5197 }
5198 public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005199 result.repeatedNestedMessage_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005200 return this;
5201 }
5202 public Builder ClearRepeatedNestedMessage() {
5203 result.repeatedNestedMessage_.Clear();
5204 return this;
5205 }
5206
5207 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
5208 get { return result.repeatedForeignMessage_; }
5209 }
5210 public int RepeatedForeignMessageCount {
5211 get { return result.RepeatedForeignMessageCount; }
5212 }
5213 public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
5214 return result.GetRepeatedForeignMessage(index);
5215 }
5216 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
5217 pb::ThrowHelper.ThrowIfNull(value, "value");
5218 result.repeatedForeignMessage_[index] = value;
5219 return this;
5220 }
5221 public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
5222 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5223 result.repeatedForeignMessage_[index] = builderForValue.Build();
5224 return this;
5225 }
5226 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
5227 pb::ThrowHelper.ThrowIfNull(value, "value");
5228 result.repeatedForeignMessage_.Add(value);
5229 return this;
5230 }
5231 public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
5232 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5233 result.repeatedForeignMessage_.Add(builderForValue.Build());
5234 return this;
5235 }
5236 public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005237 result.repeatedForeignMessage_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005238 return this;
5239 }
5240 public Builder ClearRepeatedForeignMessage() {
5241 result.repeatedForeignMessage_.Clear();
5242 return this;
5243 }
5244
5245 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
5246 get { return result.repeatedImportMessage_; }
5247 }
5248 public int RepeatedImportMessageCount {
5249 get { return result.RepeatedImportMessageCount; }
5250 }
5251 public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
5252 return result.GetRepeatedImportMessage(index);
5253 }
5254 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
5255 pb::ThrowHelper.ThrowIfNull(value, "value");
5256 result.repeatedImportMessage_[index] = value;
5257 return this;
5258 }
5259 public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
5260 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5261 result.repeatedImportMessage_[index] = builderForValue.Build();
5262 return this;
5263 }
5264 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
5265 pb::ThrowHelper.ThrowIfNull(value, "value");
5266 result.repeatedImportMessage_.Add(value);
5267 return this;
5268 }
5269 public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
5270 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
5271 result.repeatedImportMessage_.Add(builderForValue.Build());
5272 return this;
5273 }
5274 public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005275 result.repeatedImportMessage_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005276 return this;
5277 }
5278 public Builder ClearRepeatedImportMessage() {
5279 result.repeatedImportMessage_.Clear();
5280 return this;
5281 }
5282
5283 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
5284 get { return result.repeatedNestedEnum_; }
5285 }
5286 public int RepeatedNestedEnumCount {
5287 get { return result.RepeatedNestedEnumCount; }
5288 }
5289 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
5290 return result.GetRepeatedNestedEnum(index);
5291 }
5292 public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
5293 result.repeatedNestedEnum_[index] = value;
5294 return this;
5295 }
5296 public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
5297 result.repeatedNestedEnum_.Add(value);
5298 return this;
5299 }
5300 public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005301 result.repeatedNestedEnum_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005302 return this;
5303 }
5304 public Builder ClearRepeatedNestedEnum() {
5305 result.repeatedNestedEnum_.Clear();
5306 return this;
5307 }
5308
5309 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
5310 get { return result.repeatedForeignEnum_; }
5311 }
5312 public int RepeatedForeignEnumCount {
5313 get { return result.RepeatedForeignEnumCount; }
5314 }
5315 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
5316 return result.GetRepeatedForeignEnum(index);
5317 }
5318 public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
5319 result.repeatedForeignEnum_[index] = value;
5320 return this;
5321 }
5322 public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
5323 result.repeatedForeignEnum_.Add(value);
5324 return this;
5325 }
5326 public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005327 result.repeatedForeignEnum_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005328 return this;
5329 }
5330 public Builder ClearRepeatedForeignEnum() {
5331 result.repeatedForeignEnum_.Clear();
5332 return this;
5333 }
5334
5335 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
5336 get { return result.repeatedImportEnum_; }
5337 }
5338 public int RepeatedImportEnumCount {
5339 get { return result.RepeatedImportEnumCount; }
5340 }
5341 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
5342 return result.GetRepeatedImportEnum(index);
5343 }
5344 public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
5345 result.repeatedImportEnum_[index] = value;
5346 return this;
5347 }
5348 public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
5349 result.repeatedImportEnum_.Add(value);
5350 return this;
5351 }
5352 public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005353 result.repeatedImportEnum_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005354 return this;
5355 }
5356 public Builder ClearRepeatedImportEnum() {
5357 result.repeatedImportEnum_.Clear();
5358 return this;
5359 }
5360
5361 public pbc::IPopsicleList<string> RepeatedStringPieceList {
5362 get { return result.repeatedStringPiece_; }
5363 }
5364 public int RepeatedStringPieceCount {
5365 get { return result.RepeatedStringPieceCount; }
5366 }
5367 public string GetRepeatedStringPiece(int index) {
5368 return result.GetRepeatedStringPiece(index);
5369 }
5370 public Builder SetRepeatedStringPiece(int index, string value) {
5371 pb::ThrowHelper.ThrowIfNull(value, "value");
5372 result.repeatedStringPiece_[index] = value;
5373 return this;
5374 }
5375 public Builder AddRepeatedStringPiece(string value) {
5376 pb::ThrowHelper.ThrowIfNull(value, "value");
5377 result.repeatedStringPiece_.Add(value);
5378 return this;
5379 }
5380 public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005381 result.repeatedStringPiece_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005382 return this;
5383 }
5384 public Builder ClearRepeatedStringPiece() {
5385 result.repeatedStringPiece_.Clear();
5386 return this;
5387 }
5388
5389 public pbc::IPopsicleList<string> RepeatedCordList {
5390 get { return result.repeatedCord_; }
5391 }
5392 public int RepeatedCordCount {
5393 get { return result.RepeatedCordCount; }
5394 }
5395 public string GetRepeatedCord(int index) {
5396 return result.GetRepeatedCord(index);
5397 }
5398 public Builder SetRepeatedCord(int index, string value) {
5399 pb::ThrowHelper.ThrowIfNull(value, "value");
5400 result.repeatedCord_[index] = value;
5401 return this;
5402 }
5403 public Builder AddRepeatedCord(string value) {
5404 pb::ThrowHelper.ThrowIfNull(value, "value");
5405 result.repeatedCord_.Add(value);
5406 return this;
5407 }
5408 public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
csharptest4ecebd82011-09-16 12:21:00 -05005409 result.repeatedCord_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005410 return this;
5411 }
5412 public Builder ClearRepeatedCord() {
5413 result.repeatedCord_.Clear();
5414 return this;
5415 }
5416
5417 public bool HasDefaultInt32 {
csharptestc671a4b2011-06-08 11:51:24 -05005418 get { return result.hasDefaultInt32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005419 }
5420 public int DefaultInt32 {
5421 get { return result.DefaultInt32; }
5422 set { SetDefaultInt32(value); }
5423 }
5424 public Builder SetDefaultInt32(int value) {
5425 result.hasDefaultInt32 = true;
5426 result.defaultInt32_ = value;
5427 return this;
5428 }
5429 public Builder ClearDefaultInt32() {
5430 result.hasDefaultInt32 = false;
5431 result.defaultInt32_ = 41;
5432 return this;
5433 }
5434
5435 public bool HasDefaultInt64 {
csharptestc671a4b2011-06-08 11:51:24 -05005436 get { return result.hasDefaultInt64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005437 }
5438 public long DefaultInt64 {
5439 get { return result.DefaultInt64; }
5440 set { SetDefaultInt64(value); }
5441 }
5442 public Builder SetDefaultInt64(long value) {
5443 result.hasDefaultInt64 = true;
5444 result.defaultInt64_ = value;
5445 return this;
5446 }
5447 public Builder ClearDefaultInt64() {
5448 result.hasDefaultInt64 = false;
5449 result.defaultInt64_ = 42L;
5450 return this;
5451 }
5452
5453 public bool HasDefaultUint32 {
csharptestc671a4b2011-06-08 11:51:24 -05005454 get { return result.hasDefaultUint32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005455 }
5456 [global::System.CLSCompliant(false)]
5457 public uint DefaultUint32 {
5458 get { return result.DefaultUint32; }
5459 set { SetDefaultUint32(value); }
5460 }
5461 [global::System.CLSCompliant(false)]
5462 public Builder SetDefaultUint32(uint value) {
5463 result.hasDefaultUint32 = true;
5464 result.defaultUint32_ = value;
5465 return this;
5466 }
5467 public Builder ClearDefaultUint32() {
5468 result.hasDefaultUint32 = false;
5469 result.defaultUint32_ = 43;
5470 return this;
5471 }
5472
5473 public bool HasDefaultUint64 {
csharptestc671a4b2011-06-08 11:51:24 -05005474 get { return result.hasDefaultUint64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005475 }
5476 [global::System.CLSCompliant(false)]
5477 public ulong DefaultUint64 {
5478 get { return result.DefaultUint64; }
5479 set { SetDefaultUint64(value); }
5480 }
5481 [global::System.CLSCompliant(false)]
5482 public Builder SetDefaultUint64(ulong value) {
5483 result.hasDefaultUint64 = true;
5484 result.defaultUint64_ = value;
5485 return this;
5486 }
5487 public Builder ClearDefaultUint64() {
5488 result.hasDefaultUint64 = false;
5489 result.defaultUint64_ = 44UL;
5490 return this;
5491 }
5492
5493 public bool HasDefaultSint32 {
csharptestc671a4b2011-06-08 11:51:24 -05005494 get { return result.hasDefaultSint32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005495 }
5496 public int DefaultSint32 {
5497 get { return result.DefaultSint32; }
5498 set { SetDefaultSint32(value); }
5499 }
5500 public Builder SetDefaultSint32(int value) {
5501 result.hasDefaultSint32 = true;
5502 result.defaultSint32_ = value;
5503 return this;
5504 }
5505 public Builder ClearDefaultSint32() {
5506 result.hasDefaultSint32 = false;
5507 result.defaultSint32_ = -45;
5508 return this;
5509 }
5510
5511 public bool HasDefaultSint64 {
csharptestc671a4b2011-06-08 11:51:24 -05005512 get { return result.hasDefaultSint64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005513 }
5514 public long DefaultSint64 {
5515 get { return result.DefaultSint64; }
5516 set { SetDefaultSint64(value); }
5517 }
5518 public Builder SetDefaultSint64(long value) {
5519 result.hasDefaultSint64 = true;
5520 result.defaultSint64_ = value;
5521 return this;
5522 }
5523 public Builder ClearDefaultSint64() {
5524 result.hasDefaultSint64 = false;
5525 result.defaultSint64_ = 46;
5526 return this;
5527 }
5528
5529 public bool HasDefaultFixed32 {
csharptestc671a4b2011-06-08 11:51:24 -05005530 get { return result.hasDefaultFixed32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005531 }
5532 [global::System.CLSCompliant(false)]
5533 public uint DefaultFixed32 {
5534 get { return result.DefaultFixed32; }
5535 set { SetDefaultFixed32(value); }
5536 }
5537 [global::System.CLSCompliant(false)]
5538 public Builder SetDefaultFixed32(uint value) {
5539 result.hasDefaultFixed32 = true;
5540 result.defaultFixed32_ = value;
5541 return this;
5542 }
5543 public Builder ClearDefaultFixed32() {
5544 result.hasDefaultFixed32 = false;
5545 result.defaultFixed32_ = 47;
5546 return this;
5547 }
5548
5549 public bool HasDefaultFixed64 {
csharptestc671a4b2011-06-08 11:51:24 -05005550 get { return result.hasDefaultFixed64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005551 }
5552 [global::System.CLSCompliant(false)]
5553 public ulong DefaultFixed64 {
5554 get { return result.DefaultFixed64; }
5555 set { SetDefaultFixed64(value); }
5556 }
5557 [global::System.CLSCompliant(false)]
5558 public Builder SetDefaultFixed64(ulong value) {
5559 result.hasDefaultFixed64 = true;
5560 result.defaultFixed64_ = value;
5561 return this;
5562 }
5563 public Builder ClearDefaultFixed64() {
5564 result.hasDefaultFixed64 = false;
5565 result.defaultFixed64_ = 48;
5566 return this;
5567 }
5568
5569 public bool HasDefaultSfixed32 {
csharptestc671a4b2011-06-08 11:51:24 -05005570 get { return result.hasDefaultSfixed32; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005571 }
5572 public int DefaultSfixed32 {
5573 get { return result.DefaultSfixed32; }
5574 set { SetDefaultSfixed32(value); }
5575 }
5576 public Builder SetDefaultSfixed32(int value) {
5577 result.hasDefaultSfixed32 = true;
5578 result.defaultSfixed32_ = value;
5579 return this;
5580 }
5581 public Builder ClearDefaultSfixed32() {
5582 result.hasDefaultSfixed32 = false;
5583 result.defaultSfixed32_ = 49;
5584 return this;
5585 }
5586
5587 public bool HasDefaultSfixed64 {
csharptestc671a4b2011-06-08 11:51:24 -05005588 get { return result.hasDefaultSfixed64; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005589 }
5590 public long DefaultSfixed64 {
5591 get { return result.DefaultSfixed64; }
5592 set { SetDefaultSfixed64(value); }
5593 }
5594 public Builder SetDefaultSfixed64(long value) {
5595 result.hasDefaultSfixed64 = true;
5596 result.defaultSfixed64_ = value;
5597 return this;
5598 }
5599 public Builder ClearDefaultSfixed64() {
5600 result.hasDefaultSfixed64 = false;
5601 result.defaultSfixed64_ = -50;
5602 return this;
5603 }
5604
5605 public bool HasDefaultFloat {
csharptestc671a4b2011-06-08 11:51:24 -05005606 get { return result.hasDefaultFloat; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005607 }
5608 public float DefaultFloat {
5609 get { return result.DefaultFloat; }
5610 set { SetDefaultFloat(value); }
5611 }
5612 public Builder SetDefaultFloat(float value) {
5613 result.hasDefaultFloat = true;
5614 result.defaultFloat_ = value;
5615 return this;
5616 }
5617 public Builder ClearDefaultFloat() {
5618 result.hasDefaultFloat = false;
5619 result.defaultFloat_ = 51.5F;
5620 return this;
5621 }
5622
5623 public bool HasDefaultDouble {
csharptestc671a4b2011-06-08 11:51:24 -05005624 get { return result.hasDefaultDouble; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005625 }
5626 public double DefaultDouble {
5627 get { return result.DefaultDouble; }
5628 set { SetDefaultDouble(value); }
5629 }
5630 public Builder SetDefaultDouble(double value) {
5631 result.hasDefaultDouble = true;
5632 result.defaultDouble_ = value;
5633 return this;
5634 }
5635 public Builder ClearDefaultDouble() {
5636 result.hasDefaultDouble = false;
5637 result.defaultDouble_ = 52000D;
5638 return this;
5639 }
5640
5641 public bool HasDefaultBool {
csharptestc671a4b2011-06-08 11:51:24 -05005642 get { return result.hasDefaultBool; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005643 }
5644 public bool DefaultBool {
5645 get { return result.DefaultBool; }
5646 set { SetDefaultBool(value); }
5647 }
5648 public Builder SetDefaultBool(bool value) {
5649 result.hasDefaultBool = true;
5650 result.defaultBool_ = value;
5651 return this;
5652 }
5653 public Builder ClearDefaultBool() {
5654 result.hasDefaultBool = false;
5655 result.defaultBool_ = true;
5656 return this;
5657 }
5658
5659 public bool HasDefaultString {
csharptestc671a4b2011-06-08 11:51:24 -05005660 get { return result.hasDefaultString; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005661 }
5662 public string DefaultString {
5663 get { return result.DefaultString; }
5664 set { SetDefaultString(value); }
5665 }
5666 public Builder SetDefaultString(string value) {
5667 pb::ThrowHelper.ThrowIfNull(value, "value");
5668 result.hasDefaultString = true;
5669 result.defaultString_ = value;
5670 return this;
5671 }
5672 public Builder ClearDefaultString() {
5673 result.hasDefaultString = false;
5674 result.defaultString_ = "hello";
5675 return this;
5676 }
5677
5678 public bool HasDefaultBytes {
csharptestc671a4b2011-06-08 11:51:24 -05005679 get { return result.hasDefaultBytes; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005680 }
5681 public pb::ByteString DefaultBytes {
5682 get { return result.DefaultBytes; }
5683 set { SetDefaultBytes(value); }
5684 }
5685 public Builder SetDefaultBytes(pb::ByteString value) {
5686 pb::ThrowHelper.ThrowIfNull(value, "value");
5687 result.hasDefaultBytes = true;
5688 result.defaultBytes_ = value;
5689 return this;
5690 }
5691 public Builder ClearDefaultBytes() {
5692 result.hasDefaultBytes = false;
csharptest02760b22011-07-14 14:46:42 -05005693 result.defaultBytes_ = pb::ByteString.FromBase64("d29ybGQ=");
Jon Skeet82bb0f12011-04-03 20:17:12 +01005694 return this;
5695 }
5696
5697 public bool HasDefaultNestedEnum {
csharptestc671a4b2011-06-08 11:51:24 -05005698 get { return result.hasDefaultNestedEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005699 }
5700 public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
5701 get { return result.DefaultNestedEnum; }
5702 set { SetDefaultNestedEnum(value); }
5703 }
5704 public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
5705 result.hasDefaultNestedEnum = true;
5706 result.defaultNestedEnum_ = value;
5707 return this;
5708 }
5709 public Builder ClearDefaultNestedEnum() {
5710 result.hasDefaultNestedEnum = false;
5711 result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
5712 return this;
5713 }
5714
5715 public bool HasDefaultForeignEnum {
csharptestc671a4b2011-06-08 11:51:24 -05005716 get { return result.hasDefaultForeignEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005717 }
5718 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
5719 get { return result.DefaultForeignEnum; }
5720 set { SetDefaultForeignEnum(value); }
5721 }
5722 public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
5723 result.hasDefaultForeignEnum = true;
5724 result.defaultForeignEnum_ = value;
5725 return this;
5726 }
5727 public Builder ClearDefaultForeignEnum() {
5728 result.hasDefaultForeignEnum = false;
5729 result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
5730 return this;
5731 }
5732
5733 public bool HasDefaultImportEnum {
csharptestc671a4b2011-06-08 11:51:24 -05005734 get { return result.hasDefaultImportEnum; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005735 }
5736 public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
5737 get { return result.DefaultImportEnum; }
5738 set { SetDefaultImportEnum(value); }
5739 }
5740 public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
5741 result.hasDefaultImportEnum = true;
5742 result.defaultImportEnum_ = value;
5743 return this;
5744 }
5745 public Builder ClearDefaultImportEnum() {
5746 result.hasDefaultImportEnum = false;
5747 result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
5748 return this;
5749 }
5750
5751 public bool HasDefaultStringPiece {
csharptestc671a4b2011-06-08 11:51:24 -05005752 get { return result.hasDefaultStringPiece; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005753 }
5754 public string DefaultStringPiece {
5755 get { return result.DefaultStringPiece; }
5756 set { SetDefaultStringPiece(value); }
5757 }
5758 public Builder SetDefaultStringPiece(string value) {
5759 pb::ThrowHelper.ThrowIfNull(value, "value");
5760 result.hasDefaultStringPiece = true;
5761 result.defaultStringPiece_ = value;
5762 return this;
5763 }
5764 public Builder ClearDefaultStringPiece() {
5765 result.hasDefaultStringPiece = false;
5766 result.defaultStringPiece_ = "abc";
5767 return this;
5768 }
5769
5770 public bool HasDefaultCord {
csharptestc671a4b2011-06-08 11:51:24 -05005771 get { return result.hasDefaultCord; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005772 }
5773 public string DefaultCord {
5774 get { return result.DefaultCord; }
5775 set { SetDefaultCord(value); }
5776 }
5777 public Builder SetDefaultCord(string value) {
5778 pb::ThrowHelper.ThrowIfNull(value, "value");
5779 result.hasDefaultCord = true;
5780 result.defaultCord_ = value;
5781 return this;
5782 }
5783 public Builder ClearDefaultCord() {
5784 result.hasDefaultCord = false;
5785 result.defaultCord_ = "123";
5786 return this;
5787 }
5788 }
5789 static TestAllTypesLite() {
5790 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
5791 }
5792 }
5793
csharptest445bdce2011-05-20 15:50:54 -05005794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5795 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5796 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005797 public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05005798 private ForeignMessageLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005799 private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05005800 private static readonly string[] _foreignMessageLiteFieldNames = new string[] { "c" };
5801 private static readonly uint[] _foreignMessageLiteFieldTags = new uint[] { 8 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01005802 public static ForeignMessageLite DefaultInstance {
5803 get { return defaultInstance; }
5804 }
5805
5806 public override ForeignMessageLite DefaultInstanceForType {
5807 get { return defaultInstance; }
5808 }
5809
5810 protected override ForeignMessageLite ThisMessage {
5811 get { return this; }
5812 }
5813
5814 public const int CFieldNumber = 1;
5815 private bool hasC;
csharptestced18e12011-06-09 19:47:56 -05005816 private int c_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01005817 public bool HasC {
5818 get { return hasC; }
5819 }
5820 public int C {
5821 get { return c_; }
5822 }
5823
5824 public override bool IsInitialized {
5825 get {
5826 return true;
5827 }
5828 }
5829
csharptestffafdaa2011-06-03 12:58:14 -05005830 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005831 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05005832 string[] field_names = _foreignMessageLiteFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05005833 if (hasC) {
csharptest920b09a2011-06-08 20:13:29 -05005834 output.WriteInt32(1, field_names[0], C);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005835 }
5836 }
5837
5838 private int memoizedSerializedSize = -1;
5839 public override int SerializedSize {
5840 get {
5841 int size = memoizedSerializedSize;
5842 if (size != -1) return size;
5843
5844 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05005845 if (hasC) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005846 size += pb::CodedOutputStream.ComputeInt32Size(1, C);
5847 }
5848 memoizedSerializedSize = size;
5849 return size;
5850 }
5851 }
5852
5853 #region Lite runtime methods
5854 public override int GetHashCode() {
5855 int hash = GetType().GetHashCode();
5856 if (hasC) hash ^= c_.GetHashCode();
5857 return hash;
5858 }
5859
5860 public override bool Equals(object obj) {
5861 ForeignMessageLite other = obj as ForeignMessageLite;
5862 if (other == null) return false;
5863 if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
5864 return true;
5865 }
5866
5867 public override void PrintTo(global::System.IO.TextWriter writer) {
5868 PrintField("c", hasC, c_, writer);
5869 }
5870 #endregion
5871
5872 public static ForeignMessageLite ParseFrom(pb::ByteString data) {
5873 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5874 }
5875 public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
5876 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5877 }
5878 public static ForeignMessageLite ParseFrom(byte[] data) {
5879 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
5880 }
5881 public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
5882 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
5883 }
5884 public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
5885 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5886 }
5887 public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5888 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5889 }
5890 public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
5891 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
5892 }
5893 public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
5894 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
5895 }
csharptest17699c22011-06-03 21:57:15 -05005896 public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005897 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
5898 }
csharptest17699c22011-06-03 21:57:15 -05005899 public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005900 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
5901 }
5902 public static Builder CreateBuilder() { return new Builder(); }
5903 public override Builder ToBuilder() { return CreateBuilder(this); }
5904 public override Builder CreateBuilderForType() { return new Builder(); }
5905 public static Builder CreateBuilder(ForeignMessageLite prototype) {
5906 return (Builder) new Builder().MergeFrom(prototype);
5907 }
5908
csharptest445bdce2011-05-20 15:50:54 -05005909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5910 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
5911 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01005912 public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
5913 protected override Builder ThisBuilder {
5914 get { return this; }
5915 }
5916 public Builder() {}
5917
5918 ForeignMessageLite result = new ForeignMessageLite();
5919
5920 protected override ForeignMessageLite MessageBeingBuilt {
5921 get { return result; }
5922 }
5923
5924 public override Builder Clear() {
5925 result = new ForeignMessageLite();
5926 return this;
5927 }
5928
5929 public override Builder Clone() {
5930 return new Builder().MergeFrom(result);
5931 }
5932
5933 public override ForeignMessageLite DefaultInstanceForType {
5934 get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
5935 }
5936
5937 public override ForeignMessageLite BuildPartial() {
5938 if (result == null) {
5939 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
5940 }
5941 ForeignMessageLite returnMe = result;
5942 result = null;
5943 return returnMe;
5944 }
5945
5946 public override Builder MergeFrom(pb::IMessageLite other) {
5947 if (other is ForeignMessageLite) {
5948 return MergeFrom((ForeignMessageLite) other);
5949 } else {
5950 base.MergeFrom(other);
5951 return this;
5952 }
5953 }
5954
5955 public override Builder MergeFrom(ForeignMessageLite other) {
5956 if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
5957 if (other.HasC) {
5958 C = other.C;
5959 }
5960 return this;
5961 }
5962
csharptest17699c22011-06-03 21:57:15 -05005963 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01005964 return MergeFrom(input, pb::ExtensionRegistry.Empty);
5965 }
5966
csharptest17699c22011-06-03 21:57:15 -05005967 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05005968 uint tag;
5969 string field_name;
5970 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05005971 if(tag == 0 && field_name != null) {
5972 int field_ordinal = global::System.Array.BinarySearch(_foreignMessageLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
5973 if(field_ordinal >= 0)
5974 tag = _foreignMessageLiteFieldTags[field_ordinal];
5975 else {
5976 ParseUnknownField(input, extensionRegistry, tag, field_name);
5977 continue;
5978 }
5979 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01005980 switch (tag) {
5981 case 0: {
csharptest99284412011-06-03 14:51:06 -05005982 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01005983 }
5984 default: {
5985 if (pb::WireFormat.IsEndGroupTag(tag)) {
5986 return this;
5987 }
csharptestd2af9e92011-06-03 21:35:02 -05005988 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005989 break;
5990 }
5991 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05005992 result.hasC = input.ReadInt32(ref result.c_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01005993 break;
5994 }
5995 }
5996 }
csharptest123e5342011-06-03 14:15:21 -05005997
5998 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01005999 }
6000
6001
6002 public bool HasC {
csharptestc671a4b2011-06-08 11:51:24 -05006003 get { return result.hasC; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01006004 }
6005 public int C {
6006 get { return result.C; }
6007 set { SetC(value); }
6008 }
6009 public Builder SetC(int value) {
6010 result.hasC = true;
6011 result.c_ = value;
6012 return this;
6013 }
6014 public Builder ClearC() {
6015 result.hasC = false;
6016 result.c_ = 0;
6017 return this;
6018 }
6019 }
6020 static ForeignMessageLite() {
6021 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
6022 }
6023 }
6024
csharptest445bdce2011-05-20 15:50:54 -05006025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6026 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6027 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006028 public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05006029 private TestPackedTypesLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01006030 private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05006031 private static readonly string[] _testPackedTypesLiteFieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
6032 private static readonly uint[] _testPackedTypesLiteFieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01006033 public static TestPackedTypesLite DefaultInstance {
6034 get { return defaultInstance; }
6035 }
6036
6037 public override TestPackedTypesLite DefaultInstanceForType {
6038 get { return defaultInstance; }
6039 }
6040
6041 protected override TestPackedTypesLite ThisMessage {
6042 get { return this; }
6043 }
6044
6045 public const int PackedInt32FieldNumber = 90;
6046 private int packedInt32MemoizedSerializedSize;
6047 private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
6048 public scg::IList<int> PackedInt32List {
6049 get { return pbc::Lists.AsReadOnly(packedInt32_); }
6050 }
6051 public int PackedInt32Count {
6052 get { return packedInt32_.Count; }
6053 }
6054 public int GetPackedInt32(int index) {
6055 return packedInt32_[index];
6056 }
6057
6058 public const int PackedInt64FieldNumber = 91;
6059 private int packedInt64MemoizedSerializedSize;
6060 private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
6061 public scg::IList<long> PackedInt64List {
6062 get { return pbc::Lists.AsReadOnly(packedInt64_); }
6063 }
6064 public int PackedInt64Count {
6065 get { return packedInt64_.Count; }
6066 }
6067 public long GetPackedInt64(int index) {
6068 return packedInt64_[index];
6069 }
6070
6071 public const int PackedUint32FieldNumber = 92;
6072 private int packedUint32MemoizedSerializedSize;
6073 private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
6074 [global::System.CLSCompliant(false)]
6075 public scg::IList<uint> PackedUint32List {
6076 get { return pbc::Lists.AsReadOnly(packedUint32_); }
6077 }
6078 public int PackedUint32Count {
6079 get { return packedUint32_.Count; }
6080 }
6081 [global::System.CLSCompliant(false)]
6082 public uint GetPackedUint32(int index) {
6083 return packedUint32_[index];
6084 }
6085
6086 public const int PackedUint64FieldNumber = 93;
6087 private int packedUint64MemoizedSerializedSize;
6088 private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
6089 [global::System.CLSCompliant(false)]
6090 public scg::IList<ulong> PackedUint64List {
6091 get { return pbc::Lists.AsReadOnly(packedUint64_); }
6092 }
6093 public int PackedUint64Count {
6094 get { return packedUint64_.Count; }
6095 }
6096 [global::System.CLSCompliant(false)]
6097 public ulong GetPackedUint64(int index) {
6098 return packedUint64_[index];
6099 }
6100
6101 public const int PackedSint32FieldNumber = 94;
6102 private int packedSint32MemoizedSerializedSize;
6103 private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
6104 public scg::IList<int> PackedSint32List {
6105 get { return pbc::Lists.AsReadOnly(packedSint32_); }
6106 }
6107 public int PackedSint32Count {
6108 get { return packedSint32_.Count; }
6109 }
6110 public int GetPackedSint32(int index) {
6111 return packedSint32_[index];
6112 }
6113
6114 public const int PackedSint64FieldNumber = 95;
6115 private int packedSint64MemoizedSerializedSize;
6116 private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
6117 public scg::IList<long> PackedSint64List {
6118 get { return pbc::Lists.AsReadOnly(packedSint64_); }
6119 }
6120 public int PackedSint64Count {
6121 get { return packedSint64_.Count; }
6122 }
6123 public long GetPackedSint64(int index) {
6124 return packedSint64_[index];
6125 }
6126
6127 public const int PackedFixed32FieldNumber = 96;
6128 private int packedFixed32MemoizedSerializedSize;
6129 private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
6130 [global::System.CLSCompliant(false)]
6131 public scg::IList<uint> PackedFixed32List {
6132 get { return pbc::Lists.AsReadOnly(packedFixed32_); }
6133 }
6134 public int PackedFixed32Count {
6135 get { return packedFixed32_.Count; }
6136 }
6137 [global::System.CLSCompliant(false)]
6138 public uint GetPackedFixed32(int index) {
6139 return packedFixed32_[index];
6140 }
6141
6142 public const int PackedFixed64FieldNumber = 97;
6143 private int packedFixed64MemoizedSerializedSize;
6144 private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
6145 [global::System.CLSCompliant(false)]
6146 public scg::IList<ulong> PackedFixed64List {
6147 get { return pbc::Lists.AsReadOnly(packedFixed64_); }
6148 }
6149 public int PackedFixed64Count {
6150 get { return packedFixed64_.Count; }
6151 }
6152 [global::System.CLSCompliant(false)]
6153 public ulong GetPackedFixed64(int index) {
6154 return packedFixed64_[index];
6155 }
6156
6157 public const int PackedSfixed32FieldNumber = 98;
6158 private int packedSfixed32MemoizedSerializedSize;
6159 private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
6160 public scg::IList<int> PackedSfixed32List {
6161 get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
6162 }
6163 public int PackedSfixed32Count {
6164 get { return packedSfixed32_.Count; }
6165 }
6166 public int GetPackedSfixed32(int index) {
6167 return packedSfixed32_[index];
6168 }
6169
6170 public const int PackedSfixed64FieldNumber = 99;
6171 private int packedSfixed64MemoizedSerializedSize;
6172 private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
6173 public scg::IList<long> PackedSfixed64List {
6174 get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
6175 }
6176 public int PackedSfixed64Count {
6177 get { return packedSfixed64_.Count; }
6178 }
6179 public long GetPackedSfixed64(int index) {
6180 return packedSfixed64_[index];
6181 }
6182
6183 public const int PackedFloatFieldNumber = 100;
6184 private int packedFloatMemoizedSerializedSize;
6185 private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
6186 public scg::IList<float> PackedFloatList {
6187 get { return pbc::Lists.AsReadOnly(packedFloat_); }
6188 }
6189 public int PackedFloatCount {
6190 get { return packedFloat_.Count; }
6191 }
6192 public float GetPackedFloat(int index) {
6193 return packedFloat_[index];
6194 }
6195
6196 public const int PackedDoubleFieldNumber = 101;
6197 private int packedDoubleMemoizedSerializedSize;
6198 private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
6199 public scg::IList<double> PackedDoubleList {
6200 get { return pbc::Lists.AsReadOnly(packedDouble_); }
6201 }
6202 public int PackedDoubleCount {
6203 get { return packedDouble_.Count; }
6204 }
6205 public double GetPackedDouble(int index) {
6206 return packedDouble_[index];
6207 }
6208
6209 public const int PackedBoolFieldNumber = 102;
6210 private int packedBoolMemoizedSerializedSize;
6211 private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
6212 public scg::IList<bool> PackedBoolList {
6213 get { return pbc::Lists.AsReadOnly(packedBool_); }
6214 }
6215 public int PackedBoolCount {
6216 get { return packedBool_.Count; }
6217 }
6218 public bool GetPackedBool(int index) {
6219 return packedBool_[index];
6220 }
6221
6222 public const int PackedEnumFieldNumber = 103;
6223 private int packedEnumMemoizedSerializedSize;
6224 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
6225 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
6226 get { return pbc::Lists.AsReadOnly(packedEnum_); }
6227 }
6228 public int PackedEnumCount {
6229 get { return packedEnum_.Count; }
6230 }
6231 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
6232 return packedEnum_[index];
6233 }
6234
6235 public override bool IsInitialized {
6236 get {
6237 return true;
6238 }
6239 }
6240
csharptestffafdaa2011-06-03 12:58:14 -05006241 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006242 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05006243 string[] field_names = _testPackedTypesLiteFieldNames;
Jon Skeet82bb0f12011-04-03 20:17:12 +01006244 if (packedInt32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006245 output.WritePackedInt32Array(90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006246 }
6247 if (packedInt64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006248 output.WritePackedInt64Array(91, field_names[7], packedInt64MemoizedSerializedSize, packedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006249 }
6250 if (packedUint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006251 output.WritePackedUInt32Array(92, field_names[12], packedUint32MemoizedSerializedSize, packedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006252 }
6253 if (packedUint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006254 output.WritePackedUInt64Array(93, field_names[13], packedUint64MemoizedSerializedSize, packedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006255 }
6256 if (packedSint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006257 output.WritePackedSInt32Array(94, field_names[10], packedSint32MemoizedSerializedSize, packedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006258 }
6259 if (packedSint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006260 output.WritePackedSInt64Array(95, field_names[11], packedSint64MemoizedSerializedSize, packedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006261 }
6262 if (packedFixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006263 output.WritePackedFixed32Array(96, field_names[3], packedFixed32MemoizedSerializedSize, packedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006264 }
6265 if (packedFixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006266 output.WritePackedFixed64Array(97, field_names[4], packedFixed64MemoizedSerializedSize, packedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006267 }
6268 if (packedSfixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006269 output.WritePackedSFixed32Array(98, field_names[8], packedSfixed32MemoizedSerializedSize, packedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006270 }
6271 if (packedSfixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006272 output.WritePackedSFixed64Array(99, field_names[9], packedSfixed64MemoizedSerializedSize, packedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006273 }
6274 if (packedFloat_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006275 output.WritePackedFloatArray(100, field_names[5], packedFloatMemoizedSerializedSize, packedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006276 }
6277 if (packedDouble_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006278 output.WritePackedDoubleArray(101, field_names[1], packedDoubleMemoizedSerializedSize, packedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006279 }
6280 if (packedBool_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006281 output.WritePackedBoolArray(102, field_names[0], packedBoolMemoizedSerializedSize, packedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006282 }
6283 if (packedEnum_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05006284 output.WritePackedEnumArray(103, field_names[2], packedEnumMemoizedSerializedSize, packedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006285 }
6286 }
6287
6288 private int memoizedSerializedSize = -1;
6289 public override int SerializedSize {
6290 get {
6291 int size = memoizedSerializedSize;
6292 if (size != -1) return size;
6293
6294 size = 0;
6295 {
6296 int dataSize = 0;
6297 foreach (int element in PackedInt32List) {
6298 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
6299 }
6300 size += dataSize;
6301 if (packedInt32_.Count != 0) {
6302 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6303 }
6304 packedInt32MemoizedSerializedSize = dataSize;
6305 }
6306 {
6307 int dataSize = 0;
6308 foreach (long element in PackedInt64List) {
6309 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
6310 }
6311 size += dataSize;
6312 if (packedInt64_.Count != 0) {
6313 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6314 }
6315 packedInt64MemoizedSerializedSize = dataSize;
6316 }
6317 {
6318 int dataSize = 0;
6319 foreach (uint element in PackedUint32List) {
6320 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
6321 }
6322 size += dataSize;
6323 if (packedUint32_.Count != 0) {
6324 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6325 }
6326 packedUint32MemoizedSerializedSize = dataSize;
6327 }
6328 {
6329 int dataSize = 0;
6330 foreach (ulong element in PackedUint64List) {
6331 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
6332 }
6333 size += dataSize;
6334 if (packedUint64_.Count != 0) {
6335 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6336 }
6337 packedUint64MemoizedSerializedSize = dataSize;
6338 }
6339 {
6340 int dataSize = 0;
6341 foreach (int element in PackedSint32List) {
6342 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
6343 }
6344 size += dataSize;
6345 if (packedSint32_.Count != 0) {
6346 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6347 }
6348 packedSint32MemoizedSerializedSize = dataSize;
6349 }
6350 {
6351 int dataSize = 0;
6352 foreach (long element in PackedSint64List) {
6353 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
6354 }
6355 size += dataSize;
6356 if (packedSint64_.Count != 0) {
6357 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6358 }
6359 packedSint64MemoizedSerializedSize = dataSize;
6360 }
6361 {
6362 int dataSize = 0;
6363 dataSize = 4 * packedFixed32_.Count;
6364 size += dataSize;
6365 if (packedFixed32_.Count != 0) {
6366 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6367 }
6368 packedFixed32MemoizedSerializedSize = dataSize;
6369 }
6370 {
6371 int dataSize = 0;
6372 dataSize = 8 * packedFixed64_.Count;
6373 size += dataSize;
6374 if (packedFixed64_.Count != 0) {
6375 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6376 }
6377 packedFixed64MemoizedSerializedSize = dataSize;
6378 }
6379 {
6380 int dataSize = 0;
6381 dataSize = 4 * packedSfixed32_.Count;
6382 size += dataSize;
6383 if (packedSfixed32_.Count != 0) {
6384 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6385 }
6386 packedSfixed32MemoizedSerializedSize = dataSize;
6387 }
6388 {
6389 int dataSize = 0;
6390 dataSize = 8 * packedSfixed64_.Count;
6391 size += dataSize;
6392 if (packedSfixed64_.Count != 0) {
6393 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6394 }
6395 packedSfixed64MemoizedSerializedSize = dataSize;
6396 }
6397 {
6398 int dataSize = 0;
6399 dataSize = 4 * packedFloat_.Count;
6400 size += dataSize;
6401 if (packedFloat_.Count != 0) {
6402 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6403 }
6404 packedFloatMemoizedSerializedSize = dataSize;
6405 }
6406 {
6407 int dataSize = 0;
6408 dataSize = 8 * packedDouble_.Count;
6409 size += dataSize;
6410 if (packedDouble_.Count != 0) {
6411 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6412 }
6413 packedDoubleMemoizedSerializedSize = dataSize;
6414 }
6415 {
6416 int dataSize = 0;
6417 dataSize = 1 * packedBool_.Count;
6418 size += dataSize;
6419 if (packedBool_.Count != 0) {
6420 size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
6421 }
6422 packedBoolMemoizedSerializedSize = dataSize;
6423 }
6424 {
6425 int dataSize = 0;
6426 if (packedEnum_.Count > 0) {
6427 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) {
6428 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
6429 }
6430 size += dataSize;
6431 size += 2;
6432 size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
6433 }
6434 packedEnumMemoizedSerializedSize = dataSize;
6435 }
6436 memoizedSerializedSize = size;
6437 return size;
6438 }
6439 }
6440
6441 #region Lite runtime methods
6442 public override int GetHashCode() {
6443 int hash = GetType().GetHashCode();
6444 foreach(int i in packedInt32_)
6445 hash ^= i.GetHashCode();
6446 foreach(long i in packedInt64_)
6447 hash ^= i.GetHashCode();
6448 foreach(uint i in packedUint32_)
6449 hash ^= i.GetHashCode();
6450 foreach(ulong i in packedUint64_)
6451 hash ^= i.GetHashCode();
6452 foreach(int i in packedSint32_)
6453 hash ^= i.GetHashCode();
6454 foreach(long i in packedSint64_)
6455 hash ^= i.GetHashCode();
6456 foreach(uint i in packedFixed32_)
6457 hash ^= i.GetHashCode();
6458 foreach(ulong i in packedFixed64_)
6459 hash ^= i.GetHashCode();
6460 foreach(int i in packedSfixed32_)
6461 hash ^= i.GetHashCode();
6462 foreach(long i in packedSfixed64_)
6463 hash ^= i.GetHashCode();
6464 foreach(float i in packedFloat_)
6465 hash ^= i.GetHashCode();
6466 foreach(double i in packedDouble_)
6467 hash ^= i.GetHashCode();
6468 foreach(bool i in packedBool_)
6469 hash ^= i.GetHashCode();
6470 foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
6471 hash ^= i.GetHashCode();
6472 return hash;
6473 }
6474
6475 public override bool Equals(object obj) {
6476 TestPackedTypesLite other = obj as TestPackedTypesLite;
6477 if (other == null) return false;
6478 if(packedInt32_.Count != other.packedInt32_.Count) return false;
6479 for(int ix=0; ix < packedInt32_.Count; ix++)
6480 if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
6481 if(packedInt64_.Count != other.packedInt64_.Count) return false;
6482 for(int ix=0; ix < packedInt64_.Count; ix++)
6483 if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
6484 if(packedUint32_.Count != other.packedUint32_.Count) return false;
6485 for(int ix=0; ix < packedUint32_.Count; ix++)
6486 if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
6487 if(packedUint64_.Count != other.packedUint64_.Count) return false;
6488 for(int ix=0; ix < packedUint64_.Count; ix++)
6489 if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
6490 if(packedSint32_.Count != other.packedSint32_.Count) return false;
6491 for(int ix=0; ix < packedSint32_.Count; ix++)
6492 if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
6493 if(packedSint64_.Count != other.packedSint64_.Count) return false;
6494 for(int ix=0; ix < packedSint64_.Count; ix++)
6495 if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
6496 if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
6497 for(int ix=0; ix < packedFixed32_.Count; ix++)
6498 if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
6499 if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
6500 for(int ix=0; ix < packedFixed64_.Count; ix++)
6501 if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
6502 if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
6503 for(int ix=0; ix < packedSfixed32_.Count; ix++)
6504 if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
6505 if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
6506 for(int ix=0; ix < packedSfixed64_.Count; ix++)
6507 if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
6508 if(packedFloat_.Count != other.packedFloat_.Count) return false;
6509 for(int ix=0; ix < packedFloat_.Count; ix++)
6510 if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
6511 if(packedDouble_.Count != other.packedDouble_.Count) return false;
6512 for(int ix=0; ix < packedDouble_.Count; ix++)
6513 if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
6514 if(packedBool_.Count != other.packedBool_.Count) return false;
6515 for(int ix=0; ix < packedBool_.Count; ix++)
6516 if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
6517 if(packedEnum_.Count != other.packedEnum_.Count) return false;
6518 for(int ix=0; ix < packedEnum_.Count; ix++)
6519 if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
6520 return true;
6521 }
6522
6523 public override void PrintTo(global::System.IO.TextWriter writer) {
6524 PrintField("packed_int32", packedInt32_, writer);
6525 PrintField("packed_int64", packedInt64_, writer);
6526 PrintField("packed_uint32", packedUint32_, writer);
6527 PrintField("packed_uint64", packedUint64_, writer);
6528 PrintField("packed_sint32", packedSint32_, writer);
6529 PrintField("packed_sint64", packedSint64_, writer);
6530 PrintField("packed_fixed32", packedFixed32_, writer);
6531 PrintField("packed_fixed64", packedFixed64_, writer);
6532 PrintField("packed_sfixed32", packedSfixed32_, writer);
6533 PrintField("packed_sfixed64", packedSfixed64_, writer);
6534 PrintField("packed_float", packedFloat_, writer);
6535 PrintField("packed_double", packedDouble_, writer);
6536 PrintField("packed_bool", packedBool_, writer);
6537 PrintField("packed_enum", packedEnum_, writer);
6538 }
6539 #endregion
6540
6541 public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
6542 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6543 }
6544 public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
6545 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6546 }
6547 public static TestPackedTypesLite ParseFrom(byte[] data) {
6548 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
6549 }
6550 public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
6551 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
6552 }
6553 public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
6554 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6555 }
6556 public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6557 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6558 }
6559 public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
6560 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
6561 }
6562 public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
6563 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
6564 }
csharptest17699c22011-06-03 21:57:15 -05006565 public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006566 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
6567 }
csharptest17699c22011-06-03 21:57:15 -05006568 public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006569 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
6570 }
6571 public static Builder CreateBuilder() { return new Builder(); }
6572 public override Builder ToBuilder() { return CreateBuilder(this); }
6573 public override Builder CreateBuilderForType() { return new Builder(); }
6574 public static Builder CreateBuilder(TestPackedTypesLite prototype) {
6575 return (Builder) new Builder().MergeFrom(prototype);
6576 }
6577
csharptest445bdce2011-05-20 15:50:54 -05006578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6579 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
6580 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01006581 public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
6582 protected override Builder ThisBuilder {
6583 get { return this; }
6584 }
6585 public Builder() {}
6586
6587 TestPackedTypesLite result = new TestPackedTypesLite();
6588
6589 protected override TestPackedTypesLite MessageBeingBuilt {
6590 get { return result; }
6591 }
6592
6593 public override Builder Clear() {
6594 result = new TestPackedTypesLite();
6595 return this;
6596 }
6597
6598 public override Builder Clone() {
6599 return new Builder().MergeFrom(result);
6600 }
6601
6602 public override TestPackedTypesLite DefaultInstanceForType {
6603 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
6604 }
6605
6606 public override TestPackedTypesLite BuildPartial() {
6607 if (result == null) {
6608 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
6609 }
6610 result.packedInt32_.MakeReadOnly();
6611 result.packedInt64_.MakeReadOnly();
6612 result.packedUint32_.MakeReadOnly();
6613 result.packedUint64_.MakeReadOnly();
6614 result.packedSint32_.MakeReadOnly();
6615 result.packedSint64_.MakeReadOnly();
6616 result.packedFixed32_.MakeReadOnly();
6617 result.packedFixed64_.MakeReadOnly();
6618 result.packedSfixed32_.MakeReadOnly();
6619 result.packedSfixed64_.MakeReadOnly();
6620 result.packedFloat_.MakeReadOnly();
6621 result.packedDouble_.MakeReadOnly();
6622 result.packedBool_.MakeReadOnly();
6623 result.packedEnum_.MakeReadOnly();
6624 TestPackedTypesLite returnMe = result;
6625 result = null;
6626 return returnMe;
6627 }
6628
6629 public override Builder MergeFrom(pb::IMessageLite other) {
6630 if (other is TestPackedTypesLite) {
6631 return MergeFrom((TestPackedTypesLite) other);
6632 } else {
6633 base.MergeFrom(other);
6634 return this;
6635 }
6636 }
6637
6638 public override Builder MergeFrom(TestPackedTypesLite other) {
6639 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this;
6640 if (other.packedInt32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006641 result.packedInt32_.Add(other.packedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006642 }
6643 if (other.packedInt64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006644 result.packedInt64_.Add(other.packedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006645 }
6646 if (other.packedUint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006647 result.packedUint32_.Add(other.packedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006648 }
6649 if (other.packedUint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006650 result.packedUint64_.Add(other.packedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006651 }
6652 if (other.packedSint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006653 result.packedSint32_.Add(other.packedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006654 }
6655 if (other.packedSint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006656 result.packedSint64_.Add(other.packedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006657 }
6658 if (other.packedFixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006659 result.packedFixed32_.Add(other.packedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006660 }
6661 if (other.packedFixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006662 result.packedFixed64_.Add(other.packedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006663 }
6664 if (other.packedSfixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006665 result.packedSfixed32_.Add(other.packedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006666 }
6667 if (other.packedSfixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006668 result.packedSfixed64_.Add(other.packedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006669 }
6670 if (other.packedFloat_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006671 result.packedFloat_.Add(other.packedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006672 }
6673 if (other.packedDouble_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006674 result.packedDouble_.Add(other.packedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006675 }
6676 if (other.packedBool_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006677 result.packedBool_.Add(other.packedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006678 }
6679 if (other.packedEnum_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05006680 result.packedEnum_.Add(other.packedEnum_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006681 }
6682 return this;
6683 }
6684
csharptest17699c22011-06-03 21:57:15 -05006685 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01006686 return MergeFrom(input, pb::ExtensionRegistry.Empty);
6687 }
6688
csharptest17699c22011-06-03 21:57:15 -05006689 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05006690 uint tag;
6691 string field_name;
6692 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05006693 if(tag == 0 && field_name != null) {
6694 int field_ordinal = global::System.Array.BinarySearch(_testPackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
6695 if(field_ordinal >= 0)
6696 tag = _testPackedTypesLiteFieldTags[field_ordinal];
6697 else {
6698 ParseUnknownField(input, extensionRegistry, tag, field_name);
6699 continue;
6700 }
6701 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01006702 switch (tag) {
6703 case 0: {
csharptest99284412011-06-03 14:51:06 -05006704 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01006705 }
6706 default: {
6707 if (pb::WireFormat.IsEndGroupTag(tag)) {
6708 return this;
6709 }
csharptestd2af9e92011-06-03 21:35:02 -05006710 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006711 break;
6712 }
csharptest6da31702011-06-04 12:52:57 -05006713 case 722:
6714 case 720: {
csharptestb00ea132011-06-10 01:09:57 -05006715 input.ReadInt32Array(tag, field_name, result.packedInt32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006716 break;
6717 }
csharptest6da31702011-06-04 12:52:57 -05006718 case 730:
6719 case 728: {
csharptestb00ea132011-06-10 01:09:57 -05006720 input.ReadInt64Array(tag, field_name, result.packedInt64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006721 break;
6722 }
csharptest6da31702011-06-04 12:52:57 -05006723 case 738:
6724 case 736: {
csharptestb00ea132011-06-10 01:09:57 -05006725 input.ReadUInt32Array(tag, field_name, result.packedUint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006726 break;
6727 }
csharptest6da31702011-06-04 12:52:57 -05006728 case 746:
6729 case 744: {
csharptestb00ea132011-06-10 01:09:57 -05006730 input.ReadUInt64Array(tag, field_name, result.packedUint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006731 break;
6732 }
csharptest6da31702011-06-04 12:52:57 -05006733 case 754:
6734 case 752: {
csharptestb00ea132011-06-10 01:09:57 -05006735 input.ReadSInt32Array(tag, field_name, result.packedSint32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006736 break;
6737 }
csharptest6da31702011-06-04 12:52:57 -05006738 case 762:
6739 case 760: {
csharptestb00ea132011-06-10 01:09:57 -05006740 input.ReadSInt64Array(tag, field_name, result.packedSint64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006741 break;
6742 }
csharptest6da31702011-06-04 12:52:57 -05006743 case 770:
6744 case 773: {
csharptestb00ea132011-06-10 01:09:57 -05006745 input.ReadFixed32Array(tag, field_name, result.packedFixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006746 break;
6747 }
csharptest6da31702011-06-04 12:52:57 -05006748 case 778:
6749 case 777: {
csharptestb00ea132011-06-10 01:09:57 -05006750 input.ReadFixed64Array(tag, field_name, result.packedFixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006751 break;
6752 }
csharptest6da31702011-06-04 12:52:57 -05006753 case 786:
6754 case 789: {
csharptestb00ea132011-06-10 01:09:57 -05006755 input.ReadSFixed32Array(tag, field_name, result.packedSfixed32_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006756 break;
6757 }
csharptest6da31702011-06-04 12:52:57 -05006758 case 794:
6759 case 793: {
csharptestb00ea132011-06-10 01:09:57 -05006760 input.ReadSFixed64Array(tag, field_name, result.packedSfixed64_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006761 break;
6762 }
csharptest6da31702011-06-04 12:52:57 -05006763 case 802:
6764 case 805: {
csharptestb00ea132011-06-10 01:09:57 -05006765 input.ReadFloatArray(tag, field_name, result.packedFloat_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006766 break;
6767 }
csharptest6da31702011-06-04 12:52:57 -05006768 case 810:
6769 case 809: {
csharptestb00ea132011-06-10 01:09:57 -05006770 input.ReadDoubleArray(tag, field_name, result.packedDouble_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006771 break;
6772 }
csharptest6da31702011-06-04 12:52:57 -05006773 case 818:
6774 case 816: {
csharptestb00ea132011-06-10 01:09:57 -05006775 input.ReadBoolArray(tag, field_name, result.packedBool_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006776 break;
6777 }
csharptest6da31702011-06-04 12:52:57 -05006778 case 826:
6779 case 824: {
csharptestd2af9e92011-06-03 21:35:02 -05006780 scg::ICollection<object> unknownItems;
6781 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.packedEnum_, out unknownItems);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006782 break;
6783 }
6784 }
6785 }
csharptest123e5342011-06-03 14:15:21 -05006786
6787 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01006788 }
6789
6790
6791 public pbc::IPopsicleList<int> PackedInt32List {
6792 get { return result.packedInt32_; }
6793 }
6794 public int PackedInt32Count {
6795 get { return result.PackedInt32Count; }
6796 }
6797 public int GetPackedInt32(int index) {
6798 return result.GetPackedInt32(index);
6799 }
6800 public Builder SetPackedInt32(int index, int value) {
6801 result.packedInt32_[index] = value;
6802 return this;
6803 }
6804 public Builder AddPackedInt32(int value) {
6805 result.packedInt32_.Add(value);
6806 return this;
6807 }
6808 public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006809 result.packedInt32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006810 return this;
6811 }
6812 public Builder ClearPackedInt32() {
6813 result.packedInt32_.Clear();
6814 return this;
6815 }
6816
6817 public pbc::IPopsicleList<long> PackedInt64List {
6818 get { return result.packedInt64_; }
6819 }
6820 public int PackedInt64Count {
6821 get { return result.PackedInt64Count; }
6822 }
6823 public long GetPackedInt64(int index) {
6824 return result.GetPackedInt64(index);
6825 }
6826 public Builder SetPackedInt64(int index, long value) {
6827 result.packedInt64_[index] = value;
6828 return this;
6829 }
6830 public Builder AddPackedInt64(long value) {
6831 result.packedInt64_.Add(value);
6832 return this;
6833 }
6834 public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006835 result.packedInt64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006836 return this;
6837 }
6838 public Builder ClearPackedInt64() {
6839 result.packedInt64_.Clear();
6840 return this;
6841 }
6842
6843 [global::System.CLSCompliant(false)]
6844 public pbc::IPopsicleList<uint> PackedUint32List {
6845 get { return result.packedUint32_; }
6846 }
6847 public int PackedUint32Count {
6848 get { return result.PackedUint32Count; }
6849 }
6850 [global::System.CLSCompliant(false)]
6851 public uint GetPackedUint32(int index) {
6852 return result.GetPackedUint32(index);
6853 }
6854 [global::System.CLSCompliant(false)]
6855 public Builder SetPackedUint32(int index, uint value) {
6856 result.packedUint32_[index] = value;
6857 return this;
6858 }
6859 [global::System.CLSCompliant(false)]
6860 public Builder AddPackedUint32(uint value) {
6861 result.packedUint32_.Add(value);
6862 return this;
6863 }
6864 [global::System.CLSCompliant(false)]
6865 public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006866 result.packedUint32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006867 return this;
6868 }
6869 public Builder ClearPackedUint32() {
6870 result.packedUint32_.Clear();
6871 return this;
6872 }
6873
6874 [global::System.CLSCompliant(false)]
6875 public pbc::IPopsicleList<ulong> PackedUint64List {
6876 get { return result.packedUint64_; }
6877 }
6878 public int PackedUint64Count {
6879 get { return result.PackedUint64Count; }
6880 }
6881 [global::System.CLSCompliant(false)]
6882 public ulong GetPackedUint64(int index) {
6883 return result.GetPackedUint64(index);
6884 }
6885 [global::System.CLSCompliant(false)]
6886 public Builder SetPackedUint64(int index, ulong value) {
6887 result.packedUint64_[index] = value;
6888 return this;
6889 }
6890 [global::System.CLSCompliant(false)]
6891 public Builder AddPackedUint64(ulong value) {
6892 result.packedUint64_.Add(value);
6893 return this;
6894 }
6895 [global::System.CLSCompliant(false)]
6896 public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006897 result.packedUint64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006898 return this;
6899 }
6900 public Builder ClearPackedUint64() {
6901 result.packedUint64_.Clear();
6902 return this;
6903 }
6904
6905 public pbc::IPopsicleList<int> PackedSint32List {
6906 get { return result.packedSint32_; }
6907 }
6908 public int PackedSint32Count {
6909 get { return result.PackedSint32Count; }
6910 }
6911 public int GetPackedSint32(int index) {
6912 return result.GetPackedSint32(index);
6913 }
6914 public Builder SetPackedSint32(int index, int value) {
6915 result.packedSint32_[index] = value;
6916 return this;
6917 }
6918 public Builder AddPackedSint32(int value) {
6919 result.packedSint32_.Add(value);
6920 return this;
6921 }
6922 public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006923 result.packedSint32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006924 return this;
6925 }
6926 public Builder ClearPackedSint32() {
6927 result.packedSint32_.Clear();
6928 return this;
6929 }
6930
6931 public pbc::IPopsicleList<long> PackedSint64List {
6932 get { return result.packedSint64_; }
6933 }
6934 public int PackedSint64Count {
6935 get { return result.PackedSint64Count; }
6936 }
6937 public long GetPackedSint64(int index) {
6938 return result.GetPackedSint64(index);
6939 }
6940 public Builder SetPackedSint64(int index, long value) {
6941 result.packedSint64_[index] = value;
6942 return this;
6943 }
6944 public Builder AddPackedSint64(long value) {
6945 result.packedSint64_.Add(value);
6946 return this;
6947 }
6948 public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006949 result.packedSint64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006950 return this;
6951 }
6952 public Builder ClearPackedSint64() {
6953 result.packedSint64_.Clear();
6954 return this;
6955 }
6956
6957 [global::System.CLSCompliant(false)]
6958 public pbc::IPopsicleList<uint> PackedFixed32List {
6959 get { return result.packedFixed32_; }
6960 }
6961 public int PackedFixed32Count {
6962 get { return result.PackedFixed32Count; }
6963 }
6964 [global::System.CLSCompliant(false)]
6965 public uint GetPackedFixed32(int index) {
6966 return result.GetPackedFixed32(index);
6967 }
6968 [global::System.CLSCompliant(false)]
6969 public Builder SetPackedFixed32(int index, uint value) {
6970 result.packedFixed32_[index] = value;
6971 return this;
6972 }
6973 [global::System.CLSCompliant(false)]
6974 public Builder AddPackedFixed32(uint value) {
6975 result.packedFixed32_.Add(value);
6976 return this;
6977 }
6978 [global::System.CLSCompliant(false)]
6979 public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05006980 result.packedFixed32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01006981 return this;
6982 }
6983 public Builder ClearPackedFixed32() {
6984 result.packedFixed32_.Clear();
6985 return this;
6986 }
6987
6988 [global::System.CLSCompliant(false)]
6989 public pbc::IPopsicleList<ulong> PackedFixed64List {
6990 get { return result.packedFixed64_; }
6991 }
6992 public int PackedFixed64Count {
6993 get { return result.PackedFixed64Count; }
6994 }
6995 [global::System.CLSCompliant(false)]
6996 public ulong GetPackedFixed64(int index) {
6997 return result.GetPackedFixed64(index);
6998 }
6999 [global::System.CLSCompliant(false)]
7000 public Builder SetPackedFixed64(int index, ulong value) {
7001 result.packedFixed64_[index] = value;
7002 return this;
7003 }
7004 [global::System.CLSCompliant(false)]
7005 public Builder AddPackedFixed64(ulong value) {
7006 result.packedFixed64_.Add(value);
7007 return this;
7008 }
7009 [global::System.CLSCompliant(false)]
7010 public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007011 result.packedFixed64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007012 return this;
7013 }
7014 public Builder ClearPackedFixed64() {
7015 result.packedFixed64_.Clear();
7016 return this;
7017 }
7018
7019 public pbc::IPopsicleList<int> PackedSfixed32List {
7020 get { return result.packedSfixed32_; }
7021 }
7022 public int PackedSfixed32Count {
7023 get { return result.PackedSfixed32Count; }
7024 }
7025 public int GetPackedSfixed32(int index) {
7026 return result.GetPackedSfixed32(index);
7027 }
7028 public Builder SetPackedSfixed32(int index, int value) {
7029 result.packedSfixed32_[index] = value;
7030 return this;
7031 }
7032 public Builder AddPackedSfixed32(int value) {
7033 result.packedSfixed32_.Add(value);
7034 return this;
7035 }
7036 public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007037 result.packedSfixed32_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007038 return this;
7039 }
7040 public Builder ClearPackedSfixed32() {
7041 result.packedSfixed32_.Clear();
7042 return this;
7043 }
7044
7045 public pbc::IPopsicleList<long> PackedSfixed64List {
7046 get { return result.packedSfixed64_; }
7047 }
7048 public int PackedSfixed64Count {
7049 get { return result.PackedSfixed64Count; }
7050 }
7051 public long GetPackedSfixed64(int index) {
7052 return result.GetPackedSfixed64(index);
7053 }
7054 public Builder SetPackedSfixed64(int index, long value) {
7055 result.packedSfixed64_[index] = value;
7056 return this;
7057 }
7058 public Builder AddPackedSfixed64(long value) {
7059 result.packedSfixed64_.Add(value);
7060 return this;
7061 }
7062 public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007063 result.packedSfixed64_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007064 return this;
7065 }
7066 public Builder ClearPackedSfixed64() {
7067 result.packedSfixed64_.Clear();
7068 return this;
7069 }
7070
7071 public pbc::IPopsicleList<float> PackedFloatList {
7072 get { return result.packedFloat_; }
7073 }
7074 public int PackedFloatCount {
7075 get { return result.PackedFloatCount; }
7076 }
7077 public float GetPackedFloat(int index) {
7078 return result.GetPackedFloat(index);
7079 }
7080 public Builder SetPackedFloat(int index, float value) {
7081 result.packedFloat_[index] = value;
7082 return this;
7083 }
7084 public Builder AddPackedFloat(float value) {
7085 result.packedFloat_.Add(value);
7086 return this;
7087 }
7088 public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007089 result.packedFloat_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007090 return this;
7091 }
7092 public Builder ClearPackedFloat() {
7093 result.packedFloat_.Clear();
7094 return this;
7095 }
7096
7097 public pbc::IPopsicleList<double> PackedDoubleList {
7098 get { return result.packedDouble_; }
7099 }
7100 public int PackedDoubleCount {
7101 get { return result.PackedDoubleCount; }
7102 }
7103 public double GetPackedDouble(int index) {
7104 return result.GetPackedDouble(index);
7105 }
7106 public Builder SetPackedDouble(int index, double value) {
7107 result.packedDouble_[index] = value;
7108 return this;
7109 }
7110 public Builder AddPackedDouble(double value) {
7111 result.packedDouble_.Add(value);
7112 return this;
7113 }
7114 public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007115 result.packedDouble_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007116 return this;
7117 }
7118 public Builder ClearPackedDouble() {
7119 result.packedDouble_.Clear();
7120 return this;
7121 }
7122
7123 public pbc::IPopsicleList<bool> PackedBoolList {
7124 get { return result.packedBool_; }
7125 }
7126 public int PackedBoolCount {
7127 get { return result.PackedBoolCount; }
7128 }
7129 public bool GetPackedBool(int index) {
7130 return result.GetPackedBool(index);
7131 }
7132 public Builder SetPackedBool(int index, bool value) {
7133 result.packedBool_[index] = value;
7134 return this;
7135 }
7136 public Builder AddPackedBool(bool value) {
7137 result.packedBool_.Add(value);
7138 return this;
7139 }
7140 public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007141 result.packedBool_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007142 return this;
7143 }
7144 public Builder ClearPackedBool() {
7145 result.packedBool_.Clear();
7146 return this;
7147 }
7148
7149 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
7150 get { return result.packedEnum_; }
7151 }
7152 public int PackedEnumCount {
7153 get { return result.PackedEnumCount; }
7154 }
7155 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
7156 return result.GetPackedEnum(index);
7157 }
7158 public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
7159 result.packedEnum_[index] = value;
7160 return this;
7161 }
7162 public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
7163 result.packedEnum_.Add(value);
7164 return this;
7165 }
7166 public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007167 result.packedEnum_.Add(values);
Jon Skeet82bb0f12011-04-03 20:17:12 +01007168 return this;
7169 }
7170 public Builder ClearPackedEnum() {
7171 result.packedEnum_.Clear();
7172 return this;
7173 }
7174 }
7175 static TestPackedTypesLite() {
7176 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
7177 }
7178 }
7179
csharptest445bdce2011-05-20 15:50:54 -05007180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7181 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
7182 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptestc2a1f9b2011-06-06 11:40:01 -05007183 public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05007184 private TestUnpackedTypesLite() { }
csharptestc2a1f9b2011-06-06 11:40:01 -05007185 private static readonly TestUnpackedTypesLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05007186 private static readonly string[] _testUnpackedTypesLiteFieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
7187 private static readonly uint[] _testUnpackedTypesLiteFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
csharptestc2a1f9b2011-06-06 11:40:01 -05007188 public static TestUnpackedTypesLite DefaultInstance {
7189 get { return defaultInstance; }
7190 }
7191
7192 public override TestUnpackedTypesLite DefaultInstanceForType {
7193 get { return defaultInstance; }
7194 }
7195
7196 protected override TestUnpackedTypesLite ThisMessage {
7197 get { return this; }
7198 }
7199
7200 public const int UnpackedInt32FieldNumber = 90;
7201 private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
7202 public scg::IList<int> UnpackedInt32List {
7203 get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
7204 }
7205 public int UnpackedInt32Count {
7206 get { return unpackedInt32_.Count; }
7207 }
7208 public int GetUnpackedInt32(int index) {
7209 return unpackedInt32_[index];
7210 }
7211
7212 public const int UnpackedInt64FieldNumber = 91;
7213 private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
7214 public scg::IList<long> UnpackedInt64List {
7215 get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
7216 }
7217 public int UnpackedInt64Count {
7218 get { return unpackedInt64_.Count; }
7219 }
7220 public long GetUnpackedInt64(int index) {
7221 return unpackedInt64_[index];
7222 }
7223
7224 public const int UnpackedUint32FieldNumber = 92;
7225 private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
7226 [global::System.CLSCompliant(false)]
7227 public scg::IList<uint> UnpackedUint32List {
7228 get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
7229 }
7230 public int UnpackedUint32Count {
7231 get { return unpackedUint32_.Count; }
7232 }
7233 [global::System.CLSCompliant(false)]
7234 public uint GetUnpackedUint32(int index) {
7235 return unpackedUint32_[index];
7236 }
7237
7238 public const int UnpackedUint64FieldNumber = 93;
7239 private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
7240 [global::System.CLSCompliant(false)]
7241 public scg::IList<ulong> UnpackedUint64List {
7242 get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
7243 }
7244 public int UnpackedUint64Count {
7245 get { return unpackedUint64_.Count; }
7246 }
7247 [global::System.CLSCompliant(false)]
7248 public ulong GetUnpackedUint64(int index) {
7249 return unpackedUint64_[index];
7250 }
7251
7252 public const int UnpackedSint32FieldNumber = 94;
7253 private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
7254 public scg::IList<int> UnpackedSint32List {
7255 get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
7256 }
7257 public int UnpackedSint32Count {
7258 get { return unpackedSint32_.Count; }
7259 }
7260 public int GetUnpackedSint32(int index) {
7261 return unpackedSint32_[index];
7262 }
7263
7264 public const int UnpackedSint64FieldNumber = 95;
7265 private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
7266 public scg::IList<long> UnpackedSint64List {
7267 get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
7268 }
7269 public int UnpackedSint64Count {
7270 get { return unpackedSint64_.Count; }
7271 }
7272 public long GetUnpackedSint64(int index) {
7273 return unpackedSint64_[index];
7274 }
7275
7276 public const int UnpackedFixed32FieldNumber = 96;
7277 private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
7278 [global::System.CLSCompliant(false)]
7279 public scg::IList<uint> UnpackedFixed32List {
7280 get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
7281 }
7282 public int UnpackedFixed32Count {
7283 get { return unpackedFixed32_.Count; }
7284 }
7285 [global::System.CLSCompliant(false)]
7286 public uint GetUnpackedFixed32(int index) {
7287 return unpackedFixed32_[index];
7288 }
7289
7290 public const int UnpackedFixed64FieldNumber = 97;
7291 private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
7292 [global::System.CLSCompliant(false)]
7293 public scg::IList<ulong> UnpackedFixed64List {
7294 get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
7295 }
7296 public int UnpackedFixed64Count {
7297 get { return unpackedFixed64_.Count; }
7298 }
7299 [global::System.CLSCompliant(false)]
7300 public ulong GetUnpackedFixed64(int index) {
7301 return unpackedFixed64_[index];
7302 }
7303
7304 public const int UnpackedSfixed32FieldNumber = 98;
7305 private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
7306 public scg::IList<int> UnpackedSfixed32List {
7307 get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
7308 }
7309 public int UnpackedSfixed32Count {
7310 get { return unpackedSfixed32_.Count; }
7311 }
7312 public int GetUnpackedSfixed32(int index) {
7313 return unpackedSfixed32_[index];
7314 }
7315
7316 public const int UnpackedSfixed64FieldNumber = 99;
7317 private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
7318 public scg::IList<long> UnpackedSfixed64List {
7319 get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
7320 }
7321 public int UnpackedSfixed64Count {
7322 get { return unpackedSfixed64_.Count; }
7323 }
7324 public long GetUnpackedSfixed64(int index) {
7325 return unpackedSfixed64_[index];
7326 }
7327
7328 public const int UnpackedFloatFieldNumber = 100;
7329 private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
7330 public scg::IList<float> UnpackedFloatList {
7331 get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
7332 }
7333 public int UnpackedFloatCount {
7334 get { return unpackedFloat_.Count; }
7335 }
7336 public float GetUnpackedFloat(int index) {
7337 return unpackedFloat_[index];
7338 }
7339
7340 public const int UnpackedDoubleFieldNumber = 101;
7341 private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
7342 public scg::IList<double> UnpackedDoubleList {
7343 get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
7344 }
7345 public int UnpackedDoubleCount {
7346 get { return unpackedDouble_.Count; }
7347 }
7348 public double GetUnpackedDouble(int index) {
7349 return unpackedDouble_[index];
7350 }
7351
7352 public const int UnpackedBoolFieldNumber = 102;
7353 private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
7354 public scg::IList<bool> UnpackedBoolList {
7355 get { return pbc::Lists.AsReadOnly(unpackedBool_); }
7356 }
7357 public int UnpackedBoolCount {
7358 get { return unpackedBool_.Count; }
7359 }
7360 public bool GetUnpackedBool(int index) {
7361 return unpackedBool_[index];
7362 }
7363
7364 public const int UnpackedEnumFieldNumber = 103;
7365 private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
7366 public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
7367 get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
7368 }
7369 public int UnpackedEnumCount {
7370 get { return unpackedEnum_.Count; }
7371 }
7372 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
7373 return unpackedEnum_[index];
7374 }
7375
7376 public override bool IsInitialized {
7377 get {
7378 return true;
7379 }
7380 }
7381
7382 public override void WriteTo(pb::ICodedOutputStream output) {
7383 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05007384 string[] field_names = _testUnpackedTypesLiteFieldNames;
csharptestc2a1f9b2011-06-06 11:40:01 -05007385 if (unpackedInt32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007386 output.WriteInt32Array(90, field_names[6], unpackedInt32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007387 }
7388 if (unpackedInt64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007389 output.WriteInt64Array(91, field_names[7], unpackedInt64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007390 }
7391 if (unpackedUint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007392 output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007393 }
7394 if (unpackedUint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007395 output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007396 }
7397 if (unpackedSint32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007398 output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007399 }
7400 if (unpackedSint64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007401 output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007402 }
7403 if (unpackedFixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007404 output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007405 }
7406 if (unpackedFixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007407 output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007408 }
7409 if (unpackedSfixed32_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007410 output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007411 }
7412 if (unpackedSfixed64_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007413 output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007414 }
7415 if (unpackedFloat_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007416 output.WriteFloatArray(100, field_names[5], unpackedFloat_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007417 }
7418 if (unpackedDouble_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007419 output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007420 }
7421 if (unpackedBool_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007422 output.WriteBoolArray(102, field_names[0], unpackedBool_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007423 }
7424 if (unpackedEnum_.Count > 0) {
csharptestb00ea132011-06-10 01:09:57 -05007425 output.WriteEnumArray(103, field_names[2], unpackedEnum_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007426 }
7427 }
7428
7429 private int memoizedSerializedSize = -1;
7430 public override int SerializedSize {
7431 get {
7432 int size = memoizedSerializedSize;
7433 if (size != -1) return size;
7434
7435 size = 0;
7436 {
7437 int dataSize = 0;
7438 foreach (int element in UnpackedInt32List) {
7439 dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
7440 }
7441 size += dataSize;
7442 size += 2 * unpackedInt32_.Count;
7443 }
7444 {
7445 int dataSize = 0;
7446 foreach (long element in UnpackedInt64List) {
7447 dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
7448 }
7449 size += dataSize;
7450 size += 2 * unpackedInt64_.Count;
7451 }
7452 {
7453 int dataSize = 0;
7454 foreach (uint element in UnpackedUint32List) {
7455 dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
7456 }
7457 size += dataSize;
7458 size += 2 * unpackedUint32_.Count;
7459 }
7460 {
7461 int dataSize = 0;
7462 foreach (ulong element in UnpackedUint64List) {
7463 dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
7464 }
7465 size += dataSize;
7466 size += 2 * unpackedUint64_.Count;
7467 }
7468 {
7469 int dataSize = 0;
7470 foreach (int element in UnpackedSint32List) {
7471 dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
7472 }
7473 size += dataSize;
7474 size += 2 * unpackedSint32_.Count;
7475 }
7476 {
7477 int dataSize = 0;
7478 foreach (long element in UnpackedSint64List) {
7479 dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
7480 }
7481 size += dataSize;
7482 size += 2 * unpackedSint64_.Count;
7483 }
7484 {
7485 int dataSize = 0;
7486 dataSize = 4 * unpackedFixed32_.Count;
7487 size += dataSize;
7488 size += 2 * unpackedFixed32_.Count;
7489 }
7490 {
7491 int dataSize = 0;
7492 dataSize = 8 * unpackedFixed64_.Count;
7493 size += dataSize;
7494 size += 2 * unpackedFixed64_.Count;
7495 }
7496 {
7497 int dataSize = 0;
7498 dataSize = 4 * unpackedSfixed32_.Count;
7499 size += dataSize;
7500 size += 2 * unpackedSfixed32_.Count;
7501 }
7502 {
7503 int dataSize = 0;
7504 dataSize = 8 * unpackedSfixed64_.Count;
7505 size += dataSize;
7506 size += 2 * unpackedSfixed64_.Count;
7507 }
7508 {
7509 int dataSize = 0;
7510 dataSize = 4 * unpackedFloat_.Count;
7511 size += dataSize;
7512 size += 2 * unpackedFloat_.Count;
7513 }
7514 {
7515 int dataSize = 0;
7516 dataSize = 8 * unpackedDouble_.Count;
7517 size += dataSize;
7518 size += 2 * unpackedDouble_.Count;
7519 }
7520 {
7521 int dataSize = 0;
7522 dataSize = 1 * unpackedBool_.Count;
7523 size += dataSize;
7524 size += 2 * unpackedBool_.Count;
7525 }
7526 {
7527 int dataSize = 0;
7528 if (unpackedEnum_.Count > 0) {
7529 foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in unpackedEnum_) {
7530 dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
7531 }
7532 size += dataSize;
7533 size += 2 * unpackedEnum_.Count;
7534 }
7535 }
7536 memoizedSerializedSize = size;
7537 return size;
7538 }
7539 }
7540
7541 #region Lite runtime methods
7542 public override int GetHashCode() {
7543 int hash = GetType().GetHashCode();
7544 foreach(int i in unpackedInt32_)
7545 hash ^= i.GetHashCode();
7546 foreach(long i in unpackedInt64_)
7547 hash ^= i.GetHashCode();
7548 foreach(uint i in unpackedUint32_)
7549 hash ^= i.GetHashCode();
7550 foreach(ulong i in unpackedUint64_)
7551 hash ^= i.GetHashCode();
7552 foreach(int i in unpackedSint32_)
7553 hash ^= i.GetHashCode();
7554 foreach(long i in unpackedSint64_)
7555 hash ^= i.GetHashCode();
7556 foreach(uint i in unpackedFixed32_)
7557 hash ^= i.GetHashCode();
7558 foreach(ulong i in unpackedFixed64_)
7559 hash ^= i.GetHashCode();
7560 foreach(int i in unpackedSfixed32_)
7561 hash ^= i.GetHashCode();
7562 foreach(long i in unpackedSfixed64_)
7563 hash ^= i.GetHashCode();
7564 foreach(float i in unpackedFloat_)
7565 hash ^= i.GetHashCode();
7566 foreach(double i in unpackedDouble_)
7567 hash ^= i.GetHashCode();
7568 foreach(bool i in unpackedBool_)
7569 hash ^= i.GetHashCode();
7570 foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in unpackedEnum_)
7571 hash ^= i.GetHashCode();
7572 return hash;
7573 }
7574
7575 public override bool Equals(object obj) {
7576 TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
7577 if (other == null) return false;
7578 if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
7579 for(int ix=0; ix < unpackedInt32_.Count; ix++)
7580 if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
7581 if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
7582 for(int ix=0; ix < unpackedInt64_.Count; ix++)
7583 if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
7584 if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
7585 for(int ix=0; ix < unpackedUint32_.Count; ix++)
7586 if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
7587 if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
7588 for(int ix=0; ix < unpackedUint64_.Count; ix++)
7589 if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
7590 if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
7591 for(int ix=0; ix < unpackedSint32_.Count; ix++)
7592 if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
7593 if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
7594 for(int ix=0; ix < unpackedSint64_.Count; ix++)
7595 if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
7596 if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
7597 for(int ix=0; ix < unpackedFixed32_.Count; ix++)
7598 if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
7599 if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
7600 for(int ix=0; ix < unpackedFixed64_.Count; ix++)
7601 if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
7602 if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
7603 for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
7604 if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
7605 if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
7606 for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
7607 if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
7608 if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
7609 for(int ix=0; ix < unpackedFloat_.Count; ix++)
7610 if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
7611 if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
7612 for(int ix=0; ix < unpackedDouble_.Count; ix++)
7613 if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
7614 if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
7615 for(int ix=0; ix < unpackedBool_.Count; ix++)
7616 if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
7617 if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
7618 for(int ix=0; ix < unpackedEnum_.Count; ix++)
7619 if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
7620 return true;
7621 }
7622
7623 public override void PrintTo(global::System.IO.TextWriter writer) {
7624 PrintField("unpacked_int32", unpackedInt32_, writer);
7625 PrintField("unpacked_int64", unpackedInt64_, writer);
7626 PrintField("unpacked_uint32", unpackedUint32_, writer);
7627 PrintField("unpacked_uint64", unpackedUint64_, writer);
7628 PrintField("unpacked_sint32", unpackedSint32_, writer);
7629 PrintField("unpacked_sint64", unpackedSint64_, writer);
7630 PrintField("unpacked_fixed32", unpackedFixed32_, writer);
7631 PrintField("unpacked_fixed64", unpackedFixed64_, writer);
7632 PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
7633 PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
7634 PrintField("unpacked_float", unpackedFloat_, writer);
7635 PrintField("unpacked_double", unpackedDouble_, writer);
7636 PrintField("unpacked_bool", unpackedBool_, writer);
7637 PrintField("unpacked_enum", unpackedEnum_, writer);
7638 }
7639 #endregion
7640
7641 public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
7642 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7643 }
7644 public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
7645 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7646 }
7647 public static TestUnpackedTypesLite ParseFrom(byte[] data) {
7648 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
7649 }
7650 public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
7651 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
7652 }
7653 public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
7654 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7655 }
7656 public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7657 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7658 }
7659 public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
7660 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
7661 }
7662 public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
7663 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
7664 }
7665 public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
7666 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
7667 }
7668 public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
7669 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
7670 }
7671 public static Builder CreateBuilder() { return new Builder(); }
7672 public override Builder ToBuilder() { return CreateBuilder(this); }
7673 public override Builder CreateBuilderForType() { return new Builder(); }
7674 public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
7675 return (Builder) new Builder().MergeFrom(prototype);
7676 }
7677
7678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7679 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
7680 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
7681 public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
7682 protected override Builder ThisBuilder {
7683 get { return this; }
7684 }
7685 public Builder() {}
7686
7687 TestUnpackedTypesLite result = new TestUnpackedTypesLite();
7688
7689 protected override TestUnpackedTypesLite MessageBeingBuilt {
7690 get { return result; }
7691 }
7692
7693 public override Builder Clear() {
7694 result = new TestUnpackedTypesLite();
7695 return this;
7696 }
7697
7698 public override Builder Clone() {
7699 return new Builder().MergeFrom(result);
7700 }
7701
7702 public override TestUnpackedTypesLite DefaultInstanceForType {
7703 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
7704 }
7705
7706 public override TestUnpackedTypesLite BuildPartial() {
7707 if (result == null) {
7708 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
7709 }
7710 result.unpackedInt32_.MakeReadOnly();
7711 result.unpackedInt64_.MakeReadOnly();
7712 result.unpackedUint32_.MakeReadOnly();
7713 result.unpackedUint64_.MakeReadOnly();
7714 result.unpackedSint32_.MakeReadOnly();
7715 result.unpackedSint64_.MakeReadOnly();
7716 result.unpackedFixed32_.MakeReadOnly();
7717 result.unpackedFixed64_.MakeReadOnly();
7718 result.unpackedSfixed32_.MakeReadOnly();
7719 result.unpackedSfixed64_.MakeReadOnly();
7720 result.unpackedFloat_.MakeReadOnly();
7721 result.unpackedDouble_.MakeReadOnly();
7722 result.unpackedBool_.MakeReadOnly();
7723 result.unpackedEnum_.MakeReadOnly();
7724 TestUnpackedTypesLite returnMe = result;
7725 result = null;
7726 return returnMe;
7727 }
7728
7729 public override Builder MergeFrom(pb::IMessageLite other) {
7730 if (other is TestUnpackedTypesLite) {
7731 return MergeFrom((TestUnpackedTypesLite) other);
7732 } else {
7733 base.MergeFrom(other);
7734 return this;
7735 }
7736 }
7737
7738 public override Builder MergeFrom(TestUnpackedTypesLite other) {
7739 if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
7740 if (other.unpackedInt32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007741 result.unpackedInt32_.Add(other.unpackedInt32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007742 }
7743 if (other.unpackedInt64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007744 result.unpackedInt64_.Add(other.unpackedInt64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007745 }
7746 if (other.unpackedUint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007747 result.unpackedUint32_.Add(other.unpackedUint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007748 }
7749 if (other.unpackedUint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007750 result.unpackedUint64_.Add(other.unpackedUint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007751 }
7752 if (other.unpackedSint32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007753 result.unpackedSint32_.Add(other.unpackedSint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007754 }
7755 if (other.unpackedSint64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007756 result.unpackedSint64_.Add(other.unpackedSint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007757 }
7758 if (other.unpackedFixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007759 result.unpackedFixed32_.Add(other.unpackedFixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007760 }
7761 if (other.unpackedFixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007762 result.unpackedFixed64_.Add(other.unpackedFixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007763 }
7764 if (other.unpackedSfixed32_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007765 result.unpackedSfixed32_.Add(other.unpackedSfixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007766 }
7767 if (other.unpackedSfixed64_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007768 result.unpackedSfixed64_.Add(other.unpackedSfixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007769 }
7770 if (other.unpackedFloat_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007771 result.unpackedFloat_.Add(other.unpackedFloat_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007772 }
7773 if (other.unpackedDouble_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007774 result.unpackedDouble_.Add(other.unpackedDouble_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007775 }
7776 if (other.unpackedBool_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007777 result.unpackedBool_.Add(other.unpackedBool_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007778 }
7779 if (other.unpackedEnum_.Count != 0) {
csharptest4ecebd82011-09-16 12:21:00 -05007780 result.unpackedEnum_.Add(other.unpackedEnum_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007781 }
7782 return this;
7783 }
7784
7785 public override Builder MergeFrom(pb::ICodedInputStream input) {
7786 return MergeFrom(input, pb::ExtensionRegistry.Empty);
7787 }
7788
7789 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
7790 uint tag;
7791 string field_name;
7792 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05007793 if(tag == 0 && field_name != null) {
7794 int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
7795 if(field_ordinal >= 0)
7796 tag = _testUnpackedTypesLiteFieldTags[field_ordinal];
7797 else {
7798 ParseUnknownField(input, extensionRegistry, tag, field_name);
7799 continue;
7800 }
7801 }
csharptestc2a1f9b2011-06-06 11:40:01 -05007802 switch (tag) {
7803 case 0: {
7804 throw pb::InvalidProtocolBufferException.InvalidTag();
7805 }
7806 default: {
7807 if (pb::WireFormat.IsEndGroupTag(tag)) {
7808 return this;
7809 }
7810 ParseUnknownField(input, extensionRegistry, tag, field_name);
7811 break;
7812 }
7813 case 722:
7814 case 720: {
csharptestb00ea132011-06-10 01:09:57 -05007815 input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007816 break;
7817 }
7818 case 730:
7819 case 728: {
csharptestb00ea132011-06-10 01:09:57 -05007820 input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007821 break;
7822 }
7823 case 738:
7824 case 736: {
csharptestb00ea132011-06-10 01:09:57 -05007825 input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007826 break;
7827 }
7828 case 746:
7829 case 744: {
csharptestb00ea132011-06-10 01:09:57 -05007830 input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007831 break;
7832 }
7833 case 754:
7834 case 752: {
csharptestb00ea132011-06-10 01:09:57 -05007835 input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007836 break;
7837 }
7838 case 762:
7839 case 760: {
csharptestb00ea132011-06-10 01:09:57 -05007840 input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007841 break;
7842 }
7843 case 770:
7844 case 773: {
csharptestb00ea132011-06-10 01:09:57 -05007845 input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007846 break;
7847 }
7848 case 778:
7849 case 777: {
csharptestb00ea132011-06-10 01:09:57 -05007850 input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007851 break;
7852 }
7853 case 786:
7854 case 789: {
csharptestb00ea132011-06-10 01:09:57 -05007855 input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007856 break;
7857 }
7858 case 794:
7859 case 793: {
csharptestb00ea132011-06-10 01:09:57 -05007860 input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007861 break;
7862 }
7863 case 802:
7864 case 805: {
csharptestb00ea132011-06-10 01:09:57 -05007865 input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007866 break;
7867 }
7868 case 810:
7869 case 809: {
csharptestb00ea132011-06-10 01:09:57 -05007870 input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007871 break;
7872 }
7873 case 818:
7874 case 816: {
csharptestb00ea132011-06-10 01:09:57 -05007875 input.ReadBoolArray(tag, field_name, result.unpackedBool_);
csharptestc2a1f9b2011-06-06 11:40:01 -05007876 break;
7877 }
7878 case 826:
7879 case 824: {
7880 scg::ICollection<object> unknownItems;
7881 input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
7882 break;
7883 }
7884 }
7885 }
7886
7887 return this;
7888 }
7889
7890
7891 public pbc::IPopsicleList<int> UnpackedInt32List {
7892 get { return result.unpackedInt32_; }
7893 }
7894 public int UnpackedInt32Count {
7895 get { return result.UnpackedInt32Count; }
7896 }
7897 public int GetUnpackedInt32(int index) {
7898 return result.GetUnpackedInt32(index);
7899 }
7900 public Builder SetUnpackedInt32(int index, int value) {
7901 result.unpackedInt32_[index] = value;
7902 return this;
7903 }
7904 public Builder AddUnpackedInt32(int value) {
7905 result.unpackedInt32_.Add(value);
7906 return this;
7907 }
7908 public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007909 result.unpackedInt32_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05007910 return this;
7911 }
7912 public Builder ClearUnpackedInt32() {
7913 result.unpackedInt32_.Clear();
7914 return this;
7915 }
7916
7917 public pbc::IPopsicleList<long> UnpackedInt64List {
7918 get { return result.unpackedInt64_; }
7919 }
7920 public int UnpackedInt64Count {
7921 get { return result.UnpackedInt64Count; }
7922 }
7923 public long GetUnpackedInt64(int index) {
7924 return result.GetUnpackedInt64(index);
7925 }
7926 public Builder SetUnpackedInt64(int index, long value) {
7927 result.unpackedInt64_[index] = value;
7928 return this;
7929 }
7930 public Builder AddUnpackedInt64(long value) {
7931 result.unpackedInt64_.Add(value);
7932 return this;
7933 }
7934 public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007935 result.unpackedInt64_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05007936 return this;
7937 }
7938 public Builder ClearUnpackedInt64() {
7939 result.unpackedInt64_.Clear();
7940 return this;
7941 }
7942
7943 [global::System.CLSCompliant(false)]
7944 public pbc::IPopsicleList<uint> UnpackedUint32List {
7945 get { return result.unpackedUint32_; }
7946 }
7947 public int UnpackedUint32Count {
7948 get { return result.UnpackedUint32Count; }
7949 }
7950 [global::System.CLSCompliant(false)]
7951 public uint GetUnpackedUint32(int index) {
7952 return result.GetUnpackedUint32(index);
7953 }
7954 [global::System.CLSCompliant(false)]
7955 public Builder SetUnpackedUint32(int index, uint value) {
7956 result.unpackedUint32_[index] = value;
7957 return this;
7958 }
7959 [global::System.CLSCompliant(false)]
7960 public Builder AddUnpackedUint32(uint value) {
7961 result.unpackedUint32_.Add(value);
7962 return this;
7963 }
7964 [global::System.CLSCompliant(false)]
7965 public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007966 result.unpackedUint32_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05007967 return this;
7968 }
7969 public Builder ClearUnpackedUint32() {
7970 result.unpackedUint32_.Clear();
7971 return this;
7972 }
7973
7974 [global::System.CLSCompliant(false)]
7975 public pbc::IPopsicleList<ulong> UnpackedUint64List {
7976 get { return result.unpackedUint64_; }
7977 }
7978 public int UnpackedUint64Count {
7979 get { return result.UnpackedUint64Count; }
7980 }
7981 [global::System.CLSCompliant(false)]
7982 public ulong GetUnpackedUint64(int index) {
7983 return result.GetUnpackedUint64(index);
7984 }
7985 [global::System.CLSCompliant(false)]
7986 public Builder SetUnpackedUint64(int index, ulong value) {
7987 result.unpackedUint64_[index] = value;
7988 return this;
7989 }
7990 [global::System.CLSCompliant(false)]
7991 public Builder AddUnpackedUint64(ulong value) {
7992 result.unpackedUint64_.Add(value);
7993 return this;
7994 }
7995 [global::System.CLSCompliant(false)]
7996 public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05007997 result.unpackedUint64_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05007998 return this;
7999 }
8000 public Builder ClearUnpackedUint64() {
8001 result.unpackedUint64_.Clear();
8002 return this;
8003 }
8004
8005 public pbc::IPopsicleList<int> UnpackedSint32List {
8006 get { return result.unpackedSint32_; }
8007 }
8008 public int UnpackedSint32Count {
8009 get { return result.UnpackedSint32Count; }
8010 }
8011 public int GetUnpackedSint32(int index) {
8012 return result.GetUnpackedSint32(index);
8013 }
8014 public Builder SetUnpackedSint32(int index, int value) {
8015 result.unpackedSint32_[index] = value;
8016 return this;
8017 }
8018 public Builder AddUnpackedSint32(int value) {
8019 result.unpackedSint32_.Add(value);
8020 return this;
8021 }
8022 public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008023 result.unpackedSint32_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008024 return this;
8025 }
8026 public Builder ClearUnpackedSint32() {
8027 result.unpackedSint32_.Clear();
8028 return this;
8029 }
8030
8031 public pbc::IPopsicleList<long> UnpackedSint64List {
8032 get { return result.unpackedSint64_; }
8033 }
8034 public int UnpackedSint64Count {
8035 get { return result.UnpackedSint64Count; }
8036 }
8037 public long GetUnpackedSint64(int index) {
8038 return result.GetUnpackedSint64(index);
8039 }
8040 public Builder SetUnpackedSint64(int index, long value) {
8041 result.unpackedSint64_[index] = value;
8042 return this;
8043 }
8044 public Builder AddUnpackedSint64(long value) {
8045 result.unpackedSint64_.Add(value);
8046 return this;
8047 }
8048 public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008049 result.unpackedSint64_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008050 return this;
8051 }
8052 public Builder ClearUnpackedSint64() {
8053 result.unpackedSint64_.Clear();
8054 return this;
8055 }
8056
8057 [global::System.CLSCompliant(false)]
8058 public pbc::IPopsicleList<uint> UnpackedFixed32List {
8059 get { return result.unpackedFixed32_; }
8060 }
8061 public int UnpackedFixed32Count {
8062 get { return result.UnpackedFixed32Count; }
8063 }
8064 [global::System.CLSCompliant(false)]
8065 public uint GetUnpackedFixed32(int index) {
8066 return result.GetUnpackedFixed32(index);
8067 }
8068 [global::System.CLSCompliant(false)]
8069 public Builder SetUnpackedFixed32(int index, uint value) {
8070 result.unpackedFixed32_[index] = value;
8071 return this;
8072 }
8073 [global::System.CLSCompliant(false)]
8074 public Builder AddUnpackedFixed32(uint value) {
8075 result.unpackedFixed32_.Add(value);
8076 return this;
8077 }
8078 [global::System.CLSCompliant(false)]
8079 public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008080 result.unpackedFixed32_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008081 return this;
8082 }
8083 public Builder ClearUnpackedFixed32() {
8084 result.unpackedFixed32_.Clear();
8085 return this;
8086 }
8087
8088 [global::System.CLSCompliant(false)]
8089 public pbc::IPopsicleList<ulong> UnpackedFixed64List {
8090 get { return result.unpackedFixed64_; }
8091 }
8092 public int UnpackedFixed64Count {
8093 get { return result.UnpackedFixed64Count; }
8094 }
8095 [global::System.CLSCompliant(false)]
8096 public ulong GetUnpackedFixed64(int index) {
8097 return result.GetUnpackedFixed64(index);
8098 }
8099 [global::System.CLSCompliant(false)]
8100 public Builder SetUnpackedFixed64(int index, ulong value) {
8101 result.unpackedFixed64_[index] = value;
8102 return this;
8103 }
8104 [global::System.CLSCompliant(false)]
8105 public Builder AddUnpackedFixed64(ulong value) {
8106 result.unpackedFixed64_.Add(value);
8107 return this;
8108 }
8109 [global::System.CLSCompliant(false)]
8110 public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008111 result.unpackedFixed64_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008112 return this;
8113 }
8114 public Builder ClearUnpackedFixed64() {
8115 result.unpackedFixed64_.Clear();
8116 return this;
8117 }
8118
8119 public pbc::IPopsicleList<int> UnpackedSfixed32List {
8120 get { return result.unpackedSfixed32_; }
8121 }
8122 public int UnpackedSfixed32Count {
8123 get { return result.UnpackedSfixed32Count; }
8124 }
8125 public int GetUnpackedSfixed32(int index) {
8126 return result.GetUnpackedSfixed32(index);
8127 }
8128 public Builder SetUnpackedSfixed32(int index, int value) {
8129 result.unpackedSfixed32_[index] = value;
8130 return this;
8131 }
8132 public Builder AddUnpackedSfixed32(int value) {
8133 result.unpackedSfixed32_.Add(value);
8134 return this;
8135 }
8136 public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008137 result.unpackedSfixed32_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008138 return this;
8139 }
8140 public Builder ClearUnpackedSfixed32() {
8141 result.unpackedSfixed32_.Clear();
8142 return this;
8143 }
8144
8145 public pbc::IPopsicleList<long> UnpackedSfixed64List {
8146 get { return result.unpackedSfixed64_; }
8147 }
8148 public int UnpackedSfixed64Count {
8149 get { return result.UnpackedSfixed64Count; }
8150 }
8151 public long GetUnpackedSfixed64(int index) {
8152 return result.GetUnpackedSfixed64(index);
8153 }
8154 public Builder SetUnpackedSfixed64(int index, long value) {
8155 result.unpackedSfixed64_[index] = value;
8156 return this;
8157 }
8158 public Builder AddUnpackedSfixed64(long value) {
8159 result.unpackedSfixed64_.Add(value);
8160 return this;
8161 }
8162 public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008163 result.unpackedSfixed64_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008164 return this;
8165 }
8166 public Builder ClearUnpackedSfixed64() {
8167 result.unpackedSfixed64_.Clear();
8168 return this;
8169 }
8170
8171 public pbc::IPopsicleList<float> UnpackedFloatList {
8172 get { return result.unpackedFloat_; }
8173 }
8174 public int UnpackedFloatCount {
8175 get { return result.UnpackedFloatCount; }
8176 }
8177 public float GetUnpackedFloat(int index) {
8178 return result.GetUnpackedFloat(index);
8179 }
8180 public Builder SetUnpackedFloat(int index, float value) {
8181 result.unpackedFloat_[index] = value;
8182 return this;
8183 }
8184 public Builder AddUnpackedFloat(float value) {
8185 result.unpackedFloat_.Add(value);
8186 return this;
8187 }
8188 public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008189 result.unpackedFloat_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008190 return this;
8191 }
8192 public Builder ClearUnpackedFloat() {
8193 result.unpackedFloat_.Clear();
8194 return this;
8195 }
8196
8197 public pbc::IPopsicleList<double> UnpackedDoubleList {
8198 get { return result.unpackedDouble_; }
8199 }
8200 public int UnpackedDoubleCount {
8201 get { return result.UnpackedDoubleCount; }
8202 }
8203 public double GetUnpackedDouble(int index) {
8204 return result.GetUnpackedDouble(index);
8205 }
8206 public Builder SetUnpackedDouble(int index, double value) {
8207 result.unpackedDouble_[index] = value;
8208 return this;
8209 }
8210 public Builder AddUnpackedDouble(double value) {
8211 result.unpackedDouble_.Add(value);
8212 return this;
8213 }
8214 public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008215 result.unpackedDouble_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008216 return this;
8217 }
8218 public Builder ClearUnpackedDouble() {
8219 result.unpackedDouble_.Clear();
8220 return this;
8221 }
8222
8223 public pbc::IPopsicleList<bool> UnpackedBoolList {
8224 get { return result.unpackedBool_; }
8225 }
8226 public int UnpackedBoolCount {
8227 get { return result.UnpackedBoolCount; }
8228 }
8229 public bool GetUnpackedBool(int index) {
8230 return result.GetUnpackedBool(index);
8231 }
8232 public Builder SetUnpackedBool(int index, bool value) {
8233 result.unpackedBool_[index] = value;
8234 return this;
8235 }
8236 public Builder AddUnpackedBool(bool value) {
8237 result.unpackedBool_.Add(value);
8238 return this;
8239 }
8240 public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008241 result.unpackedBool_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008242 return this;
8243 }
8244 public Builder ClearUnpackedBool() {
8245 result.unpackedBool_.Clear();
8246 return this;
8247 }
8248
8249 public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
8250 get { return result.unpackedEnum_; }
8251 }
8252 public int UnpackedEnumCount {
8253 get { return result.UnpackedEnumCount; }
8254 }
8255 public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
8256 return result.GetUnpackedEnum(index);
8257 }
8258 public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
8259 result.unpackedEnum_[index] = value;
8260 return this;
8261 }
8262 public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
8263 result.unpackedEnum_.Add(value);
8264 return this;
8265 }
8266 public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
csharptest4ecebd82011-09-16 12:21:00 -05008267 result.unpackedEnum_.Add(values);
csharptestc2a1f9b2011-06-06 11:40:01 -05008268 return this;
8269 }
8270 public Builder ClearUnpackedEnum() {
8271 result.unpackedEnum_.Clear();
8272 return this;
8273 }
8274 }
8275 static TestUnpackedTypesLite() {
8276 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
8277 }
8278 }
8279
8280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8281 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8282 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008283 public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05008284 private TestAllExtensionsLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008285 private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05008286 private static readonly string[] _testAllExtensionsLiteFieldNames = new string[] { };
8287 private static readonly uint[] _testAllExtensionsLiteFieldTags = new uint[] { };
Jon Skeet82bb0f12011-04-03 20:17:12 +01008288 public static TestAllExtensionsLite DefaultInstance {
8289 get { return defaultInstance; }
8290 }
8291
8292 public override TestAllExtensionsLite DefaultInstanceForType {
8293 get { return defaultInstance; }
8294 }
8295
8296 protected override TestAllExtensionsLite ThisMessage {
8297 get { return this; }
8298 }
8299
8300 public override bool IsInitialized {
8301 get {
8302 if (!ExtensionsAreInitialized) return false;
8303 return true;
8304 }
8305 }
8306
csharptestffafdaa2011-06-03 12:58:14 -05008307 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008308 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05008309 string[] field_names = _testAllExtensionsLiteFieldNames;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008310 pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
8311 extensionWriter.WriteUntil(536870912, output);
8312 }
8313
8314 private int memoizedSerializedSize = -1;
8315 public override int SerializedSize {
8316 get {
8317 int size = memoizedSerializedSize;
8318 if (size != -1) return size;
8319
8320 size = 0;
8321 size += ExtensionsSerializedSize;
8322 memoizedSerializedSize = size;
8323 return size;
8324 }
8325 }
8326
8327 #region Lite runtime methods
8328 public override int GetHashCode() {
8329 int hash = GetType().GetHashCode();
8330 hash ^= base.GetHashCode();
8331 return hash;
8332 }
8333
8334 public override bool Equals(object obj) {
8335 TestAllExtensionsLite other = obj as TestAllExtensionsLite;
8336 if (other == null) return false;
8337 if (!base.Equals(other)) return false;
8338 return true;
8339 }
8340
8341 public override void PrintTo(global::System.IO.TextWriter writer) {
8342 base.PrintTo(writer);
8343 }
8344 #endregion
8345
8346 public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
8347 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8348 }
8349 public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8350 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8351 }
8352 public static TestAllExtensionsLite ParseFrom(byte[] data) {
8353 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8354 }
8355 public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8356 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8357 }
8358 public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
8359 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8360 }
8361 public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8362 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8363 }
8364 public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
8365 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8366 }
8367 public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8368 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8369 }
csharptest17699c22011-06-03 21:57:15 -05008370 public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008371 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8372 }
csharptest17699c22011-06-03 21:57:15 -05008373 public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008374 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8375 }
8376 public static Builder CreateBuilder() { return new Builder(); }
8377 public override Builder ToBuilder() { return CreateBuilder(this); }
8378 public override Builder CreateBuilderForType() { return new Builder(); }
8379 public static Builder CreateBuilder(TestAllExtensionsLite prototype) {
8380 return (Builder) new Builder().MergeFrom(prototype);
8381 }
8382
csharptest445bdce2011-05-20 15:50:54 -05008383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8384 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8385 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008386 public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
8387 protected override Builder ThisBuilder {
8388 get { return this; }
8389 }
8390 public Builder() {}
8391
8392 TestAllExtensionsLite result = new TestAllExtensionsLite();
8393
8394 protected override TestAllExtensionsLite MessageBeingBuilt {
8395 get { return result; }
8396 }
8397
8398 public override Builder Clear() {
8399 result = new TestAllExtensionsLite();
8400 return this;
8401 }
8402
8403 public override Builder Clone() {
8404 return new Builder().MergeFrom(result);
8405 }
8406
8407 public override TestAllExtensionsLite DefaultInstanceForType {
8408 get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
8409 }
8410
8411 public override TestAllExtensionsLite BuildPartial() {
8412 if (result == null) {
8413 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8414 }
8415 TestAllExtensionsLite returnMe = result;
8416 result = null;
8417 return returnMe;
8418 }
8419
8420 public override Builder MergeFrom(pb::IMessageLite other) {
8421 if (other is TestAllExtensionsLite) {
8422 return MergeFrom((TestAllExtensionsLite) other);
8423 } else {
8424 base.MergeFrom(other);
8425 return this;
8426 }
8427 }
8428
8429 public override Builder MergeFrom(TestAllExtensionsLite other) {
8430 if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
8431 this.MergeExtensionFields(other);
8432 return this;
8433 }
8434
csharptest17699c22011-06-03 21:57:15 -05008435 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008436 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8437 }
8438
csharptest17699c22011-06-03 21:57:15 -05008439 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05008440 uint tag;
8441 string field_name;
8442 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05008443 if(tag == 0 && field_name != null) {
8444 int field_ordinal = global::System.Array.BinarySearch(_testAllExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
8445 if(field_ordinal >= 0)
8446 tag = _testAllExtensionsLiteFieldTags[field_ordinal];
8447 else {
8448 ParseUnknownField(input, extensionRegistry, tag, field_name);
8449 continue;
8450 }
8451 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008452 switch (tag) {
8453 case 0: {
csharptest99284412011-06-03 14:51:06 -05008454 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008455 }
8456 default: {
8457 if (pb::WireFormat.IsEndGroupTag(tag)) {
8458 return this;
8459 }
csharptestd2af9e92011-06-03 21:35:02 -05008460 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008461 break;
8462 }
8463 }
8464 }
csharptest123e5342011-06-03 14:15:21 -05008465
8466 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008467 }
8468
8469 }
8470 static TestAllExtensionsLite() {
8471 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
8472 }
8473 }
8474
csharptest445bdce2011-05-20 15:50:54 -05008475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8476 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8477 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008478 public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05008479 private OptionalGroup_extension_lite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008480 private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05008481 private static readonly string[] _optionalGroupExtensionLiteFieldNames = new string[] { "a" };
8482 private static readonly uint[] _optionalGroupExtensionLiteFieldTags = new uint[] { 136 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01008483 public static OptionalGroup_extension_lite DefaultInstance {
8484 get { return defaultInstance; }
8485 }
8486
8487 public override OptionalGroup_extension_lite DefaultInstanceForType {
8488 get { return defaultInstance; }
8489 }
8490
8491 protected override OptionalGroup_extension_lite ThisMessage {
8492 get { return this; }
8493 }
8494
8495 public const int AFieldNumber = 17;
8496 private bool hasA;
csharptestced18e12011-06-09 19:47:56 -05008497 private int a_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008498 public bool HasA {
8499 get { return hasA; }
8500 }
8501 public int A {
8502 get { return a_; }
8503 }
8504
8505 public override bool IsInitialized {
8506 get {
8507 return true;
8508 }
8509 }
8510
csharptestffafdaa2011-06-03 12:58:14 -05008511 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008512 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05008513 string[] field_names = _optionalGroupExtensionLiteFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05008514 if (hasA) {
csharptest920b09a2011-06-08 20:13:29 -05008515 output.WriteInt32(17, field_names[0], A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008516 }
8517 }
8518
8519 private int memoizedSerializedSize = -1;
8520 public override int SerializedSize {
8521 get {
8522 int size = memoizedSerializedSize;
8523 if (size != -1) return size;
8524
8525 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05008526 if (hasA) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008527 size += pb::CodedOutputStream.ComputeInt32Size(17, A);
8528 }
8529 memoizedSerializedSize = size;
8530 return size;
8531 }
8532 }
8533
8534 #region Lite runtime methods
8535 public override int GetHashCode() {
8536 int hash = GetType().GetHashCode();
8537 if (hasA) hash ^= a_.GetHashCode();
8538 return hash;
8539 }
8540
8541 public override bool Equals(object obj) {
8542 OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
8543 if (other == null) return false;
8544 if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
8545 return true;
8546 }
8547
8548 public override void PrintTo(global::System.IO.TextWriter writer) {
8549 PrintField("a", hasA, a_, writer);
8550 }
8551 #endregion
8552
8553 public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
8554 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8555 }
8556 public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8557 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8558 }
8559 public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
8560 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8561 }
8562 public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8563 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8564 }
8565 public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
8566 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8567 }
8568 public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8569 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8570 }
8571 public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
8572 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8573 }
8574 public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8575 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8576 }
csharptest17699c22011-06-03 21:57:15 -05008577 public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008578 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8579 }
csharptest17699c22011-06-03 21:57:15 -05008580 public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008581 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8582 }
8583 public static Builder CreateBuilder() { return new Builder(); }
8584 public override Builder ToBuilder() { return CreateBuilder(this); }
8585 public override Builder CreateBuilderForType() { return new Builder(); }
8586 public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) {
8587 return (Builder) new Builder().MergeFrom(prototype);
8588 }
8589
csharptest445bdce2011-05-20 15:50:54 -05008590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8591 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8592 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008593 public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
8594 protected override Builder ThisBuilder {
8595 get { return this; }
8596 }
8597 public Builder() {}
8598
8599 OptionalGroup_extension_lite result = new OptionalGroup_extension_lite();
8600
8601 protected override OptionalGroup_extension_lite MessageBeingBuilt {
8602 get { return result; }
8603 }
8604
8605 public override Builder Clear() {
8606 result = new OptionalGroup_extension_lite();
8607 return this;
8608 }
8609
8610 public override Builder Clone() {
8611 return new Builder().MergeFrom(result);
8612 }
8613
8614 public override OptionalGroup_extension_lite DefaultInstanceForType {
8615 get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
8616 }
8617
8618 public override OptionalGroup_extension_lite BuildPartial() {
8619 if (result == null) {
8620 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8621 }
8622 OptionalGroup_extension_lite returnMe = result;
8623 result = null;
8624 return returnMe;
8625 }
8626
8627 public override Builder MergeFrom(pb::IMessageLite other) {
8628 if (other is OptionalGroup_extension_lite) {
8629 return MergeFrom((OptionalGroup_extension_lite) other);
8630 } else {
8631 base.MergeFrom(other);
8632 return this;
8633 }
8634 }
8635
8636 public override Builder MergeFrom(OptionalGroup_extension_lite other) {
8637 if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
8638 if (other.HasA) {
8639 A = other.A;
8640 }
8641 return this;
8642 }
8643
csharptest17699c22011-06-03 21:57:15 -05008644 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008645 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8646 }
8647
csharptest17699c22011-06-03 21:57:15 -05008648 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05008649 uint tag;
8650 string field_name;
8651 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05008652 if(tag == 0 && field_name != null) {
8653 int field_ordinal = global::System.Array.BinarySearch(_optionalGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
8654 if(field_ordinal >= 0)
8655 tag = _optionalGroupExtensionLiteFieldTags[field_ordinal];
8656 else {
8657 ParseUnknownField(input, extensionRegistry, tag, field_name);
8658 continue;
8659 }
8660 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008661 switch (tag) {
8662 case 0: {
csharptest99284412011-06-03 14:51:06 -05008663 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008664 }
8665 default: {
8666 if (pb::WireFormat.IsEndGroupTag(tag)) {
8667 return this;
8668 }
csharptestd2af9e92011-06-03 21:35:02 -05008669 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008670 break;
8671 }
8672 case 136: {
csharptest920b09a2011-06-08 20:13:29 -05008673 result.hasA = input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008674 break;
8675 }
8676 }
8677 }
csharptest123e5342011-06-03 14:15:21 -05008678
8679 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008680 }
8681
8682
8683 public bool HasA {
csharptestc671a4b2011-06-08 11:51:24 -05008684 get { return result.hasA; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008685 }
8686 public int A {
8687 get { return result.A; }
8688 set { SetA(value); }
8689 }
8690 public Builder SetA(int value) {
8691 result.hasA = true;
8692 result.a_ = value;
8693 return this;
8694 }
8695 public Builder ClearA() {
8696 result.hasA = false;
8697 result.a_ = 0;
8698 return this;
8699 }
8700 }
8701 static OptionalGroup_extension_lite() {
8702 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
8703 }
8704 }
8705
csharptest445bdce2011-05-20 15:50:54 -05008706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8707 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8708 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008709 public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05008710 private RepeatedGroup_extension_lite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008711 private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05008712 private static readonly string[] _repeatedGroupExtensionLiteFieldNames = new string[] { "a" };
8713 private static readonly uint[] _repeatedGroupExtensionLiteFieldTags = new uint[] { 376 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01008714 public static RepeatedGroup_extension_lite DefaultInstance {
8715 get { return defaultInstance; }
8716 }
8717
8718 public override RepeatedGroup_extension_lite DefaultInstanceForType {
8719 get { return defaultInstance; }
8720 }
8721
8722 protected override RepeatedGroup_extension_lite ThisMessage {
8723 get { return this; }
8724 }
8725
8726 public const int AFieldNumber = 47;
8727 private bool hasA;
csharptestced18e12011-06-09 19:47:56 -05008728 private int a_;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008729 public bool HasA {
8730 get { return hasA; }
8731 }
8732 public int A {
8733 get { return a_; }
8734 }
8735
8736 public override bool IsInitialized {
8737 get {
8738 return true;
8739 }
8740 }
8741
csharptestffafdaa2011-06-03 12:58:14 -05008742 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008743 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05008744 string[] field_names = _repeatedGroupExtensionLiteFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05008745 if (hasA) {
csharptest920b09a2011-06-08 20:13:29 -05008746 output.WriteInt32(47, field_names[0], A);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008747 }
8748 }
8749
8750 private int memoizedSerializedSize = -1;
8751 public override int SerializedSize {
8752 get {
8753 int size = memoizedSerializedSize;
8754 if (size != -1) return size;
8755
8756 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05008757 if (hasA) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008758 size += pb::CodedOutputStream.ComputeInt32Size(47, A);
8759 }
8760 memoizedSerializedSize = size;
8761 return size;
8762 }
8763 }
8764
8765 #region Lite runtime methods
8766 public override int GetHashCode() {
8767 int hash = GetType().GetHashCode();
8768 if (hasA) hash ^= a_.GetHashCode();
8769 return hash;
8770 }
8771
8772 public override bool Equals(object obj) {
8773 RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
8774 if (other == null) return false;
8775 if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
8776 return true;
8777 }
8778
8779 public override void PrintTo(global::System.IO.TextWriter writer) {
8780 PrintField("a", hasA, a_, writer);
8781 }
8782 #endregion
8783
8784 public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
8785 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8786 }
8787 public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
8788 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8789 }
8790 public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
8791 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
8792 }
8793 public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
8794 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
8795 }
8796 public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
8797 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8798 }
8799 public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8800 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8801 }
8802 public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
8803 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
8804 }
8805 public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
8806 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
8807 }
csharptest17699c22011-06-03 21:57:15 -05008808 public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008809 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
8810 }
csharptest17699c22011-06-03 21:57:15 -05008811 public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008812 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
8813 }
8814 public static Builder CreateBuilder() { return new Builder(); }
8815 public override Builder ToBuilder() { return CreateBuilder(this); }
8816 public override Builder CreateBuilderForType() { return new Builder(); }
8817 public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) {
8818 return (Builder) new Builder().MergeFrom(prototype);
8819 }
8820
csharptest445bdce2011-05-20 15:50:54 -05008821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8822 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8823 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008824 public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
8825 protected override Builder ThisBuilder {
8826 get { return this; }
8827 }
8828 public Builder() {}
8829
8830 RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite();
8831
8832 protected override RepeatedGroup_extension_lite MessageBeingBuilt {
8833 get { return result; }
8834 }
8835
8836 public override Builder Clear() {
8837 result = new RepeatedGroup_extension_lite();
8838 return this;
8839 }
8840
8841 public override Builder Clone() {
8842 return new Builder().MergeFrom(result);
8843 }
8844
8845 public override RepeatedGroup_extension_lite DefaultInstanceForType {
8846 get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
8847 }
8848
8849 public override RepeatedGroup_extension_lite BuildPartial() {
8850 if (result == null) {
8851 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
8852 }
8853 RepeatedGroup_extension_lite returnMe = result;
8854 result = null;
8855 return returnMe;
8856 }
8857
8858 public override Builder MergeFrom(pb::IMessageLite other) {
8859 if (other is RepeatedGroup_extension_lite) {
8860 return MergeFrom((RepeatedGroup_extension_lite) other);
8861 } else {
8862 base.MergeFrom(other);
8863 return this;
8864 }
8865 }
8866
8867 public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
8868 if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
8869 if (other.HasA) {
8870 A = other.A;
8871 }
8872 return this;
8873 }
8874
csharptest17699c22011-06-03 21:57:15 -05008875 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008876 return MergeFrom(input, pb::ExtensionRegistry.Empty);
8877 }
8878
csharptest17699c22011-06-03 21:57:15 -05008879 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05008880 uint tag;
8881 string field_name;
8882 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05008883 if(tag == 0 && field_name != null) {
8884 int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
8885 if(field_ordinal >= 0)
8886 tag = _repeatedGroupExtensionLiteFieldTags[field_ordinal];
8887 else {
8888 ParseUnknownField(input, extensionRegistry, tag, field_name);
8889 continue;
8890 }
8891 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008892 switch (tag) {
8893 case 0: {
csharptest99284412011-06-03 14:51:06 -05008894 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01008895 }
8896 default: {
8897 if (pb::WireFormat.IsEndGroupTag(tag)) {
8898 return this;
8899 }
csharptestd2af9e92011-06-03 21:35:02 -05008900 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008901 break;
8902 }
8903 case 376: {
csharptest920b09a2011-06-08 20:13:29 -05008904 result.hasA = input.ReadInt32(ref result.a_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01008905 break;
8906 }
8907 }
8908 }
csharptest123e5342011-06-03 14:15:21 -05008909
8910 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008911 }
8912
8913
8914 public bool HasA {
csharptestc671a4b2011-06-08 11:51:24 -05008915 get { return result.hasA; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008916 }
8917 public int A {
8918 get { return result.A; }
8919 set { SetA(value); }
8920 }
8921 public Builder SetA(int value) {
8922 result.hasA = true;
8923 result.a_ = value;
8924 return this;
8925 }
8926 public Builder ClearA() {
8927 result.hasA = false;
8928 result.a_ = 0;
8929 return this;
8930 }
8931 }
8932 static RepeatedGroup_extension_lite() {
8933 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
8934 }
8935 }
8936
csharptest445bdce2011-05-20 15:50:54 -05008937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8938 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8939 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01008940 public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05008941 private TestPackedExtensionsLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01008942 private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05008943 private static readonly string[] _testPackedExtensionsLiteFieldNames = new string[] { };
8944 private static readonly uint[] _testPackedExtensionsLiteFieldTags = new uint[] { };
Jon Skeet82bb0f12011-04-03 20:17:12 +01008945 public static TestPackedExtensionsLite DefaultInstance {
8946 get { return defaultInstance; }
8947 }
8948
8949 public override TestPackedExtensionsLite DefaultInstanceForType {
8950 get { return defaultInstance; }
8951 }
8952
8953 protected override TestPackedExtensionsLite ThisMessage {
8954 get { return this; }
8955 }
8956
8957 public override bool IsInitialized {
8958 get {
8959 if (!ExtensionsAreInitialized) return false;
8960 return true;
8961 }
8962 }
8963
csharptestffafdaa2011-06-03 12:58:14 -05008964 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01008965 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05008966 string[] field_names = _testPackedExtensionsLiteFieldNames;
Jon Skeet82bb0f12011-04-03 20:17:12 +01008967 pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
8968 extensionWriter.WriteUntil(536870912, output);
8969 }
8970
8971 private int memoizedSerializedSize = -1;
8972 public override int SerializedSize {
8973 get {
8974 int size = memoizedSerializedSize;
8975 if (size != -1) return size;
8976
8977 size = 0;
8978 size += ExtensionsSerializedSize;
8979 memoizedSerializedSize = size;
8980 return size;
8981 }
8982 }
8983
8984 #region Lite runtime methods
8985 public override int GetHashCode() {
8986 int hash = GetType().GetHashCode();
8987 hash ^= base.GetHashCode();
8988 return hash;
8989 }
8990
8991 public override bool Equals(object obj) {
8992 TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
8993 if (other == null) return false;
8994 if (!base.Equals(other)) return false;
8995 return true;
8996 }
8997
8998 public override void PrintTo(global::System.IO.TextWriter writer) {
8999 base.PrintTo(writer);
9000 }
9001 #endregion
9002
9003 public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
9004 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9005 }
9006 public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9007 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9008 }
9009 public static TestPackedExtensionsLite ParseFrom(byte[] data) {
9010 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9011 }
9012 public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9013 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9014 }
9015 public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
9016 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9017 }
9018 public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9019 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9020 }
9021 public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
9022 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9023 }
9024 public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9025 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9026 }
csharptest17699c22011-06-03 21:57:15 -05009027 public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009028 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9029 }
csharptest17699c22011-06-03 21:57:15 -05009030 public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009031 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9032 }
9033 public static Builder CreateBuilder() { return new Builder(); }
9034 public override Builder ToBuilder() { return CreateBuilder(this); }
9035 public override Builder CreateBuilderForType() { return new Builder(); }
9036 public static Builder CreateBuilder(TestPackedExtensionsLite prototype) {
9037 return (Builder) new Builder().MergeFrom(prototype);
9038 }
9039
csharptest445bdce2011-05-20 15:50:54 -05009040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9041 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9042 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009043 public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
9044 protected override Builder ThisBuilder {
9045 get { return this; }
9046 }
9047 public Builder() {}
9048
9049 TestPackedExtensionsLite result = new TestPackedExtensionsLite();
9050
9051 protected override TestPackedExtensionsLite MessageBeingBuilt {
9052 get { return result; }
9053 }
9054
9055 public override Builder Clear() {
9056 result = new TestPackedExtensionsLite();
9057 return this;
9058 }
9059
9060 public override Builder Clone() {
9061 return new Builder().MergeFrom(result);
9062 }
9063
9064 public override TestPackedExtensionsLite DefaultInstanceForType {
9065 get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
9066 }
9067
9068 public override TestPackedExtensionsLite BuildPartial() {
9069 if (result == null) {
9070 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9071 }
9072 TestPackedExtensionsLite returnMe = result;
9073 result = null;
9074 return returnMe;
9075 }
9076
9077 public override Builder MergeFrom(pb::IMessageLite other) {
9078 if (other is TestPackedExtensionsLite) {
9079 return MergeFrom((TestPackedExtensionsLite) other);
9080 } else {
9081 base.MergeFrom(other);
9082 return this;
9083 }
9084 }
9085
9086 public override Builder MergeFrom(TestPackedExtensionsLite other) {
9087 if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
9088 this.MergeExtensionFields(other);
9089 return this;
9090 }
9091
csharptest17699c22011-06-03 21:57:15 -05009092 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009093 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9094 }
9095
csharptest17699c22011-06-03 21:57:15 -05009096 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05009097 uint tag;
9098 string field_name;
9099 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05009100 if(tag == 0 && field_name != null) {
9101 int field_ordinal = global::System.Array.BinarySearch(_testPackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
9102 if(field_ordinal >= 0)
9103 tag = _testPackedExtensionsLiteFieldTags[field_ordinal];
9104 else {
9105 ParseUnknownField(input, extensionRegistry, tag, field_name);
9106 continue;
9107 }
9108 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009109 switch (tag) {
9110 case 0: {
csharptest99284412011-06-03 14:51:06 -05009111 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009112 }
9113 default: {
9114 if (pb::WireFormat.IsEndGroupTag(tag)) {
9115 return this;
9116 }
csharptestd2af9e92011-06-03 21:35:02 -05009117 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009118 break;
9119 }
9120 }
9121 }
csharptest123e5342011-06-03 14:15:21 -05009122
9123 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009124 }
9125
9126 }
9127 static TestPackedExtensionsLite() {
9128 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
9129 }
9130 }
9131
csharptest445bdce2011-05-20 15:50:54 -05009132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9133 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9134 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptestc2a1f9b2011-06-06 11:40:01 -05009135 public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05009136 private TestUnpackedExtensionsLite() { }
csharptestc2a1f9b2011-06-06 11:40:01 -05009137 private static readonly TestUnpackedExtensionsLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05009138 private static readonly string[] _testUnpackedExtensionsLiteFieldNames = new string[] { };
9139 private static readonly uint[] _testUnpackedExtensionsLiteFieldTags = new uint[] { };
csharptestc2a1f9b2011-06-06 11:40:01 -05009140 public static TestUnpackedExtensionsLite DefaultInstance {
9141 get { return defaultInstance; }
9142 }
9143
9144 public override TestUnpackedExtensionsLite DefaultInstanceForType {
9145 get { return defaultInstance; }
9146 }
9147
9148 protected override TestUnpackedExtensionsLite ThisMessage {
9149 get { return this; }
9150 }
9151
9152 public override bool IsInitialized {
9153 get {
9154 if (!ExtensionsAreInitialized) return false;
9155 return true;
9156 }
9157 }
9158
9159 public override void WriteTo(pb::ICodedOutputStream output) {
9160 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05009161 string[] field_names = _testUnpackedExtensionsLiteFieldNames;
csharptestc2a1f9b2011-06-06 11:40:01 -05009162 pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
9163 extensionWriter.WriteUntil(536870912, output);
9164 }
9165
9166 private int memoizedSerializedSize = -1;
9167 public override int SerializedSize {
9168 get {
9169 int size = memoizedSerializedSize;
9170 if (size != -1) return size;
9171
9172 size = 0;
9173 size += ExtensionsSerializedSize;
9174 memoizedSerializedSize = size;
9175 return size;
9176 }
9177 }
9178
9179 #region Lite runtime methods
9180 public override int GetHashCode() {
9181 int hash = GetType().GetHashCode();
9182 hash ^= base.GetHashCode();
9183 return hash;
9184 }
9185
9186 public override bool Equals(object obj) {
9187 TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
9188 if (other == null) return false;
9189 if (!base.Equals(other)) return false;
9190 return true;
9191 }
9192
9193 public override void PrintTo(global::System.IO.TextWriter writer) {
9194 base.PrintTo(writer);
9195 }
9196 #endregion
9197
9198 public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
9199 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9200 }
9201 public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9202 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9203 }
9204 public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
9205 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9206 }
9207 public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9208 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9209 }
9210 public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
9211 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9212 }
9213 public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9214 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9215 }
9216 public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
9217 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9218 }
9219 public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9220 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9221 }
9222 public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
9223 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9224 }
9225 public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9226 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9227 }
9228 public static Builder CreateBuilder() { return new Builder(); }
9229 public override Builder ToBuilder() { return CreateBuilder(this); }
9230 public override Builder CreateBuilderForType() { return new Builder(); }
9231 public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
9232 return (Builder) new Builder().MergeFrom(prototype);
9233 }
9234
9235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9236 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9237 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
9238 public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
9239 protected override Builder ThisBuilder {
9240 get { return this; }
9241 }
9242 public Builder() {}
9243
9244 TestUnpackedExtensionsLite result = new TestUnpackedExtensionsLite();
9245
9246 protected override TestUnpackedExtensionsLite MessageBeingBuilt {
9247 get { return result; }
9248 }
9249
9250 public override Builder Clear() {
9251 result = new TestUnpackedExtensionsLite();
9252 return this;
9253 }
9254
9255 public override Builder Clone() {
9256 return new Builder().MergeFrom(result);
9257 }
9258
9259 public override TestUnpackedExtensionsLite DefaultInstanceForType {
9260 get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
9261 }
9262
9263 public override TestUnpackedExtensionsLite BuildPartial() {
9264 if (result == null) {
9265 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9266 }
9267 TestUnpackedExtensionsLite returnMe = result;
9268 result = null;
9269 return returnMe;
9270 }
9271
9272 public override Builder MergeFrom(pb::IMessageLite other) {
9273 if (other is TestUnpackedExtensionsLite) {
9274 return MergeFrom((TestUnpackedExtensionsLite) other);
9275 } else {
9276 base.MergeFrom(other);
9277 return this;
9278 }
9279 }
9280
9281 public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
9282 if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
9283 this.MergeExtensionFields(other);
9284 return this;
9285 }
9286
9287 public override Builder MergeFrom(pb::ICodedInputStream input) {
9288 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9289 }
9290
9291 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
9292 uint tag;
9293 string field_name;
9294 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05009295 if(tag == 0 && field_name != null) {
9296 int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
9297 if(field_ordinal >= 0)
9298 tag = _testUnpackedExtensionsLiteFieldTags[field_ordinal];
9299 else {
9300 ParseUnknownField(input, extensionRegistry, tag, field_name);
9301 continue;
9302 }
9303 }
csharptestc2a1f9b2011-06-06 11:40:01 -05009304 switch (tag) {
9305 case 0: {
9306 throw pb::InvalidProtocolBufferException.InvalidTag();
9307 }
9308 default: {
9309 if (pb::WireFormat.IsEndGroupTag(tag)) {
9310 return this;
9311 }
9312 ParseUnknownField(input, extensionRegistry, tag, field_name);
9313 break;
9314 }
9315 }
9316 }
9317
9318 return this;
9319 }
9320
9321 }
9322 static TestUnpackedExtensionsLite() {
9323 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
9324 }
9325 }
9326
9327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9328 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9329 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009330 public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05009331 private TestNestedExtensionLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009332 private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05009333 private static readonly string[] _testNestedExtensionLiteFieldNames = new string[] { };
9334 private static readonly uint[] _testNestedExtensionLiteFieldTags = new uint[] { };
Jon Skeet82bb0f12011-04-03 20:17:12 +01009335 public static TestNestedExtensionLite DefaultInstance {
9336 get { return defaultInstance; }
9337 }
9338
9339 public override TestNestedExtensionLite DefaultInstanceForType {
9340 get { return defaultInstance; }
9341 }
9342
9343 protected override TestNestedExtensionLite ThisMessage {
9344 get { return this; }
9345 }
9346
9347 public const int NestedExtensionFieldNumber = 12345;
9348 public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
9349 public override bool IsInitialized {
9350 get {
9351 return true;
9352 }
9353 }
9354
csharptestffafdaa2011-06-03 12:58:14 -05009355 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009356 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05009357 string[] field_names = _testNestedExtensionLiteFieldNames;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009358 }
9359
9360 private int memoizedSerializedSize = -1;
9361 public override int SerializedSize {
9362 get {
9363 int size = memoizedSerializedSize;
9364 if (size != -1) return size;
9365
9366 size = 0;
9367 memoizedSerializedSize = size;
9368 return size;
9369 }
9370 }
9371
9372 #region Lite runtime methods
9373 public override int GetHashCode() {
9374 int hash = GetType().GetHashCode();
9375 return hash;
9376 }
9377
9378 public override bool Equals(object obj) {
9379 TestNestedExtensionLite other = obj as TestNestedExtensionLite;
9380 if (other == null) return false;
9381 return true;
9382 }
9383
9384 public override void PrintTo(global::System.IO.TextWriter writer) {
9385 }
9386 #endregion
9387
9388 public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
9389 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9390 }
9391 public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9392 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9393 }
9394 public static TestNestedExtensionLite ParseFrom(byte[] data) {
9395 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9396 }
9397 public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9398 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9399 }
9400 public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
9401 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9402 }
9403 public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9404 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9405 }
9406 public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
9407 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9408 }
9409 public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9410 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9411 }
csharptest17699c22011-06-03 21:57:15 -05009412 public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009413 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9414 }
csharptest17699c22011-06-03 21:57:15 -05009415 public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009416 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9417 }
9418 public static Builder CreateBuilder() { return new Builder(); }
9419 public override Builder ToBuilder() { return CreateBuilder(this); }
9420 public override Builder CreateBuilderForType() { return new Builder(); }
9421 public static Builder CreateBuilder(TestNestedExtensionLite prototype) {
9422 return (Builder) new Builder().MergeFrom(prototype);
9423 }
9424
csharptest445bdce2011-05-20 15:50:54 -05009425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9426 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9427 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009428 public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
9429 protected override Builder ThisBuilder {
9430 get { return this; }
9431 }
9432 public Builder() {}
9433
9434 TestNestedExtensionLite result = new TestNestedExtensionLite();
9435
9436 protected override TestNestedExtensionLite MessageBeingBuilt {
9437 get { return result; }
9438 }
9439
9440 public override Builder Clear() {
9441 result = new TestNestedExtensionLite();
9442 return this;
9443 }
9444
9445 public override Builder Clone() {
9446 return new Builder().MergeFrom(result);
9447 }
9448
9449 public override TestNestedExtensionLite DefaultInstanceForType {
9450 get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
9451 }
9452
9453 public override TestNestedExtensionLite BuildPartial() {
9454 if (result == null) {
9455 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9456 }
9457 TestNestedExtensionLite returnMe = result;
9458 result = null;
9459 return returnMe;
9460 }
9461
9462 public override Builder MergeFrom(pb::IMessageLite other) {
9463 if (other is TestNestedExtensionLite) {
9464 return MergeFrom((TestNestedExtensionLite) other);
9465 } else {
9466 base.MergeFrom(other);
9467 return this;
9468 }
9469 }
9470
9471 public override Builder MergeFrom(TestNestedExtensionLite other) {
9472 if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
9473 return this;
9474 }
9475
csharptest17699c22011-06-03 21:57:15 -05009476 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009477 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9478 }
9479
csharptest17699c22011-06-03 21:57:15 -05009480 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05009481 uint tag;
9482 string field_name;
9483 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05009484 if(tag == 0 && field_name != null) {
9485 int field_ordinal = global::System.Array.BinarySearch(_testNestedExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
9486 if(field_ordinal >= 0)
9487 tag = _testNestedExtensionLiteFieldTags[field_ordinal];
9488 else {
9489 ParseUnknownField(input, extensionRegistry, tag, field_name);
9490 continue;
9491 }
9492 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009493 switch (tag) {
9494 case 0: {
csharptest99284412011-06-03 14:51:06 -05009495 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009496 }
9497 default: {
9498 if (pb::WireFormat.IsEndGroupTag(tag)) {
9499 return this;
9500 }
csharptestd2af9e92011-06-03 21:35:02 -05009501 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009502 break;
9503 }
9504 }
9505 }
csharptest123e5342011-06-03 14:15:21 -05009506
9507 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009508 }
9509
9510 }
9511 static TestNestedExtensionLite() {
9512 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
9513 }
9514 }
9515
csharptest445bdce2011-05-20 15:50:54 -05009516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9517 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9518 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009519 public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05009520 private TestDeprecatedLite() { }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009521 private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05009522 private static readonly string[] _testDeprecatedLiteFieldNames = new string[] { "deprecated_field" };
9523 private static readonly uint[] _testDeprecatedLiteFieldTags = new uint[] { 8 };
Jon Skeet82bb0f12011-04-03 20:17:12 +01009524 public static TestDeprecatedLite DefaultInstance {
9525 get { return defaultInstance; }
9526 }
9527
9528 public override TestDeprecatedLite DefaultInstanceForType {
9529 get { return defaultInstance; }
9530 }
9531
9532 protected override TestDeprecatedLite ThisMessage {
9533 get { return this; }
9534 }
9535
9536 public const int DeprecatedFieldFieldNumber = 1;
9537 private bool hasDeprecatedField;
csharptestced18e12011-06-09 19:47:56 -05009538 private int deprecatedField_;
csharptest4a594ca2011-09-09 15:53:10 -05009539 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009540 public bool HasDeprecatedField {
9541 get { return hasDeprecatedField; }
9542 }
csharptest4a594ca2011-09-09 15:53:10 -05009543 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009544 public int DeprecatedField {
9545 get { return deprecatedField_; }
9546 }
9547
9548 public override bool IsInitialized {
9549 get {
9550 return true;
9551 }
9552 }
9553
csharptestffafdaa2011-06-03 12:58:14 -05009554 public override void WriteTo(pb::ICodedOutputStream output) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009555 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05009556 string[] field_names = _testDeprecatedLiteFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05009557 if (hasDeprecatedField) {
csharptest920b09a2011-06-08 20:13:29 -05009558 output.WriteInt32(1, field_names[0], DeprecatedField);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009559 }
9560 }
9561
9562 private int memoizedSerializedSize = -1;
9563 public override int SerializedSize {
9564 get {
9565 int size = memoizedSerializedSize;
9566 if (size != -1) return size;
9567
9568 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05009569 if (hasDeprecatedField) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009570 size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
9571 }
9572 memoizedSerializedSize = size;
9573 return size;
9574 }
9575 }
9576
9577 #region Lite runtime methods
9578 public override int GetHashCode() {
9579 int hash = GetType().GetHashCode();
9580 if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
9581 return hash;
9582 }
9583
9584 public override bool Equals(object obj) {
9585 TestDeprecatedLite other = obj as TestDeprecatedLite;
9586 if (other == null) return false;
9587 if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
9588 return true;
9589 }
9590
9591 public override void PrintTo(global::System.IO.TextWriter writer) {
9592 PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
9593 }
9594 #endregion
9595
9596 public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
9597 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9598 }
9599 public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
9600 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9601 }
9602 public static TestDeprecatedLite ParseFrom(byte[] data) {
9603 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
9604 }
9605 public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
9606 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
9607 }
9608 public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
9609 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9610 }
9611 public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9612 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9613 }
9614 public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
9615 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
9616 }
9617 public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
9618 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
9619 }
csharptest17699c22011-06-03 21:57:15 -05009620 public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009621 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
9622 }
csharptest17699c22011-06-03 21:57:15 -05009623 public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009624 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
9625 }
9626 public static Builder CreateBuilder() { return new Builder(); }
9627 public override Builder ToBuilder() { return CreateBuilder(this); }
9628 public override Builder CreateBuilderForType() { return new Builder(); }
9629 public static Builder CreateBuilder(TestDeprecatedLite prototype) {
9630 return (Builder) new Builder().MergeFrom(prototype);
9631 }
9632
csharptest445bdce2011-05-20 15:50:54 -05009633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9634 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
9635 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009636 public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
9637 protected override Builder ThisBuilder {
9638 get { return this; }
9639 }
9640 public Builder() {}
9641
9642 TestDeprecatedLite result = new TestDeprecatedLite();
9643
9644 protected override TestDeprecatedLite MessageBeingBuilt {
9645 get { return result; }
9646 }
9647
9648 public override Builder Clear() {
9649 result = new TestDeprecatedLite();
9650 return this;
9651 }
9652
9653 public override Builder Clone() {
9654 return new Builder().MergeFrom(result);
9655 }
9656
9657 public override TestDeprecatedLite DefaultInstanceForType {
9658 get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
9659 }
9660
9661 public override TestDeprecatedLite BuildPartial() {
9662 if (result == null) {
9663 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
9664 }
9665 TestDeprecatedLite returnMe = result;
9666 result = null;
9667 return returnMe;
9668 }
9669
9670 public override Builder MergeFrom(pb::IMessageLite other) {
9671 if (other is TestDeprecatedLite) {
9672 return MergeFrom((TestDeprecatedLite) other);
9673 } else {
9674 base.MergeFrom(other);
9675 return this;
9676 }
9677 }
9678
9679 public override Builder MergeFrom(TestDeprecatedLite other) {
9680 if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
9681 if (other.HasDeprecatedField) {
9682 DeprecatedField = other.DeprecatedField;
9683 }
9684 return this;
9685 }
9686
csharptest17699c22011-06-03 21:57:15 -05009687 public override Builder MergeFrom(pb::ICodedInputStream input) {
Jon Skeet82bb0f12011-04-03 20:17:12 +01009688 return MergeFrom(input, pb::ExtensionRegistry.Empty);
9689 }
9690
csharptest17699c22011-06-03 21:57:15 -05009691 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest123e5342011-06-03 14:15:21 -05009692 uint tag;
9693 string field_name;
9694 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05009695 if(tag == 0 && field_name != null) {
9696 int field_ordinal = global::System.Array.BinarySearch(_testDeprecatedLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
9697 if(field_ordinal >= 0)
9698 tag = _testDeprecatedLiteFieldTags[field_ordinal];
9699 else {
9700 ParseUnknownField(input, extensionRegistry, tag, field_name);
9701 continue;
9702 }
9703 }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009704 switch (tag) {
9705 case 0: {
csharptest99284412011-06-03 14:51:06 -05009706 throw pb::InvalidProtocolBufferException.InvalidTag();
Jon Skeet82bb0f12011-04-03 20:17:12 +01009707 }
9708 default: {
9709 if (pb::WireFormat.IsEndGroupTag(tag)) {
9710 return this;
9711 }
csharptestd2af9e92011-06-03 21:35:02 -05009712 ParseUnknownField(input, extensionRegistry, tag, field_name);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009713 break;
9714 }
9715 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05009716 result.hasDeprecatedField = input.ReadInt32(ref result.deprecatedField_);
Jon Skeet82bb0f12011-04-03 20:17:12 +01009717 break;
9718 }
9719 }
9720 }
csharptest123e5342011-06-03 14:15:21 -05009721
9722 return this;
Jon Skeet82bb0f12011-04-03 20:17:12 +01009723 }
9724
9725
csharptest4a594ca2011-09-09 15:53:10 -05009726 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009727 public bool HasDeprecatedField {
csharptestc671a4b2011-06-08 11:51:24 -05009728 get { return result.hasDeprecatedField; }
Jon Skeet82bb0f12011-04-03 20:17:12 +01009729 }
csharptest4a594ca2011-09-09 15:53:10 -05009730 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009731 public int DeprecatedField {
9732 get { return result.DeprecatedField; }
9733 set { SetDeprecatedField(value); }
9734 }
csharptest4a594ca2011-09-09 15:53:10 -05009735 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009736 public Builder SetDeprecatedField(int value) {
9737 result.hasDeprecatedField = true;
9738 result.deprecatedField_ = value;
9739 return this;
9740 }
csharptest4a594ca2011-09-09 15:53:10 -05009741 [global::System.ObsoleteAttribute()]
Jon Skeet82bb0f12011-04-03 20:17:12 +01009742 public Builder ClearDeprecatedField() {
9743 result.hasDeprecatedField = false;
9744 result.deprecatedField_ = 0;
9745 return this;
9746 }
9747 }
9748 static TestDeprecatedLite() {
9749 object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
9750 }
9751 }
9752
9753 #endregion
9754
9755}
csharptest2d887332011-08-12 20:13:44 -05009756
9757#endregion Designer generated code