UnitTestProtoFile.cs 539 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140
  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. using self = global::Google.ProtocolBuffers.TestProtos;
  7. namespace Google.ProtocolBuffers.TestProtos {
  8. public static partial class UnitTestProtoFile {
  9. #region Descriptor
  10. public static pbd::FileDescriptor Descriptor {
  11. get { return descriptor; }
  12. }
  13. private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
  14. new byte[] {
  15. 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e,
  16. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  17. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  18. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  19. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x15, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41,
  20. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  21. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  22. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x6f,
  23. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
  24. 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
  25. 0x04, 0x20, 0x01, 0x28, 0x04, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69,
  26. 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  27. 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x6f,
  28. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28,
  29. 0x07, 0x12, 0x18, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36,
  30. 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  31. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70,
  32. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28,
  33. 0x10, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18,
  34. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  35. 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  36. 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74,
  37. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16,
  38. 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01,
  39. 0x28, 0x0c, 0x12, 0x44, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
  40. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  41. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4f,
  42. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69,
  43. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  44. 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  45. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  46. 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69,
  47. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  48. 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  49. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  50. 0x65, 0x12, 0x48, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  51. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  52. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  53. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x6f,
  54. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18,
  55. 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  56. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  57. 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  58. 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e,
  59. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  60. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x6f, 0x70, 0x74, 0x69,
  61. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x17, 0x20, 0x01,
  62. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  63. 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d,
  64. 0x12, 0x21, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
  65. 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x6f,
  66. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
  67. 0x08, 0x01, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  68. 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69,
  69. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  70. 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d, 0x12, 0x17, 0x0a, 0x0f, 0x72,
  71. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04,
  72. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18,
  73. 0x23, 0x20, 0x03, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69,
  74. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  75. 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x12, 0x18, 0x0a, 0x10,
  76. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x26, 0x20, 0x03,
  77. 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  78. 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  79. 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x12, 0x16, 0x0a, 0x0e,
  80. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02,
  81. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18,
  82. 0x2a, 0x20, 0x03, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f,
  83. 0x6f, 0x6c, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  84. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70,
  85. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x12, 0x44, 0x0a,
  86. 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a,
  87. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  88. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  89. 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  90. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b,
  91. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  92. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  93. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  94. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x31, 0x20, 0x03, 0x28,
  95. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  96. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x17,
  97. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  98. 0x61, 0x67, 0x65, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  99. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70,
  100. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  101. 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e,
  102. 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  103. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  104. 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72,
  105. 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72,
  106. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65,
  107. 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  108. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e,
  109. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  110. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x21, 0x0a, 0x15, 0x72,
  111. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65,
  112. 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  113. 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x37, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x19, 0x0a,
  114. 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05,
  115. 0x3a, 0x02, 0x34, 0x31, 0x12, 0x19, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36,
  116. 0x34, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x12, 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  117. 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x12,
  118. 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x40, 0x20,
  119. 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x12, 0x1b, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
  120. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x41, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x12, 0x1a, 0x0a, 0x0e,
  121. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12,
  122. 0x3a, 0x02, 0x34, 0x36, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65,
  123. 0x64, 0x33, 0x32, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66,
  124. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02,
  125. 0x34, 0x38, 0x12, 0x1c, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64,
  126. 0x33, 0x32, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x12, 0x1d, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61,
  127. 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03,
  128. 0x2d, 0x35, 0x30, 0x12, 0x1b, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74,
  129. 0x18, 0x47, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61,
  130. 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x48, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32,
  131. 0x30, 0x30, 0x30, 0x12, 0x1a, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
  132. 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  133. 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68, 0x65, 0x6c,
  134. 0x6c, 0x6f, 0x12, 0x1c, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
  135. 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x12, 0x4c, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61,
  136. 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x51, 0x20, 0x01, 0x28,
  137. 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  138. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65,
  139. 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x12, 0x49, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  140. 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e,
  141. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  142. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47,
  143. 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x12, 0x4d, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70,
  144. 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  145. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  146. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54,
  147. 0x5f, 0x42, 0x41, 0x52, 0x12, 0x25, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69,
  148. 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62, 0x63, 0x42,
  149. 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18,
  150. 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33, 0x42, 0x02, 0x08, 0x01, 0x1a, 0x1b, 0x0a, 0x0d, 0x4e, 0x65,
  151. 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0a, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20,
  152. 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70,
  153. 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61,
  154. 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22,
  155. 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f,
  156. 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x03,
  157. 0x22, 0x1b, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09,
  158. 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x1d, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  159. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02,
  160. 0x22, 0x24, 0x0a, 0x17, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78,
  161. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x22, 0x24,
  162. 0x0a, 0x17, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  163. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22, 0xd5, 0x05, 0x0a,
  164. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01,
  165. 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
  166. 0x12, 0x09, 0x0a, 0x01, 0x62, 0x18, 0x03, 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  167. 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x35, 0x18, 0x05, 0x20,
  168. 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x36, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x12,
  169. 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x37, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64,
  170. 0x75, 0x6d, 0x6d, 0x79, 0x38, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  171. 0x39, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x30, 0x18, 0x0a,
  172. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28,
  173. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f,
  174. 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64,
  175. 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d,
  176. 0x79, 0x31, 0x35, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x36,
  177. 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x37, 0x18, 0x11, 0x20,
  178. 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x38, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05,
  179. 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x39, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a,
  180. 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75,
  181. 0x6d, 0x6d, 0x79, 0x32, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  182. 0x32, 0x32, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x33, 0x18,
  183. 0x17, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x34, 0x18, 0x18, 0x20, 0x01,
  184. 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x35, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x12,
  185. 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x36, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07,
  186. 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x37, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d,
  187. 0x6d, 0x79, 0x32, 0x38, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32,
  188. 0x39, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x30, 0x18, 0x1e,
  189. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x31, 0x18, 0x1f, 0x20, 0x01, 0x28,
  190. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x32, 0x18, 0x20, 0x20, 0x01, 0x28, 0x05, 0x12, 0x09,
  191. 0x0a, 0x01, 0x63, 0x18, 0x21, 0x20, 0x02, 0x28, 0x05, 0x32, 0x56, 0x0a, 0x06, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x12,
  192. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  193. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07,
  194. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  195. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x32, 0x55, 0x0a,
  196. 0x05, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  197. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  198. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  199. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
  200. 0x69, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  201. 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x12, 0x39, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  202. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f,
  203. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52,
  204. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  205. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  206. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65,
  207. 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x0d, 0x0a, 0x05, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  208. 0x05, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x73, 0x74,
  209. 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  210. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  211. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e,
  212. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x65, 0x73,
  213. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x1e, 0x54, 0x65, 0x73,
  214. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x74,
  215. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x34, 0x0a,
  216. 0x18, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x54, 0x61, 0x67, 0x4e,
  217. 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0d, 0x0a, 0x02,
  218. 0x62, 0x62, 0x18, 0xff, 0xff, 0xff, 0x7f, 0x20, 0x01, 0x28, 0x05, 0x22, 0x55, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x52,
  219. 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x01, 0x61,
  220. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  221. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65,
  222. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09, 0x0a, 0x01, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0x4b,
  223. 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f,
  224. 0x6e, 0x41, 0x12, 0x33, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  225. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d,
  226. 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x62, 0x0a, 0x14, 0x54,
  227. 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x12,
  228. 0x32, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  229. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61,
  230. 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  231. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0xb3, 0x01, 0x0a, 0x12,
  232. 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09,
  233. 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01,
  234. 0x28, 0x0a, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  235. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  236. 0x72, 0x2e, 0x46, 0x6f, 0x6f, 0x12, 0x36, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x29,
  237. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  238. 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x61,
  239. 0x72, 0x1a, 0x10, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x1a,
  240. 0x10, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x80, 0x02,
  241. 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
  242. 0x61, 0x73, 0x42, 0x69, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e,
  243. 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  244. 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  245. 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x61, 0x73,
  246. 0x42, 0x69, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x87,
  247. 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x1c,
  248. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  249. 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x12, 0x50, 0x0a, 0x25, 0x6e, 0x65,
  250. 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  251. 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
  252. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  253. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe5, 0x03, 0x0a,
  254. 0x17, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e,
  255. 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65,
  256. 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69,
  257. 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x31, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65,
  258. 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  259. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d,
  260. 0x12, 0x37, 0x0a, 0x0c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01,
  261. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  262. 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a,
  263. 0x10, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20,
  264. 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x15, 0x0a, 0x09, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64,
  265. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  266. 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x03,
  267. 0x28, 0x05, 0x12, 0x1b, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
  268. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x12, 0x39, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x65, 0x61,
  269. 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e,
  270. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46,
  271. 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3f, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  272. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
  273. 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  274. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x18, 0x52,
  275. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69,
  276. 0x65, 0x6c, 0x64, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x11, 0x52, 0x65, 0x70,
  277. 0x65, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09,
  278. 0x42, 0x02, 0x08, 0x01, 0x22, 0x55, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  279. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x11, 0x0a, 0x09, 0x6d, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18,
  280. 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  281. 0x03, 0x12, 0x10, 0x0a, 0x08, 0x6d, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x02, 0x2a,
  282. 0x04, 0x08, 0x02, 0x10, 0x0b, 0x2a, 0x04, 0x08, 0x0c, 0x10, 0x65, 0x22, 0x90, 0x02, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74,
  283. 0x45, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
  284. 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20,
  285. 0x01, 0x28, 0x0c, 0x3a, 0x28, 0x5c, 0x30, 0x30, 0x30, 0x5c, 0x30, 0x30, 0x31, 0x5c, 0x30, 0x30, 0x37, 0x5c, 0x30, 0x31,
  286. 0x30, 0x5c, 0x30, 0x31, 0x34, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x74, 0x5c, 0x30, 0x31, 0x33, 0x5c, 0x5c, 0x5c, 0x27, 0x5c,
  287. 0x22, 0x5c, 0x33, 0x37, 0x36, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33,
  288. 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x0a, 0x34, 0x32, 0x39, 0x34, 0x39, 0x36, 0x37, 0x32, 0x39, 0x35, 0x12,
  289. 0x2a, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28,
  290. 0x04, 0x3a, 0x14, 0x31, 0x38, 0x34, 0x34, 0x36, 0x37, 0x34, 0x34, 0x30, 0x37, 0x33, 0x37, 0x30, 0x39, 0x35, 0x35, 0x31,
  291. 0x36, 0x31, 0x35, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04,
  292. 0x20, 0x01, 0x28, 0x05, 0x3a, 0x0b, 0x2d, 0x32, 0x31, 0x34, 0x37, 0x34, 0x38, 0x33, 0x36, 0x34, 0x37, 0x12, 0x29, 0x0a,
  293. 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x14,
  294. 0x2d, 0x39, 0x32, 0x32, 0x33, 0x33, 0x37, 0x32, 0x30, 0x33, 0x36, 0x38, 0x35, 0x34, 0x37, 0x37, 0x35, 0x38, 0x30, 0x37,
  295. 0x12, 0x18, 0x0a, 0x0b, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
  296. 0x09, 0x3a, 0x03, 0xe1, 0x88, 0xb4, 0x22, 0x0c, 0x0a, 0x0a, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  297. 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x42,
  298. 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70,
  299. 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x40, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12,
  300. 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x4f, 0x4f, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b,
  301. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52,
  302. 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x5a, 0x10, 0x06, 0x2a, 0x47, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e,
  303. 0x75, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x44, 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f,
  304. 0x4f, 0x31, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52, 0x31, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41,
  305. 0x5a, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f, 0x4f, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52,
  306. 0x32, 0x10, 0x02, 0x2a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x70, 0x61, 0x72, 0x73, 0x65, 0x45, 0x6e,
  307. 0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x10, 0x7b, 0x12, 0x0e, 0x0a, 0x08,
  308. 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x42, 0x10, 0xa6, 0xe7, 0x03, 0x12, 0x0f, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  309. 0x53, 0x45, 0x5f, 0x43, 0x10, 0xb2, 0xb1, 0x80, 0x06, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  310. 0x44, 0x10, 0xf1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  311. 0x53, 0x45, 0x5f, 0x45, 0x10, 0xb4, 0xde, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53,
  312. 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x46, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  313. 0x47, 0x10, 0x02, 0x32, 0x99, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  314. 0x44, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  315. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
  316. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  317. 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x1d, 0x2e, 0x70,
  318. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72,
  319. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  320. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a,
  321. 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78,
  322. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  323. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  324. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  325. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  326. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  327. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
  328. 0x01, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74,
  329. 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  330. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  331. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x47, 0x0a, 0x19,
  332. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65,
  333. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  334. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  335. 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  336. 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  337. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  338. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01,
  339. 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36,
  340. 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  341. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  342. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x48, 0x0a, 0x1a, 0x6f,
  343. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  344. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  345. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  346. 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  347. 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  348. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  349. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20,
  350. 0x01, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78,
  351. 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  352. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  353. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x49,
  354. 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f,
  355. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  356. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  357. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74,
  358. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  359. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  360. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  361. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  362. 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  363. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  364. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x45,
  365. 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65,
  366. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  367. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  368. 0x6f, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  369. 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  370. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  371. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01,
  372. 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73,
  373. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  374. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  375. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x71, 0x0a, 0x17, 0x6f, 0x70,
  376. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  377. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  378. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  379. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  380. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f,
  381. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  382. 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74,
  383. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  384. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  385. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  386. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79,
  387. 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x73, 0x0a,
  388. 0x22, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65,
  389. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  390. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  391. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32,
  392. 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  393. 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x21, 0x6f, 0x70,
  394. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  395. 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  396. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  397. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72,
  398. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  399. 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x1e,
  400. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
  401. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  402. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  403. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f,
  404. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  405. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x6d,
  406. 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65,
  407. 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  408. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  409. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
  410. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  411. 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  412. 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  413. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  414. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  415. 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  416. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
  417. 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74,
  418. 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  419. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  420. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x18,
  421. 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  422. 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  423. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  424. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42,
  425. 0x02, 0x08, 0x01, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33,
  426. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  427. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  428. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x72,
  429. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  430. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  431. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  432. 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  433. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70,
  434. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73,
  435. 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d,
  436. 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  437. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  438. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  439. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  440. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  441. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  442. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  443. 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73,
  444. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  445. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  446. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x3a,
  447. 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f,
  448. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  449. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  450. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70,
  451. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  452. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  453. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  454. 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  455. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  456. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  457. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x27, 0x20, 0x03,
  458. 0x28, 0x0f, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  459. 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  460. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  461. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x3a, 0x46, 0x0a,
  462. 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
  463. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  464. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  465. 0x6f, 0x6e, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  466. 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  467. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  468. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2a, 0x20, 0x03,
  469. 0x28, 0x01, 0x3a, 0x45, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f,
  470. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  471. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  472. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  473. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  474. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  475. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  476. 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62,
  477. 0x79, 0x74, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  478. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  479. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x3a, 0x71,
  480. 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  481. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  482. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  483. 0x6f, 0x6e, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  484. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72,
  485. 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x72, 0x65, 0x70,
  486. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  487. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  488. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  489. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f,
  490. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  491. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  492. 0x65, 0x3a, 0x73, 0x0a, 0x22, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67,
  493. 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  494. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  495. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x31, 0x20,
  496. 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  497. 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78,
  498. 0x0a, 0x21, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65,
  499. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  500. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  501. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32,
  502. 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f,
  503. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  504. 0x3a, 0x78, 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  505. 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  506. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  507. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2a,
  508. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  509. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
  510. 0x75, 0x6d, 0x3a, 0x6d, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69,
  511. 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  512. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  513. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x34, 0x20, 0x03, 0x28,
  514. 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  515. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x72, 0x65, 0x70,
  516. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78,
  517. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  518. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  519. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  520. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49,
  521. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  522. 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  523. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  524. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  525. 0x6e, 0x73, 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65,
  526. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  527. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  528. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x37, 0x20,
  529. 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69,
  530. 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  531. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  532. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x02,
  533. 0x34, 0x31, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  534. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  535. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  536. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x3a, 0x4a, 0x0a,
  537. 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  538. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  539. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  540. 0x6f, 0x6e, 0x73, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66,
  541. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  542. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  543. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  544. 0x40, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x3a, 0x4b, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  545. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  546. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  547. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x41, 0x20, 0x01, 0x28,
  548. 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69,
  549. 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  550. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  551. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x02,
  552. 0x34, 0x36, 0x3a, 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33,
  553. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  554. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  555. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x3a,
  556. 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65,
  557. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  558. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65,
  559. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02, 0x34, 0x38, 0x3a, 0x4c, 0x0a, 0x1a,
  560. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74,
  561. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  562. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  563. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x3a, 0x4d, 0x0a, 0x1a, 0x64, 0x65,
  564. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  565. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  566. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  567. 0x6e, 0x73, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03, 0x2d, 0x35, 0x30, 0x3a, 0x4b, 0x0a, 0x17, 0x64, 0x65, 0x66,
  568. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  569. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  570. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x47,
  571. 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  572. 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  573. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  574. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x48, 0x20, 0x01,
  575. 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32, 0x30, 0x30, 0x30, 0x3a, 0x4a, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  576. 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  577. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  578. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a,
  579. 0x04, 0x74, 0x72, 0x75, 0x65, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72,
  580. 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  581. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  582. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68,
  583. 0x65, 0x6c, 0x6c, 0x6f, 0x3a, 0x4c, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65,
  584. 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  585. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  586. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72,
  587. 0x6c, 0x64, 0x3a, 0x7c, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  588. 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  589. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  590. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x51, 0x20, 0x01, 0x28, 0x0e, 0x32,
  591. 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  592. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
  593. 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x3a, 0x79, 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  594. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  595. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  596. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  597. 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  598. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b,
  599. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x7d, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75,
  600. 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  601. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  602. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  603. 0x6e, 0x73, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  604. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f,
  605. 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x55,
  606. 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65,
  607. 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  608. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  609. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62,
  610. 0x63, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x4d, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72,
  611. 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  612. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  613. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33,
  614. 0x42, 0x02, 0x08, 0x01, 0x3a, 0x42, 0x0a, 0x13, 0x6d, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  615. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  616. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  617. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x3f, 0x0a, 0x10, 0x6d, 0x79, 0x5f, 0x65,
  618. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  619. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65,
  620. 0x6c, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x49, 0x42,
  621. 0x0d, 0x55, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x01, 0xc2, 0x3e, 0x21, 0x47,
  622. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
  623. 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xca, 0x3e, 0x11, 0x55, 0x6e, 0x69, 0x74, 0x54,
  624. 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65,
  625. }, new pbd::FileDescriptor[] {
  626. self::UnitTestImportProtoFile.Descriptor,
  627. });
  628. #endregion
  629. #region Extensions
  630. /*public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> OptionalInt32Extension =
  631. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[0]);
  632. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> OptionalInt64Extension =
  633. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[1]);
  634. public static readonly pb::GeneratedExtension<self::TestAllExtensions, uint> OptionalUint32Extension =
  635. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[2]);
  636. public static readonly pb::GeneratedExtension<self::TestAllExtensions, ulong> OptionalUint64Extension =
  637. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[3]);
  638. public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> OptionalSint32Extension =
  639. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[4]);
  640. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> OptionalSint64Extension =
  641. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[5]);
  642. public static readonly pb::GeneratedExtension<self::TestAllExtensions, uint> OptionalFixed32Extension =
  643. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[6]);
  644. public static readonly pb::GeneratedExtension<self::TestAllExtensions, ulong> OptionalFixed64Extension =
  645. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[7]);
  646. public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> OptionalSfixed32Extension =
  647. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[8]);
  648. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> OptionalSfixed64Extension =
  649. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[9]);
  650. public static readonly pb::GeneratedExtension<self::TestAllExtensions, float> OptionalFloatExtension =
  651. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, float>(Descriptor.Extensions[10]);
  652. public static readonly pb::GeneratedExtension<self::TestAllExtensions, double> OptionalDoubleExtension =
  653. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, double>(Descriptor.Extensions[11]);
  654. public static readonly pb::GeneratedExtension<self::TestAllExtensions, bool> OptionalBoolExtension =
  655. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, bool>(Descriptor.Extensions[12]);
  656. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> OptionalStringExtension =
  657. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[13]);
  658. public static readonly pb::GeneratedExtension<self::TestAllExtensions, pb::ByteString> OptionalBytesExtension =
  659. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, pb::ByteString>(Descriptor.Extensions[14]);
  660. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::OptionalGroup_extension> OptionalGroupExtension =
  661. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::OptionalGroup_extension>(Descriptor.Extensions[15]);
  662. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  663. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage>(Descriptor.Extensions[16]);
  664. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ForeignMessage> OptionalForeignMessageExtension =
  665. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ForeignMessage>(Descriptor.Extensions[17]);
  666. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ImportMessage> OptionalImportMessageExtension =
  667. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ImportMessage>(Descriptor.Extensions[18]);
  668. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  669. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>(Descriptor.Extensions[19]);
  670. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ForeignEnum> OptionalForeignEnumExtension =
  671. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ForeignEnum>(Descriptor.Extensions[20]);
  672. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ImportEnum> OptionalImportEnumExtension =
  673. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ImportEnum>(Descriptor.Extensions[21]);
  674. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> OptionalStringPieceExtension =
  675. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[22]);
  676. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> OptionalCordExtension =
  677. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[23]);
  678. public static readonly
  679. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<int>> name =
  680. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, int>(Descriptor.Extensions[24]);
  681. public static readonly
  682. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<long>> name =
  683. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, long>(Descriptor.Extensions[25]);
  684. public static readonly
  685. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<uint>> name =
  686. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[26]);
  687. public static readonly
  688. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<ulong>> name =
  689. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[27]);
  690. public static readonly
  691. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<int>> name =
  692. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, int>(Descriptor.Extensions[28]);
  693. public static readonly
  694. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<long>> name =
  695. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, long>(Descriptor.Extensions[29]);
  696. public static readonly
  697. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<uint>> name =
  698. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[30]);
  699. public static readonly
  700. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<ulong>> name =
  701. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[31]);
  702. public static readonly
  703. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<int>> name =
  704. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, int>(Descriptor.Extensions[32]);
  705. public static readonly
  706. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<long>> name =
  707. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, long>(Descriptor.Extensions[33]);
  708. public static readonly
  709. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<float>> name =
  710. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, float>(Descriptor.Extensions[34]);
  711. public static readonly
  712. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<double>> name =
  713. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, double>(Descriptor.Extensions[35]);
  714. public static readonly
  715. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<bool>> name =
  716. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, bool>(Descriptor.Extensions[36]);
  717. public static readonly
  718. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<string>> name =
  719. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, string>(Descriptor.Extensions[37]);
  720. public static readonly
  721. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<pb::ByteString>> name =
  722. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, pb::ByteString>(Descriptor.Extensions[38]);
  723. public static readonly
  724. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::RepeatedGroup_extension>> name =
  725. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::RepeatedGroup_extension>(Descriptor.Extensions[39]);
  726. public static readonly
  727. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::TestAllTypes.Types.NestedMessage>> name =
  728. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage>(Descriptor.Extensions[40]);
  729. public static readonly
  730. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::ForeignMessage>> name =
  731. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::ForeignMessage>(Descriptor.Extensions[41]);
  732. public static readonly
  733. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::ImportMessage>> name =
  734. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::ImportMessage>(Descriptor.Extensions[42]);
  735. public static readonly
  736. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::TestAllTypes.Types.NestedEnum>> name =
  737. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>(Descriptor.Extensions[43]);
  738. public static readonly
  739. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::ForeignEnum>> name =
  740. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::ForeignEnum>(Descriptor.Extensions[44]);
  741. public static readonly
  742. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::ImportEnum>> name =
  743. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::ImportEnum>(Descriptor.Extensions[45]);
  744. public static readonly
  745. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<string>> name =
  746. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, string>(Descriptor.Extensions[46]);
  747. public static readonly
  748. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<string>> name =
  749. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, string>(Descriptor.Extensions[47]);
  750. public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> DefaultInt32Extension =
  751. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[48]);
  752. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> DefaultInt64Extension =
  753. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[49]);
  754. public static readonly pb::GeneratedExtension<self::TestAllExtensions, uint> DefaultUint32Extension =
  755. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[50]);
  756. public static readonly pb::GeneratedExtension<self::TestAllExtensions, ulong> DefaultUint64Extension =
  757. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[51]);
  758. public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> DefaultSint32Extension =
  759. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[52]);
  760. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> DefaultSint64Extension =
  761. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[53]);
  762. public static readonly pb::GeneratedExtension<self::TestAllExtensions, uint> DefaultFixed32Extension =
  763. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, uint>(Descriptor.Extensions[54]);
  764. public static readonly pb::GeneratedExtension<self::TestAllExtensions, ulong> DefaultFixed64Extension =
  765. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, ulong>(Descriptor.Extensions[55]);
  766. public static readonly pb::GeneratedExtension<self::TestAllExtensions, int> DefaultSfixed32Extension =
  767. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, int>(Descriptor.Extensions[56]);
  768. public static readonly pb::GeneratedExtension<self::TestAllExtensions, long> DefaultSfixed64Extension =
  769. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, long>(Descriptor.Extensions[57]);
  770. public static readonly pb::GeneratedExtension<self::TestAllExtensions, float> DefaultFloatExtension =
  771. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, float>(Descriptor.Extensions[58]);
  772. public static readonly pb::GeneratedExtension<self::TestAllExtensions, double> DefaultDoubleExtension =
  773. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, double>(Descriptor.Extensions[59]);
  774. public static readonly pb::GeneratedExtension<self::TestAllExtensions, bool> DefaultBoolExtension =
  775. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, bool>(Descriptor.Extensions[60]);
  776. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> DefaultStringExtension =
  777. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[61]);
  778. public static readonly pb::GeneratedExtension<self::TestAllExtensions, pb::ByteString> DefaultBytesExtension =
  779. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, pb::ByteString>(Descriptor.Extensions[62]);
  780. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  781. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>(Descriptor.Extensions[63]);
  782. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ForeignEnum> DefaultForeignEnumExtension =
  783. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ForeignEnum>(Descriptor.Extensions[64]);
  784. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::ImportEnum> DefaultImportEnumExtension =
  785. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::ImportEnum>(Descriptor.Extensions[65]);
  786. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> DefaultStringPieceExtension =
  787. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[66]);
  788. public static readonly pb::GeneratedExtension<self::TestAllExtensions, string> DefaultCordExtension =
  789. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, string>(Descriptor.Extensions[67]);
  790. public static readonly pb::GeneratedExtension<self::TestFieldOrderings, string> MyExtensionString =
  791. pb::GeneratedExtension.CreateExtension<self::TestFieldOrderings, string>(Descriptor.Extensions[68]);
  792. public static readonly pb::GeneratedExtension<self::TestFieldOrderings, int> MyExtensionInt =
  793. pb::GeneratedExtension.CreateExtension<self::TestFieldOrderings, int>(Descriptor.Extensions[69]);
  794. */
  795. #endregion
  796. #region Static variables
  797. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor
  798. = Descriptor.MessageTypes[0];
  799. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable
  800. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
  801. new string[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", },
  802. typeof (self::TestAllTypes),
  803. typeof (self::TestAllTypes.Builder));
  804. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor
  805. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  806. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable
  807. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  808. new string[] { "Bb", },
  809. typeof (self::TestAllTypes.Types.NestedMessage),
  810. typeof (self::TestAllTypes.Types.NestedMessage.Builder));
  811. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor
  812. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  813. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable
  814. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  815. new string[] { "A", },
  816. typeof (self::TestAllTypes.Types.OptionalGroup),
  817. typeof (self::TestAllTypes.Types.OptionalGroup.Builder));
  818. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor
  819. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  820. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable
  821. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  822. new string[] { "A", },
  823. typeof (self::TestAllTypes.Types.RepeatedGroup),
  824. typeof (self::TestAllTypes.Types.RepeatedGroup.Builder));
  825. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor
  826. = Descriptor.MessageTypes[1];
  827. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable
  828. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  829. new string[] { "C", },
  830. typeof (self::ForeignMessage),
  831. typeof (self::ForeignMessage.Builder));
  832. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor
  833. = Descriptor.MessageTypes[2];
  834. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable
  835. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  836. new string[] { },
  837. typeof (self::TestAllExtensions),
  838. typeof (self::TestAllExtensions.Builder));
  839. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor
  840. = Descriptor.MessageTypes[3];
  841. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable
  842. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  843. new string[] { "A", },
  844. typeof (self::OptionalGroup_extension),
  845. typeof (self::OptionalGroup_extension.Builder));
  846. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor
  847. = Descriptor.MessageTypes[4];
  848. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable
  849. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  850. new string[] { "A", },
  851. typeof (self::RepeatedGroup_extension),
  852. typeof (self::RepeatedGroup_extension.Builder));
  853. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor
  854. = Descriptor.MessageTypes[5];
  855. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequired__FieldAccessorTable
  856. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequired__Descriptor,
  857. new string[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", },
  858. typeof (self::TestRequired),
  859. typeof (self::TestRequired.Builder));
  860. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor
  861. = Descriptor.MessageTypes[6];
  862. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable
  863. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  864. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", },
  865. typeof (self::TestRequiredForeign),
  866. typeof (self::TestRequiredForeign.Builder));
  867. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor
  868. = Descriptor.MessageTypes[7];
  869. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable
  870. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  871. new string[] { "ForeignNested", },
  872. typeof (self::TestForeignNested),
  873. typeof (self::TestForeignNested.Builder));
  874. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor
  875. = Descriptor.MessageTypes[8];
  876. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable
  877. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  878. new string[] { },
  879. typeof (self::TestEmptyMessage),
  880. typeof (self::TestEmptyMessage.Builder));
  881. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor
  882. = Descriptor.MessageTypes[9];
  883. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable
  884. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  885. new string[] { },
  886. typeof (self::TestEmptyMessageWithExtensions),
  887. typeof (self::TestEmptyMessageWithExtensions.Builder));
  888. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor
  889. = Descriptor.MessageTypes[10];
  890. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable
  891. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  892. new string[] { "A", "Bb", },
  893. typeof (self::TestReallyLargeTagNumber),
  894. typeof (self::TestReallyLargeTagNumber.Builder));
  895. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor
  896. = Descriptor.MessageTypes[11];
  897. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable
  898. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  899. new string[] { "A", "I", },
  900. typeof (self::TestRecursiveMessage),
  901. typeof (self::TestRecursiveMessage.Builder));
  902. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor
  903. = Descriptor.MessageTypes[12];
  904. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable
  905. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  906. new string[] { "Bb", },
  907. typeof (self::TestMutualRecursionA),
  908. typeof (self::TestMutualRecursionA.Builder));
  909. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor
  910. = Descriptor.MessageTypes[13];
  911. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable
  912. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  913. new string[] { "A", "OptionalInt32", },
  914. typeof (self::TestMutualRecursionB),
  915. typeof (self::TestMutualRecursionB.Builder));
  916. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor
  917. = Descriptor.MessageTypes[14];
  918. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable
  919. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  920. new string[] { "A", "Foo", "Bar", },
  921. typeof (self::TestDupFieldNumber),
  922. typeof (self::TestDupFieldNumber.Builder));
  923. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor
  924. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  925. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable
  926. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  927. new string[] { "A", },
  928. typeof (self::TestDupFieldNumber.Types.Foo),
  929. typeof (self::TestDupFieldNumber.Types.Foo.Builder));
  930. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor
  931. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  932. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable
  933. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  934. new string[] { "A", },
  935. typeof (self::TestDupFieldNumber.Types.Bar),
  936. typeof (self::TestDupFieldNumber.Types.Bar.Builder));
  937. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor
  938. = Descriptor.MessageTypes[15];
  939. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable
  940. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  941. new string[] { "OptionalNestedMessage", },
  942. typeof (self::TestNestedMessageHasBits),
  943. typeof (self::TestNestedMessageHasBits.Builder));
  944. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor
  945. = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  946. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable
  947. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  948. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", },
  949. typeof (self::TestNestedMessageHasBits.Types.NestedMessage),
  950. typeof (self::TestNestedMessageHasBits.Types.NestedMessage.Builder));
  951. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor
  952. = Descriptor.MessageTypes[16];
  953. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable
  954. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  955. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", },
  956. typeof (self::TestCamelCaseFieldNames),
  957. typeof (self::TestCamelCaseFieldNames.Builder));
  958. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor
  959. = Descriptor.MessageTypes[17];
  960. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable
  961. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  962. new string[] { "MyString", "MyInt", "MyFloat", },
  963. typeof (self::TestFieldOrderings),
  964. typeof (self::TestFieldOrderings.Builder));
  965. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor
  966. = Descriptor.MessageTypes[18];
  967. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable
  968. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  969. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", },
  970. typeof (self::TestExtremeDefaultValues),
  971. typeof (self::TestExtremeDefaultValues.Builder));
  972. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor
  973. = Descriptor.MessageTypes[19];
  974. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable
  975. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooRequest__Descriptor,
  976. new string[] { },
  977. typeof (self::FooRequest),
  978. typeof (self::FooRequest.Builder));
  979. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor
  980. = Descriptor.MessageTypes[20];
  981. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable
  982. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooResponse__Descriptor,
  983. new string[] { },
  984. typeof (self::FooResponse),
  985. typeof (self::FooResponse.Builder));
  986. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor
  987. = Descriptor.MessageTypes[21];
  988. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable
  989. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarRequest__Descriptor,
  990. new string[] { },
  991. typeof (self::BarRequest),
  992. typeof (self::BarRequest.Builder));
  993. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor
  994. = Descriptor.MessageTypes[22];
  995. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable
  996. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarResponse__Descriptor,
  997. new string[] { },
  998. typeof (self::BarResponse),
  999. typeof (self::BarResponse.Builder));
  1000. #endregion
  1001. }
  1002. #region Enums
  1003. public enum ForeignEnum {
  1004. FOREIGN_FOO = 4,
  1005. FOREIGN_BAR = 5,
  1006. FOREIGN_BAZ = 6,
  1007. }
  1008. public enum TestEnumWithDupValue {
  1009. FOO1 = 1,
  1010. BAR1 = 2,
  1011. BAZ = 3,
  1012. }
  1013. public enum TestSparseEnum {
  1014. SPARSE_A = 123,
  1015. SPARSE_B = 62374,
  1016. SPARSE_C = 12589234,
  1017. SPARSE_D = -15,
  1018. SPARSE_E = -53452,
  1019. SPARSE_F = 0,
  1020. SPARSE_G = 2,
  1021. }
  1022. #endregion
  1023. #region Messages
  1024. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  1025. // Use TestAllTypes.CreateBuilder() to construct.
  1026. private TestAllTypes() {}
  1027. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  1028. public static TestAllTypes DefaultInstance {
  1029. get { return defaultInstance; }
  1030. }
  1031. public override TestAllTypes DefaultInstanceForType {
  1032. get { return defaultInstance; }
  1033. }
  1034. public static pbd::MessageDescriptor Descriptor {
  1035. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  1036. }
  1037. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1038. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  1039. }
  1040. #region Nested types
  1041. public static class Types {
  1042. public enum NestedEnum {
  1043. FOO = 1,
  1044. BAR = 2,
  1045. BAZ = 3,
  1046. }
  1047. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  1048. // Use NestedMessage.CreateBuilder() to construct.
  1049. private NestedMessage() {}
  1050. private static readonly NestedMessage defaultInstance = new NestedMessage();
  1051. public static NestedMessage DefaultInstance {
  1052. get { return defaultInstance; }
  1053. }
  1054. public override NestedMessage DefaultInstanceForType {
  1055. get { return defaultInstance; }
  1056. }
  1057. public static pbd::MessageDescriptor Descriptor {
  1058. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1059. }
  1060. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1061. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1062. }
  1063. // optional int32 bb = 1;
  1064. private bool hasBb;
  1065. private int bb_ = 0;
  1066. public bool HasBb {
  1067. get { return hasBb; }
  1068. }
  1069. public int Bb {
  1070. get { return bb_; }
  1071. }
  1072. public override bool IsInitialized {
  1073. get {
  1074. return true;
  1075. }
  1076. }
  1077. public override void WriteTo(pb::CodedOutputStream output) {
  1078. if (HasBb) {
  1079. output.WriteInt32(1, Bb);
  1080. }
  1081. UnknownFields.WriteTo(output);
  1082. }
  1083. private int memoizedSerializedSize = -1;
  1084. public override int SerializedSize {
  1085. get {
  1086. int size = memoizedSerializedSize;
  1087. if (size != -1) return size;
  1088. size = 0;
  1089. if (HasBb) {
  1090. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1091. }
  1092. size += UnknownFields.SerializedSize;
  1093. memoizedSerializedSize = size;
  1094. return size;
  1095. }
  1096. }
  1097. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1098. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1099. }
  1100. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1101. pb::ExtensionRegistry extensionRegistry) {
  1102. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1103. .BuildParsed();
  1104. }
  1105. public static self::TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1106. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1107. }
  1108. public static self::TestAllTypes.Types.NestedMessage parseFrom(byte[] data,
  1109. pb::ExtensionRegistry extensionRegistry) {
  1110. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1111. .BuildParsed();
  1112. }
  1113. public static self::TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1114. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1115. }
  1116. public static self::TestAllTypes.Types.NestedMessage ParseFrom(
  1117. global::System.IO.Stream input,
  1118. pb::ExtensionRegistry extensionRegistry) {
  1119. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1120. .BuildParsed();
  1121. }
  1122. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1123. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1124. }
  1125. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1126. pb::ExtensionRegistry extensionRegistry) {
  1127. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1128. .BuildParsed();
  1129. }
  1130. public static Builder CreateBuilder() { return new Builder(); }
  1131. public override IBuilder<self::TestAllTypes.Types.NestedMessage> CreateBuilderForType() { return new Builder(); }
  1132. public static Builder CreateBuilder(self::TestAllTypes.Types.NestedMessage prototype) {
  1133. return (Builder) new Builder().MergeFrom(prototype);
  1134. }
  1135. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.NestedMessage, Builder> {
  1136. // Construct using self::TestAllTypes.Types.NestedMessage.CreateBuilder()
  1137. internal Builder() {}
  1138. self::TestAllTypes.Types.NestedMessage result = new self::TestAllTypes.Types.NestedMessage();
  1139. protected override self::TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1140. get { return result; }
  1141. }
  1142. public override IBuilder<self::TestAllTypes.Types.NestedMessage> Clear() {
  1143. result = new self::TestAllTypes.Types.NestedMessage();
  1144. return this;
  1145. }
  1146. public override IBuilder<self::TestAllTypes.Types.NestedMessage> Clone() {
  1147. return new Builder().MergeFrom(result);
  1148. }
  1149. public override pbd::MessageDescriptor DescriptorForType {
  1150. get { return self::TestAllTypes.Types.NestedMessage.Descriptor; }
  1151. }
  1152. public override self::TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1153. get { return self::TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1154. }
  1155. public override self::TestAllTypes.Types.NestedMessage BuildPartial() {
  1156. self::TestAllTypes.Types.NestedMessage returnMe = result;
  1157. result = null;
  1158. return returnMe;
  1159. }
  1160. public override IBuilder MergeFrom(pb::IMessage other) {
  1161. if (other is self::TestAllTypes.Types.NestedMessage) {
  1162. return MergeFrom((self::TestAllTypes.Types.NestedMessage) other);
  1163. } else {
  1164. base.MergeFrom(other);
  1165. return this;
  1166. }
  1167. }
  1168. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(self::TestAllTypes.Types.NestedMessage other) {
  1169. if (other == self::TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1170. if (other.HasBb) {
  1171. Bb = other.Bb;
  1172. }
  1173. this.MergeUnknownFields(other.UnknownFields);
  1174. return this;
  1175. }
  1176. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(pb::CodedInputStream input) {
  1177. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1178. }
  1179. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1180. pb::UnknownFieldSet.Builder unknownFields =
  1181. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1182. while (true) {
  1183. uint tag = input.ReadTag();
  1184. switch (tag) {
  1185. case 0:
  1186. this.UnknownFields = unknownFields.Build();
  1187. return this;
  1188. default: {
  1189. if (!ParseUnknownField(input, unknownFields,
  1190. extensionRegistry, tag)) {
  1191. this.UnknownFields = unknownFields.Build();
  1192. return this;
  1193. }
  1194. break;
  1195. }
  1196. case 8: {
  1197. Bb = input.ReadInt32();
  1198. break;
  1199. }
  1200. }
  1201. }
  1202. }
  1203. // optional int32 bb = 1;
  1204. public bool HasBb {
  1205. get { return result.HasBb; }
  1206. }
  1207. public int Bb {
  1208. get { return result.Bb; }
  1209. set { SetBb(value); }
  1210. }
  1211. public Builder SetBb(int value) {
  1212. result.hasBb = true;
  1213. result.bb_ = value;
  1214. return this;
  1215. }
  1216. public Builder ClearBb() {
  1217. result.hasBb = false;
  1218. result.bb_ = 0;
  1219. return this;
  1220. }
  1221. }
  1222. }
  1223. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1224. // Use OptionalGroup.CreateBuilder() to construct.
  1225. private OptionalGroup() {}
  1226. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1227. public static OptionalGroup DefaultInstance {
  1228. get { return defaultInstance; }
  1229. }
  1230. public override OptionalGroup DefaultInstanceForType {
  1231. get { return defaultInstance; }
  1232. }
  1233. public static pbd::MessageDescriptor Descriptor {
  1234. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1235. }
  1236. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1237. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1238. }
  1239. // optional int32 a = 17;
  1240. private bool hasA;
  1241. private int a_ = 0;
  1242. public bool HasA {
  1243. get { return hasA; }
  1244. }
  1245. public int A {
  1246. get { return a_; }
  1247. }
  1248. public override bool IsInitialized {
  1249. get {
  1250. return true;
  1251. }
  1252. }
  1253. public override void WriteTo(pb::CodedOutputStream output) {
  1254. if (HasA) {
  1255. output.WriteInt32(17, A);
  1256. }
  1257. UnknownFields.WriteTo(output);
  1258. }
  1259. private int memoizedSerializedSize = -1;
  1260. public override int SerializedSize {
  1261. get {
  1262. int size = memoizedSerializedSize;
  1263. if (size != -1) return size;
  1264. size = 0;
  1265. if (HasA) {
  1266. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1267. }
  1268. size += UnknownFields.SerializedSize;
  1269. memoizedSerializedSize = size;
  1270. return size;
  1271. }
  1272. }
  1273. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1274. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1275. }
  1276. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1277. pb::ExtensionRegistry extensionRegistry) {
  1278. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1279. .BuildParsed();
  1280. }
  1281. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1282. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1283. }
  1284. public static self::TestAllTypes.Types.OptionalGroup parseFrom(byte[] data,
  1285. pb::ExtensionRegistry extensionRegistry) {
  1286. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1287. .BuildParsed();
  1288. }
  1289. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1290. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1291. }
  1292. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(
  1293. global::System.IO.Stream input,
  1294. pb::ExtensionRegistry extensionRegistry) {
  1295. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1296. .BuildParsed();
  1297. }
  1298. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1299. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1300. }
  1301. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1302. pb::ExtensionRegistry extensionRegistry) {
  1303. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1304. .BuildParsed();
  1305. }
  1306. public static Builder CreateBuilder() { return new Builder(); }
  1307. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> CreateBuilderForType() { return new Builder(); }
  1308. public static Builder CreateBuilder(self::TestAllTypes.Types.OptionalGroup prototype) {
  1309. return (Builder) new Builder().MergeFrom(prototype);
  1310. }
  1311. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.OptionalGroup, Builder> {
  1312. // Construct using self::TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1313. internal Builder() {}
  1314. self::TestAllTypes.Types.OptionalGroup result = new self::TestAllTypes.Types.OptionalGroup();
  1315. protected override self::TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1316. get { return result; }
  1317. }
  1318. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> Clear() {
  1319. result = new self::TestAllTypes.Types.OptionalGroup();
  1320. return this;
  1321. }
  1322. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> Clone() {
  1323. return new Builder().MergeFrom(result);
  1324. }
  1325. public override pbd::MessageDescriptor DescriptorForType {
  1326. get { return self::TestAllTypes.Types.OptionalGroup.Descriptor; }
  1327. }
  1328. public override self::TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1329. get { return self::TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1330. }
  1331. public override self::TestAllTypes.Types.OptionalGroup BuildPartial() {
  1332. self::TestAllTypes.Types.OptionalGroup returnMe = result;
  1333. result = null;
  1334. return returnMe;
  1335. }
  1336. public override IBuilder MergeFrom(pb::IMessage other) {
  1337. if (other is self::TestAllTypes.Types.OptionalGroup) {
  1338. return MergeFrom((self::TestAllTypes.Types.OptionalGroup) other);
  1339. } else {
  1340. base.MergeFrom(other);
  1341. return this;
  1342. }
  1343. }
  1344. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(self::TestAllTypes.Types.OptionalGroup other) {
  1345. if (other == self::TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1346. if (other.HasA) {
  1347. A = other.A;
  1348. }
  1349. this.MergeUnknownFields(other.UnknownFields);
  1350. return this;
  1351. }
  1352. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(pb::CodedInputStream input) {
  1353. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1354. }
  1355. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1356. pb::UnknownFieldSet.Builder unknownFields =
  1357. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1358. while (true) {
  1359. uint tag = input.ReadTag();
  1360. switch (tag) {
  1361. case 0:
  1362. this.UnknownFields = unknownFields.Build();
  1363. return this;
  1364. default: {
  1365. if (!ParseUnknownField(input, unknownFields,
  1366. extensionRegistry, tag)) {
  1367. this.UnknownFields = unknownFields.Build();
  1368. return this;
  1369. }
  1370. break;
  1371. }
  1372. case 136: {
  1373. A = input.ReadInt32();
  1374. break;
  1375. }
  1376. }
  1377. }
  1378. }
  1379. // optional int32 a = 17;
  1380. public bool HasA {
  1381. get { return result.HasA; }
  1382. }
  1383. public int A {
  1384. get { return result.A; }
  1385. set { SetA(value); }
  1386. }
  1387. public Builder SetA(int value) {
  1388. result.hasA = true;
  1389. result.a_ = value;
  1390. return this;
  1391. }
  1392. public Builder ClearA() {
  1393. result.hasA = false;
  1394. result.a_ = 0;
  1395. return this;
  1396. }
  1397. }
  1398. }
  1399. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1400. // Use RepeatedGroup.CreateBuilder() to construct.
  1401. private RepeatedGroup() {}
  1402. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1403. public static RepeatedGroup DefaultInstance {
  1404. get { return defaultInstance; }
  1405. }
  1406. public override RepeatedGroup DefaultInstanceForType {
  1407. get { return defaultInstance; }
  1408. }
  1409. public static pbd::MessageDescriptor Descriptor {
  1410. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1411. }
  1412. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1413. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1414. }
  1415. // optional int32 a = 47;
  1416. private bool hasA;
  1417. private int a_ = 0;
  1418. public bool HasA {
  1419. get { return hasA; }
  1420. }
  1421. public int A {
  1422. get { return a_; }
  1423. }
  1424. public override bool IsInitialized {
  1425. get {
  1426. return true;
  1427. }
  1428. }
  1429. public override void WriteTo(pb::CodedOutputStream output) {
  1430. if (HasA) {
  1431. output.WriteInt32(47, A);
  1432. }
  1433. UnknownFields.WriteTo(output);
  1434. }
  1435. private int memoizedSerializedSize = -1;
  1436. public override int SerializedSize {
  1437. get {
  1438. int size = memoizedSerializedSize;
  1439. if (size != -1) return size;
  1440. size = 0;
  1441. if (HasA) {
  1442. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1443. }
  1444. size += UnknownFields.SerializedSize;
  1445. memoizedSerializedSize = size;
  1446. return size;
  1447. }
  1448. }
  1449. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1450. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1451. }
  1452. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1453. pb::ExtensionRegistry extensionRegistry) {
  1454. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1455. .BuildParsed();
  1456. }
  1457. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1458. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1459. }
  1460. public static self::TestAllTypes.Types.RepeatedGroup parseFrom(byte[] data,
  1461. pb::ExtensionRegistry extensionRegistry) {
  1462. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1463. .BuildParsed();
  1464. }
  1465. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1466. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1467. }
  1468. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(
  1469. global::System.IO.Stream input,
  1470. pb::ExtensionRegistry extensionRegistry) {
  1471. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1472. .BuildParsed();
  1473. }
  1474. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1475. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1476. }
  1477. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1478. pb::ExtensionRegistry extensionRegistry) {
  1479. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1480. .BuildParsed();
  1481. }
  1482. public static Builder CreateBuilder() { return new Builder(); }
  1483. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> CreateBuilderForType() { return new Builder(); }
  1484. public static Builder CreateBuilder(self::TestAllTypes.Types.RepeatedGroup prototype) {
  1485. return (Builder) new Builder().MergeFrom(prototype);
  1486. }
  1487. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.RepeatedGroup, Builder> {
  1488. // Construct using self::TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1489. internal Builder() {}
  1490. self::TestAllTypes.Types.RepeatedGroup result = new self::TestAllTypes.Types.RepeatedGroup();
  1491. protected override self::TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1492. get { return result; }
  1493. }
  1494. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> Clear() {
  1495. result = new self::TestAllTypes.Types.RepeatedGroup();
  1496. return this;
  1497. }
  1498. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> Clone() {
  1499. return new Builder().MergeFrom(result);
  1500. }
  1501. public override pbd::MessageDescriptor DescriptorForType {
  1502. get { return self::TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1503. }
  1504. public override self::TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1505. get { return self::TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1506. }
  1507. public override self::TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1508. self::TestAllTypes.Types.RepeatedGroup returnMe = result;
  1509. result = null;
  1510. return returnMe;
  1511. }
  1512. public override IBuilder MergeFrom(pb::IMessage other) {
  1513. if (other is self::TestAllTypes.Types.RepeatedGroup) {
  1514. return MergeFrom((self::TestAllTypes.Types.RepeatedGroup) other);
  1515. } else {
  1516. base.MergeFrom(other);
  1517. return this;
  1518. }
  1519. }
  1520. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(self::TestAllTypes.Types.RepeatedGroup other) {
  1521. if (other == self::TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1522. if (other.HasA) {
  1523. A = other.A;
  1524. }
  1525. this.MergeUnknownFields(other.UnknownFields);
  1526. return this;
  1527. }
  1528. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(pb::CodedInputStream input) {
  1529. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1530. }
  1531. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1532. pb::UnknownFieldSet.Builder unknownFields =
  1533. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1534. while (true) {
  1535. uint tag = input.ReadTag();
  1536. switch (tag) {
  1537. case 0:
  1538. this.UnknownFields = unknownFields.Build();
  1539. return this;
  1540. default: {
  1541. if (!ParseUnknownField(input, unknownFields,
  1542. extensionRegistry, tag)) {
  1543. this.UnknownFields = unknownFields.Build();
  1544. return this;
  1545. }
  1546. break;
  1547. }
  1548. case 376: {
  1549. A = input.ReadInt32();
  1550. break;
  1551. }
  1552. }
  1553. }
  1554. }
  1555. // optional int32 a = 47;
  1556. public bool HasA {
  1557. get { return result.HasA; }
  1558. }
  1559. public int A {
  1560. get { return result.A; }
  1561. set { SetA(value); }
  1562. }
  1563. public Builder SetA(int value) {
  1564. result.hasA = true;
  1565. result.a_ = value;
  1566. return this;
  1567. }
  1568. public Builder ClearA() {
  1569. result.hasA = false;
  1570. result.a_ = 0;
  1571. return this;
  1572. }
  1573. }
  1574. }
  1575. }
  1576. #endregion
  1577. // optional int32 optional_int32 = 1;
  1578. private bool hasOptionalInt32;
  1579. private int optionalInt32_ = 0;
  1580. public bool HasOptionalInt32 {
  1581. get { return hasOptionalInt32; }
  1582. }
  1583. public int OptionalInt32 {
  1584. get { return optionalInt32_; }
  1585. }
  1586. // optional int64 optional_int64 = 2;
  1587. private bool hasOptionalInt64;
  1588. private long optionalInt64_ = 0L;
  1589. public bool HasOptionalInt64 {
  1590. get { return hasOptionalInt64; }
  1591. }
  1592. public long OptionalInt64 {
  1593. get { return optionalInt64_; }
  1594. }
  1595. // optional uint32 optional_uint32 = 3;
  1596. private bool hasOptionalUint32;
  1597. private uint optionalUint32_ = 0;
  1598. public bool HasOptionalUint32 {
  1599. get { return hasOptionalUint32; }
  1600. }
  1601. public uint OptionalUint32 {
  1602. get { return optionalUint32_; }
  1603. }
  1604. // optional uint64 optional_uint64 = 4;
  1605. private bool hasOptionalUint64;
  1606. private ulong optionalUint64_ = 0UL;
  1607. public bool HasOptionalUint64 {
  1608. get { return hasOptionalUint64; }
  1609. }
  1610. public ulong OptionalUint64 {
  1611. get { return optionalUint64_; }
  1612. }
  1613. // optional sint32 optional_sint32 = 5;
  1614. private bool hasOptionalSint32;
  1615. private int optionalSint32_ = 0;
  1616. public bool HasOptionalSint32 {
  1617. get { return hasOptionalSint32; }
  1618. }
  1619. public int OptionalSint32 {
  1620. get { return optionalSint32_; }
  1621. }
  1622. // optional sint64 optional_sint64 = 6;
  1623. private bool hasOptionalSint64;
  1624. private long optionalSint64_ = 0L;
  1625. public bool HasOptionalSint64 {
  1626. get { return hasOptionalSint64; }
  1627. }
  1628. public long OptionalSint64 {
  1629. get { return optionalSint64_; }
  1630. }
  1631. // optional fixed32 optional_fixed32 = 7;
  1632. private bool hasOptionalFixed32;
  1633. private uint optionalFixed32_ = 0;
  1634. public bool HasOptionalFixed32 {
  1635. get { return hasOptionalFixed32; }
  1636. }
  1637. public uint OptionalFixed32 {
  1638. get { return optionalFixed32_; }
  1639. }
  1640. // optional fixed64 optional_fixed64 = 8;
  1641. private bool hasOptionalFixed64;
  1642. private ulong optionalFixed64_ = 0UL;
  1643. public bool HasOptionalFixed64 {
  1644. get { return hasOptionalFixed64; }
  1645. }
  1646. public ulong OptionalFixed64 {
  1647. get { return optionalFixed64_; }
  1648. }
  1649. // optional sfixed32 optional_sfixed32 = 9;
  1650. private bool hasOptionalSfixed32;
  1651. private int optionalSfixed32_ = 0;
  1652. public bool HasOptionalSfixed32 {
  1653. get { return hasOptionalSfixed32; }
  1654. }
  1655. public int OptionalSfixed32 {
  1656. get { return optionalSfixed32_; }
  1657. }
  1658. // optional sfixed64 optional_sfixed64 = 10;
  1659. private bool hasOptionalSfixed64;
  1660. private long optionalSfixed64_ = 0L;
  1661. public bool HasOptionalSfixed64 {
  1662. get { return hasOptionalSfixed64; }
  1663. }
  1664. public long OptionalSfixed64 {
  1665. get { return optionalSfixed64_; }
  1666. }
  1667. // optional float optional_float = 11;
  1668. private bool hasOptionalFloat;
  1669. private float optionalFloat_ = 0F;
  1670. public bool HasOptionalFloat {
  1671. get { return hasOptionalFloat; }
  1672. }
  1673. public float OptionalFloat {
  1674. get { return optionalFloat_; }
  1675. }
  1676. // optional double optional_double = 12;
  1677. private bool hasOptionalDouble;
  1678. private double optionalDouble_ = 0D;
  1679. public bool HasOptionalDouble {
  1680. get { return hasOptionalDouble; }
  1681. }
  1682. public double OptionalDouble {
  1683. get { return optionalDouble_; }
  1684. }
  1685. // optional bool optional_bool = 13;
  1686. private bool hasOptionalBool;
  1687. private bool optionalBool_ = false;
  1688. public bool HasOptionalBool {
  1689. get { return hasOptionalBool; }
  1690. }
  1691. public bool OptionalBool {
  1692. get { return optionalBool_; }
  1693. }
  1694. // optional string optional_string = 14;
  1695. private bool hasOptionalString;
  1696. private string optionalString_ = "";
  1697. public bool HasOptionalString {
  1698. get { return hasOptionalString; }
  1699. }
  1700. public string OptionalString {
  1701. get { return optionalString_; }
  1702. }
  1703. // optional bytes optional_bytes = 15;
  1704. private bool hasOptionalBytes;
  1705. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1706. public bool HasOptionalBytes {
  1707. get { return hasOptionalBytes; }
  1708. }
  1709. public pb::ByteString OptionalBytes {
  1710. get { return optionalBytes_; }
  1711. }
  1712. // optional group OptionalGroup = 16 {
  1713. private bool hasOptionalGroup;
  1714. private self::TestAllTypes.Types.OptionalGroup optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1715. public bool HasOptionalGroup {
  1716. get { return hasOptionalGroup; }
  1717. }
  1718. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  1719. get { return optionalGroup_; }
  1720. }
  1721. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1722. private bool hasOptionalNestedMessage;
  1723. private self::TestAllTypes.Types.NestedMessage optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  1724. public bool HasOptionalNestedMessage {
  1725. get { return hasOptionalNestedMessage; }
  1726. }
  1727. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1728. get { return optionalNestedMessage_; }
  1729. }
  1730. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1731. private bool hasOptionalForeignMessage;
  1732. private self::ForeignMessage optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  1733. public bool HasOptionalForeignMessage {
  1734. get { return hasOptionalForeignMessage; }
  1735. }
  1736. public self::ForeignMessage OptionalForeignMessage {
  1737. get { return optionalForeignMessage_; }
  1738. }
  1739. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1740. private bool hasOptionalImportMessage;
  1741. private self::ImportMessage optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  1742. public bool HasOptionalImportMessage {
  1743. get { return hasOptionalImportMessage; }
  1744. }
  1745. public self::ImportMessage OptionalImportMessage {
  1746. get { return optionalImportMessage_; }
  1747. }
  1748. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1749. private bool hasOptionalNestedEnum;
  1750. private self::TestAllTypes.Types.NestedEnum optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  1751. public bool HasOptionalNestedEnum {
  1752. get { return hasOptionalNestedEnum; }
  1753. }
  1754. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1755. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1756. private bool hasOptionalForeignEnum;
  1757. private self::ForeignEnum optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  1758. public bool HasOptionalForeignEnum {
  1759. get { return hasOptionalForeignEnum; }
  1760. }
  1761. public self::ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1762. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1763. private bool hasOptionalImportEnum;
  1764. private self::ImportEnum optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  1765. public bool HasOptionalImportEnum {
  1766. get { return hasOptionalImportEnum; }
  1767. }
  1768. public self::ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1769. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1770. private bool hasOptionalStringPiece;
  1771. private string optionalStringPiece_ = "";
  1772. public bool HasOptionalStringPiece {
  1773. get { return hasOptionalStringPiece; }
  1774. }
  1775. public string OptionalStringPiece {
  1776. get { return optionalStringPiece_; }
  1777. }
  1778. // optional string optional_cord = 25 [ctype = CORD];
  1779. private bool hasOptionalCord;
  1780. private string optionalCord_ = "";
  1781. public bool HasOptionalCord {
  1782. get { return hasOptionalCord; }
  1783. }
  1784. public string OptionalCord {
  1785. get { return optionalCord_; }
  1786. }
  1787. // repeated int32 repeated_int32 = 31;
  1788. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1789. public scg::IList<int> RepeatedInt32List {
  1790. get { return repeatedInt32_; }
  1791. }
  1792. public int RepeatedInt32Count {
  1793. get { return repeatedInt32_.Count; }
  1794. }
  1795. public int GetRepeatedInt32(int index) {
  1796. return repeatedInt32_[index];
  1797. }
  1798. // repeated int64 repeated_int64 = 32;
  1799. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1800. public scg::IList<long> RepeatedInt64List {
  1801. get { return repeatedInt64_; }
  1802. }
  1803. public int RepeatedInt64Count {
  1804. get { return repeatedInt64_.Count; }
  1805. }
  1806. public long GetRepeatedInt64(int index) {
  1807. return repeatedInt64_[index];
  1808. }
  1809. // repeated uint32 repeated_uint32 = 33;
  1810. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1811. public scg::IList<uint> RepeatedUint32List {
  1812. get { return repeatedUint32_; }
  1813. }
  1814. public int RepeatedUint32Count {
  1815. get { return repeatedUint32_.Count; }
  1816. }
  1817. public uint GetRepeatedUint32(int index) {
  1818. return repeatedUint32_[index];
  1819. }
  1820. // repeated uint64 repeated_uint64 = 34;
  1821. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1822. public scg::IList<ulong> RepeatedUint64List {
  1823. get { return repeatedUint64_; }
  1824. }
  1825. public int RepeatedUint64Count {
  1826. get { return repeatedUint64_.Count; }
  1827. }
  1828. public ulong GetRepeatedUint64(int index) {
  1829. return repeatedUint64_[index];
  1830. }
  1831. // repeated sint32 repeated_sint32 = 35;
  1832. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1833. public scg::IList<int> RepeatedSint32List {
  1834. get { return repeatedSint32_; }
  1835. }
  1836. public int RepeatedSint32Count {
  1837. get { return repeatedSint32_.Count; }
  1838. }
  1839. public int GetRepeatedSint32(int index) {
  1840. return repeatedSint32_[index];
  1841. }
  1842. // repeated sint64 repeated_sint64 = 36;
  1843. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1844. public scg::IList<long> RepeatedSint64List {
  1845. get { return repeatedSint64_; }
  1846. }
  1847. public int RepeatedSint64Count {
  1848. get { return repeatedSint64_.Count; }
  1849. }
  1850. public long GetRepeatedSint64(int index) {
  1851. return repeatedSint64_[index];
  1852. }
  1853. // repeated fixed32 repeated_fixed32 = 37;
  1854. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1855. public scg::IList<uint> RepeatedFixed32List {
  1856. get { return repeatedFixed32_; }
  1857. }
  1858. public int RepeatedFixed32Count {
  1859. get { return repeatedFixed32_.Count; }
  1860. }
  1861. public uint GetRepeatedFixed32(int index) {
  1862. return repeatedFixed32_[index];
  1863. }
  1864. // repeated fixed64 repeated_fixed64 = 38;
  1865. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1866. public scg::IList<ulong> RepeatedFixed64List {
  1867. get { return repeatedFixed64_; }
  1868. }
  1869. public int RepeatedFixed64Count {
  1870. get { return repeatedFixed64_.Count; }
  1871. }
  1872. public ulong GetRepeatedFixed64(int index) {
  1873. return repeatedFixed64_[index];
  1874. }
  1875. // repeated sfixed32 repeated_sfixed32 = 39;
  1876. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1877. public scg::IList<int> RepeatedSfixed32List {
  1878. get { return repeatedSfixed32_; }
  1879. }
  1880. public int RepeatedSfixed32Count {
  1881. get { return repeatedSfixed32_.Count; }
  1882. }
  1883. public int GetRepeatedSfixed32(int index) {
  1884. return repeatedSfixed32_[index];
  1885. }
  1886. // repeated sfixed64 repeated_sfixed64 = 40;
  1887. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1888. public scg::IList<long> RepeatedSfixed64List {
  1889. get { return repeatedSfixed64_; }
  1890. }
  1891. public int RepeatedSfixed64Count {
  1892. get { return repeatedSfixed64_.Count; }
  1893. }
  1894. public long GetRepeatedSfixed64(int index) {
  1895. return repeatedSfixed64_[index];
  1896. }
  1897. // repeated float repeated_float = 41;
  1898. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1899. public scg::IList<float> RepeatedFloatList {
  1900. get { return repeatedFloat_; }
  1901. }
  1902. public int RepeatedFloatCount {
  1903. get { return repeatedFloat_.Count; }
  1904. }
  1905. public float GetRepeatedFloat(int index) {
  1906. return repeatedFloat_[index];
  1907. }
  1908. // repeated double repeated_double = 42;
  1909. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1910. public scg::IList<double> RepeatedDoubleList {
  1911. get { return repeatedDouble_; }
  1912. }
  1913. public int RepeatedDoubleCount {
  1914. get { return repeatedDouble_.Count; }
  1915. }
  1916. public double GetRepeatedDouble(int index) {
  1917. return repeatedDouble_[index];
  1918. }
  1919. // repeated bool repeated_bool = 43;
  1920. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1921. public scg::IList<bool> RepeatedBoolList {
  1922. get { return repeatedBool_; }
  1923. }
  1924. public int RepeatedBoolCount {
  1925. get { return repeatedBool_.Count; }
  1926. }
  1927. public bool GetRepeatedBool(int index) {
  1928. return repeatedBool_[index];
  1929. }
  1930. // repeated string repeated_string = 44;
  1931. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1932. public scg::IList<string> RepeatedStringList {
  1933. get { return repeatedString_; }
  1934. }
  1935. public int RepeatedStringCount {
  1936. get { return repeatedString_.Count; }
  1937. }
  1938. public string GetRepeatedString(int index) {
  1939. return repeatedString_[index];
  1940. }
  1941. // repeated bytes repeated_bytes = 45;
  1942. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1943. public scg::IList<pb::ByteString> RepeatedBytesList {
  1944. get { return repeatedBytes_; }
  1945. }
  1946. public int RepeatedBytesCount {
  1947. get { return repeatedBytes_.Count; }
  1948. }
  1949. public pb::ByteString GetRepeatedBytes(int index) {
  1950. return repeatedBytes_[index];
  1951. }
  1952. // repeated group RepeatedGroup = 46 {
  1953. private scg::IList<self::TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  1954. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1955. get { return repeatedGroup_; }
  1956. }
  1957. public int RepeatedGroupCount
  1958. { get { return repeatedGroup_.Count; }
  1959. }
  1960. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1961. return repeatedGroup_ [index];
  1962. }
  1963. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1964. private scg::IList<self::TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  1965. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1966. get { return repeatedNestedMessage_; }
  1967. }
  1968. public int RepeatedNestedMessageCount
  1969. { get { return repeatedNestedMessage_.Count; }
  1970. }
  1971. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1972. return repeatedNestedMessage_ [index];
  1973. }
  1974. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1975. private scg::IList<self::ForeignMessage> repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  1976. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  1977. get { return repeatedForeignMessage_; }
  1978. }
  1979. public int RepeatedForeignMessageCount
  1980. { get { return repeatedForeignMessage_.Count; }
  1981. }
  1982. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  1983. return repeatedForeignMessage_ [index];
  1984. }
  1985. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1986. private scg::IList<self::ImportMessage> repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  1987. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  1988. get { return repeatedImportMessage_; }
  1989. }
  1990. public int RepeatedImportMessageCount
  1991. { get { return repeatedImportMessage_.Count; }
  1992. }
  1993. public self::ImportMessage GetRepeatedImportMessage(int index) {
  1994. return repeatedImportMessage_ [index];
  1995. }
  1996. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1997. private scg::IList<self::TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum> ();
  1998. public scg.IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1999. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  2000. }
  2001. public int RepeatedNestedEnumCount {
  2002. get { return repeatedNestedEnum_.Count; }
  2003. }
  2004. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  2005. return repeatedNestedEnum_[index];
  2006. }
  2007. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  2008. private scg::IList<self::ForeignEnum> repeatedForeignEnum_ = new scg::List<self::ForeignEnum> ();
  2009. public scg.IList<self::ForeignEnum> RepeatedForeignEnumList {
  2010. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  2011. }
  2012. public int RepeatedForeignEnumCount {
  2013. get { return repeatedForeignEnum_.Count; }
  2014. }
  2015. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  2016. return repeatedForeignEnum_[index];
  2017. }
  2018. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  2019. private scg::IList<self::ImportEnum> repeatedImportEnum_ = new scg::List<self::ImportEnum> ();
  2020. public scg.IList<self::ImportEnum> RepeatedImportEnumList {
  2021. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  2022. }
  2023. public int RepeatedImportEnumCount {
  2024. get { return repeatedImportEnum_.Count; }
  2025. }
  2026. public self::ImportEnum GetRepeatedImportEnum(int index) {
  2027. return repeatedImportEnum_[index];
  2028. }
  2029. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  2030. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  2031. public scg::IList<string> RepeatedStringPieceList {
  2032. get { return repeatedStringPiece_; }
  2033. }
  2034. public int RepeatedStringPieceCount {
  2035. get { return repeatedStringPiece_.Count; }
  2036. }
  2037. public string GetRepeatedStringPiece(int index) {
  2038. return repeatedStringPiece_[index];
  2039. }
  2040. // repeated string repeated_cord = 55 [ctype = CORD];
  2041. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  2042. public scg::IList<string> RepeatedCordList {
  2043. get { return repeatedCord_; }
  2044. }
  2045. public int RepeatedCordCount {
  2046. get { return repeatedCord_.Count; }
  2047. }
  2048. public string GetRepeatedCord(int index) {
  2049. return repeatedCord_[index];
  2050. }
  2051. // optional int32 default_int32 = 61 [default = 41];
  2052. private bool hasDefaultInt32;
  2053. private int defaultInt32_ = 41;
  2054. public bool HasDefaultInt32 {
  2055. get { return hasDefaultInt32; }
  2056. }
  2057. public int DefaultInt32 {
  2058. get { return defaultInt32_; }
  2059. }
  2060. // optional int64 default_int64 = 62 [default = 42];
  2061. private bool hasDefaultInt64;
  2062. private long defaultInt64_ = 42L;
  2063. public bool HasDefaultInt64 {
  2064. get { return hasDefaultInt64; }
  2065. }
  2066. public long DefaultInt64 {
  2067. get { return defaultInt64_; }
  2068. }
  2069. // optional uint32 default_uint32 = 63 [default = 43];
  2070. private bool hasDefaultUint32;
  2071. private uint defaultUint32_ = 43;
  2072. public bool HasDefaultUint32 {
  2073. get { return hasDefaultUint32; }
  2074. }
  2075. public uint DefaultUint32 {
  2076. get { return defaultUint32_; }
  2077. }
  2078. // optional uint64 default_uint64 = 64 [default = 44];
  2079. private bool hasDefaultUint64;
  2080. private ulong defaultUint64_ = 44UL;
  2081. public bool HasDefaultUint64 {
  2082. get { return hasDefaultUint64; }
  2083. }
  2084. public ulong DefaultUint64 {
  2085. get { return defaultUint64_; }
  2086. }
  2087. // optional sint32 default_sint32 = 65 [default = -45];
  2088. private bool hasDefaultSint32;
  2089. private int defaultSint32_ = -45;
  2090. public bool HasDefaultSint32 {
  2091. get { return hasDefaultSint32; }
  2092. }
  2093. public int DefaultSint32 {
  2094. get { return defaultSint32_; }
  2095. }
  2096. // optional sint64 default_sint64 = 66 [default = 46];
  2097. private bool hasDefaultSint64;
  2098. private long defaultSint64_ = 46L;
  2099. public bool HasDefaultSint64 {
  2100. get { return hasDefaultSint64; }
  2101. }
  2102. public long DefaultSint64 {
  2103. get { return defaultSint64_; }
  2104. }
  2105. // optional fixed32 default_fixed32 = 67 [default = 47];
  2106. private bool hasDefaultFixed32;
  2107. private uint defaultFixed32_ = 47;
  2108. public bool HasDefaultFixed32 {
  2109. get { return hasDefaultFixed32; }
  2110. }
  2111. public uint DefaultFixed32 {
  2112. get { return defaultFixed32_; }
  2113. }
  2114. // optional fixed64 default_fixed64 = 68 [default = 48];
  2115. private bool hasDefaultFixed64;
  2116. private ulong defaultFixed64_ = 48UL;
  2117. public bool HasDefaultFixed64 {
  2118. get { return hasDefaultFixed64; }
  2119. }
  2120. public ulong DefaultFixed64 {
  2121. get { return defaultFixed64_; }
  2122. }
  2123. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2124. private bool hasDefaultSfixed32;
  2125. private int defaultSfixed32_ = 49;
  2126. public bool HasDefaultSfixed32 {
  2127. get { return hasDefaultSfixed32; }
  2128. }
  2129. public int DefaultSfixed32 {
  2130. get { return defaultSfixed32_; }
  2131. }
  2132. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2133. private bool hasDefaultSfixed64;
  2134. private long defaultSfixed64_ = -50L;
  2135. public bool HasDefaultSfixed64 {
  2136. get { return hasDefaultSfixed64; }
  2137. }
  2138. public long DefaultSfixed64 {
  2139. get { return defaultSfixed64_; }
  2140. }
  2141. // optional float default_float = 71 [default = 51.5];
  2142. private bool hasDefaultFloat;
  2143. private float defaultFloat_ = 51.5F;
  2144. public bool HasDefaultFloat {
  2145. get { return hasDefaultFloat; }
  2146. }
  2147. public float DefaultFloat {
  2148. get { return defaultFloat_; }
  2149. }
  2150. // optional double default_double = 72 [default = 52000];
  2151. private bool hasDefaultDouble;
  2152. private double defaultDouble_ = 52000D;
  2153. public bool HasDefaultDouble {
  2154. get { return hasDefaultDouble; }
  2155. }
  2156. public double DefaultDouble {
  2157. get { return defaultDouble_; }
  2158. }
  2159. // optional bool default_bool = 73 [default = true];
  2160. private bool hasDefaultBool;
  2161. private bool defaultBool_ = true;
  2162. public bool HasDefaultBool {
  2163. get { return hasDefaultBool; }
  2164. }
  2165. public bool DefaultBool {
  2166. get { return defaultBool_; }
  2167. }
  2168. // optional string default_string = 74 [default = "hello"];
  2169. private bool hasDefaultString;
  2170. private string defaultString_ = "hello";
  2171. public bool HasDefaultString {
  2172. get { return hasDefaultString; }
  2173. }
  2174. public string DefaultString {
  2175. get { return defaultString_; }
  2176. }
  2177. // optional bytes default_bytes = 75 [default = "world"];
  2178. private bool hasDefaultBytes;
  2179. private pb::ByteString defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2180. public bool HasDefaultBytes {
  2181. get { return hasDefaultBytes; }
  2182. }
  2183. public pb::ByteString DefaultBytes {
  2184. get { return defaultBytes_; }
  2185. }
  2186. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2187. private bool hasDefaultNestedEnum;
  2188. private self::TestAllTypes.Types.NestedEnum defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  2189. public bool HasDefaultNestedEnum {
  2190. get { return hasDefaultNestedEnum; }
  2191. }
  2192. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2193. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2194. private bool hasDefaultForeignEnum;
  2195. private self::ForeignEnum defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  2196. public bool HasDefaultForeignEnum {
  2197. get { return hasDefaultForeignEnum; }
  2198. }
  2199. public self::ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2200. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2201. private bool hasDefaultImportEnum;
  2202. private self::ImportEnum defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  2203. public bool HasDefaultImportEnum {
  2204. get { return hasDefaultImportEnum; }
  2205. }
  2206. public self::ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2207. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2208. private bool hasDefaultStringPiece;
  2209. private string defaultStringPiece_ = "abc";
  2210. public bool HasDefaultStringPiece {
  2211. get { return hasDefaultStringPiece; }
  2212. }
  2213. public string DefaultStringPiece {
  2214. get { return defaultStringPiece_; }
  2215. }
  2216. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2217. private bool hasDefaultCord;
  2218. private string defaultCord_ = "123";
  2219. public bool HasDefaultCord {
  2220. get { return hasDefaultCord; }
  2221. }
  2222. public string DefaultCord {
  2223. get { return defaultCord_; }
  2224. }
  2225. public override bool IsInitialized {
  2226. get {
  2227. return true;
  2228. }
  2229. }
  2230. public override void WriteTo(pb::CodedOutputStream output) {
  2231. if (HasOptionalInt32) {
  2232. output.WriteInt32(1, OptionalInt32);
  2233. }
  2234. if (HasOptionalInt64) {
  2235. output.WriteInt64(2, OptionalInt64);
  2236. }
  2237. if (HasOptionalUint32) {
  2238. output.WriteUInt32(3, OptionalUint32);
  2239. }
  2240. if (HasOptionalUint64) {
  2241. output.WriteUInt64(4, OptionalUint64);
  2242. }
  2243. if (HasOptionalSint32) {
  2244. output.WriteSInt32(5, OptionalSint32);
  2245. }
  2246. if (HasOptionalSint64) {
  2247. output.WriteSInt64(6, OptionalSint64);
  2248. }
  2249. if (HasOptionalFixed32) {
  2250. output.WriteFixed32(7, OptionalFixed32);
  2251. }
  2252. if (HasOptionalFixed64) {
  2253. output.WriteFixed64(8, OptionalFixed64);
  2254. }
  2255. if (HasOptionalSfixed32) {
  2256. output.WriteSFixed32(9, OptionalSfixed32);
  2257. }
  2258. if (HasOptionalSfixed64) {
  2259. output.WriteSFixed64(10, OptionalSfixed64);
  2260. }
  2261. if (HasOptionalFloat) {
  2262. output.WriteFloat(11, OptionalFloat);
  2263. }
  2264. if (HasOptionalDouble) {
  2265. output.WriteDouble(12, OptionalDouble);
  2266. }
  2267. if (HasOptionalBool) {
  2268. output.WriteBool(13, OptionalBool);
  2269. }
  2270. if (HasOptionalString) {
  2271. output.WriteString(14, OptionalString);
  2272. }
  2273. if (HasOptionalBytes) {
  2274. output.WriteBytes(15, OptionalBytes);
  2275. }
  2276. if (HasOptionalGroup) {
  2277. output.WriteGroup(16, OptionalGroup);
  2278. }
  2279. if (HasOptionalNestedMessage) {
  2280. output.WriteMessage(18, OptionalNestedMessage);
  2281. }
  2282. if (HasOptionalForeignMessage) {
  2283. output.WriteMessage(19, OptionalForeignMessage);
  2284. }
  2285. if (HasOptionalImportMessage) {
  2286. output.WriteMessage(20, OptionalImportMessage);
  2287. }
  2288. if (HasOptionalNestedEnum) {
  2289. output.WriteEnum(21, (int) OptionalNestedEnum);
  2290. }
  2291. if (HasOptionalForeignEnum) {
  2292. output.WriteEnum(22, (int) OptionalForeignEnum);
  2293. }
  2294. if (HasOptionalImportEnum) {
  2295. output.WriteEnum(23, (int) OptionalImportEnum);
  2296. }
  2297. if (HasOptionalStringPiece) {
  2298. output.WriteString(24, OptionalStringPiece);
  2299. }
  2300. if (HasOptionalCord) {
  2301. output.WriteString(25, OptionalCord);
  2302. }
  2303. foreach (int element in RepeatedInt32List) {
  2304. output.WriteInt32(31, element);
  2305. }
  2306. foreach (long element in RepeatedInt64List) {
  2307. output.WriteInt64(32, element);
  2308. }
  2309. foreach (uint element in RepeatedUint32List) {
  2310. output.WriteUInt32(33, element);
  2311. }
  2312. foreach (ulong element in RepeatedUint64List) {
  2313. output.WriteUInt64(34, element);
  2314. }
  2315. foreach (int element in RepeatedSint32List) {
  2316. output.WriteSInt32(35, element);
  2317. }
  2318. foreach (long element in RepeatedSint64List) {
  2319. output.WriteSInt64(36, element);
  2320. }
  2321. foreach (uint element in RepeatedFixed32List) {
  2322. output.WriteFixed32(37, element);
  2323. }
  2324. foreach (ulong element in RepeatedFixed64List) {
  2325. output.WriteFixed64(38, element);
  2326. }
  2327. foreach (int element in RepeatedSfixed32List) {
  2328. output.WriteSFixed32(39, element);
  2329. }
  2330. foreach (long element in RepeatedSfixed64List) {
  2331. output.WriteSFixed64(40, element);
  2332. }
  2333. foreach (float element in RepeatedFloatList) {
  2334. output.WriteFloat(41, element);
  2335. }
  2336. foreach (double element in RepeatedDoubleList) {
  2337. output.WriteDouble(42, element);
  2338. }
  2339. foreach (bool element in RepeatedBoolList) {
  2340. output.WriteBool(43, element);
  2341. }
  2342. foreach (string element in RepeatedStringList) {
  2343. output.WriteString(44, element);
  2344. }
  2345. foreach (pb::ByteString element in RepeatedBytesList) {
  2346. output.WriteBytes(45, element);
  2347. }
  2348. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2349. output.WriteGroup(46, element);
  2350. }
  2351. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2352. output.WriteMessage(48, element);
  2353. }
  2354. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2355. output.WriteMessage(49, element);
  2356. }
  2357. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2358. output.WriteMessage(50, element);
  2359. }
  2360. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2361. output.WriteEnum(51, (int) element);
  2362. }
  2363. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2364. output.WriteEnum(52, (int) element);
  2365. }
  2366. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2367. output.WriteEnum(53, (int) element);
  2368. }
  2369. foreach (string element in RepeatedStringPieceList) {
  2370. output.WriteString(54, element);
  2371. }
  2372. foreach (string element in RepeatedCordList) {
  2373. output.WriteString(55, element);
  2374. }
  2375. if (HasDefaultInt32) {
  2376. output.WriteInt32(61, DefaultInt32);
  2377. }
  2378. if (HasDefaultInt64) {
  2379. output.WriteInt64(62, DefaultInt64);
  2380. }
  2381. if (HasDefaultUint32) {
  2382. output.WriteUInt32(63, DefaultUint32);
  2383. }
  2384. if (HasDefaultUint64) {
  2385. output.WriteUInt64(64, DefaultUint64);
  2386. }
  2387. if (HasDefaultSint32) {
  2388. output.WriteSInt32(65, DefaultSint32);
  2389. }
  2390. if (HasDefaultSint64) {
  2391. output.WriteSInt64(66, DefaultSint64);
  2392. }
  2393. if (HasDefaultFixed32) {
  2394. output.WriteFixed32(67, DefaultFixed32);
  2395. }
  2396. if (HasDefaultFixed64) {
  2397. output.WriteFixed64(68, DefaultFixed64);
  2398. }
  2399. if (HasDefaultSfixed32) {
  2400. output.WriteSFixed32(69, DefaultSfixed32);
  2401. }
  2402. if (HasDefaultSfixed64) {
  2403. output.WriteSFixed64(70, DefaultSfixed64);
  2404. }
  2405. if (HasDefaultFloat) {
  2406. output.WriteFloat(71, DefaultFloat);
  2407. }
  2408. if (HasDefaultDouble) {
  2409. output.WriteDouble(72, DefaultDouble);
  2410. }
  2411. if (HasDefaultBool) {
  2412. output.WriteBool(73, DefaultBool);
  2413. }
  2414. if (HasDefaultString) {
  2415. output.WriteString(74, DefaultString);
  2416. }
  2417. if (HasDefaultBytes) {
  2418. output.WriteBytes(75, DefaultBytes);
  2419. }
  2420. if (HasDefaultNestedEnum) {
  2421. output.WriteEnum(81, (int) DefaultNestedEnum);
  2422. }
  2423. if (HasDefaultForeignEnum) {
  2424. output.WriteEnum(82, (int) DefaultForeignEnum);
  2425. }
  2426. if (HasDefaultImportEnum) {
  2427. output.WriteEnum(83, (int) DefaultImportEnum);
  2428. }
  2429. if (HasDefaultStringPiece) {
  2430. output.WriteString(84, DefaultStringPiece);
  2431. }
  2432. if (HasDefaultCord) {
  2433. output.WriteString(85, DefaultCord);
  2434. }
  2435. UnknownFields.WriteTo(output);
  2436. }
  2437. private int memoizedSerializedSize = -1;
  2438. public override int SerializedSize {
  2439. get {
  2440. int size = memoizedSerializedSize;
  2441. if (size != -1) return size;
  2442. size = 0;
  2443. if (HasOptionalInt32) {
  2444. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2445. }
  2446. if (HasOptionalInt64) {
  2447. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2448. }
  2449. if (HasOptionalUint32) {
  2450. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2451. }
  2452. if (HasOptionalUint64) {
  2453. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2454. }
  2455. if (HasOptionalSint32) {
  2456. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2457. }
  2458. if (HasOptionalSint64) {
  2459. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2460. }
  2461. if (HasOptionalFixed32) {
  2462. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2463. }
  2464. if (HasOptionalFixed64) {
  2465. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2466. }
  2467. if (HasOptionalSfixed32) {
  2468. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2469. }
  2470. if (HasOptionalSfixed64) {
  2471. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2472. }
  2473. if (HasOptionalFloat) {
  2474. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2475. }
  2476. if (HasOptionalDouble) {
  2477. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2478. }
  2479. if (HasOptionalBool) {
  2480. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2481. }
  2482. if (HasOptionalString) {
  2483. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2484. }
  2485. if (HasOptionalBytes) {
  2486. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2487. }
  2488. if (HasOptionalGroup) {
  2489. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2490. }
  2491. if (HasOptionalNestedMessage) {
  2492. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2493. }
  2494. if (HasOptionalForeignMessage) {
  2495. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2496. }
  2497. if (HasOptionalImportMessage) {
  2498. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2499. }
  2500. if (HasOptionalNestedEnum) {
  2501. size += pb::CodedOutputStream
  2502. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2503. }
  2504. if (HasOptionalForeignEnum) {
  2505. size += pb::CodedOutputStream
  2506. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2507. }
  2508. if (HasOptionalImportEnum) {
  2509. size += pb::CodedOutputStream
  2510. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2511. }
  2512. if (HasOptionalStringPiece) {
  2513. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2514. }
  2515. if (HasOptionalCord) {
  2516. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2517. }
  2518. foreach (int element in RepeatedInt32List) {
  2519. size += pb::CodedOutputStream
  2520. .ComputeInt32Size(31, element);
  2521. }
  2522. foreach (long element in RepeatedInt64List) {
  2523. size += pb::CodedOutputStream
  2524. .ComputeInt64Size(32, element);
  2525. }
  2526. foreach (uint element in RepeatedUint32List) {
  2527. size += pb::CodedOutputStream
  2528. .ComputeUInt32Size(33, element);
  2529. }
  2530. foreach (ulong element in RepeatedUint64List) {
  2531. size += pb::CodedOutputStream
  2532. .ComputeUInt64Size(34, element);
  2533. }
  2534. foreach (int element in RepeatedSint32List) {
  2535. size += pb::CodedOutputStream
  2536. .ComputeSInt32Size(35, element);
  2537. }
  2538. foreach (long element in RepeatedSint64List) {
  2539. size += pb::CodedOutputStream
  2540. .ComputeSInt64Size(36, element);
  2541. }
  2542. foreach (uint element in RepeatedFixed32List) {
  2543. size += pb::CodedOutputStream
  2544. .ComputeFixed32Size(37, element);
  2545. }
  2546. foreach (ulong element in RepeatedFixed64List) {
  2547. size += pb::CodedOutputStream
  2548. .ComputeFixed64Size(38, element);
  2549. }
  2550. foreach (int element in RepeatedSfixed32List) {
  2551. size += pb::CodedOutputStream
  2552. .ComputeSFixed32Size(39, element);
  2553. }
  2554. foreach (long element in RepeatedSfixed64List) {
  2555. size += pb::CodedOutputStream
  2556. .ComputeSFixed64Size(40, element);
  2557. }
  2558. foreach (float element in RepeatedFloatList) {
  2559. size += pb::CodedOutputStream
  2560. .ComputeFloatSize(41, element);
  2561. }
  2562. foreach (double element in RepeatedDoubleList) {
  2563. size += pb::CodedOutputStream
  2564. .ComputeDoubleSize(42, element);
  2565. }
  2566. foreach (bool element in RepeatedBoolList) {
  2567. size += pb::CodedOutputStream
  2568. .ComputeBoolSize(43, element);
  2569. }
  2570. foreach (string element in RepeatedStringList) {
  2571. size += pb::CodedOutputStream
  2572. .ComputeStringSize(44, element);
  2573. }
  2574. foreach (pb::ByteString element in RepeatedBytesList) {
  2575. size += pb::CodedOutputStream
  2576. .ComputeBytesSize(45, element);
  2577. }
  2578. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2579. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2580. }
  2581. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2582. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2583. }
  2584. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2585. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2586. }
  2587. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2588. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2589. }
  2590. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2591. size += pb::CodedOutputStream
  2592. .ComputeEnumSize(51, (int) element);
  2593. }
  2594. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2595. size += pb::CodedOutputStream
  2596. .ComputeEnumSize(52, (int) element);
  2597. }
  2598. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2599. size += pb::CodedOutputStream
  2600. .ComputeEnumSize(53, (int) element);
  2601. }
  2602. foreach (string element in RepeatedStringPieceList) {
  2603. size += pb::CodedOutputStream
  2604. .ComputeStringSize(54, element);
  2605. }
  2606. foreach (string element in RepeatedCordList) {
  2607. size += pb::CodedOutputStream
  2608. .ComputeStringSize(55, element);
  2609. }
  2610. if (HasDefaultInt32) {
  2611. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2612. }
  2613. if (HasDefaultInt64) {
  2614. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2615. }
  2616. if (HasDefaultUint32) {
  2617. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2618. }
  2619. if (HasDefaultUint64) {
  2620. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2621. }
  2622. if (HasDefaultSint32) {
  2623. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2624. }
  2625. if (HasDefaultSint64) {
  2626. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2627. }
  2628. if (HasDefaultFixed32) {
  2629. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2630. }
  2631. if (HasDefaultFixed64) {
  2632. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2633. }
  2634. if (HasDefaultSfixed32) {
  2635. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2636. }
  2637. if (HasDefaultSfixed64) {
  2638. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2639. }
  2640. if (HasDefaultFloat) {
  2641. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2642. }
  2643. if (HasDefaultDouble) {
  2644. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2645. }
  2646. if (HasDefaultBool) {
  2647. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2648. }
  2649. if (HasDefaultString) {
  2650. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2651. }
  2652. if (HasDefaultBytes) {
  2653. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2654. }
  2655. if (HasDefaultNestedEnum) {
  2656. size += pb::CodedOutputStream
  2657. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2658. }
  2659. if (HasDefaultForeignEnum) {
  2660. size += pb::CodedOutputStream
  2661. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2662. }
  2663. if (HasDefaultImportEnum) {
  2664. size += pb::CodedOutputStream
  2665. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2666. }
  2667. if (HasDefaultStringPiece) {
  2668. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2669. }
  2670. if (HasDefaultCord) {
  2671. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2672. }
  2673. size += UnknownFields.SerializedSize;
  2674. memoizedSerializedSize = size;
  2675. return size;
  2676. }
  2677. }
  2678. public static self::TestAllTypes ParseFrom(pb::ByteString data) {
  2679. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2680. }
  2681. public static self::TestAllTypes ParseFrom(pb::ByteString data,
  2682. pb::ExtensionRegistry extensionRegistry) {
  2683. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2684. .BuildParsed();
  2685. }
  2686. public static self::TestAllTypes ParseFrom(byte[] data) {
  2687. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2688. }
  2689. public static self::TestAllTypes parseFrom(byte[] data,
  2690. pb::ExtensionRegistry extensionRegistry) {
  2691. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2692. .BuildParsed();
  2693. }
  2694. public static self::TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2695. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2696. }
  2697. public static self::TestAllTypes ParseFrom(
  2698. global::System.IO.Stream input,
  2699. pb::ExtensionRegistry extensionRegistry) {
  2700. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2701. .BuildParsed();
  2702. }
  2703. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2704. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2705. }
  2706. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input,
  2707. pb::ExtensionRegistry extensionRegistry) {
  2708. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2709. .BuildParsed();
  2710. }
  2711. public static Builder CreateBuilder() { return new Builder(); }
  2712. public override IBuilder<self::TestAllTypes> CreateBuilderForType() { return new Builder(); }
  2713. public static Builder CreateBuilder(self::TestAllTypes prototype) {
  2714. return (Builder) new Builder().MergeFrom(prototype);
  2715. }
  2716. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes, Builder> {
  2717. // Construct using self::TestAllTypes.CreateBuilder()
  2718. internal Builder() {}
  2719. self::TestAllTypes result = new self::TestAllTypes();
  2720. protected override self::TestAllTypes MessageBeingBuilt {
  2721. get { return result; }
  2722. }
  2723. public override IBuilder<self::TestAllTypes> Clear() {
  2724. result = new self::TestAllTypes();
  2725. return this;
  2726. }
  2727. public override IBuilder<self::TestAllTypes> Clone() {
  2728. return new Builder().MergeFrom(result);
  2729. }
  2730. public override pbd::MessageDescriptor DescriptorForType {
  2731. get { return self::TestAllTypes.Descriptor; }
  2732. }
  2733. public override self::TestAllTypes DefaultInstanceForType {
  2734. get { return self::TestAllTypes.DefaultInstance; }
  2735. }
  2736. public override self::TestAllTypes BuildPartial() {
  2737. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2738. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2739. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2740. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2741. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2742. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2743. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2744. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2745. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2746. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2747. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2748. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2749. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2750. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2751. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2752. if (result.repeatedGroup_ != pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  2753. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2754. }
  2755. if (result.repeatedNestedMessage_ != pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  2756. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2757. }
  2758. if (result.repeatedForeignMessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  2759. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2760. }
  2761. if (result.repeatedImportMessage_ != pbc::Lists<self::ImportMessage>.Empty) {
  2762. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2763. }
  2764. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2765. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2766. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2767. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2768. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2769. self::TestAllTypes returnMe = result;
  2770. result = null;
  2771. return returnMe;
  2772. }
  2773. public override IBuilder MergeFrom(pb::IMessage other) {
  2774. if (other is self::TestAllTypes) {
  2775. return MergeFrom((self::TestAllTypes) other);
  2776. } else {
  2777. base.MergeFrom(other);
  2778. return this;
  2779. }
  2780. }
  2781. public override IBuilder<self::TestAllTypes> MergeFrom(self::TestAllTypes other) {
  2782. if (other == self::TestAllTypes.DefaultInstance) return this;
  2783. if (other.HasOptionalInt32) {
  2784. OptionalInt32 = other.OptionalInt32;
  2785. }
  2786. if (other.HasOptionalInt64) {
  2787. OptionalInt64 = other.OptionalInt64;
  2788. }
  2789. if (other.HasOptionalUint32) {
  2790. OptionalUint32 = other.OptionalUint32;
  2791. }
  2792. if (other.HasOptionalUint64) {
  2793. OptionalUint64 = other.OptionalUint64;
  2794. }
  2795. if (other.HasOptionalSint32) {
  2796. OptionalSint32 = other.OptionalSint32;
  2797. }
  2798. if (other.HasOptionalSint64) {
  2799. OptionalSint64 = other.OptionalSint64;
  2800. }
  2801. if (other.HasOptionalFixed32) {
  2802. OptionalFixed32 = other.OptionalFixed32;
  2803. }
  2804. if (other.HasOptionalFixed64) {
  2805. OptionalFixed64 = other.OptionalFixed64;
  2806. }
  2807. if (other.HasOptionalSfixed32) {
  2808. OptionalSfixed32 = other.OptionalSfixed32;
  2809. }
  2810. if (other.HasOptionalSfixed64) {
  2811. OptionalSfixed64 = other.OptionalSfixed64;
  2812. }
  2813. if (other.HasOptionalFloat) {
  2814. OptionalFloat = other.OptionalFloat;
  2815. }
  2816. if (other.HasOptionalDouble) {
  2817. OptionalDouble = other.OptionalDouble;
  2818. }
  2819. if (other.HasOptionalBool) {
  2820. OptionalBool = other.OptionalBool;
  2821. }
  2822. if (other.HasOptionalString) {
  2823. OptionalString = other.OptionalString;
  2824. }
  2825. if (other.HasOptionalBytes) {
  2826. OptionalBytes = other.OptionalBytes;
  2827. }
  2828. if (other.HasOptionalGroup) {
  2829. MergeOptionalGroup(other.OptionalGroup);
  2830. }
  2831. if (other.HasOptionalNestedMessage) {
  2832. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2833. }
  2834. if (other.HasOptionalForeignMessage) {
  2835. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2836. }
  2837. if (other.HasOptionalImportMessage) {
  2838. MergeOptionalImportMessage(other.OptionalImportMessage);
  2839. }
  2840. if (other.HasOptionalNestedEnum) {
  2841. OptionalNestedEnum = other.OptionalNestedEnum;
  2842. }
  2843. if (other.HasOptionalForeignEnum) {
  2844. OptionalForeignEnum = other.OptionalForeignEnum;
  2845. }
  2846. if (other.HasOptionalImportEnum) {
  2847. OptionalImportEnum = other.OptionalImportEnum;
  2848. }
  2849. if (other.HasOptionalStringPiece) {
  2850. OptionalStringPiece = other.OptionalStringPiece;
  2851. }
  2852. if (other.HasOptionalCord) {
  2853. OptionalCord = other.OptionalCord;
  2854. }
  2855. if (other.repeatedInt32_.Count != 0) {
  2856. if (result.repeatedInt32_.Count == 0) {
  2857. result.repeatedInt32_ = new scg::List<int>();
  2858. }
  2859. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2860. }
  2861. if (other.repeatedInt64_.Count != 0) {
  2862. if (result.repeatedInt64_.Count == 0) {
  2863. result.repeatedInt64_ = new scg::List<long>();
  2864. }
  2865. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2866. }
  2867. if (other.repeatedUint32_.Count != 0) {
  2868. if (result.repeatedUint32_.Count == 0) {
  2869. result.repeatedUint32_ = new scg::List<uint>();
  2870. }
  2871. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2872. }
  2873. if (other.repeatedUint64_.Count != 0) {
  2874. if (result.repeatedUint64_.Count == 0) {
  2875. result.repeatedUint64_ = new scg::List<ulong>();
  2876. }
  2877. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2878. }
  2879. if (other.repeatedSint32_.Count != 0) {
  2880. if (result.repeatedSint32_.Count == 0) {
  2881. result.repeatedSint32_ = new scg::List<int>();
  2882. }
  2883. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2884. }
  2885. if (other.repeatedSint64_.Count != 0) {
  2886. if (result.repeatedSint64_.Count == 0) {
  2887. result.repeatedSint64_ = new scg::List<long>();
  2888. }
  2889. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2890. }
  2891. if (other.repeatedFixed32_.Count != 0) {
  2892. if (result.repeatedFixed32_.Count == 0) {
  2893. result.repeatedFixed32_ = new scg::List<uint>();
  2894. }
  2895. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2896. }
  2897. if (other.repeatedFixed64_.Count != 0) {
  2898. if (result.repeatedFixed64_.Count == 0) {
  2899. result.repeatedFixed64_ = new scg::List<ulong>();
  2900. }
  2901. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2902. }
  2903. if (other.repeatedSfixed32_.Count != 0) {
  2904. if (result.repeatedSfixed32_.Count == 0) {
  2905. result.repeatedSfixed32_ = new scg::List<int>();
  2906. }
  2907. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2908. }
  2909. if (other.repeatedSfixed64_.Count != 0) {
  2910. if (result.repeatedSfixed64_.Count == 0) {
  2911. result.repeatedSfixed64_ = new scg::List<long>();
  2912. }
  2913. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2914. }
  2915. if (other.repeatedFloat_.Count != 0) {
  2916. if (result.repeatedFloat_.Count == 0) {
  2917. result.repeatedFloat_ = new scg::List<float>();
  2918. }
  2919. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2920. }
  2921. if (other.repeatedDouble_.Count != 0) {
  2922. if (result.repeatedDouble_.Count == 0) {
  2923. result.repeatedDouble_ = new scg::List<double>();
  2924. }
  2925. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2926. }
  2927. if (other.repeatedBool_.Count != 0) {
  2928. if (result.repeatedBool_.Count == 0) {
  2929. result.repeatedBool_ = new scg::List<bool>();
  2930. }
  2931. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2932. }
  2933. if (other.repeatedString_.Count != 0) {
  2934. if (result.repeatedString_.Count == 0) {
  2935. result.repeatedString_ = new scg::List<string>();
  2936. }
  2937. base.AddRange(other.repeatedString_, result.repeatedString_);
  2938. }
  2939. if (other.repeatedBytes_.Count != 0) {
  2940. if (result.repeatedBytes_.Count == 0) {
  2941. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2942. }
  2943. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2944. }
  2945. if (other.repeatedGroup_.Count != 0) {
  2946. if (result.repeatedGroup_.Count == 0) {
  2947. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  2948. }
  2949. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2950. }
  2951. if (other.repeatedNestedMessage_.Count != 0) {
  2952. if (result.repeatedNestedMessage_.Count == 0) {
  2953. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  2954. }
  2955. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2956. }
  2957. if (other.repeatedForeignMessage_.Count != 0) {
  2958. if (result.repeatedForeignMessage_.Count == 0) {
  2959. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  2960. }
  2961. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2962. }
  2963. if (other.repeatedImportMessage_.Count != 0) {
  2964. if (result.repeatedImportMessage_.Count == 0) {
  2965. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  2966. }
  2967. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2968. }
  2969. if (other.repeatedNestedEnum_.Count != 0) {
  2970. if (result.repeatedNestedEnum_.Count == 0) {
  2971. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  2972. }
  2973. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2974. }
  2975. if (other.repeatedForeignEnum_.Count != 0) {
  2976. if (result.repeatedForeignEnum_.Count == 0) {
  2977. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  2978. }
  2979. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2980. }
  2981. if (other.repeatedImportEnum_.Count != 0) {
  2982. if (result.repeatedImportEnum_.Count == 0) {
  2983. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  2984. }
  2985. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2986. }
  2987. if (other.repeatedStringPiece_.Count != 0) {
  2988. if (result.repeatedStringPiece_.Count == 0) {
  2989. result.repeatedStringPiece_ = new scg::List<string>();
  2990. }
  2991. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2992. }
  2993. if (other.repeatedCord_.Count != 0) {
  2994. if (result.repeatedCord_.Count == 0) {
  2995. result.repeatedCord_ = new scg::List<string>();
  2996. }
  2997. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  2998. }
  2999. if (other.HasDefaultInt32) {
  3000. DefaultInt32 = other.DefaultInt32;
  3001. }
  3002. if (other.HasDefaultInt64) {
  3003. DefaultInt64 = other.DefaultInt64;
  3004. }
  3005. if (other.HasDefaultUint32) {
  3006. DefaultUint32 = other.DefaultUint32;
  3007. }
  3008. if (other.HasDefaultUint64) {
  3009. DefaultUint64 = other.DefaultUint64;
  3010. }
  3011. if (other.HasDefaultSint32) {
  3012. DefaultSint32 = other.DefaultSint32;
  3013. }
  3014. if (other.HasDefaultSint64) {
  3015. DefaultSint64 = other.DefaultSint64;
  3016. }
  3017. if (other.HasDefaultFixed32) {
  3018. DefaultFixed32 = other.DefaultFixed32;
  3019. }
  3020. if (other.HasDefaultFixed64) {
  3021. DefaultFixed64 = other.DefaultFixed64;
  3022. }
  3023. if (other.HasDefaultSfixed32) {
  3024. DefaultSfixed32 = other.DefaultSfixed32;
  3025. }
  3026. if (other.HasDefaultSfixed64) {
  3027. DefaultSfixed64 = other.DefaultSfixed64;
  3028. }
  3029. if (other.HasDefaultFloat) {
  3030. DefaultFloat = other.DefaultFloat;
  3031. }
  3032. if (other.HasDefaultDouble) {
  3033. DefaultDouble = other.DefaultDouble;
  3034. }
  3035. if (other.HasDefaultBool) {
  3036. DefaultBool = other.DefaultBool;
  3037. }
  3038. if (other.HasDefaultString) {
  3039. DefaultString = other.DefaultString;
  3040. }
  3041. if (other.HasDefaultBytes) {
  3042. DefaultBytes = other.DefaultBytes;
  3043. }
  3044. if (other.HasDefaultNestedEnum) {
  3045. DefaultNestedEnum = other.DefaultNestedEnum;
  3046. }
  3047. if (other.HasDefaultForeignEnum) {
  3048. DefaultForeignEnum = other.DefaultForeignEnum;
  3049. }
  3050. if (other.HasDefaultImportEnum) {
  3051. DefaultImportEnum = other.DefaultImportEnum;
  3052. }
  3053. if (other.HasDefaultStringPiece) {
  3054. DefaultStringPiece = other.DefaultStringPiece;
  3055. }
  3056. if (other.HasDefaultCord) {
  3057. DefaultCord = other.DefaultCord;
  3058. }
  3059. this.MergeUnknownFields(other.UnknownFields);
  3060. return this;
  3061. }
  3062. public override IBuilder<self::TestAllTypes> MergeFrom(pb::CodedInputStream input) {
  3063. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3064. }
  3065. public override IBuilder<self::TestAllTypes> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3066. pb::UnknownFieldSet.Builder unknownFields =
  3067. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3068. while (true) {
  3069. uint tag = input.ReadTag();
  3070. switch (tag) {
  3071. case 0:
  3072. this.UnknownFields = unknownFields.Build();
  3073. return this;
  3074. default: {
  3075. if (!ParseUnknownField(input, unknownFields,
  3076. extensionRegistry, tag)) {
  3077. this.UnknownFields = unknownFields.Build();
  3078. return this;
  3079. }
  3080. break;
  3081. }
  3082. case 8: {
  3083. OptionalInt32 = input.ReadInt32();
  3084. break;
  3085. }
  3086. case 16: {
  3087. OptionalInt64 = input.ReadInt64();
  3088. break;
  3089. }
  3090. case 24: {
  3091. OptionalUint32 = input.ReadUInt32();
  3092. break;
  3093. }
  3094. case 32: {
  3095. OptionalUint64 = input.ReadUInt64();
  3096. break;
  3097. }
  3098. case 40: {
  3099. OptionalSint32 = input.ReadSInt32();
  3100. break;
  3101. }
  3102. case 48: {
  3103. OptionalSint64 = input.ReadSInt64();
  3104. break;
  3105. }
  3106. case 61: {
  3107. OptionalFixed32 = input.ReadFixed32();
  3108. break;
  3109. }
  3110. case 65: {
  3111. OptionalFixed64 = input.ReadFixed64();
  3112. break;
  3113. }
  3114. case 77: {
  3115. OptionalSfixed32 = input.ReadSFixed32();
  3116. break;
  3117. }
  3118. case 81: {
  3119. OptionalSfixed64 = input.ReadSFixed64();
  3120. break;
  3121. }
  3122. case 93: {
  3123. OptionalFloat = input.ReadFloat();
  3124. break;
  3125. }
  3126. case 97: {
  3127. OptionalDouble = input.ReadDouble();
  3128. break;
  3129. }
  3130. case 104: {
  3131. OptionalBool = input.ReadBool();
  3132. break;
  3133. }
  3134. case 114: {
  3135. OptionalString = input.ReadString();
  3136. break;
  3137. }
  3138. case 122: {
  3139. OptionalBytes = input.ReadBytes();
  3140. break;
  3141. }
  3142. case 131: {
  3143. self::TestAllTypes.Types.OptionalGroup.Builder subBuilder = self::TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3144. if (HasOptionalGroup) {
  3145. subBuilder.MergeFrom(OptionalGroup);
  3146. }
  3147. input.ReadGroup(16, subBuilder, extensionRegistry);
  3148. OptionalGroup = subBuilder.BuildPartial();
  3149. break;
  3150. }
  3151. case 146: {
  3152. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3153. if (HasOptionalNestedMessage) {
  3154. subBuilder.MergeFrom(OptionalNestedMessage);
  3155. }
  3156. input.ReadMessage(subBuilder, extensionRegistry);
  3157. OptionalNestedMessage = subBuilder.BuildPartial();
  3158. break;
  3159. }
  3160. case 154: {
  3161. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3162. if (HasOptionalForeignMessage) {
  3163. subBuilder.MergeFrom(OptionalForeignMessage);
  3164. }
  3165. input.ReadMessage(subBuilder, extensionRegistry);
  3166. OptionalForeignMessage = subBuilder.BuildPartial();
  3167. break;
  3168. }
  3169. case 162: {
  3170. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3171. if (HasOptionalImportMessage) {
  3172. subBuilder.MergeFrom(OptionalImportMessage);
  3173. }
  3174. input.ReadMessage(subBuilder, extensionRegistry);
  3175. OptionalImportMessage = subBuilder.BuildPartial();
  3176. break;
  3177. }
  3178. case 168: {
  3179. int rawValue = input.ReadEnum();
  3180. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3181. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3182. } else {
  3183. OptionalNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3184. }
  3185. break;
  3186. }
  3187. case 176: {
  3188. int rawValue = input.ReadEnum();
  3189. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3190. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3191. } else {
  3192. OptionalForeignEnum = (self::ForeignEnum) rawValue;
  3193. }
  3194. break;
  3195. }
  3196. case 184: {
  3197. int rawValue = input.ReadEnum();
  3198. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3199. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3200. } else {
  3201. OptionalImportEnum = (self::ImportEnum) rawValue;
  3202. }
  3203. break;
  3204. }
  3205. case 194: {
  3206. OptionalStringPiece = input.ReadString();
  3207. break;
  3208. }
  3209. case 202: {
  3210. OptionalCord = input.ReadString();
  3211. break;
  3212. }
  3213. case 248: {
  3214. AddRepeatedInt32(input.ReadInt32());
  3215. break;
  3216. }
  3217. case 256: {
  3218. AddRepeatedInt64(input.ReadInt64());
  3219. break;
  3220. }
  3221. case 264: {
  3222. AddRepeatedUint32(input.ReadUInt32());
  3223. break;
  3224. }
  3225. case 272: {
  3226. AddRepeatedUint64(input.ReadUInt64());
  3227. break;
  3228. }
  3229. case 280: {
  3230. AddRepeatedSint32(input.ReadSInt32());
  3231. break;
  3232. }
  3233. case 288: {
  3234. AddRepeatedSint64(input.ReadSInt64());
  3235. break;
  3236. }
  3237. case 301: {
  3238. AddRepeatedFixed32(input.ReadFixed32());
  3239. break;
  3240. }
  3241. case 305: {
  3242. AddRepeatedFixed64(input.ReadFixed64());
  3243. break;
  3244. }
  3245. case 317: {
  3246. AddRepeatedSfixed32(input.ReadSFixed32());
  3247. break;
  3248. }
  3249. case 321: {
  3250. AddRepeatedSfixed64(input.ReadSFixed64());
  3251. break;
  3252. }
  3253. case 333: {
  3254. AddRepeatedFloat(input.ReadFloat());
  3255. break;
  3256. }
  3257. case 337: {
  3258. AddRepeatedDouble(input.ReadDouble());
  3259. break;
  3260. }
  3261. case 344: {
  3262. AddRepeatedBool(input.ReadBool());
  3263. break;
  3264. }
  3265. case 354: {
  3266. AddRepeatedString(input.ReadString());
  3267. break;
  3268. }
  3269. case 362: {
  3270. AddRepeatedBytes(input.ReadBytes());
  3271. break;
  3272. }
  3273. case 371: {
  3274. self::TestAllTypes.Types.RepeatedGroup.Builder subBuilder = self::TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3275. input.ReadGroup(46, subBuilder, extensionRegistry);
  3276. AddRepeatedGroup(subBuilder.BuildPartial());
  3277. break;
  3278. }
  3279. case 386: {
  3280. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3281. input.ReadMessage(subBuilder, extensionRegistry);
  3282. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3283. break;
  3284. }
  3285. case 394: {
  3286. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3287. input.ReadMessage(subBuilder, extensionRegistry);
  3288. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3289. break;
  3290. }
  3291. case 402: {
  3292. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3293. input.ReadMessage(subBuilder, extensionRegistry);
  3294. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3295. break;
  3296. }
  3297. case 408: {
  3298. int rawValue = input.ReadEnum();
  3299. self::TestAllTypes.Types.NestedEnum value = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3300. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), value)) {
  3301. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3302. } else {
  3303. AddRepeatedNestedEnum(value);
  3304. }
  3305. break;
  3306. }
  3307. case 416: {
  3308. int rawValue = input.ReadEnum();
  3309. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  3310. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  3311. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3312. } else {
  3313. AddRepeatedForeignEnum(value);
  3314. }
  3315. break;
  3316. }
  3317. case 424: {
  3318. int rawValue = input.ReadEnum();
  3319. self::ImportEnum value = (self::ImportEnum) rawValue;
  3320. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), value)) {
  3321. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3322. } else {
  3323. AddRepeatedImportEnum(value);
  3324. }
  3325. break;
  3326. }
  3327. case 434: {
  3328. AddRepeatedStringPiece(input.ReadString());
  3329. break;
  3330. }
  3331. case 442: {
  3332. AddRepeatedCord(input.ReadString());
  3333. break;
  3334. }
  3335. case 488: {
  3336. DefaultInt32 = input.ReadInt32();
  3337. break;
  3338. }
  3339. case 496: {
  3340. DefaultInt64 = input.ReadInt64();
  3341. break;
  3342. }
  3343. case 504: {
  3344. DefaultUint32 = input.ReadUInt32();
  3345. break;
  3346. }
  3347. case 512: {
  3348. DefaultUint64 = input.ReadUInt64();
  3349. break;
  3350. }
  3351. case 520: {
  3352. DefaultSint32 = input.ReadSInt32();
  3353. break;
  3354. }
  3355. case 528: {
  3356. DefaultSint64 = input.ReadSInt64();
  3357. break;
  3358. }
  3359. case 541: {
  3360. DefaultFixed32 = input.ReadFixed32();
  3361. break;
  3362. }
  3363. case 545: {
  3364. DefaultFixed64 = input.ReadFixed64();
  3365. break;
  3366. }
  3367. case 557: {
  3368. DefaultSfixed32 = input.ReadSFixed32();
  3369. break;
  3370. }
  3371. case 561: {
  3372. DefaultSfixed64 = input.ReadSFixed64();
  3373. break;
  3374. }
  3375. case 573: {
  3376. DefaultFloat = input.ReadFloat();
  3377. break;
  3378. }
  3379. case 577: {
  3380. DefaultDouble = input.ReadDouble();
  3381. break;
  3382. }
  3383. case 584: {
  3384. DefaultBool = input.ReadBool();
  3385. break;
  3386. }
  3387. case 594: {
  3388. DefaultString = input.ReadString();
  3389. break;
  3390. }
  3391. case 602: {
  3392. DefaultBytes = input.ReadBytes();
  3393. break;
  3394. }
  3395. case 648: {
  3396. int rawValue = input.ReadEnum();
  3397. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3398. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3399. } else {
  3400. DefaultNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3401. }
  3402. break;
  3403. }
  3404. case 656: {
  3405. int rawValue = input.ReadEnum();
  3406. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3407. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3408. } else {
  3409. DefaultForeignEnum = (self::ForeignEnum) rawValue;
  3410. }
  3411. break;
  3412. }
  3413. case 664: {
  3414. int rawValue = input.ReadEnum();
  3415. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3416. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3417. } else {
  3418. DefaultImportEnum = (self::ImportEnum) rawValue;
  3419. }
  3420. break;
  3421. }
  3422. case 674: {
  3423. DefaultStringPiece = input.ReadString();
  3424. break;
  3425. }
  3426. case 682: {
  3427. DefaultCord = input.ReadString();
  3428. break;
  3429. }
  3430. }
  3431. }
  3432. }
  3433. // optional int32 optional_int32 = 1;
  3434. public bool HasOptionalInt32 {
  3435. get { return result.HasOptionalInt32; }
  3436. }
  3437. public int OptionalInt32 {
  3438. get { return result.OptionalInt32; }
  3439. set { SetOptionalInt32(value); }
  3440. }
  3441. public Builder SetOptionalInt32(int value) {
  3442. result.hasOptionalInt32 = true;
  3443. result.optionalInt32_ = value;
  3444. return this;
  3445. }
  3446. public Builder ClearOptionalInt32() {
  3447. result.hasOptionalInt32 = false;
  3448. result.optionalInt32_ = 0;
  3449. return this;
  3450. }
  3451. // optional int64 optional_int64 = 2;
  3452. public bool HasOptionalInt64 {
  3453. get { return result.HasOptionalInt64; }
  3454. }
  3455. public long OptionalInt64 {
  3456. get { return result.OptionalInt64; }
  3457. set { SetOptionalInt64(value); }
  3458. }
  3459. public Builder SetOptionalInt64(long value) {
  3460. result.hasOptionalInt64 = true;
  3461. result.optionalInt64_ = value;
  3462. return this;
  3463. }
  3464. public Builder ClearOptionalInt64() {
  3465. result.hasOptionalInt64 = false;
  3466. result.optionalInt64_ = 0L;
  3467. return this;
  3468. }
  3469. // optional uint32 optional_uint32 = 3;
  3470. public bool HasOptionalUint32 {
  3471. get { return result.HasOptionalUint32; }
  3472. }
  3473. public uint OptionalUint32 {
  3474. get { return result.OptionalUint32; }
  3475. set { SetOptionalUint32(value); }
  3476. }
  3477. public Builder SetOptionalUint32(uint value) {
  3478. result.hasOptionalUint32 = true;
  3479. result.optionalUint32_ = value;
  3480. return this;
  3481. }
  3482. public Builder ClearOptionalUint32() {
  3483. result.hasOptionalUint32 = false;
  3484. result.optionalUint32_ = 0;
  3485. return this;
  3486. }
  3487. // optional uint64 optional_uint64 = 4;
  3488. public bool HasOptionalUint64 {
  3489. get { return result.HasOptionalUint64; }
  3490. }
  3491. public ulong OptionalUint64 {
  3492. get { return result.OptionalUint64; }
  3493. set { SetOptionalUint64(value); }
  3494. }
  3495. public Builder SetOptionalUint64(ulong value) {
  3496. result.hasOptionalUint64 = true;
  3497. result.optionalUint64_ = value;
  3498. return this;
  3499. }
  3500. public Builder ClearOptionalUint64() {
  3501. result.hasOptionalUint64 = false;
  3502. result.optionalUint64_ = 0UL;
  3503. return this;
  3504. }
  3505. // optional sint32 optional_sint32 = 5;
  3506. public bool HasOptionalSint32 {
  3507. get { return result.HasOptionalSint32; }
  3508. }
  3509. public int OptionalSint32 {
  3510. get { return result.OptionalSint32; }
  3511. set { SetOptionalSint32(value); }
  3512. }
  3513. public Builder SetOptionalSint32(int value) {
  3514. result.hasOptionalSint32 = true;
  3515. result.optionalSint32_ = value;
  3516. return this;
  3517. }
  3518. public Builder ClearOptionalSint32() {
  3519. result.hasOptionalSint32 = false;
  3520. result.optionalSint32_ = 0;
  3521. return this;
  3522. }
  3523. // optional sint64 optional_sint64 = 6;
  3524. public bool HasOptionalSint64 {
  3525. get { return result.HasOptionalSint64; }
  3526. }
  3527. public long OptionalSint64 {
  3528. get { return result.OptionalSint64; }
  3529. set { SetOptionalSint64(value); }
  3530. }
  3531. public Builder SetOptionalSint64(long value) {
  3532. result.hasOptionalSint64 = true;
  3533. result.optionalSint64_ = value;
  3534. return this;
  3535. }
  3536. public Builder ClearOptionalSint64() {
  3537. result.hasOptionalSint64 = false;
  3538. result.optionalSint64_ = 0L;
  3539. return this;
  3540. }
  3541. // optional fixed32 optional_fixed32 = 7;
  3542. public bool HasOptionalFixed32 {
  3543. get { return result.HasOptionalFixed32; }
  3544. }
  3545. public uint OptionalFixed32 {
  3546. get { return result.OptionalFixed32; }
  3547. set { SetOptionalFixed32(value); }
  3548. }
  3549. public Builder SetOptionalFixed32(uint value) {
  3550. result.hasOptionalFixed32 = true;
  3551. result.optionalFixed32_ = value;
  3552. return this;
  3553. }
  3554. public Builder ClearOptionalFixed32() {
  3555. result.hasOptionalFixed32 = false;
  3556. result.optionalFixed32_ = 0;
  3557. return this;
  3558. }
  3559. // optional fixed64 optional_fixed64 = 8;
  3560. public bool HasOptionalFixed64 {
  3561. get { return result.HasOptionalFixed64; }
  3562. }
  3563. public ulong OptionalFixed64 {
  3564. get { return result.OptionalFixed64; }
  3565. set { SetOptionalFixed64(value); }
  3566. }
  3567. public Builder SetOptionalFixed64(ulong value) {
  3568. result.hasOptionalFixed64 = true;
  3569. result.optionalFixed64_ = value;
  3570. return this;
  3571. }
  3572. public Builder ClearOptionalFixed64() {
  3573. result.hasOptionalFixed64 = false;
  3574. result.optionalFixed64_ = 0UL;
  3575. return this;
  3576. }
  3577. // optional sfixed32 optional_sfixed32 = 9;
  3578. public bool HasOptionalSfixed32 {
  3579. get { return result.HasOptionalSfixed32; }
  3580. }
  3581. public int OptionalSfixed32 {
  3582. get { return result.OptionalSfixed32; }
  3583. set { SetOptionalSfixed32(value); }
  3584. }
  3585. public Builder SetOptionalSfixed32(int value) {
  3586. result.hasOptionalSfixed32 = true;
  3587. result.optionalSfixed32_ = value;
  3588. return this;
  3589. }
  3590. public Builder ClearOptionalSfixed32() {
  3591. result.hasOptionalSfixed32 = false;
  3592. result.optionalSfixed32_ = 0;
  3593. return this;
  3594. }
  3595. // optional sfixed64 optional_sfixed64 = 10;
  3596. public bool HasOptionalSfixed64 {
  3597. get { return result.HasOptionalSfixed64; }
  3598. }
  3599. public long OptionalSfixed64 {
  3600. get { return result.OptionalSfixed64; }
  3601. set { SetOptionalSfixed64(value); }
  3602. }
  3603. public Builder SetOptionalSfixed64(long value) {
  3604. result.hasOptionalSfixed64 = true;
  3605. result.optionalSfixed64_ = value;
  3606. return this;
  3607. }
  3608. public Builder ClearOptionalSfixed64() {
  3609. result.hasOptionalSfixed64 = false;
  3610. result.optionalSfixed64_ = 0L;
  3611. return this;
  3612. }
  3613. // optional float optional_float = 11;
  3614. public bool HasOptionalFloat {
  3615. get { return result.HasOptionalFloat; }
  3616. }
  3617. public float OptionalFloat {
  3618. get { return result.OptionalFloat; }
  3619. set { SetOptionalFloat(value); }
  3620. }
  3621. public Builder SetOptionalFloat(float value) {
  3622. result.hasOptionalFloat = true;
  3623. result.optionalFloat_ = value;
  3624. return this;
  3625. }
  3626. public Builder ClearOptionalFloat() {
  3627. result.hasOptionalFloat = false;
  3628. result.optionalFloat_ = 0F;
  3629. return this;
  3630. }
  3631. // optional double optional_double = 12;
  3632. public bool HasOptionalDouble {
  3633. get { return result.HasOptionalDouble; }
  3634. }
  3635. public double OptionalDouble {
  3636. get { return result.OptionalDouble; }
  3637. set { SetOptionalDouble(value); }
  3638. }
  3639. public Builder SetOptionalDouble(double value) {
  3640. result.hasOptionalDouble = true;
  3641. result.optionalDouble_ = value;
  3642. return this;
  3643. }
  3644. public Builder ClearOptionalDouble() {
  3645. result.hasOptionalDouble = false;
  3646. result.optionalDouble_ = 0D;
  3647. return this;
  3648. }
  3649. // optional bool optional_bool = 13;
  3650. public bool HasOptionalBool {
  3651. get { return result.HasOptionalBool; }
  3652. }
  3653. public bool OptionalBool {
  3654. get { return result.OptionalBool; }
  3655. set { SetOptionalBool(value); }
  3656. }
  3657. public Builder SetOptionalBool(bool value) {
  3658. result.hasOptionalBool = true;
  3659. result.optionalBool_ = value;
  3660. return this;
  3661. }
  3662. public Builder ClearOptionalBool() {
  3663. result.hasOptionalBool = false;
  3664. result.optionalBool_ = false;
  3665. return this;
  3666. }
  3667. // optional string optional_string = 14;
  3668. public bool HasOptionalString {
  3669. get { return result.HasOptionalString; }
  3670. }
  3671. public string OptionalString {
  3672. get { return result.OptionalString; }
  3673. set { SetOptionalString(value); }
  3674. }
  3675. public Builder SetOptionalString(string value) {
  3676. result.hasOptionalString = true;
  3677. result.optionalString_ = value;
  3678. return this;
  3679. }
  3680. public Builder ClearOptionalString() {
  3681. result.hasOptionalString = false;
  3682. result.optionalString_ = "";
  3683. return this;
  3684. }
  3685. // optional bytes optional_bytes = 15;
  3686. public bool HasOptionalBytes {
  3687. get { return result.HasOptionalBytes; }
  3688. }
  3689. public pb::ByteString OptionalBytes {
  3690. get { return result.OptionalBytes; }
  3691. set { SetOptionalBytes(value); }
  3692. }
  3693. public Builder SetOptionalBytes(pb::ByteString value) {
  3694. result.hasOptionalBytes = true;
  3695. result.optionalBytes_ = value;
  3696. return this;
  3697. }
  3698. public Builder ClearOptionalBytes() {
  3699. result.hasOptionalBytes = false;
  3700. result.optionalBytes_ = pb::ByteString.Empty;
  3701. return this;
  3702. }
  3703. // optional group OptionalGroup = 16 {
  3704. public bool HasOptionalGroup {
  3705. get { return result.HasOptionalGroup; }
  3706. }
  3707. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  3708. get { return result.OptionalGroup; }
  3709. set { SetOptionalGroup(value); }
  3710. }
  3711. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3712. result.hasOptionalGroup = true;
  3713. result.optionalGroup_ = value;
  3714. return this;
  3715. }
  3716. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3717. result.hasOptionalGroup = true;
  3718. result.optionalGroup_ = builderForValue.Build();
  3719. return this;
  3720. }
  3721. public Builder MergeOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3722. if (result.HasOptionalGroup &&
  3723. result.optionalGroup_ != self::TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3724. result.optionalGroup_ =
  3725. self::TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3726. } else {
  3727. result.optionalGroup_ = value;
  3728. }
  3729. result.hasOptionalGroup = true;
  3730. return this;
  3731. }
  3732. public Builder ClearOptionalGroup() {
  3733. result.hasOptionalGroup = false;
  3734. result.optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3735. return this;
  3736. }
  3737. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3738. public bool HasOptionalNestedMessage {
  3739. get { return result.HasOptionalNestedMessage; }
  3740. }
  3741. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3742. get { return result.OptionalNestedMessage; }
  3743. set { SetOptionalNestedMessage(value); }
  3744. }
  3745. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3746. result.hasOptionalNestedMessage = true;
  3747. result.optionalNestedMessage_ = value;
  3748. return this;
  3749. }
  3750. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3751. result.hasOptionalNestedMessage = true;
  3752. result.optionalNestedMessage_ = builderForValue.Build();
  3753. return this;
  3754. }
  3755. public Builder MergeOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3756. if (result.HasOptionalNestedMessage &&
  3757. result.optionalNestedMessage_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3758. result.optionalNestedMessage_ =
  3759. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3760. } else {
  3761. result.optionalNestedMessage_ = value;
  3762. }
  3763. result.hasOptionalNestedMessage = true;
  3764. return this;
  3765. }
  3766. public Builder ClearOptionalNestedMessage() {
  3767. result.hasOptionalNestedMessage = false;
  3768. result.optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  3769. return this;
  3770. }
  3771. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3772. public bool HasOptionalForeignMessage {
  3773. get { return result.HasOptionalForeignMessage; }
  3774. }
  3775. public self::ForeignMessage OptionalForeignMessage {
  3776. get { return result.OptionalForeignMessage; }
  3777. set { SetOptionalForeignMessage(value); }
  3778. }
  3779. public Builder SetOptionalForeignMessage(self::ForeignMessage value) {
  3780. result.hasOptionalForeignMessage = true;
  3781. result.optionalForeignMessage_ = value;
  3782. return this;
  3783. }
  3784. public Builder SetOptionalForeignMessage(self::ForeignMessage.Builder builderForValue) {
  3785. result.hasOptionalForeignMessage = true;
  3786. result.optionalForeignMessage_ = builderForValue.Build();
  3787. return this;
  3788. }
  3789. public Builder MergeOptionalForeignMessage(self::ForeignMessage value) {
  3790. if (result.HasOptionalForeignMessage &&
  3791. result.optionalForeignMessage_ != self::ForeignMessage.DefaultInstance) {
  3792. result.optionalForeignMessage_ =
  3793. self::ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3794. } else {
  3795. result.optionalForeignMessage_ = value;
  3796. }
  3797. result.hasOptionalForeignMessage = true;
  3798. return this;
  3799. }
  3800. public Builder ClearOptionalForeignMessage() {
  3801. result.hasOptionalForeignMessage = false;
  3802. result.optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  3803. return this;
  3804. }
  3805. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3806. public bool HasOptionalImportMessage {
  3807. get { return result.HasOptionalImportMessage; }
  3808. }
  3809. public self::ImportMessage OptionalImportMessage {
  3810. get { return result.OptionalImportMessage; }
  3811. set { SetOptionalImportMessage(value); }
  3812. }
  3813. public Builder SetOptionalImportMessage(self::ImportMessage value) {
  3814. result.hasOptionalImportMessage = true;
  3815. result.optionalImportMessage_ = value;
  3816. return this;
  3817. }
  3818. public Builder SetOptionalImportMessage(self::ImportMessage.Builder builderForValue) {
  3819. result.hasOptionalImportMessage = true;
  3820. result.optionalImportMessage_ = builderForValue.Build();
  3821. return this;
  3822. }
  3823. public Builder MergeOptionalImportMessage(self::ImportMessage value) {
  3824. if (result.HasOptionalImportMessage &&
  3825. result.optionalImportMessage_ != self::ImportMessage.DefaultInstance) {
  3826. result.optionalImportMessage_ =
  3827. self::ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3828. } else {
  3829. result.optionalImportMessage_ = value;
  3830. }
  3831. result.hasOptionalImportMessage = true;
  3832. return this;
  3833. }
  3834. public Builder ClearOptionalImportMessage() {
  3835. result.hasOptionalImportMessage = false;
  3836. result.optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  3837. return this;
  3838. }
  3839. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3840. public bool HasOptionalNestedEnum {
  3841. get { return result.HasOptionalNestedEnum; }
  3842. }
  3843. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3844. get { return result.OptionalNestedEnum; }
  3845. set { SetOptionalNestedEnum(value); }
  3846. }
  3847. public Builder SetOptionalNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  3848. result.hasOptionalNestedEnum = true;
  3849. result.optionalNestedEnum_ = value;
  3850. return this;
  3851. }
  3852. public Builder ClearOptionalNestedEnum() {
  3853. result.hasOptionalNestedEnum = false;
  3854. result.optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  3855. return this;
  3856. }
  3857. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3858. public bool HasOptionalForeignEnum {
  3859. get { return result.HasOptionalForeignEnum; }
  3860. }
  3861. public self::ForeignEnum OptionalForeignEnum {
  3862. get { return result.OptionalForeignEnum; }
  3863. set { SetOptionalForeignEnum(value); }
  3864. }
  3865. public Builder SetOptionalForeignEnum(self::ForeignEnum value) {
  3866. result.hasOptionalForeignEnum = true;
  3867. result.optionalForeignEnum_ = value;
  3868. return this;
  3869. }
  3870. public Builder ClearOptionalForeignEnum() {
  3871. result.hasOptionalForeignEnum = false;
  3872. result.optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  3873. return this;
  3874. }
  3875. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3876. public bool HasOptionalImportEnum {
  3877. get { return result.HasOptionalImportEnum; }
  3878. }
  3879. public self::ImportEnum OptionalImportEnum {
  3880. get { return result.OptionalImportEnum; }
  3881. set { SetOptionalImportEnum(value); }
  3882. }
  3883. public Builder SetOptionalImportEnum(self::ImportEnum value) {
  3884. result.hasOptionalImportEnum = true;
  3885. result.optionalImportEnum_ = value;
  3886. return this;
  3887. }
  3888. public Builder ClearOptionalImportEnum() {
  3889. result.hasOptionalImportEnum = false;
  3890. result.optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  3891. return this;
  3892. }
  3893. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3894. public bool HasOptionalStringPiece {
  3895. get { return result.HasOptionalStringPiece; }
  3896. }
  3897. public string OptionalStringPiece {
  3898. get { return result.OptionalStringPiece; }
  3899. set { SetOptionalStringPiece(value); }
  3900. }
  3901. public Builder SetOptionalStringPiece(string value) {
  3902. result.hasOptionalStringPiece = true;
  3903. result.optionalStringPiece_ = value;
  3904. return this;
  3905. }
  3906. public Builder ClearOptionalStringPiece() {
  3907. result.hasOptionalStringPiece = false;
  3908. result.optionalStringPiece_ = "";
  3909. return this;
  3910. }
  3911. // optional string optional_cord = 25 [ctype = CORD];
  3912. public bool HasOptionalCord {
  3913. get { return result.HasOptionalCord; }
  3914. }
  3915. public string OptionalCord {
  3916. get { return result.OptionalCord; }
  3917. set { SetOptionalCord(value); }
  3918. }
  3919. public Builder SetOptionalCord(string value) {
  3920. result.hasOptionalCord = true;
  3921. result.optionalCord_ = value;
  3922. return this;
  3923. }
  3924. public Builder ClearOptionalCord() {
  3925. result.hasOptionalCord = false;
  3926. result.optionalCord_ = "";
  3927. return this;
  3928. }
  3929. // repeated int32 repeated_int32 = 31;
  3930. public scg::IList<int> RepeatedInt32List {
  3931. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3932. }
  3933. public int RepeatedInt32Count {
  3934. get { return result.RepeatedInt32Count; }
  3935. }
  3936. public int GetRepeatedInt32(int index) {
  3937. return result.GetRepeatedInt32(index);
  3938. }
  3939. public Builder SetRepeatedInt32(int index, int value) {
  3940. result.repeatedInt32_[index] = value;
  3941. return this;
  3942. }
  3943. public Builder AddRepeatedInt32(int value) {
  3944. if (result.repeatedInt32_.Count == 0) {
  3945. result.repeatedInt32_ = new scg::List<int>();
  3946. }
  3947. result.repeatedInt32_.Add(value);
  3948. return this;
  3949. }
  3950. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3951. if (result.repeatedInt32_.Count == 0) {
  3952. result.repeatedInt32_ = new scg::List<int>();
  3953. }
  3954. base.AddRange(values, result.repeatedInt32_);
  3955. return this;
  3956. }
  3957. public Builder ClearRepeatedInt32() {
  3958. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3959. return this;
  3960. }
  3961. // repeated int64 repeated_int64 = 32;
  3962. public scg::IList<long> RepeatedInt64List {
  3963. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3964. }
  3965. public int RepeatedInt64Count {
  3966. get { return result.RepeatedInt64Count; }
  3967. }
  3968. public long GetRepeatedInt64(int index) {
  3969. return result.GetRepeatedInt64(index);
  3970. }
  3971. public Builder SetRepeatedInt64(int index, long value) {
  3972. result.repeatedInt64_[index] = value;
  3973. return this;
  3974. }
  3975. public Builder AddRepeatedInt64(long value) {
  3976. if (result.repeatedInt64_.Count == 0) {
  3977. result.repeatedInt64_ = new scg::List<long>();
  3978. }
  3979. result.repeatedInt64_.Add(value);
  3980. return this;
  3981. }
  3982. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3983. if (result.repeatedInt64_.Count == 0) {
  3984. result.repeatedInt64_ = new scg::List<long>();
  3985. }
  3986. base.AddRange(values, result.repeatedInt64_);
  3987. return this;
  3988. }
  3989. public Builder ClearRepeatedInt64() {
  3990. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  3991. return this;
  3992. }
  3993. // repeated uint32 repeated_uint32 = 33;
  3994. public scg::IList<uint> RepeatedUint32List {
  3995. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  3996. }
  3997. public int RepeatedUint32Count {
  3998. get { return result.RepeatedUint32Count; }
  3999. }
  4000. public uint GetRepeatedUint32(int index) {
  4001. return result.GetRepeatedUint32(index);
  4002. }
  4003. public Builder SetRepeatedUint32(int index, uint value) {
  4004. result.repeatedUint32_[index] = value;
  4005. return this;
  4006. }
  4007. public Builder AddRepeatedUint32(uint value) {
  4008. if (result.repeatedUint32_.Count == 0) {
  4009. result.repeatedUint32_ = new scg::List<uint>();
  4010. }
  4011. result.repeatedUint32_.Add(value);
  4012. return this;
  4013. }
  4014. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  4015. if (result.repeatedUint32_.Count == 0) {
  4016. result.repeatedUint32_ = new scg::List<uint>();
  4017. }
  4018. base.AddRange(values, result.repeatedUint32_);
  4019. return this;
  4020. }
  4021. public Builder ClearRepeatedUint32() {
  4022. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  4023. return this;
  4024. }
  4025. // repeated uint64 repeated_uint64 = 34;
  4026. public scg::IList<ulong> RepeatedUint64List {
  4027. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  4028. }
  4029. public int RepeatedUint64Count {
  4030. get { return result.RepeatedUint64Count; }
  4031. }
  4032. public ulong GetRepeatedUint64(int index) {
  4033. return result.GetRepeatedUint64(index);
  4034. }
  4035. public Builder SetRepeatedUint64(int index, ulong value) {
  4036. result.repeatedUint64_[index] = value;
  4037. return this;
  4038. }
  4039. public Builder AddRepeatedUint64(ulong value) {
  4040. if (result.repeatedUint64_.Count == 0) {
  4041. result.repeatedUint64_ = new scg::List<ulong>();
  4042. }
  4043. result.repeatedUint64_.Add(value);
  4044. return this;
  4045. }
  4046. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4047. if (result.repeatedUint64_.Count == 0) {
  4048. result.repeatedUint64_ = new scg::List<ulong>();
  4049. }
  4050. base.AddRange(values, result.repeatedUint64_);
  4051. return this;
  4052. }
  4053. public Builder ClearRepeatedUint64() {
  4054. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4055. return this;
  4056. }
  4057. // repeated sint32 repeated_sint32 = 35;
  4058. public scg::IList<int> RepeatedSint32List {
  4059. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4060. }
  4061. public int RepeatedSint32Count {
  4062. get { return result.RepeatedSint32Count; }
  4063. }
  4064. public int GetRepeatedSint32(int index) {
  4065. return result.GetRepeatedSint32(index);
  4066. }
  4067. public Builder SetRepeatedSint32(int index, int value) {
  4068. result.repeatedSint32_[index] = value;
  4069. return this;
  4070. }
  4071. public Builder AddRepeatedSint32(int value) {
  4072. if (result.repeatedSint32_.Count == 0) {
  4073. result.repeatedSint32_ = new scg::List<int>();
  4074. }
  4075. result.repeatedSint32_.Add(value);
  4076. return this;
  4077. }
  4078. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4079. if (result.repeatedSint32_.Count == 0) {
  4080. result.repeatedSint32_ = new scg::List<int>();
  4081. }
  4082. base.AddRange(values, result.repeatedSint32_);
  4083. return this;
  4084. }
  4085. public Builder ClearRepeatedSint32() {
  4086. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4087. return this;
  4088. }
  4089. // repeated sint64 repeated_sint64 = 36;
  4090. public scg::IList<long> RepeatedSint64List {
  4091. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4092. }
  4093. public int RepeatedSint64Count {
  4094. get { return result.RepeatedSint64Count; }
  4095. }
  4096. public long GetRepeatedSint64(int index) {
  4097. return result.GetRepeatedSint64(index);
  4098. }
  4099. public Builder SetRepeatedSint64(int index, long value) {
  4100. result.repeatedSint64_[index] = value;
  4101. return this;
  4102. }
  4103. public Builder AddRepeatedSint64(long value) {
  4104. if (result.repeatedSint64_.Count == 0) {
  4105. result.repeatedSint64_ = new scg::List<long>();
  4106. }
  4107. result.repeatedSint64_.Add(value);
  4108. return this;
  4109. }
  4110. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4111. if (result.repeatedSint64_.Count == 0) {
  4112. result.repeatedSint64_ = new scg::List<long>();
  4113. }
  4114. base.AddRange(values, result.repeatedSint64_);
  4115. return this;
  4116. }
  4117. public Builder ClearRepeatedSint64() {
  4118. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4119. return this;
  4120. }
  4121. // repeated fixed32 repeated_fixed32 = 37;
  4122. public scg::IList<uint> RepeatedFixed32List {
  4123. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4124. }
  4125. public int RepeatedFixed32Count {
  4126. get { return result.RepeatedFixed32Count; }
  4127. }
  4128. public uint GetRepeatedFixed32(int index) {
  4129. return result.GetRepeatedFixed32(index);
  4130. }
  4131. public Builder SetRepeatedFixed32(int index, uint value) {
  4132. result.repeatedFixed32_[index] = value;
  4133. return this;
  4134. }
  4135. public Builder AddRepeatedFixed32(uint value) {
  4136. if (result.repeatedFixed32_.Count == 0) {
  4137. result.repeatedFixed32_ = new scg::List<uint>();
  4138. }
  4139. result.repeatedFixed32_.Add(value);
  4140. return this;
  4141. }
  4142. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4143. if (result.repeatedFixed32_.Count == 0) {
  4144. result.repeatedFixed32_ = new scg::List<uint>();
  4145. }
  4146. base.AddRange(values, result.repeatedFixed32_);
  4147. return this;
  4148. }
  4149. public Builder ClearRepeatedFixed32() {
  4150. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4151. return this;
  4152. }
  4153. // repeated fixed64 repeated_fixed64 = 38;
  4154. public scg::IList<ulong> RepeatedFixed64List {
  4155. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4156. }
  4157. public int RepeatedFixed64Count {
  4158. get { return result.RepeatedFixed64Count; }
  4159. }
  4160. public ulong GetRepeatedFixed64(int index) {
  4161. return result.GetRepeatedFixed64(index);
  4162. }
  4163. public Builder SetRepeatedFixed64(int index, ulong value) {
  4164. result.repeatedFixed64_[index] = value;
  4165. return this;
  4166. }
  4167. public Builder AddRepeatedFixed64(ulong value) {
  4168. if (result.repeatedFixed64_.Count == 0) {
  4169. result.repeatedFixed64_ = new scg::List<ulong>();
  4170. }
  4171. result.repeatedFixed64_.Add(value);
  4172. return this;
  4173. }
  4174. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4175. if (result.repeatedFixed64_.Count == 0) {
  4176. result.repeatedFixed64_ = new scg::List<ulong>();
  4177. }
  4178. base.AddRange(values, result.repeatedFixed64_);
  4179. return this;
  4180. }
  4181. public Builder ClearRepeatedFixed64() {
  4182. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4183. return this;
  4184. }
  4185. // repeated sfixed32 repeated_sfixed32 = 39;
  4186. public scg::IList<int> RepeatedSfixed32List {
  4187. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4188. }
  4189. public int RepeatedSfixed32Count {
  4190. get { return result.RepeatedSfixed32Count; }
  4191. }
  4192. public int GetRepeatedSfixed32(int index) {
  4193. return result.GetRepeatedSfixed32(index);
  4194. }
  4195. public Builder SetRepeatedSfixed32(int index, int value) {
  4196. result.repeatedSfixed32_[index] = value;
  4197. return this;
  4198. }
  4199. public Builder AddRepeatedSfixed32(int value) {
  4200. if (result.repeatedSfixed32_.Count == 0) {
  4201. result.repeatedSfixed32_ = new scg::List<int>();
  4202. }
  4203. result.repeatedSfixed32_.Add(value);
  4204. return this;
  4205. }
  4206. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4207. if (result.repeatedSfixed32_.Count == 0) {
  4208. result.repeatedSfixed32_ = new scg::List<int>();
  4209. }
  4210. base.AddRange(values, result.repeatedSfixed32_);
  4211. return this;
  4212. }
  4213. public Builder ClearRepeatedSfixed32() {
  4214. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4215. return this;
  4216. }
  4217. // repeated sfixed64 repeated_sfixed64 = 40;
  4218. public scg::IList<long> RepeatedSfixed64List {
  4219. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4220. }
  4221. public int RepeatedSfixed64Count {
  4222. get { return result.RepeatedSfixed64Count; }
  4223. }
  4224. public long GetRepeatedSfixed64(int index) {
  4225. return result.GetRepeatedSfixed64(index);
  4226. }
  4227. public Builder SetRepeatedSfixed64(int index, long value) {
  4228. result.repeatedSfixed64_[index] = value;
  4229. return this;
  4230. }
  4231. public Builder AddRepeatedSfixed64(long value) {
  4232. if (result.repeatedSfixed64_.Count == 0) {
  4233. result.repeatedSfixed64_ = new scg::List<long>();
  4234. }
  4235. result.repeatedSfixed64_.Add(value);
  4236. return this;
  4237. }
  4238. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4239. if (result.repeatedSfixed64_.Count == 0) {
  4240. result.repeatedSfixed64_ = new scg::List<long>();
  4241. }
  4242. base.AddRange(values, result.repeatedSfixed64_);
  4243. return this;
  4244. }
  4245. public Builder ClearRepeatedSfixed64() {
  4246. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4247. return this;
  4248. }
  4249. // repeated float repeated_float = 41;
  4250. public scg::IList<float> RepeatedFloatList {
  4251. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4252. }
  4253. public int RepeatedFloatCount {
  4254. get { return result.RepeatedFloatCount; }
  4255. }
  4256. public float GetRepeatedFloat(int index) {
  4257. return result.GetRepeatedFloat(index);
  4258. }
  4259. public Builder SetRepeatedFloat(int index, float value) {
  4260. result.repeatedFloat_[index] = value;
  4261. return this;
  4262. }
  4263. public Builder AddRepeatedFloat(float value) {
  4264. if (result.repeatedFloat_.Count == 0) {
  4265. result.repeatedFloat_ = new scg::List<float>();
  4266. }
  4267. result.repeatedFloat_.Add(value);
  4268. return this;
  4269. }
  4270. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4271. if (result.repeatedFloat_.Count == 0) {
  4272. result.repeatedFloat_ = new scg::List<float>();
  4273. }
  4274. base.AddRange(values, result.repeatedFloat_);
  4275. return this;
  4276. }
  4277. public Builder ClearRepeatedFloat() {
  4278. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4279. return this;
  4280. }
  4281. // repeated double repeated_double = 42;
  4282. public scg::IList<double> RepeatedDoubleList {
  4283. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4284. }
  4285. public int RepeatedDoubleCount {
  4286. get { return result.RepeatedDoubleCount; }
  4287. }
  4288. public double GetRepeatedDouble(int index) {
  4289. return result.GetRepeatedDouble(index);
  4290. }
  4291. public Builder SetRepeatedDouble(int index, double value) {
  4292. result.repeatedDouble_[index] = value;
  4293. return this;
  4294. }
  4295. public Builder AddRepeatedDouble(double value) {
  4296. if (result.repeatedDouble_.Count == 0) {
  4297. result.repeatedDouble_ = new scg::List<double>();
  4298. }
  4299. result.repeatedDouble_.Add(value);
  4300. return this;
  4301. }
  4302. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4303. if (result.repeatedDouble_.Count == 0) {
  4304. result.repeatedDouble_ = new scg::List<double>();
  4305. }
  4306. base.AddRange(values, result.repeatedDouble_);
  4307. return this;
  4308. }
  4309. public Builder ClearRepeatedDouble() {
  4310. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4311. return this;
  4312. }
  4313. // repeated bool repeated_bool = 43;
  4314. public scg::IList<bool> RepeatedBoolList {
  4315. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4316. }
  4317. public int RepeatedBoolCount {
  4318. get { return result.RepeatedBoolCount; }
  4319. }
  4320. public bool GetRepeatedBool(int index) {
  4321. return result.GetRepeatedBool(index);
  4322. }
  4323. public Builder SetRepeatedBool(int index, bool value) {
  4324. result.repeatedBool_[index] = value;
  4325. return this;
  4326. }
  4327. public Builder AddRepeatedBool(bool value) {
  4328. if (result.repeatedBool_.Count == 0) {
  4329. result.repeatedBool_ = new scg::List<bool>();
  4330. }
  4331. result.repeatedBool_.Add(value);
  4332. return this;
  4333. }
  4334. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4335. if (result.repeatedBool_.Count == 0) {
  4336. result.repeatedBool_ = new scg::List<bool>();
  4337. }
  4338. base.AddRange(values, result.repeatedBool_);
  4339. return this;
  4340. }
  4341. public Builder ClearRepeatedBool() {
  4342. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4343. return this;
  4344. }
  4345. // repeated string repeated_string = 44;
  4346. public scg::IList<string> RepeatedStringList {
  4347. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4348. }
  4349. public int RepeatedStringCount {
  4350. get { return result.RepeatedStringCount; }
  4351. }
  4352. public string GetRepeatedString(int index) {
  4353. return result.GetRepeatedString(index);
  4354. }
  4355. public Builder SetRepeatedString(int index, string value) {
  4356. result.repeatedString_[index] = value;
  4357. return this;
  4358. }
  4359. public Builder AddRepeatedString(string value) {
  4360. if (result.repeatedString_.Count == 0) {
  4361. result.repeatedString_ = new scg::List<string>();
  4362. }
  4363. result.repeatedString_.Add(value);
  4364. return this;
  4365. }
  4366. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4367. if (result.repeatedString_.Count == 0) {
  4368. result.repeatedString_ = new scg::List<string>();
  4369. }
  4370. base.AddRange(values, result.repeatedString_);
  4371. return this;
  4372. }
  4373. public Builder ClearRepeatedString() {
  4374. result.repeatedString_ = pbc::Lists<string>.Empty;
  4375. return this;
  4376. }
  4377. // repeated bytes repeated_bytes = 45;
  4378. public scg::IList<pb::ByteString> RepeatedBytesList {
  4379. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4380. }
  4381. public int RepeatedBytesCount {
  4382. get { return result.RepeatedBytesCount; }
  4383. }
  4384. public pb::ByteString GetRepeatedBytes(int index) {
  4385. return result.GetRepeatedBytes(index);
  4386. }
  4387. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4388. result.repeatedBytes_[index] = value;
  4389. return this;
  4390. }
  4391. public Builder AddRepeatedBytes(pb::ByteString value) {
  4392. if (result.repeatedBytes_.Count == 0) {
  4393. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4394. }
  4395. result.repeatedBytes_.Add(value);
  4396. return this;
  4397. }
  4398. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4399. if (result.repeatedBytes_.Count == 0) {
  4400. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4401. }
  4402. base.AddRange(values, result.repeatedBytes_);
  4403. return this;
  4404. }
  4405. public Builder ClearRepeatedBytes() {
  4406. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4407. return this;
  4408. }
  4409. // repeated group RepeatedGroup = 46 {
  4410. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4411. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4412. }
  4413. public int RepeatedGroupCount {
  4414. get { return result.RepeatedGroupCount; }
  4415. }
  4416. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4417. return result.GetRepeatedGroup(index);
  4418. }
  4419. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup value) {
  4420. result.repeatedGroup_[index] = value;
  4421. return this;
  4422. }
  4423. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4424. result.repeatedGroup_[index] = builderForValue.Build();
  4425. return this;
  4426. }
  4427. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup value) {
  4428. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4429. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4430. }
  4431. result.repeatedGroup_.Add(value);
  4432. return this;
  4433. }
  4434. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4435. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4436. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4437. }
  4438. result.repeatedGroup_.Add(builderForValue.Build());
  4439. return this;
  4440. }
  4441. public Builder AddRangeRepeatedGroup(scg::IEnumerable<self::TestAllTypes.Types.RepeatedGroup> values) {
  4442. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4443. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4444. }
  4445. base.AddRange(values, result.repeatedGroup_);
  4446. return this;
  4447. }
  4448. public Builder ClearRepeatedGroup() {
  4449. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  4450. return this;
  4451. }
  4452. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4453. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4454. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4455. }
  4456. public int RepeatedNestedMessageCount {
  4457. get { return result.RepeatedNestedMessageCount; }
  4458. }
  4459. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4460. return result.GetRepeatedNestedMessage(index);
  4461. }
  4462. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage value) {
  4463. result.repeatedNestedMessage_[index] = value;
  4464. return this;
  4465. }
  4466. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4467. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4468. return this;
  4469. }
  4470. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  4471. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4472. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4473. }
  4474. result.repeatedNestedMessage_.Add(value);
  4475. return this;
  4476. }
  4477. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4478. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4479. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4480. }
  4481. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4482. return this;
  4483. }
  4484. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<self::TestAllTypes.Types.NestedMessage> values) {
  4485. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4486. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4487. }
  4488. base.AddRange(values, result.repeatedNestedMessage_);
  4489. return this;
  4490. }
  4491. public Builder ClearRepeatedNestedMessage() {
  4492. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  4493. return this;
  4494. }
  4495. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4496. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  4497. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4498. }
  4499. public int RepeatedForeignMessageCount {
  4500. get { return result.RepeatedForeignMessageCount; }
  4501. }
  4502. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  4503. return result.GetRepeatedForeignMessage(index);
  4504. }
  4505. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage value) {
  4506. result.repeatedForeignMessage_[index] = value;
  4507. return this;
  4508. }
  4509. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage.Builder builderForValue) {
  4510. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4511. return this;
  4512. }
  4513. public Builder AddRepeatedForeignMessage(self::ForeignMessage value) {
  4514. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4515. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4516. }
  4517. result.repeatedForeignMessage_.Add(value);
  4518. return this;
  4519. }
  4520. public Builder AddRepeatedForeignMessage(self::ForeignMessage.Builder builderForValue) {
  4521. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4522. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4523. }
  4524. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4525. return this;
  4526. }
  4527. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<self::ForeignMessage> values) {
  4528. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4529. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4530. }
  4531. base.AddRange(values, result.repeatedForeignMessage_);
  4532. return this;
  4533. }
  4534. public Builder ClearRepeatedForeignMessage() {
  4535. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  4536. return this;
  4537. }
  4538. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4539. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  4540. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4541. }
  4542. public int RepeatedImportMessageCount {
  4543. get { return result.RepeatedImportMessageCount; }
  4544. }
  4545. public self::ImportMessage GetRepeatedImportMessage(int index) {
  4546. return result.GetRepeatedImportMessage(index);
  4547. }
  4548. public Builder SetRepeatedImportMessage(int index, self::ImportMessage value) {
  4549. result.repeatedImportMessage_[index] = value;
  4550. return this;
  4551. }
  4552. public Builder SetRepeatedImportMessage(int index, self::ImportMessage.Builder builderForValue) {
  4553. result.repeatedImportMessage_[index] = builderForValue.Build();
  4554. return this;
  4555. }
  4556. public Builder AddRepeatedImportMessage(self::ImportMessage value) {
  4557. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4558. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4559. }
  4560. result.repeatedImportMessage_.Add(value);
  4561. return this;
  4562. }
  4563. public Builder AddRepeatedImportMessage(self::ImportMessage.Builder builderForValue) {
  4564. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4565. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4566. }
  4567. result.repeatedImportMessage_.Add(builderForValue.Build());
  4568. return this;
  4569. }
  4570. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<self::ImportMessage> values) {
  4571. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4572. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4573. }
  4574. base.AddRange(values, result.repeatedImportMessage_);
  4575. return this;
  4576. }
  4577. public Builder ClearRepeatedImportMessage() {
  4578. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  4579. return this;
  4580. }
  4581. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4582. public scg::IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4583. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4584. }
  4585. public int RepeatedNestedEnumCount {
  4586. get { return result.RepeatedNestedEnumCount; }
  4587. }
  4588. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4589. return result.GetRepeatedNestedEnum(index);
  4590. }
  4591. public Builder SetRepeatedNestedEnum(int index, self::TestAllTypes.Types.NestedEnum value) {
  4592. result.repeatedNestedEnum_[index] = value;
  4593. return this;
  4594. }
  4595. public Builder AddRepeatedNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  4596. if (result.repeatedNestedEnum_.Count == 0) {
  4597. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4598. }
  4599. result.repeatedNestedEnum_.Add(value);
  4600. return this;
  4601. }
  4602. public Builder AddAllRepeatedNestedEnum(scg::IEnumerable<self::TestAllTypes.Types.NestedEnum> values) {
  4603. if (result.repeatedNestedEnum_.Count == 0) {
  4604. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4605. }
  4606. base.AddRange(values, result.repeatedNestedEnum_);
  4607. return this;
  4608. }
  4609. public Builder ClearRepeatedNestedEnum() {
  4610. result.repeatedNestedEnum_ = pbc::Lists<self::TestAllTypes.Types.NestedEnum>.Empty;
  4611. return this;
  4612. }
  4613. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4614. public scg::IList<self::ForeignEnum> RepeatedForeignEnumList {
  4615. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4616. }
  4617. public int RepeatedForeignEnumCount {
  4618. get { return result.RepeatedForeignEnumCount; }
  4619. }
  4620. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  4621. return result.GetRepeatedForeignEnum(index);
  4622. }
  4623. public Builder SetRepeatedForeignEnum(int index, self::ForeignEnum value) {
  4624. result.repeatedForeignEnum_[index] = value;
  4625. return this;
  4626. }
  4627. public Builder AddRepeatedForeignEnum(self::ForeignEnum value) {
  4628. if (result.repeatedForeignEnum_.Count == 0) {
  4629. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4630. }
  4631. result.repeatedForeignEnum_.Add(value);
  4632. return this;
  4633. }
  4634. public Builder AddAllRepeatedForeignEnum(scg::IEnumerable<self::ForeignEnum> values) {
  4635. if (result.repeatedForeignEnum_.Count == 0) {
  4636. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4637. }
  4638. base.AddRange(values, result.repeatedForeignEnum_);
  4639. return this;
  4640. }
  4641. public Builder ClearRepeatedForeignEnum() {
  4642. result.repeatedForeignEnum_ = pbc::Lists<self::ForeignEnum>.Empty;
  4643. return this;
  4644. }
  4645. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4646. public scg::IList<self::ImportEnum> RepeatedImportEnumList {
  4647. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4648. }
  4649. public int RepeatedImportEnumCount {
  4650. get { return result.RepeatedImportEnumCount; }
  4651. }
  4652. public self::ImportEnum GetRepeatedImportEnum(int index) {
  4653. return result.GetRepeatedImportEnum(index);
  4654. }
  4655. public Builder SetRepeatedImportEnum(int index, self::ImportEnum value) {
  4656. result.repeatedImportEnum_[index] = value;
  4657. return this;
  4658. }
  4659. public Builder AddRepeatedImportEnum(self::ImportEnum value) {
  4660. if (result.repeatedImportEnum_.Count == 0) {
  4661. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4662. }
  4663. result.repeatedImportEnum_.Add(value);
  4664. return this;
  4665. }
  4666. public Builder AddAllRepeatedImportEnum(scg::IEnumerable<self::ImportEnum> values) {
  4667. if (result.repeatedImportEnum_.Count == 0) {
  4668. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4669. }
  4670. base.AddRange(values, result.repeatedImportEnum_);
  4671. return this;
  4672. }
  4673. public Builder ClearRepeatedImportEnum() {
  4674. result.repeatedImportEnum_ = pbc::Lists<self::ImportEnum>.Empty;
  4675. return this;
  4676. }
  4677. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4678. public scg::IList<string> RepeatedStringPieceList {
  4679. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4680. }
  4681. public int RepeatedStringPieceCount {
  4682. get { return result.RepeatedStringPieceCount; }
  4683. }
  4684. public string GetRepeatedStringPiece(int index) {
  4685. return result.GetRepeatedStringPiece(index);
  4686. }
  4687. public Builder SetRepeatedStringPiece(int index, string value) {
  4688. result.repeatedStringPiece_[index] = value;
  4689. return this;
  4690. }
  4691. public Builder AddRepeatedStringPiece(string value) {
  4692. if (result.repeatedStringPiece_.Count == 0) {
  4693. result.repeatedStringPiece_ = new scg::List<string>();
  4694. }
  4695. result.repeatedStringPiece_.Add(value);
  4696. return this;
  4697. }
  4698. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4699. if (result.repeatedStringPiece_.Count == 0) {
  4700. result.repeatedStringPiece_ = new scg::List<string>();
  4701. }
  4702. base.AddRange(values, result.repeatedStringPiece_);
  4703. return this;
  4704. }
  4705. public Builder ClearRepeatedStringPiece() {
  4706. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4707. return this;
  4708. }
  4709. // repeated string repeated_cord = 55 [ctype = CORD];
  4710. public scg::IList<string> RepeatedCordList {
  4711. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4712. }
  4713. public int RepeatedCordCount {
  4714. get { return result.RepeatedCordCount; }
  4715. }
  4716. public string GetRepeatedCord(int index) {
  4717. return result.GetRepeatedCord(index);
  4718. }
  4719. public Builder SetRepeatedCord(int index, string value) {
  4720. result.repeatedCord_[index] = value;
  4721. return this;
  4722. }
  4723. public Builder AddRepeatedCord(string value) {
  4724. if (result.repeatedCord_.Count == 0) {
  4725. result.repeatedCord_ = new scg::List<string>();
  4726. }
  4727. result.repeatedCord_.Add(value);
  4728. return this;
  4729. }
  4730. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4731. if (result.repeatedCord_.Count == 0) {
  4732. result.repeatedCord_ = new scg::List<string>();
  4733. }
  4734. base.AddRange(values, result.repeatedCord_);
  4735. return this;
  4736. }
  4737. public Builder ClearRepeatedCord() {
  4738. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4739. return this;
  4740. }
  4741. // optional int32 default_int32 = 61 [default = 41];
  4742. public bool HasDefaultInt32 {
  4743. get { return result.HasDefaultInt32; }
  4744. }
  4745. public int DefaultInt32 {
  4746. get { return result.DefaultInt32; }
  4747. set { SetDefaultInt32(value); }
  4748. }
  4749. public Builder SetDefaultInt32(int value) {
  4750. result.hasDefaultInt32 = true;
  4751. result.defaultInt32_ = value;
  4752. return this;
  4753. }
  4754. public Builder ClearDefaultInt32() {
  4755. result.hasDefaultInt32 = false;
  4756. result.defaultInt32_ = 41;
  4757. return this;
  4758. }
  4759. // optional int64 default_int64 = 62 [default = 42];
  4760. public bool HasDefaultInt64 {
  4761. get { return result.HasDefaultInt64; }
  4762. }
  4763. public long DefaultInt64 {
  4764. get { return result.DefaultInt64; }
  4765. set { SetDefaultInt64(value); }
  4766. }
  4767. public Builder SetDefaultInt64(long value) {
  4768. result.hasDefaultInt64 = true;
  4769. result.defaultInt64_ = value;
  4770. return this;
  4771. }
  4772. public Builder ClearDefaultInt64() {
  4773. result.hasDefaultInt64 = false;
  4774. result.defaultInt64_ = 42L;
  4775. return this;
  4776. }
  4777. // optional uint32 default_uint32 = 63 [default = 43];
  4778. public bool HasDefaultUint32 {
  4779. get { return result.HasDefaultUint32; }
  4780. }
  4781. public uint DefaultUint32 {
  4782. get { return result.DefaultUint32; }
  4783. set { SetDefaultUint32(value); }
  4784. }
  4785. public Builder SetDefaultUint32(uint value) {
  4786. result.hasDefaultUint32 = true;
  4787. result.defaultUint32_ = value;
  4788. return this;
  4789. }
  4790. public Builder ClearDefaultUint32() {
  4791. result.hasDefaultUint32 = false;
  4792. result.defaultUint32_ = 43;
  4793. return this;
  4794. }
  4795. // optional uint64 default_uint64 = 64 [default = 44];
  4796. public bool HasDefaultUint64 {
  4797. get { return result.HasDefaultUint64; }
  4798. }
  4799. public ulong DefaultUint64 {
  4800. get { return result.DefaultUint64; }
  4801. set { SetDefaultUint64(value); }
  4802. }
  4803. public Builder SetDefaultUint64(ulong value) {
  4804. result.hasDefaultUint64 = true;
  4805. result.defaultUint64_ = value;
  4806. return this;
  4807. }
  4808. public Builder ClearDefaultUint64() {
  4809. result.hasDefaultUint64 = false;
  4810. result.defaultUint64_ = 44UL;
  4811. return this;
  4812. }
  4813. // optional sint32 default_sint32 = 65 [default = -45];
  4814. public bool HasDefaultSint32 {
  4815. get { return result.HasDefaultSint32; }
  4816. }
  4817. public int DefaultSint32 {
  4818. get { return result.DefaultSint32; }
  4819. set { SetDefaultSint32(value); }
  4820. }
  4821. public Builder SetDefaultSint32(int value) {
  4822. result.hasDefaultSint32 = true;
  4823. result.defaultSint32_ = value;
  4824. return this;
  4825. }
  4826. public Builder ClearDefaultSint32() {
  4827. result.hasDefaultSint32 = false;
  4828. result.defaultSint32_ = -45;
  4829. return this;
  4830. }
  4831. // optional sint64 default_sint64 = 66 [default = 46];
  4832. public bool HasDefaultSint64 {
  4833. get { return result.HasDefaultSint64; }
  4834. }
  4835. public long DefaultSint64 {
  4836. get { return result.DefaultSint64; }
  4837. set { SetDefaultSint64(value); }
  4838. }
  4839. public Builder SetDefaultSint64(long value) {
  4840. result.hasDefaultSint64 = true;
  4841. result.defaultSint64_ = value;
  4842. return this;
  4843. }
  4844. public Builder ClearDefaultSint64() {
  4845. result.hasDefaultSint64 = false;
  4846. result.defaultSint64_ = 46L;
  4847. return this;
  4848. }
  4849. // optional fixed32 default_fixed32 = 67 [default = 47];
  4850. public bool HasDefaultFixed32 {
  4851. get { return result.HasDefaultFixed32; }
  4852. }
  4853. public uint DefaultFixed32 {
  4854. get { return result.DefaultFixed32; }
  4855. set { SetDefaultFixed32(value); }
  4856. }
  4857. public Builder SetDefaultFixed32(uint value) {
  4858. result.hasDefaultFixed32 = true;
  4859. result.defaultFixed32_ = value;
  4860. return this;
  4861. }
  4862. public Builder ClearDefaultFixed32() {
  4863. result.hasDefaultFixed32 = false;
  4864. result.defaultFixed32_ = 47;
  4865. return this;
  4866. }
  4867. // optional fixed64 default_fixed64 = 68 [default = 48];
  4868. public bool HasDefaultFixed64 {
  4869. get { return result.HasDefaultFixed64; }
  4870. }
  4871. public ulong DefaultFixed64 {
  4872. get { return result.DefaultFixed64; }
  4873. set { SetDefaultFixed64(value); }
  4874. }
  4875. public Builder SetDefaultFixed64(ulong value) {
  4876. result.hasDefaultFixed64 = true;
  4877. result.defaultFixed64_ = value;
  4878. return this;
  4879. }
  4880. public Builder ClearDefaultFixed64() {
  4881. result.hasDefaultFixed64 = false;
  4882. result.defaultFixed64_ = 48UL;
  4883. return this;
  4884. }
  4885. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4886. public bool HasDefaultSfixed32 {
  4887. get { return result.HasDefaultSfixed32; }
  4888. }
  4889. public int DefaultSfixed32 {
  4890. get { return result.DefaultSfixed32; }
  4891. set { SetDefaultSfixed32(value); }
  4892. }
  4893. public Builder SetDefaultSfixed32(int value) {
  4894. result.hasDefaultSfixed32 = true;
  4895. result.defaultSfixed32_ = value;
  4896. return this;
  4897. }
  4898. public Builder ClearDefaultSfixed32() {
  4899. result.hasDefaultSfixed32 = false;
  4900. result.defaultSfixed32_ = 49;
  4901. return this;
  4902. }
  4903. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4904. public bool HasDefaultSfixed64 {
  4905. get { return result.HasDefaultSfixed64; }
  4906. }
  4907. public long DefaultSfixed64 {
  4908. get { return result.DefaultSfixed64; }
  4909. set { SetDefaultSfixed64(value); }
  4910. }
  4911. public Builder SetDefaultSfixed64(long value) {
  4912. result.hasDefaultSfixed64 = true;
  4913. result.defaultSfixed64_ = value;
  4914. return this;
  4915. }
  4916. public Builder ClearDefaultSfixed64() {
  4917. result.hasDefaultSfixed64 = false;
  4918. result.defaultSfixed64_ = -50L;
  4919. return this;
  4920. }
  4921. // optional float default_float = 71 [default = 51.5];
  4922. public bool HasDefaultFloat {
  4923. get { return result.HasDefaultFloat; }
  4924. }
  4925. public float DefaultFloat {
  4926. get { return result.DefaultFloat; }
  4927. set { SetDefaultFloat(value); }
  4928. }
  4929. public Builder SetDefaultFloat(float value) {
  4930. result.hasDefaultFloat = true;
  4931. result.defaultFloat_ = value;
  4932. return this;
  4933. }
  4934. public Builder ClearDefaultFloat() {
  4935. result.hasDefaultFloat = false;
  4936. result.defaultFloat_ = 51.5F;
  4937. return this;
  4938. }
  4939. // optional double default_double = 72 [default = 52000];
  4940. public bool HasDefaultDouble {
  4941. get { return result.HasDefaultDouble; }
  4942. }
  4943. public double DefaultDouble {
  4944. get { return result.DefaultDouble; }
  4945. set { SetDefaultDouble(value); }
  4946. }
  4947. public Builder SetDefaultDouble(double value) {
  4948. result.hasDefaultDouble = true;
  4949. result.defaultDouble_ = value;
  4950. return this;
  4951. }
  4952. public Builder ClearDefaultDouble() {
  4953. result.hasDefaultDouble = false;
  4954. result.defaultDouble_ = 52000D;
  4955. return this;
  4956. }
  4957. // optional bool default_bool = 73 [default = true];
  4958. public bool HasDefaultBool {
  4959. get { return result.HasDefaultBool; }
  4960. }
  4961. public bool DefaultBool {
  4962. get { return result.DefaultBool; }
  4963. set { SetDefaultBool(value); }
  4964. }
  4965. public Builder SetDefaultBool(bool value) {
  4966. result.hasDefaultBool = true;
  4967. result.defaultBool_ = value;
  4968. return this;
  4969. }
  4970. public Builder ClearDefaultBool() {
  4971. result.hasDefaultBool = false;
  4972. result.defaultBool_ = true;
  4973. return this;
  4974. }
  4975. // optional string default_string = 74 [default = "hello"];
  4976. public bool HasDefaultString {
  4977. get { return result.HasDefaultString; }
  4978. }
  4979. public string DefaultString {
  4980. get { return result.DefaultString; }
  4981. set { SetDefaultString(value); }
  4982. }
  4983. public Builder SetDefaultString(string value) {
  4984. result.hasDefaultString = true;
  4985. result.defaultString_ = value;
  4986. return this;
  4987. }
  4988. public Builder ClearDefaultString() {
  4989. result.hasDefaultString = false;
  4990. result.defaultString_ = "hello";
  4991. return this;
  4992. }
  4993. // optional bytes default_bytes = 75 [default = "world"];
  4994. public bool HasDefaultBytes {
  4995. get { return result.HasDefaultBytes; }
  4996. }
  4997. public pb::ByteString DefaultBytes {
  4998. get { return result.DefaultBytes; }
  4999. set { SetDefaultBytes(value); }
  5000. }
  5001. public Builder SetDefaultBytes(pb::ByteString value) {
  5002. result.hasDefaultBytes = true;
  5003. result.defaultBytes_ = value;
  5004. return this;
  5005. }
  5006. public Builder ClearDefaultBytes() {
  5007. result.hasDefaultBytes = false;
  5008. result.defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  5009. return this;
  5010. }
  5011. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  5012. public bool HasDefaultNestedEnum {
  5013. get { return result.HasDefaultNestedEnum; }
  5014. }
  5015. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  5016. get { return result.DefaultNestedEnum; }
  5017. set { SetDefaultNestedEnum(value); }
  5018. }
  5019. public Builder SetDefaultNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  5020. result.hasDefaultNestedEnum = true;
  5021. result.defaultNestedEnum_ = value;
  5022. return this;
  5023. }
  5024. public Builder ClearDefaultNestedEnum() {
  5025. result.hasDefaultNestedEnum = false;
  5026. result.defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  5027. return this;
  5028. }
  5029. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  5030. public bool HasDefaultForeignEnum {
  5031. get { return result.HasDefaultForeignEnum; }
  5032. }
  5033. public self::ForeignEnum DefaultForeignEnum {
  5034. get { return result.DefaultForeignEnum; }
  5035. set { SetDefaultForeignEnum(value); }
  5036. }
  5037. public Builder SetDefaultForeignEnum(self::ForeignEnum value) {
  5038. result.hasDefaultForeignEnum = true;
  5039. result.defaultForeignEnum_ = value;
  5040. return this;
  5041. }
  5042. public Builder ClearDefaultForeignEnum() {
  5043. result.hasDefaultForeignEnum = false;
  5044. result.defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  5045. return this;
  5046. }
  5047. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5048. public bool HasDefaultImportEnum {
  5049. get { return result.HasDefaultImportEnum; }
  5050. }
  5051. public self::ImportEnum DefaultImportEnum {
  5052. get { return result.DefaultImportEnum; }
  5053. set { SetDefaultImportEnum(value); }
  5054. }
  5055. public Builder SetDefaultImportEnum(self::ImportEnum value) {
  5056. result.hasDefaultImportEnum = true;
  5057. result.defaultImportEnum_ = value;
  5058. return this;
  5059. }
  5060. public Builder ClearDefaultImportEnum() {
  5061. result.hasDefaultImportEnum = false;
  5062. result.defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  5063. return this;
  5064. }
  5065. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5066. public bool HasDefaultStringPiece {
  5067. get { return result.HasDefaultStringPiece; }
  5068. }
  5069. public string DefaultStringPiece {
  5070. get { return result.DefaultStringPiece; }
  5071. set { SetDefaultStringPiece(value); }
  5072. }
  5073. public Builder SetDefaultStringPiece(string value) {
  5074. result.hasDefaultStringPiece = true;
  5075. result.defaultStringPiece_ = value;
  5076. return this;
  5077. }
  5078. public Builder ClearDefaultStringPiece() {
  5079. result.hasDefaultStringPiece = false;
  5080. result.defaultStringPiece_ = "abc";
  5081. return this;
  5082. }
  5083. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5084. public bool HasDefaultCord {
  5085. get { return result.HasDefaultCord; }
  5086. }
  5087. public string DefaultCord {
  5088. get { return result.DefaultCord; }
  5089. set { SetDefaultCord(value); }
  5090. }
  5091. public Builder SetDefaultCord(string value) {
  5092. result.hasDefaultCord = true;
  5093. result.defaultCord_ = value;
  5094. return this;
  5095. }
  5096. public Builder ClearDefaultCord() {
  5097. result.hasDefaultCord = false;
  5098. result.defaultCord_ = "123";
  5099. return this;
  5100. }
  5101. }
  5102. }
  5103. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5104. // Use ForeignMessage.CreateBuilder() to construct.
  5105. private ForeignMessage() {}
  5106. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5107. public static ForeignMessage DefaultInstance {
  5108. get { return defaultInstance; }
  5109. }
  5110. public override ForeignMessage DefaultInstanceForType {
  5111. get { return defaultInstance; }
  5112. }
  5113. public static pbd::MessageDescriptor Descriptor {
  5114. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5115. }
  5116. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5117. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5118. }
  5119. // optional int32 c = 1;
  5120. private bool hasC;
  5121. private int c_ = 0;
  5122. public bool HasC {
  5123. get { return hasC; }
  5124. }
  5125. public int C {
  5126. get { return c_; }
  5127. }
  5128. public override bool IsInitialized {
  5129. get {
  5130. return true;
  5131. }
  5132. }
  5133. public override void WriteTo(pb::CodedOutputStream output) {
  5134. if (HasC) {
  5135. output.WriteInt32(1, C);
  5136. }
  5137. UnknownFields.WriteTo(output);
  5138. }
  5139. private int memoizedSerializedSize = -1;
  5140. public override int SerializedSize {
  5141. get {
  5142. int size = memoizedSerializedSize;
  5143. if (size != -1) return size;
  5144. size = 0;
  5145. if (HasC) {
  5146. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5147. }
  5148. size += UnknownFields.SerializedSize;
  5149. memoizedSerializedSize = size;
  5150. return size;
  5151. }
  5152. }
  5153. public static self::ForeignMessage ParseFrom(pb::ByteString data) {
  5154. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5155. }
  5156. public static self::ForeignMessage ParseFrom(pb::ByteString data,
  5157. pb::ExtensionRegistry extensionRegistry) {
  5158. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5159. .BuildParsed();
  5160. }
  5161. public static self::ForeignMessage ParseFrom(byte[] data) {
  5162. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5163. }
  5164. public static self::ForeignMessage parseFrom(byte[] data,
  5165. pb::ExtensionRegistry extensionRegistry) {
  5166. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5167. .BuildParsed();
  5168. }
  5169. public static self::ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5170. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5171. }
  5172. public static self::ForeignMessage ParseFrom(
  5173. global::System.IO.Stream input,
  5174. pb::ExtensionRegistry extensionRegistry) {
  5175. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5176. .BuildParsed();
  5177. }
  5178. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5179. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5180. }
  5181. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input,
  5182. pb::ExtensionRegistry extensionRegistry) {
  5183. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5184. .BuildParsed();
  5185. }
  5186. public static Builder CreateBuilder() { return new Builder(); }
  5187. public override IBuilder<self::ForeignMessage> CreateBuilderForType() { return new Builder(); }
  5188. public static Builder CreateBuilder(self::ForeignMessage prototype) {
  5189. return (Builder) new Builder().MergeFrom(prototype);
  5190. }
  5191. public sealed partial class Builder : pb::GeneratedBuilder<self::ForeignMessage, Builder> {
  5192. // Construct using self::ForeignMessage.CreateBuilder()
  5193. internal Builder() {}
  5194. self::ForeignMessage result = new self::ForeignMessage();
  5195. protected override self::ForeignMessage MessageBeingBuilt {
  5196. get { return result; }
  5197. }
  5198. public override IBuilder<self::ForeignMessage> Clear() {
  5199. result = new self::ForeignMessage();
  5200. return this;
  5201. }
  5202. public override IBuilder<self::ForeignMessage> Clone() {
  5203. return new Builder().MergeFrom(result);
  5204. }
  5205. public override pbd::MessageDescriptor DescriptorForType {
  5206. get { return self::ForeignMessage.Descriptor; }
  5207. }
  5208. public override self::ForeignMessage DefaultInstanceForType {
  5209. get { return self::ForeignMessage.DefaultInstance; }
  5210. }
  5211. public override self::ForeignMessage BuildPartial() {
  5212. self::ForeignMessage returnMe = result;
  5213. result = null;
  5214. return returnMe;
  5215. }
  5216. public override IBuilder MergeFrom(pb::IMessage other) {
  5217. if (other is self::ForeignMessage) {
  5218. return MergeFrom((self::ForeignMessage) other);
  5219. } else {
  5220. base.MergeFrom(other);
  5221. return this;
  5222. }
  5223. }
  5224. public override IBuilder<self::ForeignMessage> MergeFrom(self::ForeignMessage other) {
  5225. if (other == self::ForeignMessage.DefaultInstance) return this;
  5226. if (other.HasC) {
  5227. C = other.C;
  5228. }
  5229. this.MergeUnknownFields(other.UnknownFields);
  5230. return this;
  5231. }
  5232. public override IBuilder<self::ForeignMessage> MergeFrom(pb::CodedInputStream input) {
  5233. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5234. }
  5235. public override IBuilder<self::ForeignMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5236. pb::UnknownFieldSet.Builder unknownFields =
  5237. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5238. while (true) {
  5239. uint tag = input.ReadTag();
  5240. switch (tag) {
  5241. case 0:
  5242. this.UnknownFields = unknownFields.Build();
  5243. return this;
  5244. default: {
  5245. if (!ParseUnknownField(input, unknownFields,
  5246. extensionRegistry, tag)) {
  5247. this.UnknownFields = unknownFields.Build();
  5248. return this;
  5249. }
  5250. break;
  5251. }
  5252. case 8: {
  5253. C = input.ReadInt32();
  5254. break;
  5255. }
  5256. }
  5257. }
  5258. }
  5259. // optional int32 c = 1;
  5260. public bool HasC {
  5261. get { return result.HasC; }
  5262. }
  5263. public int C {
  5264. get { return result.C; }
  5265. set { SetC(value); }
  5266. }
  5267. public Builder SetC(int value) {
  5268. result.hasC = true;
  5269. result.c_ = value;
  5270. return this;
  5271. }
  5272. public Builder ClearC() {
  5273. result.hasC = false;
  5274. result.c_ = 0;
  5275. return this;
  5276. }
  5277. }
  5278. }
  5279. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5280. // Use TestAllExtensions.CreateBuilder() to construct.
  5281. private TestAllExtensions() {}
  5282. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5283. public static TestAllExtensions DefaultInstance {
  5284. get { return defaultInstance; }
  5285. }
  5286. public override TestAllExtensions DefaultInstanceForType {
  5287. get { return defaultInstance; }
  5288. }
  5289. public static pbd::MessageDescriptor Descriptor {
  5290. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5291. }
  5292. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5293. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5294. }
  5295. public override bool IsInitialized {
  5296. get {
  5297. if (!ExtensionsAreInitialized) return false;
  5298. return true;
  5299. }
  5300. }
  5301. public override void WriteTo(pb::CodedOutputStream output) {
  5302. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5303. extensionWriter.WriteUntil(536870912, output);
  5304. UnknownFields.WriteTo(output);
  5305. }
  5306. private int memoizedSerializedSize = -1;
  5307. public override int SerializedSize {
  5308. get {
  5309. int size = memoizedSerializedSize;
  5310. if (size != -1) return size;
  5311. size = 0;
  5312. size += ExtensionsSerializedSize;
  5313. size += UnknownFields.SerializedSize;
  5314. memoizedSerializedSize = size;
  5315. return size;
  5316. }
  5317. }
  5318. public static self::TestAllExtensions ParseFrom(pb::ByteString data) {
  5319. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5320. }
  5321. public static self::TestAllExtensions ParseFrom(pb::ByteString data,
  5322. pb::ExtensionRegistry extensionRegistry) {
  5323. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5324. .BuildParsed();
  5325. }
  5326. public static self::TestAllExtensions ParseFrom(byte[] data) {
  5327. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5328. }
  5329. public static self::TestAllExtensions parseFrom(byte[] data,
  5330. pb::ExtensionRegistry extensionRegistry) {
  5331. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5332. .BuildParsed();
  5333. }
  5334. public static self::TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5335. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5336. }
  5337. public static self::TestAllExtensions ParseFrom(
  5338. global::System.IO.Stream input,
  5339. pb::ExtensionRegistry extensionRegistry) {
  5340. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5341. .BuildParsed();
  5342. }
  5343. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5344. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5345. }
  5346. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5347. pb::ExtensionRegistry extensionRegistry) {
  5348. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5349. .BuildParsed();
  5350. }
  5351. public static Builder CreateBuilder() { return new Builder(); }
  5352. public override IBuilder<self::TestAllExtensions> CreateBuilderForType() { return new Builder(); }
  5353. public static Builder CreateBuilder(self::TestAllExtensions prototype) {
  5354. return (Builder) new Builder().MergeFrom(prototype);
  5355. }
  5356. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllExtensions, self::TestAllExtensions.Builder>.ExtendableBuilder {
  5357. // Construct using self::TestAllExtensions.CreateBuilder()
  5358. internal Builder() {}
  5359. self::TestAllExtensions result = new self::TestAllExtensions();
  5360. protected override self::TestAllExtensions MessageBeingBuilt {
  5361. get { return result; }
  5362. }
  5363. public override IBuilder<self::TestAllExtensions> Clear() {
  5364. result = new self::TestAllExtensions();
  5365. return this;
  5366. }
  5367. public override IBuilder<self::TestAllExtensions> Clone() {
  5368. return new Builder().MergeFrom(result);
  5369. }
  5370. public override pbd::MessageDescriptor DescriptorForType {
  5371. get { return self::TestAllExtensions.Descriptor; }
  5372. }
  5373. public override self::TestAllExtensions DefaultInstanceForType {
  5374. get { return self::TestAllExtensions.DefaultInstance; }
  5375. }
  5376. public override self::TestAllExtensions BuildPartial() {
  5377. self::TestAllExtensions returnMe = result;
  5378. result = null;
  5379. return returnMe;
  5380. }
  5381. public override IBuilder MergeFrom(pb::IMessage other) {
  5382. if (other is self::TestAllExtensions) {
  5383. return MergeFrom((self::TestAllExtensions) other);
  5384. } else {
  5385. base.MergeFrom(other);
  5386. return this;
  5387. }
  5388. }
  5389. public override IBuilder<self::TestAllExtensions> MergeFrom(self::TestAllExtensions other) {
  5390. if (other == self::TestAllExtensions.DefaultInstance) return this;
  5391. this.MergeUnknownFields(other.UnknownFields);
  5392. return this;
  5393. }
  5394. public override IBuilder<self::TestAllExtensions> MergeFrom(pb::CodedInputStream input) {
  5395. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5396. }
  5397. public override IBuilder<self::TestAllExtensions> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5398. pb::UnknownFieldSet.Builder unknownFields =
  5399. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5400. while (true) {
  5401. uint tag = input.ReadTag();
  5402. switch (tag) {
  5403. case 0:
  5404. this.UnknownFields = unknownFields.Build();
  5405. return this;
  5406. default: {
  5407. if (!ParseUnknownField(input, unknownFields,
  5408. extensionRegistry, tag)) {
  5409. this.UnknownFields = unknownFields.Build();
  5410. return this;
  5411. }
  5412. break;
  5413. }
  5414. }
  5415. }
  5416. }
  5417. }
  5418. }
  5419. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5420. // Use OptionalGroup_extension.CreateBuilder() to construct.
  5421. private OptionalGroup_extension() {}
  5422. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5423. public static OptionalGroup_extension DefaultInstance {
  5424. get { return defaultInstance; }
  5425. }
  5426. public override OptionalGroup_extension DefaultInstanceForType {
  5427. get { return defaultInstance; }
  5428. }
  5429. public static pbd::MessageDescriptor Descriptor {
  5430. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5431. }
  5432. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5433. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5434. }
  5435. // optional int32 a = 17;
  5436. private bool hasA;
  5437. private int a_ = 0;
  5438. public bool HasA {
  5439. get { return hasA; }
  5440. }
  5441. public int A {
  5442. get { return a_; }
  5443. }
  5444. public override bool IsInitialized {
  5445. get {
  5446. return true;
  5447. }
  5448. }
  5449. public override void WriteTo(pb::CodedOutputStream output) {
  5450. if (HasA) {
  5451. output.WriteInt32(17, A);
  5452. }
  5453. UnknownFields.WriteTo(output);
  5454. }
  5455. private int memoizedSerializedSize = -1;
  5456. public override int SerializedSize {
  5457. get {
  5458. int size = memoizedSerializedSize;
  5459. if (size != -1) return size;
  5460. size = 0;
  5461. if (HasA) {
  5462. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5463. }
  5464. size += UnknownFields.SerializedSize;
  5465. memoizedSerializedSize = size;
  5466. return size;
  5467. }
  5468. }
  5469. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5470. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5471. }
  5472. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data,
  5473. pb::ExtensionRegistry extensionRegistry) {
  5474. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5475. .BuildParsed();
  5476. }
  5477. public static self::OptionalGroup_extension ParseFrom(byte[] data) {
  5478. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5479. }
  5480. public static self::OptionalGroup_extension parseFrom(byte[] data,
  5481. pb::ExtensionRegistry extensionRegistry) {
  5482. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5483. .BuildParsed();
  5484. }
  5485. public static self::OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5486. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5487. }
  5488. public static self::OptionalGroup_extension ParseFrom(
  5489. global::System.IO.Stream input,
  5490. pb::ExtensionRegistry extensionRegistry) {
  5491. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5492. .BuildParsed();
  5493. }
  5494. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5495. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5496. }
  5497. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5498. pb::ExtensionRegistry extensionRegistry) {
  5499. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5500. .BuildParsed();
  5501. }
  5502. public static Builder CreateBuilder() { return new Builder(); }
  5503. public override IBuilder<self::OptionalGroup_extension> CreateBuilderForType() { return new Builder(); }
  5504. public static Builder CreateBuilder(self::OptionalGroup_extension prototype) {
  5505. return (Builder) new Builder().MergeFrom(prototype);
  5506. }
  5507. public sealed partial class Builder : pb::GeneratedBuilder<self::OptionalGroup_extension, Builder> {
  5508. // Construct using self::OptionalGroup_extension.CreateBuilder()
  5509. internal Builder() {}
  5510. self::OptionalGroup_extension result = new self::OptionalGroup_extension();
  5511. protected override self::OptionalGroup_extension MessageBeingBuilt {
  5512. get { return result; }
  5513. }
  5514. public override IBuilder<self::OptionalGroup_extension> Clear() {
  5515. result = new self::OptionalGroup_extension();
  5516. return this;
  5517. }
  5518. public override IBuilder<self::OptionalGroup_extension> Clone() {
  5519. return new Builder().MergeFrom(result);
  5520. }
  5521. public override pbd::MessageDescriptor DescriptorForType {
  5522. get { return self::OptionalGroup_extension.Descriptor; }
  5523. }
  5524. public override self::OptionalGroup_extension DefaultInstanceForType {
  5525. get { return self::OptionalGroup_extension.DefaultInstance; }
  5526. }
  5527. public override self::OptionalGroup_extension BuildPartial() {
  5528. self::OptionalGroup_extension returnMe = result;
  5529. result = null;
  5530. return returnMe;
  5531. }
  5532. public override IBuilder MergeFrom(pb::IMessage other) {
  5533. if (other is self::OptionalGroup_extension) {
  5534. return MergeFrom((self::OptionalGroup_extension) other);
  5535. } else {
  5536. base.MergeFrom(other);
  5537. return this;
  5538. }
  5539. }
  5540. public override IBuilder<self::OptionalGroup_extension> MergeFrom(self::OptionalGroup_extension other) {
  5541. if (other == self::OptionalGroup_extension.DefaultInstance) return this;
  5542. if (other.HasA) {
  5543. A = other.A;
  5544. }
  5545. this.MergeUnknownFields(other.UnknownFields);
  5546. return this;
  5547. }
  5548. public override IBuilder<self::OptionalGroup_extension> MergeFrom(pb::CodedInputStream input) {
  5549. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5550. }
  5551. public override IBuilder<self::OptionalGroup_extension> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5552. pb::UnknownFieldSet.Builder unknownFields =
  5553. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5554. while (true) {
  5555. uint tag = input.ReadTag();
  5556. switch (tag) {
  5557. case 0:
  5558. this.UnknownFields = unknownFields.Build();
  5559. return this;
  5560. default: {
  5561. if (!ParseUnknownField(input, unknownFields,
  5562. extensionRegistry, tag)) {
  5563. this.UnknownFields = unknownFields.Build();
  5564. return this;
  5565. }
  5566. break;
  5567. }
  5568. case 136: {
  5569. A = input.ReadInt32();
  5570. break;
  5571. }
  5572. }
  5573. }
  5574. }
  5575. // optional int32 a = 17;
  5576. public bool HasA {
  5577. get { return result.HasA; }
  5578. }
  5579. public int A {
  5580. get { return result.A; }
  5581. set { SetA(value); }
  5582. }
  5583. public Builder SetA(int value) {
  5584. result.hasA = true;
  5585. result.a_ = value;
  5586. return this;
  5587. }
  5588. public Builder ClearA() {
  5589. result.hasA = false;
  5590. result.a_ = 0;
  5591. return this;
  5592. }
  5593. }
  5594. }
  5595. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5596. // Use RepeatedGroup_extension.CreateBuilder() to construct.
  5597. private RepeatedGroup_extension() {}
  5598. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5599. public static RepeatedGroup_extension DefaultInstance {
  5600. get { return defaultInstance; }
  5601. }
  5602. public override RepeatedGroup_extension DefaultInstanceForType {
  5603. get { return defaultInstance; }
  5604. }
  5605. public static pbd::MessageDescriptor Descriptor {
  5606. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5607. }
  5608. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5609. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5610. }
  5611. // optional int32 a = 47;
  5612. private bool hasA;
  5613. private int a_ = 0;
  5614. public bool HasA {
  5615. get { return hasA; }
  5616. }
  5617. public int A {
  5618. get { return a_; }
  5619. }
  5620. public override bool IsInitialized {
  5621. get {
  5622. return true;
  5623. }
  5624. }
  5625. public override void WriteTo(pb::CodedOutputStream output) {
  5626. if (HasA) {
  5627. output.WriteInt32(47, A);
  5628. }
  5629. UnknownFields.WriteTo(output);
  5630. }
  5631. private int memoizedSerializedSize = -1;
  5632. public override int SerializedSize {
  5633. get {
  5634. int size = memoizedSerializedSize;
  5635. if (size != -1) return size;
  5636. size = 0;
  5637. if (HasA) {
  5638. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5639. }
  5640. size += UnknownFields.SerializedSize;
  5641. memoizedSerializedSize = size;
  5642. return size;
  5643. }
  5644. }
  5645. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5646. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5647. }
  5648. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5649. pb::ExtensionRegistry extensionRegistry) {
  5650. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5651. .BuildParsed();
  5652. }
  5653. public static self::RepeatedGroup_extension ParseFrom(byte[] data) {
  5654. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5655. }
  5656. public static self::RepeatedGroup_extension parseFrom(byte[] data,
  5657. pb::ExtensionRegistry extensionRegistry) {
  5658. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5659. .BuildParsed();
  5660. }
  5661. public static self::RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5662. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5663. }
  5664. public static self::RepeatedGroup_extension ParseFrom(
  5665. global::System.IO.Stream input,
  5666. pb::ExtensionRegistry extensionRegistry) {
  5667. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5668. .BuildParsed();
  5669. }
  5670. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5671. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5672. }
  5673. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5674. pb::ExtensionRegistry extensionRegistry) {
  5675. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5676. .BuildParsed();
  5677. }
  5678. public static Builder CreateBuilder() { return new Builder(); }
  5679. public override IBuilder<self::RepeatedGroup_extension> CreateBuilderForType() { return new Builder(); }
  5680. public static Builder CreateBuilder(self::RepeatedGroup_extension prototype) {
  5681. return (Builder) new Builder().MergeFrom(prototype);
  5682. }
  5683. public sealed partial class Builder : pb::GeneratedBuilder<self::RepeatedGroup_extension, Builder> {
  5684. // Construct using self::RepeatedGroup_extension.CreateBuilder()
  5685. internal Builder() {}
  5686. self::RepeatedGroup_extension result = new self::RepeatedGroup_extension();
  5687. protected override self::RepeatedGroup_extension MessageBeingBuilt {
  5688. get { return result; }
  5689. }
  5690. public override IBuilder<self::RepeatedGroup_extension> Clear() {
  5691. result = new self::RepeatedGroup_extension();
  5692. return this;
  5693. }
  5694. public override IBuilder<self::RepeatedGroup_extension> Clone() {
  5695. return new Builder().MergeFrom(result);
  5696. }
  5697. public override pbd::MessageDescriptor DescriptorForType {
  5698. get { return self::RepeatedGroup_extension.Descriptor; }
  5699. }
  5700. public override self::RepeatedGroup_extension DefaultInstanceForType {
  5701. get { return self::RepeatedGroup_extension.DefaultInstance; }
  5702. }
  5703. public override self::RepeatedGroup_extension BuildPartial() {
  5704. self::RepeatedGroup_extension returnMe = result;
  5705. result = null;
  5706. return returnMe;
  5707. }
  5708. public override IBuilder MergeFrom(pb::IMessage other) {
  5709. if (other is self::RepeatedGroup_extension) {
  5710. return MergeFrom((self::RepeatedGroup_extension) other);
  5711. } else {
  5712. base.MergeFrom(other);
  5713. return this;
  5714. }
  5715. }
  5716. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(self::RepeatedGroup_extension other) {
  5717. if (other == self::RepeatedGroup_extension.DefaultInstance) return this;
  5718. if (other.HasA) {
  5719. A = other.A;
  5720. }
  5721. this.MergeUnknownFields(other.UnknownFields);
  5722. return this;
  5723. }
  5724. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(pb::CodedInputStream input) {
  5725. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5726. }
  5727. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5728. pb::UnknownFieldSet.Builder unknownFields =
  5729. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5730. while (true) {
  5731. uint tag = input.ReadTag();
  5732. switch (tag) {
  5733. case 0:
  5734. this.UnknownFields = unknownFields.Build();
  5735. return this;
  5736. default: {
  5737. if (!ParseUnknownField(input, unknownFields,
  5738. extensionRegistry, tag)) {
  5739. this.UnknownFields = unknownFields.Build();
  5740. return this;
  5741. }
  5742. break;
  5743. }
  5744. case 376: {
  5745. A = input.ReadInt32();
  5746. break;
  5747. }
  5748. }
  5749. }
  5750. }
  5751. // optional int32 a = 47;
  5752. public bool HasA {
  5753. get { return result.HasA; }
  5754. }
  5755. public int A {
  5756. get { return result.A; }
  5757. set { SetA(value); }
  5758. }
  5759. public Builder SetA(int value) {
  5760. result.hasA = true;
  5761. result.a_ = value;
  5762. return this;
  5763. }
  5764. public Builder ClearA() {
  5765. result.hasA = false;
  5766. result.a_ = 0;
  5767. return this;
  5768. }
  5769. }
  5770. }
  5771. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5772. // Use TestRequired.CreateBuilder() to construct.
  5773. private TestRequired() {}
  5774. private static readonly TestRequired defaultInstance = new TestRequired();
  5775. public static TestRequired DefaultInstance {
  5776. get { return defaultInstance; }
  5777. }
  5778. public override TestRequired DefaultInstanceForType {
  5779. get { return defaultInstance; }
  5780. }
  5781. public static pbd::MessageDescriptor Descriptor {
  5782. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5783. }
  5784. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5785. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5786. }
  5787. #region Nested types
  5788. public static class Types {
  5789. public static readonly pb::GeneratedExtension<self::TestAllExtensions, self::TestRequired> Single =
  5790. pb::GeneratedExtension.CreateExtension<self::TestAllExtensions, self::TestRequired>(Descriptor.Extensions[0]);
  5791. public static readonly
  5792. pb::GeneratedExtension<self::TestAllExtensions, scg::IList<self::TestRequired>> name =
  5793. pb::GeneratedExtension.CreateRepeatedExtension<self::TestAllExtensions, self::TestRequired>(Descriptor.Extensions[1]);
  5794. }
  5795. #endregion
  5796. // required int32 a = 1;
  5797. private bool hasA;
  5798. private int a_ = 0;
  5799. public bool HasA {
  5800. get { return hasA; }
  5801. }
  5802. public int A {
  5803. get { return a_; }
  5804. }
  5805. // optional int32 dummy2 = 2;
  5806. private bool hasDummy2;
  5807. private int dummy2_ = 0;
  5808. public bool HasDummy2 {
  5809. get { return hasDummy2; }
  5810. }
  5811. public int Dummy2 {
  5812. get { return dummy2_; }
  5813. }
  5814. // required int32 b = 3;
  5815. private bool hasB;
  5816. private int b_ = 0;
  5817. public bool HasB {
  5818. get { return hasB; }
  5819. }
  5820. public int B {
  5821. get { return b_; }
  5822. }
  5823. // optional int32 dummy4 = 4;
  5824. private bool hasDummy4;
  5825. private int dummy4_ = 0;
  5826. public bool HasDummy4 {
  5827. get { return hasDummy4; }
  5828. }
  5829. public int Dummy4 {
  5830. get { return dummy4_; }
  5831. }
  5832. // optional int32 dummy5 = 5;
  5833. private bool hasDummy5;
  5834. private int dummy5_ = 0;
  5835. public bool HasDummy5 {
  5836. get { return hasDummy5; }
  5837. }
  5838. public int Dummy5 {
  5839. get { return dummy5_; }
  5840. }
  5841. // optional int32 dummy6 = 6;
  5842. private bool hasDummy6;
  5843. private int dummy6_ = 0;
  5844. public bool HasDummy6 {
  5845. get { return hasDummy6; }
  5846. }
  5847. public int Dummy6 {
  5848. get { return dummy6_; }
  5849. }
  5850. // optional int32 dummy7 = 7;
  5851. private bool hasDummy7;
  5852. private int dummy7_ = 0;
  5853. public bool HasDummy7 {
  5854. get { return hasDummy7; }
  5855. }
  5856. public int Dummy7 {
  5857. get { return dummy7_; }
  5858. }
  5859. // optional int32 dummy8 = 8;
  5860. private bool hasDummy8;
  5861. private int dummy8_ = 0;
  5862. public bool HasDummy8 {
  5863. get { return hasDummy8; }
  5864. }
  5865. public int Dummy8 {
  5866. get { return dummy8_; }
  5867. }
  5868. // optional int32 dummy9 = 9;
  5869. private bool hasDummy9;
  5870. private int dummy9_ = 0;
  5871. public bool HasDummy9 {
  5872. get { return hasDummy9; }
  5873. }
  5874. public int Dummy9 {
  5875. get { return dummy9_; }
  5876. }
  5877. // optional int32 dummy10 = 10;
  5878. private bool hasDummy10;
  5879. private int dummy10_ = 0;
  5880. public bool HasDummy10 {
  5881. get { return hasDummy10; }
  5882. }
  5883. public int Dummy10 {
  5884. get { return dummy10_; }
  5885. }
  5886. // optional int32 dummy11 = 11;
  5887. private bool hasDummy11;
  5888. private int dummy11_ = 0;
  5889. public bool HasDummy11 {
  5890. get { return hasDummy11; }
  5891. }
  5892. public int Dummy11 {
  5893. get { return dummy11_; }
  5894. }
  5895. // optional int32 dummy12 = 12;
  5896. private bool hasDummy12;
  5897. private int dummy12_ = 0;
  5898. public bool HasDummy12 {
  5899. get { return hasDummy12; }
  5900. }
  5901. public int Dummy12 {
  5902. get { return dummy12_; }
  5903. }
  5904. // optional int32 dummy13 = 13;
  5905. private bool hasDummy13;
  5906. private int dummy13_ = 0;
  5907. public bool HasDummy13 {
  5908. get { return hasDummy13; }
  5909. }
  5910. public int Dummy13 {
  5911. get { return dummy13_; }
  5912. }
  5913. // optional int32 dummy14 = 14;
  5914. private bool hasDummy14;
  5915. private int dummy14_ = 0;
  5916. public bool HasDummy14 {
  5917. get { return hasDummy14; }
  5918. }
  5919. public int Dummy14 {
  5920. get { return dummy14_; }
  5921. }
  5922. // optional int32 dummy15 = 15;
  5923. private bool hasDummy15;
  5924. private int dummy15_ = 0;
  5925. public bool HasDummy15 {
  5926. get { return hasDummy15; }
  5927. }
  5928. public int Dummy15 {
  5929. get { return dummy15_; }
  5930. }
  5931. // optional int32 dummy16 = 16;
  5932. private bool hasDummy16;
  5933. private int dummy16_ = 0;
  5934. public bool HasDummy16 {
  5935. get { return hasDummy16; }
  5936. }
  5937. public int Dummy16 {
  5938. get { return dummy16_; }
  5939. }
  5940. // optional int32 dummy17 = 17;
  5941. private bool hasDummy17;
  5942. private int dummy17_ = 0;
  5943. public bool HasDummy17 {
  5944. get { return hasDummy17; }
  5945. }
  5946. public int Dummy17 {
  5947. get { return dummy17_; }
  5948. }
  5949. // optional int32 dummy18 = 18;
  5950. private bool hasDummy18;
  5951. private int dummy18_ = 0;
  5952. public bool HasDummy18 {
  5953. get { return hasDummy18; }
  5954. }
  5955. public int Dummy18 {
  5956. get { return dummy18_; }
  5957. }
  5958. // optional int32 dummy19 = 19;
  5959. private bool hasDummy19;
  5960. private int dummy19_ = 0;
  5961. public bool HasDummy19 {
  5962. get { return hasDummy19; }
  5963. }
  5964. public int Dummy19 {
  5965. get { return dummy19_; }
  5966. }
  5967. // optional int32 dummy20 = 20;
  5968. private bool hasDummy20;
  5969. private int dummy20_ = 0;
  5970. public bool HasDummy20 {
  5971. get { return hasDummy20; }
  5972. }
  5973. public int Dummy20 {
  5974. get { return dummy20_; }
  5975. }
  5976. // optional int32 dummy21 = 21;
  5977. private bool hasDummy21;
  5978. private int dummy21_ = 0;
  5979. public bool HasDummy21 {
  5980. get { return hasDummy21; }
  5981. }
  5982. public int Dummy21 {
  5983. get { return dummy21_; }
  5984. }
  5985. // optional int32 dummy22 = 22;
  5986. private bool hasDummy22;
  5987. private int dummy22_ = 0;
  5988. public bool HasDummy22 {
  5989. get { return hasDummy22; }
  5990. }
  5991. public int Dummy22 {
  5992. get { return dummy22_; }
  5993. }
  5994. // optional int32 dummy23 = 23;
  5995. private bool hasDummy23;
  5996. private int dummy23_ = 0;
  5997. public bool HasDummy23 {
  5998. get { return hasDummy23; }
  5999. }
  6000. public int Dummy23 {
  6001. get { return dummy23_; }
  6002. }
  6003. // optional int32 dummy24 = 24;
  6004. private bool hasDummy24;
  6005. private int dummy24_ = 0;
  6006. public bool HasDummy24 {
  6007. get { return hasDummy24; }
  6008. }
  6009. public int Dummy24 {
  6010. get { return dummy24_; }
  6011. }
  6012. // optional int32 dummy25 = 25;
  6013. private bool hasDummy25;
  6014. private int dummy25_ = 0;
  6015. public bool HasDummy25 {
  6016. get { return hasDummy25; }
  6017. }
  6018. public int Dummy25 {
  6019. get { return dummy25_; }
  6020. }
  6021. // optional int32 dummy26 = 26;
  6022. private bool hasDummy26;
  6023. private int dummy26_ = 0;
  6024. public bool HasDummy26 {
  6025. get { return hasDummy26; }
  6026. }
  6027. public int Dummy26 {
  6028. get { return dummy26_; }
  6029. }
  6030. // optional int32 dummy27 = 27;
  6031. private bool hasDummy27;
  6032. private int dummy27_ = 0;
  6033. public bool HasDummy27 {
  6034. get { return hasDummy27; }
  6035. }
  6036. public int Dummy27 {
  6037. get { return dummy27_; }
  6038. }
  6039. // optional int32 dummy28 = 28;
  6040. private bool hasDummy28;
  6041. private int dummy28_ = 0;
  6042. public bool HasDummy28 {
  6043. get { return hasDummy28; }
  6044. }
  6045. public int Dummy28 {
  6046. get { return dummy28_; }
  6047. }
  6048. // optional int32 dummy29 = 29;
  6049. private bool hasDummy29;
  6050. private int dummy29_ = 0;
  6051. public bool HasDummy29 {
  6052. get { return hasDummy29; }
  6053. }
  6054. public int Dummy29 {
  6055. get { return dummy29_; }
  6056. }
  6057. // optional int32 dummy30 = 30;
  6058. private bool hasDummy30;
  6059. private int dummy30_ = 0;
  6060. public bool HasDummy30 {
  6061. get { return hasDummy30; }
  6062. }
  6063. public int Dummy30 {
  6064. get { return dummy30_; }
  6065. }
  6066. // optional int32 dummy31 = 31;
  6067. private bool hasDummy31;
  6068. private int dummy31_ = 0;
  6069. public bool HasDummy31 {
  6070. get { return hasDummy31; }
  6071. }
  6072. public int Dummy31 {
  6073. get { return dummy31_; }
  6074. }
  6075. // optional int32 dummy32 = 32;
  6076. private bool hasDummy32;
  6077. private int dummy32_ = 0;
  6078. public bool HasDummy32 {
  6079. get { return hasDummy32; }
  6080. }
  6081. public int Dummy32 {
  6082. get { return dummy32_; }
  6083. }
  6084. // required int32 c = 33;
  6085. private bool hasC;
  6086. private int c_ = 0;
  6087. public bool HasC {
  6088. get { return hasC; }
  6089. }
  6090. public int C {
  6091. get { return c_; }
  6092. }
  6093. public override bool IsInitialized {
  6094. get {
  6095. if (!hasA) return false;
  6096. if (!hasB) return false;
  6097. if (!hasC) return false;
  6098. return true;
  6099. }
  6100. }
  6101. public override void WriteTo(pb::CodedOutputStream output) {
  6102. if (HasA) {
  6103. output.WriteInt32(1, A);
  6104. }
  6105. if (HasDummy2) {
  6106. output.WriteInt32(2, Dummy2);
  6107. }
  6108. if (HasB) {
  6109. output.WriteInt32(3, B);
  6110. }
  6111. if (HasDummy4) {
  6112. output.WriteInt32(4, Dummy4);
  6113. }
  6114. if (HasDummy5) {
  6115. output.WriteInt32(5, Dummy5);
  6116. }
  6117. if (HasDummy6) {
  6118. output.WriteInt32(6, Dummy6);
  6119. }
  6120. if (HasDummy7) {
  6121. output.WriteInt32(7, Dummy7);
  6122. }
  6123. if (HasDummy8) {
  6124. output.WriteInt32(8, Dummy8);
  6125. }
  6126. if (HasDummy9) {
  6127. output.WriteInt32(9, Dummy9);
  6128. }
  6129. if (HasDummy10) {
  6130. output.WriteInt32(10, Dummy10);
  6131. }
  6132. if (HasDummy11) {
  6133. output.WriteInt32(11, Dummy11);
  6134. }
  6135. if (HasDummy12) {
  6136. output.WriteInt32(12, Dummy12);
  6137. }
  6138. if (HasDummy13) {
  6139. output.WriteInt32(13, Dummy13);
  6140. }
  6141. if (HasDummy14) {
  6142. output.WriteInt32(14, Dummy14);
  6143. }
  6144. if (HasDummy15) {
  6145. output.WriteInt32(15, Dummy15);
  6146. }
  6147. if (HasDummy16) {
  6148. output.WriteInt32(16, Dummy16);
  6149. }
  6150. if (HasDummy17) {
  6151. output.WriteInt32(17, Dummy17);
  6152. }
  6153. if (HasDummy18) {
  6154. output.WriteInt32(18, Dummy18);
  6155. }
  6156. if (HasDummy19) {
  6157. output.WriteInt32(19, Dummy19);
  6158. }
  6159. if (HasDummy20) {
  6160. output.WriteInt32(20, Dummy20);
  6161. }
  6162. if (HasDummy21) {
  6163. output.WriteInt32(21, Dummy21);
  6164. }
  6165. if (HasDummy22) {
  6166. output.WriteInt32(22, Dummy22);
  6167. }
  6168. if (HasDummy23) {
  6169. output.WriteInt32(23, Dummy23);
  6170. }
  6171. if (HasDummy24) {
  6172. output.WriteInt32(24, Dummy24);
  6173. }
  6174. if (HasDummy25) {
  6175. output.WriteInt32(25, Dummy25);
  6176. }
  6177. if (HasDummy26) {
  6178. output.WriteInt32(26, Dummy26);
  6179. }
  6180. if (HasDummy27) {
  6181. output.WriteInt32(27, Dummy27);
  6182. }
  6183. if (HasDummy28) {
  6184. output.WriteInt32(28, Dummy28);
  6185. }
  6186. if (HasDummy29) {
  6187. output.WriteInt32(29, Dummy29);
  6188. }
  6189. if (HasDummy30) {
  6190. output.WriteInt32(30, Dummy30);
  6191. }
  6192. if (HasDummy31) {
  6193. output.WriteInt32(31, Dummy31);
  6194. }
  6195. if (HasDummy32) {
  6196. output.WriteInt32(32, Dummy32);
  6197. }
  6198. if (HasC) {
  6199. output.WriteInt32(33, C);
  6200. }
  6201. UnknownFields.WriteTo(output);
  6202. }
  6203. private int memoizedSerializedSize = -1;
  6204. public override int SerializedSize {
  6205. get {
  6206. int size = memoizedSerializedSize;
  6207. if (size != -1) return size;
  6208. size = 0;
  6209. if (HasA) {
  6210. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6211. }
  6212. if (HasDummy2) {
  6213. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6214. }
  6215. if (HasB) {
  6216. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6217. }
  6218. if (HasDummy4) {
  6219. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6220. }
  6221. if (HasDummy5) {
  6222. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6223. }
  6224. if (HasDummy6) {
  6225. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6226. }
  6227. if (HasDummy7) {
  6228. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6229. }
  6230. if (HasDummy8) {
  6231. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6232. }
  6233. if (HasDummy9) {
  6234. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6235. }
  6236. if (HasDummy10) {
  6237. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6238. }
  6239. if (HasDummy11) {
  6240. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6241. }
  6242. if (HasDummy12) {
  6243. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6244. }
  6245. if (HasDummy13) {
  6246. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6247. }
  6248. if (HasDummy14) {
  6249. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6250. }
  6251. if (HasDummy15) {
  6252. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6253. }
  6254. if (HasDummy16) {
  6255. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6256. }
  6257. if (HasDummy17) {
  6258. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6259. }
  6260. if (HasDummy18) {
  6261. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6262. }
  6263. if (HasDummy19) {
  6264. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6265. }
  6266. if (HasDummy20) {
  6267. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6268. }
  6269. if (HasDummy21) {
  6270. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6271. }
  6272. if (HasDummy22) {
  6273. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6274. }
  6275. if (HasDummy23) {
  6276. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6277. }
  6278. if (HasDummy24) {
  6279. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6280. }
  6281. if (HasDummy25) {
  6282. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6283. }
  6284. if (HasDummy26) {
  6285. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6286. }
  6287. if (HasDummy27) {
  6288. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6289. }
  6290. if (HasDummy28) {
  6291. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6292. }
  6293. if (HasDummy29) {
  6294. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6295. }
  6296. if (HasDummy30) {
  6297. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6298. }
  6299. if (HasDummy31) {
  6300. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6301. }
  6302. if (HasDummy32) {
  6303. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6304. }
  6305. if (HasC) {
  6306. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6307. }
  6308. size += UnknownFields.SerializedSize;
  6309. memoizedSerializedSize = size;
  6310. return size;
  6311. }
  6312. }
  6313. public static self::TestRequired ParseFrom(pb::ByteString data) {
  6314. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6315. }
  6316. public static self::TestRequired ParseFrom(pb::ByteString data,
  6317. pb::ExtensionRegistry extensionRegistry) {
  6318. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6319. .BuildParsed();
  6320. }
  6321. public static self::TestRequired ParseFrom(byte[] data) {
  6322. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6323. }
  6324. public static self::TestRequired parseFrom(byte[] data,
  6325. pb::ExtensionRegistry extensionRegistry) {
  6326. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6327. .BuildParsed();
  6328. }
  6329. public static self::TestRequired ParseFrom(global::System.IO.Stream input) {
  6330. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6331. }
  6332. public static self::TestRequired ParseFrom(
  6333. global::System.IO.Stream input,
  6334. pb::ExtensionRegistry extensionRegistry) {
  6335. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6336. .BuildParsed();
  6337. }
  6338. public static self::TestRequired ParseFrom(pb::CodedInputStream input) {
  6339. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6340. }
  6341. public static self::TestRequired ParseFrom(pb::CodedInputStream input,
  6342. pb::ExtensionRegistry extensionRegistry) {
  6343. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6344. .BuildParsed();
  6345. }
  6346. public static Builder CreateBuilder() { return new Builder(); }
  6347. public override IBuilder<self::TestRequired> CreateBuilderForType() { return new Builder(); }
  6348. public static Builder CreateBuilder(self::TestRequired prototype) {
  6349. return (Builder) new Builder().MergeFrom(prototype);
  6350. }
  6351. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequired, Builder> {
  6352. // Construct using self::TestRequired.CreateBuilder()
  6353. internal Builder() {}
  6354. self::TestRequired result = new self::TestRequired();
  6355. protected override self::TestRequired MessageBeingBuilt {
  6356. get { return result; }
  6357. }
  6358. public override IBuilder<self::TestRequired> Clear() {
  6359. result = new self::TestRequired();
  6360. return this;
  6361. }
  6362. public override IBuilder<self::TestRequired> Clone() {
  6363. return new Builder().MergeFrom(result);
  6364. }
  6365. public override pbd::MessageDescriptor DescriptorForType {
  6366. get { return self::TestRequired.Descriptor; }
  6367. }
  6368. public override self::TestRequired DefaultInstanceForType {
  6369. get { return self::TestRequired.DefaultInstance; }
  6370. }
  6371. public override self::TestRequired BuildPartial() {
  6372. self::TestRequired returnMe = result;
  6373. result = null;
  6374. return returnMe;
  6375. }
  6376. public override IBuilder MergeFrom(pb::IMessage other) {
  6377. if (other is self::TestRequired) {
  6378. return MergeFrom((self::TestRequired) other);
  6379. } else {
  6380. base.MergeFrom(other);
  6381. return this;
  6382. }
  6383. }
  6384. public override IBuilder<self::TestRequired> MergeFrom(self::TestRequired other) {
  6385. if (other == self::TestRequired.DefaultInstance) return this;
  6386. if (other.HasA) {
  6387. A = other.A;
  6388. }
  6389. if (other.HasDummy2) {
  6390. Dummy2 = other.Dummy2;
  6391. }
  6392. if (other.HasB) {
  6393. B = other.B;
  6394. }
  6395. if (other.HasDummy4) {
  6396. Dummy4 = other.Dummy4;
  6397. }
  6398. if (other.HasDummy5) {
  6399. Dummy5 = other.Dummy5;
  6400. }
  6401. if (other.HasDummy6) {
  6402. Dummy6 = other.Dummy6;
  6403. }
  6404. if (other.HasDummy7) {
  6405. Dummy7 = other.Dummy7;
  6406. }
  6407. if (other.HasDummy8) {
  6408. Dummy8 = other.Dummy8;
  6409. }
  6410. if (other.HasDummy9) {
  6411. Dummy9 = other.Dummy9;
  6412. }
  6413. if (other.HasDummy10) {
  6414. Dummy10 = other.Dummy10;
  6415. }
  6416. if (other.HasDummy11) {
  6417. Dummy11 = other.Dummy11;
  6418. }
  6419. if (other.HasDummy12) {
  6420. Dummy12 = other.Dummy12;
  6421. }
  6422. if (other.HasDummy13) {
  6423. Dummy13 = other.Dummy13;
  6424. }
  6425. if (other.HasDummy14) {
  6426. Dummy14 = other.Dummy14;
  6427. }
  6428. if (other.HasDummy15) {
  6429. Dummy15 = other.Dummy15;
  6430. }
  6431. if (other.HasDummy16) {
  6432. Dummy16 = other.Dummy16;
  6433. }
  6434. if (other.HasDummy17) {
  6435. Dummy17 = other.Dummy17;
  6436. }
  6437. if (other.HasDummy18) {
  6438. Dummy18 = other.Dummy18;
  6439. }
  6440. if (other.HasDummy19) {
  6441. Dummy19 = other.Dummy19;
  6442. }
  6443. if (other.HasDummy20) {
  6444. Dummy20 = other.Dummy20;
  6445. }
  6446. if (other.HasDummy21) {
  6447. Dummy21 = other.Dummy21;
  6448. }
  6449. if (other.HasDummy22) {
  6450. Dummy22 = other.Dummy22;
  6451. }
  6452. if (other.HasDummy23) {
  6453. Dummy23 = other.Dummy23;
  6454. }
  6455. if (other.HasDummy24) {
  6456. Dummy24 = other.Dummy24;
  6457. }
  6458. if (other.HasDummy25) {
  6459. Dummy25 = other.Dummy25;
  6460. }
  6461. if (other.HasDummy26) {
  6462. Dummy26 = other.Dummy26;
  6463. }
  6464. if (other.HasDummy27) {
  6465. Dummy27 = other.Dummy27;
  6466. }
  6467. if (other.HasDummy28) {
  6468. Dummy28 = other.Dummy28;
  6469. }
  6470. if (other.HasDummy29) {
  6471. Dummy29 = other.Dummy29;
  6472. }
  6473. if (other.HasDummy30) {
  6474. Dummy30 = other.Dummy30;
  6475. }
  6476. if (other.HasDummy31) {
  6477. Dummy31 = other.Dummy31;
  6478. }
  6479. if (other.HasDummy32) {
  6480. Dummy32 = other.Dummy32;
  6481. }
  6482. if (other.HasC) {
  6483. C = other.C;
  6484. }
  6485. this.MergeUnknownFields(other.UnknownFields);
  6486. return this;
  6487. }
  6488. public override IBuilder<self::TestRequired> MergeFrom(pb::CodedInputStream input) {
  6489. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6490. }
  6491. public override IBuilder<self::TestRequired> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6492. pb::UnknownFieldSet.Builder unknownFields =
  6493. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6494. while (true) {
  6495. uint tag = input.ReadTag();
  6496. switch (tag) {
  6497. case 0:
  6498. this.UnknownFields = unknownFields.Build();
  6499. return this;
  6500. default: {
  6501. if (!ParseUnknownField(input, unknownFields,
  6502. extensionRegistry, tag)) {
  6503. this.UnknownFields = unknownFields.Build();
  6504. return this;
  6505. }
  6506. break;
  6507. }
  6508. case 8: {
  6509. A = input.ReadInt32();
  6510. break;
  6511. }
  6512. case 16: {
  6513. Dummy2 = input.ReadInt32();
  6514. break;
  6515. }
  6516. case 24: {
  6517. B = input.ReadInt32();
  6518. break;
  6519. }
  6520. case 32: {
  6521. Dummy4 = input.ReadInt32();
  6522. break;
  6523. }
  6524. case 40: {
  6525. Dummy5 = input.ReadInt32();
  6526. break;
  6527. }
  6528. case 48: {
  6529. Dummy6 = input.ReadInt32();
  6530. break;
  6531. }
  6532. case 56: {
  6533. Dummy7 = input.ReadInt32();
  6534. break;
  6535. }
  6536. case 64: {
  6537. Dummy8 = input.ReadInt32();
  6538. break;
  6539. }
  6540. case 72: {
  6541. Dummy9 = input.ReadInt32();
  6542. break;
  6543. }
  6544. case 80: {
  6545. Dummy10 = input.ReadInt32();
  6546. break;
  6547. }
  6548. case 88: {
  6549. Dummy11 = input.ReadInt32();
  6550. break;
  6551. }
  6552. case 96: {
  6553. Dummy12 = input.ReadInt32();
  6554. break;
  6555. }
  6556. case 104: {
  6557. Dummy13 = input.ReadInt32();
  6558. break;
  6559. }
  6560. case 112: {
  6561. Dummy14 = input.ReadInt32();
  6562. break;
  6563. }
  6564. case 120: {
  6565. Dummy15 = input.ReadInt32();
  6566. break;
  6567. }
  6568. case 128: {
  6569. Dummy16 = input.ReadInt32();
  6570. break;
  6571. }
  6572. case 136: {
  6573. Dummy17 = input.ReadInt32();
  6574. break;
  6575. }
  6576. case 144: {
  6577. Dummy18 = input.ReadInt32();
  6578. break;
  6579. }
  6580. case 152: {
  6581. Dummy19 = input.ReadInt32();
  6582. break;
  6583. }
  6584. case 160: {
  6585. Dummy20 = input.ReadInt32();
  6586. break;
  6587. }
  6588. case 168: {
  6589. Dummy21 = input.ReadInt32();
  6590. break;
  6591. }
  6592. case 176: {
  6593. Dummy22 = input.ReadInt32();
  6594. break;
  6595. }
  6596. case 184: {
  6597. Dummy23 = input.ReadInt32();
  6598. break;
  6599. }
  6600. case 192: {
  6601. Dummy24 = input.ReadInt32();
  6602. break;
  6603. }
  6604. case 200: {
  6605. Dummy25 = input.ReadInt32();
  6606. break;
  6607. }
  6608. case 208: {
  6609. Dummy26 = input.ReadInt32();
  6610. break;
  6611. }
  6612. case 216: {
  6613. Dummy27 = input.ReadInt32();
  6614. break;
  6615. }
  6616. case 224: {
  6617. Dummy28 = input.ReadInt32();
  6618. break;
  6619. }
  6620. case 232: {
  6621. Dummy29 = input.ReadInt32();
  6622. break;
  6623. }
  6624. case 240: {
  6625. Dummy30 = input.ReadInt32();
  6626. break;
  6627. }
  6628. case 248: {
  6629. Dummy31 = input.ReadInt32();
  6630. break;
  6631. }
  6632. case 256: {
  6633. Dummy32 = input.ReadInt32();
  6634. break;
  6635. }
  6636. case 264: {
  6637. C = input.ReadInt32();
  6638. break;
  6639. }
  6640. }
  6641. }
  6642. }
  6643. // required int32 a = 1;
  6644. public bool HasA {
  6645. get { return result.HasA; }
  6646. }
  6647. public int A {
  6648. get { return result.A; }
  6649. set { SetA(value); }
  6650. }
  6651. public Builder SetA(int value) {
  6652. result.hasA = true;
  6653. result.a_ = value;
  6654. return this;
  6655. }
  6656. public Builder ClearA() {
  6657. result.hasA = false;
  6658. result.a_ = 0;
  6659. return this;
  6660. }
  6661. // optional int32 dummy2 = 2;
  6662. public bool HasDummy2 {
  6663. get { return result.HasDummy2; }
  6664. }
  6665. public int Dummy2 {
  6666. get { return result.Dummy2; }
  6667. set { SetDummy2(value); }
  6668. }
  6669. public Builder SetDummy2(int value) {
  6670. result.hasDummy2 = true;
  6671. result.dummy2_ = value;
  6672. return this;
  6673. }
  6674. public Builder ClearDummy2() {
  6675. result.hasDummy2 = false;
  6676. result.dummy2_ = 0;
  6677. return this;
  6678. }
  6679. // required int32 b = 3;
  6680. public bool HasB {
  6681. get { return result.HasB; }
  6682. }
  6683. public int B {
  6684. get { return result.B; }
  6685. set { SetB(value); }
  6686. }
  6687. public Builder SetB(int value) {
  6688. result.hasB = true;
  6689. result.b_ = value;
  6690. return this;
  6691. }
  6692. public Builder ClearB() {
  6693. result.hasB = false;
  6694. result.b_ = 0;
  6695. return this;
  6696. }
  6697. // optional int32 dummy4 = 4;
  6698. public bool HasDummy4 {
  6699. get { return result.HasDummy4; }
  6700. }
  6701. public int Dummy4 {
  6702. get { return result.Dummy4; }
  6703. set { SetDummy4(value); }
  6704. }
  6705. public Builder SetDummy4(int value) {
  6706. result.hasDummy4 = true;
  6707. result.dummy4_ = value;
  6708. return this;
  6709. }
  6710. public Builder ClearDummy4() {
  6711. result.hasDummy4 = false;
  6712. result.dummy4_ = 0;
  6713. return this;
  6714. }
  6715. // optional int32 dummy5 = 5;
  6716. public bool HasDummy5 {
  6717. get { return result.HasDummy5; }
  6718. }
  6719. public int Dummy5 {
  6720. get { return result.Dummy5; }
  6721. set { SetDummy5(value); }
  6722. }
  6723. public Builder SetDummy5(int value) {
  6724. result.hasDummy5 = true;
  6725. result.dummy5_ = value;
  6726. return this;
  6727. }
  6728. public Builder ClearDummy5() {
  6729. result.hasDummy5 = false;
  6730. result.dummy5_ = 0;
  6731. return this;
  6732. }
  6733. // optional int32 dummy6 = 6;
  6734. public bool HasDummy6 {
  6735. get { return result.HasDummy6; }
  6736. }
  6737. public int Dummy6 {
  6738. get { return result.Dummy6; }
  6739. set { SetDummy6(value); }
  6740. }
  6741. public Builder SetDummy6(int value) {
  6742. result.hasDummy6 = true;
  6743. result.dummy6_ = value;
  6744. return this;
  6745. }
  6746. public Builder ClearDummy6() {
  6747. result.hasDummy6 = false;
  6748. result.dummy6_ = 0;
  6749. return this;
  6750. }
  6751. // optional int32 dummy7 = 7;
  6752. public bool HasDummy7 {
  6753. get { return result.HasDummy7; }
  6754. }
  6755. public int Dummy7 {
  6756. get { return result.Dummy7; }
  6757. set { SetDummy7(value); }
  6758. }
  6759. public Builder SetDummy7(int value) {
  6760. result.hasDummy7 = true;
  6761. result.dummy7_ = value;
  6762. return this;
  6763. }
  6764. public Builder ClearDummy7() {
  6765. result.hasDummy7 = false;
  6766. result.dummy7_ = 0;
  6767. return this;
  6768. }
  6769. // optional int32 dummy8 = 8;
  6770. public bool HasDummy8 {
  6771. get { return result.HasDummy8; }
  6772. }
  6773. public int Dummy8 {
  6774. get { return result.Dummy8; }
  6775. set { SetDummy8(value); }
  6776. }
  6777. public Builder SetDummy8(int value) {
  6778. result.hasDummy8 = true;
  6779. result.dummy8_ = value;
  6780. return this;
  6781. }
  6782. public Builder ClearDummy8() {
  6783. result.hasDummy8 = false;
  6784. result.dummy8_ = 0;
  6785. return this;
  6786. }
  6787. // optional int32 dummy9 = 9;
  6788. public bool HasDummy9 {
  6789. get { return result.HasDummy9; }
  6790. }
  6791. public int Dummy9 {
  6792. get { return result.Dummy9; }
  6793. set { SetDummy9(value); }
  6794. }
  6795. public Builder SetDummy9(int value) {
  6796. result.hasDummy9 = true;
  6797. result.dummy9_ = value;
  6798. return this;
  6799. }
  6800. public Builder ClearDummy9() {
  6801. result.hasDummy9 = false;
  6802. result.dummy9_ = 0;
  6803. return this;
  6804. }
  6805. // optional int32 dummy10 = 10;
  6806. public bool HasDummy10 {
  6807. get { return result.HasDummy10; }
  6808. }
  6809. public int Dummy10 {
  6810. get { return result.Dummy10; }
  6811. set { SetDummy10(value); }
  6812. }
  6813. public Builder SetDummy10(int value) {
  6814. result.hasDummy10 = true;
  6815. result.dummy10_ = value;
  6816. return this;
  6817. }
  6818. public Builder ClearDummy10() {
  6819. result.hasDummy10 = false;
  6820. result.dummy10_ = 0;
  6821. return this;
  6822. }
  6823. // optional int32 dummy11 = 11;
  6824. public bool HasDummy11 {
  6825. get { return result.HasDummy11; }
  6826. }
  6827. public int Dummy11 {
  6828. get { return result.Dummy11; }
  6829. set { SetDummy11(value); }
  6830. }
  6831. public Builder SetDummy11(int value) {
  6832. result.hasDummy11 = true;
  6833. result.dummy11_ = value;
  6834. return this;
  6835. }
  6836. public Builder ClearDummy11() {
  6837. result.hasDummy11 = false;
  6838. result.dummy11_ = 0;
  6839. return this;
  6840. }
  6841. // optional int32 dummy12 = 12;
  6842. public bool HasDummy12 {
  6843. get { return result.HasDummy12; }
  6844. }
  6845. public int Dummy12 {
  6846. get { return result.Dummy12; }
  6847. set { SetDummy12(value); }
  6848. }
  6849. public Builder SetDummy12(int value) {
  6850. result.hasDummy12 = true;
  6851. result.dummy12_ = value;
  6852. return this;
  6853. }
  6854. public Builder ClearDummy12() {
  6855. result.hasDummy12 = false;
  6856. result.dummy12_ = 0;
  6857. return this;
  6858. }
  6859. // optional int32 dummy13 = 13;
  6860. public bool HasDummy13 {
  6861. get { return result.HasDummy13; }
  6862. }
  6863. public int Dummy13 {
  6864. get { return result.Dummy13; }
  6865. set { SetDummy13(value); }
  6866. }
  6867. public Builder SetDummy13(int value) {
  6868. result.hasDummy13 = true;
  6869. result.dummy13_ = value;
  6870. return this;
  6871. }
  6872. public Builder ClearDummy13() {
  6873. result.hasDummy13 = false;
  6874. result.dummy13_ = 0;
  6875. return this;
  6876. }
  6877. // optional int32 dummy14 = 14;
  6878. public bool HasDummy14 {
  6879. get { return result.HasDummy14; }
  6880. }
  6881. public int Dummy14 {
  6882. get { return result.Dummy14; }
  6883. set { SetDummy14(value); }
  6884. }
  6885. public Builder SetDummy14(int value) {
  6886. result.hasDummy14 = true;
  6887. result.dummy14_ = value;
  6888. return this;
  6889. }
  6890. public Builder ClearDummy14() {
  6891. result.hasDummy14 = false;
  6892. result.dummy14_ = 0;
  6893. return this;
  6894. }
  6895. // optional int32 dummy15 = 15;
  6896. public bool HasDummy15 {
  6897. get { return result.HasDummy15; }
  6898. }
  6899. public int Dummy15 {
  6900. get { return result.Dummy15; }
  6901. set { SetDummy15(value); }
  6902. }
  6903. public Builder SetDummy15(int value) {
  6904. result.hasDummy15 = true;
  6905. result.dummy15_ = value;
  6906. return this;
  6907. }
  6908. public Builder ClearDummy15() {
  6909. result.hasDummy15 = false;
  6910. result.dummy15_ = 0;
  6911. return this;
  6912. }
  6913. // optional int32 dummy16 = 16;
  6914. public bool HasDummy16 {
  6915. get { return result.HasDummy16; }
  6916. }
  6917. public int Dummy16 {
  6918. get { return result.Dummy16; }
  6919. set { SetDummy16(value); }
  6920. }
  6921. public Builder SetDummy16(int value) {
  6922. result.hasDummy16 = true;
  6923. result.dummy16_ = value;
  6924. return this;
  6925. }
  6926. public Builder ClearDummy16() {
  6927. result.hasDummy16 = false;
  6928. result.dummy16_ = 0;
  6929. return this;
  6930. }
  6931. // optional int32 dummy17 = 17;
  6932. public bool HasDummy17 {
  6933. get { return result.HasDummy17; }
  6934. }
  6935. public int Dummy17 {
  6936. get { return result.Dummy17; }
  6937. set { SetDummy17(value); }
  6938. }
  6939. public Builder SetDummy17(int value) {
  6940. result.hasDummy17 = true;
  6941. result.dummy17_ = value;
  6942. return this;
  6943. }
  6944. public Builder ClearDummy17() {
  6945. result.hasDummy17 = false;
  6946. result.dummy17_ = 0;
  6947. return this;
  6948. }
  6949. // optional int32 dummy18 = 18;
  6950. public bool HasDummy18 {
  6951. get { return result.HasDummy18; }
  6952. }
  6953. public int Dummy18 {
  6954. get { return result.Dummy18; }
  6955. set { SetDummy18(value); }
  6956. }
  6957. public Builder SetDummy18(int value) {
  6958. result.hasDummy18 = true;
  6959. result.dummy18_ = value;
  6960. return this;
  6961. }
  6962. public Builder ClearDummy18() {
  6963. result.hasDummy18 = false;
  6964. result.dummy18_ = 0;
  6965. return this;
  6966. }
  6967. // optional int32 dummy19 = 19;
  6968. public bool HasDummy19 {
  6969. get { return result.HasDummy19; }
  6970. }
  6971. public int Dummy19 {
  6972. get { return result.Dummy19; }
  6973. set { SetDummy19(value); }
  6974. }
  6975. public Builder SetDummy19(int value) {
  6976. result.hasDummy19 = true;
  6977. result.dummy19_ = value;
  6978. return this;
  6979. }
  6980. public Builder ClearDummy19() {
  6981. result.hasDummy19 = false;
  6982. result.dummy19_ = 0;
  6983. return this;
  6984. }
  6985. // optional int32 dummy20 = 20;
  6986. public bool HasDummy20 {
  6987. get { return result.HasDummy20; }
  6988. }
  6989. public int Dummy20 {
  6990. get { return result.Dummy20; }
  6991. set { SetDummy20(value); }
  6992. }
  6993. public Builder SetDummy20(int value) {
  6994. result.hasDummy20 = true;
  6995. result.dummy20_ = value;
  6996. return this;
  6997. }
  6998. public Builder ClearDummy20() {
  6999. result.hasDummy20 = false;
  7000. result.dummy20_ = 0;
  7001. return this;
  7002. }
  7003. // optional int32 dummy21 = 21;
  7004. public bool HasDummy21 {
  7005. get { return result.HasDummy21; }
  7006. }
  7007. public int Dummy21 {
  7008. get { return result.Dummy21; }
  7009. set { SetDummy21(value); }
  7010. }
  7011. public Builder SetDummy21(int value) {
  7012. result.hasDummy21 = true;
  7013. result.dummy21_ = value;
  7014. return this;
  7015. }
  7016. public Builder ClearDummy21() {
  7017. result.hasDummy21 = false;
  7018. result.dummy21_ = 0;
  7019. return this;
  7020. }
  7021. // optional int32 dummy22 = 22;
  7022. public bool HasDummy22 {
  7023. get { return result.HasDummy22; }
  7024. }
  7025. public int Dummy22 {
  7026. get { return result.Dummy22; }
  7027. set { SetDummy22(value); }
  7028. }
  7029. public Builder SetDummy22(int value) {
  7030. result.hasDummy22 = true;
  7031. result.dummy22_ = value;
  7032. return this;
  7033. }
  7034. public Builder ClearDummy22() {
  7035. result.hasDummy22 = false;
  7036. result.dummy22_ = 0;
  7037. return this;
  7038. }
  7039. // optional int32 dummy23 = 23;
  7040. public bool HasDummy23 {
  7041. get { return result.HasDummy23; }
  7042. }
  7043. public int Dummy23 {
  7044. get { return result.Dummy23; }
  7045. set { SetDummy23(value); }
  7046. }
  7047. public Builder SetDummy23(int value) {
  7048. result.hasDummy23 = true;
  7049. result.dummy23_ = value;
  7050. return this;
  7051. }
  7052. public Builder ClearDummy23() {
  7053. result.hasDummy23 = false;
  7054. result.dummy23_ = 0;
  7055. return this;
  7056. }
  7057. // optional int32 dummy24 = 24;
  7058. public bool HasDummy24 {
  7059. get { return result.HasDummy24; }
  7060. }
  7061. public int Dummy24 {
  7062. get { return result.Dummy24; }
  7063. set { SetDummy24(value); }
  7064. }
  7065. public Builder SetDummy24(int value) {
  7066. result.hasDummy24 = true;
  7067. result.dummy24_ = value;
  7068. return this;
  7069. }
  7070. public Builder ClearDummy24() {
  7071. result.hasDummy24 = false;
  7072. result.dummy24_ = 0;
  7073. return this;
  7074. }
  7075. // optional int32 dummy25 = 25;
  7076. public bool HasDummy25 {
  7077. get { return result.HasDummy25; }
  7078. }
  7079. public int Dummy25 {
  7080. get { return result.Dummy25; }
  7081. set { SetDummy25(value); }
  7082. }
  7083. public Builder SetDummy25(int value) {
  7084. result.hasDummy25 = true;
  7085. result.dummy25_ = value;
  7086. return this;
  7087. }
  7088. public Builder ClearDummy25() {
  7089. result.hasDummy25 = false;
  7090. result.dummy25_ = 0;
  7091. return this;
  7092. }
  7093. // optional int32 dummy26 = 26;
  7094. public bool HasDummy26 {
  7095. get { return result.HasDummy26; }
  7096. }
  7097. public int Dummy26 {
  7098. get { return result.Dummy26; }
  7099. set { SetDummy26(value); }
  7100. }
  7101. public Builder SetDummy26(int value) {
  7102. result.hasDummy26 = true;
  7103. result.dummy26_ = value;
  7104. return this;
  7105. }
  7106. public Builder ClearDummy26() {
  7107. result.hasDummy26 = false;
  7108. result.dummy26_ = 0;
  7109. return this;
  7110. }
  7111. // optional int32 dummy27 = 27;
  7112. public bool HasDummy27 {
  7113. get { return result.HasDummy27; }
  7114. }
  7115. public int Dummy27 {
  7116. get { return result.Dummy27; }
  7117. set { SetDummy27(value); }
  7118. }
  7119. public Builder SetDummy27(int value) {
  7120. result.hasDummy27 = true;
  7121. result.dummy27_ = value;
  7122. return this;
  7123. }
  7124. public Builder ClearDummy27() {
  7125. result.hasDummy27 = false;
  7126. result.dummy27_ = 0;
  7127. return this;
  7128. }
  7129. // optional int32 dummy28 = 28;
  7130. public bool HasDummy28 {
  7131. get { return result.HasDummy28; }
  7132. }
  7133. public int Dummy28 {
  7134. get { return result.Dummy28; }
  7135. set { SetDummy28(value); }
  7136. }
  7137. public Builder SetDummy28(int value) {
  7138. result.hasDummy28 = true;
  7139. result.dummy28_ = value;
  7140. return this;
  7141. }
  7142. public Builder ClearDummy28() {
  7143. result.hasDummy28 = false;
  7144. result.dummy28_ = 0;
  7145. return this;
  7146. }
  7147. // optional int32 dummy29 = 29;
  7148. public bool HasDummy29 {
  7149. get { return result.HasDummy29; }
  7150. }
  7151. public int Dummy29 {
  7152. get { return result.Dummy29; }
  7153. set { SetDummy29(value); }
  7154. }
  7155. public Builder SetDummy29(int value) {
  7156. result.hasDummy29 = true;
  7157. result.dummy29_ = value;
  7158. return this;
  7159. }
  7160. public Builder ClearDummy29() {
  7161. result.hasDummy29 = false;
  7162. result.dummy29_ = 0;
  7163. return this;
  7164. }
  7165. // optional int32 dummy30 = 30;
  7166. public bool HasDummy30 {
  7167. get { return result.HasDummy30; }
  7168. }
  7169. public int Dummy30 {
  7170. get { return result.Dummy30; }
  7171. set { SetDummy30(value); }
  7172. }
  7173. public Builder SetDummy30(int value) {
  7174. result.hasDummy30 = true;
  7175. result.dummy30_ = value;
  7176. return this;
  7177. }
  7178. public Builder ClearDummy30() {
  7179. result.hasDummy30 = false;
  7180. result.dummy30_ = 0;
  7181. return this;
  7182. }
  7183. // optional int32 dummy31 = 31;
  7184. public bool HasDummy31 {
  7185. get { return result.HasDummy31; }
  7186. }
  7187. public int Dummy31 {
  7188. get { return result.Dummy31; }
  7189. set { SetDummy31(value); }
  7190. }
  7191. public Builder SetDummy31(int value) {
  7192. result.hasDummy31 = true;
  7193. result.dummy31_ = value;
  7194. return this;
  7195. }
  7196. public Builder ClearDummy31() {
  7197. result.hasDummy31 = false;
  7198. result.dummy31_ = 0;
  7199. return this;
  7200. }
  7201. // optional int32 dummy32 = 32;
  7202. public bool HasDummy32 {
  7203. get { return result.HasDummy32; }
  7204. }
  7205. public int Dummy32 {
  7206. get { return result.Dummy32; }
  7207. set { SetDummy32(value); }
  7208. }
  7209. public Builder SetDummy32(int value) {
  7210. result.hasDummy32 = true;
  7211. result.dummy32_ = value;
  7212. return this;
  7213. }
  7214. public Builder ClearDummy32() {
  7215. result.hasDummy32 = false;
  7216. result.dummy32_ = 0;
  7217. return this;
  7218. }
  7219. // required int32 c = 33;
  7220. public bool HasC {
  7221. get { return result.HasC; }
  7222. }
  7223. public int C {
  7224. get { return result.C; }
  7225. set { SetC(value); }
  7226. }
  7227. public Builder SetC(int value) {
  7228. result.hasC = true;
  7229. result.c_ = value;
  7230. return this;
  7231. }
  7232. public Builder ClearC() {
  7233. result.hasC = false;
  7234. result.c_ = 0;
  7235. return this;
  7236. }
  7237. }
  7238. }
  7239. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7240. // Use TestRequiredForeign.CreateBuilder() to construct.
  7241. private TestRequiredForeign() {}
  7242. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7243. public static TestRequiredForeign DefaultInstance {
  7244. get { return defaultInstance; }
  7245. }
  7246. public override TestRequiredForeign DefaultInstanceForType {
  7247. get { return defaultInstance; }
  7248. }
  7249. public static pbd::MessageDescriptor Descriptor {
  7250. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7251. }
  7252. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7253. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7254. }
  7255. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7256. private bool hasOptionalMessage;
  7257. private self::TestRequired optionalMessage_ = self::TestRequired.DefaultInstance;
  7258. public bool HasOptionalMessage {
  7259. get { return hasOptionalMessage; }
  7260. }
  7261. public self::TestRequired OptionalMessage {
  7262. get { return optionalMessage_; }
  7263. }
  7264. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7265. private scg::IList<self::TestRequired> repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7266. public scg::IList<self::TestRequired> RepeatedMessageList {
  7267. get { return repeatedMessage_; }
  7268. }
  7269. public int RepeatedMessageCount
  7270. { get { return repeatedMessage_.Count; }
  7271. }
  7272. public self::TestRequired GetRepeatedMessage(int index) {
  7273. return repeatedMessage_ [index];
  7274. }
  7275. // optional int32 dummy = 3;
  7276. private bool hasDummy;
  7277. private int dummy_ = 0;
  7278. public bool HasDummy {
  7279. get { return hasDummy; }
  7280. }
  7281. public int Dummy {
  7282. get { return dummy_; }
  7283. }
  7284. public override bool IsInitialized {
  7285. get {
  7286. if (HasOptionalMessage) {
  7287. if (!OptionalMessage.IsInitialized) return false;
  7288. }
  7289. foreach (self::TestRequired element in RepeatedMessageList) {
  7290. if (!element.IsInitialized) return false;
  7291. }
  7292. return true;
  7293. }
  7294. }
  7295. public override void WriteTo(pb::CodedOutputStream output) {
  7296. if (HasOptionalMessage) {
  7297. output.WriteMessage(1, OptionalMessage);
  7298. }
  7299. foreach (self::TestRequired element in RepeatedMessageList) {
  7300. output.WriteMessage(2, element);
  7301. }
  7302. if (HasDummy) {
  7303. output.WriteInt32(3, Dummy);
  7304. }
  7305. UnknownFields.WriteTo(output);
  7306. }
  7307. private int memoizedSerializedSize = -1;
  7308. public override int SerializedSize {
  7309. get {
  7310. int size = memoizedSerializedSize;
  7311. if (size != -1) return size;
  7312. size = 0;
  7313. if (HasOptionalMessage) {
  7314. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7315. }
  7316. foreach (self::TestRequired element in RepeatedMessageList) {
  7317. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7318. }
  7319. if (HasDummy) {
  7320. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7321. }
  7322. size += UnknownFields.SerializedSize;
  7323. memoizedSerializedSize = size;
  7324. return size;
  7325. }
  7326. }
  7327. public static self::TestRequiredForeign ParseFrom(pb::ByteString data) {
  7328. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7329. }
  7330. public static self::TestRequiredForeign ParseFrom(pb::ByteString data,
  7331. pb::ExtensionRegistry extensionRegistry) {
  7332. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7333. .BuildParsed();
  7334. }
  7335. public static self::TestRequiredForeign ParseFrom(byte[] data) {
  7336. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7337. }
  7338. public static self::TestRequiredForeign parseFrom(byte[] data,
  7339. pb::ExtensionRegistry extensionRegistry) {
  7340. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7341. .BuildParsed();
  7342. }
  7343. public static self::TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7344. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7345. }
  7346. public static self::TestRequiredForeign ParseFrom(
  7347. global::System.IO.Stream input,
  7348. pb::ExtensionRegistry extensionRegistry) {
  7349. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7350. .BuildParsed();
  7351. }
  7352. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7353. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7354. }
  7355. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7356. pb::ExtensionRegistry extensionRegistry) {
  7357. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7358. .BuildParsed();
  7359. }
  7360. public static Builder CreateBuilder() { return new Builder(); }
  7361. public override IBuilder<self::TestRequiredForeign> CreateBuilderForType() { return new Builder(); }
  7362. public static Builder CreateBuilder(self::TestRequiredForeign prototype) {
  7363. return (Builder) new Builder().MergeFrom(prototype);
  7364. }
  7365. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequiredForeign, Builder> {
  7366. // Construct using self::TestRequiredForeign.CreateBuilder()
  7367. internal Builder() {}
  7368. self::TestRequiredForeign result = new self::TestRequiredForeign();
  7369. protected override self::TestRequiredForeign MessageBeingBuilt {
  7370. get { return result; }
  7371. }
  7372. public override IBuilder<self::TestRequiredForeign> Clear() {
  7373. result = new self::TestRequiredForeign();
  7374. return this;
  7375. }
  7376. public override IBuilder<self::TestRequiredForeign> Clone() {
  7377. return new Builder().MergeFrom(result);
  7378. }
  7379. public override pbd::MessageDescriptor DescriptorForType {
  7380. get { return self::TestRequiredForeign.Descriptor; }
  7381. }
  7382. public override self::TestRequiredForeign DefaultInstanceForType {
  7383. get { return self::TestRequiredForeign.DefaultInstance; }
  7384. }
  7385. public override self::TestRequiredForeign BuildPartial() {
  7386. if (result.repeatedMessage_ != pbc::Lists<self::TestRequired>.Empty) {
  7387. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.AsReadOnly(result.repeatedMessage_);
  7388. }
  7389. self::TestRequiredForeign returnMe = result;
  7390. result = null;
  7391. return returnMe;
  7392. }
  7393. public override IBuilder MergeFrom(pb::IMessage other) {
  7394. if (other is self::TestRequiredForeign) {
  7395. return MergeFrom((self::TestRequiredForeign) other);
  7396. } else {
  7397. base.MergeFrom(other);
  7398. return this;
  7399. }
  7400. }
  7401. public override IBuilder<self::TestRequiredForeign> MergeFrom(self::TestRequiredForeign other) {
  7402. if (other == self::TestRequiredForeign.DefaultInstance) return this;
  7403. if (other.HasOptionalMessage) {
  7404. MergeOptionalMessage(other.OptionalMessage);
  7405. }
  7406. if (other.repeatedMessage_.Count != 0) {
  7407. if (result.repeatedMessage_.Count == 0) {
  7408. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7409. }
  7410. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7411. }
  7412. if (other.HasDummy) {
  7413. Dummy = other.Dummy;
  7414. }
  7415. this.MergeUnknownFields(other.UnknownFields);
  7416. return this;
  7417. }
  7418. public override IBuilder<self::TestRequiredForeign> MergeFrom(pb::CodedInputStream input) {
  7419. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7420. }
  7421. public override IBuilder<self::TestRequiredForeign> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7422. pb::UnknownFieldSet.Builder unknownFields =
  7423. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7424. while (true) {
  7425. uint tag = input.ReadTag();
  7426. switch (tag) {
  7427. case 0:
  7428. this.UnknownFields = unknownFields.Build();
  7429. return this;
  7430. default: {
  7431. if (!ParseUnknownField(input, unknownFields,
  7432. extensionRegistry, tag)) {
  7433. this.UnknownFields = unknownFields.Build();
  7434. return this;
  7435. }
  7436. break;
  7437. }
  7438. case 10: {
  7439. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7440. if (HasOptionalMessage) {
  7441. subBuilder.MergeFrom(OptionalMessage);
  7442. }
  7443. input.ReadMessage(subBuilder, extensionRegistry);
  7444. OptionalMessage = subBuilder.BuildPartial();
  7445. break;
  7446. }
  7447. case 18: {
  7448. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7449. input.ReadMessage(subBuilder, extensionRegistry);
  7450. AddRepeatedMessage(subBuilder.BuildPartial());
  7451. break;
  7452. }
  7453. case 24: {
  7454. Dummy = input.ReadInt32();
  7455. break;
  7456. }
  7457. }
  7458. }
  7459. }
  7460. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7461. public bool HasOptionalMessage {
  7462. get { return result.HasOptionalMessage; }
  7463. }
  7464. public self::TestRequired OptionalMessage {
  7465. get { return result.OptionalMessage; }
  7466. set { SetOptionalMessage(value); }
  7467. }
  7468. public Builder SetOptionalMessage(self::TestRequired value) {
  7469. result.hasOptionalMessage = true;
  7470. result.optionalMessage_ = value;
  7471. return this;
  7472. }
  7473. public Builder SetOptionalMessage(self::TestRequired.Builder builderForValue) {
  7474. result.hasOptionalMessage = true;
  7475. result.optionalMessage_ = builderForValue.Build();
  7476. return this;
  7477. }
  7478. public Builder MergeOptionalMessage(self::TestRequired value) {
  7479. if (result.HasOptionalMessage &&
  7480. result.optionalMessage_ != self::TestRequired.DefaultInstance) {
  7481. result.optionalMessage_ =
  7482. self::TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7483. } else {
  7484. result.optionalMessage_ = value;
  7485. }
  7486. result.hasOptionalMessage = true;
  7487. return this;
  7488. }
  7489. public Builder ClearOptionalMessage() {
  7490. result.hasOptionalMessage = false;
  7491. result.optionalMessage_ = self::TestRequired.DefaultInstance;
  7492. return this;
  7493. }
  7494. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7495. public scg::IList<self::TestRequired> RepeatedMessageList {
  7496. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7497. }
  7498. public int RepeatedMessageCount {
  7499. get { return result.RepeatedMessageCount; }
  7500. }
  7501. public self::TestRequired GetRepeatedMessage(int index) {
  7502. return result.GetRepeatedMessage(index);
  7503. }
  7504. public Builder SetRepeatedMessage(int index, self::TestRequired value) {
  7505. result.repeatedMessage_[index] = value;
  7506. return this;
  7507. }
  7508. public Builder SetRepeatedMessage(int index, self::TestRequired.Builder builderForValue) {
  7509. result.repeatedMessage_[index] = builderForValue.Build();
  7510. return this;
  7511. }
  7512. public Builder AddRepeatedMessage(self::TestRequired value) {
  7513. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7514. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7515. }
  7516. result.repeatedMessage_.Add(value);
  7517. return this;
  7518. }
  7519. public Builder AddRepeatedMessage(self::TestRequired.Builder builderForValue) {
  7520. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7521. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7522. }
  7523. result.repeatedMessage_.Add(builderForValue.Build());
  7524. return this;
  7525. }
  7526. public Builder AddRangeRepeatedMessage(scg::IEnumerable<self::TestRequired> values) {
  7527. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7528. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7529. }
  7530. base.AddRange(values, result.repeatedMessage_);
  7531. return this;
  7532. }
  7533. public Builder ClearRepeatedMessage() {
  7534. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7535. return this;
  7536. }
  7537. // optional int32 dummy = 3;
  7538. public bool HasDummy {
  7539. get { return result.HasDummy; }
  7540. }
  7541. public int Dummy {
  7542. get { return result.Dummy; }
  7543. set { SetDummy(value); }
  7544. }
  7545. public Builder SetDummy(int value) {
  7546. result.hasDummy = true;
  7547. result.dummy_ = value;
  7548. return this;
  7549. }
  7550. public Builder ClearDummy() {
  7551. result.hasDummy = false;
  7552. result.dummy_ = 0;
  7553. return this;
  7554. }
  7555. }
  7556. }
  7557. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7558. // Use TestForeignNested.CreateBuilder() to construct.
  7559. private TestForeignNested() {}
  7560. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7561. public static TestForeignNested DefaultInstance {
  7562. get { return defaultInstance; }
  7563. }
  7564. public override TestForeignNested DefaultInstanceForType {
  7565. get { return defaultInstance; }
  7566. }
  7567. public static pbd::MessageDescriptor Descriptor {
  7568. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7569. }
  7570. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7571. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7572. }
  7573. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7574. private bool hasForeignNested;
  7575. private self::TestAllTypes.Types.NestedMessage foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7576. public bool HasForeignNested {
  7577. get { return hasForeignNested; }
  7578. }
  7579. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7580. get { return foreignNested_; }
  7581. }
  7582. public override bool IsInitialized {
  7583. get {
  7584. return true;
  7585. }
  7586. }
  7587. public override void WriteTo(pb::CodedOutputStream output) {
  7588. if (HasForeignNested) {
  7589. output.WriteMessage(1, ForeignNested);
  7590. }
  7591. UnknownFields.WriteTo(output);
  7592. }
  7593. private int memoizedSerializedSize = -1;
  7594. public override int SerializedSize {
  7595. get {
  7596. int size = memoizedSerializedSize;
  7597. if (size != -1) return size;
  7598. size = 0;
  7599. if (HasForeignNested) {
  7600. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7601. }
  7602. size += UnknownFields.SerializedSize;
  7603. memoizedSerializedSize = size;
  7604. return size;
  7605. }
  7606. }
  7607. public static self::TestForeignNested ParseFrom(pb::ByteString data) {
  7608. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7609. }
  7610. public static self::TestForeignNested ParseFrom(pb::ByteString data,
  7611. pb::ExtensionRegistry extensionRegistry) {
  7612. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7613. .BuildParsed();
  7614. }
  7615. public static self::TestForeignNested ParseFrom(byte[] data) {
  7616. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7617. }
  7618. public static self::TestForeignNested parseFrom(byte[] data,
  7619. pb::ExtensionRegistry extensionRegistry) {
  7620. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7621. .BuildParsed();
  7622. }
  7623. public static self::TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7624. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7625. }
  7626. public static self::TestForeignNested ParseFrom(
  7627. global::System.IO.Stream input,
  7628. pb::ExtensionRegistry extensionRegistry) {
  7629. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7630. .BuildParsed();
  7631. }
  7632. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7633. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7634. }
  7635. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input,
  7636. pb::ExtensionRegistry extensionRegistry) {
  7637. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7638. .BuildParsed();
  7639. }
  7640. public static Builder CreateBuilder() { return new Builder(); }
  7641. public override IBuilder<self::TestForeignNested> CreateBuilderForType() { return new Builder(); }
  7642. public static Builder CreateBuilder(self::TestForeignNested prototype) {
  7643. return (Builder) new Builder().MergeFrom(prototype);
  7644. }
  7645. public sealed partial class Builder : pb::GeneratedBuilder<self::TestForeignNested, Builder> {
  7646. // Construct using self::TestForeignNested.CreateBuilder()
  7647. internal Builder() {}
  7648. self::TestForeignNested result = new self::TestForeignNested();
  7649. protected override self::TestForeignNested MessageBeingBuilt {
  7650. get { return result; }
  7651. }
  7652. public override IBuilder<self::TestForeignNested> Clear() {
  7653. result = new self::TestForeignNested();
  7654. return this;
  7655. }
  7656. public override IBuilder<self::TestForeignNested> Clone() {
  7657. return new Builder().MergeFrom(result);
  7658. }
  7659. public override pbd::MessageDescriptor DescriptorForType {
  7660. get { return self::TestForeignNested.Descriptor; }
  7661. }
  7662. public override self::TestForeignNested DefaultInstanceForType {
  7663. get { return self::TestForeignNested.DefaultInstance; }
  7664. }
  7665. public override self::TestForeignNested BuildPartial() {
  7666. self::TestForeignNested returnMe = result;
  7667. result = null;
  7668. return returnMe;
  7669. }
  7670. public override IBuilder MergeFrom(pb::IMessage other) {
  7671. if (other is self::TestForeignNested) {
  7672. return MergeFrom((self::TestForeignNested) other);
  7673. } else {
  7674. base.MergeFrom(other);
  7675. return this;
  7676. }
  7677. }
  7678. public override IBuilder<self::TestForeignNested> MergeFrom(self::TestForeignNested other) {
  7679. if (other == self::TestForeignNested.DefaultInstance) return this;
  7680. if (other.HasForeignNested) {
  7681. MergeForeignNested(other.ForeignNested);
  7682. }
  7683. this.MergeUnknownFields(other.UnknownFields);
  7684. return this;
  7685. }
  7686. public override IBuilder<self::TestForeignNested> MergeFrom(pb::CodedInputStream input) {
  7687. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7688. }
  7689. public override IBuilder<self::TestForeignNested> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7690. pb::UnknownFieldSet.Builder unknownFields =
  7691. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7692. while (true) {
  7693. uint tag = input.ReadTag();
  7694. switch (tag) {
  7695. case 0:
  7696. this.UnknownFields = unknownFields.Build();
  7697. return this;
  7698. default: {
  7699. if (!ParseUnknownField(input, unknownFields,
  7700. extensionRegistry, tag)) {
  7701. this.UnknownFields = unknownFields.Build();
  7702. return this;
  7703. }
  7704. break;
  7705. }
  7706. case 10: {
  7707. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  7708. if (HasForeignNested) {
  7709. subBuilder.MergeFrom(ForeignNested);
  7710. }
  7711. input.ReadMessage(subBuilder, extensionRegistry);
  7712. ForeignNested = subBuilder.BuildPartial();
  7713. break;
  7714. }
  7715. }
  7716. }
  7717. }
  7718. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7719. public bool HasForeignNested {
  7720. get { return result.HasForeignNested; }
  7721. }
  7722. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7723. get { return result.ForeignNested; }
  7724. set { SetForeignNested(value); }
  7725. }
  7726. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7727. result.hasForeignNested = true;
  7728. result.foreignNested_ = value;
  7729. return this;
  7730. }
  7731. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7732. result.hasForeignNested = true;
  7733. result.foreignNested_ = builderForValue.Build();
  7734. return this;
  7735. }
  7736. public Builder MergeForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7737. if (result.HasForeignNested &&
  7738. result.foreignNested_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7739. result.foreignNested_ =
  7740. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7741. } else {
  7742. result.foreignNested_ = value;
  7743. }
  7744. result.hasForeignNested = true;
  7745. return this;
  7746. }
  7747. public Builder ClearForeignNested() {
  7748. result.hasForeignNested = false;
  7749. result.foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7750. return this;
  7751. }
  7752. }
  7753. }
  7754. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7755. // Use TestEmptyMessage.CreateBuilder() to construct.
  7756. private TestEmptyMessage() {}
  7757. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7758. public static TestEmptyMessage DefaultInstance {
  7759. get { return defaultInstance; }
  7760. }
  7761. public override TestEmptyMessage DefaultInstanceForType {
  7762. get { return defaultInstance; }
  7763. }
  7764. public static pbd::MessageDescriptor Descriptor {
  7765. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7766. }
  7767. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7768. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7769. }
  7770. public override bool IsInitialized {
  7771. get {
  7772. return true;
  7773. }
  7774. }
  7775. public override void WriteTo(pb::CodedOutputStream output) {
  7776. UnknownFields.WriteTo(output);
  7777. }
  7778. private int memoizedSerializedSize = -1;
  7779. public override int SerializedSize {
  7780. get {
  7781. int size = memoizedSerializedSize;
  7782. if (size != -1) return size;
  7783. size = 0;
  7784. size += UnknownFields.SerializedSize;
  7785. memoizedSerializedSize = size;
  7786. return size;
  7787. }
  7788. }
  7789. public static self::TestEmptyMessage ParseFrom(pb::ByteString data) {
  7790. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7791. }
  7792. public static self::TestEmptyMessage ParseFrom(pb::ByteString data,
  7793. pb::ExtensionRegistry extensionRegistry) {
  7794. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7795. .BuildParsed();
  7796. }
  7797. public static self::TestEmptyMessage ParseFrom(byte[] data) {
  7798. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7799. }
  7800. public static self::TestEmptyMessage parseFrom(byte[] data,
  7801. pb::ExtensionRegistry extensionRegistry) {
  7802. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7803. .BuildParsed();
  7804. }
  7805. public static self::TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7806. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7807. }
  7808. public static self::TestEmptyMessage ParseFrom(
  7809. global::System.IO.Stream input,
  7810. pb::ExtensionRegistry extensionRegistry) {
  7811. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7812. .BuildParsed();
  7813. }
  7814. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7815. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7816. }
  7817. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7818. pb::ExtensionRegistry extensionRegistry) {
  7819. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7820. .BuildParsed();
  7821. }
  7822. public static Builder CreateBuilder() { return new Builder(); }
  7823. public override IBuilder<self::TestEmptyMessage> CreateBuilderForType() { return new Builder(); }
  7824. public static Builder CreateBuilder(self::TestEmptyMessage prototype) {
  7825. return (Builder) new Builder().MergeFrom(prototype);
  7826. }
  7827. public sealed partial class Builder : pb::GeneratedBuilder<self::TestEmptyMessage, Builder> {
  7828. // Construct using self::TestEmptyMessage.CreateBuilder()
  7829. internal Builder() {}
  7830. self::TestEmptyMessage result = new self::TestEmptyMessage();
  7831. protected override self::TestEmptyMessage MessageBeingBuilt {
  7832. get { return result; }
  7833. }
  7834. public override IBuilder<self::TestEmptyMessage> Clear() {
  7835. result = new self::TestEmptyMessage();
  7836. return this;
  7837. }
  7838. public override IBuilder<self::TestEmptyMessage> Clone() {
  7839. return new Builder().MergeFrom(result);
  7840. }
  7841. public override pbd::MessageDescriptor DescriptorForType {
  7842. get { return self::TestEmptyMessage.Descriptor; }
  7843. }
  7844. public override self::TestEmptyMessage DefaultInstanceForType {
  7845. get { return self::TestEmptyMessage.DefaultInstance; }
  7846. }
  7847. public override self::TestEmptyMessage BuildPartial() {
  7848. self::TestEmptyMessage returnMe = result;
  7849. result = null;
  7850. return returnMe;
  7851. }
  7852. public override IBuilder MergeFrom(pb::IMessage other) {
  7853. if (other is self::TestEmptyMessage) {
  7854. return MergeFrom((self::TestEmptyMessage) other);
  7855. } else {
  7856. base.MergeFrom(other);
  7857. return this;
  7858. }
  7859. }
  7860. public override IBuilder<self::TestEmptyMessage> MergeFrom(self::TestEmptyMessage other) {
  7861. if (other == self::TestEmptyMessage.DefaultInstance) return this;
  7862. this.MergeUnknownFields(other.UnknownFields);
  7863. return this;
  7864. }
  7865. public override IBuilder<self::TestEmptyMessage> MergeFrom(pb::CodedInputStream input) {
  7866. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7867. }
  7868. public override IBuilder<self::TestEmptyMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7869. pb::UnknownFieldSet.Builder unknownFields =
  7870. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7871. while (true) {
  7872. uint tag = input.ReadTag();
  7873. switch (tag) {
  7874. case 0:
  7875. this.UnknownFields = unknownFields.Build();
  7876. return this;
  7877. default: {
  7878. if (!ParseUnknownField(input, unknownFields,
  7879. extensionRegistry, tag)) {
  7880. this.UnknownFields = unknownFields.Build();
  7881. return this;
  7882. }
  7883. break;
  7884. }
  7885. }
  7886. }
  7887. }
  7888. }
  7889. }
  7890. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7891. // Use TestEmptyMessageWithExtensions.CreateBuilder() to construct.
  7892. private TestEmptyMessageWithExtensions() {}
  7893. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7894. public static TestEmptyMessageWithExtensions DefaultInstance {
  7895. get { return defaultInstance; }
  7896. }
  7897. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7898. get { return defaultInstance; }
  7899. }
  7900. public static pbd::MessageDescriptor Descriptor {
  7901. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7902. }
  7903. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7904. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7905. }
  7906. public override bool IsInitialized {
  7907. get {
  7908. if (!ExtensionsAreInitialized) return false;
  7909. return true;
  7910. }
  7911. }
  7912. public override void WriteTo(pb::CodedOutputStream output) {
  7913. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7914. extensionWriter.WriteUntil(536870912, output);
  7915. UnknownFields.WriteTo(output);
  7916. }
  7917. private int memoizedSerializedSize = -1;
  7918. public override int SerializedSize {
  7919. get {
  7920. int size = memoizedSerializedSize;
  7921. if (size != -1) return size;
  7922. size = 0;
  7923. size += ExtensionsSerializedSize;
  7924. size += UnknownFields.SerializedSize;
  7925. memoizedSerializedSize = size;
  7926. return size;
  7927. }
  7928. }
  7929. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7930. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7931. }
  7932. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7933. pb::ExtensionRegistry extensionRegistry) {
  7934. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7935. .BuildParsed();
  7936. }
  7937. public static self::TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7938. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7939. }
  7940. public static self::TestEmptyMessageWithExtensions parseFrom(byte[] data,
  7941. pb::ExtensionRegistry extensionRegistry) {
  7942. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7943. .BuildParsed();
  7944. }
  7945. public static self::TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7946. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7947. }
  7948. public static self::TestEmptyMessageWithExtensions ParseFrom(
  7949. global::System.IO.Stream input,
  7950. pb::ExtensionRegistry extensionRegistry) {
  7951. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7952. .BuildParsed();
  7953. }
  7954. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7955. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7956. }
  7957. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7958. pb::ExtensionRegistry extensionRegistry) {
  7959. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7960. .BuildParsed();
  7961. }
  7962. public static Builder CreateBuilder() { return new Builder(); }
  7963. public override IBuilder<self::TestEmptyMessageWithExtensions> CreateBuilderForType() { return new Builder(); }
  7964. public static Builder CreateBuilder(self::TestEmptyMessageWithExtensions prototype) {
  7965. return (Builder) new Builder().MergeFrom(prototype);
  7966. }
  7967. public sealed partial class Builder : pb::GeneratedBuilder<self::TestEmptyMessageWithExtensions, self::TestEmptyMessageWithExtensions.Builder>.ExtendableBuilder {
  7968. // Construct using self::TestEmptyMessageWithExtensions.CreateBuilder()
  7969. internal Builder() {}
  7970. self::TestEmptyMessageWithExtensions result = new self::TestEmptyMessageWithExtensions();
  7971. protected override self::TestEmptyMessageWithExtensions MessageBeingBuilt {
  7972. get { return result; }
  7973. }
  7974. public override IBuilder<self::TestEmptyMessageWithExtensions> Clear() {
  7975. result = new self::TestEmptyMessageWithExtensions();
  7976. return this;
  7977. }
  7978. public override IBuilder<self::TestEmptyMessageWithExtensions> Clone() {
  7979. return new Builder().MergeFrom(result);
  7980. }
  7981. public override pbd::MessageDescriptor DescriptorForType {
  7982. get { return self::TestEmptyMessageWithExtensions.Descriptor; }
  7983. }
  7984. public override self::TestEmptyMessageWithExtensions DefaultInstanceForType {
  7985. get { return self::TestEmptyMessageWithExtensions.DefaultInstance; }
  7986. }
  7987. public override self::TestEmptyMessageWithExtensions BuildPartial() {
  7988. self::TestEmptyMessageWithExtensions returnMe = result;
  7989. result = null;
  7990. return returnMe;
  7991. }
  7992. public override IBuilder MergeFrom(pb::IMessage other) {
  7993. if (other is self::TestEmptyMessageWithExtensions) {
  7994. return MergeFrom((self::TestEmptyMessageWithExtensions) other);
  7995. } else {
  7996. base.MergeFrom(other);
  7997. return this;
  7998. }
  7999. }
  8000. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(self::TestEmptyMessageWithExtensions other) {
  8001. if (other == self::TestEmptyMessageWithExtensions.DefaultInstance) return this;
  8002. this.MergeUnknownFields(other.UnknownFields);
  8003. return this;
  8004. }
  8005. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(pb::CodedInputStream input) {
  8006. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8007. }
  8008. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8009. pb::UnknownFieldSet.Builder unknownFields =
  8010. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8011. while (true) {
  8012. uint tag = input.ReadTag();
  8013. switch (tag) {
  8014. case 0:
  8015. this.UnknownFields = unknownFields.Build();
  8016. return this;
  8017. default: {
  8018. if (!ParseUnknownField(input, unknownFields,
  8019. extensionRegistry, tag)) {
  8020. this.UnknownFields = unknownFields.Build();
  8021. return this;
  8022. }
  8023. break;
  8024. }
  8025. }
  8026. }
  8027. }
  8028. }
  8029. }
  8030. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8031. // Use TestReallyLargeTagNumber.CreateBuilder() to construct.
  8032. private TestReallyLargeTagNumber() {}
  8033. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8034. public static TestReallyLargeTagNumber DefaultInstance {
  8035. get { return defaultInstance; }
  8036. }
  8037. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8038. get { return defaultInstance; }
  8039. }
  8040. public static pbd::MessageDescriptor Descriptor {
  8041. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8042. }
  8043. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8044. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8045. }
  8046. // optional int32 a = 1;
  8047. private bool hasA;
  8048. private int a_ = 0;
  8049. public bool HasA {
  8050. get { return hasA; }
  8051. }
  8052. public int A {
  8053. get { return a_; }
  8054. }
  8055. // optional int32 bb = 268435455;
  8056. private bool hasBb;
  8057. private int bb_ = 0;
  8058. public bool HasBb {
  8059. get { return hasBb; }
  8060. }
  8061. public int Bb {
  8062. get { return bb_; }
  8063. }
  8064. public override bool IsInitialized {
  8065. get {
  8066. return true;
  8067. }
  8068. }
  8069. public override void WriteTo(pb::CodedOutputStream output) {
  8070. if (HasA) {
  8071. output.WriteInt32(1, A);
  8072. }
  8073. if (HasBb) {
  8074. output.WriteInt32(268435455, Bb);
  8075. }
  8076. UnknownFields.WriteTo(output);
  8077. }
  8078. private int memoizedSerializedSize = -1;
  8079. public override int SerializedSize {
  8080. get {
  8081. int size = memoizedSerializedSize;
  8082. if (size != -1) return size;
  8083. size = 0;
  8084. if (HasA) {
  8085. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8086. }
  8087. if (HasBb) {
  8088. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8089. }
  8090. size += UnknownFields.SerializedSize;
  8091. memoizedSerializedSize = size;
  8092. return size;
  8093. }
  8094. }
  8095. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8096. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8097. }
  8098. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8099. pb::ExtensionRegistry extensionRegistry) {
  8100. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8101. .BuildParsed();
  8102. }
  8103. public static self::TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8104. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8105. }
  8106. public static self::TestReallyLargeTagNumber parseFrom(byte[] data,
  8107. pb::ExtensionRegistry extensionRegistry) {
  8108. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8109. .BuildParsed();
  8110. }
  8111. public static self::TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8112. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8113. }
  8114. public static self::TestReallyLargeTagNumber ParseFrom(
  8115. global::System.IO.Stream input,
  8116. pb::ExtensionRegistry extensionRegistry) {
  8117. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8118. .BuildParsed();
  8119. }
  8120. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8121. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8122. }
  8123. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8124. pb::ExtensionRegistry extensionRegistry) {
  8125. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8126. .BuildParsed();
  8127. }
  8128. public static Builder CreateBuilder() { return new Builder(); }
  8129. public override IBuilder<self::TestReallyLargeTagNumber> CreateBuilderForType() { return new Builder(); }
  8130. public static Builder CreateBuilder(self::TestReallyLargeTagNumber prototype) {
  8131. return (Builder) new Builder().MergeFrom(prototype);
  8132. }
  8133. public sealed partial class Builder : pb::GeneratedBuilder<self::TestReallyLargeTagNumber, Builder> {
  8134. // Construct using self::TestReallyLargeTagNumber.CreateBuilder()
  8135. internal Builder() {}
  8136. self::TestReallyLargeTagNumber result = new self::TestReallyLargeTagNumber();
  8137. protected override self::TestReallyLargeTagNumber MessageBeingBuilt {
  8138. get { return result; }
  8139. }
  8140. public override IBuilder<self::TestReallyLargeTagNumber> Clear() {
  8141. result = new self::TestReallyLargeTagNumber();
  8142. return this;
  8143. }
  8144. public override IBuilder<self::TestReallyLargeTagNumber> Clone() {
  8145. return new Builder().MergeFrom(result);
  8146. }
  8147. public override pbd::MessageDescriptor DescriptorForType {
  8148. get { return self::TestReallyLargeTagNumber.Descriptor; }
  8149. }
  8150. public override self::TestReallyLargeTagNumber DefaultInstanceForType {
  8151. get { return self::TestReallyLargeTagNumber.DefaultInstance; }
  8152. }
  8153. public override self::TestReallyLargeTagNumber BuildPartial() {
  8154. self::TestReallyLargeTagNumber returnMe = result;
  8155. result = null;
  8156. return returnMe;
  8157. }
  8158. public override IBuilder MergeFrom(pb::IMessage other) {
  8159. if (other is self::TestReallyLargeTagNumber) {
  8160. return MergeFrom((self::TestReallyLargeTagNumber) other);
  8161. } else {
  8162. base.MergeFrom(other);
  8163. return this;
  8164. }
  8165. }
  8166. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(self::TestReallyLargeTagNumber other) {
  8167. if (other == self::TestReallyLargeTagNumber.DefaultInstance) return this;
  8168. if (other.HasA) {
  8169. A = other.A;
  8170. }
  8171. if (other.HasBb) {
  8172. Bb = other.Bb;
  8173. }
  8174. this.MergeUnknownFields(other.UnknownFields);
  8175. return this;
  8176. }
  8177. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(pb::CodedInputStream input) {
  8178. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8179. }
  8180. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8181. pb::UnknownFieldSet.Builder unknownFields =
  8182. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8183. while (true) {
  8184. uint tag = input.ReadTag();
  8185. switch (tag) {
  8186. case 0:
  8187. this.UnknownFields = unknownFields.Build();
  8188. return this;
  8189. default: {
  8190. if (!ParseUnknownField(input, unknownFields,
  8191. extensionRegistry, tag)) {
  8192. this.UnknownFields = unknownFields.Build();
  8193. return this;
  8194. }
  8195. break;
  8196. }
  8197. case 8: {
  8198. A = input.ReadInt32();
  8199. break;
  8200. }
  8201. case 2147483640: {
  8202. Bb = input.ReadInt32();
  8203. break;
  8204. }
  8205. }
  8206. }
  8207. }
  8208. // optional int32 a = 1;
  8209. public bool HasA {
  8210. get { return result.HasA; }
  8211. }
  8212. public int A {
  8213. get { return result.A; }
  8214. set { SetA(value); }
  8215. }
  8216. public Builder SetA(int value) {
  8217. result.hasA = true;
  8218. result.a_ = value;
  8219. return this;
  8220. }
  8221. public Builder ClearA() {
  8222. result.hasA = false;
  8223. result.a_ = 0;
  8224. return this;
  8225. }
  8226. // optional int32 bb = 268435455;
  8227. public bool HasBb {
  8228. get { return result.HasBb; }
  8229. }
  8230. public int Bb {
  8231. get { return result.Bb; }
  8232. set { SetBb(value); }
  8233. }
  8234. public Builder SetBb(int value) {
  8235. result.hasBb = true;
  8236. result.bb_ = value;
  8237. return this;
  8238. }
  8239. public Builder ClearBb() {
  8240. result.hasBb = false;
  8241. result.bb_ = 0;
  8242. return this;
  8243. }
  8244. }
  8245. }
  8246. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8247. // Use TestRecursiveMessage.CreateBuilder() to construct.
  8248. private TestRecursiveMessage() {}
  8249. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8250. public static TestRecursiveMessage DefaultInstance {
  8251. get { return defaultInstance; }
  8252. }
  8253. public override TestRecursiveMessage DefaultInstanceForType {
  8254. get { return defaultInstance; }
  8255. }
  8256. public static pbd::MessageDescriptor Descriptor {
  8257. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8258. }
  8259. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8260. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8261. }
  8262. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8263. private bool hasA;
  8264. private self::TestRecursiveMessage a_ = self::TestRecursiveMessage.DefaultInstance;
  8265. public bool HasA {
  8266. get { return hasA; }
  8267. }
  8268. public self::TestRecursiveMessage A {
  8269. get { return a_; }
  8270. }
  8271. // optional int32 i = 2;
  8272. private bool hasI;
  8273. private int i_ = 0;
  8274. public bool HasI {
  8275. get { return hasI; }
  8276. }
  8277. public int I {
  8278. get { return i_; }
  8279. }
  8280. public override bool IsInitialized {
  8281. get {
  8282. return true;
  8283. }
  8284. }
  8285. public override void WriteTo(pb::CodedOutputStream output) {
  8286. if (HasA) {
  8287. output.WriteMessage(1, A);
  8288. }
  8289. if (HasI) {
  8290. output.WriteInt32(2, I);
  8291. }
  8292. UnknownFields.WriteTo(output);
  8293. }
  8294. private int memoizedSerializedSize = -1;
  8295. public override int SerializedSize {
  8296. get {
  8297. int size = memoizedSerializedSize;
  8298. if (size != -1) return size;
  8299. size = 0;
  8300. if (HasA) {
  8301. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8302. }
  8303. if (HasI) {
  8304. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8305. }
  8306. size += UnknownFields.SerializedSize;
  8307. memoizedSerializedSize = size;
  8308. return size;
  8309. }
  8310. }
  8311. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8312. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8313. }
  8314. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data,
  8315. pb::ExtensionRegistry extensionRegistry) {
  8316. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8317. .BuildParsed();
  8318. }
  8319. public static self::TestRecursiveMessage ParseFrom(byte[] data) {
  8320. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8321. }
  8322. public static self::TestRecursiveMessage parseFrom(byte[] data,
  8323. pb::ExtensionRegistry extensionRegistry) {
  8324. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8325. .BuildParsed();
  8326. }
  8327. public static self::TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8328. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8329. }
  8330. public static self::TestRecursiveMessage ParseFrom(
  8331. global::System.IO.Stream input,
  8332. pb::ExtensionRegistry extensionRegistry) {
  8333. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8334. .BuildParsed();
  8335. }
  8336. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8337. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8338. }
  8339. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8340. pb::ExtensionRegistry extensionRegistry) {
  8341. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8342. .BuildParsed();
  8343. }
  8344. public static Builder CreateBuilder() { return new Builder(); }
  8345. public override IBuilder<self::TestRecursiveMessage> CreateBuilderForType() { return new Builder(); }
  8346. public static Builder CreateBuilder(self::TestRecursiveMessage prototype) {
  8347. return (Builder) new Builder().MergeFrom(prototype);
  8348. }
  8349. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRecursiveMessage, Builder> {
  8350. // Construct using self::TestRecursiveMessage.CreateBuilder()
  8351. internal Builder() {}
  8352. self::TestRecursiveMessage result = new self::TestRecursiveMessage();
  8353. protected override self::TestRecursiveMessage MessageBeingBuilt {
  8354. get { return result; }
  8355. }
  8356. public override IBuilder<self::TestRecursiveMessage> Clear() {
  8357. result = new self::TestRecursiveMessage();
  8358. return this;
  8359. }
  8360. public override IBuilder<self::TestRecursiveMessage> Clone() {
  8361. return new Builder().MergeFrom(result);
  8362. }
  8363. public override pbd::MessageDescriptor DescriptorForType {
  8364. get { return self::TestRecursiveMessage.Descriptor; }
  8365. }
  8366. public override self::TestRecursiveMessage DefaultInstanceForType {
  8367. get { return self::TestRecursiveMessage.DefaultInstance; }
  8368. }
  8369. public override self::TestRecursiveMessage BuildPartial() {
  8370. self::TestRecursiveMessage returnMe = result;
  8371. result = null;
  8372. return returnMe;
  8373. }
  8374. public override IBuilder MergeFrom(pb::IMessage other) {
  8375. if (other is self::TestRecursiveMessage) {
  8376. return MergeFrom((self::TestRecursiveMessage) other);
  8377. } else {
  8378. base.MergeFrom(other);
  8379. return this;
  8380. }
  8381. }
  8382. public override IBuilder<self::TestRecursiveMessage> MergeFrom(self::TestRecursiveMessage other) {
  8383. if (other == self::TestRecursiveMessage.DefaultInstance) return this;
  8384. if (other.HasA) {
  8385. MergeA(other.A);
  8386. }
  8387. if (other.HasI) {
  8388. I = other.I;
  8389. }
  8390. this.MergeUnknownFields(other.UnknownFields);
  8391. return this;
  8392. }
  8393. public override IBuilder<self::TestRecursiveMessage> MergeFrom(pb::CodedInputStream input) {
  8394. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8395. }
  8396. public override IBuilder<self::TestRecursiveMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8397. pb::UnknownFieldSet.Builder unknownFields =
  8398. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8399. while (true) {
  8400. uint tag = input.ReadTag();
  8401. switch (tag) {
  8402. case 0:
  8403. this.UnknownFields = unknownFields.Build();
  8404. return this;
  8405. default: {
  8406. if (!ParseUnknownField(input, unknownFields,
  8407. extensionRegistry, tag)) {
  8408. this.UnknownFields = unknownFields.Build();
  8409. return this;
  8410. }
  8411. break;
  8412. }
  8413. case 10: {
  8414. self::TestRecursiveMessage.Builder subBuilder = self::TestRecursiveMessage.CreateBuilder();
  8415. if (HasA) {
  8416. subBuilder.MergeFrom(A);
  8417. }
  8418. input.ReadMessage(subBuilder, extensionRegistry);
  8419. A = subBuilder.BuildPartial();
  8420. break;
  8421. }
  8422. case 16: {
  8423. I = input.ReadInt32();
  8424. break;
  8425. }
  8426. }
  8427. }
  8428. }
  8429. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8430. public bool HasA {
  8431. get { return result.HasA; }
  8432. }
  8433. public self::TestRecursiveMessage A {
  8434. get { return result.A; }
  8435. set { SetA(value); }
  8436. }
  8437. public Builder SetA(self::TestRecursiveMessage value) {
  8438. result.hasA = true;
  8439. result.a_ = value;
  8440. return this;
  8441. }
  8442. public Builder SetA(self::TestRecursiveMessage.Builder builderForValue) {
  8443. result.hasA = true;
  8444. result.a_ = builderForValue.Build();
  8445. return this;
  8446. }
  8447. public Builder MergeA(self::TestRecursiveMessage value) {
  8448. if (result.HasA &&
  8449. result.a_ != self::TestRecursiveMessage.DefaultInstance) {
  8450. result.a_ =
  8451. self::TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8452. } else {
  8453. result.a_ = value;
  8454. }
  8455. result.hasA = true;
  8456. return this;
  8457. }
  8458. public Builder ClearA() {
  8459. result.hasA = false;
  8460. result.a_ = self::TestRecursiveMessage.DefaultInstance;
  8461. return this;
  8462. }
  8463. // optional int32 i = 2;
  8464. public bool HasI {
  8465. get { return result.HasI; }
  8466. }
  8467. public int I {
  8468. get { return result.I; }
  8469. set { SetI(value); }
  8470. }
  8471. public Builder SetI(int value) {
  8472. result.hasI = true;
  8473. result.i_ = value;
  8474. return this;
  8475. }
  8476. public Builder ClearI() {
  8477. result.hasI = false;
  8478. result.i_ = 0;
  8479. return this;
  8480. }
  8481. }
  8482. }
  8483. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8484. // Use TestMutualRecursionA.CreateBuilder() to construct.
  8485. private TestMutualRecursionA() {}
  8486. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8487. public static TestMutualRecursionA DefaultInstance {
  8488. get { return defaultInstance; }
  8489. }
  8490. public override TestMutualRecursionA DefaultInstanceForType {
  8491. get { return defaultInstance; }
  8492. }
  8493. public static pbd::MessageDescriptor Descriptor {
  8494. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8495. }
  8496. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8497. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8498. }
  8499. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8500. private bool hasBb;
  8501. private self::TestMutualRecursionB bb_ = self::TestMutualRecursionB.DefaultInstance;
  8502. public bool HasBb {
  8503. get { return hasBb; }
  8504. }
  8505. public self::TestMutualRecursionB Bb {
  8506. get { return bb_; }
  8507. }
  8508. public override bool IsInitialized {
  8509. get {
  8510. return true;
  8511. }
  8512. }
  8513. public override void WriteTo(pb::CodedOutputStream output) {
  8514. if (HasBb) {
  8515. output.WriteMessage(1, Bb);
  8516. }
  8517. UnknownFields.WriteTo(output);
  8518. }
  8519. private int memoizedSerializedSize = -1;
  8520. public override int SerializedSize {
  8521. get {
  8522. int size = memoizedSerializedSize;
  8523. if (size != -1) return size;
  8524. size = 0;
  8525. if (HasBb) {
  8526. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8527. }
  8528. size += UnknownFields.SerializedSize;
  8529. memoizedSerializedSize = size;
  8530. return size;
  8531. }
  8532. }
  8533. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8534. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8535. }
  8536. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data,
  8537. pb::ExtensionRegistry extensionRegistry) {
  8538. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8539. .BuildParsed();
  8540. }
  8541. public static self::TestMutualRecursionA ParseFrom(byte[] data) {
  8542. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8543. }
  8544. public static self::TestMutualRecursionA parseFrom(byte[] data,
  8545. pb::ExtensionRegistry extensionRegistry) {
  8546. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8547. .BuildParsed();
  8548. }
  8549. public static self::TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8550. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8551. }
  8552. public static self::TestMutualRecursionA ParseFrom(
  8553. global::System.IO.Stream input,
  8554. pb::ExtensionRegistry extensionRegistry) {
  8555. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8556. .BuildParsed();
  8557. }
  8558. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8559. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8560. }
  8561. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8562. pb::ExtensionRegistry extensionRegistry) {
  8563. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8564. .BuildParsed();
  8565. }
  8566. public static Builder CreateBuilder() { return new Builder(); }
  8567. public override IBuilder<self::TestMutualRecursionA> CreateBuilderForType() { return new Builder(); }
  8568. public static Builder CreateBuilder(self::TestMutualRecursionA prototype) {
  8569. return (Builder) new Builder().MergeFrom(prototype);
  8570. }
  8571. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionA, Builder> {
  8572. // Construct using self::TestMutualRecursionA.CreateBuilder()
  8573. internal Builder() {}
  8574. self::TestMutualRecursionA result = new self::TestMutualRecursionA();
  8575. protected override self::TestMutualRecursionA MessageBeingBuilt {
  8576. get { return result; }
  8577. }
  8578. public override IBuilder<self::TestMutualRecursionA> Clear() {
  8579. result = new self::TestMutualRecursionA();
  8580. return this;
  8581. }
  8582. public override IBuilder<self::TestMutualRecursionA> Clone() {
  8583. return new Builder().MergeFrom(result);
  8584. }
  8585. public override pbd::MessageDescriptor DescriptorForType {
  8586. get { return self::TestMutualRecursionA.Descriptor; }
  8587. }
  8588. public override self::TestMutualRecursionA DefaultInstanceForType {
  8589. get { return self::TestMutualRecursionA.DefaultInstance; }
  8590. }
  8591. public override self::TestMutualRecursionA BuildPartial() {
  8592. self::TestMutualRecursionA returnMe = result;
  8593. result = null;
  8594. return returnMe;
  8595. }
  8596. public override IBuilder MergeFrom(pb::IMessage other) {
  8597. if (other is self::TestMutualRecursionA) {
  8598. return MergeFrom((self::TestMutualRecursionA) other);
  8599. } else {
  8600. base.MergeFrom(other);
  8601. return this;
  8602. }
  8603. }
  8604. public override IBuilder<self::TestMutualRecursionA> MergeFrom(self::TestMutualRecursionA other) {
  8605. if (other == self::TestMutualRecursionA.DefaultInstance) return this;
  8606. if (other.HasBb) {
  8607. MergeBb(other.Bb);
  8608. }
  8609. this.MergeUnknownFields(other.UnknownFields);
  8610. return this;
  8611. }
  8612. public override IBuilder<self::TestMutualRecursionA> MergeFrom(pb::CodedInputStream input) {
  8613. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8614. }
  8615. public override IBuilder<self::TestMutualRecursionA> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8616. pb::UnknownFieldSet.Builder unknownFields =
  8617. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8618. while (true) {
  8619. uint tag = input.ReadTag();
  8620. switch (tag) {
  8621. case 0:
  8622. this.UnknownFields = unknownFields.Build();
  8623. return this;
  8624. default: {
  8625. if (!ParseUnknownField(input, unknownFields,
  8626. extensionRegistry, tag)) {
  8627. this.UnknownFields = unknownFields.Build();
  8628. return this;
  8629. }
  8630. break;
  8631. }
  8632. case 10: {
  8633. self::TestMutualRecursionB.Builder subBuilder = self::TestMutualRecursionB.CreateBuilder();
  8634. if (HasBb) {
  8635. subBuilder.MergeFrom(Bb);
  8636. }
  8637. input.ReadMessage(subBuilder, extensionRegistry);
  8638. Bb = subBuilder.BuildPartial();
  8639. break;
  8640. }
  8641. }
  8642. }
  8643. }
  8644. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8645. public bool HasBb {
  8646. get { return result.HasBb; }
  8647. }
  8648. public self::TestMutualRecursionB Bb {
  8649. get { return result.Bb; }
  8650. set { SetBb(value); }
  8651. }
  8652. public Builder SetBb(self::TestMutualRecursionB value) {
  8653. result.hasBb = true;
  8654. result.bb_ = value;
  8655. return this;
  8656. }
  8657. public Builder SetBb(self::TestMutualRecursionB.Builder builderForValue) {
  8658. result.hasBb = true;
  8659. result.bb_ = builderForValue.Build();
  8660. return this;
  8661. }
  8662. public Builder MergeBb(self::TestMutualRecursionB value) {
  8663. if (result.HasBb &&
  8664. result.bb_ != self::TestMutualRecursionB.DefaultInstance) {
  8665. result.bb_ =
  8666. self::TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8667. } else {
  8668. result.bb_ = value;
  8669. }
  8670. result.hasBb = true;
  8671. return this;
  8672. }
  8673. public Builder ClearBb() {
  8674. result.hasBb = false;
  8675. result.bb_ = self::TestMutualRecursionB.DefaultInstance;
  8676. return this;
  8677. }
  8678. }
  8679. }
  8680. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8681. // Use TestMutualRecursionB.CreateBuilder() to construct.
  8682. private TestMutualRecursionB() {}
  8683. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8684. public static TestMutualRecursionB DefaultInstance {
  8685. get { return defaultInstance; }
  8686. }
  8687. public override TestMutualRecursionB DefaultInstanceForType {
  8688. get { return defaultInstance; }
  8689. }
  8690. public static pbd::MessageDescriptor Descriptor {
  8691. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8692. }
  8693. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8694. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8695. }
  8696. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8697. private bool hasA;
  8698. private self::TestMutualRecursionA a_ = self::TestMutualRecursionA.DefaultInstance;
  8699. public bool HasA {
  8700. get { return hasA; }
  8701. }
  8702. public self::TestMutualRecursionA A {
  8703. get { return a_; }
  8704. }
  8705. // optional int32 optional_int32 = 2;
  8706. private bool hasOptionalInt32;
  8707. private int optionalInt32_ = 0;
  8708. public bool HasOptionalInt32 {
  8709. get { return hasOptionalInt32; }
  8710. }
  8711. public int OptionalInt32 {
  8712. get { return optionalInt32_; }
  8713. }
  8714. public override bool IsInitialized {
  8715. get {
  8716. return true;
  8717. }
  8718. }
  8719. public override void WriteTo(pb::CodedOutputStream output) {
  8720. if (HasA) {
  8721. output.WriteMessage(1, A);
  8722. }
  8723. if (HasOptionalInt32) {
  8724. output.WriteInt32(2, OptionalInt32);
  8725. }
  8726. UnknownFields.WriteTo(output);
  8727. }
  8728. private int memoizedSerializedSize = -1;
  8729. public override int SerializedSize {
  8730. get {
  8731. int size = memoizedSerializedSize;
  8732. if (size != -1) return size;
  8733. size = 0;
  8734. if (HasA) {
  8735. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8736. }
  8737. if (HasOptionalInt32) {
  8738. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8739. }
  8740. size += UnknownFields.SerializedSize;
  8741. memoizedSerializedSize = size;
  8742. return size;
  8743. }
  8744. }
  8745. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8746. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8747. }
  8748. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data,
  8749. pb::ExtensionRegistry extensionRegistry) {
  8750. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8751. .BuildParsed();
  8752. }
  8753. public static self::TestMutualRecursionB ParseFrom(byte[] data) {
  8754. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8755. }
  8756. public static self::TestMutualRecursionB parseFrom(byte[] data,
  8757. pb::ExtensionRegistry extensionRegistry) {
  8758. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8759. .BuildParsed();
  8760. }
  8761. public static self::TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8762. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8763. }
  8764. public static self::TestMutualRecursionB ParseFrom(
  8765. global::System.IO.Stream input,
  8766. pb::ExtensionRegistry extensionRegistry) {
  8767. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8768. .BuildParsed();
  8769. }
  8770. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8771. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8772. }
  8773. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8774. pb::ExtensionRegistry extensionRegistry) {
  8775. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8776. .BuildParsed();
  8777. }
  8778. public static Builder CreateBuilder() { return new Builder(); }
  8779. public override IBuilder<self::TestMutualRecursionB> CreateBuilderForType() { return new Builder(); }
  8780. public static Builder CreateBuilder(self::TestMutualRecursionB prototype) {
  8781. return (Builder) new Builder().MergeFrom(prototype);
  8782. }
  8783. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionB, Builder> {
  8784. // Construct using self::TestMutualRecursionB.CreateBuilder()
  8785. internal Builder() {}
  8786. self::TestMutualRecursionB result = new self::TestMutualRecursionB();
  8787. protected override self::TestMutualRecursionB MessageBeingBuilt {
  8788. get { return result; }
  8789. }
  8790. public override IBuilder<self::TestMutualRecursionB> Clear() {
  8791. result = new self::TestMutualRecursionB();
  8792. return this;
  8793. }
  8794. public override IBuilder<self::TestMutualRecursionB> Clone() {
  8795. return new Builder().MergeFrom(result);
  8796. }
  8797. public override pbd::MessageDescriptor DescriptorForType {
  8798. get { return self::TestMutualRecursionB.Descriptor; }
  8799. }
  8800. public override self::TestMutualRecursionB DefaultInstanceForType {
  8801. get { return self::TestMutualRecursionB.DefaultInstance; }
  8802. }
  8803. public override self::TestMutualRecursionB BuildPartial() {
  8804. self::TestMutualRecursionB returnMe = result;
  8805. result = null;
  8806. return returnMe;
  8807. }
  8808. public override IBuilder MergeFrom(pb::IMessage other) {
  8809. if (other is self::TestMutualRecursionB) {
  8810. return MergeFrom((self::TestMutualRecursionB) other);
  8811. } else {
  8812. base.MergeFrom(other);
  8813. return this;
  8814. }
  8815. }
  8816. public override IBuilder<self::TestMutualRecursionB> MergeFrom(self::TestMutualRecursionB other) {
  8817. if (other == self::TestMutualRecursionB.DefaultInstance) return this;
  8818. if (other.HasA) {
  8819. MergeA(other.A);
  8820. }
  8821. if (other.HasOptionalInt32) {
  8822. OptionalInt32 = other.OptionalInt32;
  8823. }
  8824. this.MergeUnknownFields(other.UnknownFields);
  8825. return this;
  8826. }
  8827. public override IBuilder<self::TestMutualRecursionB> MergeFrom(pb::CodedInputStream input) {
  8828. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8829. }
  8830. public override IBuilder<self::TestMutualRecursionB> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8831. pb::UnknownFieldSet.Builder unknownFields =
  8832. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8833. while (true) {
  8834. uint tag = input.ReadTag();
  8835. switch (tag) {
  8836. case 0:
  8837. this.UnknownFields = unknownFields.Build();
  8838. return this;
  8839. default: {
  8840. if (!ParseUnknownField(input, unknownFields,
  8841. extensionRegistry, tag)) {
  8842. this.UnknownFields = unknownFields.Build();
  8843. return this;
  8844. }
  8845. break;
  8846. }
  8847. case 10: {
  8848. self::TestMutualRecursionA.Builder subBuilder = self::TestMutualRecursionA.CreateBuilder();
  8849. if (HasA) {
  8850. subBuilder.MergeFrom(A);
  8851. }
  8852. input.ReadMessage(subBuilder, extensionRegistry);
  8853. A = subBuilder.BuildPartial();
  8854. break;
  8855. }
  8856. case 16: {
  8857. OptionalInt32 = input.ReadInt32();
  8858. break;
  8859. }
  8860. }
  8861. }
  8862. }
  8863. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8864. public bool HasA {
  8865. get { return result.HasA; }
  8866. }
  8867. public self::TestMutualRecursionA A {
  8868. get { return result.A; }
  8869. set { SetA(value); }
  8870. }
  8871. public Builder SetA(self::TestMutualRecursionA value) {
  8872. result.hasA = true;
  8873. result.a_ = value;
  8874. return this;
  8875. }
  8876. public Builder SetA(self::TestMutualRecursionA.Builder builderForValue) {
  8877. result.hasA = true;
  8878. result.a_ = builderForValue.Build();
  8879. return this;
  8880. }
  8881. public Builder MergeA(self::TestMutualRecursionA value) {
  8882. if (result.HasA &&
  8883. result.a_ != self::TestMutualRecursionA.DefaultInstance) {
  8884. result.a_ =
  8885. self::TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8886. } else {
  8887. result.a_ = value;
  8888. }
  8889. result.hasA = true;
  8890. return this;
  8891. }
  8892. public Builder ClearA() {
  8893. result.hasA = false;
  8894. result.a_ = self::TestMutualRecursionA.DefaultInstance;
  8895. return this;
  8896. }
  8897. // optional int32 optional_int32 = 2;
  8898. public bool HasOptionalInt32 {
  8899. get { return result.HasOptionalInt32; }
  8900. }
  8901. public int OptionalInt32 {
  8902. get { return result.OptionalInt32; }
  8903. set { SetOptionalInt32(value); }
  8904. }
  8905. public Builder SetOptionalInt32(int value) {
  8906. result.hasOptionalInt32 = true;
  8907. result.optionalInt32_ = value;
  8908. return this;
  8909. }
  8910. public Builder ClearOptionalInt32() {
  8911. result.hasOptionalInt32 = false;
  8912. result.optionalInt32_ = 0;
  8913. return this;
  8914. }
  8915. }
  8916. }
  8917. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8918. // Use TestDupFieldNumber.CreateBuilder() to construct.
  8919. private TestDupFieldNumber() {}
  8920. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8921. public static TestDupFieldNumber DefaultInstance {
  8922. get { return defaultInstance; }
  8923. }
  8924. public override TestDupFieldNumber DefaultInstanceForType {
  8925. get { return defaultInstance; }
  8926. }
  8927. public static pbd::MessageDescriptor Descriptor {
  8928. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8929. }
  8930. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8931. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8932. }
  8933. #region Nested types
  8934. public static class Types {
  8935. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8936. // Use Foo.CreateBuilder() to construct.
  8937. private Foo() {}
  8938. private static readonly Foo defaultInstance = new Foo();
  8939. public static Foo DefaultInstance {
  8940. get { return defaultInstance; }
  8941. }
  8942. public override Foo DefaultInstanceForType {
  8943. get { return defaultInstance; }
  8944. }
  8945. public static pbd::MessageDescriptor Descriptor {
  8946. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8947. }
  8948. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8949. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8950. }
  8951. // optional int32 a = 1;
  8952. private bool hasA;
  8953. private int a_ = 0;
  8954. public bool HasA {
  8955. get { return hasA; }
  8956. }
  8957. public int A {
  8958. get { return a_; }
  8959. }
  8960. public override bool IsInitialized {
  8961. get {
  8962. return true;
  8963. }
  8964. }
  8965. public override void WriteTo(pb::CodedOutputStream output) {
  8966. if (HasA) {
  8967. output.WriteInt32(1, A);
  8968. }
  8969. UnknownFields.WriteTo(output);
  8970. }
  8971. private int memoizedSerializedSize = -1;
  8972. public override int SerializedSize {
  8973. get {
  8974. int size = memoizedSerializedSize;
  8975. if (size != -1) return size;
  8976. size = 0;
  8977. if (HasA) {
  8978. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8979. }
  8980. size += UnknownFields.SerializedSize;
  8981. memoizedSerializedSize = size;
  8982. return size;
  8983. }
  8984. }
  8985. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8986. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8987. }
  8988. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  8989. pb::ExtensionRegistry extensionRegistry) {
  8990. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8991. .BuildParsed();
  8992. }
  8993. public static self::TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  8994. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8995. }
  8996. public static self::TestDupFieldNumber.Types.Foo parseFrom(byte[] data,
  8997. pb::ExtensionRegistry extensionRegistry) {
  8998. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8999. .BuildParsed();
  9000. }
  9001. public static self::TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9002. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9003. }
  9004. public static self::TestDupFieldNumber.Types.Foo ParseFrom(
  9005. global::System.IO.Stream input,
  9006. pb::ExtensionRegistry extensionRegistry) {
  9007. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9008. .BuildParsed();
  9009. }
  9010. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9011. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9012. }
  9013. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9014. pb::ExtensionRegistry extensionRegistry) {
  9015. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9016. .BuildParsed();
  9017. }
  9018. public static Builder CreateBuilder() { return new Builder(); }
  9019. public override IBuilder<self::TestDupFieldNumber.Types.Foo> CreateBuilderForType() { return new Builder(); }
  9020. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Foo prototype) {
  9021. return (Builder) new Builder().MergeFrom(prototype);
  9022. }
  9023. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Foo, Builder> {
  9024. // Construct using self::TestDupFieldNumber.Types.Foo.CreateBuilder()
  9025. internal Builder() {}
  9026. self::TestDupFieldNumber.Types.Foo result = new self::TestDupFieldNumber.Types.Foo();
  9027. protected override self::TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9028. get { return result; }
  9029. }
  9030. public override IBuilder<self::TestDupFieldNumber.Types.Foo> Clear() {
  9031. result = new self::TestDupFieldNumber.Types.Foo();
  9032. return this;
  9033. }
  9034. public override IBuilder<self::TestDupFieldNumber.Types.Foo> Clone() {
  9035. return new Builder().MergeFrom(result);
  9036. }
  9037. public override pbd::MessageDescriptor DescriptorForType {
  9038. get { return self::TestDupFieldNumber.Types.Foo.Descriptor; }
  9039. }
  9040. public override self::TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9041. get { return self::TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9042. }
  9043. public override self::TestDupFieldNumber.Types.Foo BuildPartial() {
  9044. self::TestDupFieldNumber.Types.Foo returnMe = result;
  9045. result = null;
  9046. return returnMe;
  9047. }
  9048. public override IBuilder MergeFrom(pb::IMessage other) {
  9049. if (other is self::TestDupFieldNumber.Types.Foo) {
  9050. return MergeFrom((self::TestDupFieldNumber.Types.Foo) other);
  9051. } else {
  9052. base.MergeFrom(other);
  9053. return this;
  9054. }
  9055. }
  9056. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(self::TestDupFieldNumber.Types.Foo other) {
  9057. if (other == self::TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9058. if (other.HasA) {
  9059. A = other.A;
  9060. }
  9061. this.MergeUnknownFields(other.UnknownFields);
  9062. return this;
  9063. }
  9064. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(pb::CodedInputStream input) {
  9065. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9066. }
  9067. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9068. pb::UnknownFieldSet.Builder unknownFields =
  9069. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9070. while (true) {
  9071. uint tag = input.ReadTag();
  9072. switch (tag) {
  9073. case 0:
  9074. this.UnknownFields = unknownFields.Build();
  9075. return this;
  9076. default: {
  9077. if (!ParseUnknownField(input, unknownFields,
  9078. extensionRegistry, tag)) {
  9079. this.UnknownFields = unknownFields.Build();
  9080. return this;
  9081. }
  9082. break;
  9083. }
  9084. case 8: {
  9085. A = input.ReadInt32();
  9086. break;
  9087. }
  9088. }
  9089. }
  9090. }
  9091. // optional int32 a = 1;
  9092. public bool HasA {
  9093. get { return result.HasA; }
  9094. }
  9095. public int A {
  9096. get { return result.A; }
  9097. set { SetA(value); }
  9098. }
  9099. public Builder SetA(int value) {
  9100. result.hasA = true;
  9101. result.a_ = value;
  9102. return this;
  9103. }
  9104. public Builder ClearA() {
  9105. result.hasA = false;
  9106. result.a_ = 0;
  9107. return this;
  9108. }
  9109. }
  9110. }
  9111. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9112. // Use Bar.CreateBuilder() to construct.
  9113. private Bar() {}
  9114. private static readonly Bar defaultInstance = new Bar();
  9115. public static Bar DefaultInstance {
  9116. get { return defaultInstance; }
  9117. }
  9118. public override Bar DefaultInstanceForType {
  9119. get { return defaultInstance; }
  9120. }
  9121. public static pbd::MessageDescriptor Descriptor {
  9122. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9123. }
  9124. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9125. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9126. }
  9127. // optional int32 a = 1;
  9128. private bool hasA;
  9129. private int a_ = 0;
  9130. public bool HasA {
  9131. get { return hasA; }
  9132. }
  9133. public int A {
  9134. get { return a_; }
  9135. }
  9136. public override bool IsInitialized {
  9137. get {
  9138. return true;
  9139. }
  9140. }
  9141. public override void WriteTo(pb::CodedOutputStream output) {
  9142. if (HasA) {
  9143. output.WriteInt32(1, A);
  9144. }
  9145. UnknownFields.WriteTo(output);
  9146. }
  9147. private int memoizedSerializedSize = -1;
  9148. public override int SerializedSize {
  9149. get {
  9150. int size = memoizedSerializedSize;
  9151. if (size != -1) return size;
  9152. size = 0;
  9153. if (HasA) {
  9154. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9155. }
  9156. size += UnknownFields.SerializedSize;
  9157. memoizedSerializedSize = size;
  9158. return size;
  9159. }
  9160. }
  9161. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9162. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9163. }
  9164. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9165. pb::ExtensionRegistry extensionRegistry) {
  9166. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9167. .BuildParsed();
  9168. }
  9169. public static self::TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9170. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9171. }
  9172. public static self::TestDupFieldNumber.Types.Bar parseFrom(byte[] data,
  9173. pb::ExtensionRegistry extensionRegistry) {
  9174. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9175. .BuildParsed();
  9176. }
  9177. public static self::TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9178. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9179. }
  9180. public static self::TestDupFieldNumber.Types.Bar ParseFrom(
  9181. global::System.IO.Stream input,
  9182. pb::ExtensionRegistry extensionRegistry) {
  9183. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9184. .BuildParsed();
  9185. }
  9186. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9187. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9188. }
  9189. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9190. pb::ExtensionRegistry extensionRegistry) {
  9191. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9192. .BuildParsed();
  9193. }
  9194. public static Builder CreateBuilder() { return new Builder(); }
  9195. public override IBuilder<self::TestDupFieldNumber.Types.Bar> CreateBuilderForType() { return new Builder(); }
  9196. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Bar prototype) {
  9197. return (Builder) new Builder().MergeFrom(prototype);
  9198. }
  9199. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Bar, Builder> {
  9200. // Construct using self::TestDupFieldNumber.Types.Bar.CreateBuilder()
  9201. internal Builder() {}
  9202. self::TestDupFieldNumber.Types.Bar result = new self::TestDupFieldNumber.Types.Bar();
  9203. protected override self::TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9204. get { return result; }
  9205. }
  9206. public override IBuilder<self::TestDupFieldNumber.Types.Bar> Clear() {
  9207. result = new self::TestDupFieldNumber.Types.Bar();
  9208. return this;
  9209. }
  9210. public override IBuilder<self::TestDupFieldNumber.Types.Bar> Clone() {
  9211. return new Builder().MergeFrom(result);
  9212. }
  9213. public override pbd::MessageDescriptor DescriptorForType {
  9214. get { return self::TestDupFieldNumber.Types.Bar.Descriptor; }
  9215. }
  9216. public override self::TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9217. get { return self::TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9218. }
  9219. public override self::TestDupFieldNumber.Types.Bar BuildPartial() {
  9220. self::TestDupFieldNumber.Types.Bar returnMe = result;
  9221. result = null;
  9222. return returnMe;
  9223. }
  9224. public override IBuilder MergeFrom(pb::IMessage other) {
  9225. if (other is self::TestDupFieldNumber.Types.Bar) {
  9226. return MergeFrom((self::TestDupFieldNumber.Types.Bar) other);
  9227. } else {
  9228. base.MergeFrom(other);
  9229. return this;
  9230. }
  9231. }
  9232. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(self::TestDupFieldNumber.Types.Bar other) {
  9233. if (other == self::TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9234. if (other.HasA) {
  9235. A = other.A;
  9236. }
  9237. this.MergeUnknownFields(other.UnknownFields);
  9238. return this;
  9239. }
  9240. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(pb::CodedInputStream input) {
  9241. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9242. }
  9243. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9244. pb::UnknownFieldSet.Builder unknownFields =
  9245. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9246. while (true) {
  9247. uint tag = input.ReadTag();
  9248. switch (tag) {
  9249. case 0:
  9250. this.UnknownFields = unknownFields.Build();
  9251. return this;
  9252. default: {
  9253. if (!ParseUnknownField(input, unknownFields,
  9254. extensionRegistry, tag)) {
  9255. this.UnknownFields = unknownFields.Build();
  9256. return this;
  9257. }
  9258. break;
  9259. }
  9260. case 8: {
  9261. A = input.ReadInt32();
  9262. break;
  9263. }
  9264. }
  9265. }
  9266. }
  9267. // optional int32 a = 1;
  9268. public bool HasA {
  9269. get { return result.HasA; }
  9270. }
  9271. public int A {
  9272. get { return result.A; }
  9273. set { SetA(value); }
  9274. }
  9275. public Builder SetA(int value) {
  9276. result.hasA = true;
  9277. result.a_ = value;
  9278. return this;
  9279. }
  9280. public Builder ClearA() {
  9281. result.hasA = false;
  9282. result.a_ = 0;
  9283. return this;
  9284. }
  9285. }
  9286. }
  9287. }
  9288. #endregion
  9289. // optional int32 a = 1;
  9290. private bool hasA;
  9291. private int a_ = 0;
  9292. public bool HasA {
  9293. get { return hasA; }
  9294. }
  9295. public int A {
  9296. get { return a_; }
  9297. }
  9298. // optional group Foo = 2 {
  9299. private bool hasFoo;
  9300. private self::TestDupFieldNumber.Types.Foo foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9301. public bool HasFoo {
  9302. get { return hasFoo; }
  9303. }
  9304. public self::TestDupFieldNumber.Types.Foo Foo {
  9305. get { return foo_; }
  9306. }
  9307. // optional group Bar = 3 {
  9308. private bool hasBar;
  9309. private self::TestDupFieldNumber.Types.Bar bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9310. public bool HasBar {
  9311. get { return hasBar; }
  9312. }
  9313. public self::TestDupFieldNumber.Types.Bar Bar {
  9314. get { return bar_; }
  9315. }
  9316. public override bool IsInitialized {
  9317. get {
  9318. return true;
  9319. }
  9320. }
  9321. public override void WriteTo(pb::CodedOutputStream output) {
  9322. if (HasA) {
  9323. output.WriteInt32(1, A);
  9324. }
  9325. if (HasFoo) {
  9326. output.WriteGroup(2, Foo);
  9327. }
  9328. if (HasBar) {
  9329. output.WriteGroup(3, Bar);
  9330. }
  9331. UnknownFields.WriteTo(output);
  9332. }
  9333. private int memoizedSerializedSize = -1;
  9334. public override int SerializedSize {
  9335. get {
  9336. int size = memoizedSerializedSize;
  9337. if (size != -1) return size;
  9338. size = 0;
  9339. if (HasA) {
  9340. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9341. }
  9342. if (HasFoo) {
  9343. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9344. }
  9345. if (HasBar) {
  9346. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9347. }
  9348. size += UnknownFields.SerializedSize;
  9349. memoizedSerializedSize = size;
  9350. return size;
  9351. }
  9352. }
  9353. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9354. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9355. }
  9356. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data,
  9357. pb::ExtensionRegistry extensionRegistry) {
  9358. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9359. .BuildParsed();
  9360. }
  9361. public static self::TestDupFieldNumber ParseFrom(byte[] data) {
  9362. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9363. }
  9364. public static self::TestDupFieldNumber parseFrom(byte[] data,
  9365. pb::ExtensionRegistry extensionRegistry) {
  9366. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9367. .BuildParsed();
  9368. }
  9369. public static self::TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9370. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9371. }
  9372. public static self::TestDupFieldNumber ParseFrom(
  9373. global::System.IO.Stream input,
  9374. pb::ExtensionRegistry extensionRegistry) {
  9375. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9376. .BuildParsed();
  9377. }
  9378. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9379. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9380. }
  9381. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9382. pb::ExtensionRegistry extensionRegistry) {
  9383. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9384. .BuildParsed();
  9385. }
  9386. public static Builder CreateBuilder() { return new Builder(); }
  9387. public override IBuilder<self::TestDupFieldNumber> CreateBuilderForType() { return new Builder(); }
  9388. public static Builder CreateBuilder(self::TestDupFieldNumber prototype) {
  9389. return (Builder) new Builder().MergeFrom(prototype);
  9390. }
  9391. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber, Builder> {
  9392. // Construct using self::TestDupFieldNumber.CreateBuilder()
  9393. internal Builder() {}
  9394. self::TestDupFieldNumber result = new self::TestDupFieldNumber();
  9395. protected override self::TestDupFieldNumber MessageBeingBuilt {
  9396. get { return result; }
  9397. }
  9398. public override IBuilder<self::TestDupFieldNumber> Clear() {
  9399. result = new self::TestDupFieldNumber();
  9400. return this;
  9401. }
  9402. public override IBuilder<self::TestDupFieldNumber> Clone() {
  9403. return new Builder().MergeFrom(result);
  9404. }
  9405. public override pbd::MessageDescriptor DescriptorForType {
  9406. get { return self::TestDupFieldNumber.Descriptor; }
  9407. }
  9408. public override self::TestDupFieldNumber DefaultInstanceForType {
  9409. get { return self::TestDupFieldNumber.DefaultInstance; }
  9410. }
  9411. public override self::TestDupFieldNumber BuildPartial() {
  9412. self::TestDupFieldNumber returnMe = result;
  9413. result = null;
  9414. return returnMe;
  9415. }
  9416. public override IBuilder MergeFrom(pb::IMessage other) {
  9417. if (other is self::TestDupFieldNumber) {
  9418. return MergeFrom((self::TestDupFieldNumber) other);
  9419. } else {
  9420. base.MergeFrom(other);
  9421. return this;
  9422. }
  9423. }
  9424. public override IBuilder<self::TestDupFieldNumber> MergeFrom(self::TestDupFieldNumber other) {
  9425. if (other == self::TestDupFieldNumber.DefaultInstance) return this;
  9426. if (other.HasA) {
  9427. A = other.A;
  9428. }
  9429. if (other.HasFoo) {
  9430. MergeFoo(other.Foo);
  9431. }
  9432. if (other.HasBar) {
  9433. MergeBar(other.Bar);
  9434. }
  9435. this.MergeUnknownFields(other.UnknownFields);
  9436. return this;
  9437. }
  9438. public override IBuilder<self::TestDupFieldNumber> MergeFrom(pb::CodedInputStream input) {
  9439. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9440. }
  9441. public override IBuilder<self::TestDupFieldNumber> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9442. pb::UnknownFieldSet.Builder unknownFields =
  9443. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9444. while (true) {
  9445. uint tag = input.ReadTag();
  9446. switch (tag) {
  9447. case 0:
  9448. this.UnknownFields = unknownFields.Build();
  9449. return this;
  9450. default: {
  9451. if (!ParseUnknownField(input, unknownFields,
  9452. extensionRegistry, tag)) {
  9453. this.UnknownFields = unknownFields.Build();
  9454. return this;
  9455. }
  9456. break;
  9457. }
  9458. case 8: {
  9459. A = input.ReadInt32();
  9460. break;
  9461. }
  9462. case 19: {
  9463. self::TestDupFieldNumber.Types.Foo.Builder subBuilder = self::TestDupFieldNumber.Types.Foo.CreateBuilder();
  9464. if (HasFoo) {
  9465. subBuilder.MergeFrom(Foo);
  9466. }
  9467. input.ReadGroup(2, subBuilder, extensionRegistry);
  9468. Foo = subBuilder.BuildPartial();
  9469. break;
  9470. }
  9471. case 27: {
  9472. self::TestDupFieldNumber.Types.Bar.Builder subBuilder = self::TestDupFieldNumber.Types.Bar.CreateBuilder();
  9473. if (HasBar) {
  9474. subBuilder.MergeFrom(Bar);
  9475. }
  9476. input.ReadGroup(3, subBuilder, extensionRegistry);
  9477. Bar = subBuilder.BuildPartial();
  9478. break;
  9479. }
  9480. }
  9481. }
  9482. }
  9483. // optional int32 a = 1;
  9484. public bool HasA {
  9485. get { return result.HasA; }
  9486. }
  9487. public int A {
  9488. get { return result.A; }
  9489. set { SetA(value); }
  9490. }
  9491. public Builder SetA(int value) {
  9492. result.hasA = true;
  9493. result.a_ = value;
  9494. return this;
  9495. }
  9496. public Builder ClearA() {
  9497. result.hasA = false;
  9498. result.a_ = 0;
  9499. return this;
  9500. }
  9501. // optional group Foo = 2 {
  9502. public bool HasFoo {
  9503. get { return result.HasFoo; }
  9504. }
  9505. public self::TestDupFieldNumber.Types.Foo Foo {
  9506. get { return result.Foo; }
  9507. set { SetFoo(value); }
  9508. }
  9509. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo value) {
  9510. result.hasFoo = true;
  9511. result.foo_ = value;
  9512. return this;
  9513. }
  9514. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9515. result.hasFoo = true;
  9516. result.foo_ = builderForValue.Build();
  9517. return this;
  9518. }
  9519. public Builder MergeFoo(self::TestDupFieldNumber.Types.Foo value) {
  9520. if (result.HasFoo &&
  9521. result.foo_ != self::TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9522. result.foo_ =
  9523. self::TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9524. } else {
  9525. result.foo_ = value;
  9526. }
  9527. result.hasFoo = true;
  9528. return this;
  9529. }
  9530. public Builder ClearFoo() {
  9531. result.hasFoo = false;
  9532. result.foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9533. return this;
  9534. }
  9535. // optional group Bar = 3 {
  9536. public bool HasBar {
  9537. get { return result.HasBar; }
  9538. }
  9539. public self::TestDupFieldNumber.Types.Bar Bar {
  9540. get { return result.Bar; }
  9541. set { SetBar(value); }
  9542. }
  9543. public Builder SetBar(self::TestDupFieldNumber.Types.Bar value) {
  9544. result.hasBar = true;
  9545. result.bar_ = value;
  9546. return this;
  9547. }
  9548. public Builder SetBar(self::TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9549. result.hasBar = true;
  9550. result.bar_ = builderForValue.Build();
  9551. return this;
  9552. }
  9553. public Builder MergeBar(self::TestDupFieldNumber.Types.Bar value) {
  9554. if (result.HasBar &&
  9555. result.bar_ != self::TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9556. result.bar_ =
  9557. self::TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9558. } else {
  9559. result.bar_ = value;
  9560. }
  9561. result.hasBar = true;
  9562. return this;
  9563. }
  9564. public Builder ClearBar() {
  9565. result.hasBar = false;
  9566. result.bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9567. return this;
  9568. }
  9569. }
  9570. }
  9571. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9572. // Use TestNestedMessageHasBits.CreateBuilder() to construct.
  9573. private TestNestedMessageHasBits() {}
  9574. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9575. public static TestNestedMessageHasBits DefaultInstance {
  9576. get { return defaultInstance; }
  9577. }
  9578. public override TestNestedMessageHasBits DefaultInstanceForType {
  9579. get { return defaultInstance; }
  9580. }
  9581. public static pbd::MessageDescriptor Descriptor {
  9582. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9583. }
  9584. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9585. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9586. }
  9587. #region Nested types
  9588. public static class Types {
  9589. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9590. // Use NestedMessage.CreateBuilder() to construct.
  9591. private NestedMessage() {}
  9592. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9593. public static NestedMessage DefaultInstance {
  9594. get { return defaultInstance; }
  9595. }
  9596. public override NestedMessage DefaultInstanceForType {
  9597. get { return defaultInstance; }
  9598. }
  9599. public static pbd::MessageDescriptor Descriptor {
  9600. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9601. }
  9602. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9603. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9604. }
  9605. // repeated int32 nestedmessage_repeated_int32 = 1;
  9606. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9607. public scg::IList<int> NestedmessageRepeatedInt32List {
  9608. get { return nestedmessageRepeatedInt32_; }
  9609. }
  9610. public int NestedmessageRepeatedInt32Count {
  9611. get { return nestedmessageRepeatedInt32_.Count; }
  9612. }
  9613. public int GetNestedmessageRepeatedInt32(int index) {
  9614. return nestedmessageRepeatedInt32_[index];
  9615. }
  9616. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9617. private scg::IList<self::ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9618. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9619. get { return nestedmessageRepeatedForeignmessage_; }
  9620. }
  9621. public int NestedmessageRepeatedForeignmessageCount
  9622. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9623. }
  9624. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9625. return nestedmessageRepeatedForeignmessage_ [index];
  9626. }
  9627. public override bool IsInitialized {
  9628. get {
  9629. return true;
  9630. }
  9631. }
  9632. public override void WriteTo(pb::CodedOutputStream output) {
  9633. foreach (int element in NestedmessageRepeatedInt32List) {
  9634. output.WriteInt32(1, element);
  9635. }
  9636. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9637. output.WriteMessage(2, element);
  9638. }
  9639. UnknownFields.WriteTo(output);
  9640. }
  9641. private int memoizedSerializedSize = -1;
  9642. public override int SerializedSize {
  9643. get {
  9644. int size = memoizedSerializedSize;
  9645. if (size != -1) return size;
  9646. size = 0;
  9647. foreach (int element in NestedmessageRepeatedInt32List) {
  9648. size += pb::CodedOutputStream
  9649. .ComputeInt32Size(1, element);
  9650. }
  9651. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9652. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9653. }
  9654. size += UnknownFields.SerializedSize;
  9655. memoizedSerializedSize = size;
  9656. return size;
  9657. }
  9658. }
  9659. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9660. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9661. }
  9662. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9663. pb::ExtensionRegistry extensionRegistry) {
  9664. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9665. .BuildParsed();
  9666. }
  9667. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9668. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9669. }
  9670. public static self::TestNestedMessageHasBits.Types.NestedMessage parseFrom(byte[] data,
  9671. pb::ExtensionRegistry extensionRegistry) {
  9672. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9673. .BuildParsed();
  9674. }
  9675. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9676. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9677. }
  9678. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9679. global::System.IO.Stream input,
  9680. pb::ExtensionRegistry extensionRegistry) {
  9681. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9682. .BuildParsed();
  9683. }
  9684. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9685. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9686. }
  9687. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9688. pb::ExtensionRegistry extensionRegistry) {
  9689. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9690. .BuildParsed();
  9691. }
  9692. public static Builder CreateBuilder() { return new Builder(); }
  9693. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> CreateBuilderForType() { return new Builder(); }
  9694. public static Builder CreateBuilder(self::TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9695. return (Builder) new Builder().MergeFrom(prototype);
  9696. }
  9697. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9698. // Construct using self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9699. internal Builder() {}
  9700. self::TestNestedMessageHasBits.Types.NestedMessage result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9701. protected override self::TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9702. get { return result; }
  9703. }
  9704. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> Clear() {
  9705. result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9706. return this;
  9707. }
  9708. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> Clone() {
  9709. return new Builder().MergeFrom(result);
  9710. }
  9711. public override pbd::MessageDescriptor DescriptorForType {
  9712. get { return self::TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9713. }
  9714. public override self::TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9715. get { return self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9716. }
  9717. public override self::TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9718. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9719. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  9720. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9721. }
  9722. self::TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9723. result = null;
  9724. return returnMe;
  9725. }
  9726. public override IBuilder MergeFrom(pb::IMessage other) {
  9727. if (other is self::TestNestedMessageHasBits.Types.NestedMessage) {
  9728. return MergeFrom((self::TestNestedMessageHasBits.Types.NestedMessage) other);
  9729. } else {
  9730. base.MergeFrom(other);
  9731. return this;
  9732. }
  9733. }
  9734. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(self::TestNestedMessageHasBits.Types.NestedMessage other) {
  9735. if (other == self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9736. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9737. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9738. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9739. }
  9740. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9741. }
  9742. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9743. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9744. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9745. }
  9746. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9747. }
  9748. this.MergeUnknownFields(other.UnknownFields);
  9749. return this;
  9750. }
  9751. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(pb::CodedInputStream input) {
  9752. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9753. }
  9754. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9755. pb::UnknownFieldSet.Builder unknownFields =
  9756. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9757. while (true) {
  9758. uint tag = input.ReadTag();
  9759. switch (tag) {
  9760. case 0:
  9761. this.UnknownFields = unknownFields.Build();
  9762. return this;
  9763. default: {
  9764. if (!ParseUnknownField(input, unknownFields,
  9765. extensionRegistry, tag)) {
  9766. this.UnknownFields = unknownFields.Build();
  9767. return this;
  9768. }
  9769. break;
  9770. }
  9771. case 8: {
  9772. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9773. break;
  9774. }
  9775. case 18: {
  9776. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  9777. input.ReadMessage(subBuilder, extensionRegistry);
  9778. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9779. break;
  9780. }
  9781. }
  9782. }
  9783. }
  9784. // repeated int32 nestedmessage_repeated_int32 = 1;
  9785. public scg::IList<int> NestedmessageRepeatedInt32List {
  9786. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9787. }
  9788. public int NestedmessageRepeatedInt32Count {
  9789. get { return result.NestedmessageRepeatedInt32Count; }
  9790. }
  9791. public int GetNestedmessageRepeatedInt32(int index) {
  9792. return result.GetNestedmessageRepeatedInt32(index);
  9793. }
  9794. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9795. result.nestedmessageRepeatedInt32_[index] = value;
  9796. return this;
  9797. }
  9798. public Builder AddNestedmessageRepeatedInt32(int value) {
  9799. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9800. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9801. }
  9802. result.nestedmessageRepeatedInt32_.Add(value);
  9803. return this;
  9804. }
  9805. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9806. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9807. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9808. }
  9809. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9810. return this;
  9811. }
  9812. public Builder ClearNestedmessageRepeatedInt32() {
  9813. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9814. return this;
  9815. }
  9816. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9817. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9818. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9819. }
  9820. public int NestedmessageRepeatedForeignmessageCount {
  9821. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9822. }
  9823. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9824. return result.GetNestedmessageRepeatedForeignmessage(index);
  9825. }
  9826. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage value) {
  9827. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9828. return this;
  9829. }
  9830. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage.Builder builderForValue) {
  9831. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9832. return this;
  9833. }
  9834. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage value) {
  9835. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9836. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9837. }
  9838. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9839. return this;
  9840. }
  9841. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage.Builder builderForValue) {
  9842. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9843. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9844. }
  9845. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9846. return this;
  9847. }
  9848. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<self::ForeignMessage> values) {
  9849. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9850. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9851. }
  9852. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9853. return this;
  9854. }
  9855. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9856. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9857. return this;
  9858. }
  9859. }
  9860. }
  9861. }
  9862. #endregion
  9863. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9864. private bool hasOptionalNestedMessage;
  9865. private self::TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9866. public bool HasOptionalNestedMessage {
  9867. get { return hasOptionalNestedMessage; }
  9868. }
  9869. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9870. get { return optionalNestedMessage_; }
  9871. }
  9872. public override bool IsInitialized {
  9873. get {
  9874. return true;
  9875. }
  9876. }
  9877. public override void WriteTo(pb::CodedOutputStream output) {
  9878. if (HasOptionalNestedMessage) {
  9879. output.WriteMessage(1, OptionalNestedMessage);
  9880. }
  9881. UnknownFields.WriteTo(output);
  9882. }
  9883. private int memoizedSerializedSize = -1;
  9884. public override int SerializedSize {
  9885. get {
  9886. int size = memoizedSerializedSize;
  9887. if (size != -1) return size;
  9888. size = 0;
  9889. if (HasOptionalNestedMessage) {
  9890. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9891. }
  9892. size += UnknownFields.SerializedSize;
  9893. memoizedSerializedSize = size;
  9894. return size;
  9895. }
  9896. }
  9897. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9898. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9899. }
  9900. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9901. pb::ExtensionRegistry extensionRegistry) {
  9902. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9903. .BuildParsed();
  9904. }
  9905. public static self::TestNestedMessageHasBits ParseFrom(byte[] data) {
  9906. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9907. }
  9908. public static self::TestNestedMessageHasBits parseFrom(byte[] data,
  9909. pb::ExtensionRegistry extensionRegistry) {
  9910. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9911. .BuildParsed();
  9912. }
  9913. public static self::TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9914. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9915. }
  9916. public static self::TestNestedMessageHasBits ParseFrom(
  9917. global::System.IO.Stream input,
  9918. pb::ExtensionRegistry extensionRegistry) {
  9919. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9920. .BuildParsed();
  9921. }
  9922. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9923. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9924. }
  9925. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9926. pb::ExtensionRegistry extensionRegistry) {
  9927. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9928. .BuildParsed();
  9929. }
  9930. public static Builder CreateBuilder() { return new Builder(); }
  9931. public override IBuilder<self::TestNestedMessageHasBits> CreateBuilderForType() { return new Builder(); }
  9932. public static Builder CreateBuilder(self::TestNestedMessageHasBits prototype) {
  9933. return (Builder) new Builder().MergeFrom(prototype);
  9934. }
  9935. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits, Builder> {
  9936. // Construct using self::TestNestedMessageHasBits.CreateBuilder()
  9937. internal Builder() {}
  9938. self::TestNestedMessageHasBits result = new self::TestNestedMessageHasBits();
  9939. protected override self::TestNestedMessageHasBits MessageBeingBuilt {
  9940. get { return result; }
  9941. }
  9942. public override IBuilder<self::TestNestedMessageHasBits> Clear() {
  9943. result = new self::TestNestedMessageHasBits();
  9944. return this;
  9945. }
  9946. public override IBuilder<self::TestNestedMessageHasBits> Clone() {
  9947. return new Builder().MergeFrom(result);
  9948. }
  9949. public override pbd::MessageDescriptor DescriptorForType {
  9950. get { return self::TestNestedMessageHasBits.Descriptor; }
  9951. }
  9952. public override self::TestNestedMessageHasBits DefaultInstanceForType {
  9953. get { return self::TestNestedMessageHasBits.DefaultInstance; }
  9954. }
  9955. public override self::TestNestedMessageHasBits BuildPartial() {
  9956. self::TestNestedMessageHasBits returnMe = result;
  9957. result = null;
  9958. return returnMe;
  9959. }
  9960. public override IBuilder MergeFrom(pb::IMessage other) {
  9961. if (other is self::TestNestedMessageHasBits) {
  9962. return MergeFrom((self::TestNestedMessageHasBits) other);
  9963. } else {
  9964. base.MergeFrom(other);
  9965. return this;
  9966. }
  9967. }
  9968. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(self::TestNestedMessageHasBits other) {
  9969. if (other == self::TestNestedMessageHasBits.DefaultInstance) return this;
  9970. if (other.HasOptionalNestedMessage) {
  9971. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  9972. }
  9973. this.MergeUnknownFields(other.UnknownFields);
  9974. return this;
  9975. }
  9976. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(pb::CodedInputStream input) {
  9977. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9978. }
  9979. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9980. pb::UnknownFieldSet.Builder unknownFields =
  9981. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9982. while (true) {
  9983. uint tag = input.ReadTag();
  9984. switch (tag) {
  9985. case 0:
  9986. this.UnknownFields = unknownFields.Build();
  9987. return this;
  9988. default: {
  9989. if (!ParseUnknownField(input, unknownFields,
  9990. extensionRegistry, tag)) {
  9991. this.UnknownFields = unknownFields.Build();
  9992. return this;
  9993. }
  9994. break;
  9995. }
  9996. case 10: {
  9997. self::TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  9998. if (HasOptionalNestedMessage) {
  9999. subBuilder.MergeFrom(OptionalNestedMessage);
  10000. }
  10001. input.ReadMessage(subBuilder, extensionRegistry);
  10002. OptionalNestedMessage = subBuilder.BuildPartial();
  10003. break;
  10004. }
  10005. }
  10006. }
  10007. }
  10008. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10009. public bool HasOptionalNestedMessage {
  10010. get { return result.HasOptionalNestedMessage; }
  10011. }
  10012. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10013. get { return result.OptionalNestedMessage; }
  10014. set { SetOptionalNestedMessage(value); }
  10015. }
  10016. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10017. result.hasOptionalNestedMessage = true;
  10018. result.optionalNestedMessage_ = value;
  10019. return this;
  10020. }
  10021. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10022. result.hasOptionalNestedMessage = true;
  10023. result.optionalNestedMessage_ = builderForValue.Build();
  10024. return this;
  10025. }
  10026. public Builder MergeOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10027. if (result.HasOptionalNestedMessage &&
  10028. result.optionalNestedMessage_ != self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10029. result.optionalNestedMessage_ =
  10030. self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10031. } else {
  10032. result.optionalNestedMessage_ = value;
  10033. }
  10034. result.hasOptionalNestedMessage = true;
  10035. return this;
  10036. }
  10037. public Builder ClearOptionalNestedMessage() {
  10038. result.hasOptionalNestedMessage = false;
  10039. result.optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10040. return this;
  10041. }
  10042. }
  10043. }
  10044. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10045. // Use TestCamelCaseFieldNames.CreateBuilder() to construct.
  10046. private TestCamelCaseFieldNames() {}
  10047. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10048. public static TestCamelCaseFieldNames DefaultInstance {
  10049. get { return defaultInstance; }
  10050. }
  10051. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10052. get { return defaultInstance; }
  10053. }
  10054. public static pbd::MessageDescriptor Descriptor {
  10055. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10056. }
  10057. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10058. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10059. }
  10060. // optional int32 PrimitiveField = 1;
  10061. private bool hasPrimitiveField;
  10062. private int primitiveField_ = 0;
  10063. public bool HasPrimitiveField {
  10064. get { return hasPrimitiveField; }
  10065. }
  10066. public int PrimitiveField {
  10067. get { return primitiveField_; }
  10068. }
  10069. // optional string StringField = 2;
  10070. private bool hasStringField;
  10071. private string stringField_ = "";
  10072. public bool HasStringField {
  10073. get { return hasStringField; }
  10074. }
  10075. public string StringField {
  10076. get { return stringField_; }
  10077. }
  10078. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10079. private bool hasEnumField;
  10080. private self::ForeignEnum enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10081. public bool HasEnumField {
  10082. get { return hasEnumField; }
  10083. }
  10084. public self::ForeignEnum EnumField { get { return enumField_; }}
  10085. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10086. private bool hasMessageField;
  10087. private self::ForeignMessage messageField_ = self::ForeignMessage.DefaultInstance;
  10088. public bool HasMessageField {
  10089. get { return hasMessageField; }
  10090. }
  10091. public self::ForeignMessage MessageField {
  10092. get { return messageField_; }
  10093. }
  10094. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10095. private bool hasStringPieceField;
  10096. private string stringPieceField_ = "";
  10097. public bool HasStringPieceField {
  10098. get { return hasStringPieceField; }
  10099. }
  10100. public string StringPieceField {
  10101. get { return stringPieceField_; }
  10102. }
  10103. // optional string CordField = 6 [ctype = CORD];
  10104. private bool hasCordField;
  10105. private string cordField_ = "";
  10106. public bool HasCordField {
  10107. get { return hasCordField; }
  10108. }
  10109. public string CordField {
  10110. get { return cordField_; }
  10111. }
  10112. // repeated int32 RepeatedPrimitiveField = 7;
  10113. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10114. public scg::IList<int> RepeatedPrimitiveFieldList {
  10115. get { return repeatedPrimitiveField_; }
  10116. }
  10117. public int RepeatedPrimitiveFieldCount {
  10118. get { return repeatedPrimitiveField_.Count; }
  10119. }
  10120. public int GetRepeatedPrimitiveField(int index) {
  10121. return repeatedPrimitiveField_[index];
  10122. }
  10123. // repeated string RepeatedStringField = 8;
  10124. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10125. public scg::IList<string> RepeatedStringFieldList {
  10126. get { return repeatedStringField_; }
  10127. }
  10128. public int RepeatedStringFieldCount {
  10129. get { return repeatedStringField_.Count; }
  10130. }
  10131. public string GetRepeatedStringField(int index) {
  10132. return repeatedStringField_[index];
  10133. }
  10134. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10135. private scg::IList<self::ForeignEnum> repeatedEnumField_ = new scg::List<self::ForeignEnum> ();
  10136. public scg.IList<self::ForeignEnum> RepeatedEnumFieldList {
  10137. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10138. }
  10139. public int RepeatedEnumFieldCount {
  10140. get { return repeatedEnumField_.Count; }
  10141. }
  10142. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10143. return repeatedEnumField_[index];
  10144. }
  10145. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10146. private scg::IList<self::ForeignMessage> repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10147. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10148. get { return repeatedMessageField_; }
  10149. }
  10150. public int RepeatedMessageFieldCount
  10151. { get { return repeatedMessageField_.Count; }
  10152. }
  10153. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10154. return repeatedMessageField_ [index];
  10155. }
  10156. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10157. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10158. public scg::IList<string> RepeatedStringPieceFieldList {
  10159. get { return repeatedStringPieceField_; }
  10160. }
  10161. public int RepeatedStringPieceFieldCount {
  10162. get { return repeatedStringPieceField_.Count; }
  10163. }
  10164. public string GetRepeatedStringPieceField(int index) {
  10165. return repeatedStringPieceField_[index];
  10166. }
  10167. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10168. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10169. public scg::IList<string> RepeatedCordFieldList {
  10170. get { return repeatedCordField_; }
  10171. }
  10172. public int RepeatedCordFieldCount {
  10173. get { return repeatedCordField_.Count; }
  10174. }
  10175. public string GetRepeatedCordField(int index) {
  10176. return repeatedCordField_[index];
  10177. }
  10178. public override bool IsInitialized {
  10179. get {
  10180. return true;
  10181. }
  10182. }
  10183. public override void WriteTo(pb::CodedOutputStream output) {
  10184. if (HasPrimitiveField) {
  10185. output.WriteInt32(1, PrimitiveField);
  10186. }
  10187. if (HasStringField) {
  10188. output.WriteString(2, StringField);
  10189. }
  10190. if (HasEnumField) {
  10191. output.WriteEnum(3, (int) EnumField);
  10192. }
  10193. if (HasMessageField) {
  10194. output.WriteMessage(4, MessageField);
  10195. }
  10196. if (HasStringPieceField) {
  10197. output.WriteString(5, StringPieceField);
  10198. }
  10199. if (HasCordField) {
  10200. output.WriteString(6, CordField);
  10201. }
  10202. foreach (int element in RepeatedPrimitiveFieldList) {
  10203. output.WriteInt32(7, element);
  10204. }
  10205. foreach (string element in RepeatedStringFieldList) {
  10206. output.WriteString(8, element);
  10207. }
  10208. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10209. output.WriteEnum(9, (int) element);
  10210. }
  10211. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10212. output.WriteMessage(10, element);
  10213. }
  10214. foreach (string element in RepeatedStringPieceFieldList) {
  10215. output.WriteString(11, element);
  10216. }
  10217. foreach (string element in RepeatedCordFieldList) {
  10218. output.WriteString(12, element);
  10219. }
  10220. UnknownFields.WriteTo(output);
  10221. }
  10222. private int memoizedSerializedSize = -1;
  10223. public override int SerializedSize {
  10224. get {
  10225. int size = memoizedSerializedSize;
  10226. if (size != -1) return size;
  10227. size = 0;
  10228. if (HasPrimitiveField) {
  10229. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10230. }
  10231. if (HasStringField) {
  10232. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10233. }
  10234. if (HasEnumField) {
  10235. size += pb::CodedOutputStream
  10236. .ComputeEnumSize(3, (int) EnumField);
  10237. }
  10238. if (HasMessageField) {
  10239. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10240. }
  10241. if (HasStringPieceField) {
  10242. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10243. }
  10244. if (HasCordField) {
  10245. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10246. }
  10247. foreach (int element in RepeatedPrimitiveFieldList) {
  10248. size += pb::CodedOutputStream
  10249. .ComputeInt32Size(7, element);
  10250. }
  10251. foreach (string element in RepeatedStringFieldList) {
  10252. size += pb::CodedOutputStream
  10253. .ComputeStringSize(8, element);
  10254. }
  10255. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10256. size += pb::CodedOutputStream
  10257. .ComputeEnumSize(9, (int) element);
  10258. }
  10259. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10260. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10261. }
  10262. foreach (string element in RepeatedStringPieceFieldList) {
  10263. size += pb::CodedOutputStream
  10264. .ComputeStringSize(11, element);
  10265. }
  10266. foreach (string element in RepeatedCordFieldList) {
  10267. size += pb::CodedOutputStream
  10268. .ComputeStringSize(12, element);
  10269. }
  10270. size += UnknownFields.SerializedSize;
  10271. memoizedSerializedSize = size;
  10272. return size;
  10273. }
  10274. }
  10275. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10276. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10277. }
  10278. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10279. pb::ExtensionRegistry extensionRegistry) {
  10280. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10281. .BuildParsed();
  10282. }
  10283. public static self::TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10284. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10285. }
  10286. public static self::TestCamelCaseFieldNames parseFrom(byte[] data,
  10287. pb::ExtensionRegistry extensionRegistry) {
  10288. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10289. .BuildParsed();
  10290. }
  10291. public static self::TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10292. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10293. }
  10294. public static self::TestCamelCaseFieldNames ParseFrom(
  10295. global::System.IO.Stream input,
  10296. pb::ExtensionRegistry extensionRegistry) {
  10297. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10298. .BuildParsed();
  10299. }
  10300. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10301. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10302. }
  10303. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10304. pb::ExtensionRegistry extensionRegistry) {
  10305. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10306. .BuildParsed();
  10307. }
  10308. public static Builder CreateBuilder() { return new Builder(); }
  10309. public override IBuilder<self::TestCamelCaseFieldNames> CreateBuilderForType() { return new Builder(); }
  10310. public static Builder CreateBuilder(self::TestCamelCaseFieldNames prototype) {
  10311. return (Builder) new Builder().MergeFrom(prototype);
  10312. }
  10313. public sealed partial class Builder : pb::GeneratedBuilder<self::TestCamelCaseFieldNames, Builder> {
  10314. // Construct using self::TestCamelCaseFieldNames.CreateBuilder()
  10315. internal Builder() {}
  10316. self::TestCamelCaseFieldNames result = new self::TestCamelCaseFieldNames();
  10317. protected override self::TestCamelCaseFieldNames MessageBeingBuilt {
  10318. get { return result; }
  10319. }
  10320. public override IBuilder<self::TestCamelCaseFieldNames> Clear() {
  10321. result = new self::TestCamelCaseFieldNames();
  10322. return this;
  10323. }
  10324. public override IBuilder<self::TestCamelCaseFieldNames> Clone() {
  10325. return new Builder().MergeFrom(result);
  10326. }
  10327. public override pbd::MessageDescriptor DescriptorForType {
  10328. get { return self::TestCamelCaseFieldNames.Descriptor; }
  10329. }
  10330. public override self::TestCamelCaseFieldNames DefaultInstanceForType {
  10331. get { return self::TestCamelCaseFieldNames.DefaultInstance; }
  10332. }
  10333. public override self::TestCamelCaseFieldNames BuildPartial() {
  10334. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10335. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10336. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10337. if (result.repeatedMessageField_ != pbc::Lists<self::ForeignMessage>.Empty) {
  10338. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10339. }
  10340. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10341. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10342. self::TestCamelCaseFieldNames returnMe = result;
  10343. result = null;
  10344. return returnMe;
  10345. }
  10346. public override IBuilder MergeFrom(pb::IMessage other) {
  10347. if (other is self::TestCamelCaseFieldNames) {
  10348. return MergeFrom((self::TestCamelCaseFieldNames) other);
  10349. } else {
  10350. base.MergeFrom(other);
  10351. return this;
  10352. }
  10353. }
  10354. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(self::TestCamelCaseFieldNames other) {
  10355. if (other == self::TestCamelCaseFieldNames.DefaultInstance) return this;
  10356. if (other.HasPrimitiveField) {
  10357. PrimitiveField = other.PrimitiveField;
  10358. }
  10359. if (other.HasStringField) {
  10360. StringField = other.StringField;
  10361. }
  10362. if (other.HasEnumField) {
  10363. EnumField = other.EnumField;
  10364. }
  10365. if (other.HasMessageField) {
  10366. MergeMessageField(other.MessageField);
  10367. }
  10368. if (other.HasStringPieceField) {
  10369. StringPieceField = other.StringPieceField;
  10370. }
  10371. if (other.HasCordField) {
  10372. CordField = other.CordField;
  10373. }
  10374. if (other.repeatedPrimitiveField_.Count != 0) {
  10375. if (result.repeatedPrimitiveField_.Count == 0) {
  10376. result.repeatedPrimitiveField_ = new scg::List<int>();
  10377. }
  10378. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10379. }
  10380. if (other.repeatedStringField_.Count != 0) {
  10381. if (result.repeatedStringField_.Count == 0) {
  10382. result.repeatedStringField_ = new scg::List<string>();
  10383. }
  10384. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10385. }
  10386. if (other.repeatedEnumField_.Count != 0) {
  10387. if (result.repeatedEnumField_.Count == 0) {
  10388. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10389. }
  10390. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10391. }
  10392. if (other.repeatedMessageField_.Count != 0) {
  10393. if (result.repeatedMessageField_.Count == 0) {
  10394. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10395. }
  10396. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10397. }
  10398. if (other.repeatedStringPieceField_.Count != 0) {
  10399. if (result.repeatedStringPieceField_.Count == 0) {
  10400. result.repeatedStringPieceField_ = new scg::List<string>();
  10401. }
  10402. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10403. }
  10404. if (other.repeatedCordField_.Count != 0) {
  10405. if (result.repeatedCordField_.Count == 0) {
  10406. result.repeatedCordField_ = new scg::List<string>();
  10407. }
  10408. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10409. }
  10410. this.MergeUnknownFields(other.UnknownFields);
  10411. return this;
  10412. }
  10413. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(pb::CodedInputStream input) {
  10414. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10415. }
  10416. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10417. pb::UnknownFieldSet.Builder unknownFields =
  10418. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10419. while (true) {
  10420. uint tag = input.ReadTag();
  10421. switch (tag) {
  10422. case 0:
  10423. this.UnknownFields = unknownFields.Build();
  10424. return this;
  10425. default: {
  10426. if (!ParseUnknownField(input, unknownFields,
  10427. extensionRegistry, tag)) {
  10428. this.UnknownFields = unknownFields.Build();
  10429. return this;
  10430. }
  10431. break;
  10432. }
  10433. case 8: {
  10434. PrimitiveField = input.ReadInt32();
  10435. break;
  10436. }
  10437. case 18: {
  10438. StringField = input.ReadString();
  10439. break;
  10440. }
  10441. case 24: {
  10442. int rawValue = input.ReadEnum();
  10443. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  10444. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10445. } else {
  10446. EnumField = (self::ForeignEnum) rawValue;
  10447. }
  10448. break;
  10449. }
  10450. case 34: {
  10451. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10452. if (HasMessageField) {
  10453. subBuilder.MergeFrom(MessageField);
  10454. }
  10455. input.ReadMessage(subBuilder, extensionRegistry);
  10456. MessageField = subBuilder.BuildPartial();
  10457. break;
  10458. }
  10459. case 42: {
  10460. StringPieceField = input.ReadString();
  10461. break;
  10462. }
  10463. case 50: {
  10464. CordField = input.ReadString();
  10465. break;
  10466. }
  10467. case 56: {
  10468. AddRepeatedPrimitiveField(input.ReadInt32());
  10469. break;
  10470. }
  10471. case 66: {
  10472. AddRepeatedStringField(input.ReadString());
  10473. break;
  10474. }
  10475. case 72: {
  10476. int rawValue = input.ReadEnum();
  10477. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  10478. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  10479. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10480. } else {
  10481. AddRepeatedEnumField(value);
  10482. }
  10483. break;
  10484. }
  10485. case 82: {
  10486. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10487. input.ReadMessage(subBuilder, extensionRegistry);
  10488. AddRepeatedMessageField(subBuilder.BuildPartial());
  10489. break;
  10490. }
  10491. case 90: {
  10492. AddRepeatedStringPieceField(input.ReadString());
  10493. break;
  10494. }
  10495. case 98: {
  10496. AddRepeatedCordField(input.ReadString());
  10497. break;
  10498. }
  10499. }
  10500. }
  10501. }
  10502. // optional int32 PrimitiveField = 1;
  10503. public bool HasPrimitiveField {
  10504. get { return result.HasPrimitiveField; }
  10505. }
  10506. public int PrimitiveField {
  10507. get { return result.PrimitiveField; }
  10508. set { SetPrimitiveField(value); }
  10509. }
  10510. public Builder SetPrimitiveField(int value) {
  10511. result.hasPrimitiveField = true;
  10512. result.primitiveField_ = value;
  10513. return this;
  10514. }
  10515. public Builder ClearPrimitiveField() {
  10516. result.hasPrimitiveField = false;
  10517. result.primitiveField_ = 0;
  10518. return this;
  10519. }
  10520. // optional string StringField = 2;
  10521. public bool HasStringField {
  10522. get { return result.HasStringField; }
  10523. }
  10524. public string StringField {
  10525. get { return result.StringField; }
  10526. set { SetStringField(value); }
  10527. }
  10528. public Builder SetStringField(string value) {
  10529. result.hasStringField = true;
  10530. result.stringField_ = value;
  10531. return this;
  10532. }
  10533. public Builder ClearStringField() {
  10534. result.hasStringField = false;
  10535. result.stringField_ = "";
  10536. return this;
  10537. }
  10538. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10539. public bool HasEnumField {
  10540. get { return result.HasEnumField; }
  10541. }
  10542. public self::ForeignEnum EnumField {
  10543. get { return result.EnumField; }
  10544. set { SetEnumField(value); }
  10545. }
  10546. public Builder SetEnumField(self::ForeignEnum value) {
  10547. result.hasEnumField = true;
  10548. result.enumField_ = value;
  10549. return this;
  10550. }
  10551. public Builder ClearEnumField() {
  10552. result.hasEnumField = false;
  10553. result.enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10554. return this;
  10555. }
  10556. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10557. public bool HasMessageField {
  10558. get { return result.HasMessageField; }
  10559. }
  10560. public self::ForeignMessage MessageField {
  10561. get { return result.MessageField; }
  10562. set { SetMessageField(value); }
  10563. }
  10564. public Builder SetMessageField(self::ForeignMessage value) {
  10565. result.hasMessageField = true;
  10566. result.messageField_ = value;
  10567. return this;
  10568. }
  10569. public Builder SetMessageField(self::ForeignMessage.Builder builderForValue) {
  10570. result.hasMessageField = true;
  10571. result.messageField_ = builderForValue.Build();
  10572. return this;
  10573. }
  10574. public Builder MergeMessageField(self::ForeignMessage value) {
  10575. if (result.HasMessageField &&
  10576. result.messageField_ != self::ForeignMessage.DefaultInstance) {
  10577. result.messageField_ =
  10578. self::ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10579. } else {
  10580. result.messageField_ = value;
  10581. }
  10582. result.hasMessageField = true;
  10583. return this;
  10584. }
  10585. public Builder ClearMessageField() {
  10586. result.hasMessageField = false;
  10587. result.messageField_ = self::ForeignMessage.DefaultInstance;
  10588. return this;
  10589. }
  10590. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10591. public bool HasStringPieceField {
  10592. get { return result.HasStringPieceField; }
  10593. }
  10594. public string StringPieceField {
  10595. get { return result.StringPieceField; }
  10596. set { SetStringPieceField(value); }
  10597. }
  10598. public Builder SetStringPieceField(string value) {
  10599. result.hasStringPieceField = true;
  10600. result.stringPieceField_ = value;
  10601. return this;
  10602. }
  10603. public Builder ClearStringPieceField() {
  10604. result.hasStringPieceField = false;
  10605. result.stringPieceField_ = "";
  10606. return this;
  10607. }
  10608. // optional string CordField = 6 [ctype = CORD];
  10609. public bool HasCordField {
  10610. get { return result.HasCordField; }
  10611. }
  10612. public string CordField {
  10613. get { return result.CordField; }
  10614. set { SetCordField(value); }
  10615. }
  10616. public Builder SetCordField(string value) {
  10617. result.hasCordField = true;
  10618. result.cordField_ = value;
  10619. return this;
  10620. }
  10621. public Builder ClearCordField() {
  10622. result.hasCordField = false;
  10623. result.cordField_ = "";
  10624. return this;
  10625. }
  10626. // repeated int32 RepeatedPrimitiveField = 7;
  10627. public scg::IList<int> RepeatedPrimitiveFieldList {
  10628. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10629. }
  10630. public int RepeatedPrimitiveFieldCount {
  10631. get { return result.RepeatedPrimitiveFieldCount; }
  10632. }
  10633. public int GetRepeatedPrimitiveField(int index) {
  10634. return result.GetRepeatedPrimitiveField(index);
  10635. }
  10636. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10637. result.repeatedPrimitiveField_[index] = value;
  10638. return this;
  10639. }
  10640. public Builder AddRepeatedPrimitiveField(int value) {
  10641. if (result.repeatedPrimitiveField_.Count == 0) {
  10642. result.repeatedPrimitiveField_ = new scg::List<int>();
  10643. }
  10644. result.repeatedPrimitiveField_.Add(value);
  10645. return this;
  10646. }
  10647. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10648. if (result.repeatedPrimitiveField_.Count == 0) {
  10649. result.repeatedPrimitiveField_ = new scg::List<int>();
  10650. }
  10651. base.AddRange(values, result.repeatedPrimitiveField_);
  10652. return this;
  10653. }
  10654. public Builder ClearRepeatedPrimitiveField() {
  10655. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10656. return this;
  10657. }
  10658. // repeated string RepeatedStringField = 8;
  10659. public scg::IList<string> RepeatedStringFieldList {
  10660. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10661. }
  10662. public int RepeatedStringFieldCount {
  10663. get { return result.RepeatedStringFieldCount; }
  10664. }
  10665. public string GetRepeatedStringField(int index) {
  10666. return result.GetRepeatedStringField(index);
  10667. }
  10668. public Builder SetRepeatedStringField(int index, string value) {
  10669. result.repeatedStringField_[index] = value;
  10670. return this;
  10671. }
  10672. public Builder AddRepeatedStringField(string value) {
  10673. if (result.repeatedStringField_.Count == 0) {
  10674. result.repeatedStringField_ = new scg::List<string>();
  10675. }
  10676. result.repeatedStringField_.Add(value);
  10677. return this;
  10678. }
  10679. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10680. if (result.repeatedStringField_.Count == 0) {
  10681. result.repeatedStringField_ = new scg::List<string>();
  10682. }
  10683. base.AddRange(values, result.repeatedStringField_);
  10684. return this;
  10685. }
  10686. public Builder ClearRepeatedStringField() {
  10687. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10688. return this;
  10689. }
  10690. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10691. public scg::IList<self::ForeignEnum> RepeatedEnumFieldList {
  10692. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10693. }
  10694. public int RepeatedEnumFieldCount {
  10695. get { return result.RepeatedEnumFieldCount; }
  10696. }
  10697. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10698. return result.GetRepeatedEnumField(index);
  10699. }
  10700. public Builder SetRepeatedEnumField(int index, self::ForeignEnum value) {
  10701. result.repeatedEnumField_[index] = value;
  10702. return this;
  10703. }
  10704. public Builder AddRepeatedEnumField(self::ForeignEnum value) {
  10705. if (result.repeatedEnumField_.Count == 0) {
  10706. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10707. }
  10708. result.repeatedEnumField_.Add(value);
  10709. return this;
  10710. }
  10711. public Builder AddAllRepeatedEnumField(scg::IEnumerable<self::ForeignEnum> values) {
  10712. if (result.repeatedEnumField_.Count == 0) {
  10713. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10714. }
  10715. base.AddRange(values, result.repeatedEnumField_);
  10716. return this;
  10717. }
  10718. public Builder ClearRepeatedEnumField() {
  10719. result.repeatedEnumField_ = pbc::Lists<self::ForeignEnum>.Empty;
  10720. return this;
  10721. }
  10722. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10723. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10724. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10725. }
  10726. public int RepeatedMessageFieldCount {
  10727. get { return result.RepeatedMessageFieldCount; }
  10728. }
  10729. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10730. return result.GetRepeatedMessageField(index);
  10731. }
  10732. public Builder SetRepeatedMessageField(int index, self::ForeignMessage value) {
  10733. result.repeatedMessageField_[index] = value;
  10734. return this;
  10735. }
  10736. public Builder SetRepeatedMessageField(int index, self::ForeignMessage.Builder builderForValue) {
  10737. result.repeatedMessageField_[index] = builderForValue.Build();
  10738. return this;
  10739. }
  10740. public Builder AddRepeatedMessageField(self::ForeignMessage value) {
  10741. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10742. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10743. }
  10744. result.repeatedMessageField_.Add(value);
  10745. return this;
  10746. }
  10747. public Builder AddRepeatedMessageField(self::ForeignMessage.Builder builderForValue) {
  10748. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10749. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10750. }
  10751. result.repeatedMessageField_.Add(builderForValue.Build());
  10752. return this;
  10753. }
  10754. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<self::ForeignMessage> values) {
  10755. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10756. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10757. }
  10758. base.AddRange(values, result.repeatedMessageField_);
  10759. return this;
  10760. }
  10761. public Builder ClearRepeatedMessageField() {
  10762. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10763. return this;
  10764. }
  10765. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10766. public scg::IList<string> RepeatedStringPieceFieldList {
  10767. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10768. }
  10769. public int RepeatedStringPieceFieldCount {
  10770. get { return result.RepeatedStringPieceFieldCount; }
  10771. }
  10772. public string GetRepeatedStringPieceField(int index) {
  10773. return result.GetRepeatedStringPieceField(index);
  10774. }
  10775. public Builder SetRepeatedStringPieceField(int index, string value) {
  10776. result.repeatedStringPieceField_[index] = value;
  10777. return this;
  10778. }
  10779. public Builder AddRepeatedStringPieceField(string value) {
  10780. if (result.repeatedStringPieceField_.Count == 0) {
  10781. result.repeatedStringPieceField_ = new scg::List<string>();
  10782. }
  10783. result.repeatedStringPieceField_.Add(value);
  10784. return this;
  10785. }
  10786. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10787. if (result.repeatedStringPieceField_.Count == 0) {
  10788. result.repeatedStringPieceField_ = new scg::List<string>();
  10789. }
  10790. base.AddRange(values, result.repeatedStringPieceField_);
  10791. return this;
  10792. }
  10793. public Builder ClearRepeatedStringPieceField() {
  10794. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10795. return this;
  10796. }
  10797. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10798. public scg::IList<string> RepeatedCordFieldList {
  10799. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10800. }
  10801. public int RepeatedCordFieldCount {
  10802. get { return result.RepeatedCordFieldCount; }
  10803. }
  10804. public string GetRepeatedCordField(int index) {
  10805. return result.GetRepeatedCordField(index);
  10806. }
  10807. public Builder SetRepeatedCordField(int index, string value) {
  10808. result.repeatedCordField_[index] = value;
  10809. return this;
  10810. }
  10811. public Builder AddRepeatedCordField(string value) {
  10812. if (result.repeatedCordField_.Count == 0) {
  10813. result.repeatedCordField_ = new scg::List<string>();
  10814. }
  10815. result.repeatedCordField_.Add(value);
  10816. return this;
  10817. }
  10818. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10819. if (result.repeatedCordField_.Count == 0) {
  10820. result.repeatedCordField_ = new scg::List<string>();
  10821. }
  10822. base.AddRange(values, result.repeatedCordField_);
  10823. return this;
  10824. }
  10825. public Builder ClearRepeatedCordField() {
  10826. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10827. return this;
  10828. }
  10829. }
  10830. }
  10831. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10832. // Use TestFieldOrderings.CreateBuilder() to construct.
  10833. private TestFieldOrderings() {}
  10834. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10835. public static TestFieldOrderings DefaultInstance {
  10836. get { return defaultInstance; }
  10837. }
  10838. public override TestFieldOrderings DefaultInstanceForType {
  10839. get { return defaultInstance; }
  10840. }
  10841. public static pbd::MessageDescriptor Descriptor {
  10842. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10843. }
  10844. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10845. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10846. }
  10847. // optional string my_string = 11;
  10848. private bool hasMyString;
  10849. private string myString_ = "";
  10850. public bool HasMyString {
  10851. get { return hasMyString; }
  10852. }
  10853. public string MyString {
  10854. get { return myString_; }
  10855. }
  10856. // optional int64 my_int = 1;
  10857. private bool hasMyInt;
  10858. private long myInt_ = 0L;
  10859. public bool HasMyInt {
  10860. get { return hasMyInt; }
  10861. }
  10862. public long MyInt {
  10863. get { return myInt_; }
  10864. }
  10865. // optional float my_float = 101;
  10866. private bool hasMyFloat;
  10867. private float myFloat_ = 0F;
  10868. public bool HasMyFloat {
  10869. get { return hasMyFloat; }
  10870. }
  10871. public float MyFloat {
  10872. get { return myFloat_; }
  10873. }
  10874. public override bool IsInitialized {
  10875. get {
  10876. if (!ExtensionsAreInitialized) return false;
  10877. return true;
  10878. }
  10879. }
  10880. public override void WriteTo(pb::CodedOutputStream output) {
  10881. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10882. if (HasMyInt) {
  10883. output.WriteInt64(1, MyInt);
  10884. }
  10885. extensionWriter.WriteUntil(11, output);
  10886. if (HasMyString) {
  10887. output.WriteString(11, MyString);
  10888. }
  10889. extensionWriter.WriteUntil(101, output);
  10890. if (HasMyFloat) {
  10891. output.WriteFloat(101, MyFloat);
  10892. }
  10893. UnknownFields.WriteTo(output);
  10894. }
  10895. private int memoizedSerializedSize = -1;
  10896. public override int SerializedSize {
  10897. get {
  10898. int size = memoizedSerializedSize;
  10899. if (size != -1) return size;
  10900. size = 0;
  10901. if (HasMyInt) {
  10902. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10903. }
  10904. if (HasMyString) {
  10905. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10906. }
  10907. if (HasMyFloat) {
  10908. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10909. }
  10910. size += ExtensionsSerializedSize;
  10911. size += UnknownFields.SerializedSize;
  10912. memoizedSerializedSize = size;
  10913. return size;
  10914. }
  10915. }
  10916. public static self::TestFieldOrderings ParseFrom(pb::ByteString data) {
  10917. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10918. }
  10919. public static self::TestFieldOrderings ParseFrom(pb::ByteString data,
  10920. pb::ExtensionRegistry extensionRegistry) {
  10921. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10922. .BuildParsed();
  10923. }
  10924. public static self::TestFieldOrderings ParseFrom(byte[] data) {
  10925. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10926. }
  10927. public static self::TestFieldOrderings parseFrom(byte[] data,
  10928. pb::ExtensionRegistry extensionRegistry) {
  10929. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10930. .BuildParsed();
  10931. }
  10932. public static self::TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10933. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10934. }
  10935. public static self::TestFieldOrderings ParseFrom(
  10936. global::System.IO.Stream input,
  10937. pb::ExtensionRegistry extensionRegistry) {
  10938. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10939. .BuildParsed();
  10940. }
  10941. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10942. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10943. }
  10944. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10945. pb::ExtensionRegistry extensionRegistry) {
  10946. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10947. .BuildParsed();
  10948. }
  10949. public static Builder CreateBuilder() { return new Builder(); }
  10950. public override IBuilder<self::TestFieldOrderings> CreateBuilderForType() { return new Builder(); }
  10951. public static Builder CreateBuilder(self::TestFieldOrderings prototype) {
  10952. return (Builder) new Builder().MergeFrom(prototype);
  10953. }
  10954. public sealed partial class Builder : pb::GeneratedBuilder<self::TestFieldOrderings, self::TestFieldOrderings.Builder>.ExtendableBuilder {
  10955. // Construct using self::TestFieldOrderings.CreateBuilder()
  10956. internal Builder() {}
  10957. self::TestFieldOrderings result = new self::TestFieldOrderings();
  10958. protected override self::TestFieldOrderings MessageBeingBuilt {
  10959. get { return result; }
  10960. }
  10961. public override IBuilder<self::TestFieldOrderings> Clear() {
  10962. result = new self::TestFieldOrderings();
  10963. return this;
  10964. }
  10965. public override IBuilder<self::TestFieldOrderings> Clone() {
  10966. return new Builder().MergeFrom(result);
  10967. }
  10968. public override pbd::MessageDescriptor DescriptorForType {
  10969. get { return self::TestFieldOrderings.Descriptor; }
  10970. }
  10971. public override self::TestFieldOrderings DefaultInstanceForType {
  10972. get { return self::TestFieldOrderings.DefaultInstance; }
  10973. }
  10974. public override self::TestFieldOrderings BuildPartial() {
  10975. self::TestFieldOrderings returnMe = result;
  10976. result = null;
  10977. return returnMe;
  10978. }
  10979. public override IBuilder MergeFrom(pb::IMessage other) {
  10980. if (other is self::TestFieldOrderings) {
  10981. return MergeFrom((self::TestFieldOrderings) other);
  10982. } else {
  10983. base.MergeFrom(other);
  10984. return this;
  10985. }
  10986. }
  10987. public override IBuilder<self::TestFieldOrderings> MergeFrom(self::TestFieldOrderings other) {
  10988. if (other == self::TestFieldOrderings.DefaultInstance) return this;
  10989. if (other.HasMyString) {
  10990. MyString = other.MyString;
  10991. }
  10992. if (other.HasMyInt) {
  10993. MyInt = other.MyInt;
  10994. }
  10995. if (other.HasMyFloat) {
  10996. MyFloat = other.MyFloat;
  10997. }
  10998. this.MergeUnknownFields(other.UnknownFields);
  10999. return this;
  11000. }
  11001. public override IBuilder<self::TestFieldOrderings> MergeFrom(pb::CodedInputStream input) {
  11002. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11003. }
  11004. public override IBuilder<self::TestFieldOrderings> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11005. pb::UnknownFieldSet.Builder unknownFields =
  11006. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11007. while (true) {
  11008. uint tag = input.ReadTag();
  11009. switch (tag) {
  11010. case 0:
  11011. this.UnknownFields = unknownFields.Build();
  11012. return this;
  11013. default: {
  11014. if (!ParseUnknownField(input, unknownFields,
  11015. extensionRegistry, tag)) {
  11016. this.UnknownFields = unknownFields.Build();
  11017. return this;
  11018. }
  11019. break;
  11020. }
  11021. case 8: {
  11022. MyInt = input.ReadInt64();
  11023. break;
  11024. }
  11025. case 90: {
  11026. MyString = input.ReadString();
  11027. break;
  11028. }
  11029. case 813: {
  11030. MyFloat = input.ReadFloat();
  11031. break;
  11032. }
  11033. }
  11034. }
  11035. }
  11036. // optional string my_string = 11;
  11037. public bool HasMyString {
  11038. get { return result.HasMyString; }
  11039. }
  11040. public string MyString {
  11041. get { return result.MyString; }
  11042. set { SetMyString(value); }
  11043. }
  11044. public Builder SetMyString(string value) {
  11045. result.hasMyString = true;
  11046. result.myString_ = value;
  11047. return this;
  11048. }
  11049. public Builder ClearMyString() {
  11050. result.hasMyString = false;
  11051. result.myString_ = "";
  11052. return this;
  11053. }
  11054. // optional int64 my_int = 1;
  11055. public bool HasMyInt {
  11056. get { return result.HasMyInt; }
  11057. }
  11058. public long MyInt {
  11059. get { return result.MyInt; }
  11060. set { SetMyInt(value); }
  11061. }
  11062. public Builder SetMyInt(long value) {
  11063. result.hasMyInt = true;
  11064. result.myInt_ = value;
  11065. return this;
  11066. }
  11067. public Builder ClearMyInt() {
  11068. result.hasMyInt = false;
  11069. result.myInt_ = 0L;
  11070. return this;
  11071. }
  11072. // optional float my_float = 101;
  11073. public bool HasMyFloat {
  11074. get { return result.HasMyFloat; }
  11075. }
  11076. public float MyFloat {
  11077. get { return result.MyFloat; }
  11078. set { SetMyFloat(value); }
  11079. }
  11080. public Builder SetMyFloat(float value) {
  11081. result.hasMyFloat = true;
  11082. result.myFloat_ = value;
  11083. return this;
  11084. }
  11085. public Builder ClearMyFloat() {
  11086. result.hasMyFloat = false;
  11087. result.myFloat_ = 0F;
  11088. return this;
  11089. }
  11090. }
  11091. }
  11092. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11093. // Use TestExtremeDefaultValues.CreateBuilder() to construct.
  11094. private TestExtremeDefaultValues() {}
  11095. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11096. public static TestExtremeDefaultValues DefaultInstance {
  11097. get { return defaultInstance; }
  11098. }
  11099. public override TestExtremeDefaultValues DefaultInstanceForType {
  11100. get { return defaultInstance; }
  11101. }
  11102. public static pbd::MessageDescriptor Descriptor {
  11103. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11104. }
  11105. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11106. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11107. }
  11108. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11109. private bool hasEscapedBytes;
  11110. private pb::ByteString escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11111. public bool HasEscapedBytes {
  11112. get { return hasEscapedBytes; }
  11113. }
  11114. public pb::ByteString EscapedBytes {
  11115. get { return escapedBytes_; }
  11116. }
  11117. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11118. private bool hasLargeUint32;
  11119. private uint largeUint32_ = 4294967295;
  11120. public bool HasLargeUint32 {
  11121. get { return hasLargeUint32; }
  11122. }
  11123. public uint LargeUint32 {
  11124. get { return largeUint32_; }
  11125. }
  11126. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11127. private bool hasLargeUint64;
  11128. private ulong largeUint64_ = 18446744073709551615UL;
  11129. public bool HasLargeUint64 {
  11130. get { return hasLargeUint64; }
  11131. }
  11132. public ulong LargeUint64 {
  11133. get { return largeUint64_; }
  11134. }
  11135. // optional int32 small_int32 = 4 [default = -2147483647];
  11136. private bool hasSmallInt32;
  11137. private int smallInt32_ = -2147483647;
  11138. public bool HasSmallInt32 {
  11139. get { return hasSmallInt32; }
  11140. }
  11141. public int SmallInt32 {
  11142. get { return smallInt32_; }
  11143. }
  11144. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11145. private bool hasSmallInt64;
  11146. private long smallInt64_ = -9223372036854775807L;
  11147. public bool HasSmallInt64 {
  11148. get { return hasSmallInt64; }
  11149. }
  11150. public long SmallInt64 {
  11151. get { return smallInt64_; }
  11152. }
  11153. // optional string utf8_string = 6 [default = "\341\210\264"];
  11154. private bool hasUtf8String;
  11155. private string utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11156. public bool HasUtf8String {
  11157. get { return hasUtf8String; }
  11158. }
  11159. public string Utf8String {
  11160. get { return utf8String_; }
  11161. }
  11162. public override bool IsInitialized {
  11163. get {
  11164. return true;
  11165. }
  11166. }
  11167. public override void WriteTo(pb::CodedOutputStream output) {
  11168. if (HasEscapedBytes) {
  11169. output.WriteBytes(1, EscapedBytes);
  11170. }
  11171. if (HasLargeUint32) {
  11172. output.WriteUInt32(2, LargeUint32);
  11173. }
  11174. if (HasLargeUint64) {
  11175. output.WriteUInt64(3, LargeUint64);
  11176. }
  11177. if (HasSmallInt32) {
  11178. output.WriteInt32(4, SmallInt32);
  11179. }
  11180. if (HasSmallInt64) {
  11181. output.WriteInt64(5, SmallInt64);
  11182. }
  11183. if (HasUtf8String) {
  11184. output.WriteString(6, Utf8String);
  11185. }
  11186. UnknownFields.WriteTo(output);
  11187. }
  11188. private int memoizedSerializedSize = -1;
  11189. public override int SerializedSize {
  11190. get {
  11191. int size = memoizedSerializedSize;
  11192. if (size != -1) return size;
  11193. size = 0;
  11194. if (HasEscapedBytes) {
  11195. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11196. }
  11197. if (HasLargeUint32) {
  11198. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11199. }
  11200. if (HasLargeUint64) {
  11201. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11202. }
  11203. if (HasSmallInt32) {
  11204. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11205. }
  11206. if (HasSmallInt64) {
  11207. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11208. }
  11209. if (HasUtf8String) {
  11210. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11211. }
  11212. size += UnknownFields.SerializedSize;
  11213. memoizedSerializedSize = size;
  11214. return size;
  11215. }
  11216. }
  11217. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11218. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11219. }
  11220. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11221. pb::ExtensionRegistry extensionRegistry) {
  11222. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11223. .BuildParsed();
  11224. }
  11225. public static self::TestExtremeDefaultValues ParseFrom(byte[] data) {
  11226. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11227. }
  11228. public static self::TestExtremeDefaultValues parseFrom(byte[] data,
  11229. pb::ExtensionRegistry extensionRegistry) {
  11230. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11231. .BuildParsed();
  11232. }
  11233. public static self::TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11234. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11235. }
  11236. public static self::TestExtremeDefaultValues ParseFrom(
  11237. global::System.IO.Stream input,
  11238. pb::ExtensionRegistry extensionRegistry) {
  11239. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11240. .BuildParsed();
  11241. }
  11242. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11243. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11244. }
  11245. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11246. pb::ExtensionRegistry extensionRegistry) {
  11247. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11248. .BuildParsed();
  11249. }
  11250. public static Builder CreateBuilder() { return new Builder(); }
  11251. public override IBuilder<self::TestExtremeDefaultValues> CreateBuilderForType() { return new Builder(); }
  11252. public static Builder CreateBuilder(self::TestExtremeDefaultValues prototype) {
  11253. return (Builder) new Builder().MergeFrom(prototype);
  11254. }
  11255. public sealed partial class Builder : pb::GeneratedBuilder<self::TestExtremeDefaultValues, Builder> {
  11256. // Construct using self::TestExtremeDefaultValues.CreateBuilder()
  11257. internal Builder() {}
  11258. self::TestExtremeDefaultValues result = new self::TestExtremeDefaultValues();
  11259. protected override self::TestExtremeDefaultValues MessageBeingBuilt {
  11260. get { return result; }
  11261. }
  11262. public override IBuilder<self::TestExtremeDefaultValues> Clear() {
  11263. result = new self::TestExtremeDefaultValues();
  11264. return this;
  11265. }
  11266. public override IBuilder<self::TestExtremeDefaultValues> Clone() {
  11267. return new Builder().MergeFrom(result);
  11268. }
  11269. public override pbd::MessageDescriptor DescriptorForType {
  11270. get { return self::TestExtremeDefaultValues.Descriptor; }
  11271. }
  11272. public override self::TestExtremeDefaultValues DefaultInstanceForType {
  11273. get { return self::TestExtremeDefaultValues.DefaultInstance; }
  11274. }
  11275. public override self::TestExtremeDefaultValues BuildPartial() {
  11276. self::TestExtremeDefaultValues returnMe = result;
  11277. result = null;
  11278. return returnMe;
  11279. }
  11280. public override IBuilder MergeFrom(pb::IMessage other) {
  11281. if (other is self::TestExtremeDefaultValues) {
  11282. return MergeFrom((self::TestExtremeDefaultValues) other);
  11283. } else {
  11284. base.MergeFrom(other);
  11285. return this;
  11286. }
  11287. }
  11288. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(self::TestExtremeDefaultValues other) {
  11289. if (other == self::TestExtremeDefaultValues.DefaultInstance) return this;
  11290. if (other.HasEscapedBytes) {
  11291. EscapedBytes = other.EscapedBytes;
  11292. }
  11293. if (other.HasLargeUint32) {
  11294. LargeUint32 = other.LargeUint32;
  11295. }
  11296. if (other.HasLargeUint64) {
  11297. LargeUint64 = other.LargeUint64;
  11298. }
  11299. if (other.HasSmallInt32) {
  11300. SmallInt32 = other.SmallInt32;
  11301. }
  11302. if (other.HasSmallInt64) {
  11303. SmallInt64 = other.SmallInt64;
  11304. }
  11305. if (other.HasUtf8String) {
  11306. Utf8String = other.Utf8String;
  11307. }
  11308. this.MergeUnknownFields(other.UnknownFields);
  11309. return this;
  11310. }
  11311. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(pb::CodedInputStream input) {
  11312. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11313. }
  11314. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11315. pb::UnknownFieldSet.Builder unknownFields =
  11316. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11317. while (true) {
  11318. uint tag = input.ReadTag();
  11319. switch (tag) {
  11320. case 0:
  11321. this.UnknownFields = unknownFields.Build();
  11322. return this;
  11323. default: {
  11324. if (!ParseUnknownField(input, unknownFields,
  11325. extensionRegistry, tag)) {
  11326. this.UnknownFields = unknownFields.Build();
  11327. return this;
  11328. }
  11329. break;
  11330. }
  11331. case 10: {
  11332. EscapedBytes = input.ReadBytes();
  11333. break;
  11334. }
  11335. case 16: {
  11336. LargeUint32 = input.ReadUInt32();
  11337. break;
  11338. }
  11339. case 24: {
  11340. LargeUint64 = input.ReadUInt64();
  11341. break;
  11342. }
  11343. case 32: {
  11344. SmallInt32 = input.ReadInt32();
  11345. break;
  11346. }
  11347. case 40: {
  11348. SmallInt64 = input.ReadInt64();
  11349. break;
  11350. }
  11351. case 50: {
  11352. Utf8String = input.ReadString();
  11353. break;
  11354. }
  11355. }
  11356. }
  11357. }
  11358. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11359. public bool HasEscapedBytes {
  11360. get { return result.HasEscapedBytes; }
  11361. }
  11362. public pb::ByteString EscapedBytes {
  11363. get { return result.EscapedBytes; }
  11364. set { SetEscapedBytes(value); }
  11365. }
  11366. public Builder SetEscapedBytes(pb::ByteString value) {
  11367. result.hasEscapedBytes = true;
  11368. result.escapedBytes_ = value;
  11369. return this;
  11370. }
  11371. public Builder ClearEscapedBytes() {
  11372. result.hasEscapedBytes = false;
  11373. result.escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11374. return this;
  11375. }
  11376. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11377. public bool HasLargeUint32 {
  11378. get { return result.HasLargeUint32; }
  11379. }
  11380. public uint LargeUint32 {
  11381. get { return result.LargeUint32; }
  11382. set { SetLargeUint32(value); }
  11383. }
  11384. public Builder SetLargeUint32(uint value) {
  11385. result.hasLargeUint32 = true;
  11386. result.largeUint32_ = value;
  11387. return this;
  11388. }
  11389. public Builder ClearLargeUint32() {
  11390. result.hasLargeUint32 = false;
  11391. result.largeUint32_ = 4294967295;
  11392. return this;
  11393. }
  11394. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11395. public bool HasLargeUint64 {
  11396. get { return result.HasLargeUint64; }
  11397. }
  11398. public ulong LargeUint64 {
  11399. get { return result.LargeUint64; }
  11400. set { SetLargeUint64(value); }
  11401. }
  11402. public Builder SetLargeUint64(ulong value) {
  11403. result.hasLargeUint64 = true;
  11404. result.largeUint64_ = value;
  11405. return this;
  11406. }
  11407. public Builder ClearLargeUint64() {
  11408. result.hasLargeUint64 = false;
  11409. result.largeUint64_ = 18446744073709551615UL;
  11410. return this;
  11411. }
  11412. // optional int32 small_int32 = 4 [default = -2147483647];
  11413. public bool HasSmallInt32 {
  11414. get { return result.HasSmallInt32; }
  11415. }
  11416. public int SmallInt32 {
  11417. get { return result.SmallInt32; }
  11418. set { SetSmallInt32(value); }
  11419. }
  11420. public Builder SetSmallInt32(int value) {
  11421. result.hasSmallInt32 = true;
  11422. result.smallInt32_ = value;
  11423. return this;
  11424. }
  11425. public Builder ClearSmallInt32() {
  11426. result.hasSmallInt32 = false;
  11427. result.smallInt32_ = -2147483647;
  11428. return this;
  11429. }
  11430. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11431. public bool HasSmallInt64 {
  11432. get { return result.HasSmallInt64; }
  11433. }
  11434. public long SmallInt64 {
  11435. get { return result.SmallInt64; }
  11436. set { SetSmallInt64(value); }
  11437. }
  11438. public Builder SetSmallInt64(long value) {
  11439. result.hasSmallInt64 = true;
  11440. result.smallInt64_ = value;
  11441. return this;
  11442. }
  11443. public Builder ClearSmallInt64() {
  11444. result.hasSmallInt64 = false;
  11445. result.smallInt64_ = -9223372036854775807L;
  11446. return this;
  11447. }
  11448. // optional string utf8_string = 6 [default = "\341\210\264"];
  11449. public bool HasUtf8String {
  11450. get { return result.HasUtf8String; }
  11451. }
  11452. public string Utf8String {
  11453. get { return result.Utf8String; }
  11454. set { SetUtf8String(value); }
  11455. }
  11456. public Builder SetUtf8String(string value) {
  11457. result.hasUtf8String = true;
  11458. result.utf8String_ = value;
  11459. return this;
  11460. }
  11461. public Builder ClearUtf8String() {
  11462. result.hasUtf8String = false;
  11463. result.utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11464. return this;
  11465. }
  11466. }
  11467. }
  11468. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11469. // Use FooRequest.CreateBuilder() to construct.
  11470. private FooRequest() {}
  11471. private static readonly FooRequest defaultInstance = new FooRequest();
  11472. public static FooRequest DefaultInstance {
  11473. get { return defaultInstance; }
  11474. }
  11475. public override FooRequest DefaultInstanceForType {
  11476. get { return defaultInstance; }
  11477. }
  11478. public static pbd::MessageDescriptor Descriptor {
  11479. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11480. }
  11481. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11482. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11483. }
  11484. public override bool IsInitialized {
  11485. get {
  11486. return true;
  11487. }
  11488. }
  11489. public override void WriteTo(pb::CodedOutputStream output) {
  11490. UnknownFields.WriteTo(output);
  11491. }
  11492. private int memoizedSerializedSize = -1;
  11493. public override int SerializedSize {
  11494. get {
  11495. int size = memoizedSerializedSize;
  11496. if (size != -1) return size;
  11497. size = 0;
  11498. size += UnknownFields.SerializedSize;
  11499. memoizedSerializedSize = size;
  11500. return size;
  11501. }
  11502. }
  11503. public static self::FooRequest ParseFrom(pb::ByteString data) {
  11504. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11505. }
  11506. public static self::FooRequest ParseFrom(pb::ByteString data,
  11507. pb::ExtensionRegistry extensionRegistry) {
  11508. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11509. .BuildParsed();
  11510. }
  11511. public static self::FooRequest ParseFrom(byte[] data) {
  11512. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11513. }
  11514. public static self::FooRequest parseFrom(byte[] data,
  11515. pb::ExtensionRegistry extensionRegistry) {
  11516. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11517. .BuildParsed();
  11518. }
  11519. public static self::FooRequest ParseFrom(global::System.IO.Stream input) {
  11520. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11521. }
  11522. public static self::FooRequest ParseFrom(
  11523. global::System.IO.Stream input,
  11524. pb::ExtensionRegistry extensionRegistry) {
  11525. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11526. .BuildParsed();
  11527. }
  11528. public static self::FooRequest ParseFrom(pb::CodedInputStream input) {
  11529. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11530. }
  11531. public static self::FooRequest ParseFrom(pb::CodedInputStream input,
  11532. pb::ExtensionRegistry extensionRegistry) {
  11533. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11534. .BuildParsed();
  11535. }
  11536. public static Builder CreateBuilder() { return new Builder(); }
  11537. public override IBuilder<self::FooRequest> CreateBuilderForType() { return new Builder(); }
  11538. public static Builder CreateBuilder(self::FooRequest prototype) {
  11539. return (Builder) new Builder().MergeFrom(prototype);
  11540. }
  11541. public sealed partial class Builder : pb::GeneratedBuilder<self::FooRequest, Builder> {
  11542. // Construct using self::FooRequest.CreateBuilder()
  11543. internal Builder() {}
  11544. self::FooRequest result = new self::FooRequest();
  11545. protected override self::FooRequest MessageBeingBuilt {
  11546. get { return result; }
  11547. }
  11548. public override IBuilder<self::FooRequest> Clear() {
  11549. result = new self::FooRequest();
  11550. return this;
  11551. }
  11552. public override IBuilder<self::FooRequest> Clone() {
  11553. return new Builder().MergeFrom(result);
  11554. }
  11555. public override pbd::MessageDescriptor DescriptorForType {
  11556. get { return self::FooRequest.Descriptor; }
  11557. }
  11558. public override self::FooRequest DefaultInstanceForType {
  11559. get { return self::FooRequest.DefaultInstance; }
  11560. }
  11561. public override self::FooRequest BuildPartial() {
  11562. self::FooRequest returnMe = result;
  11563. result = null;
  11564. return returnMe;
  11565. }
  11566. public override IBuilder MergeFrom(pb::IMessage other) {
  11567. if (other is self::FooRequest) {
  11568. return MergeFrom((self::FooRequest) other);
  11569. } else {
  11570. base.MergeFrom(other);
  11571. return this;
  11572. }
  11573. }
  11574. public override IBuilder<self::FooRequest> MergeFrom(self::FooRequest other) {
  11575. if (other == self::FooRequest.DefaultInstance) return this;
  11576. this.MergeUnknownFields(other.UnknownFields);
  11577. return this;
  11578. }
  11579. public override IBuilder<self::FooRequest> MergeFrom(pb::CodedInputStream input) {
  11580. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11581. }
  11582. public override IBuilder<self::FooRequest> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11583. pb::UnknownFieldSet.Builder unknownFields =
  11584. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11585. while (true) {
  11586. uint tag = input.ReadTag();
  11587. switch (tag) {
  11588. case 0:
  11589. this.UnknownFields = unknownFields.Build();
  11590. return this;
  11591. default: {
  11592. if (!ParseUnknownField(input, unknownFields,
  11593. extensionRegistry, tag)) {
  11594. this.UnknownFields = unknownFields.Build();
  11595. return this;
  11596. }
  11597. break;
  11598. }
  11599. }
  11600. }
  11601. }
  11602. }
  11603. }
  11604. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11605. // Use FooResponse.CreateBuilder() to construct.
  11606. private FooResponse() {}
  11607. private static readonly FooResponse defaultInstance = new FooResponse();
  11608. public static FooResponse DefaultInstance {
  11609. get { return defaultInstance; }
  11610. }
  11611. public override FooResponse DefaultInstanceForType {
  11612. get { return defaultInstance; }
  11613. }
  11614. public static pbd::MessageDescriptor Descriptor {
  11615. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11616. }
  11617. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11618. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11619. }
  11620. public override bool IsInitialized {
  11621. get {
  11622. return true;
  11623. }
  11624. }
  11625. public override void WriteTo(pb::CodedOutputStream output) {
  11626. UnknownFields.WriteTo(output);
  11627. }
  11628. private int memoizedSerializedSize = -1;
  11629. public override int SerializedSize {
  11630. get {
  11631. int size = memoizedSerializedSize;
  11632. if (size != -1) return size;
  11633. size = 0;
  11634. size += UnknownFields.SerializedSize;
  11635. memoizedSerializedSize = size;
  11636. return size;
  11637. }
  11638. }
  11639. public static self::FooResponse ParseFrom(pb::ByteString data) {
  11640. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11641. }
  11642. public static self::FooResponse ParseFrom(pb::ByteString data,
  11643. pb::ExtensionRegistry extensionRegistry) {
  11644. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11645. .BuildParsed();
  11646. }
  11647. public static self::FooResponse ParseFrom(byte[] data) {
  11648. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11649. }
  11650. public static self::FooResponse parseFrom(byte[] data,
  11651. pb::ExtensionRegistry extensionRegistry) {
  11652. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11653. .BuildParsed();
  11654. }
  11655. public static self::FooResponse ParseFrom(global::System.IO.Stream input) {
  11656. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11657. }
  11658. public static self::FooResponse ParseFrom(
  11659. global::System.IO.Stream input,
  11660. pb::ExtensionRegistry extensionRegistry) {
  11661. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11662. .BuildParsed();
  11663. }
  11664. public static self::FooResponse ParseFrom(pb::CodedInputStream input) {
  11665. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11666. }
  11667. public static self::FooResponse ParseFrom(pb::CodedInputStream input,
  11668. pb::ExtensionRegistry extensionRegistry) {
  11669. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11670. .BuildParsed();
  11671. }
  11672. public static Builder CreateBuilder() { return new Builder(); }
  11673. public override IBuilder<self::FooResponse> CreateBuilderForType() { return new Builder(); }
  11674. public static Builder CreateBuilder(self::FooResponse prototype) {
  11675. return (Builder) new Builder().MergeFrom(prototype);
  11676. }
  11677. public sealed partial class Builder : pb::GeneratedBuilder<self::FooResponse, Builder> {
  11678. // Construct using self::FooResponse.CreateBuilder()
  11679. internal Builder() {}
  11680. self::FooResponse result = new self::FooResponse();
  11681. protected override self::FooResponse MessageBeingBuilt {
  11682. get { return result; }
  11683. }
  11684. public override IBuilder<self::FooResponse> Clear() {
  11685. result = new self::FooResponse();
  11686. return this;
  11687. }
  11688. public override IBuilder<self::FooResponse> Clone() {
  11689. return new Builder().MergeFrom(result);
  11690. }
  11691. public override pbd::MessageDescriptor DescriptorForType {
  11692. get { return self::FooResponse.Descriptor; }
  11693. }
  11694. public override self::FooResponse DefaultInstanceForType {
  11695. get { return self::FooResponse.DefaultInstance; }
  11696. }
  11697. public override self::FooResponse BuildPartial() {
  11698. self::FooResponse returnMe = result;
  11699. result = null;
  11700. return returnMe;
  11701. }
  11702. public override IBuilder MergeFrom(pb::IMessage other) {
  11703. if (other is self::FooResponse) {
  11704. return MergeFrom((self::FooResponse) other);
  11705. } else {
  11706. base.MergeFrom(other);
  11707. return this;
  11708. }
  11709. }
  11710. public override IBuilder<self::FooResponse> MergeFrom(self::FooResponse other) {
  11711. if (other == self::FooResponse.DefaultInstance) return this;
  11712. this.MergeUnknownFields(other.UnknownFields);
  11713. return this;
  11714. }
  11715. public override IBuilder<self::FooResponse> MergeFrom(pb::CodedInputStream input) {
  11716. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11717. }
  11718. public override IBuilder<self::FooResponse> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11719. pb::UnknownFieldSet.Builder unknownFields =
  11720. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11721. while (true) {
  11722. uint tag = input.ReadTag();
  11723. switch (tag) {
  11724. case 0:
  11725. this.UnknownFields = unknownFields.Build();
  11726. return this;
  11727. default: {
  11728. if (!ParseUnknownField(input, unknownFields,
  11729. extensionRegistry, tag)) {
  11730. this.UnknownFields = unknownFields.Build();
  11731. return this;
  11732. }
  11733. break;
  11734. }
  11735. }
  11736. }
  11737. }
  11738. }
  11739. }
  11740. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11741. // Use BarRequest.CreateBuilder() to construct.
  11742. private BarRequest() {}
  11743. private static readonly BarRequest defaultInstance = new BarRequest();
  11744. public static BarRequest DefaultInstance {
  11745. get { return defaultInstance; }
  11746. }
  11747. public override BarRequest DefaultInstanceForType {
  11748. get { return defaultInstance; }
  11749. }
  11750. public static pbd::MessageDescriptor Descriptor {
  11751. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11752. }
  11753. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11754. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11755. }
  11756. public override bool IsInitialized {
  11757. get {
  11758. return true;
  11759. }
  11760. }
  11761. public override void WriteTo(pb::CodedOutputStream output) {
  11762. UnknownFields.WriteTo(output);
  11763. }
  11764. private int memoizedSerializedSize = -1;
  11765. public override int SerializedSize {
  11766. get {
  11767. int size = memoizedSerializedSize;
  11768. if (size != -1) return size;
  11769. size = 0;
  11770. size += UnknownFields.SerializedSize;
  11771. memoizedSerializedSize = size;
  11772. return size;
  11773. }
  11774. }
  11775. public static self::BarRequest ParseFrom(pb::ByteString data) {
  11776. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11777. }
  11778. public static self::BarRequest ParseFrom(pb::ByteString data,
  11779. pb::ExtensionRegistry extensionRegistry) {
  11780. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11781. .BuildParsed();
  11782. }
  11783. public static self::BarRequest ParseFrom(byte[] data) {
  11784. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11785. }
  11786. public static self::BarRequest parseFrom(byte[] data,
  11787. pb::ExtensionRegistry extensionRegistry) {
  11788. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11789. .BuildParsed();
  11790. }
  11791. public static self::BarRequest ParseFrom(global::System.IO.Stream input) {
  11792. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11793. }
  11794. public static self::BarRequest ParseFrom(
  11795. global::System.IO.Stream input,
  11796. pb::ExtensionRegistry extensionRegistry) {
  11797. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11798. .BuildParsed();
  11799. }
  11800. public static self::BarRequest ParseFrom(pb::CodedInputStream input) {
  11801. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11802. }
  11803. public static self::BarRequest ParseFrom(pb::CodedInputStream input,
  11804. pb::ExtensionRegistry extensionRegistry) {
  11805. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11806. .BuildParsed();
  11807. }
  11808. public static Builder CreateBuilder() { return new Builder(); }
  11809. public override IBuilder<self::BarRequest> CreateBuilderForType() { return new Builder(); }
  11810. public static Builder CreateBuilder(self::BarRequest prototype) {
  11811. return (Builder) new Builder().MergeFrom(prototype);
  11812. }
  11813. public sealed partial class Builder : pb::GeneratedBuilder<self::BarRequest, Builder> {
  11814. // Construct using self::BarRequest.CreateBuilder()
  11815. internal Builder() {}
  11816. self::BarRequest result = new self::BarRequest();
  11817. protected override self::BarRequest MessageBeingBuilt {
  11818. get { return result; }
  11819. }
  11820. public override IBuilder<self::BarRequest> Clear() {
  11821. result = new self::BarRequest();
  11822. return this;
  11823. }
  11824. public override IBuilder<self::BarRequest> Clone() {
  11825. return new Builder().MergeFrom(result);
  11826. }
  11827. public override pbd::MessageDescriptor DescriptorForType {
  11828. get { return self::BarRequest.Descriptor; }
  11829. }
  11830. public override self::BarRequest DefaultInstanceForType {
  11831. get { return self::BarRequest.DefaultInstance; }
  11832. }
  11833. public override self::BarRequest BuildPartial() {
  11834. self::BarRequest returnMe = result;
  11835. result = null;
  11836. return returnMe;
  11837. }
  11838. public override IBuilder MergeFrom(pb::IMessage other) {
  11839. if (other is self::BarRequest) {
  11840. return MergeFrom((self::BarRequest) other);
  11841. } else {
  11842. base.MergeFrom(other);
  11843. return this;
  11844. }
  11845. }
  11846. public override IBuilder<self::BarRequest> MergeFrom(self::BarRequest other) {
  11847. if (other == self::BarRequest.DefaultInstance) return this;
  11848. this.MergeUnknownFields(other.UnknownFields);
  11849. return this;
  11850. }
  11851. public override IBuilder<self::BarRequest> MergeFrom(pb::CodedInputStream input) {
  11852. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11853. }
  11854. public override IBuilder<self::BarRequest> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11855. pb::UnknownFieldSet.Builder unknownFields =
  11856. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11857. while (true) {
  11858. uint tag = input.ReadTag();
  11859. switch (tag) {
  11860. case 0:
  11861. this.UnknownFields = unknownFields.Build();
  11862. return this;
  11863. default: {
  11864. if (!ParseUnknownField(input, unknownFields,
  11865. extensionRegistry, tag)) {
  11866. this.UnknownFields = unknownFields.Build();
  11867. return this;
  11868. }
  11869. break;
  11870. }
  11871. }
  11872. }
  11873. }
  11874. }
  11875. }
  11876. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11877. // Use BarResponse.CreateBuilder() to construct.
  11878. private BarResponse() {}
  11879. private static readonly BarResponse defaultInstance = new BarResponse();
  11880. public static BarResponse DefaultInstance {
  11881. get { return defaultInstance; }
  11882. }
  11883. public override BarResponse DefaultInstanceForType {
  11884. get { return defaultInstance; }
  11885. }
  11886. public static pbd::MessageDescriptor Descriptor {
  11887. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11888. }
  11889. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11890. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11891. }
  11892. public override bool IsInitialized {
  11893. get {
  11894. return true;
  11895. }
  11896. }
  11897. public override void WriteTo(pb::CodedOutputStream output) {
  11898. UnknownFields.WriteTo(output);
  11899. }
  11900. private int memoizedSerializedSize = -1;
  11901. public override int SerializedSize {
  11902. get {
  11903. int size = memoizedSerializedSize;
  11904. if (size != -1) return size;
  11905. size = 0;
  11906. size += UnknownFields.SerializedSize;
  11907. memoizedSerializedSize = size;
  11908. return size;
  11909. }
  11910. }
  11911. public static self::BarResponse ParseFrom(pb::ByteString data) {
  11912. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11913. }
  11914. public static self::BarResponse ParseFrom(pb::ByteString data,
  11915. pb::ExtensionRegistry extensionRegistry) {
  11916. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11917. .BuildParsed();
  11918. }
  11919. public static self::BarResponse ParseFrom(byte[] data) {
  11920. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11921. }
  11922. public static self::BarResponse parseFrom(byte[] data,
  11923. pb::ExtensionRegistry extensionRegistry) {
  11924. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11925. .BuildParsed();
  11926. }
  11927. public static self::BarResponse ParseFrom(global::System.IO.Stream input) {
  11928. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11929. }
  11930. public static self::BarResponse ParseFrom(
  11931. global::System.IO.Stream input,
  11932. pb::ExtensionRegistry extensionRegistry) {
  11933. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11934. .BuildParsed();
  11935. }
  11936. public static self::BarResponse ParseFrom(pb::CodedInputStream input) {
  11937. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11938. }
  11939. public static self::BarResponse ParseFrom(pb::CodedInputStream input,
  11940. pb::ExtensionRegistry extensionRegistry) {
  11941. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11942. .BuildParsed();
  11943. }
  11944. public static Builder CreateBuilder() { return new Builder(); }
  11945. public override IBuilder<self::BarResponse> CreateBuilderForType() { return new Builder(); }
  11946. public static Builder CreateBuilder(self::BarResponse prototype) {
  11947. return (Builder) new Builder().MergeFrom(prototype);
  11948. }
  11949. public sealed partial class Builder : pb::GeneratedBuilder<self::BarResponse, Builder> {
  11950. // Construct using self::BarResponse.CreateBuilder()
  11951. internal Builder() {}
  11952. self::BarResponse result = new self::BarResponse();
  11953. protected override self::BarResponse MessageBeingBuilt {
  11954. get { return result; }
  11955. }
  11956. public override IBuilder<self::BarResponse> Clear() {
  11957. result = new self::BarResponse();
  11958. return this;
  11959. }
  11960. public override IBuilder<self::BarResponse> Clone() {
  11961. return new Builder().MergeFrom(result);
  11962. }
  11963. public override pbd::MessageDescriptor DescriptorForType {
  11964. get { return self::BarResponse.Descriptor; }
  11965. }
  11966. public override self::BarResponse DefaultInstanceForType {
  11967. get { return self::BarResponse.DefaultInstance; }
  11968. }
  11969. public override self::BarResponse BuildPartial() {
  11970. self::BarResponse returnMe = result;
  11971. result = null;
  11972. return returnMe;
  11973. }
  11974. public override IBuilder MergeFrom(pb::IMessage other) {
  11975. if (other is self::BarResponse) {
  11976. return MergeFrom((self::BarResponse) other);
  11977. } else {
  11978. base.MergeFrom(other);
  11979. return this;
  11980. }
  11981. }
  11982. public override IBuilder<self::BarResponse> MergeFrom(self::BarResponse other) {
  11983. if (other == self::BarResponse.DefaultInstance) return this;
  11984. this.MergeUnknownFields(other.UnknownFields);
  11985. return this;
  11986. }
  11987. public override IBuilder<self::BarResponse> MergeFrom(pb::CodedInputStream input) {
  11988. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11989. }
  11990. public override IBuilder<self::BarResponse> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11991. pb::UnknownFieldSet.Builder unknownFields =
  11992. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11993. while (true) {
  11994. uint tag = input.ReadTag();
  11995. switch (tag) {
  11996. case 0:
  11997. this.UnknownFields = unknownFields.Build();
  11998. return this;
  11999. default: {
  12000. if (!ParseUnknownField(input, unknownFields,
  12001. extensionRegistry, tag)) {
  12002. this.UnknownFields = unknownFields.Build();
  12003. return this;
  12004. }
  12005. break;
  12006. }
  12007. }
  12008. }
  12009. }
  12010. }
  12011. }
  12012. #endregion
  12013. #region Services
  12014. public abstract class TestService : pb::IService {
  12015. public abstract void Foo(
  12016. pb::IRpcController controller,
  12017. self::FooRequest request,
  12018. global::System.Action<self::FooResponse> done);
  12019. public abstract void Bar(
  12020. pb::IRpcController controller,
  12021. self::BarRequest request,
  12022. global::System.Action<self::BarResponse> done);
  12023. public static pbd::ServiceDescriptor Descriptor {
  12024. get { return self::UnitTestProtoFile.Descriptor.Services[0]; }
  12025. }
  12026. public pbd::ServiceDescriptor DescriptorForType {
  12027. get { return Descriptor; }
  12028. }
  12029. public void CallMethod(
  12030. pbd::MethodDescriptor method,
  12031. pb::IRpcController controller,
  12032. pb::IMessage request,
  12033. global::System.Action<pb::IMessage> done) {
  12034. if (method.Service != Descriptor) {
  12035. throw new global::System.ArgumentException(
  12036. "Service.CallMethod() given method descriptor for wrong " +
  12037. "service type.");
  12038. }
  12039. switch(method.Index) {
  12040. case 0:
  12041. this.Foo(controller, (self::FooRequest)request,
  12042. pb::RpcUtil.SpecializeCallback<self::FooResponse>(
  12043. done));
  12044. return;
  12045. case 1:
  12046. this.Bar(controller, (self::BarRequest)request,
  12047. pb::RpcUtil.SpecializeCallback<self::BarResponse>(
  12048. done));
  12049. return;
  12050. default:
  12051. throw new global::System.InvalidOperationException("Can't get here.");
  12052. }
  12053. }
  12054. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12055. if (method.Service != Descriptor) {
  12056. throw new global::System.ArgumentException(
  12057. "Service.GetRequestPrototype() given method " +
  12058. "descriptor for wrong service type.");
  12059. }
  12060. switch(method.Index) {
  12061. case 0:
  12062. return self::FooRequest.DefaultInstance;
  12063. case 1:
  12064. return self::BarRequest.DefaultInstance;
  12065. default:
  12066. throw new global::System.ArgumentException("Can't get here.");
  12067. }
  12068. }
  12069. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12070. if (method.Service != Descriptor) {
  12071. throw new global::System.ArgumentException(
  12072. "Service.GetResponsePrototype() given method " +
  12073. "descriptor for wrong service type.");
  12074. }
  12075. switch(method.Index) {
  12076. case 0:
  12077. return self::FooResponse.DefaultInstance;
  12078. case 1:
  12079. return self::BarResponse.DefaultInstance;
  12080. default:
  12081. throw new global::System.ArgumentException("Can't get here.");
  12082. }
  12083. }
  12084. public static Stub CreateStub(
  12085. pb::IRpcChannel channel) {
  12086. return new Stub(channel);
  12087. }
  12088. public class Stub : self::TestService {
  12089. internal Stub(pb::IRpcChannel channel) {
  12090. this.channel = channel;
  12091. }
  12092. private readonly pb::IRpcChannel channel;
  12093. public pb::IRpcChannel Channel {
  12094. get { return channel; }
  12095. }
  12096. public override void Foo(
  12097. pb::IRpcController controller,
  12098. self::FooRequest request,
  12099. global::System.Action<self::FooResponse> done) {
  12100. channel.CallMethod(
  12101. Descriptor.Methods[0],
  12102. controller,
  12103. request,
  12104. self::FooResponse.DefaultInstance,
  12105. pb::RpcUtil.GeneralizeCallback(done, self::FooResponse.DefaultInstance));
  12106. }
  12107. public override void Bar(
  12108. pb::IRpcController controller,
  12109. self::BarRequest request,
  12110. global::System.Action<self::BarResponse> done) {
  12111. channel.CallMethod(
  12112. Descriptor.Methods[1],
  12113. controller,
  12114. request,
  12115. self::BarResponse.DefaultInstance,
  12116. pb::RpcUtil.GeneralizeCallback(done, self::BarResponse.DefaultInstance));
  12117. }
  12118. }
  12119. }
  12120. #endregion
  12121. }