Test.pbj.cs 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using pbd = global::Google.ProtocolBuffers.Descriptors;
  28. using pb = global::Google.ProtocolBuffers;
  29. namespace Sirikata.PB {
  30. public class ExternalMessage : PBJ.IMessage {
  31. protected _PBJ_Internal.ExternalMessage super;
  32. public _PBJ_Internal.ExternalMessage _PBJSuper{ get { return super;} }
  33. public ExternalMessage() {
  34. super=new _PBJ_Internal.ExternalMessage();
  35. }
  36. public ExternalMessage(_PBJ_Internal.ExternalMessage reference) {
  37. super=reference;
  38. }
  39. public static ExternalMessage defaultInstance= new ExternalMessage (_PBJ_Internal.ExternalMessage.DefaultInstance);
  40. public static ExternalMessage DefaultInstance{
  41. get {return defaultInstance;}
  42. }
  43. public static pbd.MessageDescriptor Descriptor {
  44. get { return _PBJ_Internal.ExternalMessage.Descriptor; } }
  45. public static class Types {
  46. public class SubMessage : PBJ.IMessage {
  47. protected _PBJ_Internal.ExternalMessage.Types.SubMessage super;
  48. public _PBJ_Internal.ExternalMessage.Types.SubMessage _PBJSuper{ get { return super;} }
  49. public SubMessage() {
  50. super=new _PBJ_Internal.ExternalMessage.Types.SubMessage();
  51. }
  52. public SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage reference) {
  53. super=reference;
  54. }
  55. public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance);
  56. public static SubMessage DefaultInstance{
  57. get {return defaultInstance;}
  58. }
  59. public static pbd.MessageDescriptor Descriptor {
  60. get { return _PBJ_Internal.ExternalMessage.Types.SubMessage.Descriptor; } }
  61. public static class Types {
  62. }
  63. public static bool WithinReservedFieldTagRange(int field_tag) {
  64. return false;
  65. }
  66. public static bool WithinExtensionFieldTagRange(int field_tag) {
  67. return false;
  68. }
  69. public const int SubuuidFieldTag=1;
  70. public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
  71. public PBJ.UUID Subuuid{ get {
  72. if (HasSubuuid) {
  73. return PBJ._PBJ.CastUuid(super.Subuuid);
  74. } else {
  75. return PBJ._PBJ.CastUuid();
  76. }
  77. }
  78. }
  79. public const int SubvectorFieldTag=2;
  80. public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
  81. public PBJ.Vector3d Subvector{ get {
  82. int index=0;
  83. if (HasSubvector) {
  84. return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
  85. } else {
  86. return PBJ._PBJ.CastVector3d();
  87. }
  88. }
  89. }
  90. public const int SubdurationFieldTag=3;
  91. public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
  92. public PBJ.Duration Subduration{ get {
  93. if (HasSubduration) {
  94. return PBJ._PBJ.CastDuration(super.Subduration);
  95. } else {
  96. return PBJ._PBJ.CastDuration();
  97. }
  98. }
  99. }
  100. public const int SubnormalFieldTag=4;
  101. public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
  102. public PBJ.Vector3f Subnormal{ get {
  103. int index=0;
  104. if (HasSubnormal) {
  105. return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
  106. } else {
  107. return PBJ._PBJ.CastNormal();
  108. }
  109. }
  110. }
  111. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  112. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  113. public static Builder CreateBuilder() { return new Builder(); }
  114. public static Builder CreateBuilder(SubMessage prototype) {
  115. return (Builder)new Builder().MergeFrom(prototype);
  116. }
  117. public static SubMessage ParseFrom(pb::ByteString data) {
  118. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
  119. }
  120. public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  121. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
  122. }
  123. public static SubMessage ParseFrom(byte[] data) {
  124. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
  125. }
  126. public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  127. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
  128. }
  129. public static SubMessage ParseFrom(global::System.IO.Stream data) {
  130. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
  131. }
  132. public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  133. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
  134. }
  135. public static SubMessage ParseFrom(pb::CodedInputStream data) {
  136. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
  137. }
  138. public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  139. return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
  140. }
  141. protected override bool _HasAllPBJFields{ get {
  142. return true
  143. ;
  144. } }
  145. public bool IsInitialized { get {
  146. return super.IsInitialized&&_HasAllPBJFields;
  147. } }
  148. public class Builder : global::PBJ.IMessage.IBuilder{
  149. protected override bool _HasAllPBJFields{ get {
  150. return true
  151. ;
  152. } }
  153. public bool IsInitialized { get {
  154. return super.IsInitialized&&_HasAllPBJFields;
  155. } }
  156. protected _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder super;
  157. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  158. public _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
  159. public Builder() {super = new _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder();}
  160. public Builder(_PBJ_Internal.ExternalMessage.Types.SubMessage.Builder other) {
  161. super=other;
  162. }
  163. public Builder Clone() {return new Builder(super.Clone());}
  164. public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  165. public Builder Clear() {super.Clear();return this;}
  166. public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
  167. public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
  168. public pbd::MessageDescriptor DescriptorForType {
  169. get { return SubMessage.Descriptor; } }
  170. public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
  171. public const int SubuuidFieldTag=1;
  172. public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
  173. public PBJ.UUID Subuuid{ get {
  174. if (HasSubuuid) {
  175. return PBJ._PBJ.CastUuid(super.Subuuid);
  176. } else {
  177. return PBJ._PBJ.CastUuid();
  178. }
  179. }
  180. set {
  181. super.Subuuid=(PBJ._PBJ.Construct(value));
  182. }
  183. }
  184. public Builder ClearSubvector() { super.ClearSubvector();return this;}
  185. public const int SubvectorFieldTag=2;
  186. public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
  187. public PBJ.Vector3d Subvector{ get {
  188. int index=0;
  189. if (HasSubvector) {
  190. return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
  191. } else {
  192. return PBJ._PBJ.CastVector3d();
  193. }
  194. }
  195. set {
  196. super.ClearSubvector();
  197. double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
  198. super.AddSubvector(_PBJtempArray[0]);
  199. super.AddSubvector(_PBJtempArray[1]);
  200. super.AddSubvector(_PBJtempArray[2]);
  201. }
  202. }
  203. public Builder ClearSubduration() { super.ClearSubduration();return this;}
  204. public const int SubdurationFieldTag=3;
  205. public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
  206. public PBJ.Duration Subduration{ get {
  207. if (HasSubduration) {
  208. return PBJ._PBJ.CastDuration(super.Subduration);
  209. } else {
  210. return PBJ._PBJ.CastDuration();
  211. }
  212. }
  213. set {
  214. super.Subduration=(PBJ._PBJ.Construct(value));
  215. }
  216. }
  217. public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
  218. public const int SubnormalFieldTag=4;
  219. public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
  220. public PBJ.Vector3f Subnormal{ get {
  221. int index=0;
  222. if (HasSubnormal) {
  223. return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
  224. } else {
  225. return PBJ._PBJ.CastNormal();
  226. }
  227. }
  228. set {
  229. super.ClearSubnormal();
  230. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  231. super.AddSubnormal(_PBJtempArray[0]);
  232. super.AddSubnormal(_PBJtempArray[1]);
  233. }
  234. }
  235. }
  236. }
  237. }
  238. public static bool WithinReservedFieldTagRange(int field_tag) {
  239. return false;
  240. }
  241. public static bool WithinExtensionFieldTagRange(int field_tag) {
  242. return false;
  243. }
  244. public const int IsTrueFieldTag=40;
  245. public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
  246. public bool IsTrue{ get {
  247. if (HasIsTrue) {
  248. return PBJ._PBJ.CastBool(super.IsTrue);
  249. } else {
  250. return true;
  251. }
  252. }
  253. }
  254. public const int V2FFieldTag=2;
  255. public bool HasV2F{ get {return super.V2FCount>=2;} }
  256. public PBJ.Vector2f V2F{ get {
  257. int index=0;
  258. if (HasV2F) {
  259. return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
  260. } else {
  261. return PBJ._PBJ.CastVector2f();
  262. }
  263. }
  264. }
  265. public const int SubMesFieldTag=30;
  266. public bool HasSubMes{ get {return super.HasSubMes;} }
  267. public Types.SubMessage SubMes{ get {
  268. if (HasSubMes) {
  269. return new Types.SubMessage(super.SubMes);
  270. } else {
  271. return new Types.SubMessage();
  272. }
  273. }
  274. }
  275. public const int SubmessersFieldTag=31;
  276. public int SubmessersCount { get { return super.SubmessersCount;} }
  277. public bool HasSubmessers(int index) {return true;}
  278. public Types.SubMessage Submessers(int index) {
  279. return new Types.SubMessage(super.GetSubmessers(index));
  280. }
  281. public const int ShaFieldTag=32;
  282. public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
  283. public PBJ.SHA256 Sha{ get {
  284. if (HasSha) {
  285. return PBJ._PBJ.CastSha256(super.Sha);
  286. } else {
  287. return PBJ._PBJ.CastSha256();
  288. }
  289. }
  290. }
  291. public const int ShasFieldTag=33;
  292. public int ShasCount { get { return super.ShasCount;} }
  293. public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
  294. public PBJ.SHA256 Shas(int index) {
  295. return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
  296. }
  297. public const int V3FFieldTag=4;
  298. public bool HasV3F{ get {return super.V3FCount>=3;} }
  299. public PBJ.Vector3f V3F{ get {
  300. int index=0;
  301. if (HasV3F) {
  302. return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
  303. } else {
  304. return PBJ._PBJ.CastVector3f();
  305. }
  306. }
  307. }
  308. public const int V3FfFieldTag=5;
  309. public int V3FfCount { get { return super.V3FfCount/3;} }
  310. public bool HasV3Ff(int index) { return true; }
  311. public PBJ.Vector3f GetV3Ff(int index) {
  312. if (HasV3Ff(index)) {
  313. return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
  314. } else {
  315. return PBJ._PBJ.CastVector3f();
  316. }
  317. }
  318. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  319. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  320. public static Builder CreateBuilder() { return new Builder(); }
  321. public static Builder CreateBuilder(ExternalMessage prototype) {
  322. return (Builder)new Builder().MergeFrom(prototype);
  323. }
  324. public static ExternalMessage ParseFrom(pb::ByteString data) {
  325. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
  326. }
  327. public static ExternalMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  328. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
  329. }
  330. public static ExternalMessage ParseFrom(byte[] data) {
  331. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
  332. }
  333. public static ExternalMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  334. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
  335. }
  336. public static ExternalMessage ParseFrom(global::System.IO.Stream data) {
  337. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
  338. }
  339. public static ExternalMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  340. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
  341. }
  342. public static ExternalMessage ParseFrom(pb::CodedInputStream data) {
  343. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
  344. }
  345. public static ExternalMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  346. return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
  347. }
  348. protected override bool _HasAllPBJFields{ get {
  349. return true
  350. &&HasV3F
  351. ;
  352. } }
  353. public bool IsInitialized { get {
  354. return super.IsInitialized&&_HasAllPBJFields;
  355. } }
  356. public class Builder : global::PBJ.IMessage.IBuilder{
  357. protected override bool _HasAllPBJFields{ get {
  358. return true
  359. &&HasV3F
  360. ;
  361. } }
  362. public bool IsInitialized { get {
  363. return super.IsInitialized&&_HasAllPBJFields;
  364. } }
  365. protected _PBJ_Internal.ExternalMessage.Builder super;
  366. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  367. public _PBJ_Internal.ExternalMessage.Builder _PBJSuper{ get { return super;} }
  368. public Builder() {super = new _PBJ_Internal.ExternalMessage.Builder();}
  369. public Builder(_PBJ_Internal.ExternalMessage.Builder other) {
  370. super=other;
  371. }
  372. public Builder Clone() {return new Builder(super.Clone());}
  373. public Builder MergeFrom(ExternalMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  374. public Builder Clear() {super.Clear();return this;}
  375. public ExternalMessage BuildPartial() {return new ExternalMessage(super.BuildPartial());}
  376. public ExternalMessage Build() {if (_HasAllPBJFields) return new ExternalMessage(super.Build());return null;}
  377. public pbd::MessageDescriptor DescriptorForType {
  378. get { return ExternalMessage.Descriptor; } }
  379. public Builder ClearIsTrue() { super.ClearIsTrue();return this;}
  380. public const int IsTrueFieldTag=40;
  381. public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
  382. public bool IsTrue{ get {
  383. if (HasIsTrue) {
  384. return PBJ._PBJ.CastBool(super.IsTrue);
  385. } else {
  386. return true;
  387. }
  388. }
  389. set {
  390. super.IsTrue=(PBJ._PBJ.Construct(value));
  391. }
  392. }
  393. public Builder ClearV2F() { super.ClearV2F();return this;}
  394. public const int V2FFieldTag=2;
  395. public bool HasV2F{ get {return super.V2FCount>=2;} }
  396. public PBJ.Vector2f V2F{ get {
  397. int index=0;
  398. if (HasV2F) {
  399. return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
  400. } else {
  401. return PBJ._PBJ.CastVector2f();
  402. }
  403. }
  404. set {
  405. super.ClearV2F();
  406. float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
  407. super.AddV2F(_PBJtempArray[0]);
  408. super.AddV2F(_PBJtempArray[1]);
  409. }
  410. }
  411. public Builder ClearSubMes() { super.ClearSubMes();return this;}
  412. public const int SubMesFieldTag=30;
  413. public bool HasSubMes{ get {return super.HasSubMes;} }
  414. public Types.SubMessage SubMes{ get {
  415. if (HasSubMes) {
  416. return new Types.SubMessage(super.SubMes);
  417. } else {
  418. return new Types.SubMessage();
  419. }
  420. }
  421. set {
  422. super.SubMes=value._PBJSuper;
  423. }
  424. }
  425. public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
  426. public Builder SetSubmessers(int index,Types.SubMessage value) {
  427. super.SetSubmessers(index,value._PBJSuper);
  428. return this;
  429. }
  430. public const int SubmessersFieldTag=31;
  431. public int SubmessersCount { get { return super.SubmessersCount;} }
  432. public bool HasSubmessers(int index) {return true;}
  433. public Types.SubMessage Submessers(int index) {
  434. return new Types.SubMessage(super.GetSubmessers(index));
  435. }
  436. public Builder AddSubmessers(Types.SubMessage value) {
  437. super.AddSubmessers(value._PBJSuper);
  438. return this;
  439. }
  440. public Builder ClearSha() { super.ClearSha();return this;}
  441. public const int ShaFieldTag=32;
  442. public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
  443. public PBJ.SHA256 Sha{ get {
  444. if (HasSha) {
  445. return PBJ._PBJ.CastSha256(super.Sha);
  446. } else {
  447. return PBJ._PBJ.CastSha256();
  448. }
  449. }
  450. set {
  451. super.Sha=(PBJ._PBJ.Construct(value));
  452. }
  453. }
  454. public Builder ClearShas() { super.ClearShas();return this;}
  455. public Builder SetShas(int index, PBJ.SHA256 value) {
  456. super.SetShas(index,PBJ._PBJ.Construct(value));
  457. return this;
  458. }
  459. public const int ShasFieldTag=33;
  460. public int ShasCount { get { return super.ShasCount;} }
  461. public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
  462. public PBJ.SHA256 Shas(int index) {
  463. return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
  464. }
  465. public Builder AddShas(PBJ.SHA256 value) {
  466. super.AddShas(PBJ._PBJ.Construct(value));
  467. return this;
  468. }
  469. public Builder ClearV3F() { super.ClearV3F();return this;}
  470. public const int V3FFieldTag=4;
  471. public bool HasV3F{ get {return super.V3FCount>=3;} }
  472. public PBJ.Vector3f V3F{ get {
  473. int index=0;
  474. if (HasV3F) {
  475. return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
  476. } else {
  477. return PBJ._PBJ.CastVector3f();
  478. }
  479. }
  480. set {
  481. super.ClearV3F();
  482. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  483. super.AddV3F(_PBJtempArray[0]);
  484. super.AddV3F(_PBJtempArray[1]);
  485. super.AddV3F(_PBJtempArray[2]);
  486. }
  487. }
  488. public Builder ClearV3Ff() { super.ClearV3Ff();return this;}
  489. public const int V3FfFieldTag=5;
  490. public int V3FfCount { get { return super.V3FfCount/3;} }
  491. public bool HasV3Ff(int index) { return true; }
  492. public PBJ.Vector3f GetV3Ff(int index) {
  493. if (HasV3Ff(index)) {
  494. return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
  495. } else {
  496. return PBJ._PBJ.CastVector3f();
  497. }
  498. }
  499. public Builder AddV3Ff(PBJ.Vector3f value) {
  500. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  501. super.AddV3Ff(_PBJtempArray[0]);
  502. super.AddV3Ff(_PBJtempArray[1]);
  503. super.AddV3Ff(_PBJtempArray[2]);
  504. return this;
  505. }
  506. public Builder SetV3Ff(int index,PBJ.Vector3f value) {
  507. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  508. super.SetV3Ff(index*3+0,_PBJtempArray[0]);
  509. super.SetV3Ff(index*3+1,_PBJtempArray[1]);
  510. super.SetV3Ff(index*3+2,_PBJtempArray[2]);
  511. return this;
  512. }
  513. }
  514. }
  515. }
  516. namespace Sirikata.PB {
  517. public class TestMessage : PBJ.IMessage {
  518. protected _PBJ_Internal.TestMessage super;
  519. public _PBJ_Internal.TestMessage _PBJSuper{ get { return super;} }
  520. public TestMessage() {
  521. super=new _PBJ_Internal.TestMessage();
  522. }
  523. public TestMessage(_PBJ_Internal.TestMessage reference) {
  524. super=reference;
  525. }
  526. public static TestMessage defaultInstance= new TestMessage (_PBJ_Internal.TestMessage.DefaultInstance);
  527. public static TestMessage DefaultInstance{
  528. get {return defaultInstance;}
  529. }
  530. public static pbd.MessageDescriptor Descriptor {
  531. get { return _PBJ_Internal.TestMessage.Descriptor; } }
  532. public static class Types {
  533. public enum Flagsf32 {
  534. UNIVERSA=_PBJ_Internal.TestMessage.Types.Flagsf32.UNIVERSA,
  535. WE=_PBJ_Internal.TestMessage.Types.Flagsf32.WE,
  536. IMAGE=_PBJ_Internal.TestMessage.Types.Flagsf32.IMAGE,
  537. LOCA=_PBJ_Internal.TestMessage.Types.Flagsf32.LOCA
  538. };
  539. public enum Flagsf64 {
  540. UNIVERSAL=_PBJ_Internal.TestMessage.Types.Flagsf64.UNIVERSAL,
  541. WEB=_PBJ_Internal.TestMessage.Types.Flagsf64.WEB,
  542. IMAGES=_PBJ_Internal.TestMessage.Types.Flagsf64.IMAGES,
  543. LOCAL=_PBJ_Internal.TestMessage.Types.Flagsf64.LOCAL
  544. };
  545. public enum Enum32 {
  546. UNIVERSAL1=_PBJ_Internal.TestMessage.Types.Enum32.UNIVERSAL1,
  547. WEB1=_PBJ_Internal.TestMessage.Types.Enum32.WEB1,
  548. IMAGES1=_PBJ_Internal.TestMessage.Types.Enum32.IMAGES1,
  549. LOCAL1=_PBJ_Internal.TestMessage.Types.Enum32.LOCAL1
  550. };
  551. public class SubMessage : PBJ.IMessage {
  552. protected _PBJ_Internal.TestMessage.Types.SubMessage super;
  553. public _PBJ_Internal.TestMessage.Types.SubMessage _PBJSuper{ get { return super;} }
  554. public SubMessage() {
  555. super=new _PBJ_Internal.TestMessage.Types.SubMessage();
  556. }
  557. public SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage reference) {
  558. super=reference;
  559. }
  560. public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance);
  561. public static SubMessage DefaultInstance{
  562. get {return defaultInstance;}
  563. }
  564. public static pbd.MessageDescriptor Descriptor {
  565. get { return _PBJ_Internal.TestMessage.Types.SubMessage.Descriptor; } }
  566. public static class Types {
  567. }
  568. public static bool WithinReservedFieldTagRange(int field_tag) {
  569. return false;
  570. }
  571. public static bool WithinExtensionFieldTagRange(int field_tag) {
  572. return false;
  573. }
  574. public const int SubuuidFieldTag=1;
  575. public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
  576. public PBJ.UUID Subuuid{ get {
  577. if (HasSubuuid) {
  578. return PBJ._PBJ.CastUuid(super.Subuuid);
  579. } else {
  580. return PBJ._PBJ.CastUuid();
  581. }
  582. }
  583. }
  584. public const int SubvectorFieldTag=2;
  585. public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
  586. public PBJ.Vector3d Subvector{ get {
  587. int index=0;
  588. if (HasSubvector) {
  589. return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
  590. } else {
  591. return PBJ._PBJ.CastVector3d();
  592. }
  593. }
  594. }
  595. public const int SubdurationFieldTag=3;
  596. public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
  597. public PBJ.Duration Subduration{ get {
  598. if (HasSubduration) {
  599. return PBJ._PBJ.CastDuration(super.Subduration);
  600. } else {
  601. return PBJ._PBJ.CastDuration();
  602. }
  603. }
  604. }
  605. public const int SubnormalFieldTag=4;
  606. public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
  607. public PBJ.Vector3f Subnormal{ get {
  608. int index=0;
  609. if (HasSubnormal) {
  610. return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
  611. } else {
  612. return PBJ._PBJ.CastNormal();
  613. }
  614. }
  615. }
  616. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  617. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  618. public static Builder CreateBuilder() { return new Builder(); }
  619. public static Builder CreateBuilder(SubMessage prototype) {
  620. return (Builder)new Builder().MergeFrom(prototype);
  621. }
  622. public static SubMessage ParseFrom(pb::ByteString data) {
  623. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
  624. }
  625. public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  626. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
  627. }
  628. public static SubMessage ParseFrom(byte[] data) {
  629. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
  630. }
  631. public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  632. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
  633. }
  634. public static SubMessage ParseFrom(global::System.IO.Stream data) {
  635. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
  636. }
  637. public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  638. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
  639. }
  640. public static SubMessage ParseFrom(pb::CodedInputStream data) {
  641. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
  642. }
  643. public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  644. return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
  645. }
  646. protected override bool _HasAllPBJFields{ get {
  647. return true
  648. ;
  649. } }
  650. public bool IsInitialized { get {
  651. return super.IsInitialized&&_HasAllPBJFields;
  652. } }
  653. public class Builder : global::PBJ.IMessage.IBuilder{
  654. protected override bool _HasAllPBJFields{ get {
  655. return true
  656. ;
  657. } }
  658. public bool IsInitialized { get {
  659. return super.IsInitialized&&_HasAllPBJFields;
  660. } }
  661. protected _PBJ_Internal.TestMessage.Types.SubMessage.Builder super;
  662. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  663. public _PBJ_Internal.TestMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
  664. public Builder() {super = new _PBJ_Internal.TestMessage.Types.SubMessage.Builder();}
  665. public Builder(_PBJ_Internal.TestMessage.Types.SubMessage.Builder other) {
  666. super=other;
  667. }
  668. public Builder Clone() {return new Builder(super.Clone());}
  669. public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  670. public Builder Clear() {super.Clear();return this;}
  671. public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
  672. public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
  673. public pbd::MessageDescriptor DescriptorForType {
  674. get { return SubMessage.Descriptor; } }
  675. public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
  676. public const int SubuuidFieldTag=1;
  677. public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
  678. public PBJ.UUID Subuuid{ get {
  679. if (HasSubuuid) {
  680. return PBJ._PBJ.CastUuid(super.Subuuid);
  681. } else {
  682. return PBJ._PBJ.CastUuid();
  683. }
  684. }
  685. set {
  686. super.Subuuid=(PBJ._PBJ.Construct(value));
  687. }
  688. }
  689. public Builder ClearSubvector() { super.ClearSubvector();return this;}
  690. public const int SubvectorFieldTag=2;
  691. public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
  692. public PBJ.Vector3d Subvector{ get {
  693. int index=0;
  694. if (HasSubvector) {
  695. return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
  696. } else {
  697. return PBJ._PBJ.CastVector3d();
  698. }
  699. }
  700. set {
  701. super.ClearSubvector();
  702. double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
  703. super.AddSubvector(_PBJtempArray[0]);
  704. super.AddSubvector(_PBJtempArray[1]);
  705. super.AddSubvector(_PBJtempArray[2]);
  706. }
  707. }
  708. public Builder ClearSubduration() { super.ClearSubduration();return this;}
  709. public const int SubdurationFieldTag=3;
  710. public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
  711. public PBJ.Duration Subduration{ get {
  712. if (HasSubduration) {
  713. return PBJ._PBJ.CastDuration(super.Subduration);
  714. } else {
  715. return PBJ._PBJ.CastDuration();
  716. }
  717. }
  718. set {
  719. super.Subduration=(PBJ._PBJ.Construct(value));
  720. }
  721. }
  722. public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
  723. public const int SubnormalFieldTag=4;
  724. public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
  725. public PBJ.Vector3f Subnormal{ get {
  726. int index=0;
  727. if (HasSubnormal) {
  728. return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
  729. } else {
  730. return PBJ._PBJ.CastNormal();
  731. }
  732. }
  733. set {
  734. super.ClearSubnormal();
  735. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  736. super.AddSubnormal(_PBJtempArray[0]);
  737. super.AddSubnormal(_PBJtempArray[1]);
  738. }
  739. }
  740. }
  741. }
  742. }
  743. public static bool WithinReservedFieldTagRange(int field_tag) {
  744. return false;
  745. }
  746. public static bool WithinExtensionFieldTagRange(int field_tag) {
  747. return false||(field_tag>=100&&field_tag<=199);
  748. }
  749. public const int XxdFieldTag=20;
  750. public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
  751. public double Xxd{ get {
  752. if (HasXxd) {
  753. return PBJ._PBJ.CastDouble(super.Xxd);
  754. } else {
  755. return 10.3;
  756. }
  757. }
  758. }
  759. public const int XxfFieldTag=21;
  760. public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
  761. public float Xxf{ get {
  762. if (HasXxf) {
  763. return PBJ._PBJ.CastFloat(super.Xxf);
  764. } else {
  765. return PBJ._PBJ.CastFloat();
  766. }
  767. }
  768. }
  769. public const int Xxu32FieldTag=22;
  770. public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
  771. public uint Xxu32{ get {
  772. if (HasXxu32) {
  773. return PBJ._PBJ.CastUint32(super.Xxu32);
  774. } else {
  775. return PBJ._PBJ.CastUint32();
  776. }
  777. }
  778. }
  779. public const int XxsFieldTag=23;
  780. public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
  781. public string Xxs{ get {
  782. if (HasXxs) {
  783. return PBJ._PBJ.CastString(super.Xxs);
  784. } else {
  785. return PBJ._PBJ.CastString();
  786. }
  787. }
  788. }
  789. public const int XxbFieldTag=24;
  790. public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
  791. public pb::ByteString Xxb{ get {
  792. if (HasXxb) {
  793. return PBJ._PBJ.CastBytes(super.Xxb);
  794. } else {
  795. return PBJ._PBJ.CastBytes();
  796. }
  797. }
  798. }
  799. public const int XxssFieldTag=25;
  800. public int XxssCount { get { return super.XxssCount;} }
  801. public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
  802. public string Xxss(int index) {
  803. return (string)PBJ._PBJ.CastString(super.GetXxss(index));
  804. }
  805. public const int XxbbFieldTag=26;
  806. public int XxbbCount { get { return super.XxbbCount;} }
  807. public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
  808. public pb::ByteString Xxbb(int index) {
  809. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
  810. }
  811. public const int XxffFieldTag=27;
  812. public int XxffCount { get { return super.XxffCount;} }
  813. public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
  814. public float Xxff(int index) {
  815. return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
  816. }
  817. public const int XxnnFieldTag=29;
  818. public int XxnnCount { get { return super.XxnnCount/2;} }
  819. public bool HasXxnn(int index) { return true; }
  820. public PBJ.Vector3f GetXxnn(int index) {
  821. if (HasXxnn(index)) {
  822. return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
  823. } else {
  824. return PBJ._PBJ.CastNormal();
  825. }
  826. }
  827. public const int XxfrFieldTag=28;
  828. public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
  829. public float Xxfr{ get {
  830. if (HasXxfr) {
  831. return PBJ._PBJ.CastFloat(super.Xxfr);
  832. } else {
  833. return PBJ._PBJ.CastFloat();
  834. }
  835. }
  836. }
  837. public const int NFieldTag=1;
  838. public bool HasN{ get {return super.NCount>=2;} }
  839. public PBJ.Vector3f N{ get {
  840. int index=0;
  841. if (HasN) {
  842. return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
  843. } else {
  844. return PBJ._PBJ.CastNormal();
  845. }
  846. }
  847. }
  848. public const int V2FFieldTag=2;
  849. public bool HasV2F{ get {return super.V2FCount>=2;} }
  850. public PBJ.Vector2f V2F{ get {
  851. int index=0;
  852. if (HasV2F) {
  853. return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
  854. } else {
  855. return PBJ._PBJ.CastVector2f();
  856. }
  857. }
  858. }
  859. public const int V2DFieldTag=3;
  860. public bool HasV2D{ get {return super.V2DCount>=2;} }
  861. public PBJ.Vector2d V2D{ get {
  862. int index=0;
  863. if (HasV2D) {
  864. return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
  865. } else {
  866. return PBJ._PBJ.CastVector2d();
  867. }
  868. }
  869. }
  870. public const int V3FFieldTag=4;
  871. public bool HasV3F{ get {return super.V3FCount>=3;} }
  872. public PBJ.Vector3f V3F{ get {
  873. int index=0;
  874. if (HasV3F) {
  875. return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
  876. } else {
  877. return PBJ._PBJ.CastVector3f();
  878. }
  879. }
  880. }
  881. public const int V3DFieldTag=5;
  882. public bool HasV3D{ get {return super.V3DCount>=3;} }
  883. public PBJ.Vector3d V3D{ get {
  884. int index=0;
  885. if (HasV3D) {
  886. return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
  887. } else {
  888. return PBJ._PBJ.CastVector3d();
  889. }
  890. }
  891. }
  892. public const int V4FFieldTag=6;
  893. public bool HasV4F{ get {return super.V4FCount>=4;} }
  894. public PBJ.Vector4f V4F{ get {
  895. int index=0;
  896. if (HasV4F) {
  897. return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
  898. } else {
  899. return PBJ._PBJ.CastVector4f();
  900. }
  901. }
  902. }
  903. public const int V4DFieldTag=7;
  904. public bool HasV4D{ get {return super.V4DCount>=4;} }
  905. public PBJ.Vector4d V4D{ get {
  906. int index=0;
  907. if (HasV4D) {
  908. return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
  909. } else {
  910. return PBJ._PBJ.CastVector4d();
  911. }
  912. }
  913. }
  914. public const int QFieldTag=8;
  915. public bool HasQ{ get {return super.QCount>=3;} }
  916. public PBJ.Quaternion Q{ get {
  917. int index=0;
  918. if (HasQ) {
  919. return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
  920. } else {
  921. return PBJ._PBJ.CastQuaternion();
  922. }
  923. }
  924. }
  925. public const int UFieldTag=9;
  926. public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
  927. public PBJ.UUID U{ get {
  928. if (HasU) {
  929. return PBJ._PBJ.CastUuid(super.U);
  930. } else {
  931. return PBJ._PBJ.CastUuid();
  932. }
  933. }
  934. }
  935. public const int AFieldTag=10;
  936. public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
  937. public float A{ get {
  938. if (HasA) {
  939. return PBJ._PBJ.CastAngle(super.A);
  940. } else {
  941. return PBJ._PBJ.CastAngle();
  942. }
  943. }
  944. }
  945. public const int TFieldTag=11;
  946. public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
  947. public PBJ.Time T{ get {
  948. if (HasT) {
  949. return PBJ._PBJ.CastTime(super.T);
  950. } else {
  951. return PBJ._PBJ.CastTime();
  952. }
  953. }
  954. }
  955. public const int DFieldTag=12;
  956. public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
  957. public PBJ.Duration D{ get {
  958. if (HasD) {
  959. return PBJ._PBJ.CastDuration(super.D);
  960. } else {
  961. return PBJ._PBJ.CastDuration();
  962. }
  963. }
  964. }
  965. public const int F32FieldTag=13;
  966. public bool HasF32 { get {
  967. if (!super.HasF32) return false;
  968. return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  969. } }
  970. public uint F32{ get {
  971. if (HasF32) {
  972. return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  973. } else {
  974. return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  975. }
  976. }
  977. }
  978. public const int F64FieldTag=14;
  979. public bool HasF64 { get {
  980. if (!super.HasF64) return false;
  981. return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  982. } }
  983. public ulong F64{ get {
  984. if (HasF64) {
  985. return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  986. } else {
  987. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  988. }
  989. }
  990. }
  991. public const int BsfFieldTag=15;
  992. public bool HasBsf{ get {return super.BsfCount>=4;} }
  993. public PBJ.BoundingSphere3f Bsf{ get {
  994. int index=0;
  995. if (HasBsf) {
  996. return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
  997. } else {
  998. return PBJ._PBJ.CastBoundingsphere3f();
  999. }
  1000. }
  1001. }
  1002. public const int BsdFieldTag=16;
  1003. public bool HasBsd{ get {return super.BsdCount>=4;} }
  1004. public PBJ.BoundingSphere3d Bsd{ get {
  1005. int index=0;
  1006. if (HasBsd) {
  1007. return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
  1008. } else {
  1009. return PBJ._PBJ.CastBoundingsphere3d();
  1010. }
  1011. }
  1012. }
  1013. public const int BbfFieldTag=17;
  1014. public bool HasBbf{ get {return super.BbfCount>=6;} }
  1015. public PBJ.BoundingBox3f3f Bbf{ get {
  1016. int index=0;
  1017. if (HasBbf) {
  1018. return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
  1019. } else {
  1020. return PBJ._PBJ.CastBoundingbox3f3f();
  1021. }
  1022. }
  1023. }
  1024. public const int BbdFieldTag=18;
  1025. public bool HasBbd{ get {return super.BbdCount>=6;} }
  1026. public PBJ.BoundingBox3d3f Bbd{ get {
  1027. int index=0;
  1028. if (HasBbd) {
  1029. return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
  1030. } else {
  1031. return PBJ._PBJ.CastBoundingbox3d3f();
  1032. }
  1033. }
  1034. }
  1035. public const int E32FieldTag=19;
  1036. public bool HasE32{ get {return super.HasE32;} }
  1037. public Types.Enum32 E32{ get {
  1038. if (HasE32) {
  1039. return (Types.Enum32)super.E32;
  1040. } else {
  1041. return new Types.Enum32();
  1042. }
  1043. }
  1044. }
  1045. public const int SubmesFieldTag=30;
  1046. public bool HasSubmes{ get {return super.HasSubmes;} }
  1047. public Types.SubMessage Submes{ get {
  1048. if (HasSubmes) {
  1049. return new Types.SubMessage(super.Submes);
  1050. } else {
  1051. return new Types.SubMessage();
  1052. }
  1053. }
  1054. }
  1055. public const int SubmessersFieldTag=31;
  1056. public int SubmessersCount { get { return super.SubmessersCount;} }
  1057. public bool HasSubmessers(int index) {return true;}
  1058. public Types.SubMessage Submessers(int index) {
  1059. return new Types.SubMessage(super.GetSubmessers(index));
  1060. }
  1061. public const int ShaFieldTag=32;
  1062. public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
  1063. public PBJ.SHA256 Sha{ get {
  1064. if (HasSha) {
  1065. return PBJ._PBJ.CastSha256(super.Sha);
  1066. } else {
  1067. return PBJ._PBJ.CastSha256();
  1068. }
  1069. }
  1070. }
  1071. public const int ShasFieldTag=33;
  1072. public int ShasCount { get { return super.ShasCount;} }
  1073. public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
  1074. public PBJ.SHA256 Shas(int index) {
  1075. return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
  1076. }
  1077. public const int ExtmesFieldTag=34;
  1078. public bool HasExtmes{ get {return super.HasExtmes;} }
  1079. public ExternalMessage Extmes{ get {
  1080. if (HasExtmes) {
  1081. return new ExternalMessage(super.Extmes);
  1082. } else {
  1083. return new ExternalMessage();
  1084. }
  1085. }
  1086. }
  1087. public const int ExtmessersFieldTag=35;
  1088. public int ExtmessersCount { get { return super.ExtmessersCount;} }
  1089. public bool HasExtmessers(int index) {return true;}
  1090. public ExternalMessage Extmessers(int index) {
  1091. return new ExternalMessage(super.GetExtmessers(index));
  1092. }
  1093. public const int ExtmesserFieldTag=36;
  1094. public bool HasExtmesser{ get {return super.HasExtmesser;} }
  1095. public ExternalMessage Extmesser{ get {
  1096. if (HasExtmesser) {
  1097. return new ExternalMessage(super.Extmesser);
  1098. } else {
  1099. return new ExternalMessage();
  1100. }
  1101. }
  1102. }
  1103. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1104. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1105. public static Builder CreateBuilder() { return new Builder(); }
  1106. public static Builder CreateBuilder(TestMessage prototype) {
  1107. return (Builder)new Builder().MergeFrom(prototype);
  1108. }
  1109. public static TestMessage ParseFrom(pb::ByteString data) {
  1110. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
  1111. }
  1112. public static TestMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1113. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
  1114. }
  1115. public static TestMessage ParseFrom(byte[] data) {
  1116. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
  1117. }
  1118. public static TestMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1119. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
  1120. }
  1121. public static TestMessage ParseFrom(global::System.IO.Stream data) {
  1122. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
  1123. }
  1124. public static TestMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1125. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
  1126. }
  1127. public static TestMessage ParseFrom(pb::CodedInputStream data) {
  1128. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
  1129. }
  1130. public static TestMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1131. return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
  1132. }
  1133. protected override bool _HasAllPBJFields{ get {
  1134. return true
  1135. &&HasV3F
  1136. ;
  1137. } }
  1138. public bool IsInitialized { get {
  1139. return super.IsInitialized&&_HasAllPBJFields;
  1140. } }
  1141. public class Builder : global::PBJ.IMessage.IBuilder{
  1142. protected override bool _HasAllPBJFields{ get {
  1143. return true
  1144. &&HasV3F
  1145. ;
  1146. } }
  1147. public bool IsInitialized { get {
  1148. return super.IsInitialized&&_HasAllPBJFields;
  1149. } }
  1150. protected _PBJ_Internal.TestMessage.Builder super;
  1151. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1152. public _PBJ_Internal.TestMessage.Builder _PBJSuper{ get { return super;} }
  1153. public Builder() {super = new _PBJ_Internal.TestMessage.Builder();}
  1154. public Builder(_PBJ_Internal.TestMessage.Builder other) {
  1155. super=other;
  1156. }
  1157. public Builder Clone() {return new Builder(super.Clone());}
  1158. public Builder MergeFrom(TestMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1159. public Builder Clear() {super.Clear();return this;}
  1160. public TestMessage BuildPartial() {return new TestMessage(super.BuildPartial());}
  1161. public TestMessage Build() {if (_HasAllPBJFields) return new TestMessage(super.Build());return null;}
  1162. public pbd::MessageDescriptor DescriptorForType {
  1163. get { return TestMessage.Descriptor; } }
  1164. public Builder ClearXxd() { super.ClearXxd();return this;}
  1165. public const int XxdFieldTag=20;
  1166. public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
  1167. public double Xxd{ get {
  1168. if (HasXxd) {
  1169. return PBJ._PBJ.CastDouble(super.Xxd);
  1170. } else {
  1171. return 10.3;
  1172. }
  1173. }
  1174. set {
  1175. super.Xxd=(PBJ._PBJ.Construct(value));
  1176. }
  1177. }
  1178. public Builder ClearXxf() { super.ClearXxf();return this;}
  1179. public const int XxfFieldTag=21;
  1180. public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
  1181. public float Xxf{ get {
  1182. if (HasXxf) {
  1183. return PBJ._PBJ.CastFloat(super.Xxf);
  1184. } else {
  1185. return PBJ._PBJ.CastFloat();
  1186. }
  1187. }
  1188. set {
  1189. super.Xxf=(PBJ._PBJ.Construct(value));
  1190. }
  1191. }
  1192. public Builder ClearXxu32() { super.ClearXxu32();return this;}
  1193. public const int Xxu32FieldTag=22;
  1194. public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
  1195. public uint Xxu32{ get {
  1196. if (HasXxu32) {
  1197. return PBJ._PBJ.CastUint32(super.Xxu32);
  1198. } else {
  1199. return PBJ._PBJ.CastUint32();
  1200. }
  1201. }
  1202. set {
  1203. super.Xxu32=(PBJ._PBJ.Construct(value));
  1204. }
  1205. }
  1206. public Builder ClearXxs() { super.ClearXxs();return this;}
  1207. public const int XxsFieldTag=23;
  1208. public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
  1209. public string Xxs{ get {
  1210. if (HasXxs) {
  1211. return PBJ._PBJ.CastString(super.Xxs);
  1212. } else {
  1213. return PBJ._PBJ.CastString();
  1214. }
  1215. }
  1216. set {
  1217. super.Xxs=(PBJ._PBJ.Construct(value));
  1218. }
  1219. }
  1220. public Builder ClearXxb() { super.ClearXxb();return this;}
  1221. public const int XxbFieldTag=24;
  1222. public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
  1223. public pb::ByteString Xxb{ get {
  1224. if (HasXxb) {
  1225. return PBJ._PBJ.CastBytes(super.Xxb);
  1226. } else {
  1227. return PBJ._PBJ.CastBytes();
  1228. }
  1229. }
  1230. set {
  1231. super.Xxb=(PBJ._PBJ.Construct(value));
  1232. }
  1233. }
  1234. public Builder ClearXxss() { super.ClearXxss();return this;}
  1235. public Builder SetXxss(int index, string value) {
  1236. super.SetXxss(index,PBJ._PBJ.Construct(value));
  1237. return this;
  1238. }
  1239. public const int XxssFieldTag=25;
  1240. public int XxssCount { get { return super.XxssCount;} }
  1241. public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
  1242. public string Xxss(int index) {
  1243. return (string)PBJ._PBJ.CastString(super.GetXxss(index));
  1244. }
  1245. public Builder AddXxss(string value) {
  1246. super.AddXxss(PBJ._PBJ.Construct(value));
  1247. return this;
  1248. }
  1249. public Builder ClearXxbb() { super.ClearXxbb();return this;}
  1250. public Builder SetXxbb(int index, pb::ByteString value) {
  1251. super.SetXxbb(index,PBJ._PBJ.Construct(value));
  1252. return this;
  1253. }
  1254. public const int XxbbFieldTag=26;
  1255. public int XxbbCount { get { return super.XxbbCount;} }
  1256. public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
  1257. public pb::ByteString Xxbb(int index) {
  1258. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
  1259. }
  1260. public Builder AddXxbb(pb::ByteString value) {
  1261. super.AddXxbb(PBJ._PBJ.Construct(value));
  1262. return this;
  1263. }
  1264. public Builder ClearXxff() { super.ClearXxff();return this;}
  1265. public Builder SetXxff(int index, float value) {
  1266. super.SetXxff(index,PBJ._PBJ.Construct(value));
  1267. return this;
  1268. }
  1269. public const int XxffFieldTag=27;
  1270. public int XxffCount { get { return super.XxffCount;} }
  1271. public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
  1272. public float Xxff(int index) {
  1273. return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
  1274. }
  1275. public Builder AddXxff(float value) {
  1276. super.AddXxff(PBJ._PBJ.Construct(value));
  1277. return this;
  1278. }
  1279. public Builder ClearXxnn() { super.ClearXxnn();return this;}
  1280. public const int XxnnFieldTag=29;
  1281. public int XxnnCount { get { return super.XxnnCount/2;} }
  1282. public bool HasXxnn(int index) { return true; }
  1283. public PBJ.Vector3f GetXxnn(int index) {
  1284. if (HasXxnn(index)) {
  1285. return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
  1286. } else {
  1287. return PBJ._PBJ.CastNormal();
  1288. }
  1289. }
  1290. public Builder AddXxnn(PBJ.Vector3f value) {
  1291. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  1292. super.AddXxnn(_PBJtempArray[0]);
  1293. super.AddXxnn(_PBJtempArray[1]);
  1294. return this;
  1295. }
  1296. public Builder SetXxnn(int index,PBJ.Vector3f value) {
  1297. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  1298. super.SetXxnn(index*2+0,_PBJtempArray[0]);
  1299. super.SetXxnn(index*2+1,_PBJtempArray[1]);
  1300. return this;
  1301. }
  1302. public Builder ClearXxfr() { super.ClearXxfr();return this;}
  1303. public const int XxfrFieldTag=28;
  1304. public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
  1305. public float Xxfr{ get {
  1306. if (HasXxfr) {
  1307. return PBJ._PBJ.CastFloat(super.Xxfr);
  1308. } else {
  1309. return PBJ._PBJ.CastFloat();
  1310. }
  1311. }
  1312. set {
  1313. super.Xxfr=(PBJ._PBJ.Construct(value));
  1314. }
  1315. }
  1316. public Builder ClearN() { super.ClearN();return this;}
  1317. public const int NFieldTag=1;
  1318. public bool HasN{ get {return super.NCount>=2;} }
  1319. public PBJ.Vector3f N{ get {
  1320. int index=0;
  1321. if (HasN) {
  1322. return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
  1323. } else {
  1324. return PBJ._PBJ.CastNormal();
  1325. }
  1326. }
  1327. set {
  1328. super.ClearN();
  1329. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  1330. super.AddN(_PBJtempArray[0]);
  1331. super.AddN(_PBJtempArray[1]);
  1332. }
  1333. }
  1334. public Builder ClearV2F() { super.ClearV2F();return this;}
  1335. public const int V2FFieldTag=2;
  1336. public bool HasV2F{ get {return super.V2FCount>=2;} }
  1337. public PBJ.Vector2f V2F{ get {
  1338. int index=0;
  1339. if (HasV2F) {
  1340. return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
  1341. } else {
  1342. return PBJ._PBJ.CastVector2f();
  1343. }
  1344. }
  1345. set {
  1346. super.ClearV2F();
  1347. float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
  1348. super.AddV2F(_PBJtempArray[0]);
  1349. super.AddV2F(_PBJtempArray[1]);
  1350. }
  1351. }
  1352. public Builder ClearV2D() { super.ClearV2D();return this;}
  1353. public const int V2DFieldTag=3;
  1354. public bool HasV2D{ get {return super.V2DCount>=2;} }
  1355. public PBJ.Vector2d V2D{ get {
  1356. int index=0;
  1357. if (HasV2D) {
  1358. return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
  1359. } else {
  1360. return PBJ._PBJ.CastVector2d();
  1361. }
  1362. }
  1363. set {
  1364. super.ClearV2D();
  1365. double[] _PBJtempArray=PBJ._PBJ.ConstructVector2d(value);
  1366. super.AddV2D(_PBJtempArray[0]);
  1367. super.AddV2D(_PBJtempArray[1]);
  1368. }
  1369. }
  1370. public Builder ClearV3F() { super.ClearV3F();return this;}
  1371. public const int V3FFieldTag=4;
  1372. public bool HasV3F{ get {return super.V3FCount>=3;} }
  1373. public PBJ.Vector3f V3F{ get {
  1374. int index=0;
  1375. if (HasV3F) {
  1376. return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
  1377. } else {
  1378. return PBJ._PBJ.CastVector3f();
  1379. }
  1380. }
  1381. set {
  1382. super.ClearV3F();
  1383. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  1384. super.AddV3F(_PBJtempArray[0]);
  1385. super.AddV3F(_PBJtempArray[1]);
  1386. super.AddV3F(_PBJtempArray[2]);
  1387. }
  1388. }
  1389. public Builder ClearV3D() { super.ClearV3D();return this;}
  1390. public const int V3DFieldTag=5;
  1391. public bool HasV3D{ get {return super.V3DCount>=3;} }
  1392. public PBJ.Vector3d V3D{ get {
  1393. int index=0;
  1394. if (HasV3D) {
  1395. return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
  1396. } else {
  1397. return PBJ._PBJ.CastVector3d();
  1398. }
  1399. }
  1400. set {
  1401. super.ClearV3D();
  1402. double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
  1403. super.AddV3D(_PBJtempArray[0]);
  1404. super.AddV3D(_PBJtempArray[1]);
  1405. super.AddV3D(_PBJtempArray[2]);
  1406. }
  1407. }
  1408. public Builder ClearV4F() { super.ClearV4F();return this;}
  1409. public const int V4FFieldTag=6;
  1410. public bool HasV4F{ get {return super.V4FCount>=4;} }
  1411. public PBJ.Vector4f V4F{ get {
  1412. int index=0;
  1413. if (HasV4F) {
  1414. return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
  1415. } else {
  1416. return PBJ._PBJ.CastVector4f();
  1417. }
  1418. }
  1419. set {
  1420. super.ClearV4F();
  1421. float[] _PBJtempArray=PBJ._PBJ.ConstructVector4f(value);
  1422. super.AddV4F(_PBJtempArray[0]);
  1423. super.AddV4F(_PBJtempArray[1]);
  1424. super.AddV4F(_PBJtempArray[2]);
  1425. super.AddV4F(_PBJtempArray[3]);
  1426. }
  1427. }
  1428. public Builder ClearV4D() { super.ClearV4D();return this;}
  1429. public const int V4DFieldTag=7;
  1430. public bool HasV4D{ get {return super.V4DCount>=4;} }
  1431. public PBJ.Vector4d V4D{ get {
  1432. int index=0;
  1433. if (HasV4D) {
  1434. return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
  1435. } else {
  1436. return PBJ._PBJ.CastVector4d();
  1437. }
  1438. }
  1439. set {
  1440. super.ClearV4D();
  1441. double[] _PBJtempArray=PBJ._PBJ.ConstructVector4d(value);
  1442. super.AddV4D(_PBJtempArray[0]);
  1443. super.AddV4D(_PBJtempArray[1]);
  1444. super.AddV4D(_PBJtempArray[2]);
  1445. super.AddV4D(_PBJtempArray[3]);
  1446. }
  1447. }
  1448. public Builder ClearQ() { super.ClearQ();return this;}
  1449. public const int QFieldTag=8;
  1450. public bool HasQ{ get {return super.QCount>=3;} }
  1451. public PBJ.Quaternion Q{ get {
  1452. int index=0;
  1453. if (HasQ) {
  1454. return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
  1455. } else {
  1456. return PBJ._PBJ.CastQuaternion();
  1457. }
  1458. }
  1459. set {
  1460. super.ClearQ();
  1461. float[] _PBJtempArray=PBJ._PBJ.ConstructQuaternion(value);
  1462. super.AddQ(_PBJtempArray[0]);
  1463. super.AddQ(_PBJtempArray[1]);
  1464. super.AddQ(_PBJtempArray[2]);
  1465. }
  1466. }
  1467. public Builder ClearU() { super.ClearU();return this;}
  1468. public const int UFieldTag=9;
  1469. public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
  1470. public PBJ.UUID U{ get {
  1471. if (HasU) {
  1472. return PBJ._PBJ.CastUuid(super.U);
  1473. } else {
  1474. return PBJ._PBJ.CastUuid();
  1475. }
  1476. }
  1477. set {
  1478. super.U=(PBJ._PBJ.Construct(value));
  1479. }
  1480. }
  1481. public Builder ClearA() { super.ClearA();return this;}
  1482. public const int AFieldTag=10;
  1483. public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
  1484. public float A{ get {
  1485. if (HasA) {
  1486. return PBJ._PBJ.CastAngle(super.A);
  1487. } else {
  1488. return PBJ._PBJ.CastAngle();
  1489. }
  1490. }
  1491. set {
  1492. super.A=(PBJ._PBJ.Construct(value));
  1493. }
  1494. }
  1495. public Builder ClearT() { super.ClearT();return this;}
  1496. public const int TFieldTag=11;
  1497. public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
  1498. public PBJ.Time T{ get {
  1499. if (HasT) {
  1500. return PBJ._PBJ.CastTime(super.T);
  1501. } else {
  1502. return PBJ._PBJ.CastTime();
  1503. }
  1504. }
  1505. set {
  1506. super.T=(PBJ._PBJ.Construct(value));
  1507. }
  1508. }
  1509. public Builder ClearD() { super.ClearD();return this;}
  1510. public const int DFieldTag=12;
  1511. public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
  1512. public PBJ.Duration D{ get {
  1513. if (HasD) {
  1514. return PBJ._PBJ.CastDuration(super.D);
  1515. } else {
  1516. return PBJ._PBJ.CastDuration();
  1517. }
  1518. }
  1519. set {
  1520. super.D=(PBJ._PBJ.Construct(value));
  1521. }
  1522. }
  1523. public Builder ClearF32() { super.ClearF32();return this;}
  1524. public const int F32FieldTag=13;
  1525. public bool HasF32 { get {
  1526. if (!super.HasF32) return false;
  1527. return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  1528. } }
  1529. public uint F32{ get {
  1530. if (HasF32) {
  1531. return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  1532. } else {
  1533. return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
  1534. }
  1535. }
  1536. set {
  1537. super.F32=((value));
  1538. }
  1539. }
  1540. public Builder ClearF64() { super.ClearF64();return this;}
  1541. public const int F64FieldTag=14;
  1542. public bool HasF64 { get {
  1543. if (!super.HasF64) return false;
  1544. return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  1545. } }
  1546. public ulong F64{ get {
  1547. if (HasF64) {
  1548. return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  1549. } else {
  1550. return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
  1551. }
  1552. }
  1553. set {
  1554. super.F64=((value));
  1555. }
  1556. }
  1557. public Builder ClearBsf() { super.ClearBsf();return this;}
  1558. public const int BsfFieldTag=15;
  1559. public bool HasBsf{ get {return super.BsfCount>=4;} }
  1560. public PBJ.BoundingSphere3f Bsf{ get {
  1561. int index=0;
  1562. if (HasBsf) {
  1563. return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
  1564. } else {
  1565. return PBJ._PBJ.CastBoundingsphere3f();
  1566. }
  1567. }
  1568. set {
  1569. super.ClearBsf();
  1570. float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
  1571. super.AddBsf(_PBJtempArray[0]);
  1572. super.AddBsf(_PBJtempArray[1]);
  1573. super.AddBsf(_PBJtempArray[2]);
  1574. super.AddBsf(_PBJtempArray[3]);
  1575. }
  1576. }
  1577. public Builder ClearBsd() { super.ClearBsd();return this;}
  1578. public const int BsdFieldTag=16;
  1579. public bool HasBsd{ get {return super.BsdCount>=4;} }
  1580. public PBJ.BoundingSphere3d Bsd{ get {
  1581. int index=0;
  1582. if (HasBsd) {
  1583. return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
  1584. } else {
  1585. return PBJ._PBJ.CastBoundingsphere3d();
  1586. }
  1587. }
  1588. set {
  1589. super.ClearBsd();
  1590. double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3d(value);
  1591. super.AddBsd(_PBJtempArray[0]);
  1592. super.AddBsd(_PBJtempArray[1]);
  1593. super.AddBsd(_PBJtempArray[2]);
  1594. super.AddBsd(_PBJtempArray[3]);
  1595. }
  1596. }
  1597. public Builder ClearBbf() { super.ClearBbf();return this;}
  1598. public const int BbfFieldTag=17;
  1599. public bool HasBbf{ get {return super.BbfCount>=6;} }
  1600. public PBJ.BoundingBox3f3f Bbf{ get {
  1601. int index=0;
  1602. if (HasBbf) {
  1603. return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
  1604. } else {
  1605. return PBJ._PBJ.CastBoundingbox3f3f();
  1606. }
  1607. }
  1608. set {
  1609. super.ClearBbf();
  1610. float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3f3f(value);
  1611. super.AddBbf(_PBJtempArray[0]);
  1612. super.AddBbf(_PBJtempArray[1]);
  1613. super.AddBbf(_PBJtempArray[2]);
  1614. super.AddBbf(_PBJtempArray[3]);
  1615. super.AddBbf(_PBJtempArray[4]);
  1616. super.AddBbf(_PBJtempArray[5]);
  1617. }
  1618. }
  1619. public Builder ClearBbd() { super.ClearBbd();return this;}
  1620. public const int BbdFieldTag=18;
  1621. public bool HasBbd{ get {return super.BbdCount>=6;} }
  1622. public PBJ.BoundingBox3d3f Bbd{ get {
  1623. int index=0;
  1624. if (HasBbd) {
  1625. return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
  1626. } else {
  1627. return PBJ._PBJ.CastBoundingbox3d3f();
  1628. }
  1629. }
  1630. set {
  1631. super.ClearBbd();
  1632. double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3d3f(value);
  1633. super.AddBbd(_PBJtempArray[0]);
  1634. super.AddBbd(_PBJtempArray[1]);
  1635. super.AddBbd(_PBJtempArray[2]);
  1636. super.AddBbd(_PBJtempArray[3]);
  1637. super.AddBbd(_PBJtempArray[4]);
  1638. super.AddBbd(_PBJtempArray[5]);
  1639. }
  1640. }
  1641. public Builder ClearE32() { super.ClearE32();return this;}
  1642. public const int E32FieldTag=19;
  1643. public bool HasE32{ get {return super.HasE32;} }
  1644. public Types.Enum32 E32{ get {
  1645. if (HasE32) {
  1646. return (Types.Enum32)super.E32;
  1647. } else {
  1648. return new Types.Enum32();
  1649. }
  1650. }
  1651. set {
  1652. super.E32=((_PBJ_Internal.TestMessage.Types.Enum32)value);
  1653. }
  1654. }
  1655. public Builder ClearSubmes() { super.ClearSubmes();return this;}
  1656. public const int SubmesFieldTag=30;
  1657. public bool HasSubmes{ get {return super.HasSubmes;} }
  1658. public Types.SubMessage Submes{ get {
  1659. if (HasSubmes) {
  1660. return new Types.SubMessage(super.Submes);
  1661. } else {
  1662. return new Types.SubMessage();
  1663. }
  1664. }
  1665. set {
  1666. super.Submes=value._PBJSuper;
  1667. }
  1668. }
  1669. public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
  1670. public Builder SetSubmessers(int index,Types.SubMessage value) {
  1671. super.SetSubmessers(index,value._PBJSuper);
  1672. return this;
  1673. }
  1674. public const int SubmessersFieldTag=31;
  1675. public int SubmessersCount { get { return super.SubmessersCount;} }
  1676. public bool HasSubmessers(int index) {return true;}
  1677. public Types.SubMessage Submessers(int index) {
  1678. return new Types.SubMessage(super.GetSubmessers(index));
  1679. }
  1680. public Builder AddSubmessers(Types.SubMessage value) {
  1681. super.AddSubmessers(value._PBJSuper);
  1682. return this;
  1683. }
  1684. public Builder ClearSha() { super.ClearSha();return this;}
  1685. public const int ShaFieldTag=32;
  1686. public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
  1687. public PBJ.SHA256 Sha{ get {
  1688. if (HasSha) {
  1689. return PBJ._PBJ.CastSha256(super.Sha);
  1690. } else {
  1691. return PBJ._PBJ.CastSha256();
  1692. }
  1693. }
  1694. set {
  1695. super.Sha=(PBJ._PBJ.Construct(value));
  1696. }
  1697. }
  1698. public Builder ClearShas() { super.ClearShas();return this;}
  1699. public Builder SetShas(int index, PBJ.SHA256 value) {
  1700. super.SetShas(index,PBJ._PBJ.Construct(value));
  1701. return this;
  1702. }
  1703. public const int ShasFieldTag=33;
  1704. public int ShasCount { get { return super.ShasCount;} }
  1705. public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
  1706. public PBJ.SHA256 Shas(int index) {
  1707. return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
  1708. }
  1709. public Builder AddShas(PBJ.SHA256 value) {
  1710. super.AddShas(PBJ._PBJ.Construct(value));
  1711. return this;
  1712. }
  1713. public Builder ClearExtmes() { super.ClearExtmes();return this;}
  1714. public const int ExtmesFieldTag=34;
  1715. public bool HasExtmes{ get {return super.HasExtmes;} }
  1716. public ExternalMessage Extmes{ get {
  1717. if (HasExtmes) {
  1718. return new ExternalMessage(super.Extmes);
  1719. } else {
  1720. return new ExternalMessage();
  1721. }
  1722. }
  1723. set {
  1724. super.Extmes=value._PBJSuper;
  1725. }
  1726. }
  1727. public Builder ClearExtmessers() { super.ClearExtmessers();return this;}
  1728. public Builder SetExtmessers(int index,ExternalMessage value) {
  1729. super.SetExtmessers(index,value._PBJSuper);
  1730. return this;
  1731. }
  1732. public const int ExtmessersFieldTag=35;
  1733. public int ExtmessersCount { get { return super.ExtmessersCount;} }
  1734. public bool HasExtmessers(int index) {return true;}
  1735. public ExternalMessage Extmessers(int index) {
  1736. return new ExternalMessage(super.GetExtmessers(index));
  1737. }
  1738. public Builder AddExtmessers(ExternalMessage value) {
  1739. super.AddExtmessers(value._PBJSuper);
  1740. return this;
  1741. }
  1742. public Builder ClearExtmesser() { super.ClearExtmesser();return this;}
  1743. public const int ExtmesserFieldTag=36;
  1744. public bool HasExtmesser{ get {return super.HasExtmesser;} }
  1745. public ExternalMessage Extmesser{ get {
  1746. if (HasExtmesser) {
  1747. return new ExternalMessage(super.Extmesser);
  1748. } else {
  1749. return new ExternalMessage();
  1750. }
  1751. }
  1752. set {
  1753. super.Extmesser=value._PBJSuper;
  1754. }
  1755. }
  1756. }
  1757. }
  1758. }
  1759. namespace Sirikata.PB {
  1760. }