diff options
author | Adam Frisby | 2009-12-27 15:03:10 +1100 |
---|---|---|
committer | Adam Frisby | 2009-12-27 15:03:10 +1100 |
commit | fd777cc7b964a302f335ad91735f02554582c648 (patch) | |
tree | 4b448a6ea13b3074a5c54beed0a8744127b2930b /OpenSim/Client/Sirikata/Protocol/Test.cs | |
parent | * Adding Google.ProtocolBuffers.dll dependency (BSD licensed) (diff) | |
download | opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.zip opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.tar.gz opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.tar.bz2 opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.tar.xz |
* Implements Sirikata ClientStack Module
* Just a stub (imports all the sirikata protocol, and that's about it.)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Client/Sirikata/Protocol/Test.cs | 3773 |
1 files changed, 3773 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Test.cs b/OpenSim/Client/Sirikata/Protocol/Test.cs new file mode 100644 index 0000000..0e1372a --- /dev/null +++ b/OpenSim/Client/Sirikata/Protocol/Test.cs | |||
@@ -0,0 +1,3773 @@ | |||
1 | // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
2 | |||
3 | using pb = global::Google.ProtocolBuffers; | ||
4 | using pbc = global::Google.ProtocolBuffers.Collections; | ||
5 | using pbd = global::Google.ProtocolBuffers.Descriptors; | ||
6 | using scg = global::System.Collections.Generic; | ||
7 | namespace Sirikata.PB._PBJ_Internal { | ||
8 | |||
9 | public static partial class Test { | ||
10 | |||
11 | #region Extension registration | ||
12 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { | ||
13 | registry.Add(global::Sirikata.PB._PBJ_Internal.Test.Extensionbbox); | ||
14 | registry.Add(global::Sirikata.PB._PBJ_Internal.Test.Extensionvector); | ||
15 | } | ||
16 | #endregion | ||
17 | #region Extensions | ||
18 | public const int ExtensionbboxFieldNumber = 100; | ||
19 | public static pb::GeneratedExtensionBase<scg::IList<float>> Extensionbbox; | ||
20 | public const int ExtensionvectorFieldNumber = 101; | ||
21 | public static pb::GeneratedExtensionBase<scg::IList<float>> Extensionvector; | ||
22 | #endregion | ||
23 | |||
24 | #region Static variables | ||
25 | internal static pbd::MessageDescriptor internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__Descriptor; | ||
26 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.ExternalMessage, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder> internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__FieldAccessorTable; | ||
27 | internal static pbd::MessageDescriptor internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__Descriptor; | ||
28 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder> internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__FieldAccessorTable; | ||
29 | internal static pbd::MessageDescriptor internal__static_Sirikata_PB__PBJ_Internal_TestMessage__Descriptor; | ||
30 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.TestMessage, global::Sirikata.PB._PBJ_Internal.TestMessage.Builder> internal__static_Sirikata_PB__PBJ_Internal_TestMessage__FieldAccessorTable; | ||
31 | internal static pbd::MessageDescriptor internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__Descriptor; | ||
32 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage, global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder> internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__FieldAccessorTable; | ||
33 | #endregion | ||
34 | #region Descriptor | ||
35 | public static pbd::FileDescriptor Descriptor { | ||
36 | get { return descriptor; } | ||
37 | } | ||
38 | private static pbd::FileDescriptor descriptor; | ||
39 | |||
40 | static Test() { | ||
41 | byte[] descriptorData = global::System.Convert.FromBase64String( | ||
42 | "CgpUZXN0LnByb3RvEhlTaXJpa2F0YS5QQi5fUEJKX0ludGVybmFsIuwCCg9F" + | ||
43 | "eHRlcm5hbE1lc3NhZ2USFQoHaXNfdHJ1ZRgoIAEoCDoEdHJ1ZRIPCgN2MmYY" + | ||
44 | "AiADKAJCAhABEkYKB3N1Yl9tZXMYHiABKAsyNS5TaXJpa2F0YS5QQi5fUEJK" + | ||
45 | "X0ludGVybmFsLkV4dGVybmFsTWVzc2FnZS5TdWJNZXNzYWdlEkkKCnN1Ym1l" + | ||
46 | "c3NlcnMYHyADKAsyNS5TaXJpa2F0YS5QQi5fUEJKX0ludGVybmFsLkV4dGVy" + | ||
47 | "bmFsTWVzc2FnZS5TdWJNZXNzYWdlEgsKA3NoYRggIAEoDBIMCgRzaGFzGCEg" + | ||
48 | "AygMEg8KA3YzZhgEIAMoAkICEAESEAoEdjNmZhgFIAMoAkICEAEaYAoKU3Vi" + | ||
49 | "TWVzc2FnZRIPCgdzdWJ1dWlkGAEgASgMEhUKCXN1YnZlY3RvchgCIAMoAUIC" + | ||
50 | "EAESEwoLc3ViZHVyYXRpb24YAyABKBASFQoJc3Vibm9ybWFsGAQgAygCQgIQ" + | ||
51 | "ASLmCAoLVGVzdE1lc3NhZ2USEQoDeHhkGBQgASgBOgQxMC4zEgsKA3h4ZhgV" + | ||
52 | "IAEoAhINCgV4eHUzMhgWIAEoDRILCgN4eHMYFyABKAkSCwoDeHhiGBggASgM" + | ||
53 | "EgwKBHh4c3MYGSADKAkSDAoEeHhiYhgaIAMoDBIQCgR4eGZmGBsgAygCQgIQ" + | ||
54 | "ARIQCgR4eG5uGB0gAygCQgIQARIMCgR4eGZyGBwgAigCEg0KAW4YASADKAJC" + | ||
55 | "AhABEg8KA3YyZhgCIAMoAkICEAESDwoDdjJkGAMgAygBQgIQARIPCgN2M2YY" + | ||
56 | "BCADKAJCAhABEg8KA3YzZBgFIAMoAUICEAESDwoDdjRmGAYgAygCQgIQARIP" + | ||
57 | "CgN2NGQYByADKAFCAhABEg0KAXEYCCADKAJCAhABEgkKAXUYCSABKAwSCQoB" + | ||
58 | "YRgKIAEoAhIJCgF0GAsgASgGEgkKAWQYDCABKBASCwoDZjMyGA0gASgNEgsK" + | ||
59 | "A2Y2NBgOIAEoBBIPCgNic2YYDyADKAJCAhABEg8KA2JzZBgQIAMoAUICEAES" + | ||
60 | "DwoDYmJmGBEgAygCQgIQARIPCgNiYmQYEiADKAFCAhABEjoKA2UzMhgTIAEo" + | ||
61 | "DjItLlNpcmlrYXRhLlBCLl9QQkpfSW50ZXJuYWwuVGVzdE1lc3NhZ2UuRW51" + | ||
62 | "bTMyEkEKBnN1Ym1lcxgeIAEoCzIxLlNpcmlrYXRhLlBCLl9QQkpfSW50ZXJu" + | ||
63 | "YWwuVGVzdE1lc3NhZ2UuU3ViTWVzc2FnZRJFCgpzdWJtZXNzZXJzGB8gAygL" + | ||
64 | "MjEuU2lyaWthdGEuUEIuX1BCSl9JbnRlcm5hbC5UZXN0TWVzc2FnZS5TdWJN" + | ||
65 | "ZXNzYWdlEgsKA3NoYRggIAEoDBIMCgRzaGFzGCEgAygMEjoKBmV4dG1lcxgi" + | ||
66 | "IAEoCzIqLlNpcmlrYXRhLlBCLl9QQkpfSW50ZXJuYWwuRXh0ZXJuYWxNZXNz" + | ||
67 | "YWdlEj4KCmV4dG1lc3NlcnMYIyADKAsyKi5TaXJpa2F0YS5QQi5fUEJKX0lu" + | ||
68 | "dGVybmFsLkV4dGVybmFsTWVzc2FnZRI9CglleHRtZXNzZXIYJCACKAsyKi5T" + | ||
69 | "aXJpa2F0YS5QQi5fUEJKX0ludGVybmFsLkV4dGVybmFsTWVzc2FnZRpgCgpT" + | ||
70 | "dWJNZXNzYWdlEg8KB3N1YnV1aWQYASABKAwSFQoJc3VidmVjdG9yGAIgAygB" + | ||
71 | "QgIQARITCgtzdWJkdXJhdGlvbhgDIAEoEBIVCglzdWJub3JtYWwYBCADKAJC" + | ||
72 | "AhABIjUKCEZsYWdzZjMyEgwKCFVOSVZFUlNBEAASBgoCV0UQARIJCgVJTUFH" + | ||
73 | "RRACEggKBExPQ0EQAyI5CghGbGFnc2Y2NBINCglVTklWRVJTQUwQABIHCgNX" + | ||
74 | "RUIQARIKCgZJTUFHRVMQAhIJCgVMT0NBTBADIjsKBkVudW0zMhIOCgpVTklW" + | ||
75 | "RVJTQUwxEAASCAoEV0VCMRABEgsKB0lNQUdFUzEQAhIKCgZMT0NBTDEQAyoF" + | ||
76 | "CGQQyAE6QQoNZXh0ZW5zaW9uYmJveBImLlNpcmlrYXRhLlBCLl9QQkpfSW50" + | ||
77 | "ZXJuYWwuVGVzdE1lc3NhZ2UYZCADKAJCAhABOkMKD2V4dGVuc2lvbnZlY3Rv" + | ||
78 | "chImLlNpcmlrYXRhLlBCLl9QQkpfSW50ZXJuYWwuVGVzdE1lc3NhZ2UYZSAD" + | ||
79 | "KAJCAhAB"); | ||
80 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { | ||
81 | descriptor = root; | ||
82 | internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__Descriptor = Descriptor.MessageTypes[0]; | ||
83 | internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__FieldAccessorTable = | ||
84 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.ExternalMessage, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder>(internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__Descriptor, | ||
85 | new string[] { "IsTrue", "V2F", "SubMes", "Submessers", "Sha", "Shas", "V3F", "V3Ff", }); | ||
86 | internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__Descriptor = internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__Descriptor.NestedTypes[0]; | ||
87 | internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__FieldAccessorTable = | ||
88 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder>(internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__Descriptor, | ||
89 | new string[] { "Subuuid", "Subvector", "Subduration", "Subnormal", }); | ||
90 | internal__static_Sirikata_PB__PBJ_Internal_TestMessage__Descriptor = Descriptor.MessageTypes[1]; | ||
91 | internal__static_Sirikata_PB__PBJ_Internal_TestMessage__FieldAccessorTable = | ||
92 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.TestMessage, global::Sirikata.PB._PBJ_Internal.TestMessage.Builder>(internal__static_Sirikata_PB__PBJ_Internal_TestMessage__Descriptor, | ||
93 | new string[] { "Xxd", "Xxf", "Xxu32", "Xxs", "Xxb", "Xxss", "Xxbb", "Xxff", "Xxnn", "Xxfr", "N", "V2F", "V2D", "V3F", "V3D", "V4F", "V4D", "Q", "U", "A", "T", "D", "F32", "F64", "Bsf", "Bsd", "Bbf", "Bbd", "E32", "Submes", "Submessers", "Sha", "Shas", "Extmes", "Extmessers", "Extmesser", }); | ||
94 | internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__Descriptor = internal__static_Sirikata_PB__PBJ_Internal_TestMessage__Descriptor.NestedTypes[0]; | ||
95 | internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__FieldAccessorTable = | ||
96 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage, global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder>(internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__Descriptor, | ||
97 | new string[] { "Subuuid", "Subvector", "Subduration", "Subnormal", }); | ||
98 | global::Sirikata.PB._PBJ_Internal.Test.Extensionbbox = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Sirikata.PB._PBJ_Internal.Test.Descriptor.Extensions[0]); | ||
99 | global::Sirikata.PB._PBJ_Internal.Test.Extensionvector = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Sirikata.PB._PBJ_Internal.Test.Descriptor.Extensions[1]); | ||
100 | return null; | ||
101 | }; | ||
102 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, | ||
103 | new pbd::FileDescriptor[] { | ||
104 | }, assigner); | ||
105 | } | ||
106 | #endregion | ||
107 | |||
108 | } | ||
109 | #region Messages | ||
110 | public sealed partial class ExternalMessage : pb::GeneratedMessage<ExternalMessage, ExternalMessage.Builder> { | ||
111 | private static readonly ExternalMessage defaultInstance = new Builder().BuildPartial(); | ||
112 | public static ExternalMessage DefaultInstance { | ||
113 | get { return defaultInstance; } | ||
114 | } | ||
115 | |||
116 | public override ExternalMessage DefaultInstanceForType { | ||
117 | get { return defaultInstance; } | ||
118 | } | ||
119 | |||
120 | protected override ExternalMessage ThisMessage { | ||
121 | get { return this; } | ||
122 | } | ||
123 | |||
124 | public static pbd::MessageDescriptor Descriptor { | ||
125 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__Descriptor; } | ||
126 | } | ||
127 | |||
128 | protected override pb::FieldAccess.FieldAccessorTable<ExternalMessage, ExternalMessage.Builder> InternalFieldAccessors { | ||
129 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage__FieldAccessorTable; } | ||
130 | } | ||
131 | |||
132 | #region Nested types | ||
133 | public static class Types { | ||
134 | public sealed partial class SubMessage : pb::GeneratedMessage<SubMessage, SubMessage.Builder> { | ||
135 | private static readonly SubMessage defaultInstance = new Builder().BuildPartial(); | ||
136 | public static SubMessage DefaultInstance { | ||
137 | get { return defaultInstance; } | ||
138 | } | ||
139 | |||
140 | public override SubMessage DefaultInstanceForType { | ||
141 | get { return defaultInstance; } | ||
142 | } | ||
143 | |||
144 | protected override SubMessage ThisMessage { | ||
145 | get { return this; } | ||
146 | } | ||
147 | |||
148 | public static pbd::MessageDescriptor Descriptor { | ||
149 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__Descriptor; } | ||
150 | } | ||
151 | |||
152 | protected override pb::FieldAccess.FieldAccessorTable<SubMessage, SubMessage.Builder> InternalFieldAccessors { | ||
153 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_ExternalMessage_SubMessage__FieldAccessorTable; } | ||
154 | } | ||
155 | |||
156 | public const int SubuuidFieldNumber = 1; | ||
157 | private bool hasSubuuid; | ||
158 | private pb::ByteString subuuid_ = pb::ByteString.Empty; | ||
159 | public bool HasSubuuid { | ||
160 | get { return hasSubuuid; } | ||
161 | } | ||
162 | public pb::ByteString Subuuid { | ||
163 | get { return subuuid_; } | ||
164 | } | ||
165 | |||
166 | public const int SubvectorFieldNumber = 2; | ||
167 | private int subvectorMemoizedSerializedSize; | ||
168 | private pbc::PopsicleList<double> subvector_ = new pbc::PopsicleList<double>(); | ||
169 | public scg::IList<double> SubvectorList { | ||
170 | get { return pbc::Lists.AsReadOnly(subvector_); } | ||
171 | } | ||
172 | public int SubvectorCount { | ||
173 | get { return subvector_.Count; } | ||
174 | } | ||
175 | public double GetSubvector(int index) { | ||
176 | return subvector_[index]; | ||
177 | } | ||
178 | |||
179 | public const int SubdurationFieldNumber = 3; | ||
180 | private bool hasSubduration; | ||
181 | private long subduration_ = 0; | ||
182 | public bool HasSubduration { | ||
183 | get { return hasSubduration; } | ||
184 | } | ||
185 | public long Subduration { | ||
186 | get { return subduration_; } | ||
187 | } | ||
188 | |||
189 | public const int SubnormalFieldNumber = 4; | ||
190 | private int subnormalMemoizedSerializedSize; | ||
191 | private pbc::PopsicleList<float> subnormal_ = new pbc::PopsicleList<float>(); | ||
192 | public scg::IList<float> SubnormalList { | ||
193 | get { return pbc::Lists.AsReadOnly(subnormal_); } | ||
194 | } | ||
195 | public int SubnormalCount { | ||
196 | get { return subnormal_.Count; } | ||
197 | } | ||
198 | public float GetSubnormal(int index) { | ||
199 | return subnormal_[index]; | ||
200 | } | ||
201 | |||
202 | public override bool IsInitialized { | ||
203 | get { | ||
204 | return true; | ||
205 | } | ||
206 | } | ||
207 | |||
208 | public override void WriteTo(pb::CodedOutputStream output) { | ||
209 | if (HasSubuuid) { | ||
210 | output.WriteBytes(1, Subuuid); | ||
211 | } | ||
212 | if (subvector_.Count > 0) { | ||
213 | output.WriteRawVarint32(18); | ||
214 | output.WriteRawVarint32((uint) subvectorMemoizedSerializedSize); | ||
215 | foreach (double element in subvector_) { | ||
216 | output.WriteDoubleNoTag(element); | ||
217 | } | ||
218 | } | ||
219 | if (HasSubduration) { | ||
220 | output.WriteSFixed64(3, Subduration); | ||
221 | } | ||
222 | if (subnormal_.Count > 0) { | ||
223 | output.WriteRawVarint32(34); | ||
224 | output.WriteRawVarint32((uint) subnormalMemoizedSerializedSize); | ||
225 | foreach (float element in subnormal_) { | ||
226 | output.WriteFloatNoTag(element); | ||
227 | } | ||
228 | } | ||
229 | UnknownFields.WriteTo(output); | ||
230 | } | ||
231 | |||
232 | private int memoizedSerializedSize = -1; | ||
233 | public override int SerializedSize { | ||
234 | get { | ||
235 | int size = memoizedSerializedSize; | ||
236 | if (size != -1) return size; | ||
237 | |||
238 | size = 0; | ||
239 | if (HasSubuuid) { | ||
240 | size += pb::CodedOutputStream.ComputeBytesSize(1, Subuuid); | ||
241 | } | ||
242 | { | ||
243 | int dataSize = 0; | ||
244 | dataSize = 8 * subvector_.Count; | ||
245 | size += dataSize; | ||
246 | if (subvector_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
247 | subvectorMemoizedSerializedSize = dataSize; | ||
248 | } | ||
249 | if (HasSubduration) { | ||
250 | size += pb::CodedOutputStream.ComputeSFixed64Size(3, Subduration); | ||
251 | } | ||
252 | { | ||
253 | int dataSize = 0; | ||
254 | dataSize = 4 * subnormal_.Count; | ||
255 | size += dataSize; | ||
256 | if (subnormal_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
257 | subnormalMemoizedSerializedSize = dataSize; | ||
258 | } | ||
259 | size += UnknownFields.SerializedSize; | ||
260 | memoizedSerializedSize = size; | ||
261 | return size; | ||
262 | } | ||
263 | } | ||
264 | |||
265 | public static SubMessage ParseFrom(pb::ByteString data) { | ||
266 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
267 | } | ||
268 | public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
269 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
270 | } | ||
271 | public static SubMessage ParseFrom(byte[] data) { | ||
272 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
273 | } | ||
274 | public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
275 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
276 | } | ||
277 | public static SubMessage ParseFrom(global::System.IO.Stream input) { | ||
278 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
279 | } | ||
280 | public static SubMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
281 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
282 | } | ||
283 | public static SubMessage ParseDelimitedFrom(global::System.IO.Stream input) { | ||
284 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
285 | } | ||
286 | public static SubMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
287 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
288 | } | ||
289 | public static SubMessage ParseFrom(pb::CodedInputStream input) { | ||
290 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
291 | } | ||
292 | public static SubMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
293 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
294 | } | ||
295 | public static Builder CreateBuilder() { return new Builder(); } | ||
296 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
297 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
298 | public static Builder CreateBuilder(SubMessage prototype) { | ||
299 | return (Builder) new Builder().MergeFrom(prototype); | ||
300 | } | ||
301 | |||
302 | public sealed partial class Builder : pb::GeneratedBuilder<SubMessage, Builder> { | ||
303 | protected override Builder ThisBuilder { | ||
304 | get { return this; } | ||
305 | } | ||
306 | public Builder() {} | ||
307 | |||
308 | SubMessage result = new SubMessage(); | ||
309 | |||
310 | protected override SubMessage MessageBeingBuilt { | ||
311 | get { return result; } | ||
312 | } | ||
313 | |||
314 | public override Builder Clear() { | ||
315 | result = new SubMessage(); | ||
316 | return this; | ||
317 | } | ||
318 | |||
319 | public override Builder Clone() { | ||
320 | return new Builder().MergeFrom(result); | ||
321 | } | ||
322 | |||
323 | public override pbd::MessageDescriptor DescriptorForType { | ||
324 | get { return global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Descriptor; } | ||
325 | } | ||
326 | |||
327 | public override SubMessage DefaultInstanceForType { | ||
328 | get { return global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance; } | ||
329 | } | ||
330 | |||
331 | public override SubMessage BuildPartial() { | ||
332 | if (result == null) { | ||
333 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
334 | } | ||
335 | result.subvector_.MakeReadOnly(); | ||
336 | result.subnormal_.MakeReadOnly(); | ||
337 | SubMessage returnMe = result; | ||
338 | result = null; | ||
339 | return returnMe; | ||
340 | } | ||
341 | |||
342 | public override Builder MergeFrom(pb::IMessage other) { | ||
343 | if (other is SubMessage) { | ||
344 | return MergeFrom((SubMessage) other); | ||
345 | } else { | ||
346 | base.MergeFrom(other); | ||
347 | return this; | ||
348 | } | ||
349 | } | ||
350 | |||
351 | public override Builder MergeFrom(SubMessage other) { | ||
352 | if (other == global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance) return this; | ||
353 | if (other.HasSubuuid) { | ||
354 | Subuuid = other.Subuuid; | ||
355 | } | ||
356 | if (other.subvector_.Count != 0) { | ||
357 | base.AddRange(other.subvector_, result.subvector_); | ||
358 | } | ||
359 | if (other.HasSubduration) { | ||
360 | Subduration = other.Subduration; | ||
361 | } | ||
362 | if (other.subnormal_.Count != 0) { | ||
363 | base.AddRange(other.subnormal_, result.subnormal_); | ||
364 | } | ||
365 | this.MergeUnknownFields(other.UnknownFields); | ||
366 | return this; | ||
367 | } | ||
368 | |||
369 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
370 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
371 | } | ||
372 | |||
373 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
374 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
375 | while (true) { | ||
376 | uint tag = input.ReadTag(); | ||
377 | switch (tag) { | ||
378 | case 0: { | ||
379 | if (unknownFields != null) { | ||
380 | this.UnknownFields = unknownFields.Build(); | ||
381 | } | ||
382 | return this; | ||
383 | } | ||
384 | default: { | ||
385 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
386 | if (unknownFields != null) { | ||
387 | this.UnknownFields = unknownFields.Build(); | ||
388 | } | ||
389 | return this; | ||
390 | } | ||
391 | if (unknownFields == null) { | ||
392 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
393 | } | ||
394 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
395 | break; | ||
396 | } | ||
397 | case 10: { | ||
398 | Subuuid = input.ReadBytes(); | ||
399 | break; | ||
400 | } | ||
401 | case 18: { | ||
402 | int length = input.ReadInt32(); | ||
403 | int limit = input.PushLimit(length); | ||
404 | while (!input.ReachedLimit) { | ||
405 | AddSubvector(input.ReadDouble()); | ||
406 | } | ||
407 | input.PopLimit(limit); | ||
408 | break; | ||
409 | } | ||
410 | case 25: { | ||
411 | Subduration = input.ReadSFixed64(); | ||
412 | break; | ||
413 | } | ||
414 | case 34: { | ||
415 | int length = input.ReadInt32(); | ||
416 | int limit = input.PushLimit(length); | ||
417 | while (!input.ReachedLimit) { | ||
418 | AddSubnormal(input.ReadFloat()); | ||
419 | } | ||
420 | input.PopLimit(limit); | ||
421 | break; | ||
422 | } | ||
423 | } | ||
424 | } | ||
425 | } | ||
426 | |||
427 | |||
428 | public bool HasSubuuid { | ||
429 | get { return result.HasSubuuid; } | ||
430 | } | ||
431 | public pb::ByteString Subuuid { | ||
432 | get { return result.Subuuid; } | ||
433 | set { SetSubuuid(value); } | ||
434 | } | ||
435 | public Builder SetSubuuid(pb::ByteString value) { | ||
436 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
437 | result.hasSubuuid = true; | ||
438 | result.subuuid_ = value; | ||
439 | return this; | ||
440 | } | ||
441 | public Builder ClearSubuuid() { | ||
442 | result.hasSubuuid = false; | ||
443 | result.subuuid_ = pb::ByteString.Empty; | ||
444 | return this; | ||
445 | } | ||
446 | |||
447 | public pbc::IPopsicleList<double> SubvectorList { | ||
448 | get { return result.subvector_; } | ||
449 | } | ||
450 | public int SubvectorCount { | ||
451 | get { return result.SubvectorCount; } | ||
452 | } | ||
453 | public double GetSubvector(int index) { | ||
454 | return result.GetSubvector(index); | ||
455 | } | ||
456 | public Builder SetSubvector(int index, double value) { | ||
457 | result.subvector_[index] = value; | ||
458 | return this; | ||
459 | } | ||
460 | public Builder AddSubvector(double value) { | ||
461 | result.subvector_.Add(value); | ||
462 | return this; | ||
463 | } | ||
464 | public Builder AddRangeSubvector(scg::IEnumerable<double> values) { | ||
465 | base.AddRange(values, result.subvector_); | ||
466 | return this; | ||
467 | } | ||
468 | public Builder ClearSubvector() { | ||
469 | result.subvector_.Clear(); | ||
470 | return this; | ||
471 | } | ||
472 | |||
473 | public bool HasSubduration { | ||
474 | get { return result.HasSubduration; } | ||
475 | } | ||
476 | public long Subduration { | ||
477 | get { return result.Subduration; } | ||
478 | set { SetSubduration(value); } | ||
479 | } | ||
480 | public Builder SetSubduration(long value) { | ||
481 | result.hasSubduration = true; | ||
482 | result.subduration_ = value; | ||
483 | return this; | ||
484 | } | ||
485 | public Builder ClearSubduration() { | ||
486 | result.hasSubduration = false; | ||
487 | result.subduration_ = 0; | ||
488 | return this; | ||
489 | } | ||
490 | |||
491 | public pbc::IPopsicleList<float> SubnormalList { | ||
492 | get { return result.subnormal_; } | ||
493 | } | ||
494 | public int SubnormalCount { | ||
495 | get { return result.SubnormalCount; } | ||
496 | } | ||
497 | public float GetSubnormal(int index) { | ||
498 | return result.GetSubnormal(index); | ||
499 | } | ||
500 | public Builder SetSubnormal(int index, float value) { | ||
501 | result.subnormal_[index] = value; | ||
502 | return this; | ||
503 | } | ||
504 | public Builder AddSubnormal(float value) { | ||
505 | result.subnormal_.Add(value); | ||
506 | return this; | ||
507 | } | ||
508 | public Builder AddRangeSubnormal(scg::IEnumerable<float> values) { | ||
509 | base.AddRange(values, result.subnormal_); | ||
510 | return this; | ||
511 | } | ||
512 | public Builder ClearSubnormal() { | ||
513 | result.subnormal_.Clear(); | ||
514 | return this; | ||
515 | } | ||
516 | } | ||
517 | static SubMessage() { | ||
518 | object.ReferenceEquals(global::Sirikata.PB._PBJ_Internal.Test.Descriptor, null); | ||
519 | } | ||
520 | } | ||
521 | |||
522 | } | ||
523 | #endregion | ||
524 | |||
525 | public const int IsTrueFieldNumber = 40; | ||
526 | private bool hasIsTrue; | ||
527 | private bool isTrue_ = true; | ||
528 | public bool HasIsTrue { | ||
529 | get { return hasIsTrue; } | ||
530 | } | ||
531 | public bool IsTrue { | ||
532 | get { return isTrue_; } | ||
533 | } | ||
534 | |||
535 | public const int V2FFieldNumber = 2; | ||
536 | private int v2FMemoizedSerializedSize; | ||
537 | private pbc::PopsicleList<float> v2F_ = new pbc::PopsicleList<float>(); | ||
538 | public scg::IList<float> V2FList { | ||
539 | get { return pbc::Lists.AsReadOnly(v2F_); } | ||
540 | } | ||
541 | public int V2FCount { | ||
542 | get { return v2F_.Count; } | ||
543 | } | ||
544 | public float GetV2F(int index) { | ||
545 | return v2F_[index]; | ||
546 | } | ||
547 | |||
548 | public const int SubMesFieldNumber = 30; | ||
549 | private bool hasSubMes; | ||
550 | private global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage subMes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance; | ||
551 | public bool HasSubMes { | ||
552 | get { return hasSubMes; } | ||
553 | } | ||
554 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage SubMes { | ||
555 | get { return subMes_; } | ||
556 | } | ||
557 | |||
558 | public const int SubmessersFieldNumber = 31; | ||
559 | private pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage> submessers_ = new pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage>(); | ||
560 | public scg::IList<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage> SubmessersList { | ||
561 | get { return submessers_; } | ||
562 | } | ||
563 | public int SubmessersCount { | ||
564 | get { return submessers_.Count; } | ||
565 | } | ||
566 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage GetSubmessers(int index) { | ||
567 | return submessers_[index]; | ||
568 | } | ||
569 | |||
570 | public const int ShaFieldNumber = 32; | ||
571 | private bool hasSha; | ||
572 | private pb::ByteString sha_ = pb::ByteString.Empty; | ||
573 | public bool HasSha { | ||
574 | get { return hasSha; } | ||
575 | } | ||
576 | public pb::ByteString Sha { | ||
577 | get { return sha_; } | ||
578 | } | ||
579 | |||
580 | public const int ShasFieldNumber = 33; | ||
581 | private pbc::PopsicleList<pb::ByteString> shas_ = new pbc::PopsicleList<pb::ByteString>(); | ||
582 | public scg::IList<pb::ByteString> ShasList { | ||
583 | get { return pbc::Lists.AsReadOnly(shas_); } | ||
584 | } | ||
585 | public int ShasCount { | ||
586 | get { return shas_.Count; } | ||
587 | } | ||
588 | public pb::ByteString GetShas(int index) { | ||
589 | return shas_[index]; | ||
590 | } | ||
591 | |||
592 | public const int V3FFieldNumber = 4; | ||
593 | private int v3FMemoizedSerializedSize; | ||
594 | private pbc::PopsicleList<float> v3F_ = new pbc::PopsicleList<float>(); | ||
595 | public scg::IList<float> V3FList { | ||
596 | get { return pbc::Lists.AsReadOnly(v3F_); } | ||
597 | } | ||
598 | public int V3FCount { | ||
599 | get { return v3F_.Count; } | ||
600 | } | ||
601 | public float GetV3F(int index) { | ||
602 | return v3F_[index]; | ||
603 | } | ||
604 | |||
605 | public const int V3FfFieldNumber = 5; | ||
606 | private int v3FfMemoizedSerializedSize; | ||
607 | private pbc::PopsicleList<float> v3Ff_ = new pbc::PopsicleList<float>(); | ||
608 | public scg::IList<float> V3FfList { | ||
609 | get { return pbc::Lists.AsReadOnly(v3Ff_); } | ||
610 | } | ||
611 | public int V3FfCount { | ||
612 | get { return v3Ff_.Count; } | ||
613 | } | ||
614 | public float GetV3Ff(int index) { | ||
615 | return v3Ff_[index]; | ||
616 | } | ||
617 | |||
618 | public override bool IsInitialized { | ||
619 | get { | ||
620 | return true; | ||
621 | } | ||
622 | } | ||
623 | |||
624 | public override void WriteTo(pb::CodedOutputStream output) { | ||
625 | if (v2F_.Count > 0) { | ||
626 | output.WriteRawVarint32(18); | ||
627 | output.WriteRawVarint32((uint) v2FMemoizedSerializedSize); | ||
628 | foreach (float element in v2F_) { | ||
629 | output.WriteFloatNoTag(element); | ||
630 | } | ||
631 | } | ||
632 | if (v3F_.Count > 0) { | ||
633 | output.WriteRawVarint32(34); | ||
634 | output.WriteRawVarint32((uint) v3FMemoizedSerializedSize); | ||
635 | foreach (float element in v3F_) { | ||
636 | output.WriteFloatNoTag(element); | ||
637 | } | ||
638 | } | ||
639 | if (v3Ff_.Count > 0) { | ||
640 | output.WriteRawVarint32(42); | ||
641 | output.WriteRawVarint32((uint) v3FfMemoizedSerializedSize); | ||
642 | foreach (float element in v3Ff_) { | ||
643 | output.WriteFloatNoTag(element); | ||
644 | } | ||
645 | } | ||
646 | if (HasSubMes) { | ||
647 | output.WriteMessage(30, SubMes); | ||
648 | } | ||
649 | foreach (global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage element in SubmessersList) { | ||
650 | output.WriteMessage(31, element); | ||
651 | } | ||
652 | if (HasSha) { | ||
653 | output.WriteBytes(32, Sha); | ||
654 | } | ||
655 | if (shas_.Count > 0) { | ||
656 | foreach (pb::ByteString element in shas_) { | ||
657 | output.WriteBytes(33, element); | ||
658 | } | ||
659 | } | ||
660 | if (HasIsTrue) { | ||
661 | output.WriteBool(40, IsTrue); | ||
662 | } | ||
663 | UnknownFields.WriteTo(output); | ||
664 | } | ||
665 | |||
666 | private int memoizedSerializedSize = -1; | ||
667 | public override int SerializedSize { | ||
668 | get { | ||
669 | int size = memoizedSerializedSize; | ||
670 | if (size != -1) return size; | ||
671 | |||
672 | size = 0; | ||
673 | if (HasIsTrue) { | ||
674 | size += pb::CodedOutputStream.ComputeBoolSize(40, IsTrue); | ||
675 | } | ||
676 | { | ||
677 | int dataSize = 0; | ||
678 | dataSize = 4 * v2F_.Count; | ||
679 | size += dataSize; | ||
680 | if (v2F_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
681 | v2FMemoizedSerializedSize = dataSize; | ||
682 | } | ||
683 | if (HasSubMes) { | ||
684 | size += pb::CodedOutputStream.ComputeMessageSize(30, SubMes); | ||
685 | } | ||
686 | foreach (global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage element in SubmessersList) { | ||
687 | size += pb::CodedOutputStream.ComputeMessageSize(31, element); | ||
688 | } | ||
689 | if (HasSha) { | ||
690 | size += pb::CodedOutputStream.ComputeBytesSize(32, Sha); | ||
691 | } | ||
692 | { | ||
693 | int dataSize = 0; | ||
694 | foreach (pb::ByteString element in ShasList) { | ||
695 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); | ||
696 | } | ||
697 | size += dataSize; | ||
698 | size += 2 * shas_.Count; | ||
699 | } | ||
700 | { | ||
701 | int dataSize = 0; | ||
702 | dataSize = 4 * v3F_.Count; | ||
703 | size += dataSize; | ||
704 | if (v3F_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
705 | v3FMemoizedSerializedSize = dataSize; | ||
706 | } | ||
707 | { | ||
708 | int dataSize = 0; | ||
709 | dataSize = 4 * v3Ff_.Count; | ||
710 | size += dataSize; | ||
711 | if (v3Ff_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
712 | v3FfMemoizedSerializedSize = dataSize; | ||
713 | } | ||
714 | size += UnknownFields.SerializedSize; | ||
715 | memoizedSerializedSize = size; | ||
716 | return size; | ||
717 | } | ||
718 | } | ||
719 | |||
720 | public static ExternalMessage ParseFrom(pb::ByteString data) { | ||
721 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
722 | } | ||
723 | public static ExternalMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
724 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
725 | } | ||
726 | public static ExternalMessage ParseFrom(byte[] data) { | ||
727 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
728 | } | ||
729 | public static ExternalMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
730 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
731 | } | ||
732 | public static ExternalMessage ParseFrom(global::System.IO.Stream input) { | ||
733 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
734 | } | ||
735 | public static ExternalMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
736 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
737 | } | ||
738 | public static ExternalMessage ParseDelimitedFrom(global::System.IO.Stream input) { | ||
739 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
740 | } | ||
741 | public static ExternalMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
742 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
743 | } | ||
744 | public static ExternalMessage ParseFrom(pb::CodedInputStream input) { | ||
745 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
746 | } | ||
747 | public static ExternalMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
748 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
749 | } | ||
750 | public static Builder CreateBuilder() { return new Builder(); } | ||
751 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
752 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
753 | public static Builder CreateBuilder(ExternalMessage prototype) { | ||
754 | return (Builder) new Builder().MergeFrom(prototype); | ||
755 | } | ||
756 | |||
757 | public sealed partial class Builder : pb::GeneratedBuilder<ExternalMessage, Builder> { | ||
758 | protected override Builder ThisBuilder { | ||
759 | get { return this; } | ||
760 | } | ||
761 | public Builder() {} | ||
762 | |||
763 | ExternalMessage result = new ExternalMessage(); | ||
764 | |||
765 | protected override ExternalMessage MessageBeingBuilt { | ||
766 | get { return result; } | ||
767 | } | ||
768 | |||
769 | public override Builder Clear() { | ||
770 | result = new ExternalMessage(); | ||
771 | return this; | ||
772 | } | ||
773 | |||
774 | public override Builder Clone() { | ||
775 | return new Builder().MergeFrom(result); | ||
776 | } | ||
777 | |||
778 | public override pbd::MessageDescriptor DescriptorForType { | ||
779 | get { return global::Sirikata.PB._PBJ_Internal.ExternalMessage.Descriptor; } | ||
780 | } | ||
781 | |||
782 | public override ExternalMessage DefaultInstanceForType { | ||
783 | get { return global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance; } | ||
784 | } | ||
785 | |||
786 | public override ExternalMessage BuildPartial() { | ||
787 | if (result == null) { | ||
788 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
789 | } | ||
790 | result.v2F_.MakeReadOnly(); | ||
791 | result.submessers_.MakeReadOnly(); | ||
792 | result.shas_.MakeReadOnly(); | ||
793 | result.v3F_.MakeReadOnly(); | ||
794 | result.v3Ff_.MakeReadOnly(); | ||
795 | ExternalMessage returnMe = result; | ||
796 | result = null; | ||
797 | return returnMe; | ||
798 | } | ||
799 | |||
800 | public override Builder MergeFrom(pb::IMessage other) { | ||
801 | if (other is ExternalMessage) { | ||
802 | return MergeFrom((ExternalMessage) other); | ||
803 | } else { | ||
804 | base.MergeFrom(other); | ||
805 | return this; | ||
806 | } | ||
807 | } | ||
808 | |||
809 | public override Builder MergeFrom(ExternalMessage other) { | ||
810 | if (other == global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance) return this; | ||
811 | if (other.HasIsTrue) { | ||
812 | IsTrue = other.IsTrue; | ||
813 | } | ||
814 | if (other.v2F_.Count != 0) { | ||
815 | base.AddRange(other.v2F_, result.v2F_); | ||
816 | } | ||
817 | if (other.HasSubMes) { | ||
818 | MergeSubMes(other.SubMes); | ||
819 | } | ||
820 | if (other.submessers_.Count != 0) { | ||
821 | base.AddRange(other.submessers_, result.submessers_); | ||
822 | } | ||
823 | if (other.HasSha) { | ||
824 | Sha = other.Sha; | ||
825 | } | ||
826 | if (other.shas_.Count != 0) { | ||
827 | base.AddRange(other.shas_, result.shas_); | ||
828 | } | ||
829 | if (other.v3F_.Count != 0) { | ||
830 | base.AddRange(other.v3F_, result.v3F_); | ||
831 | } | ||
832 | if (other.v3Ff_.Count != 0) { | ||
833 | base.AddRange(other.v3Ff_, result.v3Ff_); | ||
834 | } | ||
835 | this.MergeUnknownFields(other.UnknownFields); | ||
836 | return this; | ||
837 | } | ||
838 | |||
839 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
840 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
841 | } | ||
842 | |||
843 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
844 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
845 | while (true) { | ||
846 | uint tag = input.ReadTag(); | ||
847 | switch (tag) { | ||
848 | case 0: { | ||
849 | if (unknownFields != null) { | ||
850 | this.UnknownFields = unknownFields.Build(); | ||
851 | } | ||
852 | return this; | ||
853 | } | ||
854 | default: { | ||
855 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
856 | if (unknownFields != null) { | ||
857 | this.UnknownFields = unknownFields.Build(); | ||
858 | } | ||
859 | return this; | ||
860 | } | ||
861 | if (unknownFields == null) { | ||
862 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
863 | } | ||
864 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
865 | break; | ||
866 | } | ||
867 | case 18: { | ||
868 | int length = input.ReadInt32(); | ||
869 | int limit = input.PushLimit(length); | ||
870 | while (!input.ReachedLimit) { | ||
871 | AddV2F(input.ReadFloat()); | ||
872 | } | ||
873 | input.PopLimit(limit); | ||
874 | break; | ||
875 | } | ||
876 | case 34: { | ||
877 | int length = input.ReadInt32(); | ||
878 | int limit = input.PushLimit(length); | ||
879 | while (!input.ReachedLimit) { | ||
880 | AddV3F(input.ReadFloat()); | ||
881 | } | ||
882 | input.PopLimit(limit); | ||
883 | break; | ||
884 | } | ||
885 | case 42: { | ||
886 | int length = input.ReadInt32(); | ||
887 | int limit = input.PushLimit(length); | ||
888 | while (!input.ReachedLimit) { | ||
889 | AddV3Ff(input.ReadFloat()); | ||
890 | } | ||
891 | input.PopLimit(limit); | ||
892 | break; | ||
893 | } | ||
894 | case 242: { | ||
895 | global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.CreateBuilder(); | ||
896 | if (HasSubMes) { | ||
897 | subBuilder.MergeFrom(SubMes); | ||
898 | } | ||
899 | input.ReadMessage(subBuilder, extensionRegistry); | ||
900 | SubMes = subBuilder.BuildPartial(); | ||
901 | break; | ||
902 | } | ||
903 | case 250: { | ||
904 | global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.CreateBuilder(); | ||
905 | input.ReadMessage(subBuilder, extensionRegistry); | ||
906 | AddSubmessers(subBuilder.BuildPartial()); | ||
907 | break; | ||
908 | } | ||
909 | case 258: { | ||
910 | Sha = input.ReadBytes(); | ||
911 | break; | ||
912 | } | ||
913 | case 266: { | ||
914 | AddShas(input.ReadBytes()); | ||
915 | break; | ||
916 | } | ||
917 | case 320: { | ||
918 | IsTrue = input.ReadBool(); | ||
919 | break; | ||
920 | } | ||
921 | } | ||
922 | } | ||
923 | } | ||
924 | |||
925 | |||
926 | public bool HasIsTrue { | ||
927 | get { return result.HasIsTrue; } | ||
928 | } | ||
929 | public bool IsTrue { | ||
930 | get { return result.IsTrue; } | ||
931 | set { SetIsTrue(value); } | ||
932 | } | ||
933 | public Builder SetIsTrue(bool value) { | ||
934 | result.hasIsTrue = true; | ||
935 | result.isTrue_ = value; | ||
936 | return this; | ||
937 | } | ||
938 | public Builder ClearIsTrue() { | ||
939 | result.hasIsTrue = false; | ||
940 | result.isTrue_ = true; | ||
941 | return this; | ||
942 | } | ||
943 | |||
944 | public pbc::IPopsicleList<float> V2FList { | ||
945 | get { return result.v2F_; } | ||
946 | } | ||
947 | public int V2FCount { | ||
948 | get { return result.V2FCount; } | ||
949 | } | ||
950 | public float GetV2F(int index) { | ||
951 | return result.GetV2F(index); | ||
952 | } | ||
953 | public Builder SetV2F(int index, float value) { | ||
954 | result.v2F_[index] = value; | ||
955 | return this; | ||
956 | } | ||
957 | public Builder AddV2F(float value) { | ||
958 | result.v2F_.Add(value); | ||
959 | return this; | ||
960 | } | ||
961 | public Builder AddRangeV2F(scg::IEnumerable<float> values) { | ||
962 | base.AddRange(values, result.v2F_); | ||
963 | return this; | ||
964 | } | ||
965 | public Builder ClearV2F() { | ||
966 | result.v2F_.Clear(); | ||
967 | return this; | ||
968 | } | ||
969 | |||
970 | public bool HasSubMes { | ||
971 | get { return result.HasSubMes; } | ||
972 | } | ||
973 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage SubMes { | ||
974 | get { return result.SubMes; } | ||
975 | set { SetSubMes(value); } | ||
976 | } | ||
977 | public Builder SetSubMes(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage value) { | ||
978 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
979 | result.hasSubMes = true; | ||
980 | result.subMes_ = value; | ||
981 | return this; | ||
982 | } | ||
983 | public Builder SetSubMes(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder builderForValue) { | ||
984 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
985 | result.hasSubMes = true; | ||
986 | result.subMes_ = builderForValue.Build(); | ||
987 | return this; | ||
988 | } | ||
989 | public Builder MergeSubMes(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage value) { | ||
990 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
991 | if (result.HasSubMes && | ||
992 | result.subMes_ != global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance) { | ||
993 | result.subMes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.CreateBuilder(result.subMes_).MergeFrom(value).BuildPartial(); | ||
994 | } else { | ||
995 | result.subMes_ = value; | ||
996 | } | ||
997 | result.hasSubMes = true; | ||
998 | return this; | ||
999 | } | ||
1000 | public Builder ClearSubMes() { | ||
1001 | result.hasSubMes = false; | ||
1002 | result.subMes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance; | ||
1003 | return this; | ||
1004 | } | ||
1005 | |||
1006 | public pbc::IPopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage> SubmessersList { | ||
1007 | get { return result.submessers_; } | ||
1008 | } | ||
1009 | public int SubmessersCount { | ||
1010 | get { return result.SubmessersCount; } | ||
1011 | } | ||
1012 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage GetSubmessers(int index) { | ||
1013 | return result.GetSubmessers(index); | ||
1014 | } | ||
1015 | public Builder SetSubmessers(int index, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage value) { | ||
1016 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1017 | result.submessers_[index] = value; | ||
1018 | return this; | ||
1019 | } | ||
1020 | public Builder SetSubmessers(int index, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder builderForValue) { | ||
1021 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1022 | result.submessers_[index] = builderForValue.Build(); | ||
1023 | return this; | ||
1024 | } | ||
1025 | public Builder AddSubmessers(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage value) { | ||
1026 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1027 | result.submessers_.Add(value); | ||
1028 | return this; | ||
1029 | } | ||
1030 | public Builder AddSubmessers(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage.Builder builderForValue) { | ||
1031 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1032 | result.submessers_.Add(builderForValue.Build()); | ||
1033 | return this; | ||
1034 | } | ||
1035 | public Builder AddRangeSubmessers(scg::IEnumerable<global::Sirikata.PB._PBJ_Internal.ExternalMessage.Types.SubMessage> values) { | ||
1036 | base.AddRange(values, result.submessers_); | ||
1037 | return this; | ||
1038 | } | ||
1039 | public Builder ClearSubmessers() { | ||
1040 | result.submessers_.Clear(); | ||
1041 | return this; | ||
1042 | } | ||
1043 | |||
1044 | public bool HasSha { | ||
1045 | get { return result.HasSha; } | ||
1046 | } | ||
1047 | public pb::ByteString Sha { | ||
1048 | get { return result.Sha; } | ||
1049 | set { SetSha(value); } | ||
1050 | } | ||
1051 | public Builder SetSha(pb::ByteString value) { | ||
1052 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1053 | result.hasSha = true; | ||
1054 | result.sha_ = value; | ||
1055 | return this; | ||
1056 | } | ||
1057 | public Builder ClearSha() { | ||
1058 | result.hasSha = false; | ||
1059 | result.sha_ = pb::ByteString.Empty; | ||
1060 | return this; | ||
1061 | } | ||
1062 | |||
1063 | public pbc::IPopsicleList<pb::ByteString> ShasList { | ||
1064 | get { return result.shas_; } | ||
1065 | } | ||
1066 | public int ShasCount { | ||
1067 | get { return result.ShasCount; } | ||
1068 | } | ||
1069 | public pb::ByteString GetShas(int index) { | ||
1070 | return result.GetShas(index); | ||
1071 | } | ||
1072 | public Builder SetShas(int index, pb::ByteString value) { | ||
1073 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1074 | result.shas_[index] = value; | ||
1075 | return this; | ||
1076 | } | ||
1077 | public Builder AddShas(pb::ByteString value) { | ||
1078 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1079 | result.shas_.Add(value); | ||
1080 | return this; | ||
1081 | } | ||
1082 | public Builder AddRangeShas(scg::IEnumerable<pb::ByteString> values) { | ||
1083 | base.AddRange(values, result.shas_); | ||
1084 | return this; | ||
1085 | } | ||
1086 | public Builder ClearShas() { | ||
1087 | result.shas_.Clear(); | ||
1088 | return this; | ||
1089 | } | ||
1090 | |||
1091 | public pbc::IPopsicleList<float> V3FList { | ||
1092 | get { return result.v3F_; } | ||
1093 | } | ||
1094 | public int V3FCount { | ||
1095 | get { return result.V3FCount; } | ||
1096 | } | ||
1097 | public float GetV3F(int index) { | ||
1098 | return result.GetV3F(index); | ||
1099 | } | ||
1100 | public Builder SetV3F(int index, float value) { | ||
1101 | result.v3F_[index] = value; | ||
1102 | return this; | ||
1103 | } | ||
1104 | public Builder AddV3F(float value) { | ||
1105 | result.v3F_.Add(value); | ||
1106 | return this; | ||
1107 | } | ||
1108 | public Builder AddRangeV3F(scg::IEnumerable<float> values) { | ||
1109 | base.AddRange(values, result.v3F_); | ||
1110 | return this; | ||
1111 | } | ||
1112 | public Builder ClearV3F() { | ||
1113 | result.v3F_.Clear(); | ||
1114 | return this; | ||
1115 | } | ||
1116 | |||
1117 | public pbc::IPopsicleList<float> V3FfList { | ||
1118 | get { return result.v3Ff_; } | ||
1119 | } | ||
1120 | public int V3FfCount { | ||
1121 | get { return result.V3FfCount; } | ||
1122 | } | ||
1123 | public float GetV3Ff(int index) { | ||
1124 | return result.GetV3Ff(index); | ||
1125 | } | ||
1126 | public Builder SetV3Ff(int index, float value) { | ||
1127 | result.v3Ff_[index] = value; | ||
1128 | return this; | ||
1129 | } | ||
1130 | public Builder AddV3Ff(float value) { | ||
1131 | result.v3Ff_.Add(value); | ||
1132 | return this; | ||
1133 | } | ||
1134 | public Builder AddRangeV3Ff(scg::IEnumerable<float> values) { | ||
1135 | base.AddRange(values, result.v3Ff_); | ||
1136 | return this; | ||
1137 | } | ||
1138 | public Builder ClearV3Ff() { | ||
1139 | result.v3Ff_.Clear(); | ||
1140 | return this; | ||
1141 | } | ||
1142 | } | ||
1143 | static ExternalMessage() { | ||
1144 | object.ReferenceEquals(global::Sirikata.PB._PBJ_Internal.Test.Descriptor, null); | ||
1145 | } | ||
1146 | } | ||
1147 | |||
1148 | public sealed partial class TestMessage : pb::ExtendableMessage<TestMessage, TestMessage.Builder> { | ||
1149 | private static readonly TestMessage defaultInstance = new Builder().BuildPartial(); | ||
1150 | public static TestMessage DefaultInstance { | ||
1151 | get { return defaultInstance; } | ||
1152 | } | ||
1153 | |||
1154 | public override TestMessage DefaultInstanceForType { | ||
1155 | get { return defaultInstance; } | ||
1156 | } | ||
1157 | |||
1158 | protected override TestMessage ThisMessage { | ||
1159 | get { return this; } | ||
1160 | } | ||
1161 | |||
1162 | public static pbd::MessageDescriptor Descriptor { | ||
1163 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_TestMessage__Descriptor; } | ||
1164 | } | ||
1165 | |||
1166 | protected override pb::FieldAccess.FieldAccessorTable<TestMessage, TestMessage.Builder> InternalFieldAccessors { | ||
1167 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_TestMessage__FieldAccessorTable; } | ||
1168 | } | ||
1169 | |||
1170 | #region Nested types | ||
1171 | public static class Types { | ||
1172 | public enum Flagsf32 { | ||
1173 | UNIVERSA = 0, | ||
1174 | WE = 1, | ||
1175 | IMAGE = 2, | ||
1176 | LOCA = 3, | ||
1177 | } | ||
1178 | |||
1179 | public enum Flagsf64 { | ||
1180 | UNIVERSAL = 0, | ||
1181 | WEB = 1, | ||
1182 | IMAGES = 2, | ||
1183 | LOCAL = 3, | ||
1184 | } | ||
1185 | |||
1186 | public enum Enum32 { | ||
1187 | UNIVERSAL1 = 0, | ||
1188 | WEB1 = 1, | ||
1189 | IMAGES1 = 2, | ||
1190 | LOCAL1 = 3, | ||
1191 | } | ||
1192 | |||
1193 | public sealed partial class SubMessage : pb::GeneratedMessage<SubMessage, SubMessage.Builder> { | ||
1194 | private static readonly SubMessage defaultInstance = new Builder().BuildPartial(); | ||
1195 | public static SubMessage DefaultInstance { | ||
1196 | get { return defaultInstance; } | ||
1197 | } | ||
1198 | |||
1199 | public override SubMessage DefaultInstanceForType { | ||
1200 | get { return defaultInstance; } | ||
1201 | } | ||
1202 | |||
1203 | protected override SubMessage ThisMessage { | ||
1204 | get { return this; } | ||
1205 | } | ||
1206 | |||
1207 | public static pbd::MessageDescriptor Descriptor { | ||
1208 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__Descriptor; } | ||
1209 | } | ||
1210 | |||
1211 | protected override pb::FieldAccess.FieldAccessorTable<SubMessage, SubMessage.Builder> InternalFieldAccessors { | ||
1212 | get { return global::Sirikata.PB._PBJ_Internal.Test.internal__static_Sirikata_PB__PBJ_Internal_TestMessage_SubMessage__FieldAccessorTable; } | ||
1213 | } | ||
1214 | |||
1215 | public const int SubuuidFieldNumber = 1; | ||
1216 | private bool hasSubuuid; | ||
1217 | private pb::ByteString subuuid_ = pb::ByteString.Empty; | ||
1218 | public bool HasSubuuid { | ||
1219 | get { return hasSubuuid; } | ||
1220 | } | ||
1221 | public pb::ByteString Subuuid { | ||
1222 | get { return subuuid_; } | ||
1223 | } | ||
1224 | |||
1225 | public const int SubvectorFieldNumber = 2; | ||
1226 | private int subvectorMemoizedSerializedSize; | ||
1227 | private pbc::PopsicleList<double> subvector_ = new pbc::PopsicleList<double>(); | ||
1228 | public scg::IList<double> SubvectorList { | ||
1229 | get { return pbc::Lists.AsReadOnly(subvector_); } | ||
1230 | } | ||
1231 | public int SubvectorCount { | ||
1232 | get { return subvector_.Count; } | ||
1233 | } | ||
1234 | public double GetSubvector(int index) { | ||
1235 | return subvector_[index]; | ||
1236 | } | ||
1237 | |||
1238 | public const int SubdurationFieldNumber = 3; | ||
1239 | private bool hasSubduration; | ||
1240 | private long subduration_ = 0; | ||
1241 | public bool HasSubduration { | ||
1242 | get { return hasSubduration; } | ||
1243 | } | ||
1244 | public long Subduration { | ||
1245 | get { return subduration_; } | ||
1246 | } | ||
1247 | |||
1248 | public const int SubnormalFieldNumber = 4; | ||
1249 | private int subnormalMemoizedSerializedSize; | ||
1250 | private pbc::PopsicleList<float> subnormal_ = new pbc::PopsicleList<float>(); | ||
1251 | public scg::IList<float> SubnormalList { | ||
1252 | get { return pbc::Lists.AsReadOnly(subnormal_); } | ||
1253 | } | ||
1254 | public int SubnormalCount { | ||
1255 | get { return subnormal_.Count; } | ||
1256 | } | ||
1257 | public float GetSubnormal(int index) { | ||
1258 | return subnormal_[index]; | ||
1259 | } | ||
1260 | |||
1261 | public override bool IsInitialized { | ||
1262 | get { | ||
1263 | return true; | ||
1264 | } | ||
1265 | } | ||
1266 | |||
1267 | public override void WriteTo(pb::CodedOutputStream output) { | ||
1268 | if (HasSubuuid) { | ||
1269 | output.WriteBytes(1, Subuuid); | ||
1270 | } | ||
1271 | if (subvector_.Count > 0) { | ||
1272 | output.WriteRawVarint32(18); | ||
1273 | output.WriteRawVarint32((uint) subvectorMemoizedSerializedSize); | ||
1274 | foreach (double element in subvector_) { | ||
1275 | output.WriteDoubleNoTag(element); | ||
1276 | } | ||
1277 | } | ||
1278 | if (HasSubduration) { | ||
1279 | output.WriteSFixed64(3, Subduration); | ||
1280 | } | ||
1281 | if (subnormal_.Count > 0) { | ||
1282 | output.WriteRawVarint32(34); | ||
1283 | output.WriteRawVarint32((uint) subnormalMemoizedSerializedSize); | ||
1284 | foreach (float element in subnormal_) { | ||
1285 | output.WriteFloatNoTag(element); | ||
1286 | } | ||
1287 | } | ||
1288 | UnknownFields.WriteTo(output); | ||
1289 | } | ||
1290 | |||
1291 | private int memoizedSerializedSize = -1; | ||
1292 | public override int SerializedSize { | ||
1293 | get { | ||
1294 | int size = memoizedSerializedSize; | ||
1295 | if (size != -1) return size; | ||
1296 | |||
1297 | size = 0; | ||
1298 | if (HasSubuuid) { | ||
1299 | size += pb::CodedOutputStream.ComputeBytesSize(1, Subuuid); | ||
1300 | } | ||
1301 | { | ||
1302 | int dataSize = 0; | ||
1303 | dataSize = 8 * subvector_.Count; | ||
1304 | size += dataSize; | ||
1305 | if (subvector_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
1306 | subvectorMemoizedSerializedSize = dataSize; | ||
1307 | } | ||
1308 | if (HasSubduration) { | ||
1309 | size += pb::CodedOutputStream.ComputeSFixed64Size(3, Subduration); | ||
1310 | } | ||
1311 | { | ||
1312 | int dataSize = 0; | ||
1313 | dataSize = 4 * subnormal_.Count; | ||
1314 | size += dataSize; | ||
1315 | if (subnormal_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
1316 | subnormalMemoizedSerializedSize = dataSize; | ||
1317 | } | ||
1318 | size += UnknownFields.SerializedSize; | ||
1319 | memoizedSerializedSize = size; | ||
1320 | return size; | ||
1321 | } | ||
1322 | } | ||
1323 | |||
1324 | public static SubMessage ParseFrom(pb::ByteString data) { | ||
1325 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1326 | } | ||
1327 | public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
1328 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1329 | } | ||
1330 | public static SubMessage ParseFrom(byte[] data) { | ||
1331 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1332 | } | ||
1333 | public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
1334 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1335 | } | ||
1336 | public static SubMessage ParseFrom(global::System.IO.Stream input) { | ||
1337 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1338 | } | ||
1339 | public static SubMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1340 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1341 | } | ||
1342 | public static SubMessage ParseDelimitedFrom(global::System.IO.Stream input) { | ||
1343 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
1344 | } | ||
1345 | public static SubMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1346 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
1347 | } | ||
1348 | public static SubMessage ParseFrom(pb::CodedInputStream input) { | ||
1349 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1350 | } | ||
1351 | public static SubMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1352 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1353 | } | ||
1354 | public static Builder CreateBuilder() { return new Builder(); } | ||
1355 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
1356 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
1357 | public static Builder CreateBuilder(SubMessage prototype) { | ||
1358 | return (Builder) new Builder().MergeFrom(prototype); | ||
1359 | } | ||
1360 | |||
1361 | public sealed partial class Builder : pb::GeneratedBuilder<SubMessage, Builder> { | ||
1362 | protected override Builder ThisBuilder { | ||
1363 | get { return this; } | ||
1364 | } | ||
1365 | public Builder() {} | ||
1366 | |||
1367 | SubMessage result = new SubMessage(); | ||
1368 | |||
1369 | protected override SubMessage MessageBeingBuilt { | ||
1370 | get { return result; } | ||
1371 | } | ||
1372 | |||
1373 | public override Builder Clear() { | ||
1374 | result = new SubMessage(); | ||
1375 | return this; | ||
1376 | } | ||
1377 | |||
1378 | public override Builder Clone() { | ||
1379 | return new Builder().MergeFrom(result); | ||
1380 | } | ||
1381 | |||
1382 | public override pbd::MessageDescriptor DescriptorForType { | ||
1383 | get { return global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Descriptor; } | ||
1384 | } | ||
1385 | |||
1386 | public override SubMessage DefaultInstanceForType { | ||
1387 | get { return global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance; } | ||
1388 | } | ||
1389 | |||
1390 | public override SubMessage BuildPartial() { | ||
1391 | if (result == null) { | ||
1392 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
1393 | } | ||
1394 | result.subvector_.MakeReadOnly(); | ||
1395 | result.subnormal_.MakeReadOnly(); | ||
1396 | SubMessage returnMe = result; | ||
1397 | result = null; | ||
1398 | return returnMe; | ||
1399 | } | ||
1400 | |||
1401 | public override Builder MergeFrom(pb::IMessage other) { | ||
1402 | if (other is SubMessage) { | ||
1403 | return MergeFrom((SubMessage) other); | ||
1404 | } else { | ||
1405 | base.MergeFrom(other); | ||
1406 | return this; | ||
1407 | } | ||
1408 | } | ||
1409 | |||
1410 | public override Builder MergeFrom(SubMessage other) { | ||
1411 | if (other == global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance) return this; | ||
1412 | if (other.HasSubuuid) { | ||
1413 | Subuuid = other.Subuuid; | ||
1414 | } | ||
1415 | if (other.subvector_.Count != 0) { | ||
1416 | base.AddRange(other.subvector_, result.subvector_); | ||
1417 | } | ||
1418 | if (other.HasSubduration) { | ||
1419 | Subduration = other.Subduration; | ||
1420 | } | ||
1421 | if (other.subnormal_.Count != 0) { | ||
1422 | base.AddRange(other.subnormal_, result.subnormal_); | ||
1423 | } | ||
1424 | this.MergeUnknownFields(other.UnknownFields); | ||
1425 | return this; | ||
1426 | } | ||
1427 | |||
1428 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
1429 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
1430 | } | ||
1431 | |||
1432 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1433 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
1434 | while (true) { | ||
1435 | uint tag = input.ReadTag(); | ||
1436 | switch (tag) { | ||
1437 | case 0: { | ||
1438 | if (unknownFields != null) { | ||
1439 | this.UnknownFields = unknownFields.Build(); | ||
1440 | } | ||
1441 | return this; | ||
1442 | } | ||
1443 | default: { | ||
1444 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
1445 | if (unknownFields != null) { | ||
1446 | this.UnknownFields = unknownFields.Build(); | ||
1447 | } | ||
1448 | return this; | ||
1449 | } | ||
1450 | if (unknownFields == null) { | ||
1451 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
1452 | } | ||
1453 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
1454 | break; | ||
1455 | } | ||
1456 | case 10: { | ||
1457 | Subuuid = input.ReadBytes(); | ||
1458 | break; | ||
1459 | } | ||
1460 | case 18: { | ||
1461 | int length = input.ReadInt32(); | ||
1462 | int limit = input.PushLimit(length); | ||
1463 | while (!input.ReachedLimit) { | ||
1464 | AddSubvector(input.ReadDouble()); | ||
1465 | } | ||
1466 | input.PopLimit(limit); | ||
1467 | break; | ||
1468 | } | ||
1469 | case 25: { | ||
1470 | Subduration = input.ReadSFixed64(); | ||
1471 | break; | ||
1472 | } | ||
1473 | case 34: { | ||
1474 | int length = input.ReadInt32(); | ||
1475 | int limit = input.PushLimit(length); | ||
1476 | while (!input.ReachedLimit) { | ||
1477 | AddSubnormal(input.ReadFloat()); | ||
1478 | } | ||
1479 | input.PopLimit(limit); | ||
1480 | break; | ||
1481 | } | ||
1482 | } | ||
1483 | } | ||
1484 | } | ||
1485 | |||
1486 | |||
1487 | public bool HasSubuuid { | ||
1488 | get { return result.HasSubuuid; } | ||
1489 | } | ||
1490 | public pb::ByteString Subuuid { | ||
1491 | get { return result.Subuuid; } | ||
1492 | set { SetSubuuid(value); } | ||
1493 | } | ||
1494 | public Builder SetSubuuid(pb::ByteString value) { | ||
1495 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1496 | result.hasSubuuid = true; | ||
1497 | result.subuuid_ = value; | ||
1498 | return this; | ||
1499 | } | ||
1500 | public Builder ClearSubuuid() { | ||
1501 | result.hasSubuuid = false; | ||
1502 | result.subuuid_ = pb::ByteString.Empty; | ||
1503 | return this; | ||
1504 | } | ||
1505 | |||
1506 | public pbc::IPopsicleList<double> SubvectorList { | ||
1507 | get { return result.subvector_; } | ||
1508 | } | ||
1509 | public int SubvectorCount { | ||
1510 | get { return result.SubvectorCount; } | ||
1511 | } | ||
1512 | public double GetSubvector(int index) { | ||
1513 | return result.GetSubvector(index); | ||
1514 | } | ||
1515 | public Builder SetSubvector(int index, double value) { | ||
1516 | result.subvector_[index] = value; | ||
1517 | return this; | ||
1518 | } | ||
1519 | public Builder AddSubvector(double value) { | ||
1520 | result.subvector_.Add(value); | ||
1521 | return this; | ||
1522 | } | ||
1523 | public Builder AddRangeSubvector(scg::IEnumerable<double> values) { | ||
1524 | base.AddRange(values, result.subvector_); | ||
1525 | return this; | ||
1526 | } | ||
1527 | public Builder ClearSubvector() { | ||
1528 | result.subvector_.Clear(); | ||
1529 | return this; | ||
1530 | } | ||
1531 | |||
1532 | public bool HasSubduration { | ||
1533 | get { return result.HasSubduration; } | ||
1534 | } | ||
1535 | public long Subduration { | ||
1536 | get { return result.Subduration; } | ||
1537 | set { SetSubduration(value); } | ||
1538 | } | ||
1539 | public Builder SetSubduration(long value) { | ||
1540 | result.hasSubduration = true; | ||
1541 | result.subduration_ = value; | ||
1542 | return this; | ||
1543 | } | ||
1544 | public Builder ClearSubduration() { | ||
1545 | result.hasSubduration = false; | ||
1546 | result.subduration_ = 0; | ||
1547 | return this; | ||
1548 | } | ||
1549 | |||
1550 | public pbc::IPopsicleList<float> SubnormalList { | ||
1551 | get { return result.subnormal_; } | ||
1552 | } | ||
1553 | public int SubnormalCount { | ||
1554 | get { return result.SubnormalCount; } | ||
1555 | } | ||
1556 | public float GetSubnormal(int index) { | ||
1557 | return result.GetSubnormal(index); | ||
1558 | } | ||
1559 | public Builder SetSubnormal(int index, float value) { | ||
1560 | result.subnormal_[index] = value; | ||
1561 | return this; | ||
1562 | } | ||
1563 | public Builder AddSubnormal(float value) { | ||
1564 | result.subnormal_.Add(value); | ||
1565 | return this; | ||
1566 | } | ||
1567 | public Builder AddRangeSubnormal(scg::IEnumerable<float> values) { | ||
1568 | base.AddRange(values, result.subnormal_); | ||
1569 | return this; | ||
1570 | } | ||
1571 | public Builder ClearSubnormal() { | ||
1572 | result.subnormal_.Clear(); | ||
1573 | return this; | ||
1574 | } | ||
1575 | } | ||
1576 | static SubMessage() { | ||
1577 | object.ReferenceEquals(global::Sirikata.PB._PBJ_Internal.Test.Descriptor, null); | ||
1578 | } | ||
1579 | } | ||
1580 | |||
1581 | } | ||
1582 | #endregion | ||
1583 | |||
1584 | public const int XxdFieldNumber = 20; | ||
1585 | private bool hasXxd; | ||
1586 | private double xxd_ = 10.3D; | ||
1587 | public bool HasXxd { | ||
1588 | get { return hasXxd; } | ||
1589 | } | ||
1590 | public double Xxd { | ||
1591 | get { return xxd_; } | ||
1592 | } | ||
1593 | |||
1594 | public const int XxfFieldNumber = 21; | ||
1595 | private bool hasXxf; | ||
1596 | private float xxf_ = 0F; | ||
1597 | public bool HasXxf { | ||
1598 | get { return hasXxf; } | ||
1599 | } | ||
1600 | public float Xxf { | ||
1601 | get { return xxf_; } | ||
1602 | } | ||
1603 | |||
1604 | public const int Xxu32FieldNumber = 22; | ||
1605 | private bool hasXxu32; | ||
1606 | private uint xxu32_ = 0; | ||
1607 | public bool HasXxu32 { | ||
1608 | get { return hasXxu32; } | ||
1609 | } | ||
1610 | [global::System.CLSCompliant(false)] | ||
1611 | public uint Xxu32 { | ||
1612 | get { return xxu32_; } | ||
1613 | } | ||
1614 | |||
1615 | public const int XxsFieldNumber = 23; | ||
1616 | private bool hasXxs; | ||
1617 | private string xxs_ = ""; | ||
1618 | public bool HasXxs { | ||
1619 | get { return hasXxs; } | ||
1620 | } | ||
1621 | public string Xxs { | ||
1622 | get { return xxs_; } | ||
1623 | } | ||
1624 | |||
1625 | public const int XxbFieldNumber = 24; | ||
1626 | private bool hasXxb; | ||
1627 | private pb::ByteString xxb_ = pb::ByteString.Empty; | ||
1628 | public bool HasXxb { | ||
1629 | get { return hasXxb; } | ||
1630 | } | ||
1631 | public pb::ByteString Xxb { | ||
1632 | get { return xxb_; } | ||
1633 | } | ||
1634 | |||
1635 | public const int XxssFieldNumber = 25; | ||
1636 | private pbc::PopsicleList<string> xxss_ = new pbc::PopsicleList<string>(); | ||
1637 | public scg::IList<string> XxssList { | ||
1638 | get { return pbc::Lists.AsReadOnly(xxss_); } | ||
1639 | } | ||
1640 | public int XxssCount { | ||
1641 | get { return xxss_.Count; } | ||
1642 | } | ||
1643 | public string GetXxss(int index) { | ||
1644 | return xxss_[index]; | ||
1645 | } | ||
1646 | |||
1647 | public const int XxbbFieldNumber = 26; | ||
1648 | private pbc::PopsicleList<pb::ByteString> xxbb_ = new pbc::PopsicleList<pb::ByteString>(); | ||
1649 | public scg::IList<pb::ByteString> XxbbList { | ||
1650 | get { return pbc::Lists.AsReadOnly(xxbb_); } | ||
1651 | } | ||
1652 | public int XxbbCount { | ||
1653 | get { return xxbb_.Count; } | ||
1654 | } | ||
1655 | public pb::ByteString GetXxbb(int index) { | ||
1656 | return xxbb_[index]; | ||
1657 | } | ||
1658 | |||
1659 | public const int XxffFieldNumber = 27; | ||
1660 | private int xxffMemoizedSerializedSize; | ||
1661 | private pbc::PopsicleList<float> xxff_ = new pbc::PopsicleList<float>(); | ||
1662 | public scg::IList<float> XxffList { | ||
1663 | get { return pbc::Lists.AsReadOnly(xxff_); } | ||
1664 | } | ||
1665 | public int XxffCount { | ||
1666 | get { return xxff_.Count; } | ||
1667 | } | ||
1668 | public float GetXxff(int index) { | ||
1669 | return xxff_[index]; | ||
1670 | } | ||
1671 | |||
1672 | public const int XxnnFieldNumber = 29; | ||
1673 | private int xxnnMemoizedSerializedSize; | ||
1674 | private pbc::PopsicleList<float> xxnn_ = new pbc::PopsicleList<float>(); | ||
1675 | public scg::IList<float> XxnnList { | ||
1676 | get { return pbc::Lists.AsReadOnly(xxnn_); } | ||
1677 | } | ||
1678 | public int XxnnCount { | ||
1679 | get { return xxnn_.Count; } | ||
1680 | } | ||
1681 | public float GetXxnn(int index) { | ||
1682 | return xxnn_[index]; | ||
1683 | } | ||
1684 | |||
1685 | public const int XxfrFieldNumber = 28; | ||
1686 | private bool hasXxfr; | ||
1687 | private float xxfr_ = 0F; | ||
1688 | public bool HasXxfr { | ||
1689 | get { return hasXxfr; } | ||
1690 | } | ||
1691 | public float Xxfr { | ||
1692 | get { return xxfr_; } | ||
1693 | } | ||
1694 | |||
1695 | public const int NFieldNumber = 1; | ||
1696 | private int nMemoizedSerializedSize; | ||
1697 | private pbc::PopsicleList<float> n_ = new pbc::PopsicleList<float>(); | ||
1698 | public scg::IList<float> NList { | ||
1699 | get { return pbc::Lists.AsReadOnly(n_); } | ||
1700 | } | ||
1701 | public int NCount { | ||
1702 | get { return n_.Count; } | ||
1703 | } | ||
1704 | public float GetN(int index) { | ||
1705 | return n_[index]; | ||
1706 | } | ||
1707 | |||
1708 | public const int V2FFieldNumber = 2; | ||
1709 | private int v2FMemoizedSerializedSize; | ||
1710 | private pbc::PopsicleList<float> v2F_ = new pbc::PopsicleList<float>(); | ||
1711 | public scg::IList<float> V2FList { | ||
1712 | get { return pbc::Lists.AsReadOnly(v2F_); } | ||
1713 | } | ||
1714 | public int V2FCount { | ||
1715 | get { return v2F_.Count; } | ||
1716 | } | ||
1717 | public float GetV2F(int index) { | ||
1718 | return v2F_[index]; | ||
1719 | } | ||
1720 | |||
1721 | public const int V2DFieldNumber = 3; | ||
1722 | private int v2DMemoizedSerializedSize; | ||
1723 | private pbc::PopsicleList<double> v2D_ = new pbc::PopsicleList<double>(); | ||
1724 | public scg::IList<double> V2DList { | ||
1725 | get { return pbc::Lists.AsReadOnly(v2D_); } | ||
1726 | } | ||
1727 | public int V2DCount { | ||
1728 | get { return v2D_.Count; } | ||
1729 | } | ||
1730 | public double GetV2D(int index) { | ||
1731 | return v2D_[index]; | ||
1732 | } | ||
1733 | |||
1734 | public const int V3FFieldNumber = 4; | ||
1735 | private int v3FMemoizedSerializedSize; | ||
1736 | private pbc::PopsicleList<float> v3F_ = new pbc::PopsicleList<float>(); | ||
1737 | public scg::IList<float> V3FList { | ||
1738 | get { return pbc::Lists.AsReadOnly(v3F_); } | ||
1739 | } | ||
1740 | public int V3FCount { | ||
1741 | get { return v3F_.Count; } | ||
1742 | } | ||
1743 | public float GetV3F(int index) { | ||
1744 | return v3F_[index]; | ||
1745 | } | ||
1746 | |||
1747 | public const int V3DFieldNumber = 5; | ||
1748 | private int v3DMemoizedSerializedSize; | ||
1749 | private pbc::PopsicleList<double> v3D_ = new pbc::PopsicleList<double>(); | ||
1750 | public scg::IList<double> V3DList { | ||
1751 | get { return pbc::Lists.AsReadOnly(v3D_); } | ||
1752 | } | ||
1753 | public int V3DCount { | ||
1754 | get { return v3D_.Count; } | ||
1755 | } | ||
1756 | public double GetV3D(int index) { | ||
1757 | return v3D_[index]; | ||
1758 | } | ||
1759 | |||
1760 | public const int V4FFieldNumber = 6; | ||
1761 | private int v4FMemoizedSerializedSize; | ||
1762 | private pbc::PopsicleList<float> v4F_ = new pbc::PopsicleList<float>(); | ||
1763 | public scg::IList<float> V4FList { | ||
1764 | get { return pbc::Lists.AsReadOnly(v4F_); } | ||
1765 | } | ||
1766 | public int V4FCount { | ||
1767 | get { return v4F_.Count; } | ||
1768 | } | ||
1769 | public float GetV4F(int index) { | ||
1770 | return v4F_[index]; | ||
1771 | } | ||
1772 | |||
1773 | public const int V4DFieldNumber = 7; | ||
1774 | private int v4DMemoizedSerializedSize; | ||
1775 | private pbc::PopsicleList<double> v4D_ = new pbc::PopsicleList<double>(); | ||
1776 | public scg::IList<double> V4DList { | ||
1777 | get { return pbc::Lists.AsReadOnly(v4D_); } | ||
1778 | } | ||
1779 | public int V4DCount { | ||
1780 | get { return v4D_.Count; } | ||
1781 | } | ||
1782 | public double GetV4D(int index) { | ||
1783 | return v4D_[index]; | ||
1784 | } | ||
1785 | |||
1786 | public const int QFieldNumber = 8; | ||
1787 | private int qMemoizedSerializedSize; | ||
1788 | private pbc::PopsicleList<float> q_ = new pbc::PopsicleList<float>(); | ||
1789 | public scg::IList<float> QList { | ||
1790 | get { return pbc::Lists.AsReadOnly(q_); } | ||
1791 | } | ||
1792 | public int QCount { | ||
1793 | get { return q_.Count; } | ||
1794 | } | ||
1795 | public float GetQ(int index) { | ||
1796 | return q_[index]; | ||
1797 | } | ||
1798 | |||
1799 | public const int UFieldNumber = 9; | ||
1800 | private bool hasU; | ||
1801 | private pb::ByteString u_ = pb::ByteString.Empty; | ||
1802 | public bool HasU { | ||
1803 | get { return hasU; } | ||
1804 | } | ||
1805 | public pb::ByteString U { | ||
1806 | get { return u_; } | ||
1807 | } | ||
1808 | |||
1809 | public const int AFieldNumber = 10; | ||
1810 | private bool hasA; | ||
1811 | private float a_ = 0F; | ||
1812 | public bool HasA { | ||
1813 | get { return hasA; } | ||
1814 | } | ||
1815 | public float A { | ||
1816 | get { return a_; } | ||
1817 | } | ||
1818 | |||
1819 | public const int TFieldNumber = 11; | ||
1820 | private bool hasT; | ||
1821 | private ulong t_ = 0; | ||
1822 | public bool HasT { | ||
1823 | get { return hasT; } | ||
1824 | } | ||
1825 | [global::System.CLSCompliant(false)] | ||
1826 | public ulong T { | ||
1827 | get { return t_; } | ||
1828 | } | ||
1829 | |||
1830 | public const int DFieldNumber = 12; | ||
1831 | private bool hasD; | ||
1832 | private long d_ = 0; | ||
1833 | public bool HasD { | ||
1834 | get { return hasD; } | ||
1835 | } | ||
1836 | public long D { | ||
1837 | get { return d_; } | ||
1838 | } | ||
1839 | |||
1840 | public const int F32FieldNumber = 13; | ||
1841 | private bool hasF32; | ||
1842 | private uint f32_ = 0; | ||
1843 | public bool HasF32 { | ||
1844 | get { return hasF32; } | ||
1845 | } | ||
1846 | [global::System.CLSCompliant(false)] | ||
1847 | public uint F32 { | ||
1848 | get { return f32_; } | ||
1849 | } | ||
1850 | |||
1851 | public const int F64FieldNumber = 14; | ||
1852 | private bool hasF64; | ||
1853 | private ulong f64_ = 0UL; | ||
1854 | public bool HasF64 { | ||
1855 | get { return hasF64; } | ||
1856 | } | ||
1857 | [global::System.CLSCompliant(false)] | ||
1858 | public ulong F64 { | ||
1859 | get { return f64_; } | ||
1860 | } | ||
1861 | |||
1862 | public const int BsfFieldNumber = 15; | ||
1863 | private int bsfMemoizedSerializedSize; | ||
1864 | private pbc::PopsicleList<float> bsf_ = new pbc::PopsicleList<float>(); | ||
1865 | public scg::IList<float> BsfList { | ||
1866 | get { return pbc::Lists.AsReadOnly(bsf_); } | ||
1867 | } | ||
1868 | public int BsfCount { | ||
1869 | get { return bsf_.Count; } | ||
1870 | } | ||
1871 | public float GetBsf(int index) { | ||
1872 | return bsf_[index]; | ||
1873 | } | ||
1874 | |||
1875 | public const int BsdFieldNumber = 16; | ||
1876 | private int bsdMemoizedSerializedSize; | ||
1877 | private pbc::PopsicleList<double> bsd_ = new pbc::PopsicleList<double>(); | ||
1878 | public scg::IList<double> BsdList { | ||
1879 | get { return pbc::Lists.AsReadOnly(bsd_); } | ||
1880 | } | ||
1881 | public int BsdCount { | ||
1882 | get { return bsd_.Count; } | ||
1883 | } | ||
1884 | public double GetBsd(int index) { | ||
1885 | return bsd_[index]; | ||
1886 | } | ||
1887 | |||
1888 | public const int BbfFieldNumber = 17; | ||
1889 | private int bbfMemoizedSerializedSize; | ||
1890 | private pbc::PopsicleList<float> bbf_ = new pbc::PopsicleList<float>(); | ||
1891 | public scg::IList<float> BbfList { | ||
1892 | get { return pbc::Lists.AsReadOnly(bbf_); } | ||
1893 | } | ||
1894 | public int BbfCount { | ||
1895 | get { return bbf_.Count; } | ||
1896 | } | ||
1897 | public float GetBbf(int index) { | ||
1898 | return bbf_[index]; | ||
1899 | } | ||
1900 | |||
1901 | public const int BbdFieldNumber = 18; | ||
1902 | private int bbdMemoizedSerializedSize; | ||
1903 | private pbc::PopsicleList<double> bbd_ = new pbc::PopsicleList<double>(); | ||
1904 | public scg::IList<double> BbdList { | ||
1905 | get { return pbc::Lists.AsReadOnly(bbd_); } | ||
1906 | } | ||
1907 | public int BbdCount { | ||
1908 | get { return bbd_.Count; } | ||
1909 | } | ||
1910 | public double GetBbd(int index) { | ||
1911 | return bbd_[index]; | ||
1912 | } | ||
1913 | |||
1914 | public const int E32FieldNumber = 19; | ||
1915 | private bool hasE32; | ||
1916 | private global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32 e32_ = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32.UNIVERSAL1; | ||
1917 | public bool HasE32 { | ||
1918 | get { return hasE32; } | ||
1919 | } | ||
1920 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32 E32 { | ||
1921 | get { return e32_; } | ||
1922 | } | ||
1923 | |||
1924 | public const int SubmesFieldNumber = 30; | ||
1925 | private bool hasSubmes; | ||
1926 | private global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage submes_ = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance; | ||
1927 | public bool HasSubmes { | ||
1928 | get { return hasSubmes; } | ||
1929 | } | ||
1930 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage Submes { | ||
1931 | get { return submes_; } | ||
1932 | } | ||
1933 | |||
1934 | public const int SubmessersFieldNumber = 31; | ||
1935 | private pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage> submessers_ = new pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage>(); | ||
1936 | public scg::IList<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage> SubmessersList { | ||
1937 | get { return submessers_; } | ||
1938 | } | ||
1939 | public int SubmessersCount { | ||
1940 | get { return submessers_.Count; } | ||
1941 | } | ||
1942 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage GetSubmessers(int index) { | ||
1943 | return submessers_[index]; | ||
1944 | } | ||
1945 | |||
1946 | public const int ShaFieldNumber = 32; | ||
1947 | private bool hasSha; | ||
1948 | private pb::ByteString sha_ = pb::ByteString.Empty; | ||
1949 | public bool HasSha { | ||
1950 | get { return hasSha; } | ||
1951 | } | ||
1952 | public pb::ByteString Sha { | ||
1953 | get { return sha_; } | ||
1954 | } | ||
1955 | |||
1956 | public const int ShasFieldNumber = 33; | ||
1957 | private pbc::PopsicleList<pb::ByteString> shas_ = new pbc::PopsicleList<pb::ByteString>(); | ||
1958 | public scg::IList<pb::ByteString> ShasList { | ||
1959 | get { return pbc::Lists.AsReadOnly(shas_); } | ||
1960 | } | ||
1961 | public int ShasCount { | ||
1962 | get { return shas_.Count; } | ||
1963 | } | ||
1964 | public pb::ByteString GetShas(int index) { | ||
1965 | return shas_[index]; | ||
1966 | } | ||
1967 | |||
1968 | public const int ExtmesFieldNumber = 34; | ||
1969 | private bool hasExtmes; | ||
1970 | private global::Sirikata.PB._PBJ_Internal.ExternalMessage extmes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance; | ||
1971 | public bool HasExtmes { | ||
1972 | get { return hasExtmes; } | ||
1973 | } | ||
1974 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage Extmes { | ||
1975 | get { return extmes_; } | ||
1976 | } | ||
1977 | |||
1978 | public const int ExtmessersFieldNumber = 35; | ||
1979 | private pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage> extmessers_ = new pbc::PopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage>(); | ||
1980 | public scg::IList<global::Sirikata.PB._PBJ_Internal.ExternalMessage> ExtmessersList { | ||
1981 | get { return extmessers_; } | ||
1982 | } | ||
1983 | public int ExtmessersCount { | ||
1984 | get { return extmessers_.Count; } | ||
1985 | } | ||
1986 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage GetExtmessers(int index) { | ||
1987 | return extmessers_[index]; | ||
1988 | } | ||
1989 | |||
1990 | public const int ExtmesserFieldNumber = 36; | ||
1991 | private bool hasExtmesser; | ||
1992 | private global::Sirikata.PB._PBJ_Internal.ExternalMessage extmesser_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance; | ||
1993 | public bool HasExtmesser { | ||
1994 | get { return hasExtmesser; } | ||
1995 | } | ||
1996 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage Extmesser { | ||
1997 | get { return extmesser_; } | ||
1998 | } | ||
1999 | |||
2000 | public override bool IsInitialized { | ||
2001 | get { | ||
2002 | if (!hasXxfr) return false; | ||
2003 | if (!hasExtmesser) return false; | ||
2004 | if (!ExtensionsAreInitialized) return false; | ||
2005 | return true; | ||
2006 | } | ||
2007 | } | ||
2008 | |||
2009 | public override void WriteTo(pb::CodedOutputStream output) { | ||
2010 | pb::ExtendableMessage<TestMessage, TestMessage.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); | ||
2011 | if (n_.Count > 0) { | ||
2012 | output.WriteRawVarint32(10); | ||
2013 | output.WriteRawVarint32((uint) nMemoizedSerializedSize); | ||
2014 | foreach (float element in n_) { | ||
2015 | output.WriteFloatNoTag(element); | ||
2016 | } | ||
2017 | } | ||
2018 | if (v2F_.Count > 0) { | ||
2019 | output.WriteRawVarint32(18); | ||
2020 | output.WriteRawVarint32((uint) v2FMemoizedSerializedSize); | ||
2021 | foreach (float element in v2F_) { | ||
2022 | output.WriteFloatNoTag(element); | ||
2023 | } | ||
2024 | } | ||
2025 | if (v2D_.Count > 0) { | ||
2026 | output.WriteRawVarint32(26); | ||
2027 | output.WriteRawVarint32((uint) v2DMemoizedSerializedSize); | ||
2028 | foreach (double element in v2D_) { | ||
2029 | output.WriteDoubleNoTag(element); | ||
2030 | } | ||
2031 | } | ||
2032 | if (v3F_.Count > 0) { | ||
2033 | output.WriteRawVarint32(34); | ||
2034 | output.WriteRawVarint32((uint) v3FMemoizedSerializedSize); | ||
2035 | foreach (float element in v3F_) { | ||
2036 | output.WriteFloatNoTag(element); | ||
2037 | } | ||
2038 | } | ||
2039 | if (v3D_.Count > 0) { | ||
2040 | output.WriteRawVarint32(42); | ||
2041 | output.WriteRawVarint32((uint) v3DMemoizedSerializedSize); | ||
2042 | foreach (double element in v3D_) { | ||
2043 | output.WriteDoubleNoTag(element); | ||
2044 | } | ||
2045 | } | ||
2046 | if (v4F_.Count > 0) { | ||
2047 | output.WriteRawVarint32(50); | ||
2048 | output.WriteRawVarint32((uint) v4FMemoizedSerializedSize); | ||
2049 | foreach (float element in v4F_) { | ||
2050 | output.WriteFloatNoTag(element); | ||
2051 | } | ||
2052 | } | ||
2053 | if (v4D_.Count > 0) { | ||
2054 | output.WriteRawVarint32(58); | ||
2055 | output.WriteRawVarint32((uint) v4DMemoizedSerializedSize); | ||
2056 | foreach (double element in v4D_) { | ||
2057 | output.WriteDoubleNoTag(element); | ||
2058 | } | ||
2059 | } | ||
2060 | if (q_.Count > 0) { | ||
2061 | output.WriteRawVarint32(66); | ||
2062 | output.WriteRawVarint32((uint) qMemoizedSerializedSize); | ||
2063 | foreach (float element in q_) { | ||
2064 | output.WriteFloatNoTag(element); | ||
2065 | } | ||
2066 | } | ||
2067 | if (HasU) { | ||
2068 | output.WriteBytes(9, U); | ||
2069 | } | ||
2070 | if (HasA) { | ||
2071 | output.WriteFloat(10, A); | ||
2072 | } | ||
2073 | if (HasT) { | ||
2074 | output.WriteFixed64(11, T); | ||
2075 | } | ||
2076 | if (HasD) { | ||
2077 | output.WriteSFixed64(12, D); | ||
2078 | } | ||
2079 | if (HasF32) { | ||
2080 | output.WriteUInt32(13, F32); | ||
2081 | } | ||
2082 | if (HasF64) { | ||
2083 | output.WriteUInt64(14, F64); | ||
2084 | } | ||
2085 | if (bsf_.Count > 0) { | ||
2086 | output.WriteRawVarint32(122); | ||
2087 | output.WriteRawVarint32((uint) bsfMemoizedSerializedSize); | ||
2088 | foreach (float element in bsf_) { | ||
2089 | output.WriteFloatNoTag(element); | ||
2090 | } | ||
2091 | } | ||
2092 | if (bsd_.Count > 0) { | ||
2093 | output.WriteRawVarint32(130); | ||
2094 | output.WriteRawVarint32((uint) bsdMemoizedSerializedSize); | ||
2095 | foreach (double element in bsd_) { | ||
2096 | output.WriteDoubleNoTag(element); | ||
2097 | } | ||
2098 | } | ||
2099 | if (bbf_.Count > 0) { | ||
2100 | output.WriteRawVarint32(138); | ||
2101 | output.WriteRawVarint32((uint) bbfMemoizedSerializedSize); | ||
2102 | foreach (float element in bbf_) { | ||
2103 | output.WriteFloatNoTag(element); | ||
2104 | } | ||
2105 | } | ||
2106 | if (bbd_.Count > 0) { | ||
2107 | output.WriteRawVarint32(146); | ||
2108 | output.WriteRawVarint32((uint) bbdMemoizedSerializedSize); | ||
2109 | foreach (double element in bbd_) { | ||
2110 | output.WriteDoubleNoTag(element); | ||
2111 | } | ||
2112 | } | ||
2113 | if (HasE32) { | ||
2114 | output.WriteEnum(19, (int) E32); | ||
2115 | } | ||
2116 | if (HasXxd) { | ||
2117 | output.WriteDouble(20, Xxd); | ||
2118 | } | ||
2119 | if (HasXxf) { | ||
2120 | output.WriteFloat(21, Xxf); | ||
2121 | } | ||
2122 | if (HasXxu32) { | ||
2123 | output.WriteUInt32(22, Xxu32); | ||
2124 | } | ||
2125 | if (HasXxs) { | ||
2126 | output.WriteString(23, Xxs); | ||
2127 | } | ||
2128 | if (HasXxb) { | ||
2129 | output.WriteBytes(24, Xxb); | ||
2130 | } | ||
2131 | if (xxss_.Count > 0) { | ||
2132 | foreach (string element in xxss_) { | ||
2133 | output.WriteString(25, element); | ||
2134 | } | ||
2135 | } | ||
2136 | if (xxbb_.Count > 0) { | ||
2137 | foreach (pb::ByteString element in xxbb_) { | ||
2138 | output.WriteBytes(26, element); | ||
2139 | } | ||
2140 | } | ||
2141 | if (xxff_.Count > 0) { | ||
2142 | output.WriteRawVarint32(218); | ||
2143 | output.WriteRawVarint32((uint) xxffMemoizedSerializedSize); | ||
2144 | foreach (float element in xxff_) { | ||
2145 | output.WriteFloatNoTag(element); | ||
2146 | } | ||
2147 | } | ||
2148 | if (HasXxfr) { | ||
2149 | output.WriteFloat(28, Xxfr); | ||
2150 | } | ||
2151 | if (xxnn_.Count > 0) { | ||
2152 | output.WriteRawVarint32(234); | ||
2153 | output.WriteRawVarint32((uint) xxnnMemoizedSerializedSize); | ||
2154 | foreach (float element in xxnn_) { | ||
2155 | output.WriteFloatNoTag(element); | ||
2156 | } | ||
2157 | } | ||
2158 | if (HasSubmes) { | ||
2159 | output.WriteMessage(30, Submes); | ||
2160 | } | ||
2161 | foreach (global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage element in SubmessersList) { | ||
2162 | output.WriteMessage(31, element); | ||
2163 | } | ||
2164 | if (HasSha) { | ||
2165 | output.WriteBytes(32, Sha); | ||
2166 | } | ||
2167 | if (shas_.Count > 0) { | ||
2168 | foreach (pb::ByteString element in shas_) { | ||
2169 | output.WriteBytes(33, element); | ||
2170 | } | ||
2171 | } | ||
2172 | if (HasExtmes) { | ||
2173 | output.WriteMessage(34, Extmes); | ||
2174 | } | ||
2175 | foreach (global::Sirikata.PB._PBJ_Internal.ExternalMessage element in ExtmessersList) { | ||
2176 | output.WriteMessage(35, element); | ||
2177 | } | ||
2178 | if (HasExtmesser) { | ||
2179 | output.WriteMessage(36, Extmesser); | ||
2180 | } | ||
2181 | extensionWriter.WriteUntil(200, output); | ||
2182 | UnknownFields.WriteTo(output); | ||
2183 | } | ||
2184 | |||
2185 | private int memoizedSerializedSize = -1; | ||
2186 | public override int SerializedSize { | ||
2187 | get { | ||
2188 | int size = memoizedSerializedSize; | ||
2189 | if (size != -1) return size; | ||
2190 | |||
2191 | size = 0; | ||
2192 | if (HasXxd) { | ||
2193 | size += pb::CodedOutputStream.ComputeDoubleSize(20, Xxd); | ||
2194 | } | ||
2195 | if (HasXxf) { | ||
2196 | size += pb::CodedOutputStream.ComputeFloatSize(21, Xxf); | ||
2197 | } | ||
2198 | if (HasXxu32) { | ||
2199 | size += pb::CodedOutputStream.ComputeUInt32Size(22, Xxu32); | ||
2200 | } | ||
2201 | if (HasXxs) { | ||
2202 | size += pb::CodedOutputStream.ComputeStringSize(23, Xxs); | ||
2203 | } | ||
2204 | if (HasXxb) { | ||
2205 | size += pb::CodedOutputStream.ComputeBytesSize(24, Xxb); | ||
2206 | } | ||
2207 | { | ||
2208 | int dataSize = 0; | ||
2209 | foreach (string element in XxssList) { | ||
2210 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); | ||
2211 | } | ||
2212 | size += dataSize; | ||
2213 | size += 2 * xxss_.Count; | ||
2214 | } | ||
2215 | { | ||
2216 | int dataSize = 0; | ||
2217 | foreach (pb::ByteString element in XxbbList) { | ||
2218 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); | ||
2219 | } | ||
2220 | size += dataSize; | ||
2221 | size += 2 * xxbb_.Count; | ||
2222 | } | ||
2223 | { | ||
2224 | int dataSize = 0; | ||
2225 | dataSize = 4 * xxff_.Count; | ||
2226 | size += dataSize; | ||
2227 | if (xxff_.Count!=0) size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2228 | xxffMemoizedSerializedSize = dataSize; | ||
2229 | } | ||
2230 | { | ||
2231 | int dataSize = 0; | ||
2232 | dataSize = 4 * xxnn_.Count; | ||
2233 | size += dataSize; | ||
2234 | if (xxnn_.Count!=0) size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2235 | xxnnMemoizedSerializedSize = dataSize; | ||
2236 | } | ||
2237 | if (HasXxfr) { | ||
2238 | size += pb::CodedOutputStream.ComputeFloatSize(28, Xxfr); | ||
2239 | } | ||
2240 | { | ||
2241 | int dataSize = 0; | ||
2242 | dataSize = 4 * n_.Count; | ||
2243 | size += dataSize; | ||
2244 | if (n_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2245 | nMemoizedSerializedSize = dataSize; | ||
2246 | } | ||
2247 | { | ||
2248 | int dataSize = 0; | ||
2249 | dataSize = 4 * v2F_.Count; | ||
2250 | size += dataSize; | ||
2251 | if (v2F_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2252 | v2FMemoizedSerializedSize = dataSize; | ||
2253 | } | ||
2254 | { | ||
2255 | int dataSize = 0; | ||
2256 | dataSize = 8 * v2D_.Count; | ||
2257 | size += dataSize; | ||
2258 | if (v2D_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2259 | v2DMemoizedSerializedSize = dataSize; | ||
2260 | } | ||
2261 | { | ||
2262 | int dataSize = 0; | ||
2263 | dataSize = 4 * v3F_.Count; | ||
2264 | size += dataSize; | ||
2265 | if (v3F_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2266 | v3FMemoizedSerializedSize = dataSize; | ||
2267 | } | ||
2268 | { | ||
2269 | int dataSize = 0; | ||
2270 | dataSize = 8 * v3D_.Count; | ||
2271 | size += dataSize; | ||
2272 | if (v3D_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2273 | v3DMemoizedSerializedSize = dataSize; | ||
2274 | } | ||
2275 | { | ||
2276 | int dataSize = 0; | ||
2277 | dataSize = 4 * v4F_.Count; | ||
2278 | size += dataSize; | ||
2279 | if (v4F_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2280 | v4FMemoizedSerializedSize = dataSize; | ||
2281 | } | ||
2282 | { | ||
2283 | int dataSize = 0; | ||
2284 | dataSize = 8 * v4D_.Count; | ||
2285 | size += dataSize; | ||
2286 | if (v4D_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2287 | v4DMemoizedSerializedSize = dataSize; | ||
2288 | } | ||
2289 | { | ||
2290 | int dataSize = 0; | ||
2291 | dataSize = 4 * q_.Count; | ||
2292 | size += dataSize; | ||
2293 | if (q_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2294 | qMemoizedSerializedSize = dataSize; | ||
2295 | } | ||
2296 | if (HasU) { | ||
2297 | size += pb::CodedOutputStream.ComputeBytesSize(9, U); | ||
2298 | } | ||
2299 | if (HasA) { | ||
2300 | size += pb::CodedOutputStream.ComputeFloatSize(10, A); | ||
2301 | } | ||
2302 | if (HasT) { | ||
2303 | size += pb::CodedOutputStream.ComputeFixed64Size(11, T); | ||
2304 | } | ||
2305 | if (HasD) { | ||
2306 | size += pb::CodedOutputStream.ComputeSFixed64Size(12, D); | ||
2307 | } | ||
2308 | if (HasF32) { | ||
2309 | size += pb::CodedOutputStream.ComputeUInt32Size(13, F32); | ||
2310 | } | ||
2311 | if (HasF64) { | ||
2312 | size += pb::CodedOutputStream.ComputeUInt64Size(14, F64); | ||
2313 | } | ||
2314 | { | ||
2315 | int dataSize = 0; | ||
2316 | dataSize = 4 * bsf_.Count; | ||
2317 | size += dataSize; | ||
2318 | if (bsf_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2319 | bsfMemoizedSerializedSize = dataSize; | ||
2320 | } | ||
2321 | { | ||
2322 | int dataSize = 0; | ||
2323 | dataSize = 8 * bsd_.Count; | ||
2324 | size += dataSize; | ||
2325 | if (bsd_.Count!=0) size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2326 | bsdMemoizedSerializedSize = dataSize; | ||
2327 | } | ||
2328 | { | ||
2329 | int dataSize = 0; | ||
2330 | dataSize = 4 * bbf_.Count; | ||
2331 | size += dataSize; | ||
2332 | if (bbf_.Count!=0) size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2333 | bbfMemoizedSerializedSize = dataSize; | ||
2334 | } | ||
2335 | { | ||
2336 | int dataSize = 0; | ||
2337 | dataSize = 8 * bbd_.Count; | ||
2338 | size += dataSize; | ||
2339 | if (bbd_.Count!=0) size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
2340 | bbdMemoizedSerializedSize = dataSize; | ||
2341 | } | ||
2342 | if (HasE32) { | ||
2343 | size += pb::CodedOutputStream.ComputeEnumSize(19, (int) E32); | ||
2344 | } | ||
2345 | if (HasSubmes) { | ||
2346 | size += pb::CodedOutputStream.ComputeMessageSize(30, Submes); | ||
2347 | } | ||
2348 | foreach (global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage element in SubmessersList) { | ||
2349 | size += pb::CodedOutputStream.ComputeMessageSize(31, element); | ||
2350 | } | ||
2351 | if (HasSha) { | ||
2352 | size += pb::CodedOutputStream.ComputeBytesSize(32, Sha); | ||
2353 | } | ||
2354 | { | ||
2355 | int dataSize = 0; | ||
2356 | foreach (pb::ByteString element in ShasList) { | ||
2357 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); | ||
2358 | } | ||
2359 | size += dataSize; | ||
2360 | size += 2 * shas_.Count; | ||
2361 | } | ||
2362 | if (HasExtmes) { | ||
2363 | size += pb::CodedOutputStream.ComputeMessageSize(34, Extmes); | ||
2364 | } | ||
2365 | foreach (global::Sirikata.PB._PBJ_Internal.ExternalMessage element in ExtmessersList) { | ||
2366 | size += pb::CodedOutputStream.ComputeMessageSize(35, element); | ||
2367 | } | ||
2368 | if (HasExtmesser) { | ||
2369 | size += pb::CodedOutputStream.ComputeMessageSize(36, Extmesser); | ||
2370 | } | ||
2371 | size += ExtensionsSerializedSize; | ||
2372 | size += UnknownFields.SerializedSize; | ||
2373 | memoizedSerializedSize = size; | ||
2374 | return size; | ||
2375 | } | ||
2376 | } | ||
2377 | |||
2378 | public static TestMessage ParseFrom(pb::ByteString data) { | ||
2379 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2380 | } | ||
2381 | public static TestMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
2382 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2383 | } | ||
2384 | public static TestMessage ParseFrom(byte[] data) { | ||
2385 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2386 | } | ||
2387 | public static TestMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
2388 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2389 | } | ||
2390 | public static TestMessage ParseFrom(global::System.IO.Stream input) { | ||
2391 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2392 | } | ||
2393 | public static TestMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2394 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2395 | } | ||
2396 | public static TestMessage ParseDelimitedFrom(global::System.IO.Stream input) { | ||
2397 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
2398 | } | ||
2399 | public static TestMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2400 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
2401 | } | ||
2402 | public static TestMessage ParseFrom(pb::CodedInputStream input) { | ||
2403 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2404 | } | ||
2405 | public static TestMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2406 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2407 | } | ||
2408 | public static Builder CreateBuilder() { return new Builder(); } | ||
2409 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
2410 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
2411 | public static Builder CreateBuilder(TestMessage prototype) { | ||
2412 | return (Builder) new Builder().MergeFrom(prototype); | ||
2413 | } | ||
2414 | |||
2415 | public sealed partial class Builder : pb::ExtendableBuilder<TestMessage, Builder> { | ||
2416 | protected override Builder ThisBuilder { | ||
2417 | get { return this; } | ||
2418 | } | ||
2419 | public Builder() {} | ||
2420 | |||
2421 | TestMessage result = new TestMessage(); | ||
2422 | |||
2423 | protected override TestMessage MessageBeingBuilt { | ||
2424 | get { return result; } | ||
2425 | } | ||
2426 | |||
2427 | public override Builder Clear() { | ||
2428 | result = new TestMessage(); | ||
2429 | return this; | ||
2430 | } | ||
2431 | |||
2432 | public override Builder Clone() { | ||
2433 | return new Builder().MergeFrom(result); | ||
2434 | } | ||
2435 | |||
2436 | public override pbd::MessageDescriptor DescriptorForType { | ||
2437 | get { return global::Sirikata.PB._PBJ_Internal.TestMessage.Descriptor; } | ||
2438 | } | ||
2439 | |||
2440 | public override TestMessage DefaultInstanceForType { | ||
2441 | get { return global::Sirikata.PB._PBJ_Internal.TestMessage.DefaultInstance; } | ||
2442 | } | ||
2443 | |||
2444 | public override TestMessage BuildPartial() { | ||
2445 | if (result == null) { | ||
2446 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
2447 | } | ||
2448 | result.xxss_.MakeReadOnly(); | ||
2449 | result.xxbb_.MakeReadOnly(); | ||
2450 | result.xxff_.MakeReadOnly(); | ||
2451 | result.xxnn_.MakeReadOnly(); | ||
2452 | result.n_.MakeReadOnly(); | ||
2453 | result.v2F_.MakeReadOnly(); | ||
2454 | result.v2D_.MakeReadOnly(); | ||
2455 | result.v3F_.MakeReadOnly(); | ||
2456 | result.v3D_.MakeReadOnly(); | ||
2457 | result.v4F_.MakeReadOnly(); | ||
2458 | result.v4D_.MakeReadOnly(); | ||
2459 | result.q_.MakeReadOnly(); | ||
2460 | result.bsf_.MakeReadOnly(); | ||
2461 | result.bsd_.MakeReadOnly(); | ||
2462 | result.bbf_.MakeReadOnly(); | ||
2463 | result.bbd_.MakeReadOnly(); | ||
2464 | result.submessers_.MakeReadOnly(); | ||
2465 | result.shas_.MakeReadOnly(); | ||
2466 | result.extmessers_.MakeReadOnly(); | ||
2467 | TestMessage returnMe = result; | ||
2468 | result = null; | ||
2469 | return returnMe; | ||
2470 | } | ||
2471 | |||
2472 | public override Builder MergeFrom(pb::IMessage other) { | ||
2473 | if (other is TestMessage) { | ||
2474 | return MergeFrom((TestMessage) other); | ||
2475 | } else { | ||
2476 | base.MergeFrom(other); | ||
2477 | return this; | ||
2478 | } | ||
2479 | } | ||
2480 | |||
2481 | public override Builder MergeFrom(TestMessage other) { | ||
2482 | if (other == global::Sirikata.PB._PBJ_Internal.TestMessage.DefaultInstance) return this; | ||
2483 | if (other.HasXxd) { | ||
2484 | Xxd = other.Xxd; | ||
2485 | } | ||
2486 | if (other.HasXxf) { | ||
2487 | Xxf = other.Xxf; | ||
2488 | } | ||
2489 | if (other.HasXxu32) { | ||
2490 | Xxu32 = other.Xxu32; | ||
2491 | } | ||
2492 | if (other.HasXxs) { | ||
2493 | Xxs = other.Xxs; | ||
2494 | } | ||
2495 | if (other.HasXxb) { | ||
2496 | Xxb = other.Xxb; | ||
2497 | } | ||
2498 | if (other.xxss_.Count != 0) { | ||
2499 | base.AddRange(other.xxss_, result.xxss_); | ||
2500 | } | ||
2501 | if (other.xxbb_.Count != 0) { | ||
2502 | base.AddRange(other.xxbb_, result.xxbb_); | ||
2503 | } | ||
2504 | if (other.xxff_.Count != 0) { | ||
2505 | base.AddRange(other.xxff_, result.xxff_); | ||
2506 | } | ||
2507 | if (other.xxnn_.Count != 0) { | ||
2508 | base.AddRange(other.xxnn_, result.xxnn_); | ||
2509 | } | ||
2510 | if (other.HasXxfr) { | ||
2511 | Xxfr = other.Xxfr; | ||
2512 | } | ||
2513 | if (other.n_.Count != 0) { | ||
2514 | base.AddRange(other.n_, result.n_); | ||
2515 | } | ||
2516 | if (other.v2F_.Count != 0) { | ||
2517 | base.AddRange(other.v2F_, result.v2F_); | ||
2518 | } | ||
2519 | if (other.v2D_.Count != 0) { | ||
2520 | base.AddRange(other.v2D_, result.v2D_); | ||
2521 | } | ||
2522 | if (other.v3F_.Count != 0) { | ||
2523 | base.AddRange(other.v3F_, result.v3F_); | ||
2524 | } | ||
2525 | if (other.v3D_.Count != 0) { | ||
2526 | base.AddRange(other.v3D_, result.v3D_); | ||
2527 | } | ||
2528 | if (other.v4F_.Count != 0) { | ||
2529 | base.AddRange(other.v4F_, result.v4F_); | ||
2530 | } | ||
2531 | if (other.v4D_.Count != 0) { | ||
2532 | base.AddRange(other.v4D_, result.v4D_); | ||
2533 | } | ||
2534 | if (other.q_.Count != 0) { | ||
2535 | base.AddRange(other.q_, result.q_); | ||
2536 | } | ||
2537 | if (other.HasU) { | ||
2538 | U = other.U; | ||
2539 | } | ||
2540 | if (other.HasA) { | ||
2541 | A = other.A; | ||
2542 | } | ||
2543 | if (other.HasT) { | ||
2544 | T = other.T; | ||
2545 | } | ||
2546 | if (other.HasD) { | ||
2547 | D = other.D; | ||
2548 | } | ||
2549 | if (other.HasF32) { | ||
2550 | F32 = other.F32; | ||
2551 | } | ||
2552 | if (other.HasF64) { | ||
2553 | F64 = other.F64; | ||
2554 | } | ||
2555 | if (other.bsf_.Count != 0) { | ||
2556 | base.AddRange(other.bsf_, result.bsf_); | ||
2557 | } | ||
2558 | if (other.bsd_.Count != 0) { | ||
2559 | base.AddRange(other.bsd_, result.bsd_); | ||
2560 | } | ||
2561 | if (other.bbf_.Count != 0) { | ||
2562 | base.AddRange(other.bbf_, result.bbf_); | ||
2563 | } | ||
2564 | if (other.bbd_.Count != 0) { | ||
2565 | base.AddRange(other.bbd_, result.bbd_); | ||
2566 | } | ||
2567 | if (other.HasE32) { | ||
2568 | E32 = other.E32; | ||
2569 | } | ||
2570 | if (other.HasSubmes) { | ||
2571 | MergeSubmes(other.Submes); | ||
2572 | } | ||
2573 | if (other.submessers_.Count != 0) { | ||
2574 | base.AddRange(other.submessers_, result.submessers_); | ||
2575 | } | ||
2576 | if (other.HasSha) { | ||
2577 | Sha = other.Sha; | ||
2578 | } | ||
2579 | if (other.shas_.Count != 0) { | ||
2580 | base.AddRange(other.shas_, result.shas_); | ||
2581 | } | ||
2582 | if (other.HasExtmes) { | ||
2583 | MergeExtmes(other.Extmes); | ||
2584 | } | ||
2585 | if (other.extmessers_.Count != 0) { | ||
2586 | base.AddRange(other.extmessers_, result.extmessers_); | ||
2587 | } | ||
2588 | if (other.HasExtmesser) { | ||
2589 | MergeExtmesser(other.Extmesser); | ||
2590 | } | ||
2591 | this.MergeExtensionFields(other); | ||
2592 | this.MergeUnknownFields(other.UnknownFields); | ||
2593 | return this; | ||
2594 | } | ||
2595 | |||
2596 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
2597 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
2598 | } | ||
2599 | |||
2600 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2601 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
2602 | while (true) { | ||
2603 | uint tag = input.ReadTag(); | ||
2604 | switch (tag) { | ||
2605 | case 0: { | ||
2606 | if (unknownFields != null) { | ||
2607 | this.UnknownFields = unknownFields.Build(); | ||
2608 | } | ||
2609 | return this; | ||
2610 | } | ||
2611 | default: { | ||
2612 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
2613 | if (unknownFields != null) { | ||
2614 | this.UnknownFields = unknownFields.Build(); | ||
2615 | } | ||
2616 | return this; | ||
2617 | } | ||
2618 | if (unknownFields == null) { | ||
2619 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
2620 | } | ||
2621 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
2622 | break; | ||
2623 | } | ||
2624 | case 10: { | ||
2625 | int length = input.ReadInt32(); | ||
2626 | int limit = input.PushLimit(length); | ||
2627 | while (!input.ReachedLimit) { | ||
2628 | AddN(input.ReadFloat()); | ||
2629 | } | ||
2630 | input.PopLimit(limit); | ||
2631 | break; | ||
2632 | } | ||
2633 | case 18: { | ||
2634 | int length = input.ReadInt32(); | ||
2635 | int limit = input.PushLimit(length); | ||
2636 | while (!input.ReachedLimit) { | ||
2637 | AddV2F(input.ReadFloat()); | ||
2638 | } | ||
2639 | input.PopLimit(limit); | ||
2640 | break; | ||
2641 | } | ||
2642 | case 26: { | ||
2643 | int length = input.ReadInt32(); | ||
2644 | int limit = input.PushLimit(length); | ||
2645 | while (!input.ReachedLimit) { | ||
2646 | AddV2D(input.ReadDouble()); | ||
2647 | } | ||
2648 | input.PopLimit(limit); | ||
2649 | break; | ||
2650 | } | ||
2651 | case 34: { | ||
2652 | int length = input.ReadInt32(); | ||
2653 | int limit = input.PushLimit(length); | ||
2654 | while (!input.ReachedLimit) { | ||
2655 | AddV3F(input.ReadFloat()); | ||
2656 | } | ||
2657 | input.PopLimit(limit); | ||
2658 | break; | ||
2659 | } | ||
2660 | case 42: { | ||
2661 | int length = input.ReadInt32(); | ||
2662 | int limit = input.PushLimit(length); | ||
2663 | while (!input.ReachedLimit) { | ||
2664 | AddV3D(input.ReadDouble()); | ||
2665 | } | ||
2666 | input.PopLimit(limit); | ||
2667 | break; | ||
2668 | } | ||
2669 | case 50: { | ||
2670 | int length = input.ReadInt32(); | ||
2671 | int limit = input.PushLimit(length); | ||
2672 | while (!input.ReachedLimit) { | ||
2673 | AddV4F(input.ReadFloat()); | ||
2674 | } | ||
2675 | input.PopLimit(limit); | ||
2676 | break; | ||
2677 | } | ||
2678 | case 58: { | ||
2679 | int length = input.ReadInt32(); | ||
2680 | int limit = input.PushLimit(length); | ||
2681 | while (!input.ReachedLimit) { | ||
2682 | AddV4D(input.ReadDouble()); | ||
2683 | } | ||
2684 | input.PopLimit(limit); | ||
2685 | break; | ||
2686 | } | ||
2687 | case 66: { | ||
2688 | int length = input.ReadInt32(); | ||
2689 | int limit = input.PushLimit(length); | ||
2690 | while (!input.ReachedLimit) { | ||
2691 | AddQ(input.ReadFloat()); | ||
2692 | } | ||
2693 | input.PopLimit(limit); | ||
2694 | break; | ||
2695 | } | ||
2696 | case 74: { | ||
2697 | U = input.ReadBytes(); | ||
2698 | break; | ||
2699 | } | ||
2700 | case 85: { | ||
2701 | A = input.ReadFloat(); | ||
2702 | break; | ||
2703 | } | ||
2704 | case 89: { | ||
2705 | T = input.ReadFixed64(); | ||
2706 | break; | ||
2707 | } | ||
2708 | case 97: { | ||
2709 | D = input.ReadSFixed64(); | ||
2710 | break; | ||
2711 | } | ||
2712 | case 104: { | ||
2713 | F32 = input.ReadUInt32(); | ||
2714 | break; | ||
2715 | } | ||
2716 | case 112: { | ||
2717 | F64 = input.ReadUInt64(); | ||
2718 | break; | ||
2719 | } | ||
2720 | case 122: { | ||
2721 | int length = input.ReadInt32(); | ||
2722 | int limit = input.PushLimit(length); | ||
2723 | while (!input.ReachedLimit) { | ||
2724 | AddBsf(input.ReadFloat()); | ||
2725 | } | ||
2726 | input.PopLimit(limit); | ||
2727 | break; | ||
2728 | } | ||
2729 | case 130: { | ||
2730 | int length = input.ReadInt32(); | ||
2731 | int limit = input.PushLimit(length); | ||
2732 | while (!input.ReachedLimit) { | ||
2733 | AddBsd(input.ReadDouble()); | ||
2734 | } | ||
2735 | input.PopLimit(limit); | ||
2736 | break; | ||
2737 | } | ||
2738 | case 138: { | ||
2739 | int length = input.ReadInt32(); | ||
2740 | int limit = input.PushLimit(length); | ||
2741 | while (!input.ReachedLimit) { | ||
2742 | AddBbf(input.ReadFloat()); | ||
2743 | } | ||
2744 | input.PopLimit(limit); | ||
2745 | break; | ||
2746 | } | ||
2747 | case 146: { | ||
2748 | int length = input.ReadInt32(); | ||
2749 | int limit = input.PushLimit(length); | ||
2750 | while (!input.ReachedLimit) { | ||
2751 | AddBbd(input.ReadDouble()); | ||
2752 | } | ||
2753 | input.PopLimit(limit); | ||
2754 | break; | ||
2755 | } | ||
2756 | case 152: { | ||
2757 | int rawValue = input.ReadEnum(); | ||
2758 | if (!global::System.Enum.IsDefined(typeof(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32), rawValue)) { | ||
2759 | if (unknownFields == null) { | ||
2760 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
2761 | } | ||
2762 | unknownFields.MergeVarintField(19, (ulong) rawValue); | ||
2763 | } else { | ||
2764 | E32 = (global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32) rawValue; | ||
2765 | } | ||
2766 | break; | ||
2767 | } | ||
2768 | case 161: { | ||
2769 | Xxd = input.ReadDouble(); | ||
2770 | break; | ||
2771 | } | ||
2772 | case 173: { | ||
2773 | Xxf = input.ReadFloat(); | ||
2774 | break; | ||
2775 | } | ||
2776 | case 176: { | ||
2777 | Xxu32 = input.ReadUInt32(); | ||
2778 | break; | ||
2779 | } | ||
2780 | case 186: { | ||
2781 | Xxs = input.ReadString(); | ||
2782 | break; | ||
2783 | } | ||
2784 | case 194: { | ||
2785 | Xxb = input.ReadBytes(); | ||
2786 | break; | ||
2787 | } | ||
2788 | case 202: { | ||
2789 | AddXxss(input.ReadString()); | ||
2790 | break; | ||
2791 | } | ||
2792 | case 210: { | ||
2793 | AddXxbb(input.ReadBytes()); | ||
2794 | break; | ||
2795 | } | ||
2796 | case 218: { | ||
2797 | int length = input.ReadInt32(); | ||
2798 | int limit = input.PushLimit(length); | ||
2799 | while (!input.ReachedLimit) { | ||
2800 | AddXxff(input.ReadFloat()); | ||
2801 | } | ||
2802 | input.PopLimit(limit); | ||
2803 | break; | ||
2804 | } | ||
2805 | case 229: { | ||
2806 | Xxfr = input.ReadFloat(); | ||
2807 | break; | ||
2808 | } | ||
2809 | case 234: { | ||
2810 | int length = input.ReadInt32(); | ||
2811 | int limit = input.PushLimit(length); | ||
2812 | while (!input.ReachedLimit) { | ||
2813 | AddXxnn(input.ReadFloat()); | ||
2814 | } | ||
2815 | input.PopLimit(limit); | ||
2816 | break; | ||
2817 | } | ||
2818 | case 242: { | ||
2819 | global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.CreateBuilder(); | ||
2820 | if (HasSubmes) { | ||
2821 | subBuilder.MergeFrom(Submes); | ||
2822 | } | ||
2823 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2824 | Submes = subBuilder.BuildPartial(); | ||
2825 | break; | ||
2826 | } | ||
2827 | case 250: { | ||
2828 | global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.CreateBuilder(); | ||
2829 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2830 | AddSubmessers(subBuilder.BuildPartial()); | ||
2831 | break; | ||
2832 | } | ||
2833 | case 258: { | ||
2834 | Sha = input.ReadBytes(); | ||
2835 | break; | ||
2836 | } | ||
2837 | case 266: { | ||
2838 | AddShas(input.ReadBytes()); | ||
2839 | break; | ||
2840 | } | ||
2841 | case 274: { | ||
2842 | global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.ExternalMessage.CreateBuilder(); | ||
2843 | if (HasExtmes) { | ||
2844 | subBuilder.MergeFrom(Extmes); | ||
2845 | } | ||
2846 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2847 | Extmes = subBuilder.BuildPartial(); | ||
2848 | break; | ||
2849 | } | ||
2850 | case 282: { | ||
2851 | global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.ExternalMessage.CreateBuilder(); | ||
2852 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2853 | AddExtmessers(subBuilder.BuildPartial()); | ||
2854 | break; | ||
2855 | } | ||
2856 | case 290: { | ||
2857 | global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder subBuilder = global::Sirikata.PB._PBJ_Internal.ExternalMessage.CreateBuilder(); | ||
2858 | if (HasExtmesser) { | ||
2859 | subBuilder.MergeFrom(Extmesser); | ||
2860 | } | ||
2861 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2862 | Extmesser = subBuilder.BuildPartial(); | ||
2863 | break; | ||
2864 | } | ||
2865 | } | ||
2866 | } | ||
2867 | } | ||
2868 | |||
2869 | |||
2870 | public bool HasXxd { | ||
2871 | get { return result.HasXxd; } | ||
2872 | } | ||
2873 | public double Xxd { | ||
2874 | get { return result.Xxd; } | ||
2875 | set { SetXxd(value); } | ||
2876 | } | ||
2877 | public Builder SetXxd(double value) { | ||
2878 | result.hasXxd = true; | ||
2879 | result.xxd_ = value; | ||
2880 | return this; | ||
2881 | } | ||
2882 | public Builder ClearXxd() { | ||
2883 | result.hasXxd = false; | ||
2884 | result.xxd_ = 10.3D; | ||
2885 | return this; | ||
2886 | } | ||
2887 | |||
2888 | public bool HasXxf { | ||
2889 | get { return result.HasXxf; } | ||
2890 | } | ||
2891 | public float Xxf { | ||
2892 | get { return result.Xxf; } | ||
2893 | set { SetXxf(value); } | ||
2894 | } | ||
2895 | public Builder SetXxf(float value) { | ||
2896 | result.hasXxf = true; | ||
2897 | result.xxf_ = value; | ||
2898 | return this; | ||
2899 | } | ||
2900 | public Builder ClearXxf() { | ||
2901 | result.hasXxf = false; | ||
2902 | result.xxf_ = 0F; | ||
2903 | return this; | ||
2904 | } | ||
2905 | |||
2906 | public bool HasXxu32 { | ||
2907 | get { return result.HasXxu32; } | ||
2908 | } | ||
2909 | [global::System.CLSCompliant(false)] | ||
2910 | public uint Xxu32 { | ||
2911 | get { return result.Xxu32; } | ||
2912 | set { SetXxu32(value); } | ||
2913 | } | ||
2914 | [global::System.CLSCompliant(false)] | ||
2915 | public Builder SetXxu32(uint value) { | ||
2916 | result.hasXxu32 = true; | ||
2917 | result.xxu32_ = value; | ||
2918 | return this; | ||
2919 | } | ||
2920 | public Builder ClearXxu32() { | ||
2921 | result.hasXxu32 = false; | ||
2922 | result.xxu32_ = 0; | ||
2923 | return this; | ||
2924 | } | ||
2925 | |||
2926 | public bool HasXxs { | ||
2927 | get { return result.HasXxs; } | ||
2928 | } | ||
2929 | public string Xxs { | ||
2930 | get { return result.Xxs; } | ||
2931 | set { SetXxs(value); } | ||
2932 | } | ||
2933 | public Builder SetXxs(string value) { | ||
2934 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2935 | result.hasXxs = true; | ||
2936 | result.xxs_ = value; | ||
2937 | return this; | ||
2938 | } | ||
2939 | public Builder ClearXxs() { | ||
2940 | result.hasXxs = false; | ||
2941 | result.xxs_ = ""; | ||
2942 | return this; | ||
2943 | } | ||
2944 | |||
2945 | public bool HasXxb { | ||
2946 | get { return result.HasXxb; } | ||
2947 | } | ||
2948 | public pb::ByteString Xxb { | ||
2949 | get { return result.Xxb; } | ||
2950 | set { SetXxb(value); } | ||
2951 | } | ||
2952 | public Builder SetXxb(pb::ByteString value) { | ||
2953 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2954 | result.hasXxb = true; | ||
2955 | result.xxb_ = value; | ||
2956 | return this; | ||
2957 | } | ||
2958 | public Builder ClearXxb() { | ||
2959 | result.hasXxb = false; | ||
2960 | result.xxb_ = pb::ByteString.Empty; | ||
2961 | return this; | ||
2962 | } | ||
2963 | |||
2964 | public pbc::IPopsicleList<string> XxssList { | ||
2965 | get { return result.xxss_; } | ||
2966 | } | ||
2967 | public int XxssCount { | ||
2968 | get { return result.XxssCount; } | ||
2969 | } | ||
2970 | public string GetXxss(int index) { | ||
2971 | return result.GetXxss(index); | ||
2972 | } | ||
2973 | public Builder SetXxss(int index, string value) { | ||
2974 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2975 | result.xxss_[index] = value; | ||
2976 | return this; | ||
2977 | } | ||
2978 | public Builder AddXxss(string value) { | ||
2979 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2980 | result.xxss_.Add(value); | ||
2981 | return this; | ||
2982 | } | ||
2983 | public Builder AddRangeXxss(scg::IEnumerable<string> values) { | ||
2984 | base.AddRange(values, result.xxss_); | ||
2985 | return this; | ||
2986 | } | ||
2987 | public Builder ClearXxss() { | ||
2988 | result.xxss_.Clear(); | ||
2989 | return this; | ||
2990 | } | ||
2991 | |||
2992 | public pbc::IPopsicleList<pb::ByteString> XxbbList { | ||
2993 | get { return result.xxbb_; } | ||
2994 | } | ||
2995 | public int XxbbCount { | ||
2996 | get { return result.XxbbCount; } | ||
2997 | } | ||
2998 | public pb::ByteString GetXxbb(int index) { | ||
2999 | return result.GetXxbb(index); | ||
3000 | } | ||
3001 | public Builder SetXxbb(int index, pb::ByteString value) { | ||
3002 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3003 | result.xxbb_[index] = value; | ||
3004 | return this; | ||
3005 | } | ||
3006 | public Builder AddXxbb(pb::ByteString value) { | ||
3007 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3008 | result.xxbb_.Add(value); | ||
3009 | return this; | ||
3010 | } | ||
3011 | public Builder AddRangeXxbb(scg::IEnumerable<pb::ByteString> values) { | ||
3012 | base.AddRange(values, result.xxbb_); | ||
3013 | return this; | ||
3014 | } | ||
3015 | public Builder ClearXxbb() { | ||
3016 | result.xxbb_.Clear(); | ||
3017 | return this; | ||
3018 | } | ||
3019 | |||
3020 | public pbc::IPopsicleList<float> XxffList { | ||
3021 | get { return result.xxff_; } | ||
3022 | } | ||
3023 | public int XxffCount { | ||
3024 | get { return result.XxffCount; } | ||
3025 | } | ||
3026 | public float GetXxff(int index) { | ||
3027 | return result.GetXxff(index); | ||
3028 | } | ||
3029 | public Builder SetXxff(int index, float value) { | ||
3030 | result.xxff_[index] = value; | ||
3031 | return this; | ||
3032 | } | ||
3033 | public Builder AddXxff(float value) { | ||
3034 | result.xxff_.Add(value); | ||
3035 | return this; | ||
3036 | } | ||
3037 | public Builder AddRangeXxff(scg::IEnumerable<float> values) { | ||
3038 | base.AddRange(values, result.xxff_); | ||
3039 | return this; | ||
3040 | } | ||
3041 | public Builder ClearXxff() { | ||
3042 | result.xxff_.Clear(); | ||
3043 | return this; | ||
3044 | } | ||
3045 | |||
3046 | public pbc::IPopsicleList<float> XxnnList { | ||
3047 | get { return result.xxnn_; } | ||
3048 | } | ||
3049 | public int XxnnCount { | ||
3050 | get { return result.XxnnCount; } | ||
3051 | } | ||
3052 | public float GetXxnn(int index) { | ||
3053 | return result.GetXxnn(index); | ||
3054 | } | ||
3055 | public Builder SetXxnn(int index, float value) { | ||
3056 | result.xxnn_[index] = value; | ||
3057 | return this; | ||
3058 | } | ||
3059 | public Builder AddXxnn(float value) { | ||
3060 | result.xxnn_.Add(value); | ||
3061 | return this; | ||
3062 | } | ||
3063 | public Builder AddRangeXxnn(scg::IEnumerable<float> values) { | ||
3064 | base.AddRange(values, result.xxnn_); | ||
3065 | return this; | ||
3066 | } | ||
3067 | public Builder ClearXxnn() { | ||
3068 | result.xxnn_.Clear(); | ||
3069 | return this; | ||
3070 | } | ||
3071 | |||
3072 | public bool HasXxfr { | ||
3073 | get { return result.HasXxfr; } | ||
3074 | } | ||
3075 | public float Xxfr { | ||
3076 | get { return result.Xxfr; } | ||
3077 | set { SetXxfr(value); } | ||
3078 | } | ||
3079 | public Builder SetXxfr(float value) { | ||
3080 | result.hasXxfr = true; | ||
3081 | result.xxfr_ = value; | ||
3082 | return this; | ||
3083 | } | ||
3084 | public Builder ClearXxfr() { | ||
3085 | result.hasXxfr = false; | ||
3086 | result.xxfr_ = 0F; | ||
3087 | return this; | ||
3088 | } | ||
3089 | |||
3090 | public pbc::IPopsicleList<float> NList { | ||
3091 | get { return result.n_; } | ||
3092 | } | ||
3093 | public int NCount { | ||
3094 | get { return result.NCount; } | ||
3095 | } | ||
3096 | public float GetN(int index) { | ||
3097 | return result.GetN(index); | ||
3098 | } | ||
3099 | public Builder SetN(int index, float value) { | ||
3100 | result.n_[index] = value; | ||
3101 | return this; | ||
3102 | } | ||
3103 | public Builder AddN(float value) { | ||
3104 | result.n_.Add(value); | ||
3105 | return this; | ||
3106 | } | ||
3107 | public Builder AddRangeN(scg::IEnumerable<float> values) { | ||
3108 | base.AddRange(values, result.n_); | ||
3109 | return this; | ||
3110 | } | ||
3111 | public Builder ClearN() { | ||
3112 | result.n_.Clear(); | ||
3113 | return this; | ||
3114 | } | ||
3115 | |||
3116 | public pbc::IPopsicleList<float> V2FList { | ||
3117 | get { return result.v2F_; } | ||
3118 | } | ||
3119 | public int V2FCount { | ||
3120 | get { return result.V2FCount; } | ||
3121 | } | ||
3122 | public float GetV2F(int index) { | ||
3123 | return result.GetV2F(index); | ||
3124 | } | ||
3125 | public Builder SetV2F(int index, float value) { | ||
3126 | result.v2F_[index] = value; | ||
3127 | return this; | ||
3128 | } | ||
3129 | public Builder AddV2F(float value) { | ||
3130 | result.v2F_.Add(value); | ||
3131 | return this; | ||
3132 | } | ||
3133 | public Builder AddRangeV2F(scg::IEnumerable<float> values) { | ||
3134 | base.AddRange(values, result.v2F_); | ||
3135 | return this; | ||
3136 | } | ||
3137 | public Builder ClearV2F() { | ||
3138 | result.v2F_.Clear(); | ||
3139 | return this; | ||
3140 | } | ||
3141 | |||
3142 | public pbc::IPopsicleList<double> V2DList { | ||
3143 | get { return result.v2D_; } | ||
3144 | } | ||
3145 | public int V2DCount { | ||
3146 | get { return result.V2DCount; } | ||
3147 | } | ||
3148 | public double GetV2D(int index) { | ||
3149 | return result.GetV2D(index); | ||
3150 | } | ||
3151 | public Builder SetV2D(int index, double value) { | ||
3152 | result.v2D_[index] = value; | ||
3153 | return this; | ||
3154 | } | ||
3155 | public Builder AddV2D(double value) { | ||
3156 | result.v2D_.Add(value); | ||
3157 | return this; | ||
3158 | } | ||
3159 | public Builder AddRangeV2D(scg::IEnumerable<double> values) { | ||
3160 | base.AddRange(values, result.v2D_); | ||
3161 | return this; | ||
3162 | } | ||
3163 | public Builder ClearV2D() { | ||
3164 | result.v2D_.Clear(); | ||
3165 | return this; | ||
3166 | } | ||
3167 | |||
3168 | public pbc::IPopsicleList<float> V3FList { | ||
3169 | get { return result.v3F_; } | ||
3170 | } | ||
3171 | public int V3FCount { | ||
3172 | get { return result.V3FCount; } | ||
3173 | } | ||
3174 | public float GetV3F(int index) { | ||
3175 | return result.GetV3F(index); | ||
3176 | } | ||
3177 | public Builder SetV3F(int index, float value) { | ||
3178 | result.v3F_[index] = value; | ||
3179 | return this; | ||
3180 | } | ||
3181 | public Builder AddV3F(float value) { | ||
3182 | result.v3F_.Add(value); | ||
3183 | return this; | ||
3184 | } | ||
3185 | public Builder AddRangeV3F(scg::IEnumerable<float> values) { | ||
3186 | base.AddRange(values, result.v3F_); | ||
3187 | return this; | ||
3188 | } | ||
3189 | public Builder ClearV3F() { | ||
3190 | result.v3F_.Clear(); | ||
3191 | return this; | ||
3192 | } | ||
3193 | |||
3194 | public pbc::IPopsicleList<double> V3DList { | ||
3195 | get { return result.v3D_; } | ||
3196 | } | ||
3197 | public int V3DCount { | ||
3198 | get { return result.V3DCount; } | ||
3199 | } | ||
3200 | public double GetV3D(int index) { | ||
3201 | return result.GetV3D(index); | ||
3202 | } | ||
3203 | public Builder SetV3D(int index, double value) { | ||
3204 | result.v3D_[index] = value; | ||
3205 | return this; | ||
3206 | } | ||
3207 | public Builder AddV3D(double value) { | ||
3208 | result.v3D_.Add(value); | ||
3209 | return this; | ||
3210 | } | ||
3211 | public Builder AddRangeV3D(scg::IEnumerable<double> values) { | ||
3212 | base.AddRange(values, result.v3D_); | ||
3213 | return this; | ||
3214 | } | ||
3215 | public Builder ClearV3D() { | ||
3216 | result.v3D_.Clear(); | ||
3217 | return this; | ||
3218 | } | ||
3219 | |||
3220 | public pbc::IPopsicleList<float> V4FList { | ||
3221 | get { return result.v4F_; } | ||
3222 | } | ||
3223 | public int V4FCount { | ||
3224 | get { return result.V4FCount; } | ||
3225 | } | ||
3226 | public float GetV4F(int index) { | ||
3227 | return result.GetV4F(index); | ||
3228 | } | ||
3229 | public Builder SetV4F(int index, float value) { | ||
3230 | result.v4F_[index] = value; | ||
3231 | return this; | ||
3232 | } | ||
3233 | public Builder AddV4F(float value) { | ||
3234 | result.v4F_.Add(value); | ||
3235 | return this; | ||
3236 | } | ||
3237 | public Builder AddRangeV4F(scg::IEnumerable<float> values) { | ||
3238 | base.AddRange(values, result.v4F_); | ||
3239 | return this; | ||
3240 | } | ||
3241 | public Builder ClearV4F() { | ||
3242 | result.v4F_.Clear(); | ||
3243 | return this; | ||
3244 | } | ||
3245 | |||
3246 | public pbc::IPopsicleList<double> V4DList { | ||
3247 | get { return result.v4D_; } | ||
3248 | } | ||
3249 | public int V4DCount { | ||
3250 | get { return result.V4DCount; } | ||
3251 | } | ||
3252 | public double GetV4D(int index) { | ||
3253 | return result.GetV4D(index); | ||
3254 | } | ||
3255 | public Builder SetV4D(int index, double value) { | ||
3256 | result.v4D_[index] = value; | ||
3257 | return this; | ||
3258 | } | ||
3259 | public Builder AddV4D(double value) { | ||
3260 | result.v4D_.Add(value); | ||
3261 | return this; | ||
3262 | } | ||
3263 | public Builder AddRangeV4D(scg::IEnumerable<double> values) { | ||
3264 | base.AddRange(values, result.v4D_); | ||
3265 | return this; | ||
3266 | } | ||
3267 | public Builder ClearV4D() { | ||
3268 | result.v4D_.Clear(); | ||
3269 | return this; | ||
3270 | } | ||
3271 | |||
3272 | public pbc::IPopsicleList<float> QList { | ||
3273 | get { return result.q_; } | ||
3274 | } | ||
3275 | public int QCount { | ||
3276 | get { return result.QCount; } | ||
3277 | } | ||
3278 | public float GetQ(int index) { | ||
3279 | return result.GetQ(index); | ||
3280 | } | ||
3281 | public Builder SetQ(int index, float value) { | ||
3282 | result.q_[index] = value; | ||
3283 | return this; | ||
3284 | } | ||
3285 | public Builder AddQ(float value) { | ||
3286 | result.q_.Add(value); | ||
3287 | return this; | ||
3288 | } | ||
3289 | public Builder AddRangeQ(scg::IEnumerable<float> values) { | ||
3290 | base.AddRange(values, result.q_); | ||
3291 | return this; | ||
3292 | } | ||
3293 | public Builder ClearQ() { | ||
3294 | result.q_.Clear(); | ||
3295 | return this; | ||
3296 | } | ||
3297 | |||
3298 | public bool HasU { | ||
3299 | get { return result.HasU; } | ||
3300 | } | ||
3301 | public pb::ByteString U { | ||
3302 | get { return result.U; } | ||
3303 | set { SetU(value); } | ||
3304 | } | ||
3305 | public Builder SetU(pb::ByteString value) { | ||
3306 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3307 | result.hasU = true; | ||
3308 | result.u_ = value; | ||
3309 | return this; | ||
3310 | } | ||
3311 | public Builder ClearU() { | ||
3312 | result.hasU = false; | ||
3313 | result.u_ = pb::ByteString.Empty; | ||
3314 | return this; | ||
3315 | } | ||
3316 | |||
3317 | public bool HasA { | ||
3318 | get { return result.HasA; } | ||
3319 | } | ||
3320 | public float A { | ||
3321 | get { return result.A; } | ||
3322 | set { SetA(value); } | ||
3323 | } | ||
3324 | public Builder SetA(float value) { | ||
3325 | result.hasA = true; | ||
3326 | result.a_ = value; | ||
3327 | return this; | ||
3328 | } | ||
3329 | public Builder ClearA() { | ||
3330 | result.hasA = false; | ||
3331 | result.a_ = 0F; | ||
3332 | return this; | ||
3333 | } | ||
3334 | |||
3335 | public bool HasT { | ||
3336 | get { return result.HasT; } | ||
3337 | } | ||
3338 | [global::System.CLSCompliant(false)] | ||
3339 | public ulong T { | ||
3340 | get { return result.T; } | ||
3341 | set { SetT(value); } | ||
3342 | } | ||
3343 | [global::System.CLSCompliant(false)] | ||
3344 | public Builder SetT(ulong value) { | ||
3345 | result.hasT = true; | ||
3346 | result.t_ = value; | ||
3347 | return this; | ||
3348 | } | ||
3349 | public Builder ClearT() { | ||
3350 | result.hasT = false; | ||
3351 | result.t_ = 0; | ||
3352 | return this; | ||
3353 | } | ||
3354 | |||
3355 | public bool HasD { | ||
3356 | get { return result.HasD; } | ||
3357 | } | ||
3358 | public long D { | ||
3359 | get { return result.D; } | ||
3360 | set { SetD(value); } | ||
3361 | } | ||
3362 | public Builder SetD(long value) { | ||
3363 | result.hasD = true; | ||
3364 | result.d_ = value; | ||
3365 | return this; | ||
3366 | } | ||
3367 | public Builder ClearD() { | ||
3368 | result.hasD = false; | ||
3369 | result.d_ = 0; | ||
3370 | return this; | ||
3371 | } | ||
3372 | |||
3373 | public bool HasF32 { | ||
3374 | get { return result.HasF32; } | ||
3375 | } | ||
3376 | [global::System.CLSCompliant(false)] | ||
3377 | public uint F32 { | ||
3378 | get { return result.F32; } | ||
3379 | set { SetF32(value); } | ||
3380 | } | ||
3381 | [global::System.CLSCompliant(false)] | ||
3382 | public Builder SetF32(uint value) { | ||
3383 | result.hasF32 = true; | ||
3384 | result.f32_ = value; | ||
3385 | return this; | ||
3386 | } | ||
3387 | public Builder ClearF32() { | ||
3388 | result.hasF32 = false; | ||
3389 | result.f32_ = 0; | ||
3390 | return this; | ||
3391 | } | ||
3392 | |||
3393 | public bool HasF64 { | ||
3394 | get { return result.HasF64; } | ||
3395 | } | ||
3396 | [global::System.CLSCompliant(false)] | ||
3397 | public ulong F64 { | ||
3398 | get { return result.F64; } | ||
3399 | set { SetF64(value); } | ||
3400 | } | ||
3401 | [global::System.CLSCompliant(false)] | ||
3402 | public Builder SetF64(ulong value) { | ||
3403 | result.hasF64 = true; | ||
3404 | result.f64_ = value; | ||
3405 | return this; | ||
3406 | } | ||
3407 | public Builder ClearF64() { | ||
3408 | result.hasF64 = false; | ||
3409 | result.f64_ = 0UL; | ||
3410 | return this; | ||
3411 | } | ||
3412 | |||
3413 | public pbc::IPopsicleList<float> BsfList { | ||
3414 | get { return result.bsf_; } | ||
3415 | } | ||
3416 | public int BsfCount { | ||
3417 | get { return result.BsfCount; } | ||
3418 | } | ||
3419 | public float GetBsf(int index) { | ||
3420 | return result.GetBsf(index); | ||
3421 | } | ||
3422 | public Builder SetBsf(int index, float value) { | ||
3423 | result.bsf_[index] = value; | ||
3424 | return this; | ||
3425 | } | ||
3426 | public Builder AddBsf(float value) { | ||
3427 | result.bsf_.Add(value); | ||
3428 | return this; | ||
3429 | } | ||
3430 | public Builder AddRangeBsf(scg::IEnumerable<float> values) { | ||
3431 | base.AddRange(values, result.bsf_); | ||
3432 | return this; | ||
3433 | } | ||
3434 | public Builder ClearBsf() { | ||
3435 | result.bsf_.Clear(); | ||
3436 | return this; | ||
3437 | } | ||
3438 | |||
3439 | public pbc::IPopsicleList<double> BsdList { | ||
3440 | get { return result.bsd_; } | ||
3441 | } | ||
3442 | public int BsdCount { | ||
3443 | get { return result.BsdCount; } | ||
3444 | } | ||
3445 | public double GetBsd(int index) { | ||
3446 | return result.GetBsd(index); | ||
3447 | } | ||
3448 | public Builder SetBsd(int index, double value) { | ||
3449 | result.bsd_[index] = value; | ||
3450 | return this; | ||
3451 | } | ||
3452 | public Builder AddBsd(double value) { | ||
3453 | result.bsd_.Add(value); | ||
3454 | return this; | ||
3455 | } | ||
3456 | public Builder AddRangeBsd(scg::IEnumerable<double> values) { | ||
3457 | base.AddRange(values, result.bsd_); | ||
3458 | return this; | ||
3459 | } | ||
3460 | public Builder ClearBsd() { | ||
3461 | result.bsd_.Clear(); | ||
3462 | return this; | ||
3463 | } | ||
3464 | |||
3465 | public pbc::IPopsicleList<float> BbfList { | ||
3466 | get { return result.bbf_; } | ||
3467 | } | ||
3468 | public int BbfCount { | ||
3469 | get { return result.BbfCount; } | ||
3470 | } | ||
3471 | public float GetBbf(int index) { | ||
3472 | return result.GetBbf(index); | ||
3473 | } | ||
3474 | public Builder SetBbf(int index, float value) { | ||
3475 | result.bbf_[index] = value; | ||
3476 | return this; | ||
3477 | } | ||
3478 | public Builder AddBbf(float value) { | ||
3479 | result.bbf_.Add(value); | ||
3480 | return this; | ||
3481 | } | ||
3482 | public Builder AddRangeBbf(scg::IEnumerable<float> values) { | ||
3483 | base.AddRange(values, result.bbf_); | ||
3484 | return this; | ||
3485 | } | ||
3486 | public Builder ClearBbf() { | ||
3487 | result.bbf_.Clear(); | ||
3488 | return this; | ||
3489 | } | ||
3490 | |||
3491 | public pbc::IPopsicleList<double> BbdList { | ||
3492 | get { return result.bbd_; } | ||
3493 | } | ||
3494 | public int BbdCount { | ||
3495 | get { return result.BbdCount; } | ||
3496 | } | ||
3497 | public double GetBbd(int index) { | ||
3498 | return result.GetBbd(index); | ||
3499 | } | ||
3500 | public Builder SetBbd(int index, double value) { | ||
3501 | result.bbd_[index] = value; | ||
3502 | return this; | ||
3503 | } | ||
3504 | public Builder AddBbd(double value) { | ||
3505 | result.bbd_.Add(value); | ||
3506 | return this; | ||
3507 | } | ||
3508 | public Builder AddRangeBbd(scg::IEnumerable<double> values) { | ||
3509 | base.AddRange(values, result.bbd_); | ||
3510 | return this; | ||
3511 | } | ||
3512 | public Builder ClearBbd() { | ||
3513 | result.bbd_.Clear(); | ||
3514 | return this; | ||
3515 | } | ||
3516 | |||
3517 | public bool HasE32 { | ||
3518 | get { return result.HasE32; } | ||
3519 | } | ||
3520 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32 E32 { | ||
3521 | get { return result.E32; } | ||
3522 | set { SetE32(value); } | ||
3523 | } | ||
3524 | public Builder SetE32(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32 value) { | ||
3525 | result.hasE32 = true; | ||
3526 | result.e32_ = value; | ||
3527 | return this; | ||
3528 | } | ||
3529 | public Builder ClearE32() { | ||
3530 | result.hasE32 = false; | ||
3531 | result.e32_ = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.Enum32.UNIVERSAL1; | ||
3532 | return this; | ||
3533 | } | ||
3534 | |||
3535 | public bool HasSubmes { | ||
3536 | get { return result.HasSubmes; } | ||
3537 | } | ||
3538 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage Submes { | ||
3539 | get { return result.Submes; } | ||
3540 | set { SetSubmes(value); } | ||
3541 | } | ||
3542 | public Builder SetSubmes(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage value) { | ||
3543 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3544 | result.hasSubmes = true; | ||
3545 | result.submes_ = value; | ||
3546 | return this; | ||
3547 | } | ||
3548 | public Builder SetSubmes(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder builderForValue) { | ||
3549 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3550 | result.hasSubmes = true; | ||
3551 | result.submes_ = builderForValue.Build(); | ||
3552 | return this; | ||
3553 | } | ||
3554 | public Builder MergeSubmes(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage value) { | ||
3555 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3556 | if (result.HasSubmes && | ||
3557 | result.submes_ != global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance) { | ||
3558 | result.submes_ = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.CreateBuilder(result.submes_).MergeFrom(value).BuildPartial(); | ||
3559 | } else { | ||
3560 | result.submes_ = value; | ||
3561 | } | ||
3562 | result.hasSubmes = true; | ||
3563 | return this; | ||
3564 | } | ||
3565 | public Builder ClearSubmes() { | ||
3566 | result.hasSubmes = false; | ||
3567 | result.submes_ = global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance; | ||
3568 | return this; | ||
3569 | } | ||
3570 | |||
3571 | public pbc::IPopsicleList<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage> SubmessersList { | ||
3572 | get { return result.submessers_; } | ||
3573 | } | ||
3574 | public int SubmessersCount { | ||
3575 | get { return result.SubmessersCount; } | ||
3576 | } | ||
3577 | public global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage GetSubmessers(int index) { | ||
3578 | return result.GetSubmessers(index); | ||
3579 | } | ||
3580 | public Builder SetSubmessers(int index, global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage value) { | ||
3581 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3582 | result.submessers_[index] = value; | ||
3583 | return this; | ||
3584 | } | ||
3585 | public Builder SetSubmessers(int index, global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder builderForValue) { | ||
3586 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3587 | result.submessers_[index] = builderForValue.Build(); | ||
3588 | return this; | ||
3589 | } | ||
3590 | public Builder AddSubmessers(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage value) { | ||
3591 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3592 | result.submessers_.Add(value); | ||
3593 | return this; | ||
3594 | } | ||
3595 | public Builder AddSubmessers(global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage.Builder builderForValue) { | ||
3596 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3597 | result.submessers_.Add(builderForValue.Build()); | ||
3598 | return this; | ||
3599 | } | ||
3600 | public Builder AddRangeSubmessers(scg::IEnumerable<global::Sirikata.PB._PBJ_Internal.TestMessage.Types.SubMessage> values) { | ||
3601 | base.AddRange(values, result.submessers_); | ||
3602 | return this; | ||
3603 | } | ||
3604 | public Builder ClearSubmessers() { | ||
3605 | result.submessers_.Clear(); | ||
3606 | return this; | ||
3607 | } | ||
3608 | |||
3609 | public bool HasSha { | ||
3610 | get { return result.HasSha; } | ||
3611 | } | ||
3612 | public pb::ByteString Sha { | ||
3613 | get { return result.Sha; } | ||
3614 | set { SetSha(value); } | ||
3615 | } | ||
3616 | public Builder SetSha(pb::ByteString value) { | ||
3617 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3618 | result.hasSha = true; | ||
3619 | result.sha_ = value; | ||
3620 | return this; | ||
3621 | } | ||
3622 | public Builder ClearSha() { | ||
3623 | result.hasSha = false; | ||
3624 | result.sha_ = pb::ByteString.Empty; | ||
3625 | return this; | ||
3626 | } | ||
3627 | |||
3628 | public pbc::IPopsicleList<pb::ByteString> ShasList { | ||
3629 | get { return result.shas_; } | ||
3630 | } | ||
3631 | public int ShasCount { | ||
3632 | get { return result.ShasCount; } | ||
3633 | } | ||
3634 | public pb::ByteString GetShas(int index) { | ||
3635 | return result.GetShas(index); | ||
3636 | } | ||
3637 | public Builder SetShas(int index, pb::ByteString value) { | ||
3638 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3639 | result.shas_[index] = value; | ||
3640 | return this; | ||
3641 | } | ||
3642 | public Builder AddShas(pb::ByteString value) { | ||
3643 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3644 | result.shas_.Add(value); | ||
3645 | return this; | ||
3646 | } | ||
3647 | public Builder AddRangeShas(scg::IEnumerable<pb::ByteString> values) { | ||
3648 | base.AddRange(values, result.shas_); | ||
3649 | return this; | ||
3650 | } | ||
3651 | public Builder ClearShas() { | ||
3652 | result.shas_.Clear(); | ||
3653 | return this; | ||
3654 | } | ||
3655 | |||
3656 | public bool HasExtmes { | ||
3657 | get { return result.HasExtmes; } | ||
3658 | } | ||
3659 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage Extmes { | ||
3660 | get { return result.Extmes; } | ||
3661 | set { SetExtmes(value); } | ||
3662 | } | ||
3663 | public Builder SetExtmes(global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3664 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3665 | result.hasExtmes = true; | ||
3666 | result.extmes_ = value; | ||
3667 | return this; | ||
3668 | } | ||
3669 | public Builder SetExtmes(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder builderForValue) { | ||
3670 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3671 | result.hasExtmes = true; | ||
3672 | result.extmes_ = builderForValue.Build(); | ||
3673 | return this; | ||
3674 | } | ||
3675 | public Builder MergeExtmes(global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3676 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3677 | if (result.HasExtmes && | ||
3678 | result.extmes_ != global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance) { | ||
3679 | result.extmes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.CreateBuilder(result.extmes_).MergeFrom(value).BuildPartial(); | ||
3680 | } else { | ||
3681 | result.extmes_ = value; | ||
3682 | } | ||
3683 | result.hasExtmes = true; | ||
3684 | return this; | ||
3685 | } | ||
3686 | public Builder ClearExtmes() { | ||
3687 | result.hasExtmes = false; | ||
3688 | result.extmes_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance; | ||
3689 | return this; | ||
3690 | } | ||
3691 | |||
3692 | public pbc::IPopsicleList<global::Sirikata.PB._PBJ_Internal.ExternalMessage> ExtmessersList { | ||
3693 | get { return result.extmessers_; } | ||
3694 | } | ||
3695 | public int ExtmessersCount { | ||
3696 | get { return result.ExtmessersCount; } | ||
3697 | } | ||
3698 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage GetExtmessers(int index) { | ||
3699 | return result.GetExtmessers(index); | ||
3700 | } | ||
3701 | public Builder SetExtmessers(int index, global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3702 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3703 | result.extmessers_[index] = value; | ||
3704 | return this; | ||
3705 | } | ||
3706 | public Builder SetExtmessers(int index, global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder builderForValue) { | ||
3707 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3708 | result.extmessers_[index] = builderForValue.Build(); | ||
3709 | return this; | ||
3710 | } | ||
3711 | public Builder AddExtmessers(global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3712 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3713 | result.extmessers_.Add(value); | ||
3714 | return this; | ||
3715 | } | ||
3716 | public Builder AddExtmessers(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder builderForValue) { | ||
3717 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3718 | result.extmessers_.Add(builderForValue.Build()); | ||
3719 | return this; | ||
3720 | } | ||
3721 | public Builder AddRangeExtmessers(scg::IEnumerable<global::Sirikata.PB._PBJ_Internal.ExternalMessage> values) { | ||
3722 | base.AddRange(values, result.extmessers_); | ||
3723 | return this; | ||
3724 | } | ||
3725 | public Builder ClearExtmessers() { | ||
3726 | result.extmessers_.Clear(); | ||
3727 | return this; | ||
3728 | } | ||
3729 | |||
3730 | public bool HasExtmesser { | ||
3731 | get { return result.HasExtmesser; } | ||
3732 | } | ||
3733 | public global::Sirikata.PB._PBJ_Internal.ExternalMessage Extmesser { | ||
3734 | get { return result.Extmesser; } | ||
3735 | set { SetExtmesser(value); } | ||
3736 | } | ||
3737 | public Builder SetExtmesser(global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3738 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3739 | result.hasExtmesser = true; | ||
3740 | result.extmesser_ = value; | ||
3741 | return this; | ||
3742 | } | ||
3743 | public Builder SetExtmesser(global::Sirikata.PB._PBJ_Internal.ExternalMessage.Builder builderForValue) { | ||
3744 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3745 | result.hasExtmesser = true; | ||
3746 | result.extmesser_ = builderForValue.Build(); | ||
3747 | return this; | ||
3748 | } | ||
3749 | public Builder MergeExtmesser(global::Sirikata.PB._PBJ_Internal.ExternalMessage value) { | ||
3750 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3751 | if (result.HasExtmesser && | ||
3752 | result.extmesser_ != global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance) { | ||
3753 | result.extmesser_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.CreateBuilder(result.extmesser_).MergeFrom(value).BuildPartial(); | ||
3754 | } else { | ||
3755 | result.extmesser_ = value; | ||
3756 | } | ||
3757 | result.hasExtmesser = true; | ||
3758 | return this; | ||
3759 | } | ||
3760 | public Builder ClearExtmesser() { | ||
3761 | result.hasExtmesser = false; | ||
3762 | result.extmesser_ = global::Sirikata.PB._PBJ_Internal.ExternalMessage.DefaultInstance; | ||
3763 | return this; | ||
3764 | } | ||
3765 | } | ||
3766 | static TestMessage() { | ||
3767 | object.ReferenceEquals(global::Sirikata.PB._PBJ_Internal.Test.Descriptor, null); | ||
3768 | } | ||
3769 | } | ||
3770 | |||
3771 | #endregion | ||
3772 | |||
3773 | } | ||