Sirikata.cs 296 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Sirikata.Protocol._PBJ_Internal {
  7. public static partial class Sirikata {
  8. #region Extension registration
  9. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  10. }
  11. #endregion
  12. #region Static variables
  13. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor;
  14. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.MessageBody, global::Sirikata.Protocol._PBJ_Internal.MessageBody.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable;
  15. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor;
  16. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage, global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__FieldAccessorTable;
  17. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor;
  18. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.SpaceServices, global::Sirikata.Protocol._PBJ_Internal.SpaceServices.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__FieldAccessorTable;
  19. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor;
  20. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ObjLoc, global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__FieldAccessorTable;
  21. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor;
  22. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.LocRequest, global::Sirikata.Protocol._PBJ_Internal.LocRequest.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__FieldAccessorTable;
  23. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor;
  24. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.NewObj, global::Sirikata.Protocol._PBJ_Internal.NewObj.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__FieldAccessorTable;
  25. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor;
  26. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.RetObj, global::Sirikata.Protocol._PBJ_Internal.RetObj.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__FieldAccessorTable;
  27. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor;
  28. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.DelObj, global::Sirikata.Protocol._PBJ_Internal.DelObj.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__FieldAccessorTable;
  29. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor;
  30. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.NewProxQuery, global::Sirikata.Protocol._PBJ_Internal.NewProxQuery.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__FieldAccessorTable;
  31. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor;
  32. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ProxCall, global::Sirikata.Protocol._PBJ_Internal.ProxCall.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__FieldAccessorTable;
  33. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor;
  34. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.DelProxQuery, global::Sirikata.Protocol._PBJ_Internal.DelProxQuery.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__FieldAccessorTable;
  35. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor;
  36. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty, global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__FieldAccessorTable;
  37. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor;
  38. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.StringProperty, global::Sirikata.Protocol._PBJ_Internal.StringProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__FieldAccessorTable;
  39. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor;
  40. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.StringMapProperty, global::Sirikata.Protocol._PBJ_Internal.StringMapProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__FieldAccessorTable;
  41. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor;
  42. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters, global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__FieldAccessorTable;
  43. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor;
  44. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty, global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__FieldAccessorTable;
  45. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor;
  46. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ParentProperty, global::Sirikata.Protocol._PBJ_Internal.ParentProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__FieldAccessorTable;
  47. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor;
  48. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty, global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__FieldAccessorTable;
  49. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor;
  50. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace, global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__FieldAccessorTable;
  51. internal static pbd::MessageDescriptor internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor;
  52. internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.CreateObject, global::Sirikata.Protocol._PBJ_Internal.CreateObject.Builder> internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__FieldAccessorTable;
  53. #endregion
  54. #region Descriptor
  55. public static pbd::FileDescriptor Descriptor {
  56. get { return descriptor; }
  57. }
  58. private static pbd::FileDescriptor descriptor;
  59. static Sirikata() {
  60. byte[] descriptorData = global::System.Convert.FromBase64String(
  61. "Cg5TaXJpa2F0YS5wcm90bxIfU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRl" +
  62. "cm5hbCI/CgtNZXNzYWdlQm9keRIVCg1tZXNzYWdlX25hbWVzGAkgAygJEhkK" +
  63. "EW1lc3NhZ2VfYXJndW1lbnRzGAogAygMIroDCg9SZWFkT25seU1lc3NhZ2US" +
  64. "FQoNc291cmNlX29iamVjdBgBIAEoDBITCgtzb3VyY2VfcG9ydBgDIAEoDRIV" +
  65. "Cgxzb3VyY2Vfc3BhY2UYgAwgASgMEhoKEmRlc3RpbmF0aW9uX29iamVjdBgC" +
  66. "IAEoDBIYChBkZXN0aW5hdGlvbl9wb3J0GAQgASgNEhoKEWRlc3RpbmF0aW9u" +
  67. "X3NwYWNlGIEMIAEoDBIKCgJpZBgHIAEoAxIQCghyZXBseV9pZBgIIAEoAxJV" +
  68. "Cg1yZXR1cm5fc3RhdHVzGIAOIAEoDjI9LlNpcmlrYXRhLlByb3RvY29sLl9Q" +
  69. "QkpfSW50ZXJuYWwuUmVhZE9ubHlNZXNzYWdlLlJldHVyblN0YXR1cxIVCg1t" +
  70. "ZXNzYWdlX25hbWVzGAkgAygJEhkKEW1lc3NhZ2VfYXJndW1lbnRzGAogAygM" +
  71. "ImsKDFJldHVyblN0YXR1cxILCgdTVUNDRVNTEAASEwoPTkVUV09SS19GQUlM" +
  72. "VVJFEAESEwoPVElNRU9VVF9GQUlMVVJFEAMSEgoOUFJPVE9DT0xfRVJST1IQ" +
  73. "BBIQCgxQT1JUX0ZBSUxVUkUQBSLOAQoNU3BhY2VTZXJ2aWNlcxIZChFyZWdp" +
  74. "c3RyYXRpb25fcG9ydBghIAEoDRIQCghsb2NfcG9ydBgiIAEoDRIRCglnZW9t" +
  75. "X3BvcnQYIyABKA0SEQoJb3NlZ19wb3J0GCQgASgNEhEKCWNzZWdfcG9ydBgl" +
  76. "IAEoDRITCgtyb3V0ZXJfcG9ydBgmIAEoDRIdChVwcmVfY29ubmVjdGlvbl9i" +
  77. "dWZmZXIYQCABKAQSIwobbWF4X3ByZV9jb25uZWN0aW9uX21lc3NhZ2VzGEEg" +
  78. "ASgEIsQBCgZPYmpMb2MSEQoJdGltZXN0YW1wGAIgASgGEhQKCHBvc2l0aW9u" +
  79. "GAMgAygBQgIQARIXCgtvcmllbnRhdGlvbhgEIAMoAkICEAESFAoIdmVsb2Np" +
  80. "dHkYBSADKAJCAhABEhsKD3JvdGF0aW9uYWxfYXhpcxgHIAMoAkICEAESFQoN" +
  81. "YW5ndWxhcl9zcGVlZBgIIAEoAhIUCgx1cGRhdGVfZmxhZ3MYBiABKA0iGAoL" +
  82. "VXBkYXRlRmxhZ3MSCQoFRk9SQ0UQASKFAQoKTG9jUmVxdWVzdBIYChByZXF1" +
  83. "ZXN0ZWRfZmllbGRzGAIgASgNIl0KBkZpZWxkcxIMCghQT1NJVElPThABEg8K" +
  84. "C09SSUVOVEFUSU9OEAISDAoIVkVMT0NJVFkQBBITCg9ST1RBVElPTkFMX0FY" +
  85. "SVMQCBIRCg1BTkdVTEFSX1NQRUVEEBAiigEKBk5ld09iahIcChRvYmplY3Rf" +
  86. "dXVpZF9ldmlkZW5jZRgCIAEoDBJFChRyZXF1ZXN0ZWRfb2JqZWN0X2xvYxgD" +
  87. "IAEoCzInLlNpcmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuT2JqTG9j" +
  88. "EhsKD2JvdW5kaW5nX3NwaGVyZRgEIAMoAkICEAEiegoGUmV0T2JqEhgKEG9i" +
  89. "amVjdF9yZWZlcmVuY2UYAiABKAwSOQoIbG9jYXRpb24YAyABKAsyJy5TaXJp" +
  90. "a2F0YS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLk9iakxvYxIbCg9ib3VuZGlu" +
  91. "Z19zcGhlcmUYBCADKAJCAhABIiIKBkRlbE9iahIYChBvYmplY3RfcmVmZXJl" +
  92. "bmNlGAIgASgMIpoBCgxOZXdQcm94UXVlcnkSEAoIcXVlcnlfaWQYAiABKA0S" +
  93. "EQoJc3RhdGVsZXNzGAMgASgIEhsKD3JlbGF0aXZlX2NlbnRlchgEIAMoAkIC" +
  94. "EAESGwoPYWJzb2x1dGVfY2VudGVyGAUgAygBQgIQARISCgptYXhfcmFkaXVz" +
  95. "GAYgASgCEhcKD21pbl9zb2xpZF9hbmdsZRgHIAEoAiLhAQoIUHJveENhbGwS" +
  96. "EAoIcXVlcnlfaWQYAiACKA0SGAoQcHJveGltYXRlX29iamVjdBgDIAIoDBJR" +
  97. "Cg9wcm94aW1pdHlfZXZlbnQYBCACKA4yOC5TaXJpa2F0YS5Qcm90b2NvbC5f" +
  98. "UEJKX0ludGVybmFsLlByb3hDYWxsLlByb3hpbWl0eUV2ZW50IlYKDlByb3hp" +
  99. "bWl0eUV2ZW50EhQKEEVYSVRFRF9QUk9YSU1JVFkQABIVChFFTlRFUkVEX1BS" +
  100. "T1hJTUlUWRABEhcKE1NUQVRFTEVTU19QUk9YSU1JVFkQAiIgCgxEZWxQcm94" +
  101. "UXVlcnkSEAoIcXVlcnlfaWQYAiABKA0iJQoQVmVjdG9yM2ZQcm9wZXJ0eRIR" +
  102. "CgV2YWx1ZRgKIAMoAkICEAEiHwoOU3RyaW5nUHJvcGVydHkSDQoFdmFsdWUY" +
  103. "CiABKAkiMQoRU3RyaW5nTWFwUHJvcGVydHkSDAoEa2V5cxgCIAMoCRIOCgZ2" +
  104. "YWx1ZXMYAyADKAkiyQIKElBoeXNpY2FsUGFyYW1ldGVycxJGCgRtb2RlGAIg" +
  105. "ASgOMjguU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5QaHlzaWNh" +
  106. "bFBhcmFtZXRlcnMuTW9kZRIPCgdkZW5zaXR5GAMgASgCEhAKCGZyaWN0aW9u" +
  107. "GAQgASgCEg4KBmJvdW5jZRgFIAEoAhIQCgRodWxsGAYgAygCQgIQARITCgtj" +
  108. "b2xsaWRlX21zZxgQIAEoDRIUCgxjb2xsaWRlX21hc2sYESABKA0SDwoHZ3Jh" +
  109. "dml0eRgSIAEoAiJqCgRNb2RlEg8KC05PTlBIWVNJQ0FMEAASCgoGU1RBVElD" +
  110. "EAESDgoKRFlOQU1JQ0JPWBACEhEKDURZTkFNSUNTUEhFUkUQAxITCg9EWU5B" +
  111. "TUlDQ1lMSU5ERVIQBBINCglDSEFSQUNURVIQBSLaAwoRTGlnaHRJbmZvUHJv" +
  112. "cGVydHkSGQoNZGlmZnVzZV9jb2xvchgDIAMoAkICEAESGgoOc3BlY3VsYXJf" +
  113. "Y29sb3IYBCADKAJCAhABEg0KBXBvd2VyGAUgASgCEhkKDWFtYmllbnRfY29s" +
  114. "b3IYBiADKAJCAhABEhgKDHNoYWRvd19jb2xvchgHIAMoAkICEAESEwoLbGln" +
  115. "aHRfcmFuZ2UYCCABKAESGAoQY29uc3RhbnRfZmFsbG9mZhgJIAEoAhIWCg5s" +
  116. "aW5lYXJfZmFsbG9mZhgKIAEoAhIZChFxdWFkcmF0aWNfZmFsbG9mZhgLIAEo" +
  117. "AhIaChJjb25lX2lubmVyX3JhZGlhbnMYDCABKAISGgoSY29uZV9vdXRlcl9y" +
  118. "YWRpYW5zGA0gASgCEhQKDGNvbmVfZmFsbG9mZhgOIAEoAhJLCgR0eXBlGA8g" +
  119. "ASgOMj0uU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5MaWdodElu" +
  120. "Zm9Qcm9wZXJ0eS5MaWdodFR5cGVzEhQKDGNhc3RzX3NoYWRvdxgQIAEoCCI3" +
  121. "CgpMaWdodFR5cGVzEgkKBVBPSU5UEAASDQoJU1BPVExJR0hUEAESDwoLRElS" +
  122. "RUNUSU9OQUwQAiIfCg5QYXJlbnRQcm9wZXJ0eRINCgV2YWx1ZRgKIAEoDCIh" +
  123. "ChBVVUlETGlzdFByb3BlcnR5Eg0KBXZhbHVlGAogAygMIqQBCg5Db25uZWN0" +
  124. "VG9TcGFjZRIQCghzcGFjZV9pZBgBIAEoDBIcChRvYmplY3RfdXVpZF9ldmlk" +
  125. "ZW5jZRgCIAEoDBJFChRyZXF1ZXN0ZWRfb2JqZWN0X2xvYxgDIAEoCzInLlNp" +
  126. "cmlrYXRhLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuT2JqTG9jEhsKD2JvdW5k" +
  127. "aW5nX3NwaGVyZRgEIAMoAkICEAEivgIKDENyZWF0ZU9iamVjdBITCgtvYmpl" +
  128. "Y3RfdXVpZBgBIAEoDBJJChBzcGFjZV9wcm9wZXJ0aWVzGAIgAygLMi8uU2ly" +
  129. "aWthdGEuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5Db25uZWN0VG9TcGFjZRIM" +
  130. "CgRtZXNoGAMgASgJEhEKBXNjYWxlGAQgAygCQgIQARIOCgZ3ZWJ1cmwYBSAB" +
  131. "KAkSRgoKbGlnaHRfaW5mbxgGIAEoCzIyLlNpcmlrYXRhLlByb3RvY29sLl9Q" +
  132. "QkpfSW50ZXJuYWwuTGlnaHRJbmZvUHJvcGVydHkSDgoGY2FtZXJhGAcgASgI" +
  133. "EkUKCHBoeXNpY2FsGAggASgLMjMuU2lyaWthdGEuUHJvdG9jb2wuX1BCSl9J" +
  134. "bnRlcm5hbC5QaHlzaWNhbFBhcmFtZXRlcnM=");
  135. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  136. descriptor = root;
  137. internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor = Descriptor.MessageTypes[0];
  138. internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable =
  139. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.MessageBody, global::Sirikata.Protocol._PBJ_Internal.MessageBody.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor,
  140. new string[] { "MessageNames", "MessageArguments", });
  141. internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor = Descriptor.MessageTypes[1];
  142. internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__FieldAccessorTable =
  143. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage, global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor,
  144. new string[] { "SourceObject", "SourcePort", "SourceSpace", "DestinationObject", "DestinationPort", "DestinationSpace", "Id", "ReplyId", "ReturnStatus", "MessageNames", "MessageArguments", });
  145. internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor = Descriptor.MessageTypes[2];
  146. internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__FieldAccessorTable =
  147. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.SpaceServices, global::Sirikata.Protocol._PBJ_Internal.SpaceServices.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor,
  148. new string[] { "RegistrationPort", "LocPort", "GeomPort", "OsegPort", "CsegPort", "RouterPort", "PreConnectionBuffer", "MaxPreConnectionMessages", });
  149. internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor = Descriptor.MessageTypes[3];
  150. internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__FieldAccessorTable =
  151. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ObjLoc, global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor,
  152. new string[] { "Timestamp", "Position", "Orientation", "Velocity", "RotationalAxis", "AngularSpeed", "UpdateFlags", });
  153. internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor = Descriptor.MessageTypes[4];
  154. internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__FieldAccessorTable =
  155. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.LocRequest, global::Sirikata.Protocol._PBJ_Internal.LocRequest.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor,
  156. new string[] { "RequestedFields", });
  157. internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor = Descriptor.MessageTypes[5];
  158. internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__FieldAccessorTable =
  159. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.NewObj, global::Sirikata.Protocol._PBJ_Internal.NewObj.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor,
  160. new string[] { "ObjectUuidEvidence", "RequestedObjectLoc", "BoundingSphere", });
  161. internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor = Descriptor.MessageTypes[6];
  162. internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__FieldAccessorTable =
  163. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.RetObj, global::Sirikata.Protocol._PBJ_Internal.RetObj.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor,
  164. new string[] { "ObjectReference", "Location", "BoundingSphere", });
  165. internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor = Descriptor.MessageTypes[7];
  166. internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__FieldAccessorTable =
  167. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.DelObj, global::Sirikata.Protocol._PBJ_Internal.DelObj.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor,
  168. new string[] { "ObjectReference", });
  169. internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor = Descriptor.MessageTypes[8];
  170. internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__FieldAccessorTable =
  171. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.NewProxQuery, global::Sirikata.Protocol._PBJ_Internal.NewProxQuery.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor,
  172. new string[] { "QueryId", "Stateless", "RelativeCenter", "AbsoluteCenter", "MaxRadius", "MinSolidAngle", });
  173. internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor = Descriptor.MessageTypes[9];
  174. internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__FieldAccessorTable =
  175. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ProxCall, global::Sirikata.Protocol._PBJ_Internal.ProxCall.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor,
  176. new string[] { "QueryId", "ProximateObject", "ProximityEvent", });
  177. internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor = Descriptor.MessageTypes[10];
  178. internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__FieldAccessorTable =
  179. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.DelProxQuery, global::Sirikata.Protocol._PBJ_Internal.DelProxQuery.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor,
  180. new string[] { "QueryId", });
  181. internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor = Descriptor.MessageTypes[11];
  182. internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__FieldAccessorTable =
  183. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty, global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor,
  184. new string[] { "Value", });
  185. internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor = Descriptor.MessageTypes[12];
  186. internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__FieldAccessorTable =
  187. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.StringProperty, global::Sirikata.Protocol._PBJ_Internal.StringProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor,
  188. new string[] { "Value", });
  189. internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor = Descriptor.MessageTypes[13];
  190. internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__FieldAccessorTable =
  191. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.StringMapProperty, global::Sirikata.Protocol._PBJ_Internal.StringMapProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor,
  192. new string[] { "Keys", "Values", });
  193. internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor = Descriptor.MessageTypes[14];
  194. internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__FieldAccessorTable =
  195. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters, global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor,
  196. new string[] { "Mode", "Density", "Friction", "Bounce", "Hull", "CollideMsg", "CollideMask", "Gravity", });
  197. internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor = Descriptor.MessageTypes[15];
  198. internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__FieldAccessorTable =
  199. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty, global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor,
  200. new string[] { "DiffuseColor", "SpecularColor", "Power", "AmbientColor", "ShadowColor", "LightRange", "ConstantFalloff", "LinearFalloff", "QuadraticFalloff", "ConeInnerRadians", "ConeOuterRadians", "ConeFalloff", "Type", "CastsShadow", });
  201. internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor = Descriptor.MessageTypes[16];
  202. internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__FieldAccessorTable =
  203. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ParentProperty, global::Sirikata.Protocol._PBJ_Internal.ParentProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor,
  204. new string[] { "Value", });
  205. internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor = Descriptor.MessageTypes[17];
  206. internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__FieldAccessorTable =
  207. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty, global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor,
  208. new string[] { "Value", });
  209. internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor = Descriptor.MessageTypes[18];
  210. internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__FieldAccessorTable =
  211. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace, global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor,
  212. new string[] { "SpaceId", "ObjectUuidEvidence", "RequestedObjectLoc", "BoundingSphere", });
  213. internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor = Descriptor.MessageTypes[19];
  214. internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__FieldAccessorTable =
  215. new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Protocol._PBJ_Internal.CreateObject, global::Sirikata.Protocol._PBJ_Internal.CreateObject.Builder>(internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor,
  216. new string[] { "ObjectUuid", "SpaceProperties", "Mesh", "Scale", "Weburl", "LightInfo", "Camera", "Physical", });
  217. return null;
  218. };
  219. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  220. new pbd::FileDescriptor[] {
  221. }, assigner);
  222. }
  223. #endregion
  224. }
  225. #region Messages
  226. public sealed partial class MessageBody : pb::GeneratedMessage<MessageBody, MessageBody.Builder> {
  227. private static readonly MessageBody defaultInstance = new Builder().BuildPartial();
  228. public static MessageBody DefaultInstance {
  229. get { return defaultInstance; }
  230. }
  231. public override MessageBody DefaultInstanceForType {
  232. get { return defaultInstance; }
  233. }
  234. protected override MessageBody ThisMessage {
  235. get { return this; }
  236. }
  237. public static pbd::MessageDescriptor Descriptor {
  238. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__Descriptor; }
  239. }
  240. protected override pb::FieldAccess.FieldAccessorTable<MessageBody, MessageBody.Builder> InternalFieldAccessors {
  241. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_MessageBody__FieldAccessorTable; }
  242. }
  243. public const int MessageNamesFieldNumber = 9;
  244. private pbc::PopsicleList<string> messageNames_ = new pbc::PopsicleList<string>();
  245. public scg::IList<string> MessageNamesList {
  246. get { return pbc::Lists.AsReadOnly(messageNames_); }
  247. }
  248. public int MessageNamesCount {
  249. get { return messageNames_.Count; }
  250. }
  251. public string GetMessageNames(int index) {
  252. return messageNames_[index];
  253. }
  254. public const int MessageArgumentsFieldNumber = 10;
  255. private pbc::PopsicleList<pb::ByteString> messageArguments_ = new pbc::PopsicleList<pb::ByteString>();
  256. public scg::IList<pb::ByteString> MessageArgumentsList {
  257. get { return pbc::Lists.AsReadOnly(messageArguments_); }
  258. }
  259. public int MessageArgumentsCount {
  260. get { return messageArguments_.Count; }
  261. }
  262. public pb::ByteString GetMessageArguments(int index) {
  263. return messageArguments_[index];
  264. }
  265. public override bool IsInitialized {
  266. get {
  267. return true;
  268. }
  269. }
  270. public override void WriteTo(pb::CodedOutputStream output) {
  271. if (messageNames_.Count > 0) {
  272. foreach (string element in messageNames_) {
  273. output.WriteString(9, element);
  274. }
  275. }
  276. if (messageArguments_.Count > 0) {
  277. foreach (pb::ByteString element in messageArguments_) {
  278. output.WriteBytes(10, element);
  279. }
  280. }
  281. UnknownFields.WriteTo(output);
  282. }
  283. private int memoizedSerializedSize = -1;
  284. public override int SerializedSize {
  285. get {
  286. int size = memoizedSerializedSize;
  287. if (size != -1) return size;
  288. size = 0;
  289. {
  290. int dataSize = 0;
  291. foreach (string element in MessageNamesList) {
  292. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  293. }
  294. size += dataSize;
  295. size += 1 * messageNames_.Count;
  296. }
  297. {
  298. int dataSize = 0;
  299. foreach (pb::ByteString element in MessageArgumentsList) {
  300. dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
  301. }
  302. size += dataSize;
  303. size += 1 * messageArguments_.Count;
  304. }
  305. size += UnknownFields.SerializedSize;
  306. memoizedSerializedSize = size;
  307. return size;
  308. }
  309. }
  310. public static MessageBody ParseFrom(pb::ByteString data) {
  311. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  312. }
  313. public static MessageBody ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  314. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  315. }
  316. public static MessageBody ParseFrom(byte[] data) {
  317. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  318. }
  319. public static MessageBody ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  320. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  321. }
  322. public static MessageBody ParseFrom(global::System.IO.Stream input) {
  323. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  324. }
  325. public static MessageBody ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  326. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  327. }
  328. public static MessageBody ParseDelimitedFrom(global::System.IO.Stream input) {
  329. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  330. }
  331. public static MessageBody ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  332. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  333. }
  334. public static MessageBody ParseFrom(pb::CodedInputStream input) {
  335. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  336. }
  337. public static MessageBody ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  338. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  339. }
  340. public static Builder CreateBuilder() { return new Builder(); }
  341. public override Builder ToBuilder() { return CreateBuilder(this); }
  342. public override Builder CreateBuilderForType() { return new Builder(); }
  343. public static Builder CreateBuilder(MessageBody prototype) {
  344. return (Builder) new Builder().MergeFrom(prototype);
  345. }
  346. public sealed partial class Builder : pb::GeneratedBuilder<MessageBody, Builder> {
  347. protected override Builder ThisBuilder {
  348. get { return this; }
  349. }
  350. public Builder() {}
  351. MessageBody result = new MessageBody();
  352. protected override MessageBody MessageBeingBuilt {
  353. get { return result; }
  354. }
  355. public override Builder Clear() {
  356. result = new MessageBody();
  357. return this;
  358. }
  359. public override Builder Clone() {
  360. return new Builder().MergeFrom(result);
  361. }
  362. public override pbd::MessageDescriptor DescriptorForType {
  363. get { return global::Sirikata.Protocol._PBJ_Internal.MessageBody.Descriptor; }
  364. }
  365. public override MessageBody DefaultInstanceForType {
  366. get { return global::Sirikata.Protocol._PBJ_Internal.MessageBody.DefaultInstance; }
  367. }
  368. public override MessageBody BuildPartial() {
  369. if (result == null) {
  370. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  371. }
  372. result.messageNames_.MakeReadOnly();
  373. result.messageArguments_.MakeReadOnly();
  374. MessageBody returnMe = result;
  375. result = null;
  376. return returnMe;
  377. }
  378. public override Builder MergeFrom(pb::IMessage other) {
  379. if (other is MessageBody) {
  380. return MergeFrom((MessageBody) other);
  381. } else {
  382. base.MergeFrom(other);
  383. return this;
  384. }
  385. }
  386. public override Builder MergeFrom(MessageBody other) {
  387. if (other == global::Sirikata.Protocol._PBJ_Internal.MessageBody.DefaultInstance) return this;
  388. if (other.messageNames_.Count != 0) {
  389. base.AddRange(other.messageNames_, result.messageNames_);
  390. }
  391. if (other.messageArguments_.Count != 0) {
  392. base.AddRange(other.messageArguments_, result.messageArguments_);
  393. }
  394. this.MergeUnknownFields(other.UnknownFields);
  395. return this;
  396. }
  397. public override Builder MergeFrom(pb::CodedInputStream input) {
  398. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  399. }
  400. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  401. pb::UnknownFieldSet.Builder unknownFields = null;
  402. while (true) {
  403. uint tag = input.ReadTag();
  404. switch (tag) {
  405. case 0: {
  406. if (unknownFields != null) {
  407. this.UnknownFields = unknownFields.Build();
  408. }
  409. return this;
  410. }
  411. default: {
  412. if (pb::WireFormat.IsEndGroupTag(tag)) {
  413. if (unknownFields != null) {
  414. this.UnknownFields = unknownFields.Build();
  415. }
  416. return this;
  417. }
  418. if (unknownFields == null) {
  419. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  420. }
  421. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  422. break;
  423. }
  424. case 74: {
  425. AddMessageNames(input.ReadString());
  426. break;
  427. }
  428. case 82: {
  429. AddMessageArguments(input.ReadBytes());
  430. break;
  431. }
  432. }
  433. }
  434. }
  435. public pbc::IPopsicleList<string> MessageNamesList {
  436. get { return result.messageNames_; }
  437. }
  438. public int MessageNamesCount {
  439. get { return result.MessageNamesCount; }
  440. }
  441. public string GetMessageNames(int index) {
  442. return result.GetMessageNames(index);
  443. }
  444. public Builder SetMessageNames(int index, string value) {
  445. pb::ThrowHelper.ThrowIfNull(value, "value");
  446. result.messageNames_[index] = value;
  447. return this;
  448. }
  449. public Builder AddMessageNames(string value) {
  450. pb::ThrowHelper.ThrowIfNull(value, "value");
  451. result.messageNames_.Add(value);
  452. return this;
  453. }
  454. public Builder AddRangeMessageNames(scg::IEnumerable<string> values) {
  455. base.AddRange(values, result.messageNames_);
  456. return this;
  457. }
  458. public Builder ClearMessageNames() {
  459. result.messageNames_.Clear();
  460. return this;
  461. }
  462. public pbc::IPopsicleList<pb::ByteString> MessageArgumentsList {
  463. get { return result.messageArguments_; }
  464. }
  465. public int MessageArgumentsCount {
  466. get { return result.MessageArgumentsCount; }
  467. }
  468. public pb::ByteString GetMessageArguments(int index) {
  469. return result.GetMessageArguments(index);
  470. }
  471. public Builder SetMessageArguments(int index, pb::ByteString value) {
  472. pb::ThrowHelper.ThrowIfNull(value, "value");
  473. result.messageArguments_[index] = value;
  474. return this;
  475. }
  476. public Builder AddMessageArguments(pb::ByteString value) {
  477. pb::ThrowHelper.ThrowIfNull(value, "value");
  478. result.messageArguments_.Add(value);
  479. return this;
  480. }
  481. public Builder AddRangeMessageArguments(scg::IEnumerable<pb::ByteString> values) {
  482. base.AddRange(values, result.messageArguments_);
  483. return this;
  484. }
  485. public Builder ClearMessageArguments() {
  486. result.messageArguments_.Clear();
  487. return this;
  488. }
  489. }
  490. static MessageBody() {
  491. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  492. }
  493. }
  494. public sealed partial class ReadOnlyMessage : pb::GeneratedMessage<ReadOnlyMessage, ReadOnlyMessage.Builder> {
  495. private static readonly ReadOnlyMessage defaultInstance = new Builder().BuildPartial();
  496. public static ReadOnlyMessage DefaultInstance {
  497. get { return defaultInstance; }
  498. }
  499. public override ReadOnlyMessage DefaultInstanceForType {
  500. get { return defaultInstance; }
  501. }
  502. protected override ReadOnlyMessage ThisMessage {
  503. get { return this; }
  504. }
  505. public static pbd::MessageDescriptor Descriptor {
  506. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__Descriptor; }
  507. }
  508. protected override pb::FieldAccess.FieldAccessorTable<ReadOnlyMessage, ReadOnlyMessage.Builder> InternalFieldAccessors {
  509. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ReadOnlyMessage__FieldAccessorTable; }
  510. }
  511. #region Nested types
  512. public static class Types {
  513. public enum ReturnStatus {
  514. SUCCESS = 0,
  515. NETWORK_FAILURE = 1,
  516. TIMEOUT_FAILURE = 3,
  517. PROTOCOL_ERROR = 4,
  518. PORT_FAILURE = 5,
  519. }
  520. }
  521. #endregion
  522. public const int SourceObjectFieldNumber = 1;
  523. private bool hasSourceObject;
  524. private pb::ByteString sourceObject_ = pb::ByteString.Empty;
  525. public bool HasSourceObject {
  526. get { return hasSourceObject; }
  527. }
  528. public pb::ByteString SourceObject {
  529. get { return sourceObject_; }
  530. }
  531. public const int SourcePortFieldNumber = 3;
  532. private bool hasSourcePort;
  533. private uint sourcePort_ = 0;
  534. public bool HasSourcePort {
  535. get { return hasSourcePort; }
  536. }
  537. [global::System.CLSCompliant(false)]
  538. public uint SourcePort {
  539. get { return sourcePort_; }
  540. }
  541. public const int SourceSpaceFieldNumber = 1536;
  542. private bool hasSourceSpace;
  543. private pb::ByteString sourceSpace_ = pb::ByteString.Empty;
  544. public bool HasSourceSpace {
  545. get { return hasSourceSpace; }
  546. }
  547. public pb::ByteString SourceSpace {
  548. get { return sourceSpace_; }
  549. }
  550. public const int DestinationObjectFieldNumber = 2;
  551. private bool hasDestinationObject;
  552. private pb::ByteString destinationObject_ = pb::ByteString.Empty;
  553. public bool HasDestinationObject {
  554. get { return hasDestinationObject; }
  555. }
  556. public pb::ByteString DestinationObject {
  557. get { return destinationObject_; }
  558. }
  559. public const int DestinationPortFieldNumber = 4;
  560. private bool hasDestinationPort;
  561. private uint destinationPort_ = 0;
  562. public bool HasDestinationPort {
  563. get { return hasDestinationPort; }
  564. }
  565. [global::System.CLSCompliant(false)]
  566. public uint DestinationPort {
  567. get { return destinationPort_; }
  568. }
  569. public const int DestinationSpaceFieldNumber = 1537;
  570. private bool hasDestinationSpace;
  571. private pb::ByteString destinationSpace_ = pb::ByteString.Empty;
  572. public bool HasDestinationSpace {
  573. get { return hasDestinationSpace; }
  574. }
  575. public pb::ByteString DestinationSpace {
  576. get { return destinationSpace_; }
  577. }
  578. public const int IdFieldNumber = 7;
  579. private bool hasId;
  580. private long id_ = 0L;
  581. public bool HasId {
  582. get { return hasId; }
  583. }
  584. public long Id {
  585. get { return id_; }
  586. }
  587. public const int ReplyIdFieldNumber = 8;
  588. private bool hasReplyId;
  589. private long replyId_ = 0L;
  590. public bool HasReplyId {
  591. get { return hasReplyId; }
  592. }
  593. public long ReplyId {
  594. get { return replyId_; }
  595. }
  596. public const int ReturnStatusFieldNumber = 1792;
  597. private bool hasReturnStatus;
  598. private global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.SUCCESS;
  599. public bool HasReturnStatus {
  600. get { return hasReturnStatus; }
  601. }
  602. public global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus ReturnStatus {
  603. get { return returnStatus_; }
  604. }
  605. public const int MessageNamesFieldNumber = 9;
  606. private pbc::PopsicleList<string> messageNames_ = new pbc::PopsicleList<string>();
  607. public scg::IList<string> MessageNamesList {
  608. get { return pbc::Lists.AsReadOnly(messageNames_); }
  609. }
  610. public int MessageNamesCount {
  611. get { return messageNames_.Count; }
  612. }
  613. public string GetMessageNames(int index) {
  614. return messageNames_[index];
  615. }
  616. public const int MessageArgumentsFieldNumber = 10;
  617. private pbc::PopsicleList<pb::ByteString> messageArguments_ = new pbc::PopsicleList<pb::ByteString>();
  618. public scg::IList<pb::ByteString> MessageArgumentsList {
  619. get { return pbc::Lists.AsReadOnly(messageArguments_); }
  620. }
  621. public int MessageArgumentsCount {
  622. get { return messageArguments_.Count; }
  623. }
  624. public pb::ByteString GetMessageArguments(int index) {
  625. return messageArguments_[index];
  626. }
  627. public override bool IsInitialized {
  628. get {
  629. return true;
  630. }
  631. }
  632. public override void WriteTo(pb::CodedOutputStream output) {
  633. if (HasSourceObject) {
  634. output.WriteBytes(1, SourceObject);
  635. }
  636. if (HasDestinationObject) {
  637. output.WriteBytes(2, DestinationObject);
  638. }
  639. if (HasSourcePort) {
  640. output.WriteUInt32(3, SourcePort);
  641. }
  642. if (HasDestinationPort) {
  643. output.WriteUInt32(4, DestinationPort);
  644. }
  645. if (HasId) {
  646. output.WriteInt64(7, Id);
  647. }
  648. if (HasReplyId) {
  649. output.WriteInt64(8, ReplyId);
  650. }
  651. if (messageNames_.Count > 0) {
  652. foreach (string element in messageNames_) {
  653. output.WriteString(9, element);
  654. }
  655. }
  656. if (messageArguments_.Count > 0) {
  657. foreach (pb::ByteString element in messageArguments_) {
  658. output.WriteBytes(10, element);
  659. }
  660. }
  661. if (HasSourceSpace) {
  662. output.WriteBytes(1536, SourceSpace);
  663. }
  664. if (HasDestinationSpace) {
  665. output.WriteBytes(1537, DestinationSpace);
  666. }
  667. if (HasReturnStatus) {
  668. output.WriteEnum(1792, (int) ReturnStatus);
  669. }
  670. UnknownFields.WriteTo(output);
  671. }
  672. private int memoizedSerializedSize = -1;
  673. public override int SerializedSize {
  674. get {
  675. int size = memoizedSerializedSize;
  676. if (size != -1) return size;
  677. size = 0;
  678. if (HasSourceObject) {
  679. size += pb::CodedOutputStream.ComputeBytesSize(1, SourceObject);
  680. }
  681. if (HasSourcePort) {
  682. size += pb::CodedOutputStream.ComputeUInt32Size(3, SourcePort);
  683. }
  684. if (HasSourceSpace) {
  685. size += pb::CodedOutputStream.ComputeBytesSize(1536, SourceSpace);
  686. }
  687. if (HasDestinationObject) {
  688. size += pb::CodedOutputStream.ComputeBytesSize(2, DestinationObject);
  689. }
  690. if (HasDestinationPort) {
  691. size += pb::CodedOutputStream.ComputeUInt32Size(4, DestinationPort);
  692. }
  693. if (HasDestinationSpace) {
  694. size += pb::CodedOutputStream.ComputeBytesSize(1537, DestinationSpace);
  695. }
  696. if (HasId) {
  697. size += pb::CodedOutputStream.ComputeInt64Size(7, Id);
  698. }
  699. if (HasReplyId) {
  700. size += pb::CodedOutputStream.ComputeInt64Size(8, ReplyId);
  701. }
  702. if (HasReturnStatus) {
  703. size += pb::CodedOutputStream.ComputeEnumSize(1792, (int) ReturnStatus);
  704. }
  705. {
  706. int dataSize = 0;
  707. foreach (string element in MessageNamesList) {
  708. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  709. }
  710. size += dataSize;
  711. size += 1 * messageNames_.Count;
  712. }
  713. {
  714. int dataSize = 0;
  715. foreach (pb::ByteString element in MessageArgumentsList) {
  716. dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
  717. }
  718. size += dataSize;
  719. size += 1 * messageArguments_.Count;
  720. }
  721. size += UnknownFields.SerializedSize;
  722. memoizedSerializedSize = size;
  723. return size;
  724. }
  725. }
  726. public static ReadOnlyMessage ParseFrom(pb::ByteString data) {
  727. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  728. }
  729. public static ReadOnlyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  730. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  731. }
  732. public static ReadOnlyMessage ParseFrom(byte[] data) {
  733. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  734. }
  735. public static ReadOnlyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  736. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  737. }
  738. public static ReadOnlyMessage ParseFrom(global::System.IO.Stream input) {
  739. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  740. }
  741. public static ReadOnlyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  742. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  743. }
  744. public static ReadOnlyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  745. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  746. }
  747. public static ReadOnlyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  748. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  749. }
  750. public static ReadOnlyMessage ParseFrom(pb::CodedInputStream input) {
  751. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  752. }
  753. public static ReadOnlyMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  754. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  755. }
  756. public static Builder CreateBuilder() { return new Builder(); }
  757. public override Builder ToBuilder() { return CreateBuilder(this); }
  758. public override Builder CreateBuilderForType() { return new Builder(); }
  759. public static Builder CreateBuilder(ReadOnlyMessage prototype) {
  760. return (Builder) new Builder().MergeFrom(prototype);
  761. }
  762. public sealed partial class Builder : pb::GeneratedBuilder<ReadOnlyMessage, Builder> {
  763. protected override Builder ThisBuilder {
  764. get { return this; }
  765. }
  766. public Builder() {}
  767. ReadOnlyMessage result = new ReadOnlyMessage();
  768. protected override ReadOnlyMessage MessageBeingBuilt {
  769. get { return result; }
  770. }
  771. public override Builder Clear() {
  772. result = new ReadOnlyMessage();
  773. return this;
  774. }
  775. public override Builder Clone() {
  776. return new Builder().MergeFrom(result);
  777. }
  778. public override pbd::MessageDescriptor DescriptorForType {
  779. get { return global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Descriptor; }
  780. }
  781. public override ReadOnlyMessage DefaultInstanceForType {
  782. get { return global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.DefaultInstance; }
  783. }
  784. public override ReadOnlyMessage BuildPartial() {
  785. if (result == null) {
  786. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  787. }
  788. result.messageNames_.MakeReadOnly();
  789. result.messageArguments_.MakeReadOnly();
  790. ReadOnlyMessage returnMe = result;
  791. result = null;
  792. return returnMe;
  793. }
  794. public override Builder MergeFrom(pb::IMessage other) {
  795. if (other is ReadOnlyMessage) {
  796. return MergeFrom((ReadOnlyMessage) other);
  797. } else {
  798. base.MergeFrom(other);
  799. return this;
  800. }
  801. }
  802. public override Builder MergeFrom(ReadOnlyMessage other) {
  803. if (other == global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.DefaultInstance) return this;
  804. if (other.HasSourceObject) {
  805. SourceObject = other.SourceObject;
  806. }
  807. if (other.HasSourcePort) {
  808. SourcePort = other.SourcePort;
  809. }
  810. if (other.HasSourceSpace) {
  811. SourceSpace = other.SourceSpace;
  812. }
  813. if (other.HasDestinationObject) {
  814. DestinationObject = other.DestinationObject;
  815. }
  816. if (other.HasDestinationPort) {
  817. DestinationPort = other.DestinationPort;
  818. }
  819. if (other.HasDestinationSpace) {
  820. DestinationSpace = other.DestinationSpace;
  821. }
  822. if (other.HasId) {
  823. Id = other.Id;
  824. }
  825. if (other.HasReplyId) {
  826. ReplyId = other.ReplyId;
  827. }
  828. if (other.HasReturnStatus) {
  829. ReturnStatus = other.ReturnStatus;
  830. }
  831. if (other.messageNames_.Count != 0) {
  832. base.AddRange(other.messageNames_, result.messageNames_);
  833. }
  834. if (other.messageArguments_.Count != 0) {
  835. base.AddRange(other.messageArguments_, result.messageArguments_);
  836. }
  837. this.MergeUnknownFields(other.UnknownFields);
  838. return this;
  839. }
  840. public override Builder MergeFrom(pb::CodedInputStream input) {
  841. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  842. }
  843. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  844. pb::UnknownFieldSet.Builder unknownFields = null;
  845. while (true) {
  846. uint tag = input.ReadTag();
  847. switch (tag) {
  848. case 0: {
  849. if (unknownFields != null) {
  850. this.UnknownFields = unknownFields.Build();
  851. }
  852. return this;
  853. }
  854. default: {
  855. if (pb::WireFormat.IsEndGroupTag(tag)) {
  856. if (unknownFields != null) {
  857. this.UnknownFields = unknownFields.Build();
  858. }
  859. return this;
  860. }
  861. if (unknownFields == null) {
  862. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  863. }
  864. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  865. break;
  866. }
  867. case 10: {
  868. SourceObject = input.ReadBytes();
  869. break;
  870. }
  871. case 18: {
  872. DestinationObject = input.ReadBytes();
  873. break;
  874. }
  875. case 24: {
  876. SourcePort = input.ReadUInt32();
  877. break;
  878. }
  879. case 32: {
  880. DestinationPort = input.ReadUInt32();
  881. break;
  882. }
  883. case 56: {
  884. Id = input.ReadInt64();
  885. break;
  886. }
  887. case 64: {
  888. ReplyId = input.ReadInt64();
  889. break;
  890. }
  891. case 74: {
  892. AddMessageNames(input.ReadString());
  893. break;
  894. }
  895. case 82: {
  896. AddMessageArguments(input.ReadBytes());
  897. break;
  898. }
  899. case 12290: {
  900. SourceSpace = input.ReadBytes();
  901. break;
  902. }
  903. case 12298: {
  904. DestinationSpace = input.ReadBytes();
  905. break;
  906. }
  907. case 14336: {
  908. int rawValue = input.ReadEnum();
  909. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus), rawValue)) {
  910. if (unknownFields == null) {
  911. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  912. }
  913. unknownFields.MergeVarintField(1792, (ulong) rawValue);
  914. } else {
  915. ReturnStatus = (global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus) rawValue;
  916. }
  917. break;
  918. }
  919. }
  920. }
  921. }
  922. public bool HasSourceObject {
  923. get { return result.HasSourceObject; }
  924. }
  925. public pb::ByteString SourceObject {
  926. get { return result.SourceObject; }
  927. set { SetSourceObject(value); }
  928. }
  929. public Builder SetSourceObject(pb::ByteString value) {
  930. pb::ThrowHelper.ThrowIfNull(value, "value");
  931. result.hasSourceObject = true;
  932. result.sourceObject_ = value;
  933. return this;
  934. }
  935. public Builder ClearSourceObject() {
  936. result.hasSourceObject = false;
  937. result.sourceObject_ = pb::ByteString.Empty;
  938. return this;
  939. }
  940. public bool HasSourcePort {
  941. get { return result.HasSourcePort; }
  942. }
  943. [global::System.CLSCompliant(false)]
  944. public uint SourcePort {
  945. get { return result.SourcePort; }
  946. set { SetSourcePort(value); }
  947. }
  948. [global::System.CLSCompliant(false)]
  949. public Builder SetSourcePort(uint value) {
  950. result.hasSourcePort = true;
  951. result.sourcePort_ = value;
  952. return this;
  953. }
  954. public Builder ClearSourcePort() {
  955. result.hasSourcePort = false;
  956. result.sourcePort_ = 0;
  957. return this;
  958. }
  959. public bool HasSourceSpace {
  960. get { return result.HasSourceSpace; }
  961. }
  962. public pb::ByteString SourceSpace {
  963. get { return result.SourceSpace; }
  964. set { SetSourceSpace(value); }
  965. }
  966. public Builder SetSourceSpace(pb::ByteString value) {
  967. pb::ThrowHelper.ThrowIfNull(value, "value");
  968. result.hasSourceSpace = true;
  969. result.sourceSpace_ = value;
  970. return this;
  971. }
  972. public Builder ClearSourceSpace() {
  973. result.hasSourceSpace = false;
  974. result.sourceSpace_ = pb::ByteString.Empty;
  975. return this;
  976. }
  977. public bool HasDestinationObject {
  978. get { return result.HasDestinationObject; }
  979. }
  980. public pb::ByteString DestinationObject {
  981. get { return result.DestinationObject; }
  982. set { SetDestinationObject(value); }
  983. }
  984. public Builder SetDestinationObject(pb::ByteString value) {
  985. pb::ThrowHelper.ThrowIfNull(value, "value");
  986. result.hasDestinationObject = true;
  987. result.destinationObject_ = value;
  988. return this;
  989. }
  990. public Builder ClearDestinationObject() {
  991. result.hasDestinationObject = false;
  992. result.destinationObject_ = pb::ByteString.Empty;
  993. return this;
  994. }
  995. public bool HasDestinationPort {
  996. get { return result.HasDestinationPort; }
  997. }
  998. [global::System.CLSCompliant(false)]
  999. public uint DestinationPort {
  1000. get { return result.DestinationPort; }
  1001. set { SetDestinationPort(value); }
  1002. }
  1003. [global::System.CLSCompliant(false)]
  1004. public Builder SetDestinationPort(uint value) {
  1005. result.hasDestinationPort = true;
  1006. result.destinationPort_ = value;
  1007. return this;
  1008. }
  1009. public Builder ClearDestinationPort() {
  1010. result.hasDestinationPort = false;
  1011. result.destinationPort_ = 0;
  1012. return this;
  1013. }
  1014. public bool HasDestinationSpace {
  1015. get { return result.HasDestinationSpace; }
  1016. }
  1017. public pb::ByteString DestinationSpace {
  1018. get { return result.DestinationSpace; }
  1019. set { SetDestinationSpace(value); }
  1020. }
  1021. public Builder SetDestinationSpace(pb::ByteString value) {
  1022. pb::ThrowHelper.ThrowIfNull(value, "value");
  1023. result.hasDestinationSpace = true;
  1024. result.destinationSpace_ = value;
  1025. return this;
  1026. }
  1027. public Builder ClearDestinationSpace() {
  1028. result.hasDestinationSpace = false;
  1029. result.destinationSpace_ = pb::ByteString.Empty;
  1030. return this;
  1031. }
  1032. public bool HasId {
  1033. get { return result.HasId; }
  1034. }
  1035. public long Id {
  1036. get { return result.Id; }
  1037. set { SetId(value); }
  1038. }
  1039. public Builder SetId(long value) {
  1040. result.hasId = true;
  1041. result.id_ = value;
  1042. return this;
  1043. }
  1044. public Builder ClearId() {
  1045. result.hasId = false;
  1046. result.id_ = 0L;
  1047. return this;
  1048. }
  1049. public bool HasReplyId {
  1050. get { return result.HasReplyId; }
  1051. }
  1052. public long ReplyId {
  1053. get { return result.ReplyId; }
  1054. set { SetReplyId(value); }
  1055. }
  1056. public Builder SetReplyId(long value) {
  1057. result.hasReplyId = true;
  1058. result.replyId_ = value;
  1059. return this;
  1060. }
  1061. public Builder ClearReplyId() {
  1062. result.hasReplyId = false;
  1063. result.replyId_ = 0L;
  1064. return this;
  1065. }
  1066. public bool HasReturnStatus {
  1067. get { return result.HasReturnStatus; }
  1068. }
  1069. public global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus ReturnStatus {
  1070. get { return result.ReturnStatus; }
  1071. set { SetReturnStatus(value); }
  1072. }
  1073. public Builder SetReturnStatus(global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus value) {
  1074. result.hasReturnStatus = true;
  1075. result.returnStatus_ = value;
  1076. return this;
  1077. }
  1078. public Builder ClearReturnStatus() {
  1079. result.hasReturnStatus = false;
  1080. result.returnStatus_ = global::Sirikata.Protocol._PBJ_Internal.ReadOnlyMessage.Types.ReturnStatus.SUCCESS;
  1081. return this;
  1082. }
  1083. public pbc::IPopsicleList<string> MessageNamesList {
  1084. get { return result.messageNames_; }
  1085. }
  1086. public int MessageNamesCount {
  1087. get { return result.MessageNamesCount; }
  1088. }
  1089. public string GetMessageNames(int index) {
  1090. return result.GetMessageNames(index);
  1091. }
  1092. public Builder SetMessageNames(int index, string value) {
  1093. pb::ThrowHelper.ThrowIfNull(value, "value");
  1094. result.messageNames_[index] = value;
  1095. return this;
  1096. }
  1097. public Builder AddMessageNames(string value) {
  1098. pb::ThrowHelper.ThrowIfNull(value, "value");
  1099. result.messageNames_.Add(value);
  1100. return this;
  1101. }
  1102. public Builder AddRangeMessageNames(scg::IEnumerable<string> values) {
  1103. base.AddRange(values, result.messageNames_);
  1104. return this;
  1105. }
  1106. public Builder ClearMessageNames() {
  1107. result.messageNames_.Clear();
  1108. return this;
  1109. }
  1110. public pbc::IPopsicleList<pb::ByteString> MessageArgumentsList {
  1111. get { return result.messageArguments_; }
  1112. }
  1113. public int MessageArgumentsCount {
  1114. get { return result.MessageArgumentsCount; }
  1115. }
  1116. public pb::ByteString GetMessageArguments(int index) {
  1117. return result.GetMessageArguments(index);
  1118. }
  1119. public Builder SetMessageArguments(int index, pb::ByteString value) {
  1120. pb::ThrowHelper.ThrowIfNull(value, "value");
  1121. result.messageArguments_[index] = value;
  1122. return this;
  1123. }
  1124. public Builder AddMessageArguments(pb::ByteString value) {
  1125. pb::ThrowHelper.ThrowIfNull(value, "value");
  1126. result.messageArguments_.Add(value);
  1127. return this;
  1128. }
  1129. public Builder AddRangeMessageArguments(scg::IEnumerable<pb::ByteString> values) {
  1130. base.AddRange(values, result.messageArguments_);
  1131. return this;
  1132. }
  1133. public Builder ClearMessageArguments() {
  1134. result.messageArguments_.Clear();
  1135. return this;
  1136. }
  1137. }
  1138. static ReadOnlyMessage() {
  1139. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  1140. }
  1141. }
  1142. public sealed partial class SpaceServices : pb::GeneratedMessage<SpaceServices, SpaceServices.Builder> {
  1143. private static readonly SpaceServices defaultInstance = new Builder().BuildPartial();
  1144. public static SpaceServices DefaultInstance {
  1145. get { return defaultInstance; }
  1146. }
  1147. public override SpaceServices DefaultInstanceForType {
  1148. get { return defaultInstance; }
  1149. }
  1150. protected override SpaceServices ThisMessage {
  1151. get { return this; }
  1152. }
  1153. public static pbd::MessageDescriptor Descriptor {
  1154. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__Descriptor; }
  1155. }
  1156. protected override pb::FieldAccess.FieldAccessorTable<SpaceServices, SpaceServices.Builder> InternalFieldAccessors {
  1157. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_SpaceServices__FieldAccessorTable; }
  1158. }
  1159. public const int RegistrationPortFieldNumber = 33;
  1160. private bool hasRegistrationPort;
  1161. private uint registrationPort_ = 0;
  1162. public bool HasRegistrationPort {
  1163. get { return hasRegistrationPort; }
  1164. }
  1165. [global::System.CLSCompliant(false)]
  1166. public uint RegistrationPort {
  1167. get { return registrationPort_; }
  1168. }
  1169. public const int LocPortFieldNumber = 34;
  1170. private bool hasLocPort;
  1171. private uint locPort_ = 0;
  1172. public bool HasLocPort {
  1173. get { return hasLocPort; }
  1174. }
  1175. [global::System.CLSCompliant(false)]
  1176. public uint LocPort {
  1177. get { return locPort_; }
  1178. }
  1179. public const int GeomPortFieldNumber = 35;
  1180. private bool hasGeomPort;
  1181. private uint geomPort_ = 0;
  1182. public bool HasGeomPort {
  1183. get { return hasGeomPort; }
  1184. }
  1185. [global::System.CLSCompliant(false)]
  1186. public uint GeomPort {
  1187. get { return geomPort_; }
  1188. }
  1189. public const int OsegPortFieldNumber = 36;
  1190. private bool hasOsegPort;
  1191. private uint osegPort_ = 0;
  1192. public bool HasOsegPort {
  1193. get { return hasOsegPort; }
  1194. }
  1195. [global::System.CLSCompliant(false)]
  1196. public uint OsegPort {
  1197. get { return osegPort_; }
  1198. }
  1199. public const int CsegPortFieldNumber = 37;
  1200. private bool hasCsegPort;
  1201. private uint csegPort_ = 0;
  1202. public bool HasCsegPort {
  1203. get { return hasCsegPort; }
  1204. }
  1205. [global::System.CLSCompliant(false)]
  1206. public uint CsegPort {
  1207. get { return csegPort_; }
  1208. }
  1209. public const int RouterPortFieldNumber = 38;
  1210. private bool hasRouterPort;
  1211. private uint routerPort_ = 0;
  1212. public bool HasRouterPort {
  1213. get { return hasRouterPort; }
  1214. }
  1215. [global::System.CLSCompliant(false)]
  1216. public uint RouterPort {
  1217. get { return routerPort_; }
  1218. }
  1219. public const int PreConnectionBufferFieldNumber = 64;
  1220. private bool hasPreConnectionBuffer;
  1221. private ulong preConnectionBuffer_ = 0UL;
  1222. public bool HasPreConnectionBuffer {
  1223. get { return hasPreConnectionBuffer; }
  1224. }
  1225. [global::System.CLSCompliant(false)]
  1226. public ulong PreConnectionBuffer {
  1227. get { return preConnectionBuffer_; }
  1228. }
  1229. public const int MaxPreConnectionMessagesFieldNumber = 65;
  1230. private bool hasMaxPreConnectionMessages;
  1231. private ulong maxPreConnectionMessages_ = 0UL;
  1232. public bool HasMaxPreConnectionMessages {
  1233. get { return hasMaxPreConnectionMessages; }
  1234. }
  1235. [global::System.CLSCompliant(false)]
  1236. public ulong MaxPreConnectionMessages {
  1237. get { return maxPreConnectionMessages_; }
  1238. }
  1239. public override bool IsInitialized {
  1240. get {
  1241. return true;
  1242. }
  1243. }
  1244. public override void WriteTo(pb::CodedOutputStream output) {
  1245. if (HasRegistrationPort) {
  1246. output.WriteUInt32(33, RegistrationPort);
  1247. }
  1248. if (HasLocPort) {
  1249. output.WriteUInt32(34, LocPort);
  1250. }
  1251. if (HasGeomPort) {
  1252. output.WriteUInt32(35, GeomPort);
  1253. }
  1254. if (HasOsegPort) {
  1255. output.WriteUInt32(36, OsegPort);
  1256. }
  1257. if (HasCsegPort) {
  1258. output.WriteUInt32(37, CsegPort);
  1259. }
  1260. if (HasRouterPort) {
  1261. output.WriteUInt32(38, RouterPort);
  1262. }
  1263. if (HasPreConnectionBuffer) {
  1264. output.WriteUInt64(64, PreConnectionBuffer);
  1265. }
  1266. if (HasMaxPreConnectionMessages) {
  1267. output.WriteUInt64(65, MaxPreConnectionMessages);
  1268. }
  1269. UnknownFields.WriteTo(output);
  1270. }
  1271. private int memoizedSerializedSize = -1;
  1272. public override int SerializedSize {
  1273. get {
  1274. int size = memoizedSerializedSize;
  1275. if (size != -1) return size;
  1276. size = 0;
  1277. if (HasRegistrationPort) {
  1278. size += pb::CodedOutputStream.ComputeUInt32Size(33, RegistrationPort);
  1279. }
  1280. if (HasLocPort) {
  1281. size += pb::CodedOutputStream.ComputeUInt32Size(34, LocPort);
  1282. }
  1283. if (HasGeomPort) {
  1284. size += pb::CodedOutputStream.ComputeUInt32Size(35, GeomPort);
  1285. }
  1286. if (HasOsegPort) {
  1287. size += pb::CodedOutputStream.ComputeUInt32Size(36, OsegPort);
  1288. }
  1289. if (HasCsegPort) {
  1290. size += pb::CodedOutputStream.ComputeUInt32Size(37, CsegPort);
  1291. }
  1292. if (HasRouterPort) {
  1293. size += pb::CodedOutputStream.ComputeUInt32Size(38, RouterPort);
  1294. }
  1295. if (HasPreConnectionBuffer) {
  1296. size += pb::CodedOutputStream.ComputeUInt64Size(64, PreConnectionBuffer);
  1297. }
  1298. if (HasMaxPreConnectionMessages) {
  1299. size += pb::CodedOutputStream.ComputeUInt64Size(65, MaxPreConnectionMessages);
  1300. }
  1301. size += UnknownFields.SerializedSize;
  1302. memoizedSerializedSize = size;
  1303. return size;
  1304. }
  1305. }
  1306. public static SpaceServices ParseFrom(pb::ByteString data) {
  1307. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1308. }
  1309. public static SpaceServices ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1310. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1311. }
  1312. public static SpaceServices ParseFrom(byte[] data) {
  1313. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1314. }
  1315. public static SpaceServices ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1316. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1317. }
  1318. public static SpaceServices ParseFrom(global::System.IO.Stream input) {
  1319. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1320. }
  1321. public static SpaceServices ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1322. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1323. }
  1324. public static SpaceServices ParseDelimitedFrom(global::System.IO.Stream input) {
  1325. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1326. }
  1327. public static SpaceServices ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1328. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1329. }
  1330. public static SpaceServices ParseFrom(pb::CodedInputStream input) {
  1331. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1332. }
  1333. public static SpaceServices ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1334. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1335. }
  1336. public static Builder CreateBuilder() { return new Builder(); }
  1337. public override Builder ToBuilder() { return CreateBuilder(this); }
  1338. public override Builder CreateBuilderForType() { return new Builder(); }
  1339. public static Builder CreateBuilder(SpaceServices prototype) {
  1340. return (Builder) new Builder().MergeFrom(prototype);
  1341. }
  1342. public sealed partial class Builder : pb::GeneratedBuilder<SpaceServices, Builder> {
  1343. protected override Builder ThisBuilder {
  1344. get { return this; }
  1345. }
  1346. public Builder() {}
  1347. SpaceServices result = new SpaceServices();
  1348. protected override SpaceServices MessageBeingBuilt {
  1349. get { return result; }
  1350. }
  1351. public override Builder Clear() {
  1352. result = new SpaceServices();
  1353. return this;
  1354. }
  1355. public override Builder Clone() {
  1356. return new Builder().MergeFrom(result);
  1357. }
  1358. public override pbd::MessageDescriptor DescriptorForType {
  1359. get { return global::Sirikata.Protocol._PBJ_Internal.SpaceServices.Descriptor; }
  1360. }
  1361. public override SpaceServices DefaultInstanceForType {
  1362. get { return global::Sirikata.Protocol._PBJ_Internal.SpaceServices.DefaultInstance; }
  1363. }
  1364. public override SpaceServices BuildPartial() {
  1365. if (result == null) {
  1366. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1367. }
  1368. SpaceServices returnMe = result;
  1369. result = null;
  1370. return returnMe;
  1371. }
  1372. public override Builder MergeFrom(pb::IMessage other) {
  1373. if (other is SpaceServices) {
  1374. return MergeFrom((SpaceServices) other);
  1375. } else {
  1376. base.MergeFrom(other);
  1377. return this;
  1378. }
  1379. }
  1380. public override Builder MergeFrom(SpaceServices other) {
  1381. if (other == global::Sirikata.Protocol._PBJ_Internal.SpaceServices.DefaultInstance) return this;
  1382. if (other.HasRegistrationPort) {
  1383. RegistrationPort = other.RegistrationPort;
  1384. }
  1385. if (other.HasLocPort) {
  1386. LocPort = other.LocPort;
  1387. }
  1388. if (other.HasGeomPort) {
  1389. GeomPort = other.GeomPort;
  1390. }
  1391. if (other.HasOsegPort) {
  1392. OsegPort = other.OsegPort;
  1393. }
  1394. if (other.HasCsegPort) {
  1395. CsegPort = other.CsegPort;
  1396. }
  1397. if (other.HasRouterPort) {
  1398. RouterPort = other.RouterPort;
  1399. }
  1400. if (other.HasPreConnectionBuffer) {
  1401. PreConnectionBuffer = other.PreConnectionBuffer;
  1402. }
  1403. if (other.HasMaxPreConnectionMessages) {
  1404. MaxPreConnectionMessages = other.MaxPreConnectionMessages;
  1405. }
  1406. this.MergeUnknownFields(other.UnknownFields);
  1407. return this;
  1408. }
  1409. public override Builder MergeFrom(pb::CodedInputStream input) {
  1410. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1411. }
  1412. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1413. pb::UnknownFieldSet.Builder unknownFields = null;
  1414. while (true) {
  1415. uint tag = input.ReadTag();
  1416. switch (tag) {
  1417. case 0: {
  1418. if (unknownFields != null) {
  1419. this.UnknownFields = unknownFields.Build();
  1420. }
  1421. return this;
  1422. }
  1423. default: {
  1424. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1425. if (unknownFields != null) {
  1426. this.UnknownFields = unknownFields.Build();
  1427. }
  1428. return this;
  1429. }
  1430. if (unknownFields == null) {
  1431. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1432. }
  1433. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1434. break;
  1435. }
  1436. case 264: {
  1437. RegistrationPort = input.ReadUInt32();
  1438. break;
  1439. }
  1440. case 272: {
  1441. LocPort = input.ReadUInt32();
  1442. break;
  1443. }
  1444. case 280: {
  1445. GeomPort = input.ReadUInt32();
  1446. break;
  1447. }
  1448. case 288: {
  1449. OsegPort = input.ReadUInt32();
  1450. break;
  1451. }
  1452. case 296: {
  1453. CsegPort = input.ReadUInt32();
  1454. break;
  1455. }
  1456. case 304: {
  1457. RouterPort = input.ReadUInt32();
  1458. break;
  1459. }
  1460. case 512: {
  1461. PreConnectionBuffer = input.ReadUInt64();
  1462. break;
  1463. }
  1464. case 520: {
  1465. MaxPreConnectionMessages = input.ReadUInt64();
  1466. break;
  1467. }
  1468. }
  1469. }
  1470. }
  1471. public bool HasRegistrationPort {
  1472. get { return result.HasRegistrationPort; }
  1473. }
  1474. [global::System.CLSCompliant(false)]
  1475. public uint RegistrationPort {
  1476. get { return result.RegistrationPort; }
  1477. set { SetRegistrationPort(value); }
  1478. }
  1479. [global::System.CLSCompliant(false)]
  1480. public Builder SetRegistrationPort(uint value) {
  1481. result.hasRegistrationPort = true;
  1482. result.registrationPort_ = value;
  1483. return this;
  1484. }
  1485. public Builder ClearRegistrationPort() {
  1486. result.hasRegistrationPort = false;
  1487. result.registrationPort_ = 0;
  1488. return this;
  1489. }
  1490. public bool HasLocPort {
  1491. get { return result.HasLocPort; }
  1492. }
  1493. [global::System.CLSCompliant(false)]
  1494. public uint LocPort {
  1495. get { return result.LocPort; }
  1496. set { SetLocPort(value); }
  1497. }
  1498. [global::System.CLSCompliant(false)]
  1499. public Builder SetLocPort(uint value) {
  1500. result.hasLocPort = true;
  1501. result.locPort_ = value;
  1502. return this;
  1503. }
  1504. public Builder ClearLocPort() {
  1505. result.hasLocPort = false;
  1506. result.locPort_ = 0;
  1507. return this;
  1508. }
  1509. public bool HasGeomPort {
  1510. get { return result.HasGeomPort; }
  1511. }
  1512. [global::System.CLSCompliant(false)]
  1513. public uint GeomPort {
  1514. get { return result.GeomPort; }
  1515. set { SetGeomPort(value); }
  1516. }
  1517. [global::System.CLSCompliant(false)]
  1518. public Builder SetGeomPort(uint value) {
  1519. result.hasGeomPort = true;
  1520. result.geomPort_ = value;
  1521. return this;
  1522. }
  1523. public Builder ClearGeomPort() {
  1524. result.hasGeomPort = false;
  1525. result.geomPort_ = 0;
  1526. return this;
  1527. }
  1528. public bool HasOsegPort {
  1529. get { return result.HasOsegPort; }
  1530. }
  1531. [global::System.CLSCompliant(false)]
  1532. public uint OsegPort {
  1533. get { return result.OsegPort; }
  1534. set { SetOsegPort(value); }
  1535. }
  1536. [global::System.CLSCompliant(false)]
  1537. public Builder SetOsegPort(uint value) {
  1538. result.hasOsegPort = true;
  1539. result.osegPort_ = value;
  1540. return this;
  1541. }
  1542. public Builder ClearOsegPort() {
  1543. result.hasOsegPort = false;
  1544. result.osegPort_ = 0;
  1545. return this;
  1546. }
  1547. public bool HasCsegPort {
  1548. get { return result.HasCsegPort; }
  1549. }
  1550. [global::System.CLSCompliant(false)]
  1551. public uint CsegPort {
  1552. get { return result.CsegPort; }
  1553. set { SetCsegPort(value); }
  1554. }
  1555. [global::System.CLSCompliant(false)]
  1556. public Builder SetCsegPort(uint value) {
  1557. result.hasCsegPort = true;
  1558. result.csegPort_ = value;
  1559. return this;
  1560. }
  1561. public Builder ClearCsegPort() {
  1562. result.hasCsegPort = false;
  1563. result.csegPort_ = 0;
  1564. return this;
  1565. }
  1566. public bool HasRouterPort {
  1567. get { return result.HasRouterPort; }
  1568. }
  1569. [global::System.CLSCompliant(false)]
  1570. public uint RouterPort {
  1571. get { return result.RouterPort; }
  1572. set { SetRouterPort(value); }
  1573. }
  1574. [global::System.CLSCompliant(false)]
  1575. public Builder SetRouterPort(uint value) {
  1576. result.hasRouterPort = true;
  1577. result.routerPort_ = value;
  1578. return this;
  1579. }
  1580. public Builder ClearRouterPort() {
  1581. result.hasRouterPort = false;
  1582. result.routerPort_ = 0;
  1583. return this;
  1584. }
  1585. public bool HasPreConnectionBuffer {
  1586. get { return result.HasPreConnectionBuffer; }
  1587. }
  1588. [global::System.CLSCompliant(false)]
  1589. public ulong PreConnectionBuffer {
  1590. get { return result.PreConnectionBuffer; }
  1591. set { SetPreConnectionBuffer(value); }
  1592. }
  1593. [global::System.CLSCompliant(false)]
  1594. public Builder SetPreConnectionBuffer(ulong value) {
  1595. result.hasPreConnectionBuffer = true;
  1596. result.preConnectionBuffer_ = value;
  1597. return this;
  1598. }
  1599. public Builder ClearPreConnectionBuffer() {
  1600. result.hasPreConnectionBuffer = false;
  1601. result.preConnectionBuffer_ = 0UL;
  1602. return this;
  1603. }
  1604. public bool HasMaxPreConnectionMessages {
  1605. get { return result.HasMaxPreConnectionMessages; }
  1606. }
  1607. [global::System.CLSCompliant(false)]
  1608. public ulong MaxPreConnectionMessages {
  1609. get { return result.MaxPreConnectionMessages; }
  1610. set { SetMaxPreConnectionMessages(value); }
  1611. }
  1612. [global::System.CLSCompliant(false)]
  1613. public Builder SetMaxPreConnectionMessages(ulong value) {
  1614. result.hasMaxPreConnectionMessages = true;
  1615. result.maxPreConnectionMessages_ = value;
  1616. return this;
  1617. }
  1618. public Builder ClearMaxPreConnectionMessages() {
  1619. result.hasMaxPreConnectionMessages = false;
  1620. result.maxPreConnectionMessages_ = 0UL;
  1621. return this;
  1622. }
  1623. }
  1624. static SpaceServices() {
  1625. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  1626. }
  1627. }
  1628. public sealed partial class ObjLoc : pb::GeneratedMessage<ObjLoc, ObjLoc.Builder> {
  1629. private static readonly ObjLoc defaultInstance = new Builder().BuildPartial();
  1630. public static ObjLoc DefaultInstance {
  1631. get { return defaultInstance; }
  1632. }
  1633. public override ObjLoc DefaultInstanceForType {
  1634. get { return defaultInstance; }
  1635. }
  1636. protected override ObjLoc ThisMessage {
  1637. get { return this; }
  1638. }
  1639. public static pbd::MessageDescriptor Descriptor {
  1640. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__Descriptor; }
  1641. }
  1642. protected override pb::FieldAccess.FieldAccessorTable<ObjLoc, ObjLoc.Builder> InternalFieldAccessors {
  1643. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ObjLoc__FieldAccessorTable; }
  1644. }
  1645. #region Nested types
  1646. public static class Types {
  1647. public enum UpdateFlags {
  1648. FORCE = 1,
  1649. }
  1650. }
  1651. #endregion
  1652. public const int TimestampFieldNumber = 2;
  1653. private bool hasTimestamp;
  1654. private ulong timestamp_ = 0;
  1655. public bool HasTimestamp {
  1656. get { return hasTimestamp; }
  1657. }
  1658. [global::System.CLSCompliant(false)]
  1659. public ulong Timestamp {
  1660. get { return timestamp_; }
  1661. }
  1662. public const int PositionFieldNumber = 3;
  1663. private int positionMemoizedSerializedSize;
  1664. private pbc::PopsicleList<double> position_ = new pbc::PopsicleList<double>();
  1665. public scg::IList<double> PositionList {
  1666. get { return pbc::Lists.AsReadOnly(position_); }
  1667. }
  1668. public int PositionCount {
  1669. get { return position_.Count; }
  1670. }
  1671. public double GetPosition(int index) {
  1672. return position_[index];
  1673. }
  1674. public const int OrientationFieldNumber = 4;
  1675. private int orientationMemoizedSerializedSize;
  1676. private pbc::PopsicleList<float> orientation_ = new pbc::PopsicleList<float>();
  1677. public scg::IList<float> OrientationList {
  1678. get { return pbc::Lists.AsReadOnly(orientation_); }
  1679. }
  1680. public int OrientationCount {
  1681. get { return orientation_.Count; }
  1682. }
  1683. public float GetOrientation(int index) {
  1684. return orientation_[index];
  1685. }
  1686. public const int VelocityFieldNumber = 5;
  1687. private int velocityMemoizedSerializedSize;
  1688. private pbc::PopsicleList<float> velocity_ = new pbc::PopsicleList<float>();
  1689. public scg::IList<float> VelocityList {
  1690. get { return pbc::Lists.AsReadOnly(velocity_); }
  1691. }
  1692. public int VelocityCount {
  1693. get { return velocity_.Count; }
  1694. }
  1695. public float GetVelocity(int index) {
  1696. return velocity_[index];
  1697. }
  1698. public const int RotationalAxisFieldNumber = 7;
  1699. private int rotationalAxisMemoizedSerializedSize;
  1700. private pbc::PopsicleList<float> rotationalAxis_ = new pbc::PopsicleList<float>();
  1701. public scg::IList<float> RotationalAxisList {
  1702. get { return pbc::Lists.AsReadOnly(rotationalAxis_); }
  1703. }
  1704. public int RotationalAxisCount {
  1705. get { return rotationalAxis_.Count; }
  1706. }
  1707. public float GetRotationalAxis(int index) {
  1708. return rotationalAxis_[index];
  1709. }
  1710. public const int AngularSpeedFieldNumber = 8;
  1711. private bool hasAngularSpeed;
  1712. private float angularSpeed_ = 0F;
  1713. public bool HasAngularSpeed {
  1714. get { return hasAngularSpeed; }
  1715. }
  1716. public float AngularSpeed {
  1717. get { return angularSpeed_; }
  1718. }
  1719. public const int UpdateFlagsFieldNumber = 6;
  1720. private bool hasUpdateFlags;
  1721. private uint updateFlags_ = 0;
  1722. public bool HasUpdateFlags {
  1723. get { return hasUpdateFlags; }
  1724. }
  1725. [global::System.CLSCompliant(false)]
  1726. public uint UpdateFlags {
  1727. get { return updateFlags_; }
  1728. }
  1729. public override bool IsInitialized {
  1730. get {
  1731. return true;
  1732. }
  1733. }
  1734. public override void WriteTo(pb::CodedOutputStream output) {
  1735. if (HasTimestamp) {
  1736. output.WriteFixed64(2, Timestamp);
  1737. }
  1738. if (position_.Count > 0) {
  1739. output.WriteRawVarint32(26);
  1740. output.WriteRawVarint32((uint) positionMemoizedSerializedSize);
  1741. foreach (double element in position_) {
  1742. output.WriteDoubleNoTag(element);
  1743. }
  1744. }
  1745. if (orientation_.Count > 0) {
  1746. output.WriteRawVarint32(34);
  1747. output.WriteRawVarint32((uint) orientationMemoizedSerializedSize);
  1748. foreach (float element in orientation_) {
  1749. output.WriteFloatNoTag(element);
  1750. }
  1751. }
  1752. if (velocity_.Count > 0) {
  1753. output.WriteRawVarint32(42);
  1754. output.WriteRawVarint32((uint) velocityMemoizedSerializedSize);
  1755. foreach (float element in velocity_) {
  1756. output.WriteFloatNoTag(element);
  1757. }
  1758. }
  1759. if (HasUpdateFlags) {
  1760. output.WriteUInt32(6, UpdateFlags);
  1761. }
  1762. if (rotationalAxis_.Count > 0) {
  1763. output.WriteRawVarint32(58);
  1764. output.WriteRawVarint32((uint) rotationalAxisMemoizedSerializedSize);
  1765. foreach (float element in rotationalAxis_) {
  1766. output.WriteFloatNoTag(element);
  1767. }
  1768. }
  1769. if (HasAngularSpeed) {
  1770. output.WriteFloat(8, AngularSpeed);
  1771. }
  1772. UnknownFields.WriteTo(output);
  1773. }
  1774. private int memoizedSerializedSize = -1;
  1775. public override int SerializedSize {
  1776. get {
  1777. int size = memoizedSerializedSize;
  1778. if (size != -1) return size;
  1779. size = 0;
  1780. if (HasTimestamp) {
  1781. size += pb::CodedOutputStream.ComputeFixed64Size(2, Timestamp);
  1782. }
  1783. {
  1784. int dataSize = 0;
  1785. dataSize = 8 * position_.Count;
  1786. size += dataSize;
  1787. if (position_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  1788. positionMemoizedSerializedSize = dataSize;
  1789. }
  1790. {
  1791. int dataSize = 0;
  1792. dataSize = 4 * orientation_.Count;
  1793. size += dataSize;
  1794. if (orientation_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  1795. orientationMemoizedSerializedSize = dataSize;
  1796. }
  1797. {
  1798. int dataSize = 0;
  1799. dataSize = 4 * velocity_.Count;
  1800. size += dataSize;
  1801. if (velocity_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  1802. velocityMemoizedSerializedSize = dataSize;
  1803. }
  1804. {
  1805. int dataSize = 0;
  1806. dataSize = 4 * rotationalAxis_.Count;
  1807. size += dataSize;
  1808. if (rotationalAxis_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  1809. rotationalAxisMemoizedSerializedSize = dataSize;
  1810. }
  1811. if (HasAngularSpeed) {
  1812. size += pb::CodedOutputStream.ComputeFloatSize(8, AngularSpeed);
  1813. }
  1814. if (HasUpdateFlags) {
  1815. size += pb::CodedOutputStream.ComputeUInt32Size(6, UpdateFlags);
  1816. }
  1817. size += UnknownFields.SerializedSize;
  1818. memoizedSerializedSize = size;
  1819. return size;
  1820. }
  1821. }
  1822. public static ObjLoc ParseFrom(pb::ByteString data) {
  1823. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1824. }
  1825. public static ObjLoc ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1826. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1827. }
  1828. public static ObjLoc ParseFrom(byte[] data) {
  1829. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1830. }
  1831. public static ObjLoc ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1832. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1833. }
  1834. public static ObjLoc ParseFrom(global::System.IO.Stream input) {
  1835. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1836. }
  1837. public static ObjLoc ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1838. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1839. }
  1840. public static ObjLoc ParseDelimitedFrom(global::System.IO.Stream input) {
  1841. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1842. }
  1843. public static ObjLoc ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1844. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1845. }
  1846. public static ObjLoc ParseFrom(pb::CodedInputStream input) {
  1847. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1848. }
  1849. public static ObjLoc ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1850. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1851. }
  1852. public static Builder CreateBuilder() { return new Builder(); }
  1853. public override Builder ToBuilder() { return CreateBuilder(this); }
  1854. public override Builder CreateBuilderForType() { return new Builder(); }
  1855. public static Builder CreateBuilder(ObjLoc prototype) {
  1856. return (Builder) new Builder().MergeFrom(prototype);
  1857. }
  1858. public sealed partial class Builder : pb::GeneratedBuilder<ObjLoc, Builder> {
  1859. protected override Builder ThisBuilder {
  1860. get { return this; }
  1861. }
  1862. public Builder() {}
  1863. ObjLoc result = new ObjLoc();
  1864. protected override ObjLoc MessageBeingBuilt {
  1865. get { return result; }
  1866. }
  1867. public override Builder Clear() {
  1868. result = new ObjLoc();
  1869. return this;
  1870. }
  1871. public override Builder Clone() {
  1872. return new Builder().MergeFrom(result);
  1873. }
  1874. public override pbd::MessageDescriptor DescriptorForType {
  1875. get { return global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Descriptor; }
  1876. }
  1877. public override ObjLoc DefaultInstanceForType {
  1878. get { return global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance; }
  1879. }
  1880. public override ObjLoc BuildPartial() {
  1881. if (result == null) {
  1882. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1883. }
  1884. result.position_.MakeReadOnly();
  1885. result.orientation_.MakeReadOnly();
  1886. result.velocity_.MakeReadOnly();
  1887. result.rotationalAxis_.MakeReadOnly();
  1888. ObjLoc returnMe = result;
  1889. result = null;
  1890. return returnMe;
  1891. }
  1892. public override Builder MergeFrom(pb::IMessage other) {
  1893. if (other is ObjLoc) {
  1894. return MergeFrom((ObjLoc) other);
  1895. } else {
  1896. base.MergeFrom(other);
  1897. return this;
  1898. }
  1899. }
  1900. public override Builder MergeFrom(ObjLoc other) {
  1901. if (other == global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance) return this;
  1902. if (other.HasTimestamp) {
  1903. Timestamp = other.Timestamp;
  1904. }
  1905. if (other.position_.Count != 0) {
  1906. base.AddRange(other.position_, result.position_);
  1907. }
  1908. if (other.orientation_.Count != 0) {
  1909. base.AddRange(other.orientation_, result.orientation_);
  1910. }
  1911. if (other.velocity_.Count != 0) {
  1912. base.AddRange(other.velocity_, result.velocity_);
  1913. }
  1914. if (other.rotationalAxis_.Count != 0) {
  1915. base.AddRange(other.rotationalAxis_, result.rotationalAxis_);
  1916. }
  1917. if (other.HasAngularSpeed) {
  1918. AngularSpeed = other.AngularSpeed;
  1919. }
  1920. if (other.HasUpdateFlags) {
  1921. UpdateFlags = other.UpdateFlags;
  1922. }
  1923. this.MergeUnknownFields(other.UnknownFields);
  1924. return this;
  1925. }
  1926. public override Builder MergeFrom(pb::CodedInputStream input) {
  1927. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1928. }
  1929. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1930. pb::UnknownFieldSet.Builder unknownFields = null;
  1931. while (true) {
  1932. uint tag = input.ReadTag();
  1933. switch (tag) {
  1934. case 0: {
  1935. if (unknownFields != null) {
  1936. this.UnknownFields = unknownFields.Build();
  1937. }
  1938. return this;
  1939. }
  1940. default: {
  1941. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1942. if (unknownFields != null) {
  1943. this.UnknownFields = unknownFields.Build();
  1944. }
  1945. return this;
  1946. }
  1947. if (unknownFields == null) {
  1948. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1949. }
  1950. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  1951. break;
  1952. }
  1953. case 17: {
  1954. Timestamp = input.ReadFixed64();
  1955. break;
  1956. }
  1957. case 26: {
  1958. int length = input.ReadInt32();
  1959. int limit = input.PushLimit(length);
  1960. while (!input.ReachedLimit) {
  1961. AddPosition(input.ReadDouble());
  1962. }
  1963. input.PopLimit(limit);
  1964. break;
  1965. }
  1966. case 34: {
  1967. int length = input.ReadInt32();
  1968. int limit = input.PushLimit(length);
  1969. while (!input.ReachedLimit) {
  1970. AddOrientation(input.ReadFloat());
  1971. }
  1972. input.PopLimit(limit);
  1973. break;
  1974. }
  1975. case 42: {
  1976. int length = input.ReadInt32();
  1977. int limit = input.PushLimit(length);
  1978. while (!input.ReachedLimit) {
  1979. AddVelocity(input.ReadFloat());
  1980. }
  1981. input.PopLimit(limit);
  1982. break;
  1983. }
  1984. case 48: {
  1985. UpdateFlags = input.ReadUInt32();
  1986. break;
  1987. }
  1988. case 58: {
  1989. int length = input.ReadInt32();
  1990. int limit = input.PushLimit(length);
  1991. while (!input.ReachedLimit) {
  1992. AddRotationalAxis(input.ReadFloat());
  1993. }
  1994. input.PopLimit(limit);
  1995. break;
  1996. }
  1997. case 69: {
  1998. AngularSpeed = input.ReadFloat();
  1999. break;
  2000. }
  2001. }
  2002. }
  2003. }
  2004. public bool HasTimestamp {
  2005. get { return result.HasTimestamp; }
  2006. }
  2007. [global::System.CLSCompliant(false)]
  2008. public ulong Timestamp {
  2009. get { return result.Timestamp; }
  2010. set { SetTimestamp(value); }
  2011. }
  2012. [global::System.CLSCompliant(false)]
  2013. public Builder SetTimestamp(ulong value) {
  2014. result.hasTimestamp = true;
  2015. result.timestamp_ = value;
  2016. return this;
  2017. }
  2018. public Builder ClearTimestamp() {
  2019. result.hasTimestamp = false;
  2020. result.timestamp_ = 0;
  2021. return this;
  2022. }
  2023. public pbc::IPopsicleList<double> PositionList {
  2024. get { return result.position_; }
  2025. }
  2026. public int PositionCount {
  2027. get { return result.PositionCount; }
  2028. }
  2029. public double GetPosition(int index) {
  2030. return result.GetPosition(index);
  2031. }
  2032. public Builder SetPosition(int index, double value) {
  2033. result.position_[index] = value;
  2034. return this;
  2035. }
  2036. public Builder AddPosition(double value) {
  2037. result.position_.Add(value);
  2038. return this;
  2039. }
  2040. public Builder AddRangePosition(scg::IEnumerable<double> values) {
  2041. base.AddRange(values, result.position_);
  2042. return this;
  2043. }
  2044. public Builder ClearPosition() {
  2045. result.position_.Clear();
  2046. return this;
  2047. }
  2048. public pbc::IPopsicleList<float> OrientationList {
  2049. get { return result.orientation_; }
  2050. }
  2051. public int OrientationCount {
  2052. get { return result.OrientationCount; }
  2053. }
  2054. public float GetOrientation(int index) {
  2055. return result.GetOrientation(index);
  2056. }
  2057. public Builder SetOrientation(int index, float value) {
  2058. result.orientation_[index] = value;
  2059. return this;
  2060. }
  2061. public Builder AddOrientation(float value) {
  2062. result.orientation_.Add(value);
  2063. return this;
  2064. }
  2065. public Builder AddRangeOrientation(scg::IEnumerable<float> values) {
  2066. base.AddRange(values, result.orientation_);
  2067. return this;
  2068. }
  2069. public Builder ClearOrientation() {
  2070. result.orientation_.Clear();
  2071. return this;
  2072. }
  2073. public pbc::IPopsicleList<float> VelocityList {
  2074. get { return result.velocity_; }
  2075. }
  2076. public int VelocityCount {
  2077. get { return result.VelocityCount; }
  2078. }
  2079. public float GetVelocity(int index) {
  2080. return result.GetVelocity(index);
  2081. }
  2082. public Builder SetVelocity(int index, float value) {
  2083. result.velocity_[index] = value;
  2084. return this;
  2085. }
  2086. public Builder AddVelocity(float value) {
  2087. result.velocity_.Add(value);
  2088. return this;
  2089. }
  2090. public Builder AddRangeVelocity(scg::IEnumerable<float> values) {
  2091. base.AddRange(values, result.velocity_);
  2092. return this;
  2093. }
  2094. public Builder ClearVelocity() {
  2095. result.velocity_.Clear();
  2096. return this;
  2097. }
  2098. public pbc::IPopsicleList<float> RotationalAxisList {
  2099. get { return result.rotationalAxis_; }
  2100. }
  2101. public int RotationalAxisCount {
  2102. get { return result.RotationalAxisCount; }
  2103. }
  2104. public float GetRotationalAxis(int index) {
  2105. return result.GetRotationalAxis(index);
  2106. }
  2107. public Builder SetRotationalAxis(int index, float value) {
  2108. result.rotationalAxis_[index] = value;
  2109. return this;
  2110. }
  2111. public Builder AddRotationalAxis(float value) {
  2112. result.rotationalAxis_.Add(value);
  2113. return this;
  2114. }
  2115. public Builder AddRangeRotationalAxis(scg::IEnumerable<float> values) {
  2116. base.AddRange(values, result.rotationalAxis_);
  2117. return this;
  2118. }
  2119. public Builder ClearRotationalAxis() {
  2120. result.rotationalAxis_.Clear();
  2121. return this;
  2122. }
  2123. public bool HasAngularSpeed {
  2124. get { return result.HasAngularSpeed; }
  2125. }
  2126. public float AngularSpeed {
  2127. get { return result.AngularSpeed; }
  2128. set { SetAngularSpeed(value); }
  2129. }
  2130. public Builder SetAngularSpeed(float value) {
  2131. result.hasAngularSpeed = true;
  2132. result.angularSpeed_ = value;
  2133. return this;
  2134. }
  2135. public Builder ClearAngularSpeed() {
  2136. result.hasAngularSpeed = false;
  2137. result.angularSpeed_ = 0F;
  2138. return this;
  2139. }
  2140. public bool HasUpdateFlags {
  2141. get { return result.HasUpdateFlags; }
  2142. }
  2143. [global::System.CLSCompliant(false)]
  2144. public uint UpdateFlags {
  2145. get { return result.UpdateFlags; }
  2146. set { SetUpdateFlags(value); }
  2147. }
  2148. [global::System.CLSCompliant(false)]
  2149. public Builder SetUpdateFlags(uint value) {
  2150. result.hasUpdateFlags = true;
  2151. result.updateFlags_ = value;
  2152. return this;
  2153. }
  2154. public Builder ClearUpdateFlags() {
  2155. result.hasUpdateFlags = false;
  2156. result.updateFlags_ = 0;
  2157. return this;
  2158. }
  2159. }
  2160. static ObjLoc() {
  2161. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  2162. }
  2163. }
  2164. public sealed partial class LocRequest : pb::GeneratedMessage<LocRequest, LocRequest.Builder> {
  2165. private static readonly LocRequest defaultInstance = new Builder().BuildPartial();
  2166. public static LocRequest DefaultInstance {
  2167. get { return defaultInstance; }
  2168. }
  2169. public override LocRequest DefaultInstanceForType {
  2170. get { return defaultInstance; }
  2171. }
  2172. protected override LocRequest ThisMessage {
  2173. get { return this; }
  2174. }
  2175. public static pbd::MessageDescriptor Descriptor {
  2176. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__Descriptor; }
  2177. }
  2178. protected override pb::FieldAccess.FieldAccessorTable<LocRequest, LocRequest.Builder> InternalFieldAccessors {
  2179. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_LocRequest__FieldAccessorTable; }
  2180. }
  2181. #region Nested types
  2182. public static class Types {
  2183. public enum Fields {
  2184. POSITION = 1,
  2185. ORIENTATION = 2,
  2186. VELOCITY = 4,
  2187. ROTATIONAL_AXIS = 8,
  2188. ANGULAR_SPEED = 16,
  2189. }
  2190. }
  2191. #endregion
  2192. public const int RequestedFieldsFieldNumber = 2;
  2193. private bool hasRequestedFields;
  2194. private uint requestedFields_ = 0;
  2195. public bool HasRequestedFields {
  2196. get { return hasRequestedFields; }
  2197. }
  2198. [global::System.CLSCompliant(false)]
  2199. public uint RequestedFields {
  2200. get { return requestedFields_; }
  2201. }
  2202. public override bool IsInitialized {
  2203. get {
  2204. return true;
  2205. }
  2206. }
  2207. public override void WriteTo(pb::CodedOutputStream output) {
  2208. if (HasRequestedFields) {
  2209. output.WriteUInt32(2, RequestedFields);
  2210. }
  2211. UnknownFields.WriteTo(output);
  2212. }
  2213. private int memoizedSerializedSize = -1;
  2214. public override int SerializedSize {
  2215. get {
  2216. int size = memoizedSerializedSize;
  2217. if (size != -1) return size;
  2218. size = 0;
  2219. if (HasRequestedFields) {
  2220. size += pb::CodedOutputStream.ComputeUInt32Size(2, RequestedFields);
  2221. }
  2222. size += UnknownFields.SerializedSize;
  2223. memoizedSerializedSize = size;
  2224. return size;
  2225. }
  2226. }
  2227. public static LocRequest ParseFrom(pb::ByteString data) {
  2228. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2229. }
  2230. public static LocRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2231. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2232. }
  2233. public static LocRequest ParseFrom(byte[] data) {
  2234. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2235. }
  2236. public static LocRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2237. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2238. }
  2239. public static LocRequest ParseFrom(global::System.IO.Stream input) {
  2240. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2241. }
  2242. public static LocRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2243. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2244. }
  2245. public static LocRequest ParseDelimitedFrom(global::System.IO.Stream input) {
  2246. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2247. }
  2248. public static LocRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2249. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2250. }
  2251. public static LocRequest ParseFrom(pb::CodedInputStream input) {
  2252. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2253. }
  2254. public static LocRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2255. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2256. }
  2257. public static Builder CreateBuilder() { return new Builder(); }
  2258. public override Builder ToBuilder() { return CreateBuilder(this); }
  2259. public override Builder CreateBuilderForType() { return new Builder(); }
  2260. public static Builder CreateBuilder(LocRequest prototype) {
  2261. return (Builder) new Builder().MergeFrom(prototype);
  2262. }
  2263. public sealed partial class Builder : pb::GeneratedBuilder<LocRequest, Builder> {
  2264. protected override Builder ThisBuilder {
  2265. get { return this; }
  2266. }
  2267. public Builder() {}
  2268. LocRequest result = new LocRequest();
  2269. protected override LocRequest MessageBeingBuilt {
  2270. get { return result; }
  2271. }
  2272. public override Builder Clear() {
  2273. result = new LocRequest();
  2274. return this;
  2275. }
  2276. public override Builder Clone() {
  2277. return new Builder().MergeFrom(result);
  2278. }
  2279. public override pbd::MessageDescriptor DescriptorForType {
  2280. get { return global::Sirikata.Protocol._PBJ_Internal.LocRequest.Descriptor; }
  2281. }
  2282. public override LocRequest DefaultInstanceForType {
  2283. get { return global::Sirikata.Protocol._PBJ_Internal.LocRequest.DefaultInstance; }
  2284. }
  2285. public override LocRequest BuildPartial() {
  2286. if (result == null) {
  2287. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2288. }
  2289. LocRequest returnMe = result;
  2290. result = null;
  2291. return returnMe;
  2292. }
  2293. public override Builder MergeFrom(pb::IMessage other) {
  2294. if (other is LocRequest) {
  2295. return MergeFrom((LocRequest) other);
  2296. } else {
  2297. base.MergeFrom(other);
  2298. return this;
  2299. }
  2300. }
  2301. public override Builder MergeFrom(LocRequest other) {
  2302. if (other == global::Sirikata.Protocol._PBJ_Internal.LocRequest.DefaultInstance) return this;
  2303. if (other.HasRequestedFields) {
  2304. RequestedFields = other.RequestedFields;
  2305. }
  2306. this.MergeUnknownFields(other.UnknownFields);
  2307. return this;
  2308. }
  2309. public override Builder MergeFrom(pb::CodedInputStream input) {
  2310. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2311. }
  2312. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2313. pb::UnknownFieldSet.Builder unknownFields = null;
  2314. while (true) {
  2315. uint tag = input.ReadTag();
  2316. switch (tag) {
  2317. case 0: {
  2318. if (unknownFields != null) {
  2319. this.UnknownFields = unknownFields.Build();
  2320. }
  2321. return this;
  2322. }
  2323. default: {
  2324. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2325. if (unknownFields != null) {
  2326. this.UnknownFields = unknownFields.Build();
  2327. }
  2328. return this;
  2329. }
  2330. if (unknownFields == null) {
  2331. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2332. }
  2333. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2334. break;
  2335. }
  2336. case 16: {
  2337. RequestedFields = input.ReadUInt32();
  2338. break;
  2339. }
  2340. }
  2341. }
  2342. }
  2343. public bool HasRequestedFields {
  2344. get { return result.HasRequestedFields; }
  2345. }
  2346. [global::System.CLSCompliant(false)]
  2347. public uint RequestedFields {
  2348. get { return result.RequestedFields; }
  2349. set { SetRequestedFields(value); }
  2350. }
  2351. [global::System.CLSCompliant(false)]
  2352. public Builder SetRequestedFields(uint value) {
  2353. result.hasRequestedFields = true;
  2354. result.requestedFields_ = value;
  2355. return this;
  2356. }
  2357. public Builder ClearRequestedFields() {
  2358. result.hasRequestedFields = false;
  2359. result.requestedFields_ = 0;
  2360. return this;
  2361. }
  2362. }
  2363. static LocRequest() {
  2364. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  2365. }
  2366. }
  2367. public sealed partial class NewObj : pb::GeneratedMessage<NewObj, NewObj.Builder> {
  2368. private static readonly NewObj defaultInstance = new Builder().BuildPartial();
  2369. public static NewObj DefaultInstance {
  2370. get { return defaultInstance; }
  2371. }
  2372. public override NewObj DefaultInstanceForType {
  2373. get { return defaultInstance; }
  2374. }
  2375. protected override NewObj ThisMessage {
  2376. get { return this; }
  2377. }
  2378. public static pbd::MessageDescriptor Descriptor {
  2379. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__Descriptor; }
  2380. }
  2381. protected override pb::FieldAccess.FieldAccessorTable<NewObj, NewObj.Builder> InternalFieldAccessors {
  2382. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_NewObj__FieldAccessorTable; }
  2383. }
  2384. public const int ObjectUuidEvidenceFieldNumber = 2;
  2385. private bool hasObjectUuidEvidence;
  2386. private pb::ByteString objectUuidEvidence_ = pb::ByteString.Empty;
  2387. public bool HasObjectUuidEvidence {
  2388. get { return hasObjectUuidEvidence; }
  2389. }
  2390. public pb::ByteString ObjectUuidEvidence {
  2391. get { return objectUuidEvidence_; }
  2392. }
  2393. public const int RequestedObjectLocFieldNumber = 3;
  2394. private bool hasRequestedObjectLoc;
  2395. private global::Sirikata.Protocol._PBJ_Internal.ObjLoc requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  2396. public bool HasRequestedObjectLoc {
  2397. get { return hasRequestedObjectLoc; }
  2398. }
  2399. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc RequestedObjectLoc {
  2400. get { return requestedObjectLoc_; }
  2401. }
  2402. public const int BoundingSphereFieldNumber = 4;
  2403. private int boundingSphereMemoizedSerializedSize;
  2404. private pbc::PopsicleList<float> boundingSphere_ = new pbc::PopsicleList<float>();
  2405. public scg::IList<float> BoundingSphereList {
  2406. get { return pbc::Lists.AsReadOnly(boundingSphere_); }
  2407. }
  2408. public int BoundingSphereCount {
  2409. get { return boundingSphere_.Count; }
  2410. }
  2411. public float GetBoundingSphere(int index) {
  2412. return boundingSphere_[index];
  2413. }
  2414. public override bool IsInitialized {
  2415. get {
  2416. return true;
  2417. }
  2418. }
  2419. public override void WriteTo(pb::CodedOutputStream output) {
  2420. if (HasObjectUuidEvidence) {
  2421. output.WriteBytes(2, ObjectUuidEvidence);
  2422. }
  2423. if (HasRequestedObjectLoc) {
  2424. output.WriteMessage(3, RequestedObjectLoc);
  2425. }
  2426. if (boundingSphere_.Count > 0) {
  2427. output.WriteRawVarint32(34);
  2428. output.WriteRawVarint32((uint) boundingSphereMemoizedSerializedSize);
  2429. foreach (float element in boundingSphere_) {
  2430. output.WriteFloatNoTag(element);
  2431. }
  2432. }
  2433. UnknownFields.WriteTo(output);
  2434. }
  2435. private int memoizedSerializedSize = -1;
  2436. public override int SerializedSize {
  2437. get {
  2438. int size = memoizedSerializedSize;
  2439. if (size != -1) return size;
  2440. size = 0;
  2441. if (HasObjectUuidEvidence) {
  2442. size += pb::CodedOutputStream.ComputeBytesSize(2, ObjectUuidEvidence);
  2443. }
  2444. if (HasRequestedObjectLoc) {
  2445. size += pb::CodedOutputStream.ComputeMessageSize(3, RequestedObjectLoc);
  2446. }
  2447. {
  2448. int dataSize = 0;
  2449. dataSize = 4 * boundingSphere_.Count;
  2450. size += dataSize;
  2451. if (boundingSphere_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  2452. boundingSphereMemoizedSerializedSize = dataSize;
  2453. }
  2454. size += UnknownFields.SerializedSize;
  2455. memoizedSerializedSize = size;
  2456. return size;
  2457. }
  2458. }
  2459. public static NewObj ParseFrom(pb::ByteString data) {
  2460. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2461. }
  2462. public static NewObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2463. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2464. }
  2465. public static NewObj ParseFrom(byte[] data) {
  2466. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2467. }
  2468. public static NewObj ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2469. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2470. }
  2471. public static NewObj ParseFrom(global::System.IO.Stream input) {
  2472. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2473. }
  2474. public static NewObj ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2475. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2476. }
  2477. public static NewObj ParseDelimitedFrom(global::System.IO.Stream input) {
  2478. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2479. }
  2480. public static NewObj ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2481. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2482. }
  2483. public static NewObj ParseFrom(pb::CodedInputStream input) {
  2484. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2485. }
  2486. public static NewObj ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2487. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2488. }
  2489. public static Builder CreateBuilder() { return new Builder(); }
  2490. public override Builder ToBuilder() { return CreateBuilder(this); }
  2491. public override Builder CreateBuilderForType() { return new Builder(); }
  2492. public static Builder CreateBuilder(NewObj prototype) {
  2493. return (Builder) new Builder().MergeFrom(prototype);
  2494. }
  2495. public sealed partial class Builder : pb::GeneratedBuilder<NewObj, Builder> {
  2496. protected override Builder ThisBuilder {
  2497. get { return this; }
  2498. }
  2499. public Builder() {}
  2500. NewObj result = new NewObj();
  2501. protected override NewObj MessageBeingBuilt {
  2502. get { return result; }
  2503. }
  2504. public override Builder Clear() {
  2505. result = new NewObj();
  2506. return this;
  2507. }
  2508. public override Builder Clone() {
  2509. return new Builder().MergeFrom(result);
  2510. }
  2511. public override pbd::MessageDescriptor DescriptorForType {
  2512. get { return global::Sirikata.Protocol._PBJ_Internal.NewObj.Descriptor; }
  2513. }
  2514. public override NewObj DefaultInstanceForType {
  2515. get { return global::Sirikata.Protocol._PBJ_Internal.NewObj.DefaultInstance; }
  2516. }
  2517. public override NewObj BuildPartial() {
  2518. if (result == null) {
  2519. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2520. }
  2521. result.boundingSphere_.MakeReadOnly();
  2522. NewObj returnMe = result;
  2523. result = null;
  2524. return returnMe;
  2525. }
  2526. public override Builder MergeFrom(pb::IMessage other) {
  2527. if (other is NewObj) {
  2528. return MergeFrom((NewObj) other);
  2529. } else {
  2530. base.MergeFrom(other);
  2531. return this;
  2532. }
  2533. }
  2534. public override Builder MergeFrom(NewObj other) {
  2535. if (other == global::Sirikata.Protocol._PBJ_Internal.NewObj.DefaultInstance) return this;
  2536. if (other.HasObjectUuidEvidence) {
  2537. ObjectUuidEvidence = other.ObjectUuidEvidence;
  2538. }
  2539. if (other.HasRequestedObjectLoc) {
  2540. MergeRequestedObjectLoc(other.RequestedObjectLoc);
  2541. }
  2542. if (other.boundingSphere_.Count != 0) {
  2543. base.AddRange(other.boundingSphere_, result.boundingSphere_);
  2544. }
  2545. this.MergeUnknownFields(other.UnknownFields);
  2546. return this;
  2547. }
  2548. public override Builder MergeFrom(pb::CodedInputStream input) {
  2549. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2550. }
  2551. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2552. pb::UnknownFieldSet.Builder unknownFields = null;
  2553. while (true) {
  2554. uint tag = input.ReadTag();
  2555. switch (tag) {
  2556. case 0: {
  2557. if (unknownFields != null) {
  2558. this.UnknownFields = unknownFields.Build();
  2559. }
  2560. return this;
  2561. }
  2562. default: {
  2563. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2564. if (unknownFields != null) {
  2565. this.UnknownFields = unknownFields.Build();
  2566. }
  2567. return this;
  2568. }
  2569. if (unknownFields == null) {
  2570. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2571. }
  2572. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2573. break;
  2574. }
  2575. case 18: {
  2576. ObjectUuidEvidence = input.ReadBytes();
  2577. break;
  2578. }
  2579. case 26: {
  2580. global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder();
  2581. if (HasRequestedObjectLoc) {
  2582. subBuilder.MergeFrom(RequestedObjectLoc);
  2583. }
  2584. input.ReadMessage(subBuilder, extensionRegistry);
  2585. RequestedObjectLoc = subBuilder.BuildPartial();
  2586. break;
  2587. }
  2588. case 34: {
  2589. int length = input.ReadInt32();
  2590. int limit = input.PushLimit(length);
  2591. while (!input.ReachedLimit) {
  2592. AddBoundingSphere(input.ReadFloat());
  2593. }
  2594. input.PopLimit(limit);
  2595. break;
  2596. }
  2597. }
  2598. }
  2599. }
  2600. public bool HasObjectUuidEvidence {
  2601. get { return result.HasObjectUuidEvidence; }
  2602. }
  2603. public pb::ByteString ObjectUuidEvidence {
  2604. get { return result.ObjectUuidEvidence; }
  2605. set { SetObjectUuidEvidence(value); }
  2606. }
  2607. public Builder SetObjectUuidEvidence(pb::ByteString value) {
  2608. pb::ThrowHelper.ThrowIfNull(value, "value");
  2609. result.hasObjectUuidEvidence = true;
  2610. result.objectUuidEvidence_ = value;
  2611. return this;
  2612. }
  2613. public Builder ClearObjectUuidEvidence() {
  2614. result.hasObjectUuidEvidence = false;
  2615. result.objectUuidEvidence_ = pb::ByteString.Empty;
  2616. return this;
  2617. }
  2618. public bool HasRequestedObjectLoc {
  2619. get { return result.HasRequestedObjectLoc; }
  2620. }
  2621. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc RequestedObjectLoc {
  2622. get { return result.RequestedObjectLoc; }
  2623. set { SetRequestedObjectLoc(value); }
  2624. }
  2625. public Builder SetRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  2626. pb::ThrowHelper.ThrowIfNull(value, "value");
  2627. result.hasRequestedObjectLoc = true;
  2628. result.requestedObjectLoc_ = value;
  2629. return this;
  2630. }
  2631. public Builder SetRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder builderForValue) {
  2632. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2633. result.hasRequestedObjectLoc = true;
  2634. result.requestedObjectLoc_ = builderForValue.Build();
  2635. return this;
  2636. }
  2637. public Builder MergeRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  2638. pb::ThrowHelper.ThrowIfNull(value, "value");
  2639. if (result.HasRequestedObjectLoc &&
  2640. result.requestedObjectLoc_ != global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance) {
  2641. result.requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder(result.requestedObjectLoc_).MergeFrom(value).BuildPartial();
  2642. } else {
  2643. result.requestedObjectLoc_ = value;
  2644. }
  2645. result.hasRequestedObjectLoc = true;
  2646. return this;
  2647. }
  2648. public Builder ClearRequestedObjectLoc() {
  2649. result.hasRequestedObjectLoc = false;
  2650. result.requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  2651. return this;
  2652. }
  2653. public pbc::IPopsicleList<float> BoundingSphereList {
  2654. get { return result.boundingSphere_; }
  2655. }
  2656. public int BoundingSphereCount {
  2657. get { return result.BoundingSphereCount; }
  2658. }
  2659. public float GetBoundingSphere(int index) {
  2660. return result.GetBoundingSphere(index);
  2661. }
  2662. public Builder SetBoundingSphere(int index, float value) {
  2663. result.boundingSphere_[index] = value;
  2664. return this;
  2665. }
  2666. public Builder AddBoundingSphere(float value) {
  2667. result.boundingSphere_.Add(value);
  2668. return this;
  2669. }
  2670. public Builder AddRangeBoundingSphere(scg::IEnumerable<float> values) {
  2671. base.AddRange(values, result.boundingSphere_);
  2672. return this;
  2673. }
  2674. public Builder ClearBoundingSphere() {
  2675. result.boundingSphere_.Clear();
  2676. return this;
  2677. }
  2678. }
  2679. static NewObj() {
  2680. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  2681. }
  2682. }
  2683. public sealed partial class RetObj : pb::GeneratedMessage<RetObj, RetObj.Builder> {
  2684. private static readonly RetObj defaultInstance = new Builder().BuildPartial();
  2685. public static RetObj DefaultInstance {
  2686. get { return defaultInstance; }
  2687. }
  2688. public override RetObj DefaultInstanceForType {
  2689. get { return defaultInstance; }
  2690. }
  2691. protected override RetObj ThisMessage {
  2692. get { return this; }
  2693. }
  2694. public static pbd::MessageDescriptor Descriptor {
  2695. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__Descriptor; }
  2696. }
  2697. protected override pb::FieldAccess.FieldAccessorTable<RetObj, RetObj.Builder> InternalFieldAccessors {
  2698. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_RetObj__FieldAccessorTable; }
  2699. }
  2700. public const int ObjectReferenceFieldNumber = 2;
  2701. private bool hasObjectReference;
  2702. private pb::ByteString objectReference_ = pb::ByteString.Empty;
  2703. public bool HasObjectReference {
  2704. get { return hasObjectReference; }
  2705. }
  2706. public pb::ByteString ObjectReference {
  2707. get { return objectReference_; }
  2708. }
  2709. public const int LocationFieldNumber = 3;
  2710. private bool hasLocation;
  2711. private global::Sirikata.Protocol._PBJ_Internal.ObjLoc location_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  2712. public bool HasLocation {
  2713. get { return hasLocation; }
  2714. }
  2715. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc Location {
  2716. get { return location_; }
  2717. }
  2718. public const int BoundingSphereFieldNumber = 4;
  2719. private int boundingSphereMemoizedSerializedSize;
  2720. private pbc::PopsicleList<float> boundingSphere_ = new pbc::PopsicleList<float>();
  2721. public scg::IList<float> BoundingSphereList {
  2722. get { return pbc::Lists.AsReadOnly(boundingSphere_); }
  2723. }
  2724. public int BoundingSphereCount {
  2725. get { return boundingSphere_.Count; }
  2726. }
  2727. public float GetBoundingSphere(int index) {
  2728. return boundingSphere_[index];
  2729. }
  2730. public override bool IsInitialized {
  2731. get {
  2732. return true;
  2733. }
  2734. }
  2735. public override void WriteTo(pb::CodedOutputStream output) {
  2736. if (HasObjectReference) {
  2737. output.WriteBytes(2, ObjectReference);
  2738. }
  2739. if (HasLocation) {
  2740. output.WriteMessage(3, Location);
  2741. }
  2742. if (boundingSphere_.Count > 0) {
  2743. output.WriteRawVarint32(34);
  2744. output.WriteRawVarint32((uint) boundingSphereMemoizedSerializedSize);
  2745. foreach (float element in boundingSphere_) {
  2746. output.WriteFloatNoTag(element);
  2747. }
  2748. }
  2749. UnknownFields.WriteTo(output);
  2750. }
  2751. private int memoizedSerializedSize = -1;
  2752. public override int SerializedSize {
  2753. get {
  2754. int size = memoizedSerializedSize;
  2755. if (size != -1) return size;
  2756. size = 0;
  2757. if (HasObjectReference) {
  2758. size += pb::CodedOutputStream.ComputeBytesSize(2, ObjectReference);
  2759. }
  2760. if (HasLocation) {
  2761. size += pb::CodedOutputStream.ComputeMessageSize(3, Location);
  2762. }
  2763. {
  2764. int dataSize = 0;
  2765. dataSize = 4 * boundingSphere_.Count;
  2766. size += dataSize;
  2767. if (boundingSphere_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  2768. boundingSphereMemoizedSerializedSize = dataSize;
  2769. }
  2770. size += UnknownFields.SerializedSize;
  2771. memoizedSerializedSize = size;
  2772. return size;
  2773. }
  2774. }
  2775. public static RetObj ParseFrom(pb::ByteString data) {
  2776. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2777. }
  2778. public static RetObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2779. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2780. }
  2781. public static RetObj ParseFrom(byte[] data) {
  2782. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2783. }
  2784. public static RetObj ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2785. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2786. }
  2787. public static RetObj ParseFrom(global::System.IO.Stream input) {
  2788. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2789. }
  2790. public static RetObj ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2791. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2792. }
  2793. public static RetObj ParseDelimitedFrom(global::System.IO.Stream input) {
  2794. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2795. }
  2796. public static RetObj ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2797. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2798. }
  2799. public static RetObj ParseFrom(pb::CodedInputStream input) {
  2800. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2801. }
  2802. public static RetObj ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2803. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2804. }
  2805. public static Builder CreateBuilder() { return new Builder(); }
  2806. public override Builder ToBuilder() { return CreateBuilder(this); }
  2807. public override Builder CreateBuilderForType() { return new Builder(); }
  2808. public static Builder CreateBuilder(RetObj prototype) {
  2809. return (Builder) new Builder().MergeFrom(prototype);
  2810. }
  2811. public sealed partial class Builder : pb::GeneratedBuilder<RetObj, Builder> {
  2812. protected override Builder ThisBuilder {
  2813. get { return this; }
  2814. }
  2815. public Builder() {}
  2816. RetObj result = new RetObj();
  2817. protected override RetObj MessageBeingBuilt {
  2818. get { return result; }
  2819. }
  2820. public override Builder Clear() {
  2821. result = new RetObj();
  2822. return this;
  2823. }
  2824. public override Builder Clone() {
  2825. return new Builder().MergeFrom(result);
  2826. }
  2827. public override pbd::MessageDescriptor DescriptorForType {
  2828. get { return global::Sirikata.Protocol._PBJ_Internal.RetObj.Descriptor; }
  2829. }
  2830. public override RetObj DefaultInstanceForType {
  2831. get { return global::Sirikata.Protocol._PBJ_Internal.RetObj.DefaultInstance; }
  2832. }
  2833. public override RetObj BuildPartial() {
  2834. if (result == null) {
  2835. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  2836. }
  2837. result.boundingSphere_.MakeReadOnly();
  2838. RetObj returnMe = result;
  2839. result = null;
  2840. return returnMe;
  2841. }
  2842. public override Builder MergeFrom(pb::IMessage other) {
  2843. if (other is RetObj) {
  2844. return MergeFrom((RetObj) other);
  2845. } else {
  2846. base.MergeFrom(other);
  2847. return this;
  2848. }
  2849. }
  2850. public override Builder MergeFrom(RetObj other) {
  2851. if (other == global::Sirikata.Protocol._PBJ_Internal.RetObj.DefaultInstance) return this;
  2852. if (other.HasObjectReference) {
  2853. ObjectReference = other.ObjectReference;
  2854. }
  2855. if (other.HasLocation) {
  2856. MergeLocation(other.Location);
  2857. }
  2858. if (other.boundingSphere_.Count != 0) {
  2859. base.AddRange(other.boundingSphere_, result.boundingSphere_);
  2860. }
  2861. this.MergeUnknownFields(other.UnknownFields);
  2862. return this;
  2863. }
  2864. public override Builder MergeFrom(pb::CodedInputStream input) {
  2865. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2866. }
  2867. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2868. pb::UnknownFieldSet.Builder unknownFields = null;
  2869. while (true) {
  2870. uint tag = input.ReadTag();
  2871. switch (tag) {
  2872. case 0: {
  2873. if (unknownFields != null) {
  2874. this.UnknownFields = unknownFields.Build();
  2875. }
  2876. return this;
  2877. }
  2878. default: {
  2879. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2880. if (unknownFields != null) {
  2881. this.UnknownFields = unknownFields.Build();
  2882. }
  2883. return this;
  2884. }
  2885. if (unknownFields == null) {
  2886. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2887. }
  2888. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  2889. break;
  2890. }
  2891. case 18: {
  2892. ObjectReference = input.ReadBytes();
  2893. break;
  2894. }
  2895. case 26: {
  2896. global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder();
  2897. if (HasLocation) {
  2898. subBuilder.MergeFrom(Location);
  2899. }
  2900. input.ReadMessage(subBuilder, extensionRegistry);
  2901. Location = subBuilder.BuildPartial();
  2902. break;
  2903. }
  2904. case 34: {
  2905. int length = input.ReadInt32();
  2906. int limit = input.PushLimit(length);
  2907. while (!input.ReachedLimit) {
  2908. AddBoundingSphere(input.ReadFloat());
  2909. }
  2910. input.PopLimit(limit);
  2911. break;
  2912. }
  2913. }
  2914. }
  2915. }
  2916. public bool HasObjectReference {
  2917. get { return result.HasObjectReference; }
  2918. }
  2919. public pb::ByteString ObjectReference {
  2920. get { return result.ObjectReference; }
  2921. set { SetObjectReference(value); }
  2922. }
  2923. public Builder SetObjectReference(pb::ByteString value) {
  2924. pb::ThrowHelper.ThrowIfNull(value, "value");
  2925. result.hasObjectReference = true;
  2926. result.objectReference_ = value;
  2927. return this;
  2928. }
  2929. public Builder ClearObjectReference() {
  2930. result.hasObjectReference = false;
  2931. result.objectReference_ = pb::ByteString.Empty;
  2932. return this;
  2933. }
  2934. public bool HasLocation {
  2935. get { return result.HasLocation; }
  2936. }
  2937. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc Location {
  2938. get { return result.Location; }
  2939. set { SetLocation(value); }
  2940. }
  2941. public Builder SetLocation(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  2942. pb::ThrowHelper.ThrowIfNull(value, "value");
  2943. result.hasLocation = true;
  2944. result.location_ = value;
  2945. return this;
  2946. }
  2947. public Builder SetLocation(global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder builderForValue) {
  2948. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2949. result.hasLocation = true;
  2950. result.location_ = builderForValue.Build();
  2951. return this;
  2952. }
  2953. public Builder MergeLocation(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  2954. pb::ThrowHelper.ThrowIfNull(value, "value");
  2955. if (result.HasLocation &&
  2956. result.location_ != global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance) {
  2957. result.location_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder(result.location_).MergeFrom(value).BuildPartial();
  2958. } else {
  2959. result.location_ = value;
  2960. }
  2961. result.hasLocation = true;
  2962. return this;
  2963. }
  2964. public Builder ClearLocation() {
  2965. result.hasLocation = false;
  2966. result.location_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  2967. return this;
  2968. }
  2969. public pbc::IPopsicleList<float> BoundingSphereList {
  2970. get { return result.boundingSphere_; }
  2971. }
  2972. public int BoundingSphereCount {
  2973. get { return result.BoundingSphereCount; }
  2974. }
  2975. public float GetBoundingSphere(int index) {
  2976. return result.GetBoundingSphere(index);
  2977. }
  2978. public Builder SetBoundingSphere(int index, float value) {
  2979. result.boundingSphere_[index] = value;
  2980. return this;
  2981. }
  2982. public Builder AddBoundingSphere(float value) {
  2983. result.boundingSphere_.Add(value);
  2984. return this;
  2985. }
  2986. public Builder AddRangeBoundingSphere(scg::IEnumerable<float> values) {
  2987. base.AddRange(values, result.boundingSphere_);
  2988. return this;
  2989. }
  2990. public Builder ClearBoundingSphere() {
  2991. result.boundingSphere_.Clear();
  2992. return this;
  2993. }
  2994. }
  2995. static RetObj() {
  2996. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  2997. }
  2998. }
  2999. public sealed partial class DelObj : pb::GeneratedMessage<DelObj, DelObj.Builder> {
  3000. private static readonly DelObj defaultInstance = new Builder().BuildPartial();
  3001. public static DelObj DefaultInstance {
  3002. get { return defaultInstance; }
  3003. }
  3004. public override DelObj DefaultInstanceForType {
  3005. get { return defaultInstance; }
  3006. }
  3007. protected override DelObj ThisMessage {
  3008. get { return this; }
  3009. }
  3010. public static pbd::MessageDescriptor Descriptor {
  3011. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__Descriptor; }
  3012. }
  3013. protected override pb::FieldAccess.FieldAccessorTable<DelObj, DelObj.Builder> InternalFieldAccessors {
  3014. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_DelObj__FieldAccessorTable; }
  3015. }
  3016. public const int ObjectReferenceFieldNumber = 2;
  3017. private bool hasObjectReference;
  3018. private pb::ByteString objectReference_ = pb::ByteString.Empty;
  3019. public bool HasObjectReference {
  3020. get { return hasObjectReference; }
  3021. }
  3022. public pb::ByteString ObjectReference {
  3023. get { return objectReference_; }
  3024. }
  3025. public override bool IsInitialized {
  3026. get {
  3027. return true;
  3028. }
  3029. }
  3030. public override void WriteTo(pb::CodedOutputStream output) {
  3031. if (HasObjectReference) {
  3032. output.WriteBytes(2, ObjectReference);
  3033. }
  3034. UnknownFields.WriteTo(output);
  3035. }
  3036. private int memoizedSerializedSize = -1;
  3037. public override int SerializedSize {
  3038. get {
  3039. int size = memoizedSerializedSize;
  3040. if (size != -1) return size;
  3041. size = 0;
  3042. if (HasObjectReference) {
  3043. size += pb::CodedOutputStream.ComputeBytesSize(2, ObjectReference);
  3044. }
  3045. size += UnknownFields.SerializedSize;
  3046. memoizedSerializedSize = size;
  3047. return size;
  3048. }
  3049. }
  3050. public static DelObj ParseFrom(pb::ByteString data) {
  3051. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3052. }
  3053. public static DelObj ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3054. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3055. }
  3056. public static DelObj ParseFrom(byte[] data) {
  3057. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3058. }
  3059. public static DelObj ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3060. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3061. }
  3062. public static DelObj ParseFrom(global::System.IO.Stream input) {
  3063. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3064. }
  3065. public static DelObj ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3066. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3067. }
  3068. public static DelObj ParseDelimitedFrom(global::System.IO.Stream input) {
  3069. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3070. }
  3071. public static DelObj ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3072. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3073. }
  3074. public static DelObj ParseFrom(pb::CodedInputStream input) {
  3075. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3076. }
  3077. public static DelObj ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3078. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3079. }
  3080. public static Builder CreateBuilder() { return new Builder(); }
  3081. public override Builder ToBuilder() { return CreateBuilder(this); }
  3082. public override Builder CreateBuilderForType() { return new Builder(); }
  3083. public static Builder CreateBuilder(DelObj prototype) {
  3084. return (Builder) new Builder().MergeFrom(prototype);
  3085. }
  3086. public sealed partial class Builder : pb::GeneratedBuilder<DelObj, Builder> {
  3087. protected override Builder ThisBuilder {
  3088. get { return this; }
  3089. }
  3090. public Builder() {}
  3091. DelObj result = new DelObj();
  3092. protected override DelObj MessageBeingBuilt {
  3093. get { return result; }
  3094. }
  3095. public override Builder Clear() {
  3096. result = new DelObj();
  3097. return this;
  3098. }
  3099. public override Builder Clone() {
  3100. return new Builder().MergeFrom(result);
  3101. }
  3102. public override pbd::MessageDescriptor DescriptorForType {
  3103. get { return global::Sirikata.Protocol._PBJ_Internal.DelObj.Descriptor; }
  3104. }
  3105. public override DelObj DefaultInstanceForType {
  3106. get { return global::Sirikata.Protocol._PBJ_Internal.DelObj.DefaultInstance; }
  3107. }
  3108. public override DelObj BuildPartial() {
  3109. if (result == null) {
  3110. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  3111. }
  3112. DelObj returnMe = result;
  3113. result = null;
  3114. return returnMe;
  3115. }
  3116. public override Builder MergeFrom(pb::IMessage other) {
  3117. if (other is DelObj) {
  3118. return MergeFrom((DelObj) other);
  3119. } else {
  3120. base.MergeFrom(other);
  3121. return this;
  3122. }
  3123. }
  3124. public override Builder MergeFrom(DelObj other) {
  3125. if (other == global::Sirikata.Protocol._PBJ_Internal.DelObj.DefaultInstance) return this;
  3126. if (other.HasObjectReference) {
  3127. ObjectReference = other.ObjectReference;
  3128. }
  3129. this.MergeUnknownFields(other.UnknownFields);
  3130. return this;
  3131. }
  3132. public override Builder MergeFrom(pb::CodedInputStream input) {
  3133. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3134. }
  3135. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3136. pb::UnknownFieldSet.Builder unknownFields = null;
  3137. while (true) {
  3138. uint tag = input.ReadTag();
  3139. switch (tag) {
  3140. case 0: {
  3141. if (unknownFields != null) {
  3142. this.UnknownFields = unknownFields.Build();
  3143. }
  3144. return this;
  3145. }
  3146. default: {
  3147. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3148. if (unknownFields != null) {
  3149. this.UnknownFields = unknownFields.Build();
  3150. }
  3151. return this;
  3152. }
  3153. if (unknownFields == null) {
  3154. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3155. }
  3156. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  3157. break;
  3158. }
  3159. case 18: {
  3160. ObjectReference = input.ReadBytes();
  3161. break;
  3162. }
  3163. }
  3164. }
  3165. }
  3166. public bool HasObjectReference {
  3167. get { return result.HasObjectReference; }
  3168. }
  3169. public pb::ByteString ObjectReference {
  3170. get { return result.ObjectReference; }
  3171. set { SetObjectReference(value); }
  3172. }
  3173. public Builder SetObjectReference(pb::ByteString value) {
  3174. pb::ThrowHelper.ThrowIfNull(value, "value");
  3175. result.hasObjectReference = true;
  3176. result.objectReference_ = value;
  3177. return this;
  3178. }
  3179. public Builder ClearObjectReference() {
  3180. result.hasObjectReference = false;
  3181. result.objectReference_ = pb::ByteString.Empty;
  3182. return this;
  3183. }
  3184. }
  3185. static DelObj() {
  3186. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  3187. }
  3188. }
  3189. public sealed partial class NewProxQuery : pb::GeneratedMessage<NewProxQuery, NewProxQuery.Builder> {
  3190. private static readonly NewProxQuery defaultInstance = new Builder().BuildPartial();
  3191. public static NewProxQuery DefaultInstance {
  3192. get { return defaultInstance; }
  3193. }
  3194. public override NewProxQuery DefaultInstanceForType {
  3195. get { return defaultInstance; }
  3196. }
  3197. protected override NewProxQuery ThisMessage {
  3198. get { return this; }
  3199. }
  3200. public static pbd::MessageDescriptor Descriptor {
  3201. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__Descriptor; }
  3202. }
  3203. protected override pb::FieldAccess.FieldAccessorTable<NewProxQuery, NewProxQuery.Builder> InternalFieldAccessors {
  3204. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_NewProxQuery__FieldAccessorTable; }
  3205. }
  3206. public const int QueryIdFieldNumber = 2;
  3207. private bool hasQueryId;
  3208. private uint queryId_ = 0;
  3209. public bool HasQueryId {
  3210. get { return hasQueryId; }
  3211. }
  3212. [global::System.CLSCompliant(false)]
  3213. public uint QueryId {
  3214. get { return queryId_; }
  3215. }
  3216. public const int StatelessFieldNumber = 3;
  3217. private bool hasStateless;
  3218. private bool stateless_ = false;
  3219. public bool HasStateless {
  3220. get { return hasStateless; }
  3221. }
  3222. public bool Stateless {
  3223. get { return stateless_; }
  3224. }
  3225. public const int RelativeCenterFieldNumber = 4;
  3226. private int relativeCenterMemoizedSerializedSize;
  3227. private pbc::PopsicleList<float> relativeCenter_ = new pbc::PopsicleList<float>();
  3228. public scg::IList<float> RelativeCenterList {
  3229. get { return pbc::Lists.AsReadOnly(relativeCenter_); }
  3230. }
  3231. public int RelativeCenterCount {
  3232. get { return relativeCenter_.Count; }
  3233. }
  3234. public float GetRelativeCenter(int index) {
  3235. return relativeCenter_[index];
  3236. }
  3237. public const int AbsoluteCenterFieldNumber = 5;
  3238. private int absoluteCenterMemoizedSerializedSize;
  3239. private pbc::PopsicleList<double> absoluteCenter_ = new pbc::PopsicleList<double>();
  3240. public scg::IList<double> AbsoluteCenterList {
  3241. get { return pbc::Lists.AsReadOnly(absoluteCenter_); }
  3242. }
  3243. public int AbsoluteCenterCount {
  3244. get { return absoluteCenter_.Count; }
  3245. }
  3246. public double GetAbsoluteCenter(int index) {
  3247. return absoluteCenter_[index];
  3248. }
  3249. public const int MaxRadiusFieldNumber = 6;
  3250. private bool hasMaxRadius;
  3251. private float maxRadius_ = 0F;
  3252. public bool HasMaxRadius {
  3253. get { return hasMaxRadius; }
  3254. }
  3255. public float MaxRadius {
  3256. get { return maxRadius_; }
  3257. }
  3258. public const int MinSolidAngleFieldNumber = 7;
  3259. private bool hasMinSolidAngle;
  3260. private float minSolidAngle_ = 0F;
  3261. public bool HasMinSolidAngle {
  3262. get { return hasMinSolidAngle; }
  3263. }
  3264. public float MinSolidAngle {
  3265. get { return minSolidAngle_; }
  3266. }
  3267. public override bool IsInitialized {
  3268. get {
  3269. return true;
  3270. }
  3271. }
  3272. public override void WriteTo(pb::CodedOutputStream output) {
  3273. if (HasQueryId) {
  3274. output.WriteUInt32(2, QueryId);
  3275. }
  3276. if (HasStateless) {
  3277. output.WriteBool(3, Stateless);
  3278. }
  3279. if (relativeCenter_.Count > 0) {
  3280. output.WriteRawVarint32(34);
  3281. output.WriteRawVarint32((uint) relativeCenterMemoizedSerializedSize);
  3282. foreach (float element in relativeCenter_) {
  3283. output.WriteFloatNoTag(element);
  3284. }
  3285. }
  3286. if (absoluteCenter_.Count > 0) {
  3287. output.WriteRawVarint32(42);
  3288. output.WriteRawVarint32((uint) absoluteCenterMemoizedSerializedSize);
  3289. foreach (double element in absoluteCenter_) {
  3290. output.WriteDoubleNoTag(element);
  3291. }
  3292. }
  3293. if (HasMaxRadius) {
  3294. output.WriteFloat(6, MaxRadius);
  3295. }
  3296. if (HasMinSolidAngle) {
  3297. output.WriteFloat(7, MinSolidAngle);
  3298. }
  3299. UnknownFields.WriteTo(output);
  3300. }
  3301. private int memoizedSerializedSize = -1;
  3302. public override int SerializedSize {
  3303. get {
  3304. int size = memoizedSerializedSize;
  3305. if (size != -1) return size;
  3306. size = 0;
  3307. if (HasQueryId) {
  3308. size += pb::CodedOutputStream.ComputeUInt32Size(2, QueryId);
  3309. }
  3310. if (HasStateless) {
  3311. size += pb::CodedOutputStream.ComputeBoolSize(3, Stateless);
  3312. }
  3313. {
  3314. int dataSize = 0;
  3315. dataSize = 4 * relativeCenter_.Count;
  3316. size += dataSize;
  3317. if (relativeCenter_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  3318. relativeCenterMemoizedSerializedSize = dataSize;
  3319. }
  3320. {
  3321. int dataSize = 0;
  3322. dataSize = 8 * absoluteCenter_.Count;
  3323. size += dataSize;
  3324. if (absoluteCenter_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  3325. absoluteCenterMemoizedSerializedSize = dataSize;
  3326. }
  3327. if (HasMaxRadius) {
  3328. size += pb::CodedOutputStream.ComputeFloatSize(6, MaxRadius);
  3329. }
  3330. if (HasMinSolidAngle) {
  3331. size += pb::CodedOutputStream.ComputeFloatSize(7, MinSolidAngle);
  3332. }
  3333. size += UnknownFields.SerializedSize;
  3334. memoizedSerializedSize = size;
  3335. return size;
  3336. }
  3337. }
  3338. public static NewProxQuery ParseFrom(pb::ByteString data) {
  3339. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3340. }
  3341. public static NewProxQuery ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3342. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3343. }
  3344. public static NewProxQuery ParseFrom(byte[] data) {
  3345. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3346. }
  3347. public static NewProxQuery ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3348. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3349. }
  3350. public static NewProxQuery ParseFrom(global::System.IO.Stream input) {
  3351. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3352. }
  3353. public static NewProxQuery ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3354. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3355. }
  3356. public static NewProxQuery ParseDelimitedFrom(global::System.IO.Stream input) {
  3357. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3358. }
  3359. public static NewProxQuery ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3360. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3361. }
  3362. public static NewProxQuery ParseFrom(pb::CodedInputStream input) {
  3363. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3364. }
  3365. public static NewProxQuery ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3366. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3367. }
  3368. public static Builder CreateBuilder() { return new Builder(); }
  3369. public override Builder ToBuilder() { return CreateBuilder(this); }
  3370. public override Builder CreateBuilderForType() { return new Builder(); }
  3371. public static Builder CreateBuilder(NewProxQuery prototype) {
  3372. return (Builder) new Builder().MergeFrom(prototype);
  3373. }
  3374. public sealed partial class Builder : pb::GeneratedBuilder<NewProxQuery, Builder> {
  3375. protected override Builder ThisBuilder {
  3376. get { return this; }
  3377. }
  3378. public Builder() {}
  3379. NewProxQuery result = new NewProxQuery();
  3380. protected override NewProxQuery MessageBeingBuilt {
  3381. get { return result; }
  3382. }
  3383. public override Builder Clear() {
  3384. result = new NewProxQuery();
  3385. return this;
  3386. }
  3387. public override Builder Clone() {
  3388. return new Builder().MergeFrom(result);
  3389. }
  3390. public override pbd::MessageDescriptor DescriptorForType {
  3391. get { return global::Sirikata.Protocol._PBJ_Internal.NewProxQuery.Descriptor; }
  3392. }
  3393. public override NewProxQuery DefaultInstanceForType {
  3394. get { return global::Sirikata.Protocol._PBJ_Internal.NewProxQuery.DefaultInstance; }
  3395. }
  3396. public override NewProxQuery BuildPartial() {
  3397. if (result == null) {
  3398. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  3399. }
  3400. result.relativeCenter_.MakeReadOnly();
  3401. result.absoluteCenter_.MakeReadOnly();
  3402. NewProxQuery returnMe = result;
  3403. result = null;
  3404. return returnMe;
  3405. }
  3406. public override Builder MergeFrom(pb::IMessage other) {
  3407. if (other is NewProxQuery) {
  3408. return MergeFrom((NewProxQuery) other);
  3409. } else {
  3410. base.MergeFrom(other);
  3411. return this;
  3412. }
  3413. }
  3414. public override Builder MergeFrom(NewProxQuery other) {
  3415. if (other == global::Sirikata.Protocol._PBJ_Internal.NewProxQuery.DefaultInstance) return this;
  3416. if (other.HasQueryId) {
  3417. QueryId = other.QueryId;
  3418. }
  3419. if (other.HasStateless) {
  3420. Stateless = other.Stateless;
  3421. }
  3422. if (other.relativeCenter_.Count != 0) {
  3423. base.AddRange(other.relativeCenter_, result.relativeCenter_);
  3424. }
  3425. if (other.absoluteCenter_.Count != 0) {
  3426. base.AddRange(other.absoluteCenter_, result.absoluteCenter_);
  3427. }
  3428. if (other.HasMaxRadius) {
  3429. MaxRadius = other.MaxRadius;
  3430. }
  3431. if (other.HasMinSolidAngle) {
  3432. MinSolidAngle = other.MinSolidAngle;
  3433. }
  3434. this.MergeUnknownFields(other.UnknownFields);
  3435. return this;
  3436. }
  3437. public override Builder MergeFrom(pb::CodedInputStream input) {
  3438. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3439. }
  3440. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3441. pb::UnknownFieldSet.Builder unknownFields = null;
  3442. while (true) {
  3443. uint tag = input.ReadTag();
  3444. switch (tag) {
  3445. case 0: {
  3446. if (unknownFields != null) {
  3447. this.UnknownFields = unknownFields.Build();
  3448. }
  3449. return this;
  3450. }
  3451. default: {
  3452. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3453. if (unknownFields != null) {
  3454. this.UnknownFields = unknownFields.Build();
  3455. }
  3456. return this;
  3457. }
  3458. if (unknownFields == null) {
  3459. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3460. }
  3461. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  3462. break;
  3463. }
  3464. case 16: {
  3465. QueryId = input.ReadUInt32();
  3466. break;
  3467. }
  3468. case 24: {
  3469. Stateless = input.ReadBool();
  3470. break;
  3471. }
  3472. case 34: {
  3473. int length = input.ReadInt32();
  3474. int limit = input.PushLimit(length);
  3475. while (!input.ReachedLimit) {
  3476. AddRelativeCenter(input.ReadFloat());
  3477. }
  3478. input.PopLimit(limit);
  3479. break;
  3480. }
  3481. case 42: {
  3482. int length = input.ReadInt32();
  3483. int limit = input.PushLimit(length);
  3484. while (!input.ReachedLimit) {
  3485. AddAbsoluteCenter(input.ReadDouble());
  3486. }
  3487. input.PopLimit(limit);
  3488. break;
  3489. }
  3490. case 53: {
  3491. MaxRadius = input.ReadFloat();
  3492. break;
  3493. }
  3494. case 61: {
  3495. MinSolidAngle = input.ReadFloat();
  3496. break;
  3497. }
  3498. }
  3499. }
  3500. }
  3501. public bool HasQueryId {
  3502. get { return result.HasQueryId; }
  3503. }
  3504. [global::System.CLSCompliant(false)]
  3505. public uint QueryId {
  3506. get { return result.QueryId; }
  3507. set { SetQueryId(value); }
  3508. }
  3509. [global::System.CLSCompliant(false)]
  3510. public Builder SetQueryId(uint value) {
  3511. result.hasQueryId = true;
  3512. result.queryId_ = value;
  3513. return this;
  3514. }
  3515. public Builder ClearQueryId() {
  3516. result.hasQueryId = false;
  3517. result.queryId_ = 0;
  3518. return this;
  3519. }
  3520. public bool HasStateless {
  3521. get { return result.HasStateless; }
  3522. }
  3523. public bool Stateless {
  3524. get { return result.Stateless; }
  3525. set { SetStateless(value); }
  3526. }
  3527. public Builder SetStateless(bool value) {
  3528. result.hasStateless = true;
  3529. result.stateless_ = value;
  3530. return this;
  3531. }
  3532. public Builder ClearStateless() {
  3533. result.hasStateless = false;
  3534. result.stateless_ = false;
  3535. return this;
  3536. }
  3537. public pbc::IPopsicleList<float> RelativeCenterList {
  3538. get { return result.relativeCenter_; }
  3539. }
  3540. public int RelativeCenterCount {
  3541. get { return result.RelativeCenterCount; }
  3542. }
  3543. public float GetRelativeCenter(int index) {
  3544. return result.GetRelativeCenter(index);
  3545. }
  3546. public Builder SetRelativeCenter(int index, float value) {
  3547. result.relativeCenter_[index] = value;
  3548. return this;
  3549. }
  3550. public Builder AddRelativeCenter(float value) {
  3551. result.relativeCenter_.Add(value);
  3552. return this;
  3553. }
  3554. public Builder AddRangeRelativeCenter(scg::IEnumerable<float> values) {
  3555. base.AddRange(values, result.relativeCenter_);
  3556. return this;
  3557. }
  3558. public Builder ClearRelativeCenter() {
  3559. result.relativeCenter_.Clear();
  3560. return this;
  3561. }
  3562. public pbc::IPopsicleList<double> AbsoluteCenterList {
  3563. get { return result.absoluteCenter_; }
  3564. }
  3565. public int AbsoluteCenterCount {
  3566. get { return result.AbsoluteCenterCount; }
  3567. }
  3568. public double GetAbsoluteCenter(int index) {
  3569. return result.GetAbsoluteCenter(index);
  3570. }
  3571. public Builder SetAbsoluteCenter(int index, double value) {
  3572. result.absoluteCenter_[index] = value;
  3573. return this;
  3574. }
  3575. public Builder AddAbsoluteCenter(double value) {
  3576. result.absoluteCenter_.Add(value);
  3577. return this;
  3578. }
  3579. public Builder AddRangeAbsoluteCenter(scg::IEnumerable<double> values) {
  3580. base.AddRange(values, result.absoluteCenter_);
  3581. return this;
  3582. }
  3583. public Builder ClearAbsoluteCenter() {
  3584. result.absoluteCenter_.Clear();
  3585. return this;
  3586. }
  3587. public bool HasMaxRadius {
  3588. get { return result.HasMaxRadius; }
  3589. }
  3590. public float MaxRadius {
  3591. get { return result.MaxRadius; }
  3592. set { SetMaxRadius(value); }
  3593. }
  3594. public Builder SetMaxRadius(float value) {
  3595. result.hasMaxRadius = true;
  3596. result.maxRadius_ = value;
  3597. return this;
  3598. }
  3599. public Builder ClearMaxRadius() {
  3600. result.hasMaxRadius = false;
  3601. result.maxRadius_ = 0F;
  3602. return this;
  3603. }
  3604. public bool HasMinSolidAngle {
  3605. get { return result.HasMinSolidAngle; }
  3606. }
  3607. public float MinSolidAngle {
  3608. get { return result.MinSolidAngle; }
  3609. set { SetMinSolidAngle(value); }
  3610. }
  3611. public Builder SetMinSolidAngle(float value) {
  3612. result.hasMinSolidAngle = true;
  3613. result.minSolidAngle_ = value;
  3614. return this;
  3615. }
  3616. public Builder ClearMinSolidAngle() {
  3617. result.hasMinSolidAngle = false;
  3618. result.minSolidAngle_ = 0F;
  3619. return this;
  3620. }
  3621. }
  3622. static NewProxQuery() {
  3623. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  3624. }
  3625. }
  3626. public sealed partial class ProxCall : pb::GeneratedMessage<ProxCall, ProxCall.Builder> {
  3627. private static readonly ProxCall defaultInstance = new Builder().BuildPartial();
  3628. public static ProxCall DefaultInstance {
  3629. get { return defaultInstance; }
  3630. }
  3631. public override ProxCall DefaultInstanceForType {
  3632. get { return defaultInstance; }
  3633. }
  3634. protected override ProxCall ThisMessage {
  3635. get { return this; }
  3636. }
  3637. public static pbd::MessageDescriptor Descriptor {
  3638. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__Descriptor; }
  3639. }
  3640. protected override pb::FieldAccess.FieldAccessorTable<ProxCall, ProxCall.Builder> InternalFieldAccessors {
  3641. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ProxCall__FieldAccessorTable; }
  3642. }
  3643. #region Nested types
  3644. public static class Types {
  3645. public enum ProximityEvent {
  3646. EXITED_PROXIMITY = 0,
  3647. ENTERED_PROXIMITY = 1,
  3648. STATELESS_PROXIMITY = 2,
  3649. }
  3650. }
  3651. #endregion
  3652. public const int QueryIdFieldNumber = 2;
  3653. private bool hasQueryId;
  3654. private uint queryId_ = 0;
  3655. public bool HasQueryId {
  3656. get { return hasQueryId; }
  3657. }
  3658. [global::System.CLSCompliant(false)]
  3659. public uint QueryId {
  3660. get { return queryId_; }
  3661. }
  3662. public const int ProximateObjectFieldNumber = 3;
  3663. private bool hasProximateObject;
  3664. private pb::ByteString proximateObject_ = pb::ByteString.Empty;
  3665. public bool HasProximateObject {
  3666. get { return hasProximateObject; }
  3667. }
  3668. public pb::ByteString ProximateObject {
  3669. get { return proximateObject_; }
  3670. }
  3671. public const int ProximityEventFieldNumber = 4;
  3672. private bool hasProximityEvent;
  3673. private global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent proximityEvent_ = global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent.EXITED_PROXIMITY;
  3674. public bool HasProximityEvent {
  3675. get { return hasProximityEvent; }
  3676. }
  3677. public global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent ProximityEvent {
  3678. get { return proximityEvent_; }
  3679. }
  3680. public override bool IsInitialized {
  3681. get {
  3682. if (!hasQueryId) return false;
  3683. if (!hasProximateObject) return false;
  3684. if (!hasProximityEvent) return false;
  3685. return true;
  3686. }
  3687. }
  3688. public override void WriteTo(pb::CodedOutputStream output) {
  3689. if (HasQueryId) {
  3690. output.WriteUInt32(2, QueryId);
  3691. }
  3692. if (HasProximateObject) {
  3693. output.WriteBytes(3, ProximateObject);
  3694. }
  3695. if (HasProximityEvent) {
  3696. output.WriteEnum(4, (int) ProximityEvent);
  3697. }
  3698. UnknownFields.WriteTo(output);
  3699. }
  3700. private int memoizedSerializedSize = -1;
  3701. public override int SerializedSize {
  3702. get {
  3703. int size = memoizedSerializedSize;
  3704. if (size != -1) return size;
  3705. size = 0;
  3706. if (HasQueryId) {
  3707. size += pb::CodedOutputStream.ComputeUInt32Size(2, QueryId);
  3708. }
  3709. if (HasProximateObject) {
  3710. size += pb::CodedOutputStream.ComputeBytesSize(3, ProximateObject);
  3711. }
  3712. if (HasProximityEvent) {
  3713. size += pb::CodedOutputStream.ComputeEnumSize(4, (int) ProximityEvent);
  3714. }
  3715. size += UnknownFields.SerializedSize;
  3716. memoizedSerializedSize = size;
  3717. return size;
  3718. }
  3719. }
  3720. public static ProxCall ParseFrom(pb::ByteString data) {
  3721. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3722. }
  3723. public static ProxCall ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3724. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3725. }
  3726. public static ProxCall ParseFrom(byte[] data) {
  3727. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3728. }
  3729. public static ProxCall ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3730. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3731. }
  3732. public static ProxCall ParseFrom(global::System.IO.Stream input) {
  3733. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3734. }
  3735. public static ProxCall ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3736. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3737. }
  3738. public static ProxCall ParseDelimitedFrom(global::System.IO.Stream input) {
  3739. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3740. }
  3741. public static ProxCall ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3742. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3743. }
  3744. public static ProxCall ParseFrom(pb::CodedInputStream input) {
  3745. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3746. }
  3747. public static ProxCall ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3748. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3749. }
  3750. public static Builder CreateBuilder() { return new Builder(); }
  3751. public override Builder ToBuilder() { return CreateBuilder(this); }
  3752. public override Builder CreateBuilderForType() { return new Builder(); }
  3753. public static Builder CreateBuilder(ProxCall prototype) {
  3754. return (Builder) new Builder().MergeFrom(prototype);
  3755. }
  3756. public sealed partial class Builder : pb::GeneratedBuilder<ProxCall, Builder> {
  3757. protected override Builder ThisBuilder {
  3758. get { return this; }
  3759. }
  3760. public Builder() {}
  3761. ProxCall result = new ProxCall();
  3762. protected override ProxCall MessageBeingBuilt {
  3763. get { return result; }
  3764. }
  3765. public override Builder Clear() {
  3766. result = new ProxCall();
  3767. return this;
  3768. }
  3769. public override Builder Clone() {
  3770. return new Builder().MergeFrom(result);
  3771. }
  3772. public override pbd::MessageDescriptor DescriptorForType {
  3773. get { return global::Sirikata.Protocol._PBJ_Internal.ProxCall.Descriptor; }
  3774. }
  3775. public override ProxCall DefaultInstanceForType {
  3776. get { return global::Sirikata.Protocol._PBJ_Internal.ProxCall.DefaultInstance; }
  3777. }
  3778. public override ProxCall BuildPartial() {
  3779. if (result == null) {
  3780. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  3781. }
  3782. ProxCall returnMe = result;
  3783. result = null;
  3784. return returnMe;
  3785. }
  3786. public override Builder MergeFrom(pb::IMessage other) {
  3787. if (other is ProxCall) {
  3788. return MergeFrom((ProxCall) other);
  3789. } else {
  3790. base.MergeFrom(other);
  3791. return this;
  3792. }
  3793. }
  3794. public override Builder MergeFrom(ProxCall other) {
  3795. if (other == global::Sirikata.Protocol._PBJ_Internal.ProxCall.DefaultInstance) return this;
  3796. if (other.HasQueryId) {
  3797. QueryId = other.QueryId;
  3798. }
  3799. if (other.HasProximateObject) {
  3800. ProximateObject = other.ProximateObject;
  3801. }
  3802. if (other.HasProximityEvent) {
  3803. ProximityEvent = other.ProximityEvent;
  3804. }
  3805. this.MergeUnknownFields(other.UnknownFields);
  3806. return this;
  3807. }
  3808. public override Builder MergeFrom(pb::CodedInputStream input) {
  3809. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3810. }
  3811. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3812. pb::UnknownFieldSet.Builder unknownFields = null;
  3813. while (true) {
  3814. uint tag = input.ReadTag();
  3815. switch (tag) {
  3816. case 0: {
  3817. if (unknownFields != null) {
  3818. this.UnknownFields = unknownFields.Build();
  3819. }
  3820. return this;
  3821. }
  3822. default: {
  3823. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3824. if (unknownFields != null) {
  3825. this.UnknownFields = unknownFields.Build();
  3826. }
  3827. return this;
  3828. }
  3829. if (unknownFields == null) {
  3830. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3831. }
  3832. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  3833. break;
  3834. }
  3835. case 16: {
  3836. QueryId = input.ReadUInt32();
  3837. break;
  3838. }
  3839. case 26: {
  3840. ProximateObject = input.ReadBytes();
  3841. break;
  3842. }
  3843. case 32: {
  3844. int rawValue = input.ReadEnum();
  3845. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent), rawValue)) {
  3846. if (unknownFields == null) {
  3847. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3848. }
  3849. unknownFields.MergeVarintField(4, (ulong) rawValue);
  3850. } else {
  3851. ProximityEvent = (global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent) rawValue;
  3852. }
  3853. break;
  3854. }
  3855. }
  3856. }
  3857. }
  3858. public bool HasQueryId {
  3859. get { return result.HasQueryId; }
  3860. }
  3861. [global::System.CLSCompliant(false)]
  3862. public uint QueryId {
  3863. get { return result.QueryId; }
  3864. set { SetQueryId(value); }
  3865. }
  3866. [global::System.CLSCompliant(false)]
  3867. public Builder SetQueryId(uint value) {
  3868. result.hasQueryId = true;
  3869. result.queryId_ = value;
  3870. return this;
  3871. }
  3872. public Builder ClearQueryId() {
  3873. result.hasQueryId = false;
  3874. result.queryId_ = 0;
  3875. return this;
  3876. }
  3877. public bool HasProximateObject {
  3878. get { return result.HasProximateObject; }
  3879. }
  3880. public pb::ByteString ProximateObject {
  3881. get { return result.ProximateObject; }
  3882. set { SetProximateObject(value); }
  3883. }
  3884. public Builder SetProximateObject(pb::ByteString value) {
  3885. pb::ThrowHelper.ThrowIfNull(value, "value");
  3886. result.hasProximateObject = true;
  3887. result.proximateObject_ = value;
  3888. return this;
  3889. }
  3890. public Builder ClearProximateObject() {
  3891. result.hasProximateObject = false;
  3892. result.proximateObject_ = pb::ByteString.Empty;
  3893. return this;
  3894. }
  3895. public bool HasProximityEvent {
  3896. get { return result.HasProximityEvent; }
  3897. }
  3898. public global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent ProximityEvent {
  3899. get { return result.ProximityEvent; }
  3900. set { SetProximityEvent(value); }
  3901. }
  3902. public Builder SetProximityEvent(global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent value) {
  3903. result.hasProximityEvent = true;
  3904. result.proximityEvent_ = value;
  3905. return this;
  3906. }
  3907. public Builder ClearProximityEvent() {
  3908. result.hasProximityEvent = false;
  3909. result.proximityEvent_ = global::Sirikata.Protocol._PBJ_Internal.ProxCall.Types.ProximityEvent.EXITED_PROXIMITY;
  3910. return this;
  3911. }
  3912. }
  3913. static ProxCall() {
  3914. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  3915. }
  3916. }
  3917. public sealed partial class DelProxQuery : pb::GeneratedMessage<DelProxQuery, DelProxQuery.Builder> {
  3918. private static readonly DelProxQuery defaultInstance = new Builder().BuildPartial();
  3919. public static DelProxQuery DefaultInstance {
  3920. get { return defaultInstance; }
  3921. }
  3922. public override DelProxQuery DefaultInstanceForType {
  3923. get { return defaultInstance; }
  3924. }
  3925. protected override DelProxQuery ThisMessage {
  3926. get { return this; }
  3927. }
  3928. public static pbd::MessageDescriptor Descriptor {
  3929. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__Descriptor; }
  3930. }
  3931. protected override pb::FieldAccess.FieldAccessorTable<DelProxQuery, DelProxQuery.Builder> InternalFieldAccessors {
  3932. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_DelProxQuery__FieldAccessorTable; }
  3933. }
  3934. public const int QueryIdFieldNumber = 2;
  3935. private bool hasQueryId;
  3936. private uint queryId_ = 0;
  3937. public bool HasQueryId {
  3938. get { return hasQueryId; }
  3939. }
  3940. [global::System.CLSCompliant(false)]
  3941. public uint QueryId {
  3942. get { return queryId_; }
  3943. }
  3944. public override bool IsInitialized {
  3945. get {
  3946. return true;
  3947. }
  3948. }
  3949. public override void WriteTo(pb::CodedOutputStream output) {
  3950. if (HasQueryId) {
  3951. output.WriteUInt32(2, QueryId);
  3952. }
  3953. UnknownFields.WriteTo(output);
  3954. }
  3955. private int memoizedSerializedSize = -1;
  3956. public override int SerializedSize {
  3957. get {
  3958. int size = memoizedSerializedSize;
  3959. if (size != -1) return size;
  3960. size = 0;
  3961. if (HasQueryId) {
  3962. size += pb::CodedOutputStream.ComputeUInt32Size(2, QueryId);
  3963. }
  3964. size += UnknownFields.SerializedSize;
  3965. memoizedSerializedSize = size;
  3966. return size;
  3967. }
  3968. }
  3969. public static DelProxQuery ParseFrom(pb::ByteString data) {
  3970. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3971. }
  3972. public static DelProxQuery ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3973. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3974. }
  3975. public static DelProxQuery ParseFrom(byte[] data) {
  3976. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3977. }
  3978. public static DelProxQuery ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3979. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3980. }
  3981. public static DelProxQuery ParseFrom(global::System.IO.Stream input) {
  3982. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3983. }
  3984. public static DelProxQuery ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3985. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3986. }
  3987. public static DelProxQuery ParseDelimitedFrom(global::System.IO.Stream input) {
  3988. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3989. }
  3990. public static DelProxQuery ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3991. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3992. }
  3993. public static DelProxQuery ParseFrom(pb::CodedInputStream input) {
  3994. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3995. }
  3996. public static DelProxQuery ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3997. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3998. }
  3999. public static Builder CreateBuilder() { return new Builder(); }
  4000. public override Builder ToBuilder() { return CreateBuilder(this); }
  4001. public override Builder CreateBuilderForType() { return new Builder(); }
  4002. public static Builder CreateBuilder(DelProxQuery prototype) {
  4003. return (Builder) new Builder().MergeFrom(prototype);
  4004. }
  4005. public sealed partial class Builder : pb::GeneratedBuilder<DelProxQuery, Builder> {
  4006. protected override Builder ThisBuilder {
  4007. get { return this; }
  4008. }
  4009. public Builder() {}
  4010. DelProxQuery result = new DelProxQuery();
  4011. protected override DelProxQuery MessageBeingBuilt {
  4012. get { return result; }
  4013. }
  4014. public override Builder Clear() {
  4015. result = new DelProxQuery();
  4016. return this;
  4017. }
  4018. public override Builder Clone() {
  4019. return new Builder().MergeFrom(result);
  4020. }
  4021. public override pbd::MessageDescriptor DescriptorForType {
  4022. get { return global::Sirikata.Protocol._PBJ_Internal.DelProxQuery.Descriptor; }
  4023. }
  4024. public override DelProxQuery DefaultInstanceForType {
  4025. get { return global::Sirikata.Protocol._PBJ_Internal.DelProxQuery.DefaultInstance; }
  4026. }
  4027. public override DelProxQuery BuildPartial() {
  4028. if (result == null) {
  4029. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  4030. }
  4031. DelProxQuery returnMe = result;
  4032. result = null;
  4033. return returnMe;
  4034. }
  4035. public override Builder MergeFrom(pb::IMessage other) {
  4036. if (other is DelProxQuery) {
  4037. return MergeFrom((DelProxQuery) other);
  4038. } else {
  4039. base.MergeFrom(other);
  4040. return this;
  4041. }
  4042. }
  4043. public override Builder MergeFrom(DelProxQuery other) {
  4044. if (other == global::Sirikata.Protocol._PBJ_Internal.DelProxQuery.DefaultInstance) return this;
  4045. if (other.HasQueryId) {
  4046. QueryId = other.QueryId;
  4047. }
  4048. this.MergeUnknownFields(other.UnknownFields);
  4049. return this;
  4050. }
  4051. public override Builder MergeFrom(pb::CodedInputStream input) {
  4052. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4053. }
  4054. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4055. pb::UnknownFieldSet.Builder unknownFields = null;
  4056. while (true) {
  4057. uint tag = input.ReadTag();
  4058. switch (tag) {
  4059. case 0: {
  4060. if (unknownFields != null) {
  4061. this.UnknownFields = unknownFields.Build();
  4062. }
  4063. return this;
  4064. }
  4065. default: {
  4066. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4067. if (unknownFields != null) {
  4068. this.UnknownFields = unknownFields.Build();
  4069. }
  4070. return this;
  4071. }
  4072. if (unknownFields == null) {
  4073. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4074. }
  4075. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  4076. break;
  4077. }
  4078. case 16: {
  4079. QueryId = input.ReadUInt32();
  4080. break;
  4081. }
  4082. }
  4083. }
  4084. }
  4085. public bool HasQueryId {
  4086. get { return result.HasQueryId; }
  4087. }
  4088. [global::System.CLSCompliant(false)]
  4089. public uint QueryId {
  4090. get { return result.QueryId; }
  4091. set { SetQueryId(value); }
  4092. }
  4093. [global::System.CLSCompliant(false)]
  4094. public Builder SetQueryId(uint value) {
  4095. result.hasQueryId = true;
  4096. result.queryId_ = value;
  4097. return this;
  4098. }
  4099. public Builder ClearQueryId() {
  4100. result.hasQueryId = false;
  4101. result.queryId_ = 0;
  4102. return this;
  4103. }
  4104. }
  4105. static DelProxQuery() {
  4106. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  4107. }
  4108. }
  4109. public sealed partial class Vector3fProperty : pb::GeneratedMessage<Vector3fProperty, Vector3fProperty.Builder> {
  4110. private static readonly Vector3fProperty defaultInstance = new Builder().BuildPartial();
  4111. public static Vector3fProperty DefaultInstance {
  4112. get { return defaultInstance; }
  4113. }
  4114. public override Vector3fProperty DefaultInstanceForType {
  4115. get { return defaultInstance; }
  4116. }
  4117. protected override Vector3fProperty ThisMessage {
  4118. get { return this; }
  4119. }
  4120. public static pbd::MessageDescriptor Descriptor {
  4121. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__Descriptor; }
  4122. }
  4123. protected override pb::FieldAccess.FieldAccessorTable<Vector3fProperty, Vector3fProperty.Builder> InternalFieldAccessors {
  4124. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_Vector3fProperty__FieldAccessorTable; }
  4125. }
  4126. public const int ValueFieldNumber = 10;
  4127. private int valueMemoizedSerializedSize;
  4128. private pbc::PopsicleList<float> value_ = new pbc::PopsicleList<float>();
  4129. public scg::IList<float> ValueList {
  4130. get { return pbc::Lists.AsReadOnly(value_); }
  4131. }
  4132. public int ValueCount {
  4133. get { return value_.Count; }
  4134. }
  4135. public float GetValue(int index) {
  4136. return value_[index];
  4137. }
  4138. public override bool IsInitialized {
  4139. get {
  4140. return true;
  4141. }
  4142. }
  4143. public override void WriteTo(pb::CodedOutputStream output) {
  4144. if (value_.Count > 0) {
  4145. output.WriteRawVarint32(82);
  4146. output.WriteRawVarint32((uint) valueMemoizedSerializedSize);
  4147. foreach (float element in value_) {
  4148. output.WriteFloatNoTag(element);
  4149. }
  4150. }
  4151. UnknownFields.WriteTo(output);
  4152. }
  4153. private int memoizedSerializedSize = -1;
  4154. public override int SerializedSize {
  4155. get {
  4156. int size = memoizedSerializedSize;
  4157. if (size != -1) return size;
  4158. size = 0;
  4159. {
  4160. int dataSize = 0;
  4161. dataSize = 4 * value_.Count;
  4162. size += dataSize;
  4163. if (value_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  4164. valueMemoizedSerializedSize = dataSize;
  4165. }
  4166. size += UnknownFields.SerializedSize;
  4167. memoizedSerializedSize = size;
  4168. return size;
  4169. }
  4170. }
  4171. public static Vector3fProperty ParseFrom(pb::ByteString data) {
  4172. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4173. }
  4174. public static Vector3fProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4175. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4176. }
  4177. public static Vector3fProperty ParseFrom(byte[] data) {
  4178. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4179. }
  4180. public static Vector3fProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4181. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4182. }
  4183. public static Vector3fProperty ParseFrom(global::System.IO.Stream input) {
  4184. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4185. }
  4186. public static Vector3fProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4187. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4188. }
  4189. public static Vector3fProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  4190. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4191. }
  4192. public static Vector3fProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4193. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4194. }
  4195. public static Vector3fProperty ParseFrom(pb::CodedInputStream input) {
  4196. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4197. }
  4198. public static Vector3fProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4199. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4200. }
  4201. public static Builder CreateBuilder() { return new Builder(); }
  4202. public override Builder ToBuilder() { return CreateBuilder(this); }
  4203. public override Builder CreateBuilderForType() { return new Builder(); }
  4204. public static Builder CreateBuilder(Vector3fProperty prototype) {
  4205. return (Builder) new Builder().MergeFrom(prototype);
  4206. }
  4207. public sealed partial class Builder : pb::GeneratedBuilder<Vector3fProperty, Builder> {
  4208. protected override Builder ThisBuilder {
  4209. get { return this; }
  4210. }
  4211. public Builder() {}
  4212. Vector3fProperty result = new Vector3fProperty();
  4213. protected override Vector3fProperty MessageBeingBuilt {
  4214. get { return result; }
  4215. }
  4216. public override Builder Clear() {
  4217. result = new Vector3fProperty();
  4218. return this;
  4219. }
  4220. public override Builder Clone() {
  4221. return new Builder().MergeFrom(result);
  4222. }
  4223. public override pbd::MessageDescriptor DescriptorForType {
  4224. get { return global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty.Descriptor; }
  4225. }
  4226. public override Vector3fProperty DefaultInstanceForType {
  4227. get { return global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty.DefaultInstance; }
  4228. }
  4229. public override Vector3fProperty BuildPartial() {
  4230. if (result == null) {
  4231. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  4232. }
  4233. result.value_.MakeReadOnly();
  4234. Vector3fProperty returnMe = result;
  4235. result = null;
  4236. return returnMe;
  4237. }
  4238. public override Builder MergeFrom(pb::IMessage other) {
  4239. if (other is Vector3fProperty) {
  4240. return MergeFrom((Vector3fProperty) other);
  4241. } else {
  4242. base.MergeFrom(other);
  4243. return this;
  4244. }
  4245. }
  4246. public override Builder MergeFrom(Vector3fProperty other) {
  4247. if (other == global::Sirikata.Protocol._PBJ_Internal.Vector3fProperty.DefaultInstance) return this;
  4248. if (other.value_.Count != 0) {
  4249. base.AddRange(other.value_, result.value_);
  4250. }
  4251. this.MergeUnknownFields(other.UnknownFields);
  4252. return this;
  4253. }
  4254. public override Builder MergeFrom(pb::CodedInputStream input) {
  4255. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4256. }
  4257. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4258. pb::UnknownFieldSet.Builder unknownFields = null;
  4259. while (true) {
  4260. uint tag = input.ReadTag();
  4261. switch (tag) {
  4262. case 0: {
  4263. if (unknownFields != null) {
  4264. this.UnknownFields = unknownFields.Build();
  4265. }
  4266. return this;
  4267. }
  4268. default: {
  4269. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4270. if (unknownFields != null) {
  4271. this.UnknownFields = unknownFields.Build();
  4272. }
  4273. return this;
  4274. }
  4275. if (unknownFields == null) {
  4276. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4277. }
  4278. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  4279. break;
  4280. }
  4281. case 82: {
  4282. int length = input.ReadInt32();
  4283. int limit = input.PushLimit(length);
  4284. while (!input.ReachedLimit) {
  4285. AddValue(input.ReadFloat());
  4286. }
  4287. input.PopLimit(limit);
  4288. break;
  4289. }
  4290. }
  4291. }
  4292. }
  4293. public pbc::IPopsicleList<float> ValueList {
  4294. get { return result.value_; }
  4295. }
  4296. public int ValueCount {
  4297. get { return result.ValueCount; }
  4298. }
  4299. public float GetValue(int index) {
  4300. return result.GetValue(index);
  4301. }
  4302. public Builder SetValue(int index, float value) {
  4303. result.value_[index] = value;
  4304. return this;
  4305. }
  4306. public Builder AddValue(float value) {
  4307. result.value_.Add(value);
  4308. return this;
  4309. }
  4310. public Builder AddRangeValue(scg::IEnumerable<float> values) {
  4311. base.AddRange(values, result.value_);
  4312. return this;
  4313. }
  4314. public Builder ClearValue() {
  4315. result.value_.Clear();
  4316. return this;
  4317. }
  4318. }
  4319. static Vector3fProperty() {
  4320. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  4321. }
  4322. }
  4323. public sealed partial class StringProperty : pb::GeneratedMessage<StringProperty, StringProperty.Builder> {
  4324. private static readonly StringProperty defaultInstance = new Builder().BuildPartial();
  4325. public static StringProperty DefaultInstance {
  4326. get { return defaultInstance; }
  4327. }
  4328. public override StringProperty DefaultInstanceForType {
  4329. get { return defaultInstance; }
  4330. }
  4331. protected override StringProperty ThisMessage {
  4332. get { return this; }
  4333. }
  4334. public static pbd::MessageDescriptor Descriptor {
  4335. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__Descriptor; }
  4336. }
  4337. protected override pb::FieldAccess.FieldAccessorTable<StringProperty, StringProperty.Builder> InternalFieldAccessors {
  4338. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_StringProperty__FieldAccessorTable; }
  4339. }
  4340. public const int ValueFieldNumber = 10;
  4341. private bool hasValue;
  4342. private string value_ = "";
  4343. public bool HasValue {
  4344. get { return hasValue; }
  4345. }
  4346. public string Value {
  4347. get { return value_; }
  4348. }
  4349. public override bool IsInitialized {
  4350. get {
  4351. return true;
  4352. }
  4353. }
  4354. public override void WriteTo(pb::CodedOutputStream output) {
  4355. if (HasValue) {
  4356. output.WriteString(10, Value);
  4357. }
  4358. UnknownFields.WriteTo(output);
  4359. }
  4360. private int memoizedSerializedSize = -1;
  4361. public override int SerializedSize {
  4362. get {
  4363. int size = memoizedSerializedSize;
  4364. if (size != -1) return size;
  4365. size = 0;
  4366. if (HasValue) {
  4367. size += pb::CodedOutputStream.ComputeStringSize(10, Value);
  4368. }
  4369. size += UnknownFields.SerializedSize;
  4370. memoizedSerializedSize = size;
  4371. return size;
  4372. }
  4373. }
  4374. public static StringProperty ParseFrom(pb::ByteString data) {
  4375. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4376. }
  4377. public static StringProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4378. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4379. }
  4380. public static StringProperty ParseFrom(byte[] data) {
  4381. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4382. }
  4383. public static StringProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4384. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4385. }
  4386. public static StringProperty ParseFrom(global::System.IO.Stream input) {
  4387. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4388. }
  4389. public static StringProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4390. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4391. }
  4392. public static StringProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  4393. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4394. }
  4395. public static StringProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4396. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4397. }
  4398. public static StringProperty ParseFrom(pb::CodedInputStream input) {
  4399. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4400. }
  4401. public static StringProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4402. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4403. }
  4404. public static Builder CreateBuilder() { return new Builder(); }
  4405. public override Builder ToBuilder() { return CreateBuilder(this); }
  4406. public override Builder CreateBuilderForType() { return new Builder(); }
  4407. public static Builder CreateBuilder(StringProperty prototype) {
  4408. return (Builder) new Builder().MergeFrom(prototype);
  4409. }
  4410. public sealed partial class Builder : pb::GeneratedBuilder<StringProperty, Builder> {
  4411. protected override Builder ThisBuilder {
  4412. get { return this; }
  4413. }
  4414. public Builder() {}
  4415. StringProperty result = new StringProperty();
  4416. protected override StringProperty MessageBeingBuilt {
  4417. get { return result; }
  4418. }
  4419. public override Builder Clear() {
  4420. result = new StringProperty();
  4421. return this;
  4422. }
  4423. public override Builder Clone() {
  4424. return new Builder().MergeFrom(result);
  4425. }
  4426. public override pbd::MessageDescriptor DescriptorForType {
  4427. get { return global::Sirikata.Protocol._PBJ_Internal.StringProperty.Descriptor; }
  4428. }
  4429. public override StringProperty DefaultInstanceForType {
  4430. get { return global::Sirikata.Protocol._PBJ_Internal.StringProperty.DefaultInstance; }
  4431. }
  4432. public override StringProperty BuildPartial() {
  4433. if (result == null) {
  4434. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  4435. }
  4436. StringProperty returnMe = result;
  4437. result = null;
  4438. return returnMe;
  4439. }
  4440. public override Builder MergeFrom(pb::IMessage other) {
  4441. if (other is StringProperty) {
  4442. return MergeFrom((StringProperty) other);
  4443. } else {
  4444. base.MergeFrom(other);
  4445. return this;
  4446. }
  4447. }
  4448. public override Builder MergeFrom(StringProperty other) {
  4449. if (other == global::Sirikata.Protocol._PBJ_Internal.StringProperty.DefaultInstance) return this;
  4450. if (other.HasValue) {
  4451. Value = other.Value;
  4452. }
  4453. this.MergeUnknownFields(other.UnknownFields);
  4454. return this;
  4455. }
  4456. public override Builder MergeFrom(pb::CodedInputStream input) {
  4457. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4458. }
  4459. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4460. pb::UnknownFieldSet.Builder unknownFields = null;
  4461. while (true) {
  4462. uint tag = input.ReadTag();
  4463. switch (tag) {
  4464. case 0: {
  4465. if (unknownFields != null) {
  4466. this.UnknownFields = unknownFields.Build();
  4467. }
  4468. return this;
  4469. }
  4470. default: {
  4471. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4472. if (unknownFields != null) {
  4473. this.UnknownFields = unknownFields.Build();
  4474. }
  4475. return this;
  4476. }
  4477. if (unknownFields == null) {
  4478. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4479. }
  4480. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  4481. break;
  4482. }
  4483. case 82: {
  4484. Value = input.ReadString();
  4485. break;
  4486. }
  4487. }
  4488. }
  4489. }
  4490. public bool HasValue {
  4491. get { return result.HasValue; }
  4492. }
  4493. public string Value {
  4494. get { return result.Value; }
  4495. set { SetValue(value); }
  4496. }
  4497. public Builder SetValue(string value) {
  4498. pb::ThrowHelper.ThrowIfNull(value, "value");
  4499. result.hasValue = true;
  4500. result.value_ = value;
  4501. return this;
  4502. }
  4503. public Builder ClearValue() {
  4504. result.hasValue = false;
  4505. result.value_ = "";
  4506. return this;
  4507. }
  4508. }
  4509. static StringProperty() {
  4510. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  4511. }
  4512. }
  4513. public sealed partial class StringMapProperty : pb::GeneratedMessage<StringMapProperty, StringMapProperty.Builder> {
  4514. private static readonly StringMapProperty defaultInstance = new Builder().BuildPartial();
  4515. public static StringMapProperty DefaultInstance {
  4516. get { return defaultInstance; }
  4517. }
  4518. public override StringMapProperty DefaultInstanceForType {
  4519. get { return defaultInstance; }
  4520. }
  4521. protected override StringMapProperty ThisMessage {
  4522. get { return this; }
  4523. }
  4524. public static pbd::MessageDescriptor Descriptor {
  4525. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__Descriptor; }
  4526. }
  4527. protected override pb::FieldAccess.FieldAccessorTable<StringMapProperty, StringMapProperty.Builder> InternalFieldAccessors {
  4528. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_StringMapProperty__FieldAccessorTable; }
  4529. }
  4530. public const int KeysFieldNumber = 2;
  4531. private pbc::PopsicleList<string> keys_ = new pbc::PopsicleList<string>();
  4532. public scg::IList<string> KeysList {
  4533. get { return pbc::Lists.AsReadOnly(keys_); }
  4534. }
  4535. public int KeysCount {
  4536. get { return keys_.Count; }
  4537. }
  4538. public string GetKeys(int index) {
  4539. return keys_[index];
  4540. }
  4541. public const int ValuesFieldNumber = 3;
  4542. private pbc::PopsicleList<string> values_ = new pbc::PopsicleList<string>();
  4543. public scg::IList<string> ValuesList {
  4544. get { return pbc::Lists.AsReadOnly(values_); }
  4545. }
  4546. public int ValuesCount {
  4547. get { return values_.Count; }
  4548. }
  4549. public string GetValues(int index) {
  4550. return values_[index];
  4551. }
  4552. public override bool IsInitialized {
  4553. get {
  4554. return true;
  4555. }
  4556. }
  4557. public override void WriteTo(pb::CodedOutputStream output) {
  4558. if (keys_.Count > 0) {
  4559. foreach (string element in keys_) {
  4560. output.WriteString(2, element);
  4561. }
  4562. }
  4563. if (values_.Count > 0) {
  4564. foreach (string element in values_) {
  4565. output.WriteString(3, element);
  4566. }
  4567. }
  4568. UnknownFields.WriteTo(output);
  4569. }
  4570. private int memoizedSerializedSize = -1;
  4571. public override int SerializedSize {
  4572. get {
  4573. int size = memoizedSerializedSize;
  4574. if (size != -1) return size;
  4575. size = 0;
  4576. {
  4577. int dataSize = 0;
  4578. foreach (string element in KeysList) {
  4579. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  4580. }
  4581. size += dataSize;
  4582. size += 1 * keys_.Count;
  4583. }
  4584. {
  4585. int dataSize = 0;
  4586. foreach (string element in ValuesList) {
  4587. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  4588. }
  4589. size += dataSize;
  4590. size += 1 * values_.Count;
  4591. }
  4592. size += UnknownFields.SerializedSize;
  4593. memoizedSerializedSize = size;
  4594. return size;
  4595. }
  4596. }
  4597. public static StringMapProperty ParseFrom(pb::ByteString data) {
  4598. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4599. }
  4600. public static StringMapProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4601. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4602. }
  4603. public static StringMapProperty ParseFrom(byte[] data) {
  4604. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4605. }
  4606. public static StringMapProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4607. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4608. }
  4609. public static StringMapProperty ParseFrom(global::System.IO.Stream input) {
  4610. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4611. }
  4612. public static StringMapProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4613. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4614. }
  4615. public static StringMapProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  4616. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4617. }
  4618. public static StringMapProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4619. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4620. }
  4621. public static StringMapProperty ParseFrom(pb::CodedInputStream input) {
  4622. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4623. }
  4624. public static StringMapProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4625. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4626. }
  4627. public static Builder CreateBuilder() { return new Builder(); }
  4628. public override Builder ToBuilder() { return CreateBuilder(this); }
  4629. public override Builder CreateBuilderForType() { return new Builder(); }
  4630. public static Builder CreateBuilder(StringMapProperty prototype) {
  4631. return (Builder) new Builder().MergeFrom(prototype);
  4632. }
  4633. public sealed partial class Builder : pb::GeneratedBuilder<StringMapProperty, Builder> {
  4634. protected override Builder ThisBuilder {
  4635. get { return this; }
  4636. }
  4637. public Builder() {}
  4638. StringMapProperty result = new StringMapProperty();
  4639. protected override StringMapProperty MessageBeingBuilt {
  4640. get { return result; }
  4641. }
  4642. public override Builder Clear() {
  4643. result = new StringMapProperty();
  4644. return this;
  4645. }
  4646. public override Builder Clone() {
  4647. return new Builder().MergeFrom(result);
  4648. }
  4649. public override pbd::MessageDescriptor DescriptorForType {
  4650. get { return global::Sirikata.Protocol._PBJ_Internal.StringMapProperty.Descriptor; }
  4651. }
  4652. public override StringMapProperty DefaultInstanceForType {
  4653. get { return global::Sirikata.Protocol._PBJ_Internal.StringMapProperty.DefaultInstance; }
  4654. }
  4655. public override StringMapProperty BuildPartial() {
  4656. if (result == null) {
  4657. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  4658. }
  4659. result.keys_.MakeReadOnly();
  4660. result.values_.MakeReadOnly();
  4661. StringMapProperty returnMe = result;
  4662. result = null;
  4663. return returnMe;
  4664. }
  4665. public override Builder MergeFrom(pb::IMessage other) {
  4666. if (other is StringMapProperty) {
  4667. return MergeFrom((StringMapProperty) other);
  4668. } else {
  4669. base.MergeFrom(other);
  4670. return this;
  4671. }
  4672. }
  4673. public override Builder MergeFrom(StringMapProperty other) {
  4674. if (other == global::Sirikata.Protocol._PBJ_Internal.StringMapProperty.DefaultInstance) return this;
  4675. if (other.keys_.Count != 0) {
  4676. base.AddRange(other.keys_, result.keys_);
  4677. }
  4678. if (other.values_.Count != 0) {
  4679. base.AddRange(other.values_, result.values_);
  4680. }
  4681. this.MergeUnknownFields(other.UnknownFields);
  4682. return this;
  4683. }
  4684. public override Builder MergeFrom(pb::CodedInputStream input) {
  4685. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4686. }
  4687. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4688. pb::UnknownFieldSet.Builder unknownFields = null;
  4689. while (true) {
  4690. uint tag = input.ReadTag();
  4691. switch (tag) {
  4692. case 0: {
  4693. if (unknownFields != null) {
  4694. this.UnknownFields = unknownFields.Build();
  4695. }
  4696. return this;
  4697. }
  4698. default: {
  4699. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4700. if (unknownFields != null) {
  4701. this.UnknownFields = unknownFields.Build();
  4702. }
  4703. return this;
  4704. }
  4705. if (unknownFields == null) {
  4706. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4707. }
  4708. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  4709. break;
  4710. }
  4711. case 18: {
  4712. AddKeys(input.ReadString());
  4713. break;
  4714. }
  4715. case 26: {
  4716. AddValues(input.ReadString());
  4717. break;
  4718. }
  4719. }
  4720. }
  4721. }
  4722. public pbc::IPopsicleList<string> KeysList {
  4723. get { return result.keys_; }
  4724. }
  4725. public int KeysCount {
  4726. get { return result.KeysCount; }
  4727. }
  4728. public string GetKeys(int index) {
  4729. return result.GetKeys(index);
  4730. }
  4731. public Builder SetKeys(int index, string value) {
  4732. pb::ThrowHelper.ThrowIfNull(value, "value");
  4733. result.keys_[index] = value;
  4734. return this;
  4735. }
  4736. public Builder AddKeys(string value) {
  4737. pb::ThrowHelper.ThrowIfNull(value, "value");
  4738. result.keys_.Add(value);
  4739. return this;
  4740. }
  4741. public Builder AddRangeKeys(scg::IEnumerable<string> values) {
  4742. base.AddRange(values, result.keys_);
  4743. return this;
  4744. }
  4745. public Builder ClearKeys() {
  4746. result.keys_.Clear();
  4747. return this;
  4748. }
  4749. public pbc::IPopsicleList<string> ValuesList {
  4750. get { return result.values_; }
  4751. }
  4752. public int ValuesCount {
  4753. get { return result.ValuesCount; }
  4754. }
  4755. public string GetValues(int index) {
  4756. return result.GetValues(index);
  4757. }
  4758. public Builder SetValues(int index, string value) {
  4759. pb::ThrowHelper.ThrowIfNull(value, "value");
  4760. result.values_[index] = value;
  4761. return this;
  4762. }
  4763. public Builder AddValues(string value) {
  4764. pb::ThrowHelper.ThrowIfNull(value, "value");
  4765. result.values_.Add(value);
  4766. return this;
  4767. }
  4768. public Builder AddRangeValues(scg::IEnumerable<string> values) {
  4769. base.AddRange(values, result.values_);
  4770. return this;
  4771. }
  4772. public Builder ClearValues() {
  4773. result.values_.Clear();
  4774. return this;
  4775. }
  4776. }
  4777. static StringMapProperty() {
  4778. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  4779. }
  4780. }
  4781. public sealed partial class PhysicalParameters : pb::GeneratedMessage<PhysicalParameters, PhysicalParameters.Builder> {
  4782. private static readonly PhysicalParameters defaultInstance = new Builder().BuildPartial();
  4783. public static PhysicalParameters DefaultInstance {
  4784. get { return defaultInstance; }
  4785. }
  4786. public override PhysicalParameters DefaultInstanceForType {
  4787. get { return defaultInstance; }
  4788. }
  4789. protected override PhysicalParameters ThisMessage {
  4790. get { return this; }
  4791. }
  4792. public static pbd::MessageDescriptor Descriptor {
  4793. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__Descriptor; }
  4794. }
  4795. protected override pb::FieldAccess.FieldAccessorTable<PhysicalParameters, PhysicalParameters.Builder> InternalFieldAccessors {
  4796. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_PhysicalParameters__FieldAccessorTable; }
  4797. }
  4798. #region Nested types
  4799. public static class Types {
  4800. public enum Mode {
  4801. NONPHYSICAL = 0,
  4802. STATIC = 1,
  4803. DYNAMICBOX = 2,
  4804. DYNAMICSPHERE = 3,
  4805. DYNAMICCYLINDER = 4,
  4806. CHARACTER = 5,
  4807. }
  4808. }
  4809. #endregion
  4810. public const int ModeFieldNumber = 2;
  4811. private bool hasMode;
  4812. private global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode mode_ = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode.NONPHYSICAL;
  4813. public bool HasMode {
  4814. get { return hasMode; }
  4815. }
  4816. public global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode Mode {
  4817. get { return mode_; }
  4818. }
  4819. public const int DensityFieldNumber = 3;
  4820. private bool hasDensity;
  4821. private float density_ = 0F;
  4822. public bool HasDensity {
  4823. get { return hasDensity; }
  4824. }
  4825. public float Density {
  4826. get { return density_; }
  4827. }
  4828. public const int FrictionFieldNumber = 4;
  4829. private bool hasFriction;
  4830. private float friction_ = 0F;
  4831. public bool HasFriction {
  4832. get { return hasFriction; }
  4833. }
  4834. public float Friction {
  4835. get { return friction_; }
  4836. }
  4837. public const int BounceFieldNumber = 5;
  4838. private bool hasBounce;
  4839. private float bounce_ = 0F;
  4840. public bool HasBounce {
  4841. get { return hasBounce; }
  4842. }
  4843. public float Bounce {
  4844. get { return bounce_; }
  4845. }
  4846. public const int HullFieldNumber = 6;
  4847. private int hullMemoizedSerializedSize;
  4848. private pbc::PopsicleList<float> hull_ = new pbc::PopsicleList<float>();
  4849. public scg::IList<float> HullList {
  4850. get { return pbc::Lists.AsReadOnly(hull_); }
  4851. }
  4852. public int HullCount {
  4853. get { return hull_.Count; }
  4854. }
  4855. public float GetHull(int index) {
  4856. return hull_[index];
  4857. }
  4858. public const int CollideMsgFieldNumber = 16;
  4859. private bool hasCollideMsg;
  4860. private uint collideMsg_ = 0;
  4861. public bool HasCollideMsg {
  4862. get { return hasCollideMsg; }
  4863. }
  4864. [global::System.CLSCompliant(false)]
  4865. public uint CollideMsg {
  4866. get { return collideMsg_; }
  4867. }
  4868. public const int CollideMaskFieldNumber = 17;
  4869. private bool hasCollideMask;
  4870. private uint collideMask_ = 0;
  4871. public bool HasCollideMask {
  4872. get { return hasCollideMask; }
  4873. }
  4874. [global::System.CLSCompliant(false)]
  4875. public uint CollideMask {
  4876. get { return collideMask_; }
  4877. }
  4878. public const int GravityFieldNumber = 18;
  4879. private bool hasGravity;
  4880. private float gravity_ = 0F;
  4881. public bool HasGravity {
  4882. get { return hasGravity; }
  4883. }
  4884. public float Gravity {
  4885. get { return gravity_; }
  4886. }
  4887. public override bool IsInitialized {
  4888. get {
  4889. return true;
  4890. }
  4891. }
  4892. public override void WriteTo(pb::CodedOutputStream output) {
  4893. if (HasMode) {
  4894. output.WriteEnum(2, (int) Mode);
  4895. }
  4896. if (HasDensity) {
  4897. output.WriteFloat(3, Density);
  4898. }
  4899. if (HasFriction) {
  4900. output.WriteFloat(4, Friction);
  4901. }
  4902. if (HasBounce) {
  4903. output.WriteFloat(5, Bounce);
  4904. }
  4905. if (hull_.Count > 0) {
  4906. output.WriteRawVarint32(50);
  4907. output.WriteRawVarint32((uint) hullMemoizedSerializedSize);
  4908. foreach (float element in hull_) {
  4909. output.WriteFloatNoTag(element);
  4910. }
  4911. }
  4912. if (HasCollideMsg) {
  4913. output.WriteUInt32(16, CollideMsg);
  4914. }
  4915. if (HasCollideMask) {
  4916. output.WriteUInt32(17, CollideMask);
  4917. }
  4918. if (HasGravity) {
  4919. output.WriteFloat(18, Gravity);
  4920. }
  4921. UnknownFields.WriteTo(output);
  4922. }
  4923. private int memoizedSerializedSize = -1;
  4924. public override int SerializedSize {
  4925. get {
  4926. int size = memoizedSerializedSize;
  4927. if (size != -1) return size;
  4928. size = 0;
  4929. if (HasMode) {
  4930. size += pb::CodedOutputStream.ComputeEnumSize(2, (int) Mode);
  4931. }
  4932. if (HasDensity) {
  4933. size += pb::CodedOutputStream.ComputeFloatSize(3, Density);
  4934. }
  4935. if (HasFriction) {
  4936. size += pb::CodedOutputStream.ComputeFloatSize(4, Friction);
  4937. }
  4938. if (HasBounce) {
  4939. size += pb::CodedOutputStream.ComputeFloatSize(5, Bounce);
  4940. }
  4941. {
  4942. int dataSize = 0;
  4943. dataSize = 4 * hull_.Count;
  4944. size += dataSize;
  4945. if (hull_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  4946. hullMemoizedSerializedSize = dataSize;
  4947. }
  4948. if (HasCollideMsg) {
  4949. size += pb::CodedOutputStream.ComputeUInt32Size(16, CollideMsg);
  4950. }
  4951. if (HasCollideMask) {
  4952. size += pb::CodedOutputStream.ComputeUInt32Size(17, CollideMask);
  4953. }
  4954. if (HasGravity) {
  4955. size += pb::CodedOutputStream.ComputeFloatSize(18, Gravity);
  4956. }
  4957. size += UnknownFields.SerializedSize;
  4958. memoizedSerializedSize = size;
  4959. return size;
  4960. }
  4961. }
  4962. public static PhysicalParameters ParseFrom(pb::ByteString data) {
  4963. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4964. }
  4965. public static PhysicalParameters ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4966. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4967. }
  4968. public static PhysicalParameters ParseFrom(byte[] data) {
  4969. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4970. }
  4971. public static PhysicalParameters ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4972. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4973. }
  4974. public static PhysicalParameters ParseFrom(global::System.IO.Stream input) {
  4975. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4976. }
  4977. public static PhysicalParameters ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4978. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4979. }
  4980. public static PhysicalParameters ParseDelimitedFrom(global::System.IO.Stream input) {
  4981. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4982. }
  4983. public static PhysicalParameters ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4984. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4985. }
  4986. public static PhysicalParameters ParseFrom(pb::CodedInputStream input) {
  4987. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4988. }
  4989. public static PhysicalParameters ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4990. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4991. }
  4992. public static Builder CreateBuilder() { return new Builder(); }
  4993. public override Builder ToBuilder() { return CreateBuilder(this); }
  4994. public override Builder CreateBuilderForType() { return new Builder(); }
  4995. public static Builder CreateBuilder(PhysicalParameters prototype) {
  4996. return (Builder) new Builder().MergeFrom(prototype);
  4997. }
  4998. public sealed partial class Builder : pb::GeneratedBuilder<PhysicalParameters, Builder> {
  4999. protected override Builder ThisBuilder {
  5000. get { return this; }
  5001. }
  5002. public Builder() {}
  5003. PhysicalParameters result = new PhysicalParameters();
  5004. protected override PhysicalParameters MessageBeingBuilt {
  5005. get { return result; }
  5006. }
  5007. public override Builder Clear() {
  5008. result = new PhysicalParameters();
  5009. return this;
  5010. }
  5011. public override Builder Clone() {
  5012. return new Builder().MergeFrom(result);
  5013. }
  5014. public override pbd::MessageDescriptor DescriptorForType {
  5015. get { return global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Descriptor; }
  5016. }
  5017. public override PhysicalParameters DefaultInstanceForType {
  5018. get { return global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.DefaultInstance; }
  5019. }
  5020. public override PhysicalParameters BuildPartial() {
  5021. if (result == null) {
  5022. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  5023. }
  5024. result.hull_.MakeReadOnly();
  5025. PhysicalParameters returnMe = result;
  5026. result = null;
  5027. return returnMe;
  5028. }
  5029. public override Builder MergeFrom(pb::IMessage other) {
  5030. if (other is PhysicalParameters) {
  5031. return MergeFrom((PhysicalParameters) other);
  5032. } else {
  5033. base.MergeFrom(other);
  5034. return this;
  5035. }
  5036. }
  5037. public override Builder MergeFrom(PhysicalParameters other) {
  5038. if (other == global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.DefaultInstance) return this;
  5039. if (other.HasMode) {
  5040. Mode = other.Mode;
  5041. }
  5042. if (other.HasDensity) {
  5043. Density = other.Density;
  5044. }
  5045. if (other.HasFriction) {
  5046. Friction = other.Friction;
  5047. }
  5048. if (other.HasBounce) {
  5049. Bounce = other.Bounce;
  5050. }
  5051. if (other.hull_.Count != 0) {
  5052. base.AddRange(other.hull_, result.hull_);
  5053. }
  5054. if (other.HasCollideMsg) {
  5055. CollideMsg = other.CollideMsg;
  5056. }
  5057. if (other.HasCollideMask) {
  5058. CollideMask = other.CollideMask;
  5059. }
  5060. if (other.HasGravity) {
  5061. Gravity = other.Gravity;
  5062. }
  5063. this.MergeUnknownFields(other.UnknownFields);
  5064. return this;
  5065. }
  5066. public override Builder MergeFrom(pb::CodedInputStream input) {
  5067. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5068. }
  5069. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5070. pb::UnknownFieldSet.Builder unknownFields = null;
  5071. while (true) {
  5072. uint tag = input.ReadTag();
  5073. switch (tag) {
  5074. case 0: {
  5075. if (unknownFields != null) {
  5076. this.UnknownFields = unknownFields.Build();
  5077. }
  5078. return this;
  5079. }
  5080. default: {
  5081. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5082. if (unknownFields != null) {
  5083. this.UnknownFields = unknownFields.Build();
  5084. }
  5085. return this;
  5086. }
  5087. if (unknownFields == null) {
  5088. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5089. }
  5090. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  5091. break;
  5092. }
  5093. case 16: {
  5094. int rawValue = input.ReadEnum();
  5095. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode), rawValue)) {
  5096. if (unknownFields == null) {
  5097. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5098. }
  5099. unknownFields.MergeVarintField(2, (ulong) rawValue);
  5100. } else {
  5101. Mode = (global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode) rawValue;
  5102. }
  5103. break;
  5104. }
  5105. case 29: {
  5106. Density = input.ReadFloat();
  5107. break;
  5108. }
  5109. case 37: {
  5110. Friction = input.ReadFloat();
  5111. break;
  5112. }
  5113. case 45: {
  5114. Bounce = input.ReadFloat();
  5115. break;
  5116. }
  5117. case 50: {
  5118. int length = input.ReadInt32();
  5119. int limit = input.PushLimit(length);
  5120. while (!input.ReachedLimit) {
  5121. AddHull(input.ReadFloat());
  5122. }
  5123. input.PopLimit(limit);
  5124. break;
  5125. }
  5126. case 128: {
  5127. CollideMsg = input.ReadUInt32();
  5128. break;
  5129. }
  5130. case 136: {
  5131. CollideMask = input.ReadUInt32();
  5132. break;
  5133. }
  5134. case 149: {
  5135. Gravity = input.ReadFloat();
  5136. break;
  5137. }
  5138. }
  5139. }
  5140. }
  5141. public bool HasMode {
  5142. get { return result.HasMode; }
  5143. }
  5144. public global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode Mode {
  5145. get { return result.Mode; }
  5146. set { SetMode(value); }
  5147. }
  5148. public Builder SetMode(global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode value) {
  5149. result.hasMode = true;
  5150. result.mode_ = value;
  5151. return this;
  5152. }
  5153. public Builder ClearMode() {
  5154. result.hasMode = false;
  5155. result.mode_ = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Types.Mode.NONPHYSICAL;
  5156. return this;
  5157. }
  5158. public bool HasDensity {
  5159. get { return result.HasDensity; }
  5160. }
  5161. public float Density {
  5162. get { return result.Density; }
  5163. set { SetDensity(value); }
  5164. }
  5165. public Builder SetDensity(float value) {
  5166. result.hasDensity = true;
  5167. result.density_ = value;
  5168. return this;
  5169. }
  5170. public Builder ClearDensity() {
  5171. result.hasDensity = false;
  5172. result.density_ = 0F;
  5173. return this;
  5174. }
  5175. public bool HasFriction {
  5176. get { return result.HasFriction; }
  5177. }
  5178. public float Friction {
  5179. get { return result.Friction; }
  5180. set { SetFriction(value); }
  5181. }
  5182. public Builder SetFriction(float value) {
  5183. result.hasFriction = true;
  5184. result.friction_ = value;
  5185. return this;
  5186. }
  5187. public Builder ClearFriction() {
  5188. result.hasFriction = false;
  5189. result.friction_ = 0F;
  5190. return this;
  5191. }
  5192. public bool HasBounce {
  5193. get { return result.HasBounce; }
  5194. }
  5195. public float Bounce {
  5196. get { return result.Bounce; }
  5197. set { SetBounce(value); }
  5198. }
  5199. public Builder SetBounce(float value) {
  5200. result.hasBounce = true;
  5201. result.bounce_ = value;
  5202. return this;
  5203. }
  5204. public Builder ClearBounce() {
  5205. result.hasBounce = false;
  5206. result.bounce_ = 0F;
  5207. return this;
  5208. }
  5209. public pbc::IPopsicleList<float> HullList {
  5210. get { return result.hull_; }
  5211. }
  5212. public int HullCount {
  5213. get { return result.HullCount; }
  5214. }
  5215. public float GetHull(int index) {
  5216. return result.GetHull(index);
  5217. }
  5218. public Builder SetHull(int index, float value) {
  5219. result.hull_[index] = value;
  5220. return this;
  5221. }
  5222. public Builder AddHull(float value) {
  5223. result.hull_.Add(value);
  5224. return this;
  5225. }
  5226. public Builder AddRangeHull(scg::IEnumerable<float> values) {
  5227. base.AddRange(values, result.hull_);
  5228. return this;
  5229. }
  5230. public Builder ClearHull() {
  5231. result.hull_.Clear();
  5232. return this;
  5233. }
  5234. public bool HasCollideMsg {
  5235. get { return result.HasCollideMsg; }
  5236. }
  5237. [global::System.CLSCompliant(false)]
  5238. public uint CollideMsg {
  5239. get { return result.CollideMsg; }
  5240. set { SetCollideMsg(value); }
  5241. }
  5242. [global::System.CLSCompliant(false)]
  5243. public Builder SetCollideMsg(uint value) {
  5244. result.hasCollideMsg = true;
  5245. result.collideMsg_ = value;
  5246. return this;
  5247. }
  5248. public Builder ClearCollideMsg() {
  5249. result.hasCollideMsg = false;
  5250. result.collideMsg_ = 0;
  5251. return this;
  5252. }
  5253. public bool HasCollideMask {
  5254. get { return result.HasCollideMask; }
  5255. }
  5256. [global::System.CLSCompliant(false)]
  5257. public uint CollideMask {
  5258. get { return result.CollideMask; }
  5259. set { SetCollideMask(value); }
  5260. }
  5261. [global::System.CLSCompliant(false)]
  5262. public Builder SetCollideMask(uint value) {
  5263. result.hasCollideMask = true;
  5264. result.collideMask_ = value;
  5265. return this;
  5266. }
  5267. public Builder ClearCollideMask() {
  5268. result.hasCollideMask = false;
  5269. result.collideMask_ = 0;
  5270. return this;
  5271. }
  5272. public bool HasGravity {
  5273. get { return result.HasGravity; }
  5274. }
  5275. public float Gravity {
  5276. get { return result.Gravity; }
  5277. set { SetGravity(value); }
  5278. }
  5279. public Builder SetGravity(float value) {
  5280. result.hasGravity = true;
  5281. result.gravity_ = value;
  5282. return this;
  5283. }
  5284. public Builder ClearGravity() {
  5285. result.hasGravity = false;
  5286. result.gravity_ = 0F;
  5287. return this;
  5288. }
  5289. }
  5290. static PhysicalParameters() {
  5291. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  5292. }
  5293. }
  5294. public sealed partial class LightInfoProperty : pb::GeneratedMessage<LightInfoProperty, LightInfoProperty.Builder> {
  5295. private static readonly LightInfoProperty defaultInstance = new Builder().BuildPartial();
  5296. public static LightInfoProperty DefaultInstance {
  5297. get { return defaultInstance; }
  5298. }
  5299. public override LightInfoProperty DefaultInstanceForType {
  5300. get { return defaultInstance; }
  5301. }
  5302. protected override LightInfoProperty ThisMessage {
  5303. get { return this; }
  5304. }
  5305. public static pbd::MessageDescriptor Descriptor {
  5306. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__Descriptor; }
  5307. }
  5308. protected override pb::FieldAccess.FieldAccessorTable<LightInfoProperty, LightInfoProperty.Builder> InternalFieldAccessors {
  5309. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_LightInfoProperty__FieldAccessorTable; }
  5310. }
  5311. #region Nested types
  5312. public static class Types {
  5313. public enum LightTypes {
  5314. POINT = 0,
  5315. SPOTLIGHT = 1,
  5316. DIRECTIONAL = 2,
  5317. }
  5318. }
  5319. #endregion
  5320. public const int DiffuseColorFieldNumber = 3;
  5321. private int diffuseColorMemoizedSerializedSize;
  5322. private pbc::PopsicleList<float> diffuseColor_ = new pbc::PopsicleList<float>();
  5323. public scg::IList<float> DiffuseColorList {
  5324. get { return pbc::Lists.AsReadOnly(diffuseColor_); }
  5325. }
  5326. public int DiffuseColorCount {
  5327. get { return diffuseColor_.Count; }
  5328. }
  5329. public float GetDiffuseColor(int index) {
  5330. return diffuseColor_[index];
  5331. }
  5332. public const int SpecularColorFieldNumber = 4;
  5333. private int specularColorMemoizedSerializedSize;
  5334. private pbc::PopsicleList<float> specularColor_ = new pbc::PopsicleList<float>();
  5335. public scg::IList<float> SpecularColorList {
  5336. get { return pbc::Lists.AsReadOnly(specularColor_); }
  5337. }
  5338. public int SpecularColorCount {
  5339. get { return specularColor_.Count; }
  5340. }
  5341. public float GetSpecularColor(int index) {
  5342. return specularColor_[index];
  5343. }
  5344. public const int PowerFieldNumber = 5;
  5345. private bool hasPower;
  5346. private float power_ = 0F;
  5347. public bool HasPower {
  5348. get { return hasPower; }
  5349. }
  5350. public float Power {
  5351. get { return power_; }
  5352. }
  5353. public const int AmbientColorFieldNumber = 6;
  5354. private int ambientColorMemoizedSerializedSize;
  5355. private pbc::PopsicleList<float> ambientColor_ = new pbc::PopsicleList<float>();
  5356. public scg::IList<float> AmbientColorList {
  5357. get { return pbc::Lists.AsReadOnly(ambientColor_); }
  5358. }
  5359. public int AmbientColorCount {
  5360. get { return ambientColor_.Count; }
  5361. }
  5362. public float GetAmbientColor(int index) {
  5363. return ambientColor_[index];
  5364. }
  5365. public const int ShadowColorFieldNumber = 7;
  5366. private int shadowColorMemoizedSerializedSize;
  5367. private pbc::PopsicleList<float> shadowColor_ = new pbc::PopsicleList<float>();
  5368. public scg::IList<float> ShadowColorList {
  5369. get { return pbc::Lists.AsReadOnly(shadowColor_); }
  5370. }
  5371. public int ShadowColorCount {
  5372. get { return shadowColor_.Count; }
  5373. }
  5374. public float GetShadowColor(int index) {
  5375. return shadowColor_[index];
  5376. }
  5377. public const int LightRangeFieldNumber = 8;
  5378. private bool hasLightRange;
  5379. private double lightRange_ = 0D;
  5380. public bool HasLightRange {
  5381. get { return hasLightRange; }
  5382. }
  5383. public double LightRange {
  5384. get { return lightRange_; }
  5385. }
  5386. public const int ConstantFalloffFieldNumber = 9;
  5387. private bool hasConstantFalloff;
  5388. private float constantFalloff_ = 0F;
  5389. public bool HasConstantFalloff {
  5390. get { return hasConstantFalloff; }
  5391. }
  5392. public float ConstantFalloff {
  5393. get { return constantFalloff_; }
  5394. }
  5395. public const int LinearFalloffFieldNumber = 10;
  5396. private bool hasLinearFalloff;
  5397. private float linearFalloff_ = 0F;
  5398. public bool HasLinearFalloff {
  5399. get { return hasLinearFalloff; }
  5400. }
  5401. public float LinearFalloff {
  5402. get { return linearFalloff_; }
  5403. }
  5404. public const int QuadraticFalloffFieldNumber = 11;
  5405. private bool hasQuadraticFalloff;
  5406. private float quadraticFalloff_ = 0F;
  5407. public bool HasQuadraticFalloff {
  5408. get { return hasQuadraticFalloff; }
  5409. }
  5410. public float QuadraticFalloff {
  5411. get { return quadraticFalloff_; }
  5412. }
  5413. public const int ConeInnerRadiansFieldNumber = 12;
  5414. private bool hasConeInnerRadians;
  5415. private float coneInnerRadians_ = 0F;
  5416. public bool HasConeInnerRadians {
  5417. get { return hasConeInnerRadians; }
  5418. }
  5419. public float ConeInnerRadians {
  5420. get { return coneInnerRadians_; }
  5421. }
  5422. public const int ConeOuterRadiansFieldNumber = 13;
  5423. private bool hasConeOuterRadians;
  5424. private float coneOuterRadians_ = 0F;
  5425. public bool HasConeOuterRadians {
  5426. get { return hasConeOuterRadians; }
  5427. }
  5428. public float ConeOuterRadians {
  5429. get { return coneOuterRadians_; }
  5430. }
  5431. public const int ConeFalloffFieldNumber = 14;
  5432. private bool hasConeFalloff;
  5433. private float coneFalloff_ = 0F;
  5434. public bool HasConeFalloff {
  5435. get { return hasConeFalloff; }
  5436. }
  5437. public float ConeFalloff {
  5438. get { return coneFalloff_; }
  5439. }
  5440. public const int TypeFieldNumber = 15;
  5441. private bool hasType;
  5442. private global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes type_ = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes.POINT;
  5443. public bool HasType {
  5444. get { return hasType; }
  5445. }
  5446. public global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes Type {
  5447. get { return type_; }
  5448. }
  5449. public const int CastsShadowFieldNumber = 16;
  5450. private bool hasCastsShadow;
  5451. private bool castsShadow_ = false;
  5452. public bool HasCastsShadow {
  5453. get { return hasCastsShadow; }
  5454. }
  5455. public bool CastsShadow {
  5456. get { return castsShadow_; }
  5457. }
  5458. public override bool IsInitialized {
  5459. get {
  5460. return true;
  5461. }
  5462. }
  5463. public override void WriteTo(pb::CodedOutputStream output) {
  5464. if (diffuseColor_.Count > 0) {
  5465. output.WriteRawVarint32(26);
  5466. output.WriteRawVarint32((uint) diffuseColorMemoizedSerializedSize);
  5467. foreach (float element in diffuseColor_) {
  5468. output.WriteFloatNoTag(element);
  5469. }
  5470. }
  5471. if (specularColor_.Count > 0) {
  5472. output.WriteRawVarint32(34);
  5473. output.WriteRawVarint32((uint) specularColorMemoizedSerializedSize);
  5474. foreach (float element in specularColor_) {
  5475. output.WriteFloatNoTag(element);
  5476. }
  5477. }
  5478. if (HasPower) {
  5479. output.WriteFloat(5, Power);
  5480. }
  5481. if (ambientColor_.Count > 0) {
  5482. output.WriteRawVarint32(50);
  5483. output.WriteRawVarint32((uint) ambientColorMemoizedSerializedSize);
  5484. foreach (float element in ambientColor_) {
  5485. output.WriteFloatNoTag(element);
  5486. }
  5487. }
  5488. if (shadowColor_.Count > 0) {
  5489. output.WriteRawVarint32(58);
  5490. output.WriteRawVarint32((uint) shadowColorMemoizedSerializedSize);
  5491. foreach (float element in shadowColor_) {
  5492. output.WriteFloatNoTag(element);
  5493. }
  5494. }
  5495. if (HasLightRange) {
  5496. output.WriteDouble(8, LightRange);
  5497. }
  5498. if (HasConstantFalloff) {
  5499. output.WriteFloat(9, ConstantFalloff);
  5500. }
  5501. if (HasLinearFalloff) {
  5502. output.WriteFloat(10, LinearFalloff);
  5503. }
  5504. if (HasQuadraticFalloff) {
  5505. output.WriteFloat(11, QuadraticFalloff);
  5506. }
  5507. if (HasConeInnerRadians) {
  5508. output.WriteFloat(12, ConeInnerRadians);
  5509. }
  5510. if (HasConeOuterRadians) {
  5511. output.WriteFloat(13, ConeOuterRadians);
  5512. }
  5513. if (HasConeFalloff) {
  5514. output.WriteFloat(14, ConeFalloff);
  5515. }
  5516. if (HasType) {
  5517. output.WriteEnum(15, (int) Type);
  5518. }
  5519. if (HasCastsShadow) {
  5520. output.WriteBool(16, CastsShadow);
  5521. }
  5522. UnknownFields.WriteTo(output);
  5523. }
  5524. private int memoizedSerializedSize = -1;
  5525. public override int SerializedSize {
  5526. get {
  5527. int size = memoizedSerializedSize;
  5528. if (size != -1) return size;
  5529. size = 0;
  5530. {
  5531. int dataSize = 0;
  5532. dataSize = 4 * diffuseColor_.Count;
  5533. size += dataSize;
  5534. if (diffuseColor_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  5535. diffuseColorMemoizedSerializedSize = dataSize;
  5536. }
  5537. {
  5538. int dataSize = 0;
  5539. dataSize = 4 * specularColor_.Count;
  5540. size += dataSize;
  5541. if (specularColor_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  5542. specularColorMemoizedSerializedSize = dataSize;
  5543. }
  5544. if (HasPower) {
  5545. size += pb::CodedOutputStream.ComputeFloatSize(5, Power);
  5546. }
  5547. {
  5548. int dataSize = 0;
  5549. dataSize = 4 * ambientColor_.Count;
  5550. size += dataSize;
  5551. if (ambientColor_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  5552. ambientColorMemoizedSerializedSize = dataSize;
  5553. }
  5554. {
  5555. int dataSize = 0;
  5556. dataSize = 4 * shadowColor_.Count;
  5557. size += dataSize;
  5558. if (shadowColor_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  5559. shadowColorMemoizedSerializedSize = dataSize;
  5560. }
  5561. if (HasLightRange) {
  5562. size += pb::CodedOutputStream.ComputeDoubleSize(8, LightRange);
  5563. }
  5564. if (HasConstantFalloff) {
  5565. size += pb::CodedOutputStream.ComputeFloatSize(9, ConstantFalloff);
  5566. }
  5567. if (HasLinearFalloff) {
  5568. size += pb::CodedOutputStream.ComputeFloatSize(10, LinearFalloff);
  5569. }
  5570. if (HasQuadraticFalloff) {
  5571. size += pb::CodedOutputStream.ComputeFloatSize(11, QuadraticFalloff);
  5572. }
  5573. if (HasConeInnerRadians) {
  5574. size += pb::CodedOutputStream.ComputeFloatSize(12, ConeInnerRadians);
  5575. }
  5576. if (HasConeOuterRadians) {
  5577. size += pb::CodedOutputStream.ComputeFloatSize(13, ConeOuterRadians);
  5578. }
  5579. if (HasConeFalloff) {
  5580. size += pb::CodedOutputStream.ComputeFloatSize(14, ConeFalloff);
  5581. }
  5582. if (HasType) {
  5583. size += pb::CodedOutputStream.ComputeEnumSize(15, (int) Type);
  5584. }
  5585. if (HasCastsShadow) {
  5586. size += pb::CodedOutputStream.ComputeBoolSize(16, CastsShadow);
  5587. }
  5588. size += UnknownFields.SerializedSize;
  5589. memoizedSerializedSize = size;
  5590. return size;
  5591. }
  5592. }
  5593. public static LightInfoProperty ParseFrom(pb::ByteString data) {
  5594. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5595. }
  5596. public static LightInfoProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  5597. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5598. }
  5599. public static LightInfoProperty ParseFrom(byte[] data) {
  5600. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5601. }
  5602. public static LightInfoProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  5603. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5604. }
  5605. public static LightInfoProperty ParseFrom(global::System.IO.Stream input) {
  5606. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5607. }
  5608. public static LightInfoProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5609. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5610. }
  5611. public static LightInfoProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  5612. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  5613. }
  5614. public static LightInfoProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5615. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  5616. }
  5617. public static LightInfoProperty ParseFrom(pb::CodedInputStream input) {
  5618. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5619. }
  5620. public static LightInfoProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5621. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5622. }
  5623. public static Builder CreateBuilder() { return new Builder(); }
  5624. public override Builder ToBuilder() { return CreateBuilder(this); }
  5625. public override Builder CreateBuilderForType() { return new Builder(); }
  5626. public static Builder CreateBuilder(LightInfoProperty prototype) {
  5627. return (Builder) new Builder().MergeFrom(prototype);
  5628. }
  5629. public sealed partial class Builder : pb::GeneratedBuilder<LightInfoProperty, Builder> {
  5630. protected override Builder ThisBuilder {
  5631. get { return this; }
  5632. }
  5633. public Builder() {}
  5634. LightInfoProperty result = new LightInfoProperty();
  5635. protected override LightInfoProperty MessageBeingBuilt {
  5636. get { return result; }
  5637. }
  5638. public override Builder Clear() {
  5639. result = new LightInfoProperty();
  5640. return this;
  5641. }
  5642. public override Builder Clone() {
  5643. return new Builder().MergeFrom(result);
  5644. }
  5645. public override pbd::MessageDescriptor DescriptorForType {
  5646. get { return global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Descriptor; }
  5647. }
  5648. public override LightInfoProperty DefaultInstanceForType {
  5649. get { return global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.DefaultInstance; }
  5650. }
  5651. public override LightInfoProperty BuildPartial() {
  5652. if (result == null) {
  5653. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  5654. }
  5655. result.diffuseColor_.MakeReadOnly();
  5656. result.specularColor_.MakeReadOnly();
  5657. result.ambientColor_.MakeReadOnly();
  5658. result.shadowColor_.MakeReadOnly();
  5659. LightInfoProperty returnMe = result;
  5660. result = null;
  5661. return returnMe;
  5662. }
  5663. public override Builder MergeFrom(pb::IMessage other) {
  5664. if (other is LightInfoProperty) {
  5665. return MergeFrom((LightInfoProperty) other);
  5666. } else {
  5667. base.MergeFrom(other);
  5668. return this;
  5669. }
  5670. }
  5671. public override Builder MergeFrom(LightInfoProperty other) {
  5672. if (other == global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.DefaultInstance) return this;
  5673. if (other.diffuseColor_.Count != 0) {
  5674. base.AddRange(other.diffuseColor_, result.diffuseColor_);
  5675. }
  5676. if (other.specularColor_.Count != 0) {
  5677. base.AddRange(other.specularColor_, result.specularColor_);
  5678. }
  5679. if (other.HasPower) {
  5680. Power = other.Power;
  5681. }
  5682. if (other.ambientColor_.Count != 0) {
  5683. base.AddRange(other.ambientColor_, result.ambientColor_);
  5684. }
  5685. if (other.shadowColor_.Count != 0) {
  5686. base.AddRange(other.shadowColor_, result.shadowColor_);
  5687. }
  5688. if (other.HasLightRange) {
  5689. LightRange = other.LightRange;
  5690. }
  5691. if (other.HasConstantFalloff) {
  5692. ConstantFalloff = other.ConstantFalloff;
  5693. }
  5694. if (other.HasLinearFalloff) {
  5695. LinearFalloff = other.LinearFalloff;
  5696. }
  5697. if (other.HasQuadraticFalloff) {
  5698. QuadraticFalloff = other.QuadraticFalloff;
  5699. }
  5700. if (other.HasConeInnerRadians) {
  5701. ConeInnerRadians = other.ConeInnerRadians;
  5702. }
  5703. if (other.HasConeOuterRadians) {
  5704. ConeOuterRadians = other.ConeOuterRadians;
  5705. }
  5706. if (other.HasConeFalloff) {
  5707. ConeFalloff = other.ConeFalloff;
  5708. }
  5709. if (other.HasType) {
  5710. Type = other.Type;
  5711. }
  5712. if (other.HasCastsShadow) {
  5713. CastsShadow = other.CastsShadow;
  5714. }
  5715. this.MergeUnknownFields(other.UnknownFields);
  5716. return this;
  5717. }
  5718. public override Builder MergeFrom(pb::CodedInputStream input) {
  5719. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5720. }
  5721. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5722. pb::UnknownFieldSet.Builder unknownFields = null;
  5723. while (true) {
  5724. uint tag = input.ReadTag();
  5725. switch (tag) {
  5726. case 0: {
  5727. if (unknownFields != null) {
  5728. this.UnknownFields = unknownFields.Build();
  5729. }
  5730. return this;
  5731. }
  5732. default: {
  5733. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5734. if (unknownFields != null) {
  5735. this.UnknownFields = unknownFields.Build();
  5736. }
  5737. return this;
  5738. }
  5739. if (unknownFields == null) {
  5740. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5741. }
  5742. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  5743. break;
  5744. }
  5745. case 26: {
  5746. int length = input.ReadInt32();
  5747. int limit = input.PushLimit(length);
  5748. while (!input.ReachedLimit) {
  5749. AddDiffuseColor(input.ReadFloat());
  5750. }
  5751. input.PopLimit(limit);
  5752. break;
  5753. }
  5754. case 34: {
  5755. int length = input.ReadInt32();
  5756. int limit = input.PushLimit(length);
  5757. while (!input.ReachedLimit) {
  5758. AddSpecularColor(input.ReadFloat());
  5759. }
  5760. input.PopLimit(limit);
  5761. break;
  5762. }
  5763. case 45: {
  5764. Power = input.ReadFloat();
  5765. break;
  5766. }
  5767. case 50: {
  5768. int length = input.ReadInt32();
  5769. int limit = input.PushLimit(length);
  5770. while (!input.ReachedLimit) {
  5771. AddAmbientColor(input.ReadFloat());
  5772. }
  5773. input.PopLimit(limit);
  5774. break;
  5775. }
  5776. case 58: {
  5777. int length = input.ReadInt32();
  5778. int limit = input.PushLimit(length);
  5779. while (!input.ReachedLimit) {
  5780. AddShadowColor(input.ReadFloat());
  5781. }
  5782. input.PopLimit(limit);
  5783. break;
  5784. }
  5785. case 65: {
  5786. LightRange = input.ReadDouble();
  5787. break;
  5788. }
  5789. case 77: {
  5790. ConstantFalloff = input.ReadFloat();
  5791. break;
  5792. }
  5793. case 85: {
  5794. LinearFalloff = input.ReadFloat();
  5795. break;
  5796. }
  5797. case 93: {
  5798. QuadraticFalloff = input.ReadFloat();
  5799. break;
  5800. }
  5801. case 101: {
  5802. ConeInnerRadians = input.ReadFloat();
  5803. break;
  5804. }
  5805. case 109: {
  5806. ConeOuterRadians = input.ReadFloat();
  5807. break;
  5808. }
  5809. case 117: {
  5810. ConeFalloff = input.ReadFloat();
  5811. break;
  5812. }
  5813. case 120: {
  5814. int rawValue = input.ReadEnum();
  5815. if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes), rawValue)) {
  5816. if (unknownFields == null) {
  5817. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5818. }
  5819. unknownFields.MergeVarintField(15, (ulong) rawValue);
  5820. } else {
  5821. Type = (global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes) rawValue;
  5822. }
  5823. break;
  5824. }
  5825. case 128: {
  5826. CastsShadow = input.ReadBool();
  5827. break;
  5828. }
  5829. }
  5830. }
  5831. }
  5832. public pbc::IPopsicleList<float> DiffuseColorList {
  5833. get { return result.diffuseColor_; }
  5834. }
  5835. public int DiffuseColorCount {
  5836. get { return result.DiffuseColorCount; }
  5837. }
  5838. public float GetDiffuseColor(int index) {
  5839. return result.GetDiffuseColor(index);
  5840. }
  5841. public Builder SetDiffuseColor(int index, float value) {
  5842. result.diffuseColor_[index] = value;
  5843. return this;
  5844. }
  5845. public Builder AddDiffuseColor(float value) {
  5846. result.diffuseColor_.Add(value);
  5847. return this;
  5848. }
  5849. public Builder AddRangeDiffuseColor(scg::IEnumerable<float> values) {
  5850. base.AddRange(values, result.diffuseColor_);
  5851. return this;
  5852. }
  5853. public Builder ClearDiffuseColor() {
  5854. result.diffuseColor_.Clear();
  5855. return this;
  5856. }
  5857. public pbc::IPopsicleList<float> SpecularColorList {
  5858. get { return result.specularColor_; }
  5859. }
  5860. public int SpecularColorCount {
  5861. get { return result.SpecularColorCount; }
  5862. }
  5863. public float GetSpecularColor(int index) {
  5864. return result.GetSpecularColor(index);
  5865. }
  5866. public Builder SetSpecularColor(int index, float value) {
  5867. result.specularColor_[index] = value;
  5868. return this;
  5869. }
  5870. public Builder AddSpecularColor(float value) {
  5871. result.specularColor_.Add(value);
  5872. return this;
  5873. }
  5874. public Builder AddRangeSpecularColor(scg::IEnumerable<float> values) {
  5875. base.AddRange(values, result.specularColor_);
  5876. return this;
  5877. }
  5878. public Builder ClearSpecularColor() {
  5879. result.specularColor_.Clear();
  5880. return this;
  5881. }
  5882. public bool HasPower {
  5883. get { return result.HasPower; }
  5884. }
  5885. public float Power {
  5886. get { return result.Power; }
  5887. set { SetPower(value); }
  5888. }
  5889. public Builder SetPower(float value) {
  5890. result.hasPower = true;
  5891. result.power_ = value;
  5892. return this;
  5893. }
  5894. public Builder ClearPower() {
  5895. result.hasPower = false;
  5896. result.power_ = 0F;
  5897. return this;
  5898. }
  5899. public pbc::IPopsicleList<float> AmbientColorList {
  5900. get { return result.ambientColor_; }
  5901. }
  5902. public int AmbientColorCount {
  5903. get { return result.AmbientColorCount; }
  5904. }
  5905. public float GetAmbientColor(int index) {
  5906. return result.GetAmbientColor(index);
  5907. }
  5908. public Builder SetAmbientColor(int index, float value) {
  5909. result.ambientColor_[index] = value;
  5910. return this;
  5911. }
  5912. public Builder AddAmbientColor(float value) {
  5913. result.ambientColor_.Add(value);
  5914. return this;
  5915. }
  5916. public Builder AddRangeAmbientColor(scg::IEnumerable<float> values) {
  5917. base.AddRange(values, result.ambientColor_);
  5918. return this;
  5919. }
  5920. public Builder ClearAmbientColor() {
  5921. result.ambientColor_.Clear();
  5922. return this;
  5923. }
  5924. public pbc::IPopsicleList<float> ShadowColorList {
  5925. get { return result.shadowColor_; }
  5926. }
  5927. public int ShadowColorCount {
  5928. get { return result.ShadowColorCount; }
  5929. }
  5930. public float GetShadowColor(int index) {
  5931. return result.GetShadowColor(index);
  5932. }
  5933. public Builder SetShadowColor(int index, float value) {
  5934. result.shadowColor_[index] = value;
  5935. return this;
  5936. }
  5937. public Builder AddShadowColor(float value) {
  5938. result.shadowColor_.Add(value);
  5939. return this;
  5940. }
  5941. public Builder AddRangeShadowColor(scg::IEnumerable<float> values) {
  5942. base.AddRange(values, result.shadowColor_);
  5943. return this;
  5944. }
  5945. public Builder ClearShadowColor() {
  5946. result.shadowColor_.Clear();
  5947. return this;
  5948. }
  5949. public bool HasLightRange {
  5950. get { return result.HasLightRange; }
  5951. }
  5952. public double LightRange {
  5953. get { return result.LightRange; }
  5954. set { SetLightRange(value); }
  5955. }
  5956. public Builder SetLightRange(double value) {
  5957. result.hasLightRange = true;
  5958. result.lightRange_ = value;
  5959. return this;
  5960. }
  5961. public Builder ClearLightRange() {
  5962. result.hasLightRange = false;
  5963. result.lightRange_ = 0D;
  5964. return this;
  5965. }
  5966. public bool HasConstantFalloff {
  5967. get { return result.HasConstantFalloff; }
  5968. }
  5969. public float ConstantFalloff {
  5970. get { return result.ConstantFalloff; }
  5971. set { SetConstantFalloff(value); }
  5972. }
  5973. public Builder SetConstantFalloff(float value) {
  5974. result.hasConstantFalloff = true;
  5975. result.constantFalloff_ = value;
  5976. return this;
  5977. }
  5978. public Builder ClearConstantFalloff() {
  5979. result.hasConstantFalloff = false;
  5980. result.constantFalloff_ = 0F;
  5981. return this;
  5982. }
  5983. public bool HasLinearFalloff {
  5984. get { return result.HasLinearFalloff; }
  5985. }
  5986. public float LinearFalloff {
  5987. get { return result.LinearFalloff; }
  5988. set { SetLinearFalloff(value); }
  5989. }
  5990. public Builder SetLinearFalloff(float value) {
  5991. result.hasLinearFalloff = true;
  5992. result.linearFalloff_ = value;
  5993. return this;
  5994. }
  5995. public Builder ClearLinearFalloff() {
  5996. result.hasLinearFalloff = false;
  5997. result.linearFalloff_ = 0F;
  5998. return this;
  5999. }
  6000. public bool HasQuadraticFalloff {
  6001. get { return result.HasQuadraticFalloff; }
  6002. }
  6003. public float QuadraticFalloff {
  6004. get { return result.QuadraticFalloff; }
  6005. set { SetQuadraticFalloff(value); }
  6006. }
  6007. public Builder SetQuadraticFalloff(float value) {
  6008. result.hasQuadraticFalloff = true;
  6009. result.quadraticFalloff_ = value;
  6010. return this;
  6011. }
  6012. public Builder ClearQuadraticFalloff() {
  6013. result.hasQuadraticFalloff = false;
  6014. result.quadraticFalloff_ = 0F;
  6015. return this;
  6016. }
  6017. public bool HasConeInnerRadians {
  6018. get { return result.HasConeInnerRadians; }
  6019. }
  6020. public float ConeInnerRadians {
  6021. get { return result.ConeInnerRadians; }
  6022. set { SetConeInnerRadians(value); }
  6023. }
  6024. public Builder SetConeInnerRadians(float value) {
  6025. result.hasConeInnerRadians = true;
  6026. result.coneInnerRadians_ = value;
  6027. return this;
  6028. }
  6029. public Builder ClearConeInnerRadians() {
  6030. result.hasConeInnerRadians = false;
  6031. result.coneInnerRadians_ = 0F;
  6032. return this;
  6033. }
  6034. public bool HasConeOuterRadians {
  6035. get { return result.HasConeOuterRadians; }
  6036. }
  6037. public float ConeOuterRadians {
  6038. get { return result.ConeOuterRadians; }
  6039. set { SetConeOuterRadians(value); }
  6040. }
  6041. public Builder SetConeOuterRadians(float value) {
  6042. result.hasConeOuterRadians = true;
  6043. result.coneOuterRadians_ = value;
  6044. return this;
  6045. }
  6046. public Builder ClearConeOuterRadians() {
  6047. result.hasConeOuterRadians = false;
  6048. result.coneOuterRadians_ = 0F;
  6049. return this;
  6050. }
  6051. public bool HasConeFalloff {
  6052. get { return result.HasConeFalloff; }
  6053. }
  6054. public float ConeFalloff {
  6055. get { return result.ConeFalloff; }
  6056. set { SetConeFalloff(value); }
  6057. }
  6058. public Builder SetConeFalloff(float value) {
  6059. result.hasConeFalloff = true;
  6060. result.coneFalloff_ = value;
  6061. return this;
  6062. }
  6063. public Builder ClearConeFalloff() {
  6064. result.hasConeFalloff = false;
  6065. result.coneFalloff_ = 0F;
  6066. return this;
  6067. }
  6068. public bool HasType {
  6069. get { return result.HasType; }
  6070. }
  6071. public global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes Type {
  6072. get { return result.Type; }
  6073. set { SetType(value); }
  6074. }
  6075. public Builder SetType(global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes value) {
  6076. result.hasType = true;
  6077. result.type_ = value;
  6078. return this;
  6079. }
  6080. public Builder ClearType() {
  6081. result.hasType = false;
  6082. result.type_ = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Types.LightTypes.POINT;
  6083. return this;
  6084. }
  6085. public bool HasCastsShadow {
  6086. get { return result.HasCastsShadow; }
  6087. }
  6088. public bool CastsShadow {
  6089. get { return result.CastsShadow; }
  6090. set { SetCastsShadow(value); }
  6091. }
  6092. public Builder SetCastsShadow(bool value) {
  6093. result.hasCastsShadow = true;
  6094. result.castsShadow_ = value;
  6095. return this;
  6096. }
  6097. public Builder ClearCastsShadow() {
  6098. result.hasCastsShadow = false;
  6099. result.castsShadow_ = false;
  6100. return this;
  6101. }
  6102. }
  6103. static LightInfoProperty() {
  6104. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  6105. }
  6106. }
  6107. public sealed partial class ParentProperty : pb::GeneratedMessage<ParentProperty, ParentProperty.Builder> {
  6108. private static readonly ParentProperty defaultInstance = new Builder().BuildPartial();
  6109. public static ParentProperty DefaultInstance {
  6110. get { return defaultInstance; }
  6111. }
  6112. public override ParentProperty DefaultInstanceForType {
  6113. get { return defaultInstance; }
  6114. }
  6115. protected override ParentProperty ThisMessage {
  6116. get { return this; }
  6117. }
  6118. public static pbd::MessageDescriptor Descriptor {
  6119. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__Descriptor; }
  6120. }
  6121. protected override pb::FieldAccess.FieldAccessorTable<ParentProperty, ParentProperty.Builder> InternalFieldAccessors {
  6122. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ParentProperty__FieldAccessorTable; }
  6123. }
  6124. public const int ValueFieldNumber = 10;
  6125. private bool hasValue;
  6126. private pb::ByteString value_ = pb::ByteString.Empty;
  6127. public bool HasValue {
  6128. get { return hasValue; }
  6129. }
  6130. public pb::ByteString Value {
  6131. get { return value_; }
  6132. }
  6133. public override bool IsInitialized {
  6134. get {
  6135. return true;
  6136. }
  6137. }
  6138. public override void WriteTo(pb::CodedOutputStream output) {
  6139. if (HasValue) {
  6140. output.WriteBytes(10, Value);
  6141. }
  6142. UnknownFields.WriteTo(output);
  6143. }
  6144. private int memoizedSerializedSize = -1;
  6145. public override int SerializedSize {
  6146. get {
  6147. int size = memoizedSerializedSize;
  6148. if (size != -1) return size;
  6149. size = 0;
  6150. if (HasValue) {
  6151. size += pb::CodedOutputStream.ComputeBytesSize(10, Value);
  6152. }
  6153. size += UnknownFields.SerializedSize;
  6154. memoizedSerializedSize = size;
  6155. return size;
  6156. }
  6157. }
  6158. public static ParentProperty ParseFrom(pb::ByteString data) {
  6159. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6160. }
  6161. public static ParentProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6162. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6163. }
  6164. public static ParentProperty ParseFrom(byte[] data) {
  6165. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6166. }
  6167. public static ParentProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6168. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6169. }
  6170. public static ParentProperty ParseFrom(global::System.IO.Stream input) {
  6171. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6172. }
  6173. public static ParentProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6174. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6175. }
  6176. public static ParentProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  6177. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6178. }
  6179. public static ParentProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6180. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6181. }
  6182. public static ParentProperty ParseFrom(pb::CodedInputStream input) {
  6183. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6184. }
  6185. public static ParentProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6186. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6187. }
  6188. public static Builder CreateBuilder() { return new Builder(); }
  6189. public override Builder ToBuilder() { return CreateBuilder(this); }
  6190. public override Builder CreateBuilderForType() { return new Builder(); }
  6191. public static Builder CreateBuilder(ParentProperty prototype) {
  6192. return (Builder) new Builder().MergeFrom(prototype);
  6193. }
  6194. public sealed partial class Builder : pb::GeneratedBuilder<ParentProperty, Builder> {
  6195. protected override Builder ThisBuilder {
  6196. get { return this; }
  6197. }
  6198. public Builder() {}
  6199. ParentProperty result = new ParentProperty();
  6200. protected override ParentProperty MessageBeingBuilt {
  6201. get { return result; }
  6202. }
  6203. public override Builder Clear() {
  6204. result = new ParentProperty();
  6205. return this;
  6206. }
  6207. public override Builder Clone() {
  6208. return new Builder().MergeFrom(result);
  6209. }
  6210. public override pbd::MessageDescriptor DescriptorForType {
  6211. get { return global::Sirikata.Protocol._PBJ_Internal.ParentProperty.Descriptor; }
  6212. }
  6213. public override ParentProperty DefaultInstanceForType {
  6214. get { return global::Sirikata.Protocol._PBJ_Internal.ParentProperty.DefaultInstance; }
  6215. }
  6216. public override ParentProperty BuildPartial() {
  6217. if (result == null) {
  6218. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  6219. }
  6220. ParentProperty returnMe = result;
  6221. result = null;
  6222. return returnMe;
  6223. }
  6224. public override Builder MergeFrom(pb::IMessage other) {
  6225. if (other is ParentProperty) {
  6226. return MergeFrom((ParentProperty) other);
  6227. } else {
  6228. base.MergeFrom(other);
  6229. return this;
  6230. }
  6231. }
  6232. public override Builder MergeFrom(ParentProperty other) {
  6233. if (other == global::Sirikata.Protocol._PBJ_Internal.ParentProperty.DefaultInstance) return this;
  6234. if (other.HasValue) {
  6235. Value = other.Value;
  6236. }
  6237. this.MergeUnknownFields(other.UnknownFields);
  6238. return this;
  6239. }
  6240. public override Builder MergeFrom(pb::CodedInputStream input) {
  6241. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6242. }
  6243. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6244. pb::UnknownFieldSet.Builder unknownFields = null;
  6245. while (true) {
  6246. uint tag = input.ReadTag();
  6247. switch (tag) {
  6248. case 0: {
  6249. if (unknownFields != null) {
  6250. this.UnknownFields = unknownFields.Build();
  6251. }
  6252. return this;
  6253. }
  6254. default: {
  6255. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6256. if (unknownFields != null) {
  6257. this.UnknownFields = unknownFields.Build();
  6258. }
  6259. return this;
  6260. }
  6261. if (unknownFields == null) {
  6262. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6263. }
  6264. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  6265. break;
  6266. }
  6267. case 82: {
  6268. Value = input.ReadBytes();
  6269. break;
  6270. }
  6271. }
  6272. }
  6273. }
  6274. public bool HasValue {
  6275. get { return result.HasValue; }
  6276. }
  6277. public pb::ByteString Value {
  6278. get { return result.Value; }
  6279. set { SetValue(value); }
  6280. }
  6281. public Builder SetValue(pb::ByteString value) {
  6282. pb::ThrowHelper.ThrowIfNull(value, "value");
  6283. result.hasValue = true;
  6284. result.value_ = value;
  6285. return this;
  6286. }
  6287. public Builder ClearValue() {
  6288. result.hasValue = false;
  6289. result.value_ = pb::ByteString.Empty;
  6290. return this;
  6291. }
  6292. }
  6293. static ParentProperty() {
  6294. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  6295. }
  6296. }
  6297. public sealed partial class UUIDListProperty : pb::GeneratedMessage<UUIDListProperty, UUIDListProperty.Builder> {
  6298. private static readonly UUIDListProperty defaultInstance = new Builder().BuildPartial();
  6299. public static UUIDListProperty DefaultInstance {
  6300. get { return defaultInstance; }
  6301. }
  6302. public override UUIDListProperty DefaultInstanceForType {
  6303. get { return defaultInstance; }
  6304. }
  6305. protected override UUIDListProperty ThisMessage {
  6306. get { return this; }
  6307. }
  6308. public static pbd::MessageDescriptor Descriptor {
  6309. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__Descriptor; }
  6310. }
  6311. protected override pb::FieldAccess.FieldAccessorTable<UUIDListProperty, UUIDListProperty.Builder> InternalFieldAccessors {
  6312. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_UUIDListProperty__FieldAccessorTable; }
  6313. }
  6314. public const int ValueFieldNumber = 10;
  6315. private pbc::PopsicleList<pb::ByteString> value_ = new pbc::PopsicleList<pb::ByteString>();
  6316. public scg::IList<pb::ByteString> ValueList {
  6317. get { return pbc::Lists.AsReadOnly(value_); }
  6318. }
  6319. public int ValueCount {
  6320. get { return value_.Count; }
  6321. }
  6322. public pb::ByteString GetValue(int index) {
  6323. return value_[index];
  6324. }
  6325. public override bool IsInitialized {
  6326. get {
  6327. return true;
  6328. }
  6329. }
  6330. public override void WriteTo(pb::CodedOutputStream output) {
  6331. if (value_.Count > 0) {
  6332. foreach (pb::ByteString element in value_) {
  6333. output.WriteBytes(10, element);
  6334. }
  6335. }
  6336. UnknownFields.WriteTo(output);
  6337. }
  6338. private int memoizedSerializedSize = -1;
  6339. public override int SerializedSize {
  6340. get {
  6341. int size = memoizedSerializedSize;
  6342. if (size != -1) return size;
  6343. size = 0;
  6344. {
  6345. int dataSize = 0;
  6346. foreach (pb::ByteString element in ValueList) {
  6347. dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
  6348. }
  6349. size += dataSize;
  6350. size += 1 * value_.Count;
  6351. }
  6352. size += UnknownFields.SerializedSize;
  6353. memoizedSerializedSize = size;
  6354. return size;
  6355. }
  6356. }
  6357. public static UUIDListProperty ParseFrom(pb::ByteString data) {
  6358. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6359. }
  6360. public static UUIDListProperty ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6361. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6362. }
  6363. public static UUIDListProperty ParseFrom(byte[] data) {
  6364. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6365. }
  6366. public static UUIDListProperty ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6367. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6368. }
  6369. public static UUIDListProperty ParseFrom(global::System.IO.Stream input) {
  6370. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6371. }
  6372. public static UUIDListProperty ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6373. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6374. }
  6375. public static UUIDListProperty ParseDelimitedFrom(global::System.IO.Stream input) {
  6376. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6377. }
  6378. public static UUIDListProperty ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6379. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6380. }
  6381. public static UUIDListProperty ParseFrom(pb::CodedInputStream input) {
  6382. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6383. }
  6384. public static UUIDListProperty ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6385. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6386. }
  6387. public static Builder CreateBuilder() { return new Builder(); }
  6388. public override Builder ToBuilder() { return CreateBuilder(this); }
  6389. public override Builder CreateBuilderForType() { return new Builder(); }
  6390. public static Builder CreateBuilder(UUIDListProperty prototype) {
  6391. return (Builder) new Builder().MergeFrom(prototype);
  6392. }
  6393. public sealed partial class Builder : pb::GeneratedBuilder<UUIDListProperty, Builder> {
  6394. protected override Builder ThisBuilder {
  6395. get { return this; }
  6396. }
  6397. public Builder() {}
  6398. UUIDListProperty result = new UUIDListProperty();
  6399. protected override UUIDListProperty MessageBeingBuilt {
  6400. get { return result; }
  6401. }
  6402. public override Builder Clear() {
  6403. result = new UUIDListProperty();
  6404. return this;
  6405. }
  6406. public override Builder Clone() {
  6407. return new Builder().MergeFrom(result);
  6408. }
  6409. public override pbd::MessageDescriptor DescriptorForType {
  6410. get { return global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty.Descriptor; }
  6411. }
  6412. public override UUIDListProperty DefaultInstanceForType {
  6413. get { return global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty.DefaultInstance; }
  6414. }
  6415. public override UUIDListProperty BuildPartial() {
  6416. if (result == null) {
  6417. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  6418. }
  6419. result.value_.MakeReadOnly();
  6420. UUIDListProperty returnMe = result;
  6421. result = null;
  6422. return returnMe;
  6423. }
  6424. public override Builder MergeFrom(pb::IMessage other) {
  6425. if (other is UUIDListProperty) {
  6426. return MergeFrom((UUIDListProperty) other);
  6427. } else {
  6428. base.MergeFrom(other);
  6429. return this;
  6430. }
  6431. }
  6432. public override Builder MergeFrom(UUIDListProperty other) {
  6433. if (other == global::Sirikata.Protocol._PBJ_Internal.UUIDListProperty.DefaultInstance) return this;
  6434. if (other.value_.Count != 0) {
  6435. base.AddRange(other.value_, result.value_);
  6436. }
  6437. this.MergeUnknownFields(other.UnknownFields);
  6438. return this;
  6439. }
  6440. public override Builder MergeFrom(pb::CodedInputStream input) {
  6441. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6442. }
  6443. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6444. pb::UnknownFieldSet.Builder unknownFields = null;
  6445. while (true) {
  6446. uint tag = input.ReadTag();
  6447. switch (tag) {
  6448. case 0: {
  6449. if (unknownFields != null) {
  6450. this.UnknownFields = unknownFields.Build();
  6451. }
  6452. return this;
  6453. }
  6454. default: {
  6455. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6456. if (unknownFields != null) {
  6457. this.UnknownFields = unknownFields.Build();
  6458. }
  6459. return this;
  6460. }
  6461. if (unknownFields == null) {
  6462. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6463. }
  6464. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  6465. break;
  6466. }
  6467. case 82: {
  6468. AddValue(input.ReadBytes());
  6469. break;
  6470. }
  6471. }
  6472. }
  6473. }
  6474. public pbc::IPopsicleList<pb::ByteString> ValueList {
  6475. get { return result.value_; }
  6476. }
  6477. public int ValueCount {
  6478. get { return result.ValueCount; }
  6479. }
  6480. public pb::ByteString GetValue(int index) {
  6481. return result.GetValue(index);
  6482. }
  6483. public Builder SetValue(int index, pb::ByteString value) {
  6484. pb::ThrowHelper.ThrowIfNull(value, "value");
  6485. result.value_[index] = value;
  6486. return this;
  6487. }
  6488. public Builder AddValue(pb::ByteString value) {
  6489. pb::ThrowHelper.ThrowIfNull(value, "value");
  6490. result.value_.Add(value);
  6491. return this;
  6492. }
  6493. public Builder AddRangeValue(scg::IEnumerable<pb::ByteString> values) {
  6494. base.AddRange(values, result.value_);
  6495. return this;
  6496. }
  6497. public Builder ClearValue() {
  6498. result.value_.Clear();
  6499. return this;
  6500. }
  6501. }
  6502. static UUIDListProperty() {
  6503. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  6504. }
  6505. }
  6506. public sealed partial class ConnectToSpace : pb::GeneratedMessage<ConnectToSpace, ConnectToSpace.Builder> {
  6507. private static readonly ConnectToSpace defaultInstance = new Builder().BuildPartial();
  6508. public static ConnectToSpace DefaultInstance {
  6509. get { return defaultInstance; }
  6510. }
  6511. public override ConnectToSpace DefaultInstanceForType {
  6512. get { return defaultInstance; }
  6513. }
  6514. protected override ConnectToSpace ThisMessage {
  6515. get { return this; }
  6516. }
  6517. public static pbd::MessageDescriptor Descriptor {
  6518. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__Descriptor; }
  6519. }
  6520. protected override pb::FieldAccess.FieldAccessorTable<ConnectToSpace, ConnectToSpace.Builder> InternalFieldAccessors {
  6521. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_ConnectToSpace__FieldAccessorTable; }
  6522. }
  6523. public const int SpaceIdFieldNumber = 1;
  6524. private bool hasSpaceId;
  6525. private pb::ByteString spaceId_ = pb::ByteString.Empty;
  6526. public bool HasSpaceId {
  6527. get { return hasSpaceId; }
  6528. }
  6529. public pb::ByteString SpaceId {
  6530. get { return spaceId_; }
  6531. }
  6532. public const int ObjectUuidEvidenceFieldNumber = 2;
  6533. private bool hasObjectUuidEvidence;
  6534. private pb::ByteString objectUuidEvidence_ = pb::ByteString.Empty;
  6535. public bool HasObjectUuidEvidence {
  6536. get { return hasObjectUuidEvidence; }
  6537. }
  6538. public pb::ByteString ObjectUuidEvidence {
  6539. get { return objectUuidEvidence_; }
  6540. }
  6541. public const int RequestedObjectLocFieldNumber = 3;
  6542. private bool hasRequestedObjectLoc;
  6543. private global::Sirikata.Protocol._PBJ_Internal.ObjLoc requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  6544. public bool HasRequestedObjectLoc {
  6545. get { return hasRequestedObjectLoc; }
  6546. }
  6547. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc RequestedObjectLoc {
  6548. get { return requestedObjectLoc_; }
  6549. }
  6550. public const int BoundingSphereFieldNumber = 4;
  6551. private int boundingSphereMemoizedSerializedSize;
  6552. private pbc::PopsicleList<float> boundingSphere_ = new pbc::PopsicleList<float>();
  6553. public scg::IList<float> BoundingSphereList {
  6554. get { return pbc::Lists.AsReadOnly(boundingSphere_); }
  6555. }
  6556. public int BoundingSphereCount {
  6557. get { return boundingSphere_.Count; }
  6558. }
  6559. public float GetBoundingSphere(int index) {
  6560. return boundingSphere_[index];
  6561. }
  6562. public override bool IsInitialized {
  6563. get {
  6564. return true;
  6565. }
  6566. }
  6567. public override void WriteTo(pb::CodedOutputStream output) {
  6568. if (HasSpaceId) {
  6569. output.WriteBytes(1, SpaceId);
  6570. }
  6571. if (HasObjectUuidEvidence) {
  6572. output.WriteBytes(2, ObjectUuidEvidence);
  6573. }
  6574. if (HasRequestedObjectLoc) {
  6575. output.WriteMessage(3, RequestedObjectLoc);
  6576. }
  6577. if (boundingSphere_.Count > 0) {
  6578. output.WriteRawVarint32(34);
  6579. output.WriteRawVarint32((uint) boundingSphereMemoizedSerializedSize);
  6580. foreach (float element in boundingSphere_) {
  6581. output.WriteFloatNoTag(element);
  6582. }
  6583. }
  6584. UnknownFields.WriteTo(output);
  6585. }
  6586. private int memoizedSerializedSize = -1;
  6587. public override int SerializedSize {
  6588. get {
  6589. int size = memoizedSerializedSize;
  6590. if (size != -1) return size;
  6591. size = 0;
  6592. if (HasSpaceId) {
  6593. size += pb::CodedOutputStream.ComputeBytesSize(1, SpaceId);
  6594. }
  6595. if (HasObjectUuidEvidence) {
  6596. size += pb::CodedOutputStream.ComputeBytesSize(2, ObjectUuidEvidence);
  6597. }
  6598. if (HasRequestedObjectLoc) {
  6599. size += pb::CodedOutputStream.ComputeMessageSize(3, RequestedObjectLoc);
  6600. }
  6601. {
  6602. int dataSize = 0;
  6603. dataSize = 4 * boundingSphere_.Count;
  6604. size += dataSize;
  6605. if (boundingSphere_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  6606. boundingSphereMemoizedSerializedSize = dataSize;
  6607. }
  6608. size += UnknownFields.SerializedSize;
  6609. memoizedSerializedSize = size;
  6610. return size;
  6611. }
  6612. }
  6613. public static ConnectToSpace ParseFrom(pb::ByteString data) {
  6614. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6615. }
  6616. public static ConnectToSpace ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6617. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6618. }
  6619. public static ConnectToSpace ParseFrom(byte[] data) {
  6620. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6621. }
  6622. public static ConnectToSpace ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6623. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6624. }
  6625. public static ConnectToSpace ParseFrom(global::System.IO.Stream input) {
  6626. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6627. }
  6628. public static ConnectToSpace ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6629. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6630. }
  6631. public static ConnectToSpace ParseDelimitedFrom(global::System.IO.Stream input) {
  6632. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6633. }
  6634. public static ConnectToSpace ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6635. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6636. }
  6637. public static ConnectToSpace ParseFrom(pb::CodedInputStream input) {
  6638. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6639. }
  6640. public static ConnectToSpace ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6641. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6642. }
  6643. public static Builder CreateBuilder() { return new Builder(); }
  6644. public override Builder ToBuilder() { return CreateBuilder(this); }
  6645. public override Builder CreateBuilderForType() { return new Builder(); }
  6646. public static Builder CreateBuilder(ConnectToSpace prototype) {
  6647. return (Builder) new Builder().MergeFrom(prototype);
  6648. }
  6649. public sealed partial class Builder : pb::GeneratedBuilder<ConnectToSpace, Builder> {
  6650. protected override Builder ThisBuilder {
  6651. get { return this; }
  6652. }
  6653. public Builder() {}
  6654. ConnectToSpace result = new ConnectToSpace();
  6655. protected override ConnectToSpace MessageBeingBuilt {
  6656. get { return result; }
  6657. }
  6658. public override Builder Clear() {
  6659. result = new ConnectToSpace();
  6660. return this;
  6661. }
  6662. public override Builder Clone() {
  6663. return new Builder().MergeFrom(result);
  6664. }
  6665. public override pbd::MessageDescriptor DescriptorForType {
  6666. get { return global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Descriptor; }
  6667. }
  6668. public override ConnectToSpace DefaultInstanceForType {
  6669. get { return global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.DefaultInstance; }
  6670. }
  6671. public override ConnectToSpace BuildPartial() {
  6672. if (result == null) {
  6673. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  6674. }
  6675. result.boundingSphere_.MakeReadOnly();
  6676. ConnectToSpace returnMe = result;
  6677. result = null;
  6678. return returnMe;
  6679. }
  6680. public override Builder MergeFrom(pb::IMessage other) {
  6681. if (other is ConnectToSpace) {
  6682. return MergeFrom((ConnectToSpace) other);
  6683. } else {
  6684. base.MergeFrom(other);
  6685. return this;
  6686. }
  6687. }
  6688. public override Builder MergeFrom(ConnectToSpace other) {
  6689. if (other == global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.DefaultInstance) return this;
  6690. if (other.HasSpaceId) {
  6691. SpaceId = other.SpaceId;
  6692. }
  6693. if (other.HasObjectUuidEvidence) {
  6694. ObjectUuidEvidence = other.ObjectUuidEvidence;
  6695. }
  6696. if (other.HasRequestedObjectLoc) {
  6697. MergeRequestedObjectLoc(other.RequestedObjectLoc);
  6698. }
  6699. if (other.boundingSphere_.Count != 0) {
  6700. base.AddRange(other.boundingSphere_, result.boundingSphere_);
  6701. }
  6702. this.MergeUnknownFields(other.UnknownFields);
  6703. return this;
  6704. }
  6705. public override Builder MergeFrom(pb::CodedInputStream input) {
  6706. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6707. }
  6708. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6709. pb::UnknownFieldSet.Builder unknownFields = null;
  6710. while (true) {
  6711. uint tag = input.ReadTag();
  6712. switch (tag) {
  6713. case 0: {
  6714. if (unknownFields != null) {
  6715. this.UnknownFields = unknownFields.Build();
  6716. }
  6717. return this;
  6718. }
  6719. default: {
  6720. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6721. if (unknownFields != null) {
  6722. this.UnknownFields = unknownFields.Build();
  6723. }
  6724. return this;
  6725. }
  6726. if (unknownFields == null) {
  6727. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6728. }
  6729. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  6730. break;
  6731. }
  6732. case 10: {
  6733. SpaceId = input.ReadBytes();
  6734. break;
  6735. }
  6736. case 18: {
  6737. ObjectUuidEvidence = input.ReadBytes();
  6738. break;
  6739. }
  6740. case 26: {
  6741. global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder();
  6742. if (HasRequestedObjectLoc) {
  6743. subBuilder.MergeFrom(RequestedObjectLoc);
  6744. }
  6745. input.ReadMessage(subBuilder, extensionRegistry);
  6746. RequestedObjectLoc = subBuilder.BuildPartial();
  6747. break;
  6748. }
  6749. case 34: {
  6750. int length = input.ReadInt32();
  6751. int limit = input.PushLimit(length);
  6752. while (!input.ReachedLimit) {
  6753. AddBoundingSphere(input.ReadFloat());
  6754. }
  6755. input.PopLimit(limit);
  6756. break;
  6757. }
  6758. }
  6759. }
  6760. }
  6761. public bool HasSpaceId {
  6762. get { return result.HasSpaceId; }
  6763. }
  6764. public pb::ByteString SpaceId {
  6765. get { return result.SpaceId; }
  6766. set { SetSpaceId(value); }
  6767. }
  6768. public Builder SetSpaceId(pb::ByteString value) {
  6769. pb::ThrowHelper.ThrowIfNull(value, "value");
  6770. result.hasSpaceId = true;
  6771. result.spaceId_ = value;
  6772. return this;
  6773. }
  6774. public Builder ClearSpaceId() {
  6775. result.hasSpaceId = false;
  6776. result.spaceId_ = pb::ByteString.Empty;
  6777. return this;
  6778. }
  6779. public bool HasObjectUuidEvidence {
  6780. get { return result.HasObjectUuidEvidence; }
  6781. }
  6782. public pb::ByteString ObjectUuidEvidence {
  6783. get { return result.ObjectUuidEvidence; }
  6784. set { SetObjectUuidEvidence(value); }
  6785. }
  6786. public Builder SetObjectUuidEvidence(pb::ByteString value) {
  6787. pb::ThrowHelper.ThrowIfNull(value, "value");
  6788. result.hasObjectUuidEvidence = true;
  6789. result.objectUuidEvidence_ = value;
  6790. return this;
  6791. }
  6792. public Builder ClearObjectUuidEvidence() {
  6793. result.hasObjectUuidEvidence = false;
  6794. result.objectUuidEvidence_ = pb::ByteString.Empty;
  6795. return this;
  6796. }
  6797. public bool HasRequestedObjectLoc {
  6798. get { return result.HasRequestedObjectLoc; }
  6799. }
  6800. public global::Sirikata.Protocol._PBJ_Internal.ObjLoc RequestedObjectLoc {
  6801. get { return result.RequestedObjectLoc; }
  6802. set { SetRequestedObjectLoc(value); }
  6803. }
  6804. public Builder SetRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  6805. pb::ThrowHelper.ThrowIfNull(value, "value");
  6806. result.hasRequestedObjectLoc = true;
  6807. result.requestedObjectLoc_ = value;
  6808. return this;
  6809. }
  6810. public Builder SetRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc.Builder builderForValue) {
  6811. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6812. result.hasRequestedObjectLoc = true;
  6813. result.requestedObjectLoc_ = builderForValue.Build();
  6814. return this;
  6815. }
  6816. public Builder MergeRequestedObjectLoc(global::Sirikata.Protocol._PBJ_Internal.ObjLoc value) {
  6817. pb::ThrowHelper.ThrowIfNull(value, "value");
  6818. if (result.HasRequestedObjectLoc &&
  6819. result.requestedObjectLoc_ != global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance) {
  6820. result.requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.CreateBuilder(result.requestedObjectLoc_).MergeFrom(value).BuildPartial();
  6821. } else {
  6822. result.requestedObjectLoc_ = value;
  6823. }
  6824. result.hasRequestedObjectLoc = true;
  6825. return this;
  6826. }
  6827. public Builder ClearRequestedObjectLoc() {
  6828. result.hasRequestedObjectLoc = false;
  6829. result.requestedObjectLoc_ = global::Sirikata.Protocol._PBJ_Internal.ObjLoc.DefaultInstance;
  6830. return this;
  6831. }
  6832. public pbc::IPopsicleList<float> BoundingSphereList {
  6833. get { return result.boundingSphere_; }
  6834. }
  6835. public int BoundingSphereCount {
  6836. get { return result.BoundingSphereCount; }
  6837. }
  6838. public float GetBoundingSphere(int index) {
  6839. return result.GetBoundingSphere(index);
  6840. }
  6841. public Builder SetBoundingSphere(int index, float value) {
  6842. result.boundingSphere_[index] = value;
  6843. return this;
  6844. }
  6845. public Builder AddBoundingSphere(float value) {
  6846. result.boundingSphere_.Add(value);
  6847. return this;
  6848. }
  6849. public Builder AddRangeBoundingSphere(scg::IEnumerable<float> values) {
  6850. base.AddRange(values, result.boundingSphere_);
  6851. return this;
  6852. }
  6853. public Builder ClearBoundingSphere() {
  6854. result.boundingSphere_.Clear();
  6855. return this;
  6856. }
  6857. }
  6858. static ConnectToSpace() {
  6859. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  6860. }
  6861. }
  6862. public sealed partial class CreateObject : pb::GeneratedMessage<CreateObject, CreateObject.Builder> {
  6863. private static readonly CreateObject defaultInstance = new Builder().BuildPartial();
  6864. public static CreateObject DefaultInstance {
  6865. get { return defaultInstance; }
  6866. }
  6867. public override CreateObject DefaultInstanceForType {
  6868. get { return defaultInstance; }
  6869. }
  6870. protected override CreateObject ThisMessage {
  6871. get { return this; }
  6872. }
  6873. public static pbd::MessageDescriptor Descriptor {
  6874. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__Descriptor; }
  6875. }
  6876. protected override pb::FieldAccess.FieldAccessorTable<CreateObject, CreateObject.Builder> InternalFieldAccessors {
  6877. get { return global::Sirikata.Protocol._PBJ_Internal.Sirikata.internal__static_Sirikata_Protocol__PBJ_Internal_CreateObject__FieldAccessorTable; }
  6878. }
  6879. public const int ObjectUuidFieldNumber = 1;
  6880. private bool hasObjectUuid;
  6881. private pb::ByteString objectUuid_ = pb::ByteString.Empty;
  6882. public bool HasObjectUuid {
  6883. get { return hasObjectUuid; }
  6884. }
  6885. public pb::ByteString ObjectUuid {
  6886. get { return objectUuid_; }
  6887. }
  6888. public const int SpacePropertiesFieldNumber = 2;
  6889. private pbc::PopsicleList<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace> spaceProperties_ = new pbc::PopsicleList<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace>();
  6890. public scg::IList<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace> SpacePropertiesList {
  6891. get { return spaceProperties_; }
  6892. }
  6893. public int SpacePropertiesCount {
  6894. get { return spaceProperties_.Count; }
  6895. }
  6896. public global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace GetSpaceProperties(int index) {
  6897. return spaceProperties_[index];
  6898. }
  6899. public const int MeshFieldNumber = 3;
  6900. private bool hasMesh;
  6901. private string mesh_ = "";
  6902. public bool HasMesh {
  6903. get { return hasMesh; }
  6904. }
  6905. public string Mesh {
  6906. get { return mesh_; }
  6907. }
  6908. public const int ScaleFieldNumber = 4;
  6909. private int scaleMemoizedSerializedSize;
  6910. private pbc::PopsicleList<float> scale_ = new pbc::PopsicleList<float>();
  6911. public scg::IList<float> ScaleList {
  6912. get { return pbc::Lists.AsReadOnly(scale_); }
  6913. }
  6914. public int ScaleCount {
  6915. get { return scale_.Count; }
  6916. }
  6917. public float GetScale(int index) {
  6918. return scale_[index];
  6919. }
  6920. public const int WeburlFieldNumber = 5;
  6921. private bool hasWeburl;
  6922. private string weburl_ = "";
  6923. public bool HasWeburl {
  6924. get { return hasWeburl; }
  6925. }
  6926. public string Weburl {
  6927. get { return weburl_; }
  6928. }
  6929. public const int LightInfoFieldNumber = 6;
  6930. private bool hasLightInfo;
  6931. private global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty lightInfo_ = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.DefaultInstance;
  6932. public bool HasLightInfo {
  6933. get { return hasLightInfo; }
  6934. }
  6935. public global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty LightInfo {
  6936. get { return lightInfo_; }
  6937. }
  6938. public const int CameraFieldNumber = 7;
  6939. private bool hasCamera;
  6940. private bool camera_ = false;
  6941. public bool HasCamera {
  6942. get { return hasCamera; }
  6943. }
  6944. public bool Camera {
  6945. get { return camera_; }
  6946. }
  6947. public const int PhysicalFieldNumber = 8;
  6948. private bool hasPhysical;
  6949. private global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters physical_ = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.DefaultInstance;
  6950. public bool HasPhysical {
  6951. get { return hasPhysical; }
  6952. }
  6953. public global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters Physical {
  6954. get { return physical_; }
  6955. }
  6956. public override bool IsInitialized {
  6957. get {
  6958. return true;
  6959. }
  6960. }
  6961. public override void WriteTo(pb::CodedOutputStream output) {
  6962. if (HasObjectUuid) {
  6963. output.WriteBytes(1, ObjectUuid);
  6964. }
  6965. foreach (global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace element in SpacePropertiesList) {
  6966. output.WriteMessage(2, element);
  6967. }
  6968. if (HasMesh) {
  6969. output.WriteString(3, Mesh);
  6970. }
  6971. if (scale_.Count > 0) {
  6972. output.WriteRawVarint32(34);
  6973. output.WriteRawVarint32((uint) scaleMemoizedSerializedSize);
  6974. foreach (float element in scale_) {
  6975. output.WriteFloatNoTag(element);
  6976. }
  6977. }
  6978. if (HasWeburl) {
  6979. output.WriteString(5, Weburl);
  6980. }
  6981. if (HasLightInfo) {
  6982. output.WriteMessage(6, LightInfo);
  6983. }
  6984. if (HasCamera) {
  6985. output.WriteBool(7, Camera);
  6986. }
  6987. if (HasPhysical) {
  6988. output.WriteMessage(8, Physical);
  6989. }
  6990. UnknownFields.WriteTo(output);
  6991. }
  6992. private int memoizedSerializedSize = -1;
  6993. public override int SerializedSize {
  6994. get {
  6995. int size = memoizedSerializedSize;
  6996. if (size != -1) return size;
  6997. size = 0;
  6998. if (HasObjectUuid) {
  6999. size += pb::CodedOutputStream.ComputeBytesSize(1, ObjectUuid);
  7000. }
  7001. foreach (global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace element in SpacePropertiesList) {
  7002. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7003. }
  7004. if (HasMesh) {
  7005. size += pb::CodedOutputStream.ComputeStringSize(3, Mesh);
  7006. }
  7007. {
  7008. int dataSize = 0;
  7009. dataSize = 4 * scale_.Count;
  7010. size += dataSize;
  7011. if (scale_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  7012. scaleMemoizedSerializedSize = dataSize;
  7013. }
  7014. if (HasWeburl) {
  7015. size += pb::CodedOutputStream.ComputeStringSize(5, Weburl);
  7016. }
  7017. if (HasLightInfo) {
  7018. size += pb::CodedOutputStream.ComputeMessageSize(6, LightInfo);
  7019. }
  7020. if (HasCamera) {
  7021. size += pb::CodedOutputStream.ComputeBoolSize(7, Camera);
  7022. }
  7023. if (HasPhysical) {
  7024. size += pb::CodedOutputStream.ComputeMessageSize(8, Physical);
  7025. }
  7026. size += UnknownFields.SerializedSize;
  7027. memoizedSerializedSize = size;
  7028. return size;
  7029. }
  7030. }
  7031. public static CreateObject ParseFrom(pb::ByteString data) {
  7032. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7033. }
  7034. public static CreateObject ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7035. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7036. }
  7037. public static CreateObject ParseFrom(byte[] data) {
  7038. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7039. }
  7040. public static CreateObject ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7041. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7042. }
  7043. public static CreateObject ParseFrom(global::System.IO.Stream input) {
  7044. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7045. }
  7046. public static CreateObject ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7047. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7048. }
  7049. public static CreateObject ParseDelimitedFrom(global::System.IO.Stream input) {
  7050. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7051. }
  7052. public static CreateObject ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7053. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7054. }
  7055. public static CreateObject ParseFrom(pb::CodedInputStream input) {
  7056. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7057. }
  7058. public static CreateObject ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7059. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7060. }
  7061. public static Builder CreateBuilder() { return new Builder(); }
  7062. public override Builder ToBuilder() { return CreateBuilder(this); }
  7063. public override Builder CreateBuilderForType() { return new Builder(); }
  7064. public static Builder CreateBuilder(CreateObject prototype) {
  7065. return (Builder) new Builder().MergeFrom(prototype);
  7066. }
  7067. public sealed partial class Builder : pb::GeneratedBuilder<CreateObject, Builder> {
  7068. protected override Builder ThisBuilder {
  7069. get { return this; }
  7070. }
  7071. public Builder() {}
  7072. CreateObject result = new CreateObject();
  7073. protected override CreateObject MessageBeingBuilt {
  7074. get { return result; }
  7075. }
  7076. public override Builder Clear() {
  7077. result = new CreateObject();
  7078. return this;
  7079. }
  7080. public override Builder Clone() {
  7081. return new Builder().MergeFrom(result);
  7082. }
  7083. public override pbd::MessageDescriptor DescriptorForType {
  7084. get { return global::Sirikata.Protocol._PBJ_Internal.CreateObject.Descriptor; }
  7085. }
  7086. public override CreateObject DefaultInstanceForType {
  7087. get { return global::Sirikata.Protocol._PBJ_Internal.CreateObject.DefaultInstance; }
  7088. }
  7089. public override CreateObject BuildPartial() {
  7090. if (result == null) {
  7091. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  7092. }
  7093. result.spaceProperties_.MakeReadOnly();
  7094. result.scale_.MakeReadOnly();
  7095. CreateObject returnMe = result;
  7096. result = null;
  7097. return returnMe;
  7098. }
  7099. public override Builder MergeFrom(pb::IMessage other) {
  7100. if (other is CreateObject) {
  7101. return MergeFrom((CreateObject) other);
  7102. } else {
  7103. base.MergeFrom(other);
  7104. return this;
  7105. }
  7106. }
  7107. public override Builder MergeFrom(CreateObject other) {
  7108. if (other == global::Sirikata.Protocol._PBJ_Internal.CreateObject.DefaultInstance) return this;
  7109. if (other.HasObjectUuid) {
  7110. ObjectUuid = other.ObjectUuid;
  7111. }
  7112. if (other.spaceProperties_.Count != 0) {
  7113. base.AddRange(other.spaceProperties_, result.spaceProperties_);
  7114. }
  7115. if (other.HasMesh) {
  7116. Mesh = other.Mesh;
  7117. }
  7118. if (other.scale_.Count != 0) {
  7119. base.AddRange(other.scale_, result.scale_);
  7120. }
  7121. if (other.HasWeburl) {
  7122. Weburl = other.Weburl;
  7123. }
  7124. if (other.HasLightInfo) {
  7125. MergeLightInfo(other.LightInfo);
  7126. }
  7127. if (other.HasCamera) {
  7128. Camera = other.Camera;
  7129. }
  7130. if (other.HasPhysical) {
  7131. MergePhysical(other.Physical);
  7132. }
  7133. this.MergeUnknownFields(other.UnknownFields);
  7134. return this;
  7135. }
  7136. public override Builder MergeFrom(pb::CodedInputStream input) {
  7137. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7138. }
  7139. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7140. pb::UnknownFieldSet.Builder unknownFields = null;
  7141. while (true) {
  7142. uint tag = input.ReadTag();
  7143. switch (tag) {
  7144. case 0: {
  7145. if (unknownFields != null) {
  7146. this.UnknownFields = unknownFields.Build();
  7147. }
  7148. return this;
  7149. }
  7150. default: {
  7151. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7152. if (unknownFields != null) {
  7153. this.UnknownFields = unknownFields.Build();
  7154. }
  7155. return this;
  7156. }
  7157. if (unknownFields == null) {
  7158. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7159. }
  7160. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  7161. break;
  7162. }
  7163. case 10: {
  7164. ObjectUuid = input.ReadBytes();
  7165. break;
  7166. }
  7167. case 18: {
  7168. global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.CreateBuilder();
  7169. input.ReadMessage(subBuilder, extensionRegistry);
  7170. AddSpaceProperties(subBuilder.BuildPartial());
  7171. break;
  7172. }
  7173. case 26: {
  7174. Mesh = input.ReadString();
  7175. break;
  7176. }
  7177. case 34: {
  7178. int length = input.ReadInt32();
  7179. int limit = input.PushLimit(length);
  7180. while (!input.ReachedLimit) {
  7181. AddScale(input.ReadFloat());
  7182. }
  7183. input.PopLimit(limit);
  7184. break;
  7185. }
  7186. case 42: {
  7187. Weburl = input.ReadString();
  7188. break;
  7189. }
  7190. case 50: {
  7191. global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.CreateBuilder();
  7192. if (HasLightInfo) {
  7193. subBuilder.MergeFrom(LightInfo);
  7194. }
  7195. input.ReadMessage(subBuilder, extensionRegistry);
  7196. LightInfo = subBuilder.BuildPartial();
  7197. break;
  7198. }
  7199. case 56: {
  7200. Camera = input.ReadBool();
  7201. break;
  7202. }
  7203. case 66: {
  7204. global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Builder subBuilder = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.CreateBuilder();
  7205. if (HasPhysical) {
  7206. subBuilder.MergeFrom(Physical);
  7207. }
  7208. input.ReadMessage(subBuilder, extensionRegistry);
  7209. Physical = subBuilder.BuildPartial();
  7210. break;
  7211. }
  7212. }
  7213. }
  7214. }
  7215. public bool HasObjectUuid {
  7216. get { return result.HasObjectUuid; }
  7217. }
  7218. public pb::ByteString ObjectUuid {
  7219. get { return result.ObjectUuid; }
  7220. set { SetObjectUuid(value); }
  7221. }
  7222. public Builder SetObjectUuid(pb::ByteString value) {
  7223. pb::ThrowHelper.ThrowIfNull(value, "value");
  7224. result.hasObjectUuid = true;
  7225. result.objectUuid_ = value;
  7226. return this;
  7227. }
  7228. public Builder ClearObjectUuid() {
  7229. result.hasObjectUuid = false;
  7230. result.objectUuid_ = pb::ByteString.Empty;
  7231. return this;
  7232. }
  7233. public pbc::IPopsicleList<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace> SpacePropertiesList {
  7234. get { return result.spaceProperties_; }
  7235. }
  7236. public int SpacePropertiesCount {
  7237. get { return result.SpacePropertiesCount; }
  7238. }
  7239. public global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace GetSpaceProperties(int index) {
  7240. return result.GetSpaceProperties(index);
  7241. }
  7242. public Builder SetSpaceProperties(int index, global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace value) {
  7243. pb::ThrowHelper.ThrowIfNull(value, "value");
  7244. result.spaceProperties_[index] = value;
  7245. return this;
  7246. }
  7247. public Builder SetSpaceProperties(int index, global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Builder builderForValue) {
  7248. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7249. result.spaceProperties_[index] = builderForValue.Build();
  7250. return this;
  7251. }
  7252. public Builder AddSpaceProperties(global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace value) {
  7253. pb::ThrowHelper.ThrowIfNull(value, "value");
  7254. result.spaceProperties_.Add(value);
  7255. return this;
  7256. }
  7257. public Builder AddSpaceProperties(global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace.Builder builderForValue) {
  7258. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7259. result.spaceProperties_.Add(builderForValue.Build());
  7260. return this;
  7261. }
  7262. public Builder AddRangeSpaceProperties(scg::IEnumerable<global::Sirikata.Protocol._PBJ_Internal.ConnectToSpace> values) {
  7263. base.AddRange(values, result.spaceProperties_);
  7264. return this;
  7265. }
  7266. public Builder ClearSpaceProperties() {
  7267. result.spaceProperties_.Clear();
  7268. return this;
  7269. }
  7270. public bool HasMesh {
  7271. get { return result.HasMesh; }
  7272. }
  7273. public string Mesh {
  7274. get { return result.Mesh; }
  7275. set { SetMesh(value); }
  7276. }
  7277. public Builder SetMesh(string value) {
  7278. pb::ThrowHelper.ThrowIfNull(value, "value");
  7279. result.hasMesh = true;
  7280. result.mesh_ = value;
  7281. return this;
  7282. }
  7283. public Builder ClearMesh() {
  7284. result.hasMesh = false;
  7285. result.mesh_ = "";
  7286. return this;
  7287. }
  7288. public pbc::IPopsicleList<float> ScaleList {
  7289. get { return result.scale_; }
  7290. }
  7291. public int ScaleCount {
  7292. get { return result.ScaleCount; }
  7293. }
  7294. public float GetScale(int index) {
  7295. return result.GetScale(index);
  7296. }
  7297. public Builder SetScale(int index, float value) {
  7298. result.scale_[index] = value;
  7299. return this;
  7300. }
  7301. public Builder AddScale(float value) {
  7302. result.scale_.Add(value);
  7303. return this;
  7304. }
  7305. public Builder AddRangeScale(scg::IEnumerable<float> values) {
  7306. base.AddRange(values, result.scale_);
  7307. return this;
  7308. }
  7309. public Builder ClearScale() {
  7310. result.scale_.Clear();
  7311. return this;
  7312. }
  7313. public bool HasWeburl {
  7314. get { return result.HasWeburl; }
  7315. }
  7316. public string Weburl {
  7317. get { return result.Weburl; }
  7318. set { SetWeburl(value); }
  7319. }
  7320. public Builder SetWeburl(string value) {
  7321. pb::ThrowHelper.ThrowIfNull(value, "value");
  7322. result.hasWeburl = true;
  7323. result.weburl_ = value;
  7324. return this;
  7325. }
  7326. public Builder ClearWeburl() {
  7327. result.hasWeburl = false;
  7328. result.weburl_ = "";
  7329. return this;
  7330. }
  7331. public bool HasLightInfo {
  7332. get { return result.HasLightInfo; }
  7333. }
  7334. public global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty LightInfo {
  7335. get { return result.LightInfo; }
  7336. set { SetLightInfo(value); }
  7337. }
  7338. public Builder SetLightInfo(global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty value) {
  7339. pb::ThrowHelper.ThrowIfNull(value, "value");
  7340. result.hasLightInfo = true;
  7341. result.lightInfo_ = value;
  7342. return this;
  7343. }
  7344. public Builder SetLightInfo(global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.Builder builderForValue) {
  7345. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7346. result.hasLightInfo = true;
  7347. result.lightInfo_ = builderForValue.Build();
  7348. return this;
  7349. }
  7350. public Builder MergeLightInfo(global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty value) {
  7351. pb::ThrowHelper.ThrowIfNull(value, "value");
  7352. if (result.HasLightInfo &&
  7353. result.lightInfo_ != global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.DefaultInstance) {
  7354. result.lightInfo_ = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.CreateBuilder(result.lightInfo_).MergeFrom(value).BuildPartial();
  7355. } else {
  7356. result.lightInfo_ = value;
  7357. }
  7358. result.hasLightInfo = true;
  7359. return this;
  7360. }
  7361. public Builder ClearLightInfo() {
  7362. result.hasLightInfo = false;
  7363. result.lightInfo_ = global::Sirikata.Protocol._PBJ_Internal.LightInfoProperty.DefaultInstance;
  7364. return this;
  7365. }
  7366. public bool HasCamera {
  7367. get { return result.HasCamera; }
  7368. }
  7369. public bool Camera {
  7370. get { return result.Camera; }
  7371. set { SetCamera(value); }
  7372. }
  7373. public Builder SetCamera(bool value) {
  7374. result.hasCamera = true;
  7375. result.camera_ = value;
  7376. return this;
  7377. }
  7378. public Builder ClearCamera() {
  7379. result.hasCamera = false;
  7380. result.camera_ = false;
  7381. return this;
  7382. }
  7383. public bool HasPhysical {
  7384. get { return result.HasPhysical; }
  7385. }
  7386. public global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters Physical {
  7387. get { return result.Physical; }
  7388. set { SetPhysical(value); }
  7389. }
  7390. public Builder SetPhysical(global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters value) {
  7391. pb::ThrowHelper.ThrowIfNull(value, "value");
  7392. result.hasPhysical = true;
  7393. result.physical_ = value;
  7394. return this;
  7395. }
  7396. public Builder SetPhysical(global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.Builder builderForValue) {
  7397. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7398. result.hasPhysical = true;
  7399. result.physical_ = builderForValue.Build();
  7400. return this;
  7401. }
  7402. public Builder MergePhysical(global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters value) {
  7403. pb::ThrowHelper.ThrowIfNull(value, "value");
  7404. if (result.HasPhysical &&
  7405. result.physical_ != global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.DefaultInstance) {
  7406. result.physical_ = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.CreateBuilder(result.physical_).MergeFrom(value).BuildPartial();
  7407. } else {
  7408. result.physical_ = value;
  7409. }
  7410. result.hasPhysical = true;
  7411. return this;
  7412. }
  7413. public Builder ClearPhysical() {
  7414. result.hasPhysical = false;
  7415. result.physical_ = global::Sirikata.Protocol._PBJ_Internal.PhysicalParameters.DefaultInstance;
  7416. return this;
  7417. }
  7418. }
  7419. static CreateObject() {
  7420. object.ReferenceEquals(global::Sirikata.Protocol._PBJ_Internal.Sirikata.Descriptor, null);
  7421. }
  7422. }
  7423. #endregion
  7424. }