Sirikata.pbj.cs 179 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934
  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.Protocol {
  30. public class MessageBody : PBJ.IMessage {
  31. protected _PBJ_Internal.MessageBody super;
  32. public _PBJ_Internal.MessageBody _PBJSuper{ get { return super;} }
  33. public MessageBody() {
  34. super=new _PBJ_Internal.MessageBody();
  35. }
  36. public MessageBody(_PBJ_Internal.MessageBody reference) {
  37. super=reference;
  38. }
  39. public static MessageBody defaultInstance= new MessageBody (_PBJ_Internal.MessageBody.DefaultInstance);
  40. public static MessageBody DefaultInstance{
  41. get {return defaultInstance;}
  42. }
  43. public static pbd.MessageDescriptor Descriptor {
  44. get { return _PBJ_Internal.MessageBody.Descriptor; } }
  45. public static class Types {
  46. }
  47. public static bool WithinReservedFieldTagRange(int field_tag) {
  48. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  49. }
  50. public static bool WithinExtensionFieldTagRange(int field_tag) {
  51. return false;
  52. }
  53. public const int MessageNamesFieldTag=9;
  54. public int MessageNamesCount { get { return super.MessageNamesCount;} }
  55. public bool HasMessageNames(int index) {return PBJ._PBJ.ValidateString(super.GetMessageNames(index));}
  56. public string MessageNames(int index) {
  57. return (string)PBJ._PBJ.CastString(super.GetMessageNames(index));
  58. }
  59. public const int MessageArgumentsFieldTag=10;
  60. public int MessageArgumentsCount { get { return super.MessageArgumentsCount;} }
  61. public bool HasMessageArguments(int index) {return PBJ._PBJ.ValidateBytes(super.GetMessageArguments(index));}
  62. public pb::ByteString MessageArguments(int index) {
  63. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetMessageArguments(index));
  64. }
  65. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  66. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  67. public static Builder CreateBuilder() { return new Builder(); }
  68. public static Builder CreateBuilder(MessageBody prototype) {
  69. return (Builder)new Builder().MergeFrom(prototype);
  70. }
  71. public static MessageBody ParseFrom(pb::ByteString data) {
  72. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data));
  73. }
  74. public static MessageBody ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  75. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data,er));
  76. }
  77. public static MessageBody ParseFrom(byte[] data) {
  78. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data));
  79. }
  80. public static MessageBody ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  81. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data,er));
  82. }
  83. public static MessageBody ParseFrom(global::System.IO.Stream data) {
  84. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data));
  85. }
  86. public static MessageBody ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  87. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data,er));
  88. }
  89. public static MessageBody ParseFrom(pb::CodedInputStream data) {
  90. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data));
  91. }
  92. public static MessageBody ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  93. return new MessageBody(_PBJ_Internal.MessageBody.ParseFrom(data,er));
  94. }
  95. protected override bool _HasAllPBJFields{ get {
  96. return true
  97. ;
  98. } }
  99. public bool IsInitialized { get {
  100. return super.IsInitialized&&_HasAllPBJFields;
  101. } }
  102. public class Builder : global::PBJ.IMessage.IBuilder{
  103. protected override bool _HasAllPBJFields{ get {
  104. return true
  105. ;
  106. } }
  107. public bool IsInitialized { get {
  108. return super.IsInitialized&&_HasAllPBJFields;
  109. } }
  110. protected _PBJ_Internal.MessageBody.Builder super;
  111. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  112. public _PBJ_Internal.MessageBody.Builder _PBJSuper{ get { return super;} }
  113. public Builder() {super = new _PBJ_Internal.MessageBody.Builder();}
  114. public Builder(_PBJ_Internal.MessageBody.Builder other) {
  115. super=other;
  116. }
  117. public Builder Clone() {return new Builder(super.Clone());}
  118. public Builder MergeFrom(MessageBody prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  119. public Builder Clear() {super.Clear();return this;}
  120. public MessageBody BuildPartial() {return new MessageBody(super.BuildPartial());}
  121. public MessageBody Build() {if (_HasAllPBJFields) return new MessageBody(super.Build());return null;}
  122. public pbd::MessageDescriptor DescriptorForType {
  123. get { return MessageBody.Descriptor; } }
  124. public Builder ClearMessageNames() { super.ClearMessageNames();return this;}
  125. public Builder SetMessageNames(int index, string value) {
  126. super.SetMessageNames(index,PBJ._PBJ.Construct(value));
  127. return this;
  128. }
  129. public const int MessageNamesFieldTag=9;
  130. public int MessageNamesCount { get { return super.MessageNamesCount;} }
  131. public bool HasMessageNames(int index) {return PBJ._PBJ.ValidateString(super.GetMessageNames(index));}
  132. public string MessageNames(int index) {
  133. return (string)PBJ._PBJ.CastString(super.GetMessageNames(index));
  134. }
  135. public Builder AddMessageNames(string value) {
  136. super.AddMessageNames(PBJ._PBJ.Construct(value));
  137. return this;
  138. }
  139. public Builder ClearMessageArguments() { super.ClearMessageArguments();return this;}
  140. public Builder SetMessageArguments(int index, pb::ByteString value) {
  141. super.SetMessageArguments(index,PBJ._PBJ.Construct(value));
  142. return this;
  143. }
  144. public const int MessageArgumentsFieldTag=10;
  145. public int MessageArgumentsCount { get { return super.MessageArgumentsCount;} }
  146. public bool HasMessageArguments(int index) {return PBJ._PBJ.ValidateBytes(super.GetMessageArguments(index));}
  147. public pb::ByteString MessageArguments(int index) {
  148. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetMessageArguments(index));
  149. }
  150. public Builder AddMessageArguments(pb::ByteString value) {
  151. super.AddMessageArguments(PBJ._PBJ.Construct(value));
  152. return this;
  153. }
  154. }
  155. }
  156. }
  157. namespace Sirikata.Protocol {
  158. public class ReadOnlyMessage : PBJ.IMessage {
  159. protected _PBJ_Internal.ReadOnlyMessage super;
  160. public _PBJ_Internal.ReadOnlyMessage _PBJSuper{ get { return super;} }
  161. public ReadOnlyMessage() {
  162. super=new _PBJ_Internal.ReadOnlyMessage();
  163. }
  164. public ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage reference) {
  165. super=reference;
  166. }
  167. public static ReadOnlyMessage defaultInstance= new ReadOnlyMessage (_PBJ_Internal.ReadOnlyMessage.DefaultInstance);
  168. public static ReadOnlyMessage DefaultInstance{
  169. get {return defaultInstance;}
  170. }
  171. public static pbd.MessageDescriptor Descriptor {
  172. get { return _PBJ_Internal.ReadOnlyMessage.Descriptor; } }
  173. public static class Types {
  174. public enum ReturnStatus {
  175. SUCCESS=_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.SUCCESS,
  176. NETWORK_FAILURE=_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.NETWORK_FAILURE,
  177. TIMEOUT_FAILURE=_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.TIMEOUT_FAILURE,
  178. PROTOCOL_ERROR=_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.PROTOCOL_ERROR,
  179. PORT_FAILURE=_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.PORT_FAILURE
  180. };
  181. }
  182. public static bool WithinReservedFieldTagRange(int field_tag) {
  183. return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
  184. }
  185. public static bool WithinExtensionFieldTagRange(int field_tag) {
  186. return false;
  187. }
  188. public const int SourceObjectFieldTag=1;
  189. public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} }
  190. public PBJ.UUID SourceObject{ get {
  191. if (HasSourceObject) {
  192. return PBJ._PBJ.CastUuid(super.SourceObject);
  193. } else {
  194. return PBJ._PBJ.CastUuid();
  195. }
  196. }
  197. }
  198. public const int SourcePortFieldTag=3;
  199. public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} }
  200. public uint SourcePort{ get {
  201. if (HasSourcePort) {
  202. return PBJ._PBJ.CastUint32(super.SourcePort);
  203. } else {
  204. return PBJ._PBJ.CastUint32();
  205. }
  206. }
  207. }
  208. public const int SourceSpaceFieldTag=1536;
  209. public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} }
  210. public PBJ.UUID SourceSpace{ get {
  211. if (HasSourceSpace) {
  212. return PBJ._PBJ.CastUuid(super.SourceSpace);
  213. } else {
  214. return PBJ._PBJ.CastUuid();
  215. }
  216. }
  217. }
  218. public const int DestinationObjectFieldTag=2;
  219. public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} }
  220. public PBJ.UUID DestinationObject{ get {
  221. if (HasDestinationObject) {
  222. return PBJ._PBJ.CastUuid(super.DestinationObject);
  223. } else {
  224. return PBJ._PBJ.CastUuid();
  225. }
  226. }
  227. }
  228. public const int DestinationPortFieldTag=4;
  229. public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} }
  230. public uint DestinationPort{ get {
  231. if (HasDestinationPort) {
  232. return PBJ._PBJ.CastUint32(super.DestinationPort);
  233. } else {
  234. return PBJ._PBJ.CastUint32();
  235. }
  236. }
  237. }
  238. public const int DestinationSpaceFieldTag=1537;
  239. public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} }
  240. public PBJ.UUID DestinationSpace{ get {
  241. if (HasDestinationSpace) {
  242. return PBJ._PBJ.CastUuid(super.DestinationSpace);
  243. } else {
  244. return PBJ._PBJ.CastUuid();
  245. }
  246. }
  247. }
  248. public const int IdFieldTag=7;
  249. public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} }
  250. public long Id{ get {
  251. if (HasId) {
  252. return PBJ._PBJ.CastInt64(super.Id);
  253. } else {
  254. return PBJ._PBJ.CastInt64();
  255. }
  256. }
  257. }
  258. public const int ReplyIdFieldTag=8;
  259. public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} }
  260. public long ReplyId{ get {
  261. if (HasReplyId) {
  262. return PBJ._PBJ.CastInt64(super.ReplyId);
  263. } else {
  264. return PBJ._PBJ.CastInt64();
  265. }
  266. }
  267. }
  268. public const int ReturnStatusFieldTag=1792;
  269. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  270. public Types.ReturnStatus ReturnStatus{ get {
  271. if (HasReturnStatus) {
  272. return (Types.ReturnStatus)super.ReturnStatus;
  273. } else {
  274. return new Types.ReturnStatus();
  275. }
  276. }
  277. }
  278. public const int MessageNamesFieldTag=9;
  279. public int MessageNamesCount { get { return super.MessageNamesCount;} }
  280. public bool HasMessageNames(int index) {return PBJ._PBJ.ValidateString(super.GetMessageNames(index));}
  281. public string MessageNames(int index) {
  282. return (string)PBJ._PBJ.CastString(super.GetMessageNames(index));
  283. }
  284. public const int MessageArgumentsFieldTag=10;
  285. public int MessageArgumentsCount { get { return super.MessageArgumentsCount;} }
  286. public bool HasMessageArguments(int index) {return PBJ._PBJ.ValidateBytes(super.GetMessageArguments(index));}
  287. public pb::ByteString MessageArguments(int index) {
  288. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetMessageArguments(index));
  289. }
  290. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  291. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  292. public static Builder CreateBuilder() { return new Builder(); }
  293. public static Builder CreateBuilder(ReadOnlyMessage prototype) {
  294. return (Builder)new Builder().MergeFrom(prototype);
  295. }
  296. public static ReadOnlyMessage ParseFrom(pb::ByteString data) {
  297. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data));
  298. }
  299. public static ReadOnlyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  300. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data,er));
  301. }
  302. public static ReadOnlyMessage ParseFrom(byte[] data) {
  303. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data));
  304. }
  305. public static ReadOnlyMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  306. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data,er));
  307. }
  308. public static ReadOnlyMessage ParseFrom(global::System.IO.Stream data) {
  309. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data));
  310. }
  311. public static ReadOnlyMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  312. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data,er));
  313. }
  314. public static ReadOnlyMessage ParseFrom(pb::CodedInputStream data) {
  315. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data));
  316. }
  317. public static ReadOnlyMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  318. return new ReadOnlyMessage(_PBJ_Internal.ReadOnlyMessage.ParseFrom(data,er));
  319. }
  320. protected override bool _HasAllPBJFields{ get {
  321. return true
  322. ;
  323. } }
  324. public bool IsInitialized { get {
  325. return super.IsInitialized&&_HasAllPBJFields;
  326. } }
  327. public class Builder : global::PBJ.IMessage.IBuilder{
  328. protected override bool _HasAllPBJFields{ get {
  329. return true
  330. ;
  331. } }
  332. public bool IsInitialized { get {
  333. return super.IsInitialized&&_HasAllPBJFields;
  334. } }
  335. protected _PBJ_Internal.ReadOnlyMessage.Builder super;
  336. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  337. public _PBJ_Internal.ReadOnlyMessage.Builder _PBJSuper{ get { return super;} }
  338. public Builder() {super = new _PBJ_Internal.ReadOnlyMessage.Builder();}
  339. public Builder(_PBJ_Internal.ReadOnlyMessage.Builder other) {
  340. super=other;
  341. }
  342. public Builder Clone() {return new Builder(super.Clone());}
  343. public Builder MergeFrom(ReadOnlyMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  344. public Builder Clear() {super.Clear();return this;}
  345. public ReadOnlyMessage BuildPartial() {return new ReadOnlyMessage(super.BuildPartial());}
  346. public ReadOnlyMessage Build() {if (_HasAllPBJFields) return new ReadOnlyMessage(super.Build());return null;}
  347. public pbd::MessageDescriptor DescriptorForType {
  348. get { return ReadOnlyMessage.Descriptor; } }
  349. public Builder ClearSourceObject() { super.ClearSourceObject();return this;}
  350. public const int SourceObjectFieldTag=1;
  351. public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} }
  352. public PBJ.UUID SourceObject{ get {
  353. if (HasSourceObject) {
  354. return PBJ._PBJ.CastUuid(super.SourceObject);
  355. } else {
  356. return PBJ._PBJ.CastUuid();
  357. }
  358. }
  359. set {
  360. super.SourceObject=(PBJ._PBJ.Construct(value));
  361. }
  362. }
  363. public Builder ClearSourcePort() { super.ClearSourcePort();return this;}
  364. public const int SourcePortFieldTag=3;
  365. public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} }
  366. public uint SourcePort{ get {
  367. if (HasSourcePort) {
  368. return PBJ._PBJ.CastUint32(super.SourcePort);
  369. } else {
  370. return PBJ._PBJ.CastUint32();
  371. }
  372. }
  373. set {
  374. super.SourcePort=(PBJ._PBJ.Construct(value));
  375. }
  376. }
  377. public Builder ClearSourceSpace() { super.ClearSourceSpace();return this;}
  378. public const int SourceSpaceFieldTag=1536;
  379. public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} }
  380. public PBJ.UUID SourceSpace{ get {
  381. if (HasSourceSpace) {
  382. return PBJ._PBJ.CastUuid(super.SourceSpace);
  383. } else {
  384. return PBJ._PBJ.CastUuid();
  385. }
  386. }
  387. set {
  388. super.SourceSpace=(PBJ._PBJ.Construct(value));
  389. }
  390. }
  391. public Builder ClearDestinationObject() { super.ClearDestinationObject();return this;}
  392. public const int DestinationObjectFieldTag=2;
  393. public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} }
  394. public PBJ.UUID DestinationObject{ get {
  395. if (HasDestinationObject) {
  396. return PBJ._PBJ.CastUuid(super.DestinationObject);
  397. } else {
  398. return PBJ._PBJ.CastUuid();
  399. }
  400. }
  401. set {
  402. super.DestinationObject=(PBJ._PBJ.Construct(value));
  403. }
  404. }
  405. public Builder ClearDestinationPort() { super.ClearDestinationPort();return this;}
  406. public const int DestinationPortFieldTag=4;
  407. public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} }
  408. public uint DestinationPort{ get {
  409. if (HasDestinationPort) {
  410. return PBJ._PBJ.CastUint32(super.DestinationPort);
  411. } else {
  412. return PBJ._PBJ.CastUint32();
  413. }
  414. }
  415. set {
  416. super.DestinationPort=(PBJ._PBJ.Construct(value));
  417. }
  418. }
  419. public Builder ClearDestinationSpace() { super.ClearDestinationSpace();return this;}
  420. public const int DestinationSpaceFieldTag=1537;
  421. public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} }
  422. public PBJ.UUID DestinationSpace{ get {
  423. if (HasDestinationSpace) {
  424. return PBJ._PBJ.CastUuid(super.DestinationSpace);
  425. } else {
  426. return PBJ._PBJ.CastUuid();
  427. }
  428. }
  429. set {
  430. super.DestinationSpace=(PBJ._PBJ.Construct(value));
  431. }
  432. }
  433. public Builder ClearId() { super.ClearId();return this;}
  434. public const int IdFieldTag=7;
  435. public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} }
  436. public long Id{ get {
  437. if (HasId) {
  438. return PBJ._PBJ.CastInt64(super.Id);
  439. } else {
  440. return PBJ._PBJ.CastInt64();
  441. }
  442. }
  443. set {
  444. super.Id=(PBJ._PBJ.Construct(value));
  445. }
  446. }
  447. public Builder ClearReplyId() { super.ClearReplyId();return this;}
  448. public const int ReplyIdFieldTag=8;
  449. public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} }
  450. public long ReplyId{ get {
  451. if (HasReplyId) {
  452. return PBJ._PBJ.CastInt64(super.ReplyId);
  453. } else {
  454. return PBJ._PBJ.CastInt64();
  455. }
  456. }
  457. set {
  458. super.ReplyId=(PBJ._PBJ.Construct(value));
  459. }
  460. }
  461. public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;}
  462. public const int ReturnStatusFieldTag=1792;
  463. public bool HasReturnStatus{ get {return super.HasReturnStatus;} }
  464. public Types.ReturnStatus ReturnStatus{ get {
  465. if (HasReturnStatus) {
  466. return (Types.ReturnStatus)super.ReturnStatus;
  467. } else {
  468. return new Types.ReturnStatus();
  469. }
  470. }
  471. set {
  472. super.ReturnStatus=((_PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus)value);
  473. }
  474. }
  475. public Builder ClearMessageNames() { super.ClearMessageNames();return this;}
  476. public Builder SetMessageNames(int index, string value) {
  477. super.SetMessageNames(index,PBJ._PBJ.Construct(value));
  478. return this;
  479. }
  480. public const int MessageNamesFieldTag=9;
  481. public int MessageNamesCount { get { return super.MessageNamesCount;} }
  482. public bool HasMessageNames(int index) {return PBJ._PBJ.ValidateString(super.GetMessageNames(index));}
  483. public string MessageNames(int index) {
  484. return (string)PBJ._PBJ.CastString(super.GetMessageNames(index));
  485. }
  486. public Builder AddMessageNames(string value) {
  487. super.AddMessageNames(PBJ._PBJ.Construct(value));
  488. return this;
  489. }
  490. public Builder ClearMessageArguments() { super.ClearMessageArguments();return this;}
  491. public Builder SetMessageArguments(int index, pb::ByteString value) {
  492. super.SetMessageArguments(index,PBJ._PBJ.Construct(value));
  493. return this;
  494. }
  495. public const int MessageArgumentsFieldTag=10;
  496. public int MessageArgumentsCount { get { return super.MessageArgumentsCount;} }
  497. public bool HasMessageArguments(int index) {return PBJ._PBJ.ValidateBytes(super.GetMessageArguments(index));}
  498. public pb::ByteString MessageArguments(int index) {
  499. return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetMessageArguments(index));
  500. }
  501. public Builder AddMessageArguments(pb::ByteString value) {
  502. super.AddMessageArguments(PBJ._PBJ.Construct(value));
  503. return this;
  504. }
  505. }
  506. }
  507. }
  508. namespace Sirikata.Protocol {
  509. public class SpaceServices : PBJ.IMessage {
  510. protected _PBJ_Internal.SpaceServices super;
  511. public _PBJ_Internal.SpaceServices _PBJSuper{ get { return super;} }
  512. public SpaceServices() {
  513. super=new _PBJ_Internal.SpaceServices();
  514. }
  515. public SpaceServices(_PBJ_Internal.SpaceServices reference) {
  516. super=reference;
  517. }
  518. public static SpaceServices defaultInstance= new SpaceServices (_PBJ_Internal.SpaceServices.DefaultInstance);
  519. public static SpaceServices DefaultInstance{
  520. get {return defaultInstance;}
  521. }
  522. public static pbd.MessageDescriptor Descriptor {
  523. get { return _PBJ_Internal.SpaceServices.Descriptor; } }
  524. public static class Types {
  525. }
  526. public static bool WithinReservedFieldTagRange(int field_tag) {
  527. return false;
  528. }
  529. public static bool WithinExtensionFieldTagRange(int field_tag) {
  530. return false;
  531. }
  532. public const int RegistrationPortFieldTag=33;
  533. public bool HasRegistrationPort{ get {return super.HasRegistrationPort&&PBJ._PBJ.ValidateUint32(super.RegistrationPort);} }
  534. public uint RegistrationPort{ get {
  535. if (HasRegistrationPort) {
  536. return PBJ._PBJ.CastUint32(super.RegistrationPort);
  537. } else {
  538. return PBJ._PBJ.CastUint32();
  539. }
  540. }
  541. }
  542. public const int LocPortFieldTag=34;
  543. public bool HasLocPort{ get {return super.HasLocPort&&PBJ._PBJ.ValidateUint32(super.LocPort);} }
  544. public uint LocPort{ get {
  545. if (HasLocPort) {
  546. return PBJ._PBJ.CastUint32(super.LocPort);
  547. } else {
  548. return PBJ._PBJ.CastUint32();
  549. }
  550. }
  551. }
  552. public const int GeomPortFieldTag=35;
  553. public bool HasGeomPort{ get {return super.HasGeomPort&&PBJ._PBJ.ValidateUint32(super.GeomPort);} }
  554. public uint GeomPort{ get {
  555. if (HasGeomPort) {
  556. return PBJ._PBJ.CastUint32(super.GeomPort);
  557. } else {
  558. return PBJ._PBJ.CastUint32();
  559. }
  560. }
  561. }
  562. public const int OsegPortFieldTag=36;
  563. public bool HasOsegPort{ get {return super.HasOsegPort&&PBJ._PBJ.ValidateUint32(super.OsegPort);} }
  564. public uint OsegPort{ get {
  565. if (HasOsegPort) {
  566. return PBJ._PBJ.CastUint32(super.OsegPort);
  567. } else {
  568. return PBJ._PBJ.CastUint32();
  569. }
  570. }
  571. }
  572. public const int CsegPortFieldTag=37;
  573. public bool HasCsegPort{ get {return super.HasCsegPort&&PBJ._PBJ.ValidateUint32(super.CsegPort);} }
  574. public uint CsegPort{ get {
  575. if (HasCsegPort) {
  576. return PBJ._PBJ.CastUint32(super.CsegPort);
  577. } else {
  578. return PBJ._PBJ.CastUint32();
  579. }
  580. }
  581. }
  582. public const int RouterPortFieldTag=38;
  583. public bool HasRouterPort{ get {return super.HasRouterPort&&PBJ._PBJ.ValidateUint32(super.RouterPort);} }
  584. public uint RouterPort{ get {
  585. if (HasRouterPort) {
  586. return PBJ._PBJ.CastUint32(super.RouterPort);
  587. } else {
  588. return PBJ._PBJ.CastUint32();
  589. }
  590. }
  591. }
  592. public const int PreConnectionBufferFieldTag=64;
  593. public bool HasPreConnectionBuffer{ get {return super.HasPreConnectionBuffer&&PBJ._PBJ.ValidateUint64(super.PreConnectionBuffer);} }
  594. public ulong PreConnectionBuffer{ get {
  595. if (HasPreConnectionBuffer) {
  596. return PBJ._PBJ.CastUint64(super.PreConnectionBuffer);
  597. } else {
  598. return PBJ._PBJ.CastUint64();
  599. }
  600. }
  601. }
  602. public const int MaxPreConnectionMessagesFieldTag=65;
  603. public bool HasMaxPreConnectionMessages{ get {return super.HasMaxPreConnectionMessages&&PBJ._PBJ.ValidateUint64(super.MaxPreConnectionMessages);} }
  604. public ulong MaxPreConnectionMessages{ get {
  605. if (HasMaxPreConnectionMessages) {
  606. return PBJ._PBJ.CastUint64(super.MaxPreConnectionMessages);
  607. } else {
  608. return PBJ._PBJ.CastUint64();
  609. }
  610. }
  611. }
  612. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  613. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  614. public static Builder CreateBuilder() { return new Builder(); }
  615. public static Builder CreateBuilder(SpaceServices prototype) {
  616. return (Builder)new Builder().MergeFrom(prototype);
  617. }
  618. public static SpaceServices ParseFrom(pb::ByteString data) {
  619. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data));
  620. }
  621. public static SpaceServices ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  622. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data,er));
  623. }
  624. public static SpaceServices ParseFrom(byte[] data) {
  625. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data));
  626. }
  627. public static SpaceServices ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  628. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data,er));
  629. }
  630. public static SpaceServices ParseFrom(global::System.IO.Stream data) {
  631. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data));
  632. }
  633. public static SpaceServices ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  634. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data,er));
  635. }
  636. public static SpaceServices ParseFrom(pb::CodedInputStream data) {
  637. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data));
  638. }
  639. public static SpaceServices ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  640. return new SpaceServices(_PBJ_Internal.SpaceServices.ParseFrom(data,er));
  641. }
  642. protected override bool _HasAllPBJFields{ get {
  643. return true
  644. ;
  645. } }
  646. public bool IsInitialized { get {
  647. return super.IsInitialized&&_HasAllPBJFields;
  648. } }
  649. public class Builder : global::PBJ.IMessage.IBuilder{
  650. protected override bool _HasAllPBJFields{ get {
  651. return true
  652. ;
  653. } }
  654. public bool IsInitialized { get {
  655. return super.IsInitialized&&_HasAllPBJFields;
  656. } }
  657. protected _PBJ_Internal.SpaceServices.Builder super;
  658. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  659. public _PBJ_Internal.SpaceServices.Builder _PBJSuper{ get { return super;} }
  660. public Builder() {super = new _PBJ_Internal.SpaceServices.Builder();}
  661. public Builder(_PBJ_Internal.SpaceServices.Builder other) {
  662. super=other;
  663. }
  664. public Builder Clone() {return new Builder(super.Clone());}
  665. public Builder MergeFrom(SpaceServices prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  666. public Builder Clear() {super.Clear();return this;}
  667. public SpaceServices BuildPartial() {return new SpaceServices(super.BuildPartial());}
  668. public SpaceServices Build() {if (_HasAllPBJFields) return new SpaceServices(super.Build());return null;}
  669. public pbd::MessageDescriptor DescriptorForType {
  670. get { return SpaceServices.Descriptor; } }
  671. public Builder ClearRegistrationPort() { super.ClearRegistrationPort();return this;}
  672. public const int RegistrationPortFieldTag=33;
  673. public bool HasRegistrationPort{ get {return super.HasRegistrationPort&&PBJ._PBJ.ValidateUint32(super.RegistrationPort);} }
  674. public uint RegistrationPort{ get {
  675. if (HasRegistrationPort) {
  676. return PBJ._PBJ.CastUint32(super.RegistrationPort);
  677. } else {
  678. return PBJ._PBJ.CastUint32();
  679. }
  680. }
  681. set {
  682. super.RegistrationPort=(PBJ._PBJ.Construct(value));
  683. }
  684. }
  685. public Builder ClearLocPort() { super.ClearLocPort();return this;}
  686. public const int LocPortFieldTag=34;
  687. public bool HasLocPort{ get {return super.HasLocPort&&PBJ._PBJ.ValidateUint32(super.LocPort);} }
  688. public uint LocPort{ get {
  689. if (HasLocPort) {
  690. return PBJ._PBJ.CastUint32(super.LocPort);
  691. } else {
  692. return PBJ._PBJ.CastUint32();
  693. }
  694. }
  695. set {
  696. super.LocPort=(PBJ._PBJ.Construct(value));
  697. }
  698. }
  699. public Builder ClearGeomPort() { super.ClearGeomPort();return this;}
  700. public const int GeomPortFieldTag=35;
  701. public bool HasGeomPort{ get {return super.HasGeomPort&&PBJ._PBJ.ValidateUint32(super.GeomPort);} }
  702. public uint GeomPort{ get {
  703. if (HasGeomPort) {
  704. return PBJ._PBJ.CastUint32(super.GeomPort);
  705. } else {
  706. return PBJ._PBJ.CastUint32();
  707. }
  708. }
  709. set {
  710. super.GeomPort=(PBJ._PBJ.Construct(value));
  711. }
  712. }
  713. public Builder ClearOsegPort() { super.ClearOsegPort();return this;}
  714. public const int OsegPortFieldTag=36;
  715. public bool HasOsegPort{ get {return super.HasOsegPort&&PBJ._PBJ.ValidateUint32(super.OsegPort);} }
  716. public uint OsegPort{ get {
  717. if (HasOsegPort) {
  718. return PBJ._PBJ.CastUint32(super.OsegPort);
  719. } else {
  720. return PBJ._PBJ.CastUint32();
  721. }
  722. }
  723. set {
  724. super.OsegPort=(PBJ._PBJ.Construct(value));
  725. }
  726. }
  727. public Builder ClearCsegPort() { super.ClearCsegPort();return this;}
  728. public const int CsegPortFieldTag=37;
  729. public bool HasCsegPort{ get {return super.HasCsegPort&&PBJ._PBJ.ValidateUint32(super.CsegPort);} }
  730. public uint CsegPort{ get {
  731. if (HasCsegPort) {
  732. return PBJ._PBJ.CastUint32(super.CsegPort);
  733. } else {
  734. return PBJ._PBJ.CastUint32();
  735. }
  736. }
  737. set {
  738. super.CsegPort=(PBJ._PBJ.Construct(value));
  739. }
  740. }
  741. public Builder ClearRouterPort() { super.ClearRouterPort();return this;}
  742. public const int RouterPortFieldTag=38;
  743. public bool HasRouterPort{ get {return super.HasRouterPort&&PBJ._PBJ.ValidateUint32(super.RouterPort);} }
  744. public uint RouterPort{ get {
  745. if (HasRouterPort) {
  746. return PBJ._PBJ.CastUint32(super.RouterPort);
  747. } else {
  748. return PBJ._PBJ.CastUint32();
  749. }
  750. }
  751. set {
  752. super.RouterPort=(PBJ._PBJ.Construct(value));
  753. }
  754. }
  755. public Builder ClearPreConnectionBuffer() { super.ClearPreConnectionBuffer();return this;}
  756. public const int PreConnectionBufferFieldTag=64;
  757. public bool HasPreConnectionBuffer{ get {return super.HasPreConnectionBuffer&&PBJ._PBJ.ValidateUint64(super.PreConnectionBuffer);} }
  758. public ulong PreConnectionBuffer{ get {
  759. if (HasPreConnectionBuffer) {
  760. return PBJ._PBJ.CastUint64(super.PreConnectionBuffer);
  761. } else {
  762. return PBJ._PBJ.CastUint64();
  763. }
  764. }
  765. set {
  766. super.PreConnectionBuffer=(PBJ._PBJ.Construct(value));
  767. }
  768. }
  769. public Builder ClearMaxPreConnectionMessages() { super.ClearMaxPreConnectionMessages();return this;}
  770. public const int MaxPreConnectionMessagesFieldTag=65;
  771. public bool HasMaxPreConnectionMessages{ get {return super.HasMaxPreConnectionMessages&&PBJ._PBJ.ValidateUint64(super.MaxPreConnectionMessages);} }
  772. public ulong MaxPreConnectionMessages{ get {
  773. if (HasMaxPreConnectionMessages) {
  774. return PBJ._PBJ.CastUint64(super.MaxPreConnectionMessages);
  775. } else {
  776. return PBJ._PBJ.CastUint64();
  777. }
  778. }
  779. set {
  780. super.MaxPreConnectionMessages=(PBJ._PBJ.Construct(value));
  781. }
  782. }
  783. }
  784. }
  785. }
  786. namespace Sirikata.Protocol {
  787. public class ObjLoc : PBJ.IMessage {
  788. protected _PBJ_Internal.ObjLoc super;
  789. public _PBJ_Internal.ObjLoc _PBJSuper{ get { return super;} }
  790. public ObjLoc() {
  791. super=new _PBJ_Internal.ObjLoc();
  792. }
  793. public ObjLoc(_PBJ_Internal.ObjLoc reference) {
  794. super=reference;
  795. }
  796. public static ObjLoc defaultInstance= new ObjLoc (_PBJ_Internal.ObjLoc.DefaultInstance);
  797. public static ObjLoc DefaultInstance{
  798. get {return defaultInstance;}
  799. }
  800. public static pbd.MessageDescriptor Descriptor {
  801. get { return _PBJ_Internal.ObjLoc.Descriptor; } }
  802. public static class Types {
  803. public enum UpdateFlags {
  804. FORCE=_PBJ_Internal.ObjLoc.Types.UpdateFlags.FORCE
  805. };
  806. }
  807. public static bool WithinReservedFieldTagRange(int field_tag) {
  808. return false;
  809. }
  810. public static bool WithinExtensionFieldTagRange(int field_tag) {
  811. return false;
  812. }
  813. public const int TimestampFieldTag=2;
  814. public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
  815. public PBJ.Time Timestamp{ get {
  816. if (HasTimestamp) {
  817. return PBJ._PBJ.CastTime(super.Timestamp);
  818. } else {
  819. return PBJ._PBJ.CastTime();
  820. }
  821. }
  822. }
  823. public const int PositionFieldTag=3;
  824. public bool HasPosition{ get {return super.PositionCount>=3;} }
  825. public PBJ.Vector3d Position{ get {
  826. int index=0;
  827. if (HasPosition) {
  828. return PBJ._PBJ.CastVector3d(super.GetPosition(index*3+0),super.GetPosition(index*3+1),super.GetPosition(index*3+2));
  829. } else {
  830. return PBJ._PBJ.CastVector3d();
  831. }
  832. }
  833. }
  834. public const int OrientationFieldTag=4;
  835. public bool HasOrientation{ get {return super.OrientationCount>=3;} }
  836. public PBJ.Quaternion Orientation{ get {
  837. int index=0;
  838. if (HasOrientation) {
  839. return PBJ._PBJ.CastQuaternion(super.GetOrientation(index*3+0),super.GetOrientation(index*3+1),super.GetOrientation(index*3+2));
  840. } else {
  841. return PBJ._PBJ.CastQuaternion();
  842. }
  843. }
  844. }
  845. public const int VelocityFieldTag=5;
  846. public bool HasVelocity{ get {return super.VelocityCount>=3;} }
  847. public PBJ.Vector3f Velocity{ get {
  848. int index=0;
  849. if (HasVelocity) {
  850. return PBJ._PBJ.CastVector3f(super.GetVelocity(index*3+0),super.GetVelocity(index*3+1),super.GetVelocity(index*3+2));
  851. } else {
  852. return PBJ._PBJ.CastVector3f();
  853. }
  854. }
  855. }
  856. public const int RotationalAxisFieldTag=7;
  857. public bool HasRotationalAxis{ get {return super.RotationalAxisCount>=2;} }
  858. public PBJ.Vector3f RotationalAxis{ get {
  859. int index=0;
  860. if (HasRotationalAxis) {
  861. return PBJ._PBJ.CastNormal(super.GetRotationalAxis(index*2+0),super.GetRotationalAxis(index*2+1));
  862. } else {
  863. return PBJ._PBJ.CastNormal();
  864. }
  865. }
  866. }
  867. public const int AngularSpeedFieldTag=8;
  868. public bool HasAngularSpeed{ get {return super.HasAngularSpeed&&PBJ._PBJ.ValidateFloat(super.AngularSpeed);} }
  869. public float AngularSpeed{ get {
  870. if (HasAngularSpeed) {
  871. return PBJ._PBJ.CastFloat(super.AngularSpeed);
  872. } else {
  873. return PBJ._PBJ.CastFloat();
  874. }
  875. }
  876. }
  877. public const int UpdateFlagsFieldTag=6;
  878. public bool HasUpdateFlags { get {
  879. if (!super.HasUpdateFlags) return false;
  880. return PBJ._PBJ.ValidateFlags(super.UpdateFlags,(ulong)Types.UpdateFlags.FORCE);
  881. } }
  882. public byte UpdateFlags{ get {
  883. if (HasUpdateFlags) {
  884. return (byte)PBJ._PBJ.CastFlags(super.UpdateFlags,(ulong)Types.UpdateFlags.FORCE);
  885. } else {
  886. return (byte)PBJ._PBJ.CastFlags((ulong)Types.UpdateFlags.FORCE);
  887. }
  888. }
  889. }
  890. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  891. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  892. public static Builder CreateBuilder() { return new Builder(); }
  893. public static Builder CreateBuilder(ObjLoc prototype) {
  894. return (Builder)new Builder().MergeFrom(prototype);
  895. }
  896. public static ObjLoc ParseFrom(pb::ByteString data) {
  897. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data));
  898. }
  899. public static ObjLoc ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  900. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data,er));
  901. }
  902. public static ObjLoc ParseFrom(byte[] data) {
  903. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data));
  904. }
  905. public static ObjLoc ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  906. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data,er));
  907. }
  908. public static ObjLoc ParseFrom(global::System.IO.Stream data) {
  909. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data));
  910. }
  911. public static ObjLoc ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  912. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data,er));
  913. }
  914. public static ObjLoc ParseFrom(pb::CodedInputStream data) {
  915. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data));
  916. }
  917. public static ObjLoc ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  918. return new ObjLoc(_PBJ_Internal.ObjLoc.ParseFrom(data,er));
  919. }
  920. protected override bool _HasAllPBJFields{ get {
  921. return true
  922. ;
  923. } }
  924. public bool IsInitialized { get {
  925. return super.IsInitialized&&_HasAllPBJFields;
  926. } }
  927. public class Builder : global::PBJ.IMessage.IBuilder{
  928. protected override bool _HasAllPBJFields{ get {
  929. return true
  930. ;
  931. } }
  932. public bool IsInitialized { get {
  933. return super.IsInitialized&&_HasAllPBJFields;
  934. } }
  935. protected _PBJ_Internal.ObjLoc.Builder super;
  936. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  937. public _PBJ_Internal.ObjLoc.Builder _PBJSuper{ get { return super;} }
  938. public Builder() {super = new _PBJ_Internal.ObjLoc.Builder();}
  939. public Builder(_PBJ_Internal.ObjLoc.Builder other) {
  940. super=other;
  941. }
  942. public Builder Clone() {return new Builder(super.Clone());}
  943. public Builder MergeFrom(ObjLoc prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  944. public Builder Clear() {super.Clear();return this;}
  945. public ObjLoc BuildPartial() {return new ObjLoc(super.BuildPartial());}
  946. public ObjLoc Build() {if (_HasAllPBJFields) return new ObjLoc(super.Build());return null;}
  947. public pbd::MessageDescriptor DescriptorForType {
  948. get { return ObjLoc.Descriptor; } }
  949. public Builder ClearTimestamp() { super.ClearTimestamp();return this;}
  950. public const int TimestampFieldTag=2;
  951. public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
  952. public PBJ.Time Timestamp{ get {
  953. if (HasTimestamp) {
  954. return PBJ._PBJ.CastTime(super.Timestamp);
  955. } else {
  956. return PBJ._PBJ.CastTime();
  957. }
  958. }
  959. set {
  960. super.Timestamp=(PBJ._PBJ.Construct(value));
  961. }
  962. }
  963. public Builder ClearPosition() { super.ClearPosition();return this;}
  964. public const int PositionFieldTag=3;
  965. public bool HasPosition{ get {return super.PositionCount>=3;} }
  966. public PBJ.Vector3d Position{ get {
  967. int index=0;
  968. if (HasPosition) {
  969. return PBJ._PBJ.CastVector3d(super.GetPosition(index*3+0),super.GetPosition(index*3+1),super.GetPosition(index*3+2));
  970. } else {
  971. return PBJ._PBJ.CastVector3d();
  972. }
  973. }
  974. set {
  975. super.ClearPosition();
  976. double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
  977. super.AddPosition(_PBJtempArray[0]);
  978. super.AddPosition(_PBJtempArray[1]);
  979. super.AddPosition(_PBJtempArray[2]);
  980. }
  981. }
  982. public Builder ClearOrientation() { super.ClearOrientation();return this;}
  983. public const int OrientationFieldTag=4;
  984. public bool HasOrientation{ get {return super.OrientationCount>=3;} }
  985. public PBJ.Quaternion Orientation{ get {
  986. int index=0;
  987. if (HasOrientation) {
  988. return PBJ._PBJ.CastQuaternion(super.GetOrientation(index*3+0),super.GetOrientation(index*3+1),super.GetOrientation(index*3+2));
  989. } else {
  990. return PBJ._PBJ.CastQuaternion();
  991. }
  992. }
  993. set {
  994. super.ClearOrientation();
  995. float[] _PBJtempArray=PBJ._PBJ.ConstructQuaternion(value);
  996. super.AddOrientation(_PBJtempArray[0]);
  997. super.AddOrientation(_PBJtempArray[1]);
  998. super.AddOrientation(_PBJtempArray[2]);
  999. }
  1000. }
  1001. public Builder ClearVelocity() { super.ClearVelocity();return this;}
  1002. public const int VelocityFieldTag=5;
  1003. public bool HasVelocity{ get {return super.VelocityCount>=3;} }
  1004. public PBJ.Vector3f Velocity{ get {
  1005. int index=0;
  1006. if (HasVelocity) {
  1007. return PBJ._PBJ.CastVector3f(super.GetVelocity(index*3+0),super.GetVelocity(index*3+1),super.GetVelocity(index*3+2));
  1008. } else {
  1009. return PBJ._PBJ.CastVector3f();
  1010. }
  1011. }
  1012. set {
  1013. super.ClearVelocity();
  1014. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  1015. super.AddVelocity(_PBJtempArray[0]);
  1016. super.AddVelocity(_PBJtempArray[1]);
  1017. super.AddVelocity(_PBJtempArray[2]);
  1018. }
  1019. }
  1020. public Builder ClearRotationalAxis() { super.ClearRotationalAxis();return this;}
  1021. public const int RotationalAxisFieldTag=7;
  1022. public bool HasRotationalAxis{ get {return super.RotationalAxisCount>=2;} }
  1023. public PBJ.Vector3f RotationalAxis{ get {
  1024. int index=0;
  1025. if (HasRotationalAxis) {
  1026. return PBJ._PBJ.CastNormal(super.GetRotationalAxis(index*2+0),super.GetRotationalAxis(index*2+1));
  1027. } else {
  1028. return PBJ._PBJ.CastNormal();
  1029. }
  1030. }
  1031. set {
  1032. super.ClearRotationalAxis();
  1033. float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
  1034. super.AddRotationalAxis(_PBJtempArray[0]);
  1035. super.AddRotationalAxis(_PBJtempArray[1]);
  1036. }
  1037. }
  1038. public Builder ClearAngularSpeed() { super.ClearAngularSpeed();return this;}
  1039. public const int AngularSpeedFieldTag=8;
  1040. public bool HasAngularSpeed{ get {return super.HasAngularSpeed&&PBJ._PBJ.ValidateFloat(super.AngularSpeed);} }
  1041. public float AngularSpeed{ get {
  1042. if (HasAngularSpeed) {
  1043. return PBJ._PBJ.CastFloat(super.AngularSpeed);
  1044. } else {
  1045. return PBJ._PBJ.CastFloat();
  1046. }
  1047. }
  1048. set {
  1049. super.AngularSpeed=(PBJ._PBJ.Construct(value));
  1050. }
  1051. }
  1052. public Builder ClearUpdateFlags() { super.ClearUpdateFlags();return this;}
  1053. public const int UpdateFlagsFieldTag=6;
  1054. public bool HasUpdateFlags { get {
  1055. if (!super.HasUpdateFlags) return false;
  1056. return PBJ._PBJ.ValidateFlags(super.UpdateFlags,(ulong)Types.UpdateFlags.FORCE);
  1057. } }
  1058. public byte UpdateFlags{ get {
  1059. if (HasUpdateFlags) {
  1060. return (byte)PBJ._PBJ.CastFlags(super.UpdateFlags,(ulong)Types.UpdateFlags.FORCE);
  1061. } else {
  1062. return (byte)PBJ._PBJ.CastFlags((ulong)Types.UpdateFlags.FORCE);
  1063. }
  1064. }
  1065. set {
  1066. super.UpdateFlags=((value));
  1067. }
  1068. }
  1069. }
  1070. }
  1071. }
  1072. namespace Sirikata.Protocol {
  1073. public class LocRequest : PBJ.IMessage {
  1074. protected _PBJ_Internal.LocRequest super;
  1075. public _PBJ_Internal.LocRequest _PBJSuper{ get { return super;} }
  1076. public LocRequest() {
  1077. super=new _PBJ_Internal.LocRequest();
  1078. }
  1079. public LocRequest(_PBJ_Internal.LocRequest reference) {
  1080. super=reference;
  1081. }
  1082. public static LocRequest defaultInstance= new LocRequest (_PBJ_Internal.LocRequest.DefaultInstance);
  1083. public static LocRequest DefaultInstance{
  1084. get {return defaultInstance;}
  1085. }
  1086. public static pbd.MessageDescriptor Descriptor {
  1087. get { return _PBJ_Internal.LocRequest.Descriptor; } }
  1088. public static class Types {
  1089. public enum Fields {
  1090. POSITION=_PBJ_Internal.LocRequest.Types.Fields.POSITION,
  1091. ORIENTATION=_PBJ_Internal.LocRequest.Types.Fields.ORIENTATION,
  1092. VELOCITY=_PBJ_Internal.LocRequest.Types.Fields.VELOCITY,
  1093. ROTATIONAL_AXIS=_PBJ_Internal.LocRequest.Types.Fields.ROTATIONAL_AXIS,
  1094. ANGULAR_SPEED=_PBJ_Internal.LocRequest.Types.Fields.ANGULAR_SPEED
  1095. };
  1096. }
  1097. public static bool WithinReservedFieldTagRange(int field_tag) {
  1098. return false;
  1099. }
  1100. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1101. return false;
  1102. }
  1103. public const int RequestedFieldsFieldTag=2;
  1104. public bool HasRequestedFields { get {
  1105. if (!super.HasRequestedFields) return false;
  1106. return PBJ._PBJ.ValidateFlags(super.RequestedFields,(ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1107. } }
  1108. public uint RequestedFields{ get {
  1109. if (HasRequestedFields) {
  1110. return (uint)PBJ._PBJ.CastFlags(super.RequestedFields,(ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1111. } else {
  1112. return (uint)PBJ._PBJ.CastFlags((ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1113. }
  1114. }
  1115. }
  1116. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1117. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1118. public static Builder CreateBuilder() { return new Builder(); }
  1119. public static Builder CreateBuilder(LocRequest prototype) {
  1120. return (Builder)new Builder().MergeFrom(prototype);
  1121. }
  1122. public static LocRequest ParseFrom(pb::ByteString data) {
  1123. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data));
  1124. }
  1125. public static LocRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1126. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data,er));
  1127. }
  1128. public static LocRequest ParseFrom(byte[] data) {
  1129. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data));
  1130. }
  1131. public static LocRequest ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1132. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data,er));
  1133. }
  1134. public static LocRequest ParseFrom(global::System.IO.Stream data) {
  1135. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data));
  1136. }
  1137. public static LocRequest ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1138. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data,er));
  1139. }
  1140. public static LocRequest ParseFrom(pb::CodedInputStream data) {
  1141. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data));
  1142. }
  1143. public static LocRequest ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1144. return new LocRequest(_PBJ_Internal.LocRequest.ParseFrom(data,er));
  1145. }
  1146. protected override bool _HasAllPBJFields{ get {
  1147. return true
  1148. ;
  1149. } }
  1150. public bool IsInitialized { get {
  1151. return super.IsInitialized&&_HasAllPBJFields;
  1152. } }
  1153. public class Builder : global::PBJ.IMessage.IBuilder{
  1154. protected override bool _HasAllPBJFields{ get {
  1155. return true
  1156. ;
  1157. } }
  1158. public bool IsInitialized { get {
  1159. return super.IsInitialized&&_HasAllPBJFields;
  1160. } }
  1161. protected _PBJ_Internal.LocRequest.Builder super;
  1162. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1163. public _PBJ_Internal.LocRequest.Builder _PBJSuper{ get { return super;} }
  1164. public Builder() {super = new _PBJ_Internal.LocRequest.Builder();}
  1165. public Builder(_PBJ_Internal.LocRequest.Builder other) {
  1166. super=other;
  1167. }
  1168. public Builder Clone() {return new Builder(super.Clone());}
  1169. public Builder MergeFrom(LocRequest prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1170. public Builder Clear() {super.Clear();return this;}
  1171. public LocRequest BuildPartial() {return new LocRequest(super.BuildPartial());}
  1172. public LocRequest Build() {if (_HasAllPBJFields) return new LocRequest(super.Build());return null;}
  1173. public pbd::MessageDescriptor DescriptorForType {
  1174. get { return LocRequest.Descriptor; } }
  1175. public Builder ClearRequestedFields() { super.ClearRequestedFields();return this;}
  1176. public const int RequestedFieldsFieldTag=2;
  1177. public bool HasRequestedFields { get {
  1178. if (!super.HasRequestedFields) return false;
  1179. return PBJ._PBJ.ValidateFlags(super.RequestedFields,(ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1180. } }
  1181. public uint RequestedFields{ get {
  1182. if (HasRequestedFields) {
  1183. return (uint)PBJ._PBJ.CastFlags(super.RequestedFields,(ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1184. } else {
  1185. return (uint)PBJ._PBJ.CastFlags((ulong)Types.Fields.POSITION|(ulong)Types.Fields.ORIENTATION|(ulong)Types.Fields.VELOCITY|(ulong)Types.Fields.ROTATIONAL_AXIS|(ulong)Types.Fields.ANGULAR_SPEED);
  1186. }
  1187. }
  1188. set {
  1189. super.RequestedFields=((value));
  1190. }
  1191. }
  1192. }
  1193. }
  1194. }
  1195. namespace Sirikata.Protocol {
  1196. public class NewObj : PBJ.IMessage {
  1197. protected _PBJ_Internal.NewObj super;
  1198. public _PBJ_Internal.NewObj _PBJSuper{ get { return super;} }
  1199. public NewObj() {
  1200. super=new _PBJ_Internal.NewObj();
  1201. }
  1202. public NewObj(_PBJ_Internal.NewObj reference) {
  1203. super=reference;
  1204. }
  1205. public static NewObj defaultInstance= new NewObj (_PBJ_Internal.NewObj.DefaultInstance);
  1206. public static NewObj DefaultInstance{
  1207. get {return defaultInstance;}
  1208. }
  1209. public static pbd.MessageDescriptor Descriptor {
  1210. get { return _PBJ_Internal.NewObj.Descriptor; } }
  1211. public static class Types {
  1212. }
  1213. public static bool WithinReservedFieldTagRange(int field_tag) {
  1214. return false;
  1215. }
  1216. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1217. return false;
  1218. }
  1219. public const int ObjectUuidEvidenceFieldTag=2;
  1220. public bool HasObjectUuidEvidence{ get {return super.HasObjectUuidEvidence&&PBJ._PBJ.ValidateUuid(super.ObjectUuidEvidence);} }
  1221. public PBJ.UUID ObjectUuidEvidence{ get {
  1222. if (HasObjectUuidEvidence) {
  1223. return PBJ._PBJ.CastUuid(super.ObjectUuidEvidence);
  1224. } else {
  1225. return PBJ._PBJ.CastUuid();
  1226. }
  1227. }
  1228. }
  1229. public const int RequestedObjectLocFieldTag=3;
  1230. public bool HasRequestedObjectLoc{ get {return super.HasRequestedObjectLoc;} }
  1231. public ObjLoc RequestedObjectLoc{ get {
  1232. if (HasRequestedObjectLoc) {
  1233. return new ObjLoc(super.RequestedObjectLoc);
  1234. } else {
  1235. return new ObjLoc();
  1236. }
  1237. }
  1238. }
  1239. public const int BoundingSphereFieldTag=4;
  1240. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  1241. public PBJ.BoundingSphere3f BoundingSphere{ get {
  1242. int index=0;
  1243. if (HasBoundingSphere) {
  1244. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  1245. } else {
  1246. return PBJ._PBJ.CastBoundingsphere3f();
  1247. }
  1248. }
  1249. }
  1250. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1251. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1252. public static Builder CreateBuilder() { return new Builder(); }
  1253. public static Builder CreateBuilder(NewObj prototype) {
  1254. return (Builder)new Builder().MergeFrom(prototype);
  1255. }
  1256. public static NewObj ParseFrom(pb::ByteString data) {
  1257. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data));
  1258. }
  1259. public static NewObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1260. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data,er));
  1261. }
  1262. public static NewObj ParseFrom(byte[] data) {
  1263. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data));
  1264. }
  1265. public static NewObj ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1266. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data,er));
  1267. }
  1268. public static NewObj ParseFrom(global::System.IO.Stream data) {
  1269. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data));
  1270. }
  1271. public static NewObj ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1272. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data,er));
  1273. }
  1274. public static NewObj ParseFrom(pb::CodedInputStream data) {
  1275. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data));
  1276. }
  1277. public static NewObj ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1278. return new NewObj(_PBJ_Internal.NewObj.ParseFrom(data,er));
  1279. }
  1280. protected override bool _HasAllPBJFields{ get {
  1281. return true
  1282. ;
  1283. } }
  1284. public bool IsInitialized { get {
  1285. return super.IsInitialized&&_HasAllPBJFields;
  1286. } }
  1287. public class Builder : global::PBJ.IMessage.IBuilder{
  1288. protected override bool _HasAllPBJFields{ get {
  1289. return true
  1290. ;
  1291. } }
  1292. public bool IsInitialized { get {
  1293. return super.IsInitialized&&_HasAllPBJFields;
  1294. } }
  1295. protected _PBJ_Internal.NewObj.Builder super;
  1296. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1297. public _PBJ_Internal.NewObj.Builder _PBJSuper{ get { return super;} }
  1298. public Builder() {super = new _PBJ_Internal.NewObj.Builder();}
  1299. public Builder(_PBJ_Internal.NewObj.Builder other) {
  1300. super=other;
  1301. }
  1302. public Builder Clone() {return new Builder(super.Clone());}
  1303. public Builder MergeFrom(NewObj prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1304. public Builder Clear() {super.Clear();return this;}
  1305. public NewObj BuildPartial() {return new NewObj(super.BuildPartial());}
  1306. public NewObj Build() {if (_HasAllPBJFields) return new NewObj(super.Build());return null;}
  1307. public pbd::MessageDescriptor DescriptorForType {
  1308. get { return NewObj.Descriptor; } }
  1309. public Builder ClearObjectUuidEvidence() { super.ClearObjectUuidEvidence();return this;}
  1310. public const int ObjectUuidEvidenceFieldTag=2;
  1311. public bool HasObjectUuidEvidence{ get {return super.HasObjectUuidEvidence&&PBJ._PBJ.ValidateUuid(super.ObjectUuidEvidence);} }
  1312. public PBJ.UUID ObjectUuidEvidence{ get {
  1313. if (HasObjectUuidEvidence) {
  1314. return PBJ._PBJ.CastUuid(super.ObjectUuidEvidence);
  1315. } else {
  1316. return PBJ._PBJ.CastUuid();
  1317. }
  1318. }
  1319. set {
  1320. super.ObjectUuidEvidence=(PBJ._PBJ.Construct(value));
  1321. }
  1322. }
  1323. public Builder ClearRequestedObjectLoc() { super.ClearRequestedObjectLoc();return this;}
  1324. public const int RequestedObjectLocFieldTag=3;
  1325. public bool HasRequestedObjectLoc{ get {return super.HasRequestedObjectLoc;} }
  1326. public ObjLoc RequestedObjectLoc{ get {
  1327. if (HasRequestedObjectLoc) {
  1328. return new ObjLoc(super.RequestedObjectLoc);
  1329. } else {
  1330. return new ObjLoc();
  1331. }
  1332. }
  1333. set {
  1334. super.RequestedObjectLoc=value._PBJSuper;
  1335. }
  1336. }
  1337. public Builder ClearBoundingSphere() { super.ClearBoundingSphere();return this;}
  1338. public const int BoundingSphereFieldTag=4;
  1339. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  1340. public PBJ.BoundingSphere3f BoundingSphere{ get {
  1341. int index=0;
  1342. if (HasBoundingSphere) {
  1343. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  1344. } else {
  1345. return PBJ._PBJ.CastBoundingsphere3f();
  1346. }
  1347. }
  1348. set {
  1349. super.ClearBoundingSphere();
  1350. float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
  1351. super.AddBoundingSphere(_PBJtempArray[0]);
  1352. super.AddBoundingSphere(_PBJtempArray[1]);
  1353. super.AddBoundingSphere(_PBJtempArray[2]);
  1354. super.AddBoundingSphere(_PBJtempArray[3]);
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. namespace Sirikata.Protocol {
  1361. public class RetObj : PBJ.IMessage {
  1362. protected _PBJ_Internal.RetObj super;
  1363. public _PBJ_Internal.RetObj _PBJSuper{ get { return super;} }
  1364. public RetObj() {
  1365. super=new _PBJ_Internal.RetObj();
  1366. }
  1367. public RetObj(_PBJ_Internal.RetObj reference) {
  1368. super=reference;
  1369. }
  1370. public static RetObj defaultInstance= new RetObj (_PBJ_Internal.RetObj.DefaultInstance);
  1371. public static RetObj DefaultInstance{
  1372. get {return defaultInstance;}
  1373. }
  1374. public static pbd.MessageDescriptor Descriptor {
  1375. get { return _PBJ_Internal.RetObj.Descriptor; } }
  1376. public static class Types {
  1377. }
  1378. public static bool WithinReservedFieldTagRange(int field_tag) {
  1379. return false;
  1380. }
  1381. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1382. return false;
  1383. }
  1384. public const int ObjectReferenceFieldTag=2;
  1385. public bool HasObjectReference{ get {return super.HasObjectReference&&PBJ._PBJ.ValidateUuid(super.ObjectReference);} }
  1386. public PBJ.UUID ObjectReference{ get {
  1387. if (HasObjectReference) {
  1388. return PBJ._PBJ.CastUuid(super.ObjectReference);
  1389. } else {
  1390. return PBJ._PBJ.CastUuid();
  1391. }
  1392. }
  1393. }
  1394. public const int LocationFieldTag=3;
  1395. public bool HasLocation{ get {return super.HasLocation;} }
  1396. public ObjLoc Location{ get {
  1397. if (HasLocation) {
  1398. return new ObjLoc(super.Location);
  1399. } else {
  1400. return new ObjLoc();
  1401. }
  1402. }
  1403. }
  1404. public const int BoundingSphereFieldTag=4;
  1405. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  1406. public PBJ.BoundingSphere3f BoundingSphere{ get {
  1407. int index=0;
  1408. if (HasBoundingSphere) {
  1409. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  1410. } else {
  1411. return PBJ._PBJ.CastBoundingsphere3f();
  1412. }
  1413. }
  1414. }
  1415. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1416. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1417. public static Builder CreateBuilder() { return new Builder(); }
  1418. public static Builder CreateBuilder(RetObj prototype) {
  1419. return (Builder)new Builder().MergeFrom(prototype);
  1420. }
  1421. public static RetObj ParseFrom(pb::ByteString data) {
  1422. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data));
  1423. }
  1424. public static RetObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1425. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data,er));
  1426. }
  1427. public static RetObj ParseFrom(byte[] data) {
  1428. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data));
  1429. }
  1430. public static RetObj ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1431. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data,er));
  1432. }
  1433. public static RetObj ParseFrom(global::System.IO.Stream data) {
  1434. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data));
  1435. }
  1436. public static RetObj ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1437. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data,er));
  1438. }
  1439. public static RetObj ParseFrom(pb::CodedInputStream data) {
  1440. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data));
  1441. }
  1442. public static RetObj ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1443. return new RetObj(_PBJ_Internal.RetObj.ParseFrom(data,er));
  1444. }
  1445. protected override bool _HasAllPBJFields{ get {
  1446. return true
  1447. ;
  1448. } }
  1449. public bool IsInitialized { get {
  1450. return super.IsInitialized&&_HasAllPBJFields;
  1451. } }
  1452. public class Builder : global::PBJ.IMessage.IBuilder{
  1453. protected override bool _HasAllPBJFields{ get {
  1454. return true
  1455. ;
  1456. } }
  1457. public bool IsInitialized { get {
  1458. return super.IsInitialized&&_HasAllPBJFields;
  1459. } }
  1460. protected _PBJ_Internal.RetObj.Builder super;
  1461. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1462. public _PBJ_Internal.RetObj.Builder _PBJSuper{ get { return super;} }
  1463. public Builder() {super = new _PBJ_Internal.RetObj.Builder();}
  1464. public Builder(_PBJ_Internal.RetObj.Builder other) {
  1465. super=other;
  1466. }
  1467. public Builder Clone() {return new Builder(super.Clone());}
  1468. public Builder MergeFrom(RetObj prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1469. public Builder Clear() {super.Clear();return this;}
  1470. public RetObj BuildPartial() {return new RetObj(super.BuildPartial());}
  1471. public RetObj Build() {if (_HasAllPBJFields) return new RetObj(super.Build());return null;}
  1472. public pbd::MessageDescriptor DescriptorForType {
  1473. get { return RetObj.Descriptor; } }
  1474. public Builder ClearObjectReference() { super.ClearObjectReference();return this;}
  1475. public const int ObjectReferenceFieldTag=2;
  1476. public bool HasObjectReference{ get {return super.HasObjectReference&&PBJ._PBJ.ValidateUuid(super.ObjectReference);} }
  1477. public PBJ.UUID ObjectReference{ get {
  1478. if (HasObjectReference) {
  1479. return PBJ._PBJ.CastUuid(super.ObjectReference);
  1480. } else {
  1481. return PBJ._PBJ.CastUuid();
  1482. }
  1483. }
  1484. set {
  1485. super.ObjectReference=(PBJ._PBJ.Construct(value));
  1486. }
  1487. }
  1488. public Builder ClearLocation() { super.ClearLocation();return this;}
  1489. public const int LocationFieldTag=3;
  1490. public bool HasLocation{ get {return super.HasLocation;} }
  1491. public ObjLoc Location{ get {
  1492. if (HasLocation) {
  1493. return new ObjLoc(super.Location);
  1494. } else {
  1495. return new ObjLoc();
  1496. }
  1497. }
  1498. set {
  1499. super.Location=value._PBJSuper;
  1500. }
  1501. }
  1502. public Builder ClearBoundingSphere() { super.ClearBoundingSphere();return this;}
  1503. public const int BoundingSphereFieldTag=4;
  1504. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  1505. public PBJ.BoundingSphere3f BoundingSphere{ get {
  1506. int index=0;
  1507. if (HasBoundingSphere) {
  1508. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  1509. } else {
  1510. return PBJ._PBJ.CastBoundingsphere3f();
  1511. }
  1512. }
  1513. set {
  1514. super.ClearBoundingSphere();
  1515. float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
  1516. super.AddBoundingSphere(_PBJtempArray[0]);
  1517. super.AddBoundingSphere(_PBJtempArray[1]);
  1518. super.AddBoundingSphere(_PBJtempArray[2]);
  1519. super.AddBoundingSphere(_PBJtempArray[3]);
  1520. }
  1521. }
  1522. }
  1523. }
  1524. }
  1525. namespace Sirikata.Protocol {
  1526. public class DelObj : PBJ.IMessage {
  1527. protected _PBJ_Internal.DelObj super;
  1528. public _PBJ_Internal.DelObj _PBJSuper{ get { return super;} }
  1529. public DelObj() {
  1530. super=new _PBJ_Internal.DelObj();
  1531. }
  1532. public DelObj(_PBJ_Internal.DelObj reference) {
  1533. super=reference;
  1534. }
  1535. public static DelObj defaultInstance= new DelObj (_PBJ_Internal.DelObj.DefaultInstance);
  1536. public static DelObj DefaultInstance{
  1537. get {return defaultInstance;}
  1538. }
  1539. public static pbd.MessageDescriptor Descriptor {
  1540. get { return _PBJ_Internal.DelObj.Descriptor; } }
  1541. public static class Types {
  1542. }
  1543. public static bool WithinReservedFieldTagRange(int field_tag) {
  1544. return false;
  1545. }
  1546. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1547. return false;
  1548. }
  1549. public const int ObjectReferenceFieldTag=2;
  1550. public bool HasObjectReference{ get {return super.HasObjectReference&&PBJ._PBJ.ValidateUuid(super.ObjectReference);} }
  1551. public PBJ.UUID ObjectReference{ get {
  1552. if (HasObjectReference) {
  1553. return PBJ._PBJ.CastUuid(super.ObjectReference);
  1554. } else {
  1555. return PBJ._PBJ.CastUuid();
  1556. }
  1557. }
  1558. }
  1559. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1560. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1561. public static Builder CreateBuilder() { return new Builder(); }
  1562. public static Builder CreateBuilder(DelObj prototype) {
  1563. return (Builder)new Builder().MergeFrom(prototype);
  1564. }
  1565. public static DelObj ParseFrom(pb::ByteString data) {
  1566. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data));
  1567. }
  1568. public static DelObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1569. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data,er));
  1570. }
  1571. public static DelObj ParseFrom(byte[] data) {
  1572. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data));
  1573. }
  1574. public static DelObj ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1575. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data,er));
  1576. }
  1577. public static DelObj ParseFrom(global::System.IO.Stream data) {
  1578. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data));
  1579. }
  1580. public static DelObj ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1581. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data,er));
  1582. }
  1583. public static DelObj ParseFrom(pb::CodedInputStream data) {
  1584. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data));
  1585. }
  1586. public static DelObj ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1587. return new DelObj(_PBJ_Internal.DelObj.ParseFrom(data,er));
  1588. }
  1589. protected override bool _HasAllPBJFields{ get {
  1590. return true
  1591. ;
  1592. } }
  1593. public bool IsInitialized { get {
  1594. return super.IsInitialized&&_HasAllPBJFields;
  1595. } }
  1596. public class Builder : global::PBJ.IMessage.IBuilder{
  1597. protected override bool _HasAllPBJFields{ get {
  1598. return true
  1599. ;
  1600. } }
  1601. public bool IsInitialized { get {
  1602. return super.IsInitialized&&_HasAllPBJFields;
  1603. } }
  1604. protected _PBJ_Internal.DelObj.Builder super;
  1605. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1606. public _PBJ_Internal.DelObj.Builder _PBJSuper{ get { return super;} }
  1607. public Builder() {super = new _PBJ_Internal.DelObj.Builder();}
  1608. public Builder(_PBJ_Internal.DelObj.Builder other) {
  1609. super=other;
  1610. }
  1611. public Builder Clone() {return new Builder(super.Clone());}
  1612. public Builder MergeFrom(DelObj prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1613. public Builder Clear() {super.Clear();return this;}
  1614. public DelObj BuildPartial() {return new DelObj(super.BuildPartial());}
  1615. public DelObj Build() {if (_HasAllPBJFields) return new DelObj(super.Build());return null;}
  1616. public pbd::MessageDescriptor DescriptorForType {
  1617. get { return DelObj.Descriptor; } }
  1618. public Builder ClearObjectReference() { super.ClearObjectReference();return this;}
  1619. public const int ObjectReferenceFieldTag=2;
  1620. public bool HasObjectReference{ get {return super.HasObjectReference&&PBJ._PBJ.ValidateUuid(super.ObjectReference);} }
  1621. public PBJ.UUID ObjectReference{ get {
  1622. if (HasObjectReference) {
  1623. return PBJ._PBJ.CastUuid(super.ObjectReference);
  1624. } else {
  1625. return PBJ._PBJ.CastUuid();
  1626. }
  1627. }
  1628. set {
  1629. super.ObjectReference=(PBJ._PBJ.Construct(value));
  1630. }
  1631. }
  1632. }
  1633. }
  1634. }
  1635. namespace Sirikata.Protocol {
  1636. public class NewProxQuery : PBJ.IMessage {
  1637. protected _PBJ_Internal.NewProxQuery super;
  1638. public _PBJ_Internal.NewProxQuery _PBJSuper{ get { return super;} }
  1639. public NewProxQuery() {
  1640. super=new _PBJ_Internal.NewProxQuery();
  1641. }
  1642. public NewProxQuery(_PBJ_Internal.NewProxQuery reference) {
  1643. super=reference;
  1644. }
  1645. public static NewProxQuery defaultInstance= new NewProxQuery (_PBJ_Internal.NewProxQuery.DefaultInstance);
  1646. public static NewProxQuery DefaultInstance{
  1647. get {return defaultInstance;}
  1648. }
  1649. public static pbd.MessageDescriptor Descriptor {
  1650. get { return _PBJ_Internal.NewProxQuery.Descriptor; } }
  1651. public static class Types {
  1652. }
  1653. public static bool WithinReservedFieldTagRange(int field_tag) {
  1654. return false;
  1655. }
  1656. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1657. return false;
  1658. }
  1659. public const int QueryIdFieldTag=2;
  1660. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  1661. public uint QueryId{ get {
  1662. if (HasQueryId) {
  1663. return PBJ._PBJ.CastUint32(super.QueryId);
  1664. } else {
  1665. return PBJ._PBJ.CastUint32();
  1666. }
  1667. }
  1668. }
  1669. public const int StatelessFieldTag=3;
  1670. public bool HasStateless{ get {return super.HasStateless&&PBJ._PBJ.ValidateBool(super.Stateless);} }
  1671. public bool Stateless{ get {
  1672. if (HasStateless) {
  1673. return PBJ._PBJ.CastBool(super.Stateless);
  1674. } else {
  1675. return PBJ._PBJ.CastBool();
  1676. }
  1677. }
  1678. }
  1679. public const int RelativeCenterFieldTag=4;
  1680. public bool HasRelativeCenter{ get {return super.RelativeCenterCount>=3;} }
  1681. public PBJ.Vector3f RelativeCenter{ get {
  1682. int index=0;
  1683. if (HasRelativeCenter) {
  1684. return PBJ._PBJ.CastVector3f(super.GetRelativeCenter(index*3+0),super.GetRelativeCenter(index*3+1),super.GetRelativeCenter(index*3+2));
  1685. } else {
  1686. return PBJ._PBJ.CastVector3f();
  1687. }
  1688. }
  1689. }
  1690. public const int AbsoluteCenterFieldTag=5;
  1691. public bool HasAbsoluteCenter{ get {return super.AbsoluteCenterCount>=3;} }
  1692. public PBJ.Vector3d AbsoluteCenter{ get {
  1693. int index=0;
  1694. if (HasAbsoluteCenter) {
  1695. return PBJ._PBJ.CastVector3d(super.GetAbsoluteCenter(index*3+0),super.GetAbsoluteCenter(index*3+1),super.GetAbsoluteCenter(index*3+2));
  1696. } else {
  1697. return PBJ._PBJ.CastVector3d();
  1698. }
  1699. }
  1700. }
  1701. public const int MaxRadiusFieldTag=6;
  1702. public bool HasMaxRadius{ get {return super.HasMaxRadius&&PBJ._PBJ.ValidateFloat(super.MaxRadius);} }
  1703. public float MaxRadius{ get {
  1704. if (HasMaxRadius) {
  1705. return PBJ._PBJ.CastFloat(super.MaxRadius);
  1706. } else {
  1707. return PBJ._PBJ.CastFloat();
  1708. }
  1709. }
  1710. }
  1711. public const int MinSolidAngleFieldTag=7;
  1712. public bool HasMinSolidAngle{ get {return super.HasMinSolidAngle&&PBJ._PBJ.ValidateAngle(super.MinSolidAngle);} }
  1713. public float MinSolidAngle{ get {
  1714. if (HasMinSolidAngle) {
  1715. return PBJ._PBJ.CastAngle(super.MinSolidAngle);
  1716. } else {
  1717. return PBJ._PBJ.CastAngle();
  1718. }
  1719. }
  1720. }
  1721. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1722. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1723. public static Builder CreateBuilder() { return new Builder(); }
  1724. public static Builder CreateBuilder(NewProxQuery prototype) {
  1725. return (Builder)new Builder().MergeFrom(prototype);
  1726. }
  1727. public static NewProxQuery ParseFrom(pb::ByteString data) {
  1728. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data));
  1729. }
  1730. public static NewProxQuery ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1731. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data,er));
  1732. }
  1733. public static NewProxQuery ParseFrom(byte[] data) {
  1734. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data));
  1735. }
  1736. public static NewProxQuery ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1737. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data,er));
  1738. }
  1739. public static NewProxQuery ParseFrom(global::System.IO.Stream data) {
  1740. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data));
  1741. }
  1742. public static NewProxQuery ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1743. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data,er));
  1744. }
  1745. public static NewProxQuery ParseFrom(pb::CodedInputStream data) {
  1746. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data));
  1747. }
  1748. public static NewProxQuery ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1749. return new NewProxQuery(_PBJ_Internal.NewProxQuery.ParseFrom(data,er));
  1750. }
  1751. protected override bool _HasAllPBJFields{ get {
  1752. return true
  1753. ;
  1754. } }
  1755. public bool IsInitialized { get {
  1756. return super.IsInitialized&&_HasAllPBJFields;
  1757. } }
  1758. public class Builder : global::PBJ.IMessage.IBuilder{
  1759. protected override bool _HasAllPBJFields{ get {
  1760. return true
  1761. ;
  1762. } }
  1763. public bool IsInitialized { get {
  1764. return super.IsInitialized&&_HasAllPBJFields;
  1765. } }
  1766. protected _PBJ_Internal.NewProxQuery.Builder super;
  1767. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1768. public _PBJ_Internal.NewProxQuery.Builder _PBJSuper{ get { return super;} }
  1769. public Builder() {super = new _PBJ_Internal.NewProxQuery.Builder();}
  1770. public Builder(_PBJ_Internal.NewProxQuery.Builder other) {
  1771. super=other;
  1772. }
  1773. public Builder Clone() {return new Builder(super.Clone());}
  1774. public Builder MergeFrom(NewProxQuery prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1775. public Builder Clear() {super.Clear();return this;}
  1776. public NewProxQuery BuildPartial() {return new NewProxQuery(super.BuildPartial());}
  1777. public NewProxQuery Build() {if (_HasAllPBJFields) return new NewProxQuery(super.Build());return null;}
  1778. public pbd::MessageDescriptor DescriptorForType {
  1779. get { return NewProxQuery.Descriptor; } }
  1780. public Builder ClearQueryId() { super.ClearQueryId();return this;}
  1781. public const int QueryIdFieldTag=2;
  1782. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  1783. public uint QueryId{ get {
  1784. if (HasQueryId) {
  1785. return PBJ._PBJ.CastUint32(super.QueryId);
  1786. } else {
  1787. return PBJ._PBJ.CastUint32();
  1788. }
  1789. }
  1790. set {
  1791. super.QueryId=(PBJ._PBJ.Construct(value));
  1792. }
  1793. }
  1794. public Builder ClearStateless() { super.ClearStateless();return this;}
  1795. public const int StatelessFieldTag=3;
  1796. public bool HasStateless{ get {return super.HasStateless&&PBJ._PBJ.ValidateBool(super.Stateless);} }
  1797. public bool Stateless{ get {
  1798. if (HasStateless) {
  1799. return PBJ._PBJ.CastBool(super.Stateless);
  1800. } else {
  1801. return PBJ._PBJ.CastBool();
  1802. }
  1803. }
  1804. set {
  1805. super.Stateless=(PBJ._PBJ.Construct(value));
  1806. }
  1807. }
  1808. public Builder ClearRelativeCenter() { super.ClearRelativeCenter();return this;}
  1809. public const int RelativeCenterFieldTag=4;
  1810. public bool HasRelativeCenter{ get {return super.RelativeCenterCount>=3;} }
  1811. public PBJ.Vector3f RelativeCenter{ get {
  1812. int index=0;
  1813. if (HasRelativeCenter) {
  1814. return PBJ._PBJ.CastVector3f(super.GetRelativeCenter(index*3+0),super.GetRelativeCenter(index*3+1),super.GetRelativeCenter(index*3+2));
  1815. } else {
  1816. return PBJ._PBJ.CastVector3f();
  1817. }
  1818. }
  1819. set {
  1820. super.ClearRelativeCenter();
  1821. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  1822. super.AddRelativeCenter(_PBJtempArray[0]);
  1823. super.AddRelativeCenter(_PBJtempArray[1]);
  1824. super.AddRelativeCenter(_PBJtempArray[2]);
  1825. }
  1826. }
  1827. public Builder ClearAbsoluteCenter() { super.ClearAbsoluteCenter();return this;}
  1828. public const int AbsoluteCenterFieldTag=5;
  1829. public bool HasAbsoluteCenter{ get {return super.AbsoluteCenterCount>=3;} }
  1830. public PBJ.Vector3d AbsoluteCenter{ get {
  1831. int index=0;
  1832. if (HasAbsoluteCenter) {
  1833. return PBJ._PBJ.CastVector3d(super.GetAbsoluteCenter(index*3+0),super.GetAbsoluteCenter(index*3+1),super.GetAbsoluteCenter(index*3+2));
  1834. } else {
  1835. return PBJ._PBJ.CastVector3d();
  1836. }
  1837. }
  1838. set {
  1839. super.ClearAbsoluteCenter();
  1840. double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
  1841. super.AddAbsoluteCenter(_PBJtempArray[0]);
  1842. super.AddAbsoluteCenter(_PBJtempArray[1]);
  1843. super.AddAbsoluteCenter(_PBJtempArray[2]);
  1844. }
  1845. }
  1846. public Builder ClearMaxRadius() { super.ClearMaxRadius();return this;}
  1847. public const int MaxRadiusFieldTag=6;
  1848. public bool HasMaxRadius{ get {return super.HasMaxRadius&&PBJ._PBJ.ValidateFloat(super.MaxRadius);} }
  1849. public float MaxRadius{ get {
  1850. if (HasMaxRadius) {
  1851. return PBJ._PBJ.CastFloat(super.MaxRadius);
  1852. } else {
  1853. return PBJ._PBJ.CastFloat();
  1854. }
  1855. }
  1856. set {
  1857. super.MaxRadius=(PBJ._PBJ.Construct(value));
  1858. }
  1859. }
  1860. public Builder ClearMinSolidAngle() { super.ClearMinSolidAngle();return this;}
  1861. public const int MinSolidAngleFieldTag=7;
  1862. public bool HasMinSolidAngle{ get {return super.HasMinSolidAngle&&PBJ._PBJ.ValidateAngle(super.MinSolidAngle);} }
  1863. public float MinSolidAngle{ get {
  1864. if (HasMinSolidAngle) {
  1865. return PBJ._PBJ.CastAngle(super.MinSolidAngle);
  1866. } else {
  1867. return PBJ._PBJ.CastAngle();
  1868. }
  1869. }
  1870. set {
  1871. super.MinSolidAngle=(PBJ._PBJ.Construct(value));
  1872. }
  1873. }
  1874. }
  1875. }
  1876. }
  1877. namespace Sirikata.Protocol {
  1878. public class ProxCall : PBJ.IMessage {
  1879. protected _PBJ_Internal.ProxCall super;
  1880. public _PBJ_Internal.ProxCall _PBJSuper{ get { return super;} }
  1881. public ProxCall() {
  1882. super=new _PBJ_Internal.ProxCall();
  1883. }
  1884. public ProxCall(_PBJ_Internal.ProxCall reference) {
  1885. super=reference;
  1886. }
  1887. public static ProxCall defaultInstance= new ProxCall (_PBJ_Internal.ProxCall.DefaultInstance);
  1888. public static ProxCall DefaultInstance{
  1889. get {return defaultInstance;}
  1890. }
  1891. public static pbd.MessageDescriptor Descriptor {
  1892. get { return _PBJ_Internal.ProxCall.Descriptor; } }
  1893. public static class Types {
  1894. public enum ProximityEvent {
  1895. EXITED_PROXIMITY=_PBJ_Internal.ProxCall.Types.ProximityEvent.EXITED_PROXIMITY,
  1896. ENTERED_PROXIMITY=_PBJ_Internal.ProxCall.Types.ProximityEvent.ENTERED_PROXIMITY,
  1897. STATELESS_PROXIMITY=_PBJ_Internal.ProxCall.Types.ProximityEvent.STATELESS_PROXIMITY
  1898. };
  1899. }
  1900. public static bool WithinReservedFieldTagRange(int field_tag) {
  1901. return false;
  1902. }
  1903. public static bool WithinExtensionFieldTagRange(int field_tag) {
  1904. return false;
  1905. }
  1906. public const int QueryIdFieldTag=2;
  1907. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  1908. public uint QueryId{ get {
  1909. if (HasQueryId) {
  1910. return PBJ._PBJ.CastUint32(super.QueryId);
  1911. } else {
  1912. return PBJ._PBJ.CastUint32();
  1913. }
  1914. }
  1915. }
  1916. public const int ProximateObjectFieldTag=3;
  1917. public bool HasProximateObject{ get {return super.HasProximateObject&&PBJ._PBJ.ValidateUuid(super.ProximateObject);} }
  1918. public PBJ.UUID ProximateObject{ get {
  1919. if (HasProximateObject) {
  1920. return PBJ._PBJ.CastUuid(super.ProximateObject);
  1921. } else {
  1922. return PBJ._PBJ.CastUuid();
  1923. }
  1924. }
  1925. }
  1926. public const int ProximityEventFieldTag=4;
  1927. public bool HasProximityEvent{ get {return super.HasProximityEvent;} }
  1928. public Types.ProximityEvent ProximityEvent{ get {
  1929. if (HasProximityEvent) {
  1930. return (Types.ProximityEvent)super.ProximityEvent;
  1931. } else {
  1932. return new Types.ProximityEvent();
  1933. }
  1934. }
  1935. }
  1936. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  1937. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  1938. public static Builder CreateBuilder() { return new Builder(); }
  1939. public static Builder CreateBuilder(ProxCall prototype) {
  1940. return (Builder)new Builder().MergeFrom(prototype);
  1941. }
  1942. public static ProxCall ParseFrom(pb::ByteString data) {
  1943. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data));
  1944. }
  1945. public static ProxCall ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  1946. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data,er));
  1947. }
  1948. public static ProxCall ParseFrom(byte[] data) {
  1949. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data));
  1950. }
  1951. public static ProxCall ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  1952. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data,er));
  1953. }
  1954. public static ProxCall ParseFrom(global::System.IO.Stream data) {
  1955. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data));
  1956. }
  1957. public static ProxCall ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  1958. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data,er));
  1959. }
  1960. public static ProxCall ParseFrom(pb::CodedInputStream data) {
  1961. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data));
  1962. }
  1963. public static ProxCall ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  1964. return new ProxCall(_PBJ_Internal.ProxCall.ParseFrom(data,er));
  1965. }
  1966. protected override bool _HasAllPBJFields{ get {
  1967. return true
  1968. ;
  1969. } }
  1970. public bool IsInitialized { get {
  1971. return super.IsInitialized&&_HasAllPBJFields;
  1972. } }
  1973. public class Builder : global::PBJ.IMessage.IBuilder{
  1974. protected override bool _HasAllPBJFields{ get {
  1975. return true
  1976. ;
  1977. } }
  1978. public bool IsInitialized { get {
  1979. return super.IsInitialized&&_HasAllPBJFields;
  1980. } }
  1981. protected _PBJ_Internal.ProxCall.Builder super;
  1982. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  1983. public _PBJ_Internal.ProxCall.Builder _PBJSuper{ get { return super;} }
  1984. public Builder() {super = new _PBJ_Internal.ProxCall.Builder();}
  1985. public Builder(_PBJ_Internal.ProxCall.Builder other) {
  1986. super=other;
  1987. }
  1988. public Builder Clone() {return new Builder(super.Clone());}
  1989. public Builder MergeFrom(ProxCall prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  1990. public Builder Clear() {super.Clear();return this;}
  1991. public ProxCall BuildPartial() {return new ProxCall(super.BuildPartial());}
  1992. public ProxCall Build() {if (_HasAllPBJFields) return new ProxCall(super.Build());return null;}
  1993. public pbd::MessageDescriptor DescriptorForType {
  1994. get { return ProxCall.Descriptor; } }
  1995. public Builder ClearQueryId() { super.ClearQueryId();return this;}
  1996. public const int QueryIdFieldTag=2;
  1997. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  1998. public uint QueryId{ get {
  1999. if (HasQueryId) {
  2000. return PBJ._PBJ.CastUint32(super.QueryId);
  2001. } else {
  2002. return PBJ._PBJ.CastUint32();
  2003. }
  2004. }
  2005. set {
  2006. super.QueryId=(PBJ._PBJ.Construct(value));
  2007. }
  2008. }
  2009. public Builder ClearProximateObject() { super.ClearProximateObject();return this;}
  2010. public const int ProximateObjectFieldTag=3;
  2011. public bool HasProximateObject{ get {return super.HasProximateObject&&PBJ._PBJ.ValidateUuid(super.ProximateObject);} }
  2012. public PBJ.UUID ProximateObject{ get {
  2013. if (HasProximateObject) {
  2014. return PBJ._PBJ.CastUuid(super.ProximateObject);
  2015. } else {
  2016. return PBJ._PBJ.CastUuid();
  2017. }
  2018. }
  2019. set {
  2020. super.ProximateObject=(PBJ._PBJ.Construct(value));
  2021. }
  2022. }
  2023. public Builder ClearProximityEvent() { super.ClearProximityEvent();return this;}
  2024. public const int ProximityEventFieldTag=4;
  2025. public bool HasProximityEvent{ get {return super.HasProximityEvent;} }
  2026. public Types.ProximityEvent ProximityEvent{ get {
  2027. if (HasProximityEvent) {
  2028. return (Types.ProximityEvent)super.ProximityEvent;
  2029. } else {
  2030. return new Types.ProximityEvent();
  2031. }
  2032. }
  2033. set {
  2034. super.ProximityEvent=((_PBJ_Internal.ProxCall.Types.ProximityEvent)value);
  2035. }
  2036. }
  2037. }
  2038. }
  2039. }
  2040. namespace Sirikata.Protocol {
  2041. public class DelProxQuery : PBJ.IMessage {
  2042. protected _PBJ_Internal.DelProxQuery super;
  2043. public _PBJ_Internal.DelProxQuery _PBJSuper{ get { return super;} }
  2044. public DelProxQuery() {
  2045. super=new _PBJ_Internal.DelProxQuery();
  2046. }
  2047. public DelProxQuery(_PBJ_Internal.DelProxQuery reference) {
  2048. super=reference;
  2049. }
  2050. public static DelProxQuery defaultInstance= new DelProxQuery (_PBJ_Internal.DelProxQuery.DefaultInstance);
  2051. public static DelProxQuery DefaultInstance{
  2052. get {return defaultInstance;}
  2053. }
  2054. public static pbd.MessageDescriptor Descriptor {
  2055. get { return _PBJ_Internal.DelProxQuery.Descriptor; } }
  2056. public static class Types {
  2057. }
  2058. public static bool WithinReservedFieldTagRange(int field_tag) {
  2059. return false;
  2060. }
  2061. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2062. return false;
  2063. }
  2064. public const int QueryIdFieldTag=2;
  2065. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  2066. public uint QueryId{ get {
  2067. if (HasQueryId) {
  2068. return PBJ._PBJ.CastUint32(super.QueryId);
  2069. } else {
  2070. return PBJ._PBJ.CastUint32();
  2071. }
  2072. }
  2073. }
  2074. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2075. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2076. public static Builder CreateBuilder() { return new Builder(); }
  2077. public static Builder CreateBuilder(DelProxQuery prototype) {
  2078. return (Builder)new Builder().MergeFrom(prototype);
  2079. }
  2080. public static DelProxQuery ParseFrom(pb::ByteString data) {
  2081. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data));
  2082. }
  2083. public static DelProxQuery ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2084. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data,er));
  2085. }
  2086. public static DelProxQuery ParseFrom(byte[] data) {
  2087. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data));
  2088. }
  2089. public static DelProxQuery ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2090. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data,er));
  2091. }
  2092. public static DelProxQuery ParseFrom(global::System.IO.Stream data) {
  2093. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data));
  2094. }
  2095. public static DelProxQuery ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2096. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data,er));
  2097. }
  2098. public static DelProxQuery ParseFrom(pb::CodedInputStream data) {
  2099. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data));
  2100. }
  2101. public static DelProxQuery ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2102. return new DelProxQuery(_PBJ_Internal.DelProxQuery.ParseFrom(data,er));
  2103. }
  2104. protected override bool _HasAllPBJFields{ get {
  2105. return true
  2106. ;
  2107. } }
  2108. public bool IsInitialized { get {
  2109. return super.IsInitialized&&_HasAllPBJFields;
  2110. } }
  2111. public class Builder : global::PBJ.IMessage.IBuilder{
  2112. protected override bool _HasAllPBJFields{ get {
  2113. return true
  2114. ;
  2115. } }
  2116. public bool IsInitialized { get {
  2117. return super.IsInitialized&&_HasAllPBJFields;
  2118. } }
  2119. protected _PBJ_Internal.DelProxQuery.Builder super;
  2120. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  2121. public _PBJ_Internal.DelProxQuery.Builder _PBJSuper{ get { return super;} }
  2122. public Builder() {super = new _PBJ_Internal.DelProxQuery.Builder();}
  2123. public Builder(_PBJ_Internal.DelProxQuery.Builder other) {
  2124. super=other;
  2125. }
  2126. public Builder Clone() {return new Builder(super.Clone());}
  2127. public Builder MergeFrom(DelProxQuery prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  2128. public Builder Clear() {super.Clear();return this;}
  2129. public DelProxQuery BuildPartial() {return new DelProxQuery(super.BuildPartial());}
  2130. public DelProxQuery Build() {if (_HasAllPBJFields) return new DelProxQuery(super.Build());return null;}
  2131. public pbd::MessageDescriptor DescriptorForType {
  2132. get { return DelProxQuery.Descriptor; } }
  2133. public Builder ClearQueryId() { super.ClearQueryId();return this;}
  2134. public const int QueryIdFieldTag=2;
  2135. public bool HasQueryId{ get {return super.HasQueryId&&PBJ._PBJ.ValidateUint32(super.QueryId);} }
  2136. public uint QueryId{ get {
  2137. if (HasQueryId) {
  2138. return PBJ._PBJ.CastUint32(super.QueryId);
  2139. } else {
  2140. return PBJ._PBJ.CastUint32();
  2141. }
  2142. }
  2143. set {
  2144. super.QueryId=(PBJ._PBJ.Construct(value));
  2145. }
  2146. }
  2147. }
  2148. }
  2149. }
  2150. namespace Sirikata.Protocol {
  2151. public class Vector3fProperty : PBJ.IMessage {
  2152. protected _PBJ_Internal.Vector3fProperty super;
  2153. public _PBJ_Internal.Vector3fProperty _PBJSuper{ get { return super;} }
  2154. public Vector3fProperty() {
  2155. super=new _PBJ_Internal.Vector3fProperty();
  2156. }
  2157. public Vector3fProperty(_PBJ_Internal.Vector3fProperty reference) {
  2158. super=reference;
  2159. }
  2160. public static Vector3fProperty defaultInstance= new Vector3fProperty (_PBJ_Internal.Vector3fProperty.DefaultInstance);
  2161. public static Vector3fProperty DefaultInstance{
  2162. get {return defaultInstance;}
  2163. }
  2164. public static pbd.MessageDescriptor Descriptor {
  2165. get { return _PBJ_Internal.Vector3fProperty.Descriptor; } }
  2166. public static class Types {
  2167. }
  2168. public static bool WithinReservedFieldTagRange(int field_tag) {
  2169. return false;
  2170. }
  2171. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2172. return false;
  2173. }
  2174. public const int ValueFieldTag=10;
  2175. public bool HasValue{ get {return super.ValueCount>=3;} }
  2176. public PBJ.Vector3f Value{ get {
  2177. int index=0;
  2178. if (HasValue) {
  2179. return PBJ._PBJ.CastVector3f(super.GetValue(index*3+0),super.GetValue(index*3+1),super.GetValue(index*3+2));
  2180. } else {
  2181. return PBJ._PBJ.CastVector3f();
  2182. }
  2183. }
  2184. }
  2185. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2186. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2187. public static Builder CreateBuilder() { return new Builder(); }
  2188. public static Builder CreateBuilder(Vector3fProperty prototype) {
  2189. return (Builder)new Builder().MergeFrom(prototype);
  2190. }
  2191. public static Vector3fProperty ParseFrom(pb::ByteString data) {
  2192. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data));
  2193. }
  2194. public static Vector3fProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2195. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data,er));
  2196. }
  2197. public static Vector3fProperty ParseFrom(byte[] data) {
  2198. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data));
  2199. }
  2200. public static Vector3fProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2201. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data,er));
  2202. }
  2203. public static Vector3fProperty ParseFrom(global::System.IO.Stream data) {
  2204. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data));
  2205. }
  2206. public static Vector3fProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2207. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data,er));
  2208. }
  2209. public static Vector3fProperty ParseFrom(pb::CodedInputStream data) {
  2210. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data));
  2211. }
  2212. public static Vector3fProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2213. return new Vector3fProperty(_PBJ_Internal.Vector3fProperty.ParseFrom(data,er));
  2214. }
  2215. protected override bool _HasAllPBJFields{ get {
  2216. return true
  2217. ;
  2218. } }
  2219. public bool IsInitialized { get {
  2220. return super.IsInitialized&&_HasAllPBJFields;
  2221. } }
  2222. public class Builder : global::PBJ.IMessage.IBuilder{
  2223. protected override bool _HasAllPBJFields{ get {
  2224. return true
  2225. ;
  2226. } }
  2227. public bool IsInitialized { get {
  2228. return super.IsInitialized&&_HasAllPBJFields;
  2229. } }
  2230. protected _PBJ_Internal.Vector3fProperty.Builder super;
  2231. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  2232. public _PBJ_Internal.Vector3fProperty.Builder _PBJSuper{ get { return super;} }
  2233. public Builder() {super = new _PBJ_Internal.Vector3fProperty.Builder();}
  2234. public Builder(_PBJ_Internal.Vector3fProperty.Builder other) {
  2235. super=other;
  2236. }
  2237. public Builder Clone() {return new Builder(super.Clone());}
  2238. public Builder MergeFrom(Vector3fProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  2239. public Builder Clear() {super.Clear();return this;}
  2240. public Vector3fProperty BuildPartial() {return new Vector3fProperty(super.BuildPartial());}
  2241. public Vector3fProperty Build() {if (_HasAllPBJFields) return new Vector3fProperty(super.Build());return null;}
  2242. public pbd::MessageDescriptor DescriptorForType {
  2243. get { return Vector3fProperty.Descriptor; } }
  2244. public Builder ClearValue() { super.ClearValue();return this;}
  2245. public const int ValueFieldTag=10;
  2246. public bool HasValue{ get {return super.ValueCount>=3;} }
  2247. public PBJ.Vector3f Value{ get {
  2248. int index=0;
  2249. if (HasValue) {
  2250. return PBJ._PBJ.CastVector3f(super.GetValue(index*3+0),super.GetValue(index*3+1),super.GetValue(index*3+2));
  2251. } else {
  2252. return PBJ._PBJ.CastVector3f();
  2253. }
  2254. }
  2255. set {
  2256. super.ClearValue();
  2257. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  2258. super.AddValue(_PBJtempArray[0]);
  2259. super.AddValue(_PBJtempArray[1]);
  2260. super.AddValue(_PBJtempArray[2]);
  2261. }
  2262. }
  2263. }
  2264. }
  2265. }
  2266. namespace Sirikata.Protocol {
  2267. public class StringProperty : PBJ.IMessage {
  2268. protected _PBJ_Internal.StringProperty super;
  2269. public _PBJ_Internal.StringProperty _PBJSuper{ get { return super;} }
  2270. public StringProperty() {
  2271. super=new _PBJ_Internal.StringProperty();
  2272. }
  2273. public StringProperty(_PBJ_Internal.StringProperty reference) {
  2274. super=reference;
  2275. }
  2276. public static StringProperty defaultInstance= new StringProperty (_PBJ_Internal.StringProperty.DefaultInstance);
  2277. public static StringProperty DefaultInstance{
  2278. get {return defaultInstance;}
  2279. }
  2280. public static pbd.MessageDescriptor Descriptor {
  2281. get { return _PBJ_Internal.StringProperty.Descriptor; } }
  2282. public static class Types {
  2283. }
  2284. public static bool WithinReservedFieldTagRange(int field_tag) {
  2285. return false;
  2286. }
  2287. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2288. return false;
  2289. }
  2290. public const int ValueFieldTag=10;
  2291. public bool HasValue{ get {return super.HasValue&&PBJ._PBJ.ValidateString(super.Value);} }
  2292. public string Value{ get {
  2293. if (HasValue) {
  2294. return PBJ._PBJ.CastString(super.Value);
  2295. } else {
  2296. return PBJ._PBJ.CastString();
  2297. }
  2298. }
  2299. }
  2300. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2301. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2302. public static Builder CreateBuilder() { return new Builder(); }
  2303. public static Builder CreateBuilder(StringProperty prototype) {
  2304. return (Builder)new Builder().MergeFrom(prototype);
  2305. }
  2306. public static StringProperty ParseFrom(pb::ByteString data) {
  2307. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data));
  2308. }
  2309. public static StringProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2310. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data,er));
  2311. }
  2312. public static StringProperty ParseFrom(byte[] data) {
  2313. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data));
  2314. }
  2315. public static StringProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2316. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data,er));
  2317. }
  2318. public static StringProperty ParseFrom(global::System.IO.Stream data) {
  2319. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data));
  2320. }
  2321. public static StringProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2322. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data,er));
  2323. }
  2324. public static StringProperty ParseFrom(pb::CodedInputStream data) {
  2325. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data));
  2326. }
  2327. public static StringProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2328. return new StringProperty(_PBJ_Internal.StringProperty.ParseFrom(data,er));
  2329. }
  2330. protected override bool _HasAllPBJFields{ get {
  2331. return true
  2332. ;
  2333. } }
  2334. public bool IsInitialized { get {
  2335. return super.IsInitialized&&_HasAllPBJFields;
  2336. } }
  2337. public class Builder : global::PBJ.IMessage.IBuilder{
  2338. protected override bool _HasAllPBJFields{ get {
  2339. return true
  2340. ;
  2341. } }
  2342. public bool IsInitialized { get {
  2343. return super.IsInitialized&&_HasAllPBJFields;
  2344. } }
  2345. protected _PBJ_Internal.StringProperty.Builder super;
  2346. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  2347. public _PBJ_Internal.StringProperty.Builder _PBJSuper{ get { return super;} }
  2348. public Builder() {super = new _PBJ_Internal.StringProperty.Builder();}
  2349. public Builder(_PBJ_Internal.StringProperty.Builder other) {
  2350. super=other;
  2351. }
  2352. public Builder Clone() {return new Builder(super.Clone());}
  2353. public Builder MergeFrom(StringProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  2354. public Builder Clear() {super.Clear();return this;}
  2355. public StringProperty BuildPartial() {return new StringProperty(super.BuildPartial());}
  2356. public StringProperty Build() {if (_HasAllPBJFields) return new StringProperty(super.Build());return null;}
  2357. public pbd::MessageDescriptor DescriptorForType {
  2358. get { return StringProperty.Descriptor; } }
  2359. public Builder ClearValue() { super.ClearValue();return this;}
  2360. public const int ValueFieldTag=10;
  2361. public bool HasValue{ get {return super.HasValue&&PBJ._PBJ.ValidateString(super.Value);} }
  2362. public string Value{ get {
  2363. if (HasValue) {
  2364. return PBJ._PBJ.CastString(super.Value);
  2365. } else {
  2366. return PBJ._PBJ.CastString();
  2367. }
  2368. }
  2369. set {
  2370. super.Value=(PBJ._PBJ.Construct(value));
  2371. }
  2372. }
  2373. }
  2374. }
  2375. }
  2376. namespace Sirikata.Protocol {
  2377. public class StringMapProperty : PBJ.IMessage {
  2378. protected _PBJ_Internal.StringMapProperty super;
  2379. public _PBJ_Internal.StringMapProperty _PBJSuper{ get { return super;} }
  2380. public StringMapProperty() {
  2381. super=new _PBJ_Internal.StringMapProperty();
  2382. }
  2383. public StringMapProperty(_PBJ_Internal.StringMapProperty reference) {
  2384. super=reference;
  2385. }
  2386. public static StringMapProperty defaultInstance= new StringMapProperty (_PBJ_Internal.StringMapProperty.DefaultInstance);
  2387. public static StringMapProperty DefaultInstance{
  2388. get {return defaultInstance;}
  2389. }
  2390. public static pbd.MessageDescriptor Descriptor {
  2391. get { return _PBJ_Internal.StringMapProperty.Descriptor; } }
  2392. public static class Types {
  2393. }
  2394. public static bool WithinReservedFieldTagRange(int field_tag) {
  2395. return false;
  2396. }
  2397. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2398. return false;
  2399. }
  2400. public const int KeysFieldTag=2;
  2401. public int KeysCount { get { return super.KeysCount;} }
  2402. public bool HasKeys(int index) {return PBJ._PBJ.ValidateString(super.GetKeys(index));}
  2403. public string Keys(int index) {
  2404. return (string)PBJ._PBJ.CastString(super.GetKeys(index));
  2405. }
  2406. public const int ValuesFieldTag=3;
  2407. public int ValuesCount { get { return super.ValuesCount;} }
  2408. public bool HasValues(int index) {return PBJ._PBJ.ValidateString(super.GetValues(index));}
  2409. public string Values(int index) {
  2410. return (string)PBJ._PBJ.CastString(super.GetValues(index));
  2411. }
  2412. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2413. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2414. public static Builder CreateBuilder() { return new Builder(); }
  2415. public static Builder CreateBuilder(StringMapProperty prototype) {
  2416. return (Builder)new Builder().MergeFrom(prototype);
  2417. }
  2418. public static StringMapProperty ParseFrom(pb::ByteString data) {
  2419. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data));
  2420. }
  2421. public static StringMapProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2422. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data,er));
  2423. }
  2424. public static StringMapProperty ParseFrom(byte[] data) {
  2425. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data));
  2426. }
  2427. public static StringMapProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2428. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data,er));
  2429. }
  2430. public static StringMapProperty ParseFrom(global::System.IO.Stream data) {
  2431. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data));
  2432. }
  2433. public static StringMapProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2434. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data,er));
  2435. }
  2436. public static StringMapProperty ParseFrom(pb::CodedInputStream data) {
  2437. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data));
  2438. }
  2439. public static StringMapProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2440. return new StringMapProperty(_PBJ_Internal.StringMapProperty.ParseFrom(data,er));
  2441. }
  2442. protected override bool _HasAllPBJFields{ get {
  2443. return true
  2444. ;
  2445. } }
  2446. public bool IsInitialized { get {
  2447. return super.IsInitialized&&_HasAllPBJFields;
  2448. } }
  2449. public class Builder : global::PBJ.IMessage.IBuilder{
  2450. protected override bool _HasAllPBJFields{ get {
  2451. return true
  2452. ;
  2453. } }
  2454. public bool IsInitialized { get {
  2455. return super.IsInitialized&&_HasAllPBJFields;
  2456. } }
  2457. protected _PBJ_Internal.StringMapProperty.Builder super;
  2458. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  2459. public _PBJ_Internal.StringMapProperty.Builder _PBJSuper{ get { return super;} }
  2460. public Builder() {super = new _PBJ_Internal.StringMapProperty.Builder();}
  2461. public Builder(_PBJ_Internal.StringMapProperty.Builder other) {
  2462. super=other;
  2463. }
  2464. public Builder Clone() {return new Builder(super.Clone());}
  2465. public Builder MergeFrom(StringMapProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  2466. public Builder Clear() {super.Clear();return this;}
  2467. public StringMapProperty BuildPartial() {return new StringMapProperty(super.BuildPartial());}
  2468. public StringMapProperty Build() {if (_HasAllPBJFields) return new StringMapProperty(super.Build());return null;}
  2469. public pbd::MessageDescriptor DescriptorForType {
  2470. get { return StringMapProperty.Descriptor; } }
  2471. public Builder ClearKeys() { super.ClearKeys();return this;}
  2472. public Builder SetKeys(int index, string value) {
  2473. super.SetKeys(index,PBJ._PBJ.Construct(value));
  2474. return this;
  2475. }
  2476. public const int KeysFieldTag=2;
  2477. public int KeysCount { get { return super.KeysCount;} }
  2478. public bool HasKeys(int index) {return PBJ._PBJ.ValidateString(super.GetKeys(index));}
  2479. public string Keys(int index) {
  2480. return (string)PBJ._PBJ.CastString(super.GetKeys(index));
  2481. }
  2482. public Builder AddKeys(string value) {
  2483. super.AddKeys(PBJ._PBJ.Construct(value));
  2484. return this;
  2485. }
  2486. public Builder ClearValues() { super.ClearValues();return this;}
  2487. public Builder SetValues(int index, string value) {
  2488. super.SetValues(index,PBJ._PBJ.Construct(value));
  2489. return this;
  2490. }
  2491. public const int ValuesFieldTag=3;
  2492. public int ValuesCount { get { return super.ValuesCount;} }
  2493. public bool HasValues(int index) {return PBJ._PBJ.ValidateString(super.GetValues(index));}
  2494. public string Values(int index) {
  2495. return (string)PBJ._PBJ.CastString(super.GetValues(index));
  2496. }
  2497. public Builder AddValues(string value) {
  2498. super.AddValues(PBJ._PBJ.Construct(value));
  2499. return this;
  2500. }
  2501. }
  2502. }
  2503. }
  2504. namespace Sirikata.Protocol {
  2505. public class PhysicalParameters : PBJ.IMessage {
  2506. protected _PBJ_Internal.PhysicalParameters super;
  2507. public _PBJ_Internal.PhysicalParameters _PBJSuper{ get { return super;} }
  2508. public PhysicalParameters() {
  2509. super=new _PBJ_Internal.PhysicalParameters();
  2510. }
  2511. public PhysicalParameters(_PBJ_Internal.PhysicalParameters reference) {
  2512. super=reference;
  2513. }
  2514. public static PhysicalParameters defaultInstance= new PhysicalParameters (_PBJ_Internal.PhysicalParameters.DefaultInstance);
  2515. public static PhysicalParameters DefaultInstance{
  2516. get {return defaultInstance;}
  2517. }
  2518. public static pbd.MessageDescriptor Descriptor {
  2519. get { return _PBJ_Internal.PhysicalParameters.Descriptor; } }
  2520. public static class Types {
  2521. public enum Mode {
  2522. NONPHYSICAL=_PBJ_Internal.PhysicalParameters.Types.Mode.NONPHYSICAL,
  2523. STATIC=_PBJ_Internal.PhysicalParameters.Types.Mode.STATIC,
  2524. DYNAMICBOX=_PBJ_Internal.PhysicalParameters.Types.Mode.DYNAMICBOX,
  2525. DYNAMICSPHERE=_PBJ_Internal.PhysicalParameters.Types.Mode.DYNAMICSPHERE,
  2526. DYNAMICCYLINDER=_PBJ_Internal.PhysicalParameters.Types.Mode.DYNAMICCYLINDER,
  2527. CHARACTER=_PBJ_Internal.PhysicalParameters.Types.Mode.CHARACTER
  2528. };
  2529. }
  2530. public static bool WithinReservedFieldTagRange(int field_tag) {
  2531. return false;
  2532. }
  2533. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2534. return false;
  2535. }
  2536. public const int ModeFieldTag=2;
  2537. public bool HasMode{ get {return super.HasMode;} }
  2538. public Types.Mode Mode{ get {
  2539. if (HasMode) {
  2540. return (Types.Mode)super.Mode;
  2541. } else {
  2542. return new Types.Mode();
  2543. }
  2544. }
  2545. }
  2546. public const int DensityFieldTag=3;
  2547. public bool HasDensity{ get {return super.HasDensity&&PBJ._PBJ.ValidateFloat(super.Density);} }
  2548. public float Density{ get {
  2549. if (HasDensity) {
  2550. return PBJ._PBJ.CastFloat(super.Density);
  2551. } else {
  2552. return PBJ._PBJ.CastFloat();
  2553. }
  2554. }
  2555. }
  2556. public const int FrictionFieldTag=4;
  2557. public bool HasFriction{ get {return super.HasFriction&&PBJ._PBJ.ValidateFloat(super.Friction);} }
  2558. public float Friction{ get {
  2559. if (HasFriction) {
  2560. return PBJ._PBJ.CastFloat(super.Friction);
  2561. } else {
  2562. return PBJ._PBJ.CastFloat();
  2563. }
  2564. }
  2565. }
  2566. public const int BounceFieldTag=5;
  2567. public bool HasBounce{ get {return super.HasBounce&&PBJ._PBJ.ValidateFloat(super.Bounce);} }
  2568. public float Bounce{ get {
  2569. if (HasBounce) {
  2570. return PBJ._PBJ.CastFloat(super.Bounce);
  2571. } else {
  2572. return PBJ._PBJ.CastFloat();
  2573. }
  2574. }
  2575. }
  2576. public const int HullFieldTag=6;
  2577. public bool HasHull{ get {return super.HullCount>=3;} }
  2578. public PBJ.Vector3f Hull{ get {
  2579. int index=0;
  2580. if (HasHull) {
  2581. return PBJ._PBJ.CastVector3f(super.GetHull(index*3+0),super.GetHull(index*3+1),super.GetHull(index*3+2));
  2582. } else {
  2583. return PBJ._PBJ.CastVector3f();
  2584. }
  2585. }
  2586. }
  2587. public const int CollideMsgFieldTag=16;
  2588. public bool HasCollideMsg{ get {return super.HasCollideMsg&&PBJ._PBJ.ValidateUint32(super.CollideMsg);} }
  2589. public uint CollideMsg{ get {
  2590. if (HasCollideMsg) {
  2591. return PBJ._PBJ.CastUint32(super.CollideMsg);
  2592. } else {
  2593. return PBJ._PBJ.CastUint32();
  2594. }
  2595. }
  2596. }
  2597. public const int CollideMaskFieldTag=17;
  2598. public bool HasCollideMask{ get {return super.HasCollideMask&&PBJ._PBJ.ValidateUint32(super.CollideMask);} }
  2599. public uint CollideMask{ get {
  2600. if (HasCollideMask) {
  2601. return PBJ._PBJ.CastUint32(super.CollideMask);
  2602. } else {
  2603. return PBJ._PBJ.CastUint32();
  2604. }
  2605. }
  2606. }
  2607. public const int GravityFieldTag=18;
  2608. public bool HasGravity{ get {return super.HasGravity&&PBJ._PBJ.ValidateFloat(super.Gravity);} }
  2609. public float Gravity{ get {
  2610. if (HasGravity) {
  2611. return PBJ._PBJ.CastFloat(super.Gravity);
  2612. } else {
  2613. return PBJ._PBJ.CastFloat();
  2614. }
  2615. }
  2616. }
  2617. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2618. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2619. public static Builder CreateBuilder() { return new Builder(); }
  2620. public static Builder CreateBuilder(PhysicalParameters prototype) {
  2621. return (Builder)new Builder().MergeFrom(prototype);
  2622. }
  2623. public static PhysicalParameters ParseFrom(pb::ByteString data) {
  2624. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data));
  2625. }
  2626. public static PhysicalParameters ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2627. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data,er));
  2628. }
  2629. public static PhysicalParameters ParseFrom(byte[] data) {
  2630. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data));
  2631. }
  2632. public static PhysicalParameters ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2633. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data,er));
  2634. }
  2635. public static PhysicalParameters ParseFrom(global::System.IO.Stream data) {
  2636. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data));
  2637. }
  2638. public static PhysicalParameters ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2639. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data,er));
  2640. }
  2641. public static PhysicalParameters ParseFrom(pb::CodedInputStream data) {
  2642. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data));
  2643. }
  2644. public static PhysicalParameters ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2645. return new PhysicalParameters(_PBJ_Internal.PhysicalParameters.ParseFrom(data,er));
  2646. }
  2647. protected override bool _HasAllPBJFields{ get {
  2648. return true
  2649. ;
  2650. } }
  2651. public bool IsInitialized { get {
  2652. return super.IsInitialized&&_HasAllPBJFields;
  2653. } }
  2654. public class Builder : global::PBJ.IMessage.IBuilder{
  2655. protected override bool _HasAllPBJFields{ get {
  2656. return true
  2657. ;
  2658. } }
  2659. public bool IsInitialized { get {
  2660. return super.IsInitialized&&_HasAllPBJFields;
  2661. } }
  2662. protected _PBJ_Internal.PhysicalParameters.Builder super;
  2663. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  2664. public _PBJ_Internal.PhysicalParameters.Builder _PBJSuper{ get { return super;} }
  2665. public Builder() {super = new _PBJ_Internal.PhysicalParameters.Builder();}
  2666. public Builder(_PBJ_Internal.PhysicalParameters.Builder other) {
  2667. super=other;
  2668. }
  2669. public Builder Clone() {return new Builder(super.Clone());}
  2670. public Builder MergeFrom(PhysicalParameters prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  2671. public Builder Clear() {super.Clear();return this;}
  2672. public PhysicalParameters BuildPartial() {return new PhysicalParameters(super.BuildPartial());}
  2673. public PhysicalParameters Build() {if (_HasAllPBJFields) return new PhysicalParameters(super.Build());return null;}
  2674. public pbd::MessageDescriptor DescriptorForType {
  2675. get { return PhysicalParameters.Descriptor; } }
  2676. public Builder ClearMode() { super.ClearMode();return this;}
  2677. public const int ModeFieldTag=2;
  2678. public bool HasMode{ get {return super.HasMode;} }
  2679. public Types.Mode Mode{ get {
  2680. if (HasMode) {
  2681. return (Types.Mode)super.Mode;
  2682. } else {
  2683. return new Types.Mode();
  2684. }
  2685. }
  2686. set {
  2687. super.Mode=((_PBJ_Internal.PhysicalParameters.Types.Mode)value);
  2688. }
  2689. }
  2690. public Builder ClearDensity() { super.ClearDensity();return this;}
  2691. public const int DensityFieldTag=3;
  2692. public bool HasDensity{ get {return super.HasDensity&&PBJ._PBJ.ValidateFloat(super.Density);} }
  2693. public float Density{ get {
  2694. if (HasDensity) {
  2695. return PBJ._PBJ.CastFloat(super.Density);
  2696. } else {
  2697. return PBJ._PBJ.CastFloat();
  2698. }
  2699. }
  2700. set {
  2701. super.Density=(PBJ._PBJ.Construct(value));
  2702. }
  2703. }
  2704. public Builder ClearFriction() { super.ClearFriction();return this;}
  2705. public const int FrictionFieldTag=4;
  2706. public bool HasFriction{ get {return super.HasFriction&&PBJ._PBJ.ValidateFloat(super.Friction);} }
  2707. public float Friction{ get {
  2708. if (HasFriction) {
  2709. return PBJ._PBJ.CastFloat(super.Friction);
  2710. } else {
  2711. return PBJ._PBJ.CastFloat();
  2712. }
  2713. }
  2714. set {
  2715. super.Friction=(PBJ._PBJ.Construct(value));
  2716. }
  2717. }
  2718. public Builder ClearBounce() { super.ClearBounce();return this;}
  2719. public const int BounceFieldTag=5;
  2720. public bool HasBounce{ get {return super.HasBounce&&PBJ._PBJ.ValidateFloat(super.Bounce);} }
  2721. public float Bounce{ get {
  2722. if (HasBounce) {
  2723. return PBJ._PBJ.CastFloat(super.Bounce);
  2724. } else {
  2725. return PBJ._PBJ.CastFloat();
  2726. }
  2727. }
  2728. set {
  2729. super.Bounce=(PBJ._PBJ.Construct(value));
  2730. }
  2731. }
  2732. public Builder ClearHull() { super.ClearHull();return this;}
  2733. public const int HullFieldTag=6;
  2734. public bool HasHull{ get {return super.HullCount>=3;} }
  2735. public PBJ.Vector3f Hull{ get {
  2736. int index=0;
  2737. if (HasHull) {
  2738. return PBJ._PBJ.CastVector3f(super.GetHull(index*3+0),super.GetHull(index*3+1),super.GetHull(index*3+2));
  2739. } else {
  2740. return PBJ._PBJ.CastVector3f();
  2741. }
  2742. }
  2743. set {
  2744. super.ClearHull();
  2745. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  2746. super.AddHull(_PBJtempArray[0]);
  2747. super.AddHull(_PBJtempArray[1]);
  2748. super.AddHull(_PBJtempArray[2]);
  2749. }
  2750. }
  2751. public Builder ClearCollideMsg() { super.ClearCollideMsg();return this;}
  2752. public const int CollideMsgFieldTag=16;
  2753. public bool HasCollideMsg{ get {return super.HasCollideMsg&&PBJ._PBJ.ValidateUint32(super.CollideMsg);} }
  2754. public uint CollideMsg{ get {
  2755. if (HasCollideMsg) {
  2756. return PBJ._PBJ.CastUint32(super.CollideMsg);
  2757. } else {
  2758. return PBJ._PBJ.CastUint32();
  2759. }
  2760. }
  2761. set {
  2762. super.CollideMsg=(PBJ._PBJ.Construct(value));
  2763. }
  2764. }
  2765. public Builder ClearCollideMask() { super.ClearCollideMask();return this;}
  2766. public const int CollideMaskFieldTag=17;
  2767. public bool HasCollideMask{ get {return super.HasCollideMask&&PBJ._PBJ.ValidateUint32(super.CollideMask);} }
  2768. public uint CollideMask{ get {
  2769. if (HasCollideMask) {
  2770. return PBJ._PBJ.CastUint32(super.CollideMask);
  2771. } else {
  2772. return PBJ._PBJ.CastUint32();
  2773. }
  2774. }
  2775. set {
  2776. super.CollideMask=(PBJ._PBJ.Construct(value));
  2777. }
  2778. }
  2779. public Builder ClearGravity() { super.ClearGravity();return this;}
  2780. public const int GravityFieldTag=18;
  2781. public bool HasGravity{ get {return super.HasGravity&&PBJ._PBJ.ValidateFloat(super.Gravity);} }
  2782. public float Gravity{ get {
  2783. if (HasGravity) {
  2784. return PBJ._PBJ.CastFloat(super.Gravity);
  2785. } else {
  2786. return PBJ._PBJ.CastFloat();
  2787. }
  2788. }
  2789. set {
  2790. super.Gravity=(PBJ._PBJ.Construct(value));
  2791. }
  2792. }
  2793. }
  2794. }
  2795. }
  2796. namespace Sirikata.Protocol {
  2797. public class LightInfoProperty : PBJ.IMessage {
  2798. protected _PBJ_Internal.LightInfoProperty super;
  2799. public _PBJ_Internal.LightInfoProperty _PBJSuper{ get { return super;} }
  2800. public LightInfoProperty() {
  2801. super=new _PBJ_Internal.LightInfoProperty();
  2802. }
  2803. public LightInfoProperty(_PBJ_Internal.LightInfoProperty reference) {
  2804. super=reference;
  2805. }
  2806. public static LightInfoProperty defaultInstance= new LightInfoProperty (_PBJ_Internal.LightInfoProperty.DefaultInstance);
  2807. public static LightInfoProperty DefaultInstance{
  2808. get {return defaultInstance;}
  2809. }
  2810. public static pbd.MessageDescriptor Descriptor {
  2811. get { return _PBJ_Internal.LightInfoProperty.Descriptor; } }
  2812. public static class Types {
  2813. public enum LightTypes {
  2814. POINT=_PBJ_Internal.LightInfoProperty.Types.LightTypes.POINT,
  2815. SPOTLIGHT=_PBJ_Internal.LightInfoProperty.Types.LightTypes.SPOTLIGHT,
  2816. DIRECTIONAL=_PBJ_Internal.LightInfoProperty.Types.LightTypes.DIRECTIONAL
  2817. };
  2818. }
  2819. public static bool WithinReservedFieldTagRange(int field_tag) {
  2820. return false;
  2821. }
  2822. public static bool WithinExtensionFieldTagRange(int field_tag) {
  2823. return false;
  2824. }
  2825. public const int DiffuseColorFieldTag=3;
  2826. public bool HasDiffuseColor{ get {return super.DiffuseColorCount>=3;} }
  2827. public PBJ.Vector3f DiffuseColor{ get {
  2828. int index=0;
  2829. if (HasDiffuseColor) {
  2830. return PBJ._PBJ.CastVector3f(super.GetDiffuseColor(index*3+0),super.GetDiffuseColor(index*3+1),super.GetDiffuseColor(index*3+2));
  2831. } else {
  2832. return PBJ._PBJ.CastVector3f();
  2833. }
  2834. }
  2835. }
  2836. public const int SpecularColorFieldTag=4;
  2837. public bool HasSpecularColor{ get {return super.SpecularColorCount>=3;} }
  2838. public PBJ.Vector3f SpecularColor{ get {
  2839. int index=0;
  2840. if (HasSpecularColor) {
  2841. return PBJ._PBJ.CastVector3f(super.GetSpecularColor(index*3+0),super.GetSpecularColor(index*3+1),super.GetSpecularColor(index*3+2));
  2842. } else {
  2843. return PBJ._PBJ.CastVector3f();
  2844. }
  2845. }
  2846. }
  2847. public const int PowerFieldTag=5;
  2848. public bool HasPower{ get {return super.HasPower&&PBJ._PBJ.ValidateFloat(super.Power);} }
  2849. public float Power{ get {
  2850. if (HasPower) {
  2851. return PBJ._PBJ.CastFloat(super.Power);
  2852. } else {
  2853. return PBJ._PBJ.CastFloat();
  2854. }
  2855. }
  2856. }
  2857. public const int AmbientColorFieldTag=6;
  2858. public bool HasAmbientColor{ get {return super.AmbientColorCount>=3;} }
  2859. public PBJ.Vector3f AmbientColor{ get {
  2860. int index=0;
  2861. if (HasAmbientColor) {
  2862. return PBJ._PBJ.CastVector3f(super.GetAmbientColor(index*3+0),super.GetAmbientColor(index*3+1),super.GetAmbientColor(index*3+2));
  2863. } else {
  2864. return PBJ._PBJ.CastVector3f();
  2865. }
  2866. }
  2867. }
  2868. public const int ShadowColorFieldTag=7;
  2869. public bool HasShadowColor{ get {return super.ShadowColorCount>=3;} }
  2870. public PBJ.Vector3f ShadowColor{ get {
  2871. int index=0;
  2872. if (HasShadowColor) {
  2873. return PBJ._PBJ.CastVector3f(super.GetShadowColor(index*3+0),super.GetShadowColor(index*3+1),super.GetShadowColor(index*3+2));
  2874. } else {
  2875. return PBJ._PBJ.CastVector3f();
  2876. }
  2877. }
  2878. }
  2879. public const int LightRangeFieldTag=8;
  2880. public bool HasLightRange{ get {return super.HasLightRange&&PBJ._PBJ.ValidateDouble(super.LightRange);} }
  2881. public double LightRange{ get {
  2882. if (HasLightRange) {
  2883. return PBJ._PBJ.CastDouble(super.LightRange);
  2884. } else {
  2885. return PBJ._PBJ.CastDouble();
  2886. }
  2887. }
  2888. }
  2889. public const int ConstantFalloffFieldTag=9;
  2890. public bool HasConstantFalloff{ get {return super.HasConstantFalloff&&PBJ._PBJ.ValidateFloat(super.ConstantFalloff);} }
  2891. public float ConstantFalloff{ get {
  2892. if (HasConstantFalloff) {
  2893. return PBJ._PBJ.CastFloat(super.ConstantFalloff);
  2894. } else {
  2895. return PBJ._PBJ.CastFloat();
  2896. }
  2897. }
  2898. }
  2899. public const int LinearFalloffFieldTag=10;
  2900. public bool HasLinearFalloff{ get {return super.HasLinearFalloff&&PBJ._PBJ.ValidateFloat(super.LinearFalloff);} }
  2901. public float LinearFalloff{ get {
  2902. if (HasLinearFalloff) {
  2903. return PBJ._PBJ.CastFloat(super.LinearFalloff);
  2904. } else {
  2905. return PBJ._PBJ.CastFloat();
  2906. }
  2907. }
  2908. }
  2909. public const int QuadraticFalloffFieldTag=11;
  2910. public bool HasQuadraticFalloff{ get {return super.HasQuadraticFalloff&&PBJ._PBJ.ValidateFloat(super.QuadraticFalloff);} }
  2911. public float QuadraticFalloff{ get {
  2912. if (HasQuadraticFalloff) {
  2913. return PBJ._PBJ.CastFloat(super.QuadraticFalloff);
  2914. } else {
  2915. return PBJ._PBJ.CastFloat();
  2916. }
  2917. }
  2918. }
  2919. public const int ConeInnerRadiansFieldTag=12;
  2920. public bool HasConeInnerRadians{ get {return super.HasConeInnerRadians&&PBJ._PBJ.ValidateFloat(super.ConeInnerRadians);} }
  2921. public float ConeInnerRadians{ get {
  2922. if (HasConeInnerRadians) {
  2923. return PBJ._PBJ.CastFloat(super.ConeInnerRadians);
  2924. } else {
  2925. return PBJ._PBJ.CastFloat();
  2926. }
  2927. }
  2928. }
  2929. public const int ConeOuterRadiansFieldTag=13;
  2930. public bool HasConeOuterRadians{ get {return super.HasConeOuterRadians&&PBJ._PBJ.ValidateFloat(super.ConeOuterRadians);} }
  2931. public float ConeOuterRadians{ get {
  2932. if (HasConeOuterRadians) {
  2933. return PBJ._PBJ.CastFloat(super.ConeOuterRadians);
  2934. } else {
  2935. return PBJ._PBJ.CastFloat();
  2936. }
  2937. }
  2938. }
  2939. public const int ConeFalloffFieldTag=14;
  2940. public bool HasConeFalloff{ get {return super.HasConeFalloff&&PBJ._PBJ.ValidateFloat(super.ConeFalloff);} }
  2941. public float ConeFalloff{ get {
  2942. if (HasConeFalloff) {
  2943. return PBJ._PBJ.CastFloat(super.ConeFalloff);
  2944. } else {
  2945. return PBJ._PBJ.CastFloat();
  2946. }
  2947. }
  2948. }
  2949. public const int TypeFieldTag=15;
  2950. public bool HasType{ get {return super.HasType;} }
  2951. public Types.LightTypes Type{ get {
  2952. if (HasType) {
  2953. return (Types.LightTypes)super.Type;
  2954. } else {
  2955. return new Types.LightTypes();
  2956. }
  2957. }
  2958. }
  2959. public const int CastsShadowFieldTag=16;
  2960. public bool HasCastsShadow{ get {return super.HasCastsShadow&&PBJ._PBJ.ValidateBool(super.CastsShadow);} }
  2961. public bool CastsShadow{ get {
  2962. if (HasCastsShadow) {
  2963. return PBJ._PBJ.CastBool(super.CastsShadow);
  2964. } else {
  2965. return PBJ._PBJ.CastBool();
  2966. }
  2967. }
  2968. }
  2969. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  2970. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  2971. public static Builder CreateBuilder() { return new Builder(); }
  2972. public static Builder CreateBuilder(LightInfoProperty prototype) {
  2973. return (Builder)new Builder().MergeFrom(prototype);
  2974. }
  2975. public static LightInfoProperty ParseFrom(pb::ByteString data) {
  2976. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data));
  2977. }
  2978. public static LightInfoProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  2979. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data,er));
  2980. }
  2981. public static LightInfoProperty ParseFrom(byte[] data) {
  2982. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data));
  2983. }
  2984. public static LightInfoProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  2985. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data,er));
  2986. }
  2987. public static LightInfoProperty ParseFrom(global::System.IO.Stream data) {
  2988. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data));
  2989. }
  2990. public static LightInfoProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  2991. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data,er));
  2992. }
  2993. public static LightInfoProperty ParseFrom(pb::CodedInputStream data) {
  2994. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data));
  2995. }
  2996. public static LightInfoProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  2997. return new LightInfoProperty(_PBJ_Internal.LightInfoProperty.ParseFrom(data,er));
  2998. }
  2999. protected override bool _HasAllPBJFields{ get {
  3000. return true
  3001. ;
  3002. } }
  3003. public bool IsInitialized { get {
  3004. return super.IsInitialized&&_HasAllPBJFields;
  3005. } }
  3006. public class Builder : global::PBJ.IMessage.IBuilder{
  3007. protected override bool _HasAllPBJFields{ get {
  3008. return true
  3009. ;
  3010. } }
  3011. public bool IsInitialized { get {
  3012. return super.IsInitialized&&_HasAllPBJFields;
  3013. } }
  3014. protected _PBJ_Internal.LightInfoProperty.Builder super;
  3015. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  3016. public _PBJ_Internal.LightInfoProperty.Builder _PBJSuper{ get { return super;} }
  3017. public Builder() {super = new _PBJ_Internal.LightInfoProperty.Builder();}
  3018. public Builder(_PBJ_Internal.LightInfoProperty.Builder other) {
  3019. super=other;
  3020. }
  3021. public Builder Clone() {return new Builder(super.Clone());}
  3022. public Builder MergeFrom(LightInfoProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  3023. public Builder Clear() {super.Clear();return this;}
  3024. public LightInfoProperty BuildPartial() {return new LightInfoProperty(super.BuildPartial());}
  3025. public LightInfoProperty Build() {if (_HasAllPBJFields) return new LightInfoProperty(super.Build());return null;}
  3026. public pbd::MessageDescriptor DescriptorForType {
  3027. get { return LightInfoProperty.Descriptor; } }
  3028. public Builder ClearDiffuseColor() { super.ClearDiffuseColor();return this;}
  3029. public const int DiffuseColorFieldTag=3;
  3030. public bool HasDiffuseColor{ get {return super.DiffuseColorCount>=3;} }
  3031. public PBJ.Vector3f DiffuseColor{ get {
  3032. int index=0;
  3033. if (HasDiffuseColor) {
  3034. return PBJ._PBJ.CastVector3f(super.GetDiffuseColor(index*3+0),super.GetDiffuseColor(index*3+1),super.GetDiffuseColor(index*3+2));
  3035. } else {
  3036. return PBJ._PBJ.CastVector3f();
  3037. }
  3038. }
  3039. set {
  3040. super.ClearDiffuseColor();
  3041. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  3042. super.AddDiffuseColor(_PBJtempArray[0]);
  3043. super.AddDiffuseColor(_PBJtempArray[1]);
  3044. super.AddDiffuseColor(_PBJtempArray[2]);
  3045. }
  3046. }
  3047. public Builder ClearSpecularColor() { super.ClearSpecularColor();return this;}
  3048. public const int SpecularColorFieldTag=4;
  3049. public bool HasSpecularColor{ get {return super.SpecularColorCount>=3;} }
  3050. public PBJ.Vector3f SpecularColor{ get {
  3051. int index=0;
  3052. if (HasSpecularColor) {
  3053. return PBJ._PBJ.CastVector3f(super.GetSpecularColor(index*3+0),super.GetSpecularColor(index*3+1),super.GetSpecularColor(index*3+2));
  3054. } else {
  3055. return PBJ._PBJ.CastVector3f();
  3056. }
  3057. }
  3058. set {
  3059. super.ClearSpecularColor();
  3060. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  3061. super.AddSpecularColor(_PBJtempArray[0]);
  3062. super.AddSpecularColor(_PBJtempArray[1]);
  3063. super.AddSpecularColor(_PBJtempArray[2]);
  3064. }
  3065. }
  3066. public Builder ClearPower() { super.ClearPower();return this;}
  3067. public const int PowerFieldTag=5;
  3068. public bool HasPower{ get {return super.HasPower&&PBJ._PBJ.ValidateFloat(super.Power);} }
  3069. public float Power{ get {
  3070. if (HasPower) {
  3071. return PBJ._PBJ.CastFloat(super.Power);
  3072. } else {
  3073. return PBJ._PBJ.CastFloat();
  3074. }
  3075. }
  3076. set {
  3077. super.Power=(PBJ._PBJ.Construct(value));
  3078. }
  3079. }
  3080. public Builder ClearAmbientColor() { super.ClearAmbientColor();return this;}
  3081. public const int AmbientColorFieldTag=6;
  3082. public bool HasAmbientColor{ get {return super.AmbientColorCount>=3;} }
  3083. public PBJ.Vector3f AmbientColor{ get {
  3084. int index=0;
  3085. if (HasAmbientColor) {
  3086. return PBJ._PBJ.CastVector3f(super.GetAmbientColor(index*3+0),super.GetAmbientColor(index*3+1),super.GetAmbientColor(index*3+2));
  3087. } else {
  3088. return PBJ._PBJ.CastVector3f();
  3089. }
  3090. }
  3091. set {
  3092. super.ClearAmbientColor();
  3093. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  3094. super.AddAmbientColor(_PBJtempArray[0]);
  3095. super.AddAmbientColor(_PBJtempArray[1]);
  3096. super.AddAmbientColor(_PBJtempArray[2]);
  3097. }
  3098. }
  3099. public Builder ClearShadowColor() { super.ClearShadowColor();return this;}
  3100. public const int ShadowColorFieldTag=7;
  3101. public bool HasShadowColor{ get {return super.ShadowColorCount>=3;} }
  3102. public PBJ.Vector3f ShadowColor{ get {
  3103. int index=0;
  3104. if (HasShadowColor) {
  3105. return PBJ._PBJ.CastVector3f(super.GetShadowColor(index*3+0),super.GetShadowColor(index*3+1),super.GetShadowColor(index*3+2));
  3106. } else {
  3107. return PBJ._PBJ.CastVector3f();
  3108. }
  3109. }
  3110. set {
  3111. super.ClearShadowColor();
  3112. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  3113. super.AddShadowColor(_PBJtempArray[0]);
  3114. super.AddShadowColor(_PBJtempArray[1]);
  3115. super.AddShadowColor(_PBJtempArray[2]);
  3116. }
  3117. }
  3118. public Builder ClearLightRange() { super.ClearLightRange();return this;}
  3119. public const int LightRangeFieldTag=8;
  3120. public bool HasLightRange{ get {return super.HasLightRange&&PBJ._PBJ.ValidateDouble(super.LightRange);} }
  3121. public double LightRange{ get {
  3122. if (HasLightRange) {
  3123. return PBJ._PBJ.CastDouble(super.LightRange);
  3124. } else {
  3125. return PBJ._PBJ.CastDouble();
  3126. }
  3127. }
  3128. set {
  3129. super.LightRange=(PBJ._PBJ.Construct(value));
  3130. }
  3131. }
  3132. public Builder ClearConstantFalloff() { super.ClearConstantFalloff();return this;}
  3133. public const int ConstantFalloffFieldTag=9;
  3134. public bool HasConstantFalloff{ get {return super.HasConstantFalloff&&PBJ._PBJ.ValidateFloat(super.ConstantFalloff);} }
  3135. public float ConstantFalloff{ get {
  3136. if (HasConstantFalloff) {
  3137. return PBJ._PBJ.CastFloat(super.ConstantFalloff);
  3138. } else {
  3139. return PBJ._PBJ.CastFloat();
  3140. }
  3141. }
  3142. set {
  3143. super.ConstantFalloff=(PBJ._PBJ.Construct(value));
  3144. }
  3145. }
  3146. public Builder ClearLinearFalloff() { super.ClearLinearFalloff();return this;}
  3147. public const int LinearFalloffFieldTag=10;
  3148. public bool HasLinearFalloff{ get {return super.HasLinearFalloff&&PBJ._PBJ.ValidateFloat(super.LinearFalloff);} }
  3149. public float LinearFalloff{ get {
  3150. if (HasLinearFalloff) {
  3151. return PBJ._PBJ.CastFloat(super.LinearFalloff);
  3152. } else {
  3153. return PBJ._PBJ.CastFloat();
  3154. }
  3155. }
  3156. set {
  3157. super.LinearFalloff=(PBJ._PBJ.Construct(value));
  3158. }
  3159. }
  3160. public Builder ClearQuadraticFalloff() { super.ClearQuadraticFalloff();return this;}
  3161. public const int QuadraticFalloffFieldTag=11;
  3162. public bool HasQuadraticFalloff{ get {return super.HasQuadraticFalloff&&PBJ._PBJ.ValidateFloat(super.QuadraticFalloff);} }
  3163. public float QuadraticFalloff{ get {
  3164. if (HasQuadraticFalloff) {
  3165. return PBJ._PBJ.CastFloat(super.QuadraticFalloff);
  3166. } else {
  3167. return PBJ._PBJ.CastFloat();
  3168. }
  3169. }
  3170. set {
  3171. super.QuadraticFalloff=(PBJ._PBJ.Construct(value));
  3172. }
  3173. }
  3174. public Builder ClearConeInnerRadians() { super.ClearConeInnerRadians();return this;}
  3175. public const int ConeInnerRadiansFieldTag=12;
  3176. public bool HasConeInnerRadians{ get {return super.HasConeInnerRadians&&PBJ._PBJ.ValidateFloat(super.ConeInnerRadians);} }
  3177. public float ConeInnerRadians{ get {
  3178. if (HasConeInnerRadians) {
  3179. return PBJ._PBJ.CastFloat(super.ConeInnerRadians);
  3180. } else {
  3181. return PBJ._PBJ.CastFloat();
  3182. }
  3183. }
  3184. set {
  3185. super.ConeInnerRadians=(PBJ._PBJ.Construct(value));
  3186. }
  3187. }
  3188. public Builder ClearConeOuterRadians() { super.ClearConeOuterRadians();return this;}
  3189. public const int ConeOuterRadiansFieldTag=13;
  3190. public bool HasConeOuterRadians{ get {return super.HasConeOuterRadians&&PBJ._PBJ.ValidateFloat(super.ConeOuterRadians);} }
  3191. public float ConeOuterRadians{ get {
  3192. if (HasConeOuterRadians) {
  3193. return PBJ._PBJ.CastFloat(super.ConeOuterRadians);
  3194. } else {
  3195. return PBJ._PBJ.CastFloat();
  3196. }
  3197. }
  3198. set {
  3199. super.ConeOuterRadians=(PBJ._PBJ.Construct(value));
  3200. }
  3201. }
  3202. public Builder ClearConeFalloff() { super.ClearConeFalloff();return this;}
  3203. public const int ConeFalloffFieldTag=14;
  3204. public bool HasConeFalloff{ get {return super.HasConeFalloff&&PBJ._PBJ.ValidateFloat(super.ConeFalloff);} }
  3205. public float ConeFalloff{ get {
  3206. if (HasConeFalloff) {
  3207. return PBJ._PBJ.CastFloat(super.ConeFalloff);
  3208. } else {
  3209. return PBJ._PBJ.CastFloat();
  3210. }
  3211. }
  3212. set {
  3213. super.ConeFalloff=(PBJ._PBJ.Construct(value));
  3214. }
  3215. }
  3216. public Builder ClearType() { super.ClearType();return this;}
  3217. public const int TypeFieldTag=15;
  3218. public bool HasType{ get {return super.HasType;} }
  3219. public Types.LightTypes Type{ get {
  3220. if (HasType) {
  3221. return (Types.LightTypes)super.Type;
  3222. } else {
  3223. return new Types.LightTypes();
  3224. }
  3225. }
  3226. set {
  3227. super.Type=((_PBJ_Internal.LightInfoProperty.Types.LightTypes)value);
  3228. }
  3229. }
  3230. public Builder ClearCastsShadow() { super.ClearCastsShadow();return this;}
  3231. public const int CastsShadowFieldTag=16;
  3232. public bool HasCastsShadow{ get {return super.HasCastsShadow&&PBJ._PBJ.ValidateBool(super.CastsShadow);} }
  3233. public bool CastsShadow{ get {
  3234. if (HasCastsShadow) {
  3235. return PBJ._PBJ.CastBool(super.CastsShadow);
  3236. } else {
  3237. return PBJ._PBJ.CastBool();
  3238. }
  3239. }
  3240. set {
  3241. super.CastsShadow=(PBJ._PBJ.Construct(value));
  3242. }
  3243. }
  3244. }
  3245. }
  3246. }
  3247. namespace Sirikata.Protocol {
  3248. public class ParentProperty : PBJ.IMessage {
  3249. protected _PBJ_Internal.ParentProperty super;
  3250. public _PBJ_Internal.ParentProperty _PBJSuper{ get { return super;} }
  3251. public ParentProperty() {
  3252. super=new _PBJ_Internal.ParentProperty();
  3253. }
  3254. public ParentProperty(_PBJ_Internal.ParentProperty reference) {
  3255. super=reference;
  3256. }
  3257. public static ParentProperty defaultInstance= new ParentProperty (_PBJ_Internal.ParentProperty.DefaultInstance);
  3258. public static ParentProperty DefaultInstance{
  3259. get {return defaultInstance;}
  3260. }
  3261. public static pbd.MessageDescriptor Descriptor {
  3262. get { return _PBJ_Internal.ParentProperty.Descriptor; } }
  3263. public static class Types {
  3264. }
  3265. public static bool WithinReservedFieldTagRange(int field_tag) {
  3266. return false;
  3267. }
  3268. public static bool WithinExtensionFieldTagRange(int field_tag) {
  3269. return false;
  3270. }
  3271. public const int ValueFieldTag=10;
  3272. public bool HasValue{ get {return super.HasValue&&PBJ._PBJ.ValidateUuid(super.Value);} }
  3273. public PBJ.UUID Value{ get {
  3274. if (HasValue) {
  3275. return PBJ._PBJ.CastUuid(super.Value);
  3276. } else {
  3277. return PBJ._PBJ.CastUuid();
  3278. }
  3279. }
  3280. }
  3281. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  3282. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  3283. public static Builder CreateBuilder() { return new Builder(); }
  3284. public static Builder CreateBuilder(ParentProperty prototype) {
  3285. return (Builder)new Builder().MergeFrom(prototype);
  3286. }
  3287. public static ParentProperty ParseFrom(pb::ByteString data) {
  3288. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data));
  3289. }
  3290. public static ParentProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  3291. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data,er));
  3292. }
  3293. public static ParentProperty ParseFrom(byte[] data) {
  3294. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data));
  3295. }
  3296. public static ParentProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  3297. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data,er));
  3298. }
  3299. public static ParentProperty ParseFrom(global::System.IO.Stream data) {
  3300. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data));
  3301. }
  3302. public static ParentProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  3303. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data,er));
  3304. }
  3305. public static ParentProperty ParseFrom(pb::CodedInputStream data) {
  3306. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data));
  3307. }
  3308. public static ParentProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  3309. return new ParentProperty(_PBJ_Internal.ParentProperty.ParseFrom(data,er));
  3310. }
  3311. protected override bool _HasAllPBJFields{ get {
  3312. return true
  3313. ;
  3314. } }
  3315. public bool IsInitialized { get {
  3316. return super.IsInitialized&&_HasAllPBJFields;
  3317. } }
  3318. public class Builder : global::PBJ.IMessage.IBuilder{
  3319. protected override bool _HasAllPBJFields{ get {
  3320. return true
  3321. ;
  3322. } }
  3323. public bool IsInitialized { get {
  3324. return super.IsInitialized&&_HasAllPBJFields;
  3325. } }
  3326. protected _PBJ_Internal.ParentProperty.Builder super;
  3327. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  3328. public _PBJ_Internal.ParentProperty.Builder _PBJSuper{ get { return super;} }
  3329. public Builder() {super = new _PBJ_Internal.ParentProperty.Builder();}
  3330. public Builder(_PBJ_Internal.ParentProperty.Builder other) {
  3331. super=other;
  3332. }
  3333. public Builder Clone() {return new Builder(super.Clone());}
  3334. public Builder MergeFrom(ParentProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  3335. public Builder Clear() {super.Clear();return this;}
  3336. public ParentProperty BuildPartial() {return new ParentProperty(super.BuildPartial());}
  3337. public ParentProperty Build() {if (_HasAllPBJFields) return new ParentProperty(super.Build());return null;}
  3338. public pbd::MessageDescriptor DescriptorForType {
  3339. get { return ParentProperty.Descriptor; } }
  3340. public Builder ClearValue() { super.ClearValue();return this;}
  3341. public const int ValueFieldTag=10;
  3342. public bool HasValue{ get {return super.HasValue&&PBJ._PBJ.ValidateUuid(super.Value);} }
  3343. public PBJ.UUID Value{ get {
  3344. if (HasValue) {
  3345. return PBJ._PBJ.CastUuid(super.Value);
  3346. } else {
  3347. return PBJ._PBJ.CastUuid();
  3348. }
  3349. }
  3350. set {
  3351. super.Value=(PBJ._PBJ.Construct(value));
  3352. }
  3353. }
  3354. }
  3355. }
  3356. }
  3357. namespace Sirikata.Protocol {
  3358. public class UUIDListProperty : PBJ.IMessage {
  3359. protected _PBJ_Internal.UUIDListProperty super;
  3360. public _PBJ_Internal.UUIDListProperty _PBJSuper{ get { return super;} }
  3361. public UUIDListProperty() {
  3362. super=new _PBJ_Internal.UUIDListProperty();
  3363. }
  3364. public UUIDListProperty(_PBJ_Internal.UUIDListProperty reference) {
  3365. super=reference;
  3366. }
  3367. public static UUIDListProperty defaultInstance= new UUIDListProperty (_PBJ_Internal.UUIDListProperty.DefaultInstance);
  3368. public static UUIDListProperty DefaultInstance{
  3369. get {return defaultInstance;}
  3370. }
  3371. public static pbd.MessageDescriptor Descriptor {
  3372. get { return _PBJ_Internal.UUIDListProperty.Descriptor; } }
  3373. public static class Types {
  3374. }
  3375. public static bool WithinReservedFieldTagRange(int field_tag) {
  3376. return false;
  3377. }
  3378. public static bool WithinExtensionFieldTagRange(int field_tag) {
  3379. return false;
  3380. }
  3381. public const int ValueFieldTag=10;
  3382. public int ValueCount { get { return super.ValueCount;} }
  3383. public bool HasValue(int index) {return PBJ._PBJ.ValidateUuid(super.GetValue(index));}
  3384. public PBJ.UUID Value(int index) {
  3385. return (PBJ.UUID)PBJ._PBJ.CastUuid(super.GetValue(index));
  3386. }
  3387. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  3388. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  3389. public static Builder CreateBuilder() { return new Builder(); }
  3390. public static Builder CreateBuilder(UUIDListProperty prototype) {
  3391. return (Builder)new Builder().MergeFrom(prototype);
  3392. }
  3393. public static UUIDListProperty ParseFrom(pb::ByteString data) {
  3394. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data));
  3395. }
  3396. public static UUIDListProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  3397. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data,er));
  3398. }
  3399. public static UUIDListProperty ParseFrom(byte[] data) {
  3400. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data));
  3401. }
  3402. public static UUIDListProperty ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  3403. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data,er));
  3404. }
  3405. public static UUIDListProperty ParseFrom(global::System.IO.Stream data) {
  3406. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data));
  3407. }
  3408. public static UUIDListProperty ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  3409. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data,er));
  3410. }
  3411. public static UUIDListProperty ParseFrom(pb::CodedInputStream data) {
  3412. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data));
  3413. }
  3414. public static UUIDListProperty ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  3415. return new UUIDListProperty(_PBJ_Internal.UUIDListProperty.ParseFrom(data,er));
  3416. }
  3417. protected override bool _HasAllPBJFields{ get {
  3418. return true
  3419. ;
  3420. } }
  3421. public bool IsInitialized { get {
  3422. return super.IsInitialized&&_HasAllPBJFields;
  3423. } }
  3424. public class Builder : global::PBJ.IMessage.IBuilder{
  3425. protected override bool _HasAllPBJFields{ get {
  3426. return true
  3427. ;
  3428. } }
  3429. public bool IsInitialized { get {
  3430. return super.IsInitialized&&_HasAllPBJFields;
  3431. } }
  3432. protected _PBJ_Internal.UUIDListProperty.Builder super;
  3433. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  3434. public _PBJ_Internal.UUIDListProperty.Builder _PBJSuper{ get { return super;} }
  3435. public Builder() {super = new _PBJ_Internal.UUIDListProperty.Builder();}
  3436. public Builder(_PBJ_Internal.UUIDListProperty.Builder other) {
  3437. super=other;
  3438. }
  3439. public Builder Clone() {return new Builder(super.Clone());}
  3440. public Builder MergeFrom(UUIDListProperty prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  3441. public Builder Clear() {super.Clear();return this;}
  3442. public UUIDListProperty BuildPartial() {return new UUIDListProperty(super.BuildPartial());}
  3443. public UUIDListProperty Build() {if (_HasAllPBJFields) return new UUIDListProperty(super.Build());return null;}
  3444. public pbd::MessageDescriptor DescriptorForType {
  3445. get { return UUIDListProperty.Descriptor; } }
  3446. public Builder ClearValue() { super.ClearValue();return this;}
  3447. public Builder SetValue(int index, PBJ.UUID value) {
  3448. super.SetValue(index,PBJ._PBJ.Construct(value));
  3449. return this;
  3450. }
  3451. public const int ValueFieldTag=10;
  3452. public int ValueCount { get { return super.ValueCount;} }
  3453. public bool HasValue(int index) {return PBJ._PBJ.ValidateUuid(super.GetValue(index));}
  3454. public PBJ.UUID Value(int index) {
  3455. return (PBJ.UUID)PBJ._PBJ.CastUuid(super.GetValue(index));
  3456. }
  3457. public Builder AddValue(PBJ.UUID value) {
  3458. super.AddValue(PBJ._PBJ.Construct(value));
  3459. return this;
  3460. }
  3461. }
  3462. }
  3463. }
  3464. namespace Sirikata.Protocol {
  3465. public class ConnectToSpace : PBJ.IMessage {
  3466. protected _PBJ_Internal.ConnectToSpace super;
  3467. public _PBJ_Internal.ConnectToSpace _PBJSuper{ get { return super;} }
  3468. public ConnectToSpace() {
  3469. super=new _PBJ_Internal.ConnectToSpace();
  3470. }
  3471. public ConnectToSpace(_PBJ_Internal.ConnectToSpace reference) {
  3472. super=reference;
  3473. }
  3474. public static ConnectToSpace defaultInstance= new ConnectToSpace (_PBJ_Internal.ConnectToSpace.DefaultInstance);
  3475. public static ConnectToSpace DefaultInstance{
  3476. get {return defaultInstance;}
  3477. }
  3478. public static pbd.MessageDescriptor Descriptor {
  3479. get { return _PBJ_Internal.ConnectToSpace.Descriptor; } }
  3480. public static class Types {
  3481. }
  3482. public static bool WithinReservedFieldTagRange(int field_tag) {
  3483. return false;
  3484. }
  3485. public static bool WithinExtensionFieldTagRange(int field_tag) {
  3486. return false;
  3487. }
  3488. public const int SpaceIdFieldTag=1;
  3489. public bool HasSpaceId{ get {return super.HasSpaceId&&PBJ._PBJ.ValidateUuid(super.SpaceId);} }
  3490. public PBJ.UUID SpaceId{ get {
  3491. if (HasSpaceId) {
  3492. return PBJ._PBJ.CastUuid(super.SpaceId);
  3493. } else {
  3494. return PBJ._PBJ.CastUuid();
  3495. }
  3496. }
  3497. }
  3498. public const int ObjectUuidEvidenceFieldTag=2;
  3499. public bool HasObjectUuidEvidence{ get {return super.HasObjectUuidEvidence&&PBJ._PBJ.ValidateUuid(super.ObjectUuidEvidence);} }
  3500. public PBJ.UUID ObjectUuidEvidence{ get {
  3501. if (HasObjectUuidEvidence) {
  3502. return PBJ._PBJ.CastUuid(super.ObjectUuidEvidence);
  3503. } else {
  3504. return PBJ._PBJ.CastUuid();
  3505. }
  3506. }
  3507. }
  3508. public const int RequestedObjectLocFieldTag=3;
  3509. public bool HasRequestedObjectLoc{ get {return super.HasRequestedObjectLoc;} }
  3510. public ObjLoc RequestedObjectLoc{ get {
  3511. if (HasRequestedObjectLoc) {
  3512. return new ObjLoc(super.RequestedObjectLoc);
  3513. } else {
  3514. return new ObjLoc();
  3515. }
  3516. }
  3517. }
  3518. public const int BoundingSphereFieldTag=4;
  3519. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  3520. public PBJ.BoundingSphere3f BoundingSphere{ get {
  3521. int index=0;
  3522. if (HasBoundingSphere) {
  3523. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  3524. } else {
  3525. return PBJ._PBJ.CastBoundingsphere3f();
  3526. }
  3527. }
  3528. }
  3529. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  3530. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  3531. public static Builder CreateBuilder() { return new Builder(); }
  3532. public static Builder CreateBuilder(ConnectToSpace prototype) {
  3533. return (Builder)new Builder().MergeFrom(prototype);
  3534. }
  3535. public static ConnectToSpace ParseFrom(pb::ByteString data) {
  3536. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data));
  3537. }
  3538. public static ConnectToSpace ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  3539. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data,er));
  3540. }
  3541. public static ConnectToSpace ParseFrom(byte[] data) {
  3542. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data));
  3543. }
  3544. public static ConnectToSpace ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  3545. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data,er));
  3546. }
  3547. public static ConnectToSpace ParseFrom(global::System.IO.Stream data) {
  3548. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data));
  3549. }
  3550. public static ConnectToSpace ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  3551. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data,er));
  3552. }
  3553. public static ConnectToSpace ParseFrom(pb::CodedInputStream data) {
  3554. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data));
  3555. }
  3556. public static ConnectToSpace ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  3557. return new ConnectToSpace(_PBJ_Internal.ConnectToSpace.ParseFrom(data,er));
  3558. }
  3559. protected override bool _HasAllPBJFields{ get {
  3560. return true
  3561. ;
  3562. } }
  3563. public bool IsInitialized { get {
  3564. return super.IsInitialized&&_HasAllPBJFields;
  3565. } }
  3566. public class Builder : global::PBJ.IMessage.IBuilder{
  3567. protected override bool _HasAllPBJFields{ get {
  3568. return true
  3569. ;
  3570. } }
  3571. public bool IsInitialized { get {
  3572. return super.IsInitialized&&_HasAllPBJFields;
  3573. } }
  3574. protected _PBJ_Internal.ConnectToSpace.Builder super;
  3575. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  3576. public _PBJ_Internal.ConnectToSpace.Builder _PBJSuper{ get { return super;} }
  3577. public Builder() {super = new _PBJ_Internal.ConnectToSpace.Builder();}
  3578. public Builder(_PBJ_Internal.ConnectToSpace.Builder other) {
  3579. super=other;
  3580. }
  3581. public Builder Clone() {return new Builder(super.Clone());}
  3582. public Builder MergeFrom(ConnectToSpace prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  3583. public Builder Clear() {super.Clear();return this;}
  3584. public ConnectToSpace BuildPartial() {return new ConnectToSpace(super.BuildPartial());}
  3585. public ConnectToSpace Build() {if (_HasAllPBJFields) return new ConnectToSpace(super.Build());return null;}
  3586. public pbd::MessageDescriptor DescriptorForType {
  3587. get { return ConnectToSpace.Descriptor; } }
  3588. public Builder ClearSpaceId() { super.ClearSpaceId();return this;}
  3589. public const int SpaceIdFieldTag=1;
  3590. public bool HasSpaceId{ get {return super.HasSpaceId&&PBJ._PBJ.ValidateUuid(super.SpaceId);} }
  3591. public PBJ.UUID SpaceId{ get {
  3592. if (HasSpaceId) {
  3593. return PBJ._PBJ.CastUuid(super.SpaceId);
  3594. } else {
  3595. return PBJ._PBJ.CastUuid();
  3596. }
  3597. }
  3598. set {
  3599. super.SpaceId=(PBJ._PBJ.Construct(value));
  3600. }
  3601. }
  3602. public Builder ClearObjectUuidEvidence() { super.ClearObjectUuidEvidence();return this;}
  3603. public const int ObjectUuidEvidenceFieldTag=2;
  3604. public bool HasObjectUuidEvidence{ get {return super.HasObjectUuidEvidence&&PBJ._PBJ.ValidateUuid(super.ObjectUuidEvidence);} }
  3605. public PBJ.UUID ObjectUuidEvidence{ get {
  3606. if (HasObjectUuidEvidence) {
  3607. return PBJ._PBJ.CastUuid(super.ObjectUuidEvidence);
  3608. } else {
  3609. return PBJ._PBJ.CastUuid();
  3610. }
  3611. }
  3612. set {
  3613. super.ObjectUuidEvidence=(PBJ._PBJ.Construct(value));
  3614. }
  3615. }
  3616. public Builder ClearRequestedObjectLoc() { super.ClearRequestedObjectLoc();return this;}
  3617. public const int RequestedObjectLocFieldTag=3;
  3618. public bool HasRequestedObjectLoc{ get {return super.HasRequestedObjectLoc;} }
  3619. public ObjLoc RequestedObjectLoc{ get {
  3620. if (HasRequestedObjectLoc) {
  3621. return new ObjLoc(super.RequestedObjectLoc);
  3622. } else {
  3623. return new ObjLoc();
  3624. }
  3625. }
  3626. set {
  3627. super.RequestedObjectLoc=value._PBJSuper;
  3628. }
  3629. }
  3630. public Builder ClearBoundingSphere() { super.ClearBoundingSphere();return this;}
  3631. public const int BoundingSphereFieldTag=4;
  3632. public bool HasBoundingSphere{ get {return super.BoundingSphereCount>=4;} }
  3633. public PBJ.BoundingSphere3f BoundingSphere{ get {
  3634. int index=0;
  3635. if (HasBoundingSphere) {
  3636. return PBJ._PBJ.CastBoundingsphere3f(super.GetBoundingSphere(index*4+0),super.GetBoundingSphere(index*4+1),super.GetBoundingSphere(index*4+2),super.GetBoundingSphere(index*4+3));
  3637. } else {
  3638. return PBJ._PBJ.CastBoundingsphere3f();
  3639. }
  3640. }
  3641. set {
  3642. super.ClearBoundingSphere();
  3643. float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
  3644. super.AddBoundingSphere(_PBJtempArray[0]);
  3645. super.AddBoundingSphere(_PBJtempArray[1]);
  3646. super.AddBoundingSphere(_PBJtempArray[2]);
  3647. super.AddBoundingSphere(_PBJtempArray[3]);
  3648. }
  3649. }
  3650. }
  3651. }
  3652. }
  3653. namespace Sirikata.Protocol {
  3654. public class CreateObject : PBJ.IMessage {
  3655. protected _PBJ_Internal.CreateObject super;
  3656. public _PBJ_Internal.CreateObject _PBJSuper{ get { return super;} }
  3657. public CreateObject() {
  3658. super=new _PBJ_Internal.CreateObject();
  3659. }
  3660. public CreateObject(_PBJ_Internal.CreateObject reference) {
  3661. super=reference;
  3662. }
  3663. public static CreateObject defaultInstance= new CreateObject (_PBJ_Internal.CreateObject.DefaultInstance);
  3664. public static CreateObject DefaultInstance{
  3665. get {return defaultInstance;}
  3666. }
  3667. public static pbd.MessageDescriptor Descriptor {
  3668. get { return _PBJ_Internal.CreateObject.Descriptor; } }
  3669. public static class Types {
  3670. }
  3671. public static bool WithinReservedFieldTagRange(int field_tag) {
  3672. return false;
  3673. }
  3674. public static bool WithinExtensionFieldTagRange(int field_tag) {
  3675. return false;
  3676. }
  3677. public const int ObjectUuidFieldTag=1;
  3678. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  3679. public PBJ.UUID ObjectUuid{ get {
  3680. if (HasObjectUuid) {
  3681. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  3682. } else {
  3683. return PBJ._PBJ.CastUuid();
  3684. }
  3685. }
  3686. }
  3687. public const int SpacePropertiesFieldTag=2;
  3688. public int SpacePropertiesCount { get { return super.SpacePropertiesCount;} }
  3689. public bool HasSpaceProperties(int index) {return true;}
  3690. public ConnectToSpace SpaceProperties(int index) {
  3691. return new ConnectToSpace(super.GetSpaceProperties(index));
  3692. }
  3693. public const int MeshFieldTag=3;
  3694. public bool HasMesh{ get {return super.HasMesh&&PBJ._PBJ.ValidateString(super.Mesh);} }
  3695. public string Mesh{ get {
  3696. if (HasMesh) {
  3697. return PBJ._PBJ.CastString(super.Mesh);
  3698. } else {
  3699. return PBJ._PBJ.CastString();
  3700. }
  3701. }
  3702. }
  3703. public const int ScaleFieldTag=4;
  3704. public bool HasScale{ get {return super.ScaleCount>=3;} }
  3705. public PBJ.Vector3f Scale{ get {
  3706. int index=0;
  3707. if (HasScale) {
  3708. return PBJ._PBJ.CastVector3f(super.GetScale(index*3+0),super.GetScale(index*3+1),super.GetScale(index*3+2));
  3709. } else {
  3710. return PBJ._PBJ.CastVector3f();
  3711. }
  3712. }
  3713. }
  3714. public const int WeburlFieldTag=5;
  3715. public bool HasWeburl{ get {return super.HasWeburl&&PBJ._PBJ.ValidateString(super.Weburl);} }
  3716. public string Weburl{ get {
  3717. if (HasWeburl) {
  3718. return PBJ._PBJ.CastString(super.Weburl);
  3719. } else {
  3720. return PBJ._PBJ.CastString();
  3721. }
  3722. }
  3723. }
  3724. public const int LightInfoFieldTag=6;
  3725. public bool HasLightInfo{ get {return super.HasLightInfo;} }
  3726. public LightInfoProperty LightInfo{ get {
  3727. if (HasLightInfo) {
  3728. return new LightInfoProperty(super.LightInfo);
  3729. } else {
  3730. return new LightInfoProperty();
  3731. }
  3732. }
  3733. }
  3734. public const int CameraFieldTag=7;
  3735. public bool HasCamera{ get {return super.HasCamera&&PBJ._PBJ.ValidateBool(super.Camera);} }
  3736. public bool Camera{ get {
  3737. if (HasCamera) {
  3738. return PBJ._PBJ.CastBool(super.Camera);
  3739. } else {
  3740. return PBJ._PBJ.CastBool();
  3741. }
  3742. }
  3743. }
  3744. public const int PhysicalFieldTag=8;
  3745. public bool HasPhysical{ get {return super.HasPhysical;} }
  3746. public PhysicalParameters Physical{ get {
  3747. if (HasPhysical) {
  3748. return new PhysicalParameters(super.Physical);
  3749. } else {
  3750. return new PhysicalParameters();
  3751. }
  3752. }
  3753. }
  3754. public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
  3755. public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
  3756. public static Builder CreateBuilder() { return new Builder(); }
  3757. public static Builder CreateBuilder(CreateObject prototype) {
  3758. return (Builder)new Builder().MergeFrom(prototype);
  3759. }
  3760. public static CreateObject ParseFrom(pb::ByteString data) {
  3761. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data));
  3762. }
  3763. public static CreateObject ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
  3764. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data,er));
  3765. }
  3766. public static CreateObject ParseFrom(byte[] data) {
  3767. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data));
  3768. }
  3769. public static CreateObject ParseFrom(byte[] data, pb::ExtensionRegistry er) {
  3770. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data,er));
  3771. }
  3772. public static CreateObject ParseFrom(global::System.IO.Stream data) {
  3773. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data));
  3774. }
  3775. public static CreateObject ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
  3776. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data,er));
  3777. }
  3778. public static CreateObject ParseFrom(pb::CodedInputStream data) {
  3779. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data));
  3780. }
  3781. public static CreateObject ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
  3782. return new CreateObject(_PBJ_Internal.CreateObject.ParseFrom(data,er));
  3783. }
  3784. protected override bool _HasAllPBJFields{ get {
  3785. return true
  3786. ;
  3787. } }
  3788. public bool IsInitialized { get {
  3789. return super.IsInitialized&&_HasAllPBJFields;
  3790. } }
  3791. public class Builder : global::PBJ.IMessage.IBuilder{
  3792. protected override bool _HasAllPBJFields{ get {
  3793. return true
  3794. ;
  3795. } }
  3796. public bool IsInitialized { get {
  3797. return super.IsInitialized&&_HasAllPBJFields;
  3798. } }
  3799. protected _PBJ_Internal.CreateObject.Builder super;
  3800. public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
  3801. public _PBJ_Internal.CreateObject.Builder _PBJSuper{ get { return super;} }
  3802. public Builder() {super = new _PBJ_Internal.CreateObject.Builder();}
  3803. public Builder(_PBJ_Internal.CreateObject.Builder other) {
  3804. super=other;
  3805. }
  3806. public Builder Clone() {return new Builder(super.Clone());}
  3807. public Builder MergeFrom(CreateObject prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
  3808. public Builder Clear() {super.Clear();return this;}
  3809. public CreateObject BuildPartial() {return new CreateObject(super.BuildPartial());}
  3810. public CreateObject Build() {if (_HasAllPBJFields) return new CreateObject(super.Build());return null;}
  3811. public pbd::MessageDescriptor DescriptorForType {
  3812. get { return CreateObject.Descriptor; } }
  3813. public Builder ClearObjectUuid() { super.ClearObjectUuid();return this;}
  3814. public const int ObjectUuidFieldTag=1;
  3815. public bool HasObjectUuid{ get {return super.HasObjectUuid&&PBJ._PBJ.ValidateUuid(super.ObjectUuid);} }
  3816. public PBJ.UUID ObjectUuid{ get {
  3817. if (HasObjectUuid) {
  3818. return PBJ._PBJ.CastUuid(super.ObjectUuid);
  3819. } else {
  3820. return PBJ._PBJ.CastUuid();
  3821. }
  3822. }
  3823. set {
  3824. super.ObjectUuid=(PBJ._PBJ.Construct(value));
  3825. }
  3826. }
  3827. public Builder ClearSpaceProperties() { super.ClearSpaceProperties();return this;}
  3828. public Builder SetSpaceProperties(int index,ConnectToSpace value) {
  3829. super.SetSpaceProperties(index,value._PBJSuper);
  3830. return this;
  3831. }
  3832. public const int SpacePropertiesFieldTag=2;
  3833. public int SpacePropertiesCount { get { return super.SpacePropertiesCount;} }
  3834. public bool HasSpaceProperties(int index) {return true;}
  3835. public ConnectToSpace SpaceProperties(int index) {
  3836. return new ConnectToSpace(super.GetSpaceProperties(index));
  3837. }
  3838. public Builder AddSpaceProperties(ConnectToSpace value) {
  3839. super.AddSpaceProperties(value._PBJSuper);
  3840. return this;
  3841. }
  3842. public Builder ClearMesh() { super.ClearMesh();return this;}
  3843. public const int MeshFieldTag=3;
  3844. public bool HasMesh{ get {return super.HasMesh&&PBJ._PBJ.ValidateString(super.Mesh);} }
  3845. public string Mesh{ get {
  3846. if (HasMesh) {
  3847. return PBJ._PBJ.CastString(super.Mesh);
  3848. } else {
  3849. return PBJ._PBJ.CastString();
  3850. }
  3851. }
  3852. set {
  3853. super.Mesh=(PBJ._PBJ.Construct(value));
  3854. }
  3855. }
  3856. public Builder ClearScale() { super.ClearScale();return this;}
  3857. public const int ScaleFieldTag=4;
  3858. public bool HasScale{ get {return super.ScaleCount>=3;} }
  3859. public PBJ.Vector3f Scale{ get {
  3860. int index=0;
  3861. if (HasScale) {
  3862. return PBJ._PBJ.CastVector3f(super.GetScale(index*3+0),super.GetScale(index*3+1),super.GetScale(index*3+2));
  3863. } else {
  3864. return PBJ._PBJ.CastVector3f();
  3865. }
  3866. }
  3867. set {
  3868. super.ClearScale();
  3869. float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
  3870. super.AddScale(_PBJtempArray[0]);
  3871. super.AddScale(_PBJtempArray[1]);
  3872. super.AddScale(_PBJtempArray[2]);
  3873. }
  3874. }
  3875. public Builder ClearWeburl() { super.ClearWeburl();return this;}
  3876. public const int WeburlFieldTag=5;
  3877. public bool HasWeburl{ get {return super.HasWeburl&&PBJ._PBJ.ValidateString(super.Weburl);} }
  3878. public string Weburl{ get {
  3879. if (HasWeburl) {
  3880. return PBJ._PBJ.CastString(super.Weburl);
  3881. } else {
  3882. return PBJ._PBJ.CastString();
  3883. }
  3884. }
  3885. set {
  3886. super.Weburl=(PBJ._PBJ.Construct(value));
  3887. }
  3888. }
  3889. public Builder ClearLightInfo() { super.ClearLightInfo();return this;}
  3890. public const int LightInfoFieldTag=6;
  3891. public bool HasLightInfo{ get {return super.HasLightInfo;} }
  3892. public LightInfoProperty LightInfo{ get {
  3893. if (HasLightInfo) {
  3894. return new LightInfoProperty(super.LightInfo);
  3895. } else {
  3896. return new LightInfoProperty();
  3897. }
  3898. }
  3899. set {
  3900. super.LightInfo=value._PBJSuper;
  3901. }
  3902. }
  3903. public Builder ClearCamera() { super.ClearCamera();return this;}
  3904. public const int CameraFieldTag=7;
  3905. public bool HasCamera{ get {return super.HasCamera&&PBJ._PBJ.ValidateBool(super.Camera);} }
  3906. public bool Camera{ get {
  3907. if (HasCamera) {
  3908. return PBJ._PBJ.CastBool(super.Camera);
  3909. } else {
  3910. return PBJ._PBJ.CastBool();
  3911. }
  3912. }
  3913. set {
  3914. super.Camera=(PBJ._PBJ.Construct(value));
  3915. }
  3916. }
  3917. public Builder ClearPhysical() { super.ClearPhysical();return this;}
  3918. public const int PhysicalFieldTag=8;
  3919. public bool HasPhysical{ get {return super.HasPhysical;} }
  3920. public PhysicalParameters Physical{ get {
  3921. if (HasPhysical) {
  3922. return new PhysicalParameters(super.Physical);
  3923. } else {
  3924. return new PhysicalParameters();
  3925. }
  3926. }
  3927. set {
  3928. super.Physical=value._PBJSuper;
  3929. }
  3930. }
  3931. }
  3932. }
  3933. }