Test.cs 130 KB

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