UnitTestProtoFile.cs 567 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Google.ProtocolBuffers.TestProtos {
  7. public static partial class UnitTestProtoFile {
  8. #region Descriptor
  9. public static pbd::FileDescriptor Descriptor {
  10. get { return descriptor; }
  11. }
  12. private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
  13. new byte[] {
  14. 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e,
  15. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  16. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  17. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  18. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x15, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41,
  19. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  20. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  21. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x6f,
  22. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
  23. 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
  24. 0x04, 0x20, 0x01, 0x28, 0x04, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69,
  25. 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  26. 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x6f,
  27. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28,
  28. 0x07, 0x12, 0x18, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36,
  29. 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  30. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70,
  31. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28,
  32. 0x10, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18,
  33. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  34. 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  35. 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74,
  36. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16,
  37. 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01,
  38. 0x28, 0x0c, 0x12, 0x44, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
  39. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  40. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4f,
  41. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69,
  42. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  43. 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  44. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  45. 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69,
  46. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  47. 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  48. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  49. 0x65, 0x12, 0x48, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  50. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  51. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  52. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x6f,
  53. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18,
  54. 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  55. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  56. 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  57. 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e,
  58. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  59. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x6f, 0x70, 0x74, 0x69,
  60. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x17, 0x20, 0x01,
  61. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  62. 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d,
  63. 0x12, 0x21, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
  64. 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x6f,
  65. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
  66. 0x08, 0x01, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  67. 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69,
  68. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  69. 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d, 0x12, 0x17, 0x0a, 0x0f, 0x72,
  70. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04,
  71. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18,
  72. 0x23, 0x20, 0x03, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69,
  73. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  74. 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x12, 0x18, 0x0a, 0x10,
  75. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x26, 0x20, 0x03,
  76. 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  77. 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  78. 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x12, 0x16, 0x0a, 0x0e,
  79. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02,
  80. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18,
  81. 0x2a, 0x20, 0x03, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f,
  82. 0x6f, 0x6c, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  83. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70,
  84. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x12, 0x44, 0x0a,
  85. 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a,
  86. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  87. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  88. 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  89. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b,
  90. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  91. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  92. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  93. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x31, 0x20, 0x03, 0x28,
  94. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  95. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x17,
  96. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  97. 0x61, 0x67, 0x65, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  98. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70,
  99. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  100. 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e,
  101. 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  102. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  103. 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72,
  104. 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72,
  105. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65,
  106. 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  107. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e,
  108. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  109. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x21, 0x0a, 0x15, 0x72,
  110. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65,
  111. 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  112. 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x37, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x19, 0x0a,
  113. 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05,
  114. 0x3a, 0x02, 0x34, 0x31, 0x12, 0x19, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36,
  115. 0x34, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x12, 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  116. 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x12,
  117. 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x40, 0x20,
  118. 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x12, 0x1b, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
  119. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x41, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x12, 0x1a, 0x0a, 0x0e,
  120. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12,
  121. 0x3a, 0x02, 0x34, 0x36, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65,
  122. 0x64, 0x33, 0x32, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66,
  123. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02,
  124. 0x34, 0x38, 0x12, 0x1c, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64,
  125. 0x33, 0x32, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x12, 0x1d, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61,
  126. 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03,
  127. 0x2d, 0x35, 0x30, 0x12, 0x1b, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74,
  128. 0x18, 0x47, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61,
  129. 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x48, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32,
  130. 0x30, 0x30, 0x30, 0x12, 0x1a, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
  131. 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  132. 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68, 0x65, 0x6c,
  133. 0x6c, 0x6f, 0x12, 0x1c, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
  134. 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x12, 0x4c, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61,
  135. 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x51, 0x20, 0x01, 0x28,
  136. 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  137. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65,
  138. 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x12, 0x49, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  139. 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e,
  140. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  141. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47,
  142. 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x12, 0x4d, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70,
  143. 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  144. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  145. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54,
  146. 0x5f, 0x42, 0x41, 0x52, 0x12, 0x25, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69,
  147. 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62, 0x63, 0x42,
  148. 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18,
  149. 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33, 0x42, 0x02, 0x08, 0x01, 0x1a, 0x1b, 0x0a, 0x0d, 0x4e, 0x65,
  150. 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0a, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20,
  151. 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70,
  152. 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61,
  153. 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22,
  154. 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f,
  155. 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x03,
  156. 0x22, 0x1b, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09,
  157. 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x1d, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  158. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02,
  159. 0x22, 0x24, 0x0a, 0x17, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78,
  160. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x22, 0x24,
  161. 0x0a, 0x17, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  162. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22, 0xd5, 0x05, 0x0a,
  163. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01,
  164. 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
  165. 0x12, 0x09, 0x0a, 0x01, 0x62, 0x18, 0x03, 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  166. 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x35, 0x18, 0x05, 0x20,
  167. 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x36, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x12,
  168. 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x37, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64,
  169. 0x75, 0x6d, 0x6d, 0x79, 0x38, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  170. 0x39, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x30, 0x18, 0x0a,
  171. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28,
  172. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f,
  173. 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64,
  174. 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d,
  175. 0x79, 0x31, 0x35, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x36,
  176. 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x37, 0x18, 0x11, 0x20,
  177. 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x38, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05,
  178. 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x39, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a,
  179. 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75,
  180. 0x6d, 0x6d, 0x79, 0x32, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  181. 0x32, 0x32, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x33, 0x18,
  182. 0x17, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x34, 0x18, 0x18, 0x20, 0x01,
  183. 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x35, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x12,
  184. 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x36, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07,
  185. 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x37, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d,
  186. 0x6d, 0x79, 0x32, 0x38, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32,
  187. 0x39, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x30, 0x18, 0x1e,
  188. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x31, 0x18, 0x1f, 0x20, 0x01, 0x28,
  189. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x32, 0x18, 0x20, 0x20, 0x01, 0x28, 0x05, 0x12, 0x09,
  190. 0x0a, 0x01, 0x63, 0x18, 0x21, 0x20, 0x02, 0x28, 0x05, 0x32, 0x56, 0x0a, 0x06, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x12,
  191. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  192. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07,
  193. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  194. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x32, 0x55, 0x0a,
  195. 0x05, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  196. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  197. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  198. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
  199. 0x69, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  200. 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x12, 0x39, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  201. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f,
  202. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52,
  203. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  204. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  205. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65,
  206. 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x0d, 0x0a, 0x05, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  207. 0x05, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x73, 0x74,
  208. 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  209. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  210. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e,
  211. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x65, 0x73,
  212. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x1e, 0x54, 0x65, 0x73,
  213. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x74,
  214. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x34, 0x0a,
  215. 0x18, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x54, 0x61, 0x67, 0x4e,
  216. 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0d, 0x0a, 0x02,
  217. 0x62, 0x62, 0x18, 0xff, 0xff, 0xff, 0x7f, 0x20, 0x01, 0x28, 0x05, 0x22, 0x55, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x52,
  218. 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x01, 0x61,
  219. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  220. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65,
  221. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09, 0x0a, 0x01, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0x4b,
  222. 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f,
  223. 0x6e, 0x41, 0x12, 0x33, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  224. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d,
  225. 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x62, 0x0a, 0x14, 0x54,
  226. 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x12,
  227. 0x32, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  228. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61,
  229. 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  230. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0xb3, 0x01, 0x0a, 0x12,
  231. 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09,
  232. 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01,
  233. 0x28, 0x0a, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  234. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  235. 0x72, 0x2e, 0x46, 0x6f, 0x6f, 0x12, 0x36, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x29,
  236. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  237. 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x61,
  238. 0x72, 0x1a, 0x10, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x1a,
  239. 0x10, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x80, 0x02,
  240. 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
  241. 0x61, 0x73, 0x42, 0x69, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e,
  242. 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  243. 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  244. 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x61, 0x73,
  245. 0x42, 0x69, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x87,
  246. 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x1c,
  247. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  248. 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x12, 0x50, 0x0a, 0x25, 0x6e, 0x65,
  249. 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  250. 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
  251. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  252. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe5, 0x03, 0x0a,
  253. 0x17, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e,
  254. 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65,
  255. 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69,
  256. 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x31, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65,
  257. 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  258. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d,
  259. 0x12, 0x37, 0x0a, 0x0c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01,
  260. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  261. 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a,
  262. 0x10, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20,
  263. 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x15, 0x0a, 0x09, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64,
  264. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  265. 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x03,
  266. 0x28, 0x05, 0x12, 0x1b, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
  267. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x12, 0x39, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x65, 0x61,
  268. 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e,
  269. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46,
  270. 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3f, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  271. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
  272. 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  273. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x18, 0x52,
  274. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69,
  275. 0x65, 0x6c, 0x64, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x11, 0x52, 0x65, 0x70,
  276. 0x65, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09,
  277. 0x42, 0x02, 0x08, 0x01, 0x22, 0x55, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  278. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x11, 0x0a, 0x09, 0x6d, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18,
  279. 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  280. 0x03, 0x12, 0x10, 0x0a, 0x08, 0x6d, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x02, 0x2a,
  281. 0x04, 0x08, 0x02, 0x10, 0x0b, 0x2a, 0x04, 0x08, 0x0c, 0x10, 0x65, 0x22, 0x90, 0x02, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74,
  282. 0x45, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
  283. 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20,
  284. 0x01, 0x28, 0x0c, 0x3a, 0x28, 0x5c, 0x30, 0x30, 0x30, 0x5c, 0x30, 0x30, 0x31, 0x5c, 0x30, 0x30, 0x37, 0x5c, 0x30, 0x31,
  285. 0x30, 0x5c, 0x30, 0x31, 0x34, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x74, 0x5c, 0x30, 0x31, 0x33, 0x5c, 0x5c, 0x5c, 0x27, 0x5c,
  286. 0x22, 0x5c, 0x33, 0x37, 0x36, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33,
  287. 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x0a, 0x34, 0x32, 0x39, 0x34, 0x39, 0x36, 0x37, 0x32, 0x39, 0x35, 0x12,
  288. 0x2a, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28,
  289. 0x04, 0x3a, 0x14, 0x31, 0x38, 0x34, 0x34, 0x36, 0x37, 0x34, 0x34, 0x30, 0x37, 0x33, 0x37, 0x30, 0x39, 0x35, 0x35, 0x31,
  290. 0x36, 0x31, 0x35, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04,
  291. 0x20, 0x01, 0x28, 0x05, 0x3a, 0x0b, 0x2d, 0x32, 0x31, 0x34, 0x37, 0x34, 0x38, 0x33, 0x36, 0x34, 0x37, 0x12, 0x29, 0x0a,
  292. 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x14,
  293. 0x2d, 0x39, 0x32, 0x32, 0x33, 0x33, 0x37, 0x32, 0x30, 0x33, 0x36, 0x38, 0x35, 0x34, 0x37, 0x37, 0x35, 0x38, 0x30, 0x37,
  294. 0x12, 0x18, 0x0a, 0x0b, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
  295. 0x09, 0x3a, 0x03, 0xe1, 0x88, 0xb4, 0x22, 0x0c, 0x0a, 0x0a, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  296. 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x42,
  297. 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70,
  298. 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x40, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12,
  299. 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x4f, 0x4f, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b,
  300. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52,
  301. 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x5a, 0x10, 0x06, 0x2a, 0x47, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e,
  302. 0x75, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x44, 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f,
  303. 0x4f, 0x31, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52, 0x31, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41,
  304. 0x5a, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f, 0x4f, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52,
  305. 0x32, 0x10, 0x02, 0x2a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x70, 0x61, 0x72, 0x73, 0x65, 0x45, 0x6e,
  306. 0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x10, 0x7b, 0x12, 0x0e, 0x0a, 0x08,
  307. 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x42, 0x10, 0xa6, 0xe7, 0x03, 0x12, 0x0f, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  308. 0x53, 0x45, 0x5f, 0x43, 0x10, 0xb2, 0xb1, 0x80, 0x06, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  309. 0x44, 0x10, 0xf1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  310. 0x53, 0x45, 0x5f, 0x45, 0x10, 0xb4, 0xde, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53,
  311. 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x46, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  312. 0x47, 0x10, 0x02, 0x32, 0x99, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  313. 0x44, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  314. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
  315. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  316. 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x1d, 0x2e, 0x70,
  317. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72,
  318. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  319. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a,
  320. 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78,
  321. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  322. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  323. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  324. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  325. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  326. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
  327. 0x01, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74,
  328. 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  329. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  330. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x47, 0x0a, 0x19,
  331. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65,
  332. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  333. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  334. 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  335. 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  336. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  337. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01,
  338. 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36,
  339. 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  340. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  341. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x48, 0x0a, 0x1a, 0x6f,
  342. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  343. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  344. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  345. 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  346. 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  347. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  348. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20,
  349. 0x01, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78,
  350. 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  351. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  352. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x49,
  353. 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f,
  354. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  355. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  356. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74,
  357. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  358. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  359. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  360. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  361. 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  362. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  363. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x45,
  364. 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65,
  365. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  366. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  367. 0x6f, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  368. 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  369. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  370. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01,
  371. 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73,
  372. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  373. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  374. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x71, 0x0a, 0x17, 0x6f, 0x70,
  375. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  376. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  377. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  378. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  379. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f,
  380. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  381. 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74,
  382. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  383. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  384. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  385. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79,
  386. 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x73, 0x0a,
  387. 0x22, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65,
  388. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  389. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  390. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32,
  391. 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  392. 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x21, 0x6f, 0x70,
  393. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  394. 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  395. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  396. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72,
  397. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  398. 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x1e,
  399. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
  400. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  401. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  402. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f,
  403. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  404. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x6d,
  405. 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65,
  406. 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  407. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  408. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
  409. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  410. 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  411. 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  412. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  413. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  414. 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  415. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
  416. 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74,
  417. 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  418. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  419. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x18,
  420. 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  421. 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  422. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  423. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42,
  424. 0x02, 0x08, 0x01, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33,
  425. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  426. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  427. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x72,
  428. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  429. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  430. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  431. 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  432. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70,
  433. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73,
  434. 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d,
  435. 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  436. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  437. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  438. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  439. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  440. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  441. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  442. 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73,
  443. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  444. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  445. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x3a,
  446. 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f,
  447. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  448. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  449. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70,
  450. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  451. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  452. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  453. 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  454. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  455. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  456. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x27, 0x20, 0x03,
  457. 0x28, 0x0f, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  458. 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  459. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  460. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x3a, 0x46, 0x0a,
  461. 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
  462. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  463. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  464. 0x6f, 0x6e, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  465. 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  466. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  467. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2a, 0x20, 0x03,
  468. 0x28, 0x01, 0x3a, 0x45, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f,
  469. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  470. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  471. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  472. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  473. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  474. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  475. 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62,
  476. 0x79, 0x74, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  477. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  478. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x3a, 0x71,
  479. 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  480. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  481. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  482. 0x6f, 0x6e, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  483. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72,
  484. 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x72, 0x65, 0x70,
  485. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  486. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  487. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  488. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f,
  489. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  490. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  491. 0x65, 0x3a, 0x73, 0x0a, 0x22, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67,
  492. 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  493. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  494. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x31, 0x20,
  495. 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  496. 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78,
  497. 0x0a, 0x21, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65,
  498. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  499. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  500. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32,
  501. 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f,
  502. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  503. 0x3a, 0x78, 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  504. 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  505. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  506. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2a,
  507. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  508. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
  509. 0x75, 0x6d, 0x3a, 0x6d, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69,
  510. 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  511. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  512. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x34, 0x20, 0x03, 0x28,
  513. 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  514. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x72, 0x65, 0x70,
  515. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78,
  516. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  517. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  518. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  519. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49,
  520. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  521. 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  522. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  523. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  524. 0x6e, 0x73, 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65,
  525. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  526. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  527. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x37, 0x20,
  528. 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69,
  529. 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  530. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  531. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x02,
  532. 0x34, 0x31, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  533. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  534. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  535. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x3a, 0x4a, 0x0a,
  536. 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  537. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  538. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  539. 0x6f, 0x6e, 0x73, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66,
  540. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  541. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  542. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  543. 0x40, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x3a, 0x4b, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  544. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  545. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  546. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x41, 0x20, 0x01, 0x28,
  547. 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69,
  548. 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  549. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  550. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x02,
  551. 0x34, 0x36, 0x3a, 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33,
  552. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  553. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  554. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x3a,
  555. 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65,
  556. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  557. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65,
  558. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02, 0x34, 0x38, 0x3a, 0x4c, 0x0a, 0x1a,
  559. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74,
  560. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  561. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  562. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x3a, 0x4d, 0x0a, 0x1a, 0x64, 0x65,
  563. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  564. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  565. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  566. 0x6e, 0x73, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03, 0x2d, 0x35, 0x30, 0x3a, 0x4b, 0x0a, 0x17, 0x64, 0x65, 0x66,
  567. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  568. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  569. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x47,
  570. 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  571. 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  572. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  573. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x48, 0x20, 0x01,
  574. 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32, 0x30, 0x30, 0x30, 0x3a, 0x4a, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  575. 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  576. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  577. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a,
  578. 0x04, 0x74, 0x72, 0x75, 0x65, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72,
  579. 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  580. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  581. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68,
  582. 0x65, 0x6c, 0x6c, 0x6f, 0x3a, 0x4c, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65,
  583. 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  584. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  585. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72,
  586. 0x6c, 0x64, 0x3a, 0x7c, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  587. 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  588. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  589. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x51, 0x20, 0x01, 0x28, 0x0e, 0x32,
  590. 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  591. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
  592. 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x3a, 0x79, 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  593. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  594. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  595. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  596. 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  597. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b,
  598. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x7d, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75,
  599. 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  600. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  601. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  602. 0x6e, 0x73, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  603. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f,
  604. 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x55,
  605. 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65,
  606. 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  607. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  608. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62,
  609. 0x63, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x4d, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72,
  610. 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  611. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  612. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33,
  613. 0x42, 0x02, 0x08, 0x01, 0x3a, 0x42, 0x0a, 0x13, 0x6d, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  614. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  615. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  616. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x3f, 0x0a, 0x10, 0x6d, 0x79, 0x5f, 0x65,
  617. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  618. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65,
  619. 0x6c, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x49, 0x42,
  620. 0x0d, 0x55, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x01, 0xc2, 0x3e, 0x21, 0x47,
  621. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
  622. 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xca, 0x3e, 0x11, 0x55, 0x6e, 0x69, 0x74, 0x54,
  623. 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65,
  624. }, new pbd::FileDescriptor[] {
  625. global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor,
  626. });
  627. #endregion
  628. #region Extensions
  629. public static readonly pb::GeneratedExtensionBase<int> OptionalInt32Extension =
  630. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]);
  631. public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension =
  632. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]);
  633. public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension =
  634. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]);
  635. public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension =
  636. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]);
  637. public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension =
  638. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]);
  639. public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension =
  640. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]);
  641. public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension =
  642. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]);
  643. public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension =
  644. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]);
  645. public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension =
  646. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]);
  647. public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension =
  648. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]);
  649. public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension =
  650. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]);
  651. public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension =
  652. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]);
  653. public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension =
  654. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]);
  655. public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension =
  656. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]);
  657. public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension =
  658. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]);
  659. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension =
  660. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]);
  661. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  662. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]);
  663. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension =
  664. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[17]);
  665. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension =
  666. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[18]);
  667. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  668. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]);
  669. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension =
  670. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[20]);
  671. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension =
  672. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[21]);
  673. public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension =
  674. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]);
  675. public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension =
  676. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]);
  677. public static readonly
  678. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension =
  679. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]);
  680. public static readonly
  681. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension =
  682. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]);
  683. public static readonly
  684. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension =
  685. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]);
  686. public static readonly
  687. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension =
  688. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]);
  689. public static readonly
  690. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension =
  691. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]);
  692. public static readonly
  693. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension =
  694. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]);
  695. public static readonly
  696. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension =
  697. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]);
  698. public static readonly
  699. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension =
  700. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]);
  701. public static readonly
  702. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension =
  703. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]);
  704. public static readonly
  705. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension =
  706. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]);
  707. public static readonly
  708. pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension =
  709. pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]);
  710. public static readonly
  711. pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension =
  712. pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]);
  713. public static readonly
  714. pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension =
  715. pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]);
  716. public static readonly
  717. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension =
  718. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]);
  719. public static readonly
  720. pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension =
  721. pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]);
  722. public static readonly
  723. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension =
  724. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]);
  725. public static readonly
  726. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension =
  727. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]);
  728. public static readonly
  729. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension =
  730. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[41]);
  731. public static readonly
  732. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension =
  733. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[42]);
  734. public static readonly
  735. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension =
  736. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]);
  737. public static readonly
  738. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension =
  739. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[44]);
  740. public static readonly
  741. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension =
  742. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[45]);
  743. public static readonly
  744. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension =
  745. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]);
  746. public static readonly
  747. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension =
  748. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]);
  749. public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension =
  750. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]);
  751. public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension =
  752. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]);
  753. public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension =
  754. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]);
  755. public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension =
  756. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]);
  757. public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension =
  758. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]);
  759. public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension =
  760. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]);
  761. public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension =
  762. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]);
  763. public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension =
  764. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]);
  765. public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension =
  766. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]);
  767. public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension =
  768. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]);
  769. public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension =
  770. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]);
  771. public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension =
  772. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]);
  773. public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension =
  774. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]);
  775. public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension =
  776. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]);
  777. public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension =
  778. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]);
  779. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  780. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]);
  781. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension =
  782. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[64]);
  783. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension =
  784. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[65]);
  785. public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension =
  786. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]);
  787. public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension =
  788. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]);
  789. public static readonly pb::GeneratedExtensionBase<string> MyExtensionString =
  790. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]);
  791. public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt =
  792. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[69]);
  793. #endregion
  794. #region Static variables
  795. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor
  796. = Descriptor.MessageTypes[0];
  797. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable
  798. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
  799. 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", });
  800. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor
  801. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  802. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable
  803. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  804. new string[] { "Bb", });
  805. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor
  806. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  807. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable
  808. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  809. new string[] { "A", });
  810. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor
  811. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  812. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable
  813. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  814. new string[] { "A", });
  815. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor
  816. = Descriptor.MessageTypes[1];
  817. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable
  818. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  819. new string[] { "C", });
  820. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor
  821. = Descriptor.MessageTypes[2];
  822. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable
  823. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  824. new string[] { });
  825. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor
  826. = Descriptor.MessageTypes[3];
  827. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable
  828. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  829. new string[] { "A", });
  830. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor
  831. = Descriptor.MessageTypes[4];
  832. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable
  833. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  834. new string[] { "A", });
  835. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor
  836. = Descriptor.MessageTypes[5];
  837. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable
  838. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor,
  839. 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", });
  840. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor
  841. = Descriptor.MessageTypes[6];
  842. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable
  843. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  844. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", });
  845. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor
  846. = Descriptor.MessageTypes[7];
  847. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable
  848. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  849. new string[] { "ForeignNested", });
  850. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor
  851. = Descriptor.MessageTypes[8];
  852. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable
  853. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  854. new string[] { });
  855. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor
  856. = Descriptor.MessageTypes[9];
  857. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable
  858. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  859. new string[] { });
  860. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor
  861. = Descriptor.MessageTypes[10];
  862. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable
  863. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  864. new string[] { "A", "Bb", });
  865. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor
  866. = Descriptor.MessageTypes[11];
  867. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable
  868. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  869. new string[] { "A", "I", });
  870. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor
  871. = Descriptor.MessageTypes[12];
  872. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable
  873. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  874. new string[] { "Bb", });
  875. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor
  876. = Descriptor.MessageTypes[13];
  877. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable
  878. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  879. new string[] { "A", "OptionalInt32", });
  880. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor
  881. = Descriptor.MessageTypes[14];
  882. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable
  883. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  884. new string[] { "A", "Foo", "Bar", });
  885. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor
  886. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  887. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable
  888. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  889. new string[] { "A", });
  890. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor
  891. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  892. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable
  893. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  894. new string[] { "A", });
  895. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor
  896. = Descriptor.MessageTypes[15];
  897. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable
  898. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  899. new string[] { "OptionalNestedMessage", });
  900. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor
  901. = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  902. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable
  903. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  904. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", });
  905. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor
  906. = Descriptor.MessageTypes[16];
  907. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable
  908. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  909. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", });
  910. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor
  911. = Descriptor.MessageTypes[17];
  912. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable
  913. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  914. new string[] { "MyString", "MyInt", "MyFloat", });
  915. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor
  916. = Descriptor.MessageTypes[18];
  917. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable
  918. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  919. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", });
  920. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor
  921. = Descriptor.MessageTypes[19];
  922. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable
  923. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor,
  924. new string[] { });
  925. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor
  926. = Descriptor.MessageTypes[20];
  927. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable
  928. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor,
  929. new string[] { });
  930. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor
  931. = Descriptor.MessageTypes[21];
  932. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable
  933. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor,
  934. new string[] { });
  935. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor
  936. = Descriptor.MessageTypes[22];
  937. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable
  938. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor,
  939. new string[] { });
  940. #endregion
  941. }
  942. #region Enums
  943. public enum ForeignEnum {
  944. FOREIGN_FOO = 4,
  945. FOREIGN_BAR = 5,
  946. FOREIGN_BAZ = 6,
  947. }
  948. public enum TestEnumWithDupValue {
  949. FOO1 = 1,
  950. BAR1 = 2,
  951. BAZ = 3,
  952. FOO2 = 1,
  953. BAR2 = 2,
  954. }
  955. public enum TestSparseEnum {
  956. SPARSE_A = 123,
  957. SPARSE_B = 62374,
  958. SPARSE_C = 12589234,
  959. SPARSE_D = -15,
  960. SPARSE_E = -53452,
  961. SPARSE_F = 0,
  962. SPARSE_G = 2,
  963. }
  964. #endregion
  965. #region Messages
  966. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  967. private static readonly TestAllTypes defaultInstance = new Builder().BuildPartial();
  968. public static TestAllTypes DefaultInstance {
  969. get { return defaultInstance; }
  970. }
  971. public override TestAllTypes DefaultInstanceForType {
  972. get { return defaultInstance; }
  973. }
  974. protected override TestAllTypes ThisMessage {
  975. get { return this; }
  976. }
  977. public static pbd::MessageDescriptor Descriptor {
  978. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  979. }
  980. protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
  981. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  982. }
  983. #region Nested types
  984. public static class Types {
  985. public enum NestedEnum {
  986. FOO = 1,
  987. BAR = 2,
  988. BAZ = 3,
  989. }
  990. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  991. private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
  992. public static NestedMessage DefaultInstance {
  993. get { return defaultInstance; }
  994. }
  995. public override NestedMessage DefaultInstanceForType {
  996. get { return defaultInstance; }
  997. }
  998. protected override NestedMessage ThisMessage {
  999. get { return this; }
  1000. }
  1001. public static pbd::MessageDescriptor Descriptor {
  1002. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1003. }
  1004. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  1005. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1006. }
  1007. // optional int32 bb = 1;
  1008. private bool hasBb;
  1009. private int bb_ = 0;
  1010. public bool HasBb {
  1011. get { return hasBb; }
  1012. }
  1013. public int Bb {
  1014. get { return bb_; }
  1015. }
  1016. public override bool IsInitialized {
  1017. get {
  1018. return true;
  1019. }
  1020. }
  1021. public override void WriteTo(pb::CodedOutputStream output) {
  1022. if (HasBb) {
  1023. output.WriteInt32(1, Bb);
  1024. }
  1025. UnknownFields.WriteTo(output);
  1026. }
  1027. private int memoizedSerializedSize = -1;
  1028. public override int SerializedSize {
  1029. get {
  1030. int size = memoizedSerializedSize;
  1031. if (size != -1) return size;
  1032. size = 0;
  1033. if (HasBb) {
  1034. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1035. }
  1036. size += UnknownFields.SerializedSize;
  1037. memoizedSerializedSize = size;
  1038. return size;
  1039. }
  1040. }
  1041. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1042. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1043. }
  1044. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1045. pb::ExtensionRegistry extensionRegistry) {
  1046. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1047. .BuildParsed();
  1048. }
  1049. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1050. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1051. }
  1052. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data,
  1053. pb::ExtensionRegistry extensionRegistry) {
  1054. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1055. .BuildParsed();
  1056. }
  1057. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1058. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1059. }
  1060. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(
  1061. global::System.IO.Stream input,
  1062. pb::ExtensionRegistry extensionRegistry) {
  1063. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1064. .BuildParsed();
  1065. }
  1066. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1067. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1068. }
  1069. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1070. pb::ExtensionRegistry extensionRegistry) {
  1071. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1072. .BuildParsed();
  1073. }
  1074. public static Builder CreateBuilder() { return new Builder(); }
  1075. public override Builder CreateBuilderForType() { return new Builder(); }
  1076. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage prototype) {
  1077. return (Builder) new Builder().MergeFrom(prototype);
  1078. }
  1079. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, Builder> {
  1080. protected override Builder ThisBuilder {
  1081. get { return this; }
  1082. }
  1083. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder()
  1084. public Builder() {}
  1085. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1086. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1087. get { return result; }
  1088. }
  1089. public override Builder Clear() {
  1090. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1091. return this;
  1092. }
  1093. public override Builder Clone() {
  1094. return new Builder().MergeFrom(result);
  1095. }
  1096. public override pbd::MessageDescriptor DescriptorForType {
  1097. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
  1098. }
  1099. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1100. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1101. }
  1102. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage BuildPartial() {
  1103. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage returnMe = result;
  1104. result = null;
  1105. return returnMe;
  1106. }
  1107. public override Builder MergeFrom(pb::IMessage other) {
  1108. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) {
  1109. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) other);
  1110. } else {
  1111. base.MergeFrom(other);
  1112. return this;
  1113. }
  1114. }
  1115. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage other) {
  1116. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1117. if (other.HasBb) {
  1118. Bb = other.Bb;
  1119. }
  1120. this.MergeUnknownFields(other.UnknownFields);
  1121. return this;
  1122. }
  1123. public override Builder MergeFrom(pb::CodedInputStream input) {
  1124. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1125. }
  1126. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1127. pb::UnknownFieldSet.Builder unknownFields =
  1128. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1129. while (true) {
  1130. uint tag = input.ReadTag();
  1131. switch (tag) {
  1132. case 0:
  1133. this.UnknownFields = unknownFields.Build();
  1134. return this;
  1135. default: {
  1136. if (!ParseUnknownField(input, unknownFields,
  1137. extensionRegistry, tag)) {
  1138. this.UnknownFields = unknownFields.Build();
  1139. return this;
  1140. }
  1141. break;
  1142. }
  1143. case 8: {
  1144. Bb = input.ReadInt32();
  1145. break;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. // optional int32 bb = 1;
  1151. public bool HasBb {
  1152. get { return result.HasBb; }
  1153. }
  1154. public int Bb {
  1155. get { return result.Bb; }
  1156. set { SetBb(value); }
  1157. }
  1158. public Builder SetBb(int value) {
  1159. result.hasBb = true;
  1160. result.bb_ = value;
  1161. return this;
  1162. }
  1163. public Builder ClearBb() {
  1164. result.hasBb = false;
  1165. result.bb_ = 0;
  1166. return this;
  1167. }
  1168. }
  1169. }
  1170. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1171. private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
  1172. public static OptionalGroup DefaultInstance {
  1173. get { return defaultInstance; }
  1174. }
  1175. public override OptionalGroup DefaultInstanceForType {
  1176. get { return defaultInstance; }
  1177. }
  1178. protected override OptionalGroup ThisMessage {
  1179. get { return this; }
  1180. }
  1181. public static pbd::MessageDescriptor Descriptor {
  1182. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1183. }
  1184. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
  1185. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1186. }
  1187. // optional int32 a = 17;
  1188. private bool hasA;
  1189. private int a_ = 0;
  1190. public bool HasA {
  1191. get { return hasA; }
  1192. }
  1193. public int A {
  1194. get { return a_; }
  1195. }
  1196. public override bool IsInitialized {
  1197. get {
  1198. return true;
  1199. }
  1200. }
  1201. public override void WriteTo(pb::CodedOutputStream output) {
  1202. if (HasA) {
  1203. output.WriteInt32(17, A);
  1204. }
  1205. UnknownFields.WriteTo(output);
  1206. }
  1207. private int memoizedSerializedSize = -1;
  1208. public override int SerializedSize {
  1209. get {
  1210. int size = memoizedSerializedSize;
  1211. if (size != -1) return size;
  1212. size = 0;
  1213. if (HasA) {
  1214. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1215. }
  1216. size += UnknownFields.SerializedSize;
  1217. memoizedSerializedSize = size;
  1218. return size;
  1219. }
  1220. }
  1221. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1222. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1223. }
  1224. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1225. pb::ExtensionRegistry extensionRegistry) {
  1226. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1227. .BuildParsed();
  1228. }
  1229. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1230. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1231. }
  1232. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data,
  1233. pb::ExtensionRegistry extensionRegistry) {
  1234. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1235. .BuildParsed();
  1236. }
  1237. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1238. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1239. }
  1240. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(
  1241. global::System.IO.Stream input,
  1242. pb::ExtensionRegistry extensionRegistry) {
  1243. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1244. .BuildParsed();
  1245. }
  1246. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1247. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1248. }
  1249. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1250. pb::ExtensionRegistry extensionRegistry) {
  1251. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1252. .BuildParsed();
  1253. }
  1254. public static Builder CreateBuilder() { return new Builder(); }
  1255. public override Builder CreateBuilderForType() { return new Builder(); }
  1256. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup prototype) {
  1257. return (Builder) new Builder().MergeFrom(prototype);
  1258. }
  1259. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, Builder> {
  1260. protected override Builder ThisBuilder {
  1261. get { return this; }
  1262. }
  1263. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1264. public Builder() {}
  1265. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1266. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1267. get { return result; }
  1268. }
  1269. public override Builder Clear() {
  1270. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1271. return this;
  1272. }
  1273. public override Builder Clone() {
  1274. return new Builder().MergeFrom(result);
  1275. }
  1276. public override pbd::MessageDescriptor DescriptorForType {
  1277. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
  1278. }
  1279. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1280. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1281. }
  1282. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup BuildPartial() {
  1283. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup returnMe = result;
  1284. result = null;
  1285. return returnMe;
  1286. }
  1287. public override Builder MergeFrom(pb::IMessage other) {
  1288. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) {
  1289. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) other);
  1290. } else {
  1291. base.MergeFrom(other);
  1292. return this;
  1293. }
  1294. }
  1295. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup other) {
  1296. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1297. if (other.HasA) {
  1298. A = other.A;
  1299. }
  1300. this.MergeUnknownFields(other.UnknownFields);
  1301. return this;
  1302. }
  1303. public override Builder MergeFrom(pb::CodedInputStream input) {
  1304. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1305. }
  1306. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1307. pb::UnknownFieldSet.Builder unknownFields =
  1308. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1309. while (true) {
  1310. uint tag = input.ReadTag();
  1311. switch (tag) {
  1312. case 0:
  1313. this.UnknownFields = unknownFields.Build();
  1314. return this;
  1315. default: {
  1316. if (!ParseUnknownField(input, unknownFields,
  1317. extensionRegistry, tag)) {
  1318. this.UnknownFields = unknownFields.Build();
  1319. return this;
  1320. }
  1321. break;
  1322. }
  1323. case 136: {
  1324. A = input.ReadInt32();
  1325. break;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. // optional int32 a = 17;
  1331. public bool HasA {
  1332. get { return result.HasA; }
  1333. }
  1334. public int A {
  1335. get { return result.A; }
  1336. set { SetA(value); }
  1337. }
  1338. public Builder SetA(int value) {
  1339. result.hasA = true;
  1340. result.a_ = value;
  1341. return this;
  1342. }
  1343. public Builder ClearA() {
  1344. result.hasA = false;
  1345. result.a_ = 0;
  1346. return this;
  1347. }
  1348. }
  1349. }
  1350. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1351. private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
  1352. public static RepeatedGroup DefaultInstance {
  1353. get { return defaultInstance; }
  1354. }
  1355. public override RepeatedGroup DefaultInstanceForType {
  1356. get { return defaultInstance; }
  1357. }
  1358. protected override RepeatedGroup ThisMessage {
  1359. get { return this; }
  1360. }
  1361. public static pbd::MessageDescriptor Descriptor {
  1362. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1363. }
  1364. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
  1365. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1366. }
  1367. // optional int32 a = 47;
  1368. private bool hasA;
  1369. private int a_ = 0;
  1370. public bool HasA {
  1371. get { return hasA; }
  1372. }
  1373. public int A {
  1374. get { return a_; }
  1375. }
  1376. public override bool IsInitialized {
  1377. get {
  1378. return true;
  1379. }
  1380. }
  1381. public override void WriteTo(pb::CodedOutputStream output) {
  1382. if (HasA) {
  1383. output.WriteInt32(47, A);
  1384. }
  1385. UnknownFields.WriteTo(output);
  1386. }
  1387. private int memoizedSerializedSize = -1;
  1388. public override int SerializedSize {
  1389. get {
  1390. int size = memoizedSerializedSize;
  1391. if (size != -1) return size;
  1392. size = 0;
  1393. if (HasA) {
  1394. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1395. }
  1396. size += UnknownFields.SerializedSize;
  1397. memoizedSerializedSize = size;
  1398. return size;
  1399. }
  1400. }
  1401. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1402. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1403. }
  1404. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1405. pb::ExtensionRegistry extensionRegistry) {
  1406. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1407. .BuildParsed();
  1408. }
  1409. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1410. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1411. }
  1412. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data,
  1413. pb::ExtensionRegistry extensionRegistry) {
  1414. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1415. .BuildParsed();
  1416. }
  1417. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1418. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1419. }
  1420. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(
  1421. global::System.IO.Stream input,
  1422. pb::ExtensionRegistry extensionRegistry) {
  1423. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1424. .BuildParsed();
  1425. }
  1426. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1427. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1428. }
  1429. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1430. pb::ExtensionRegistry extensionRegistry) {
  1431. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1432. .BuildParsed();
  1433. }
  1434. public static Builder CreateBuilder() { return new Builder(); }
  1435. public override Builder CreateBuilderForType() { return new Builder(); }
  1436. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup prototype) {
  1437. return (Builder) new Builder().MergeFrom(prototype);
  1438. }
  1439. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, Builder> {
  1440. protected override Builder ThisBuilder {
  1441. get { return this; }
  1442. }
  1443. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1444. public Builder() {}
  1445. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1446. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1447. get { return result; }
  1448. }
  1449. public override Builder Clear() {
  1450. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1451. return this;
  1452. }
  1453. public override Builder Clone() {
  1454. return new Builder().MergeFrom(result);
  1455. }
  1456. public override pbd::MessageDescriptor DescriptorForType {
  1457. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1458. }
  1459. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1460. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1461. }
  1462. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1463. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup returnMe = result;
  1464. result = null;
  1465. return returnMe;
  1466. }
  1467. public override Builder MergeFrom(pb::IMessage other) {
  1468. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) {
  1469. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) other);
  1470. } else {
  1471. base.MergeFrom(other);
  1472. return this;
  1473. }
  1474. }
  1475. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup other) {
  1476. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1477. if (other.HasA) {
  1478. A = other.A;
  1479. }
  1480. this.MergeUnknownFields(other.UnknownFields);
  1481. return this;
  1482. }
  1483. public override Builder MergeFrom(pb::CodedInputStream input) {
  1484. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1485. }
  1486. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1487. pb::UnknownFieldSet.Builder unknownFields =
  1488. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1489. while (true) {
  1490. uint tag = input.ReadTag();
  1491. switch (tag) {
  1492. case 0:
  1493. this.UnknownFields = unknownFields.Build();
  1494. return this;
  1495. default: {
  1496. if (!ParseUnknownField(input, unknownFields,
  1497. extensionRegistry, tag)) {
  1498. this.UnknownFields = unknownFields.Build();
  1499. return this;
  1500. }
  1501. break;
  1502. }
  1503. case 376: {
  1504. A = input.ReadInt32();
  1505. break;
  1506. }
  1507. }
  1508. }
  1509. }
  1510. // optional int32 a = 47;
  1511. public bool HasA {
  1512. get { return result.HasA; }
  1513. }
  1514. public int A {
  1515. get { return result.A; }
  1516. set { SetA(value); }
  1517. }
  1518. public Builder SetA(int value) {
  1519. result.hasA = true;
  1520. result.a_ = value;
  1521. return this;
  1522. }
  1523. public Builder ClearA() {
  1524. result.hasA = false;
  1525. result.a_ = 0;
  1526. return this;
  1527. }
  1528. }
  1529. }
  1530. }
  1531. #endregion
  1532. // optional int32 optional_int32 = 1;
  1533. private bool hasOptionalInt32;
  1534. private int optionalInt32_ = 0;
  1535. public bool HasOptionalInt32 {
  1536. get { return hasOptionalInt32; }
  1537. }
  1538. public int OptionalInt32 {
  1539. get { return optionalInt32_; }
  1540. }
  1541. // optional int64 optional_int64 = 2;
  1542. private bool hasOptionalInt64;
  1543. private long optionalInt64_ = 0L;
  1544. public bool HasOptionalInt64 {
  1545. get { return hasOptionalInt64; }
  1546. }
  1547. public long OptionalInt64 {
  1548. get { return optionalInt64_; }
  1549. }
  1550. // optional uint32 optional_uint32 = 3;
  1551. private bool hasOptionalUint32;
  1552. private uint optionalUint32_ = 0;
  1553. public bool HasOptionalUint32 {
  1554. get { return hasOptionalUint32; }
  1555. }
  1556. public uint OptionalUint32 {
  1557. get { return optionalUint32_; }
  1558. }
  1559. // optional uint64 optional_uint64 = 4;
  1560. private bool hasOptionalUint64;
  1561. private ulong optionalUint64_ = 0UL;
  1562. public bool HasOptionalUint64 {
  1563. get { return hasOptionalUint64; }
  1564. }
  1565. public ulong OptionalUint64 {
  1566. get { return optionalUint64_; }
  1567. }
  1568. // optional sint32 optional_sint32 = 5;
  1569. private bool hasOptionalSint32;
  1570. private int optionalSint32_ = 0;
  1571. public bool HasOptionalSint32 {
  1572. get { return hasOptionalSint32; }
  1573. }
  1574. public int OptionalSint32 {
  1575. get { return optionalSint32_; }
  1576. }
  1577. // optional sint64 optional_sint64 = 6;
  1578. private bool hasOptionalSint64;
  1579. private long optionalSint64_ = 0L;
  1580. public bool HasOptionalSint64 {
  1581. get { return hasOptionalSint64; }
  1582. }
  1583. public long OptionalSint64 {
  1584. get { return optionalSint64_; }
  1585. }
  1586. // optional fixed32 optional_fixed32 = 7;
  1587. private bool hasOptionalFixed32;
  1588. private uint optionalFixed32_ = 0;
  1589. public bool HasOptionalFixed32 {
  1590. get { return hasOptionalFixed32; }
  1591. }
  1592. public uint OptionalFixed32 {
  1593. get { return optionalFixed32_; }
  1594. }
  1595. // optional fixed64 optional_fixed64 = 8;
  1596. private bool hasOptionalFixed64;
  1597. private ulong optionalFixed64_ = 0UL;
  1598. public bool HasOptionalFixed64 {
  1599. get { return hasOptionalFixed64; }
  1600. }
  1601. public ulong OptionalFixed64 {
  1602. get { return optionalFixed64_; }
  1603. }
  1604. // optional sfixed32 optional_sfixed32 = 9;
  1605. private bool hasOptionalSfixed32;
  1606. private int optionalSfixed32_ = 0;
  1607. public bool HasOptionalSfixed32 {
  1608. get { return hasOptionalSfixed32; }
  1609. }
  1610. public int OptionalSfixed32 {
  1611. get { return optionalSfixed32_; }
  1612. }
  1613. // optional sfixed64 optional_sfixed64 = 10;
  1614. private bool hasOptionalSfixed64;
  1615. private long optionalSfixed64_ = 0L;
  1616. public bool HasOptionalSfixed64 {
  1617. get { return hasOptionalSfixed64; }
  1618. }
  1619. public long OptionalSfixed64 {
  1620. get { return optionalSfixed64_; }
  1621. }
  1622. // optional float optional_float = 11;
  1623. private bool hasOptionalFloat;
  1624. private float optionalFloat_ = 0F;
  1625. public bool HasOptionalFloat {
  1626. get { return hasOptionalFloat; }
  1627. }
  1628. public float OptionalFloat {
  1629. get { return optionalFloat_; }
  1630. }
  1631. // optional double optional_double = 12;
  1632. private bool hasOptionalDouble;
  1633. private double optionalDouble_ = 0D;
  1634. public bool HasOptionalDouble {
  1635. get { return hasOptionalDouble; }
  1636. }
  1637. public double OptionalDouble {
  1638. get { return optionalDouble_; }
  1639. }
  1640. // optional bool optional_bool = 13;
  1641. private bool hasOptionalBool;
  1642. private bool optionalBool_ = false;
  1643. public bool HasOptionalBool {
  1644. get { return hasOptionalBool; }
  1645. }
  1646. public bool OptionalBool {
  1647. get { return optionalBool_; }
  1648. }
  1649. // optional string optional_string = 14;
  1650. private bool hasOptionalString;
  1651. private string optionalString_ = "";
  1652. public bool HasOptionalString {
  1653. get { return hasOptionalString; }
  1654. }
  1655. public string OptionalString {
  1656. get { return optionalString_; }
  1657. }
  1658. // optional bytes optional_bytes = 15;
  1659. private bool hasOptionalBytes;
  1660. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1661. public bool HasOptionalBytes {
  1662. get { return hasOptionalBytes; }
  1663. }
  1664. public pb::ByteString OptionalBytes {
  1665. get { return optionalBytes_; }
  1666. }
  1667. // optional group OptionalGroup = 16 {
  1668. private bool hasOptionalGroup;
  1669. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1670. public bool HasOptionalGroup {
  1671. get { return hasOptionalGroup; }
  1672. }
  1673. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  1674. get { return optionalGroup_; }
  1675. }
  1676. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1677. private bool hasOptionalNestedMessage;
  1678. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  1679. public bool HasOptionalNestedMessage {
  1680. get { return hasOptionalNestedMessage; }
  1681. }
  1682. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1683. get { return optionalNestedMessage_; }
  1684. }
  1685. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1686. private bool hasOptionalForeignMessage;
  1687. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  1688. public bool HasOptionalForeignMessage {
  1689. get { return hasOptionalForeignMessage; }
  1690. }
  1691. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  1692. get { return optionalForeignMessage_; }
  1693. }
  1694. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1695. private bool hasOptionalImportMessage;
  1696. private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  1697. public bool HasOptionalImportMessage {
  1698. get { return hasOptionalImportMessage; }
  1699. }
  1700. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  1701. get { return optionalImportMessage_; }
  1702. }
  1703. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1704. private bool hasOptionalNestedEnum;
  1705. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  1706. public bool HasOptionalNestedEnum {
  1707. get { return hasOptionalNestedEnum; }
  1708. }
  1709. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1710. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1711. private bool hasOptionalForeignEnum;
  1712. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  1713. public bool HasOptionalForeignEnum {
  1714. get { return hasOptionalForeignEnum; }
  1715. }
  1716. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1717. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1718. private bool hasOptionalImportEnum;
  1719. private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  1720. public bool HasOptionalImportEnum {
  1721. get { return hasOptionalImportEnum; }
  1722. }
  1723. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1724. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1725. private bool hasOptionalStringPiece;
  1726. private string optionalStringPiece_ = "";
  1727. public bool HasOptionalStringPiece {
  1728. get { return hasOptionalStringPiece; }
  1729. }
  1730. public string OptionalStringPiece {
  1731. get { return optionalStringPiece_; }
  1732. }
  1733. // optional string optional_cord = 25 [ctype = CORD];
  1734. private bool hasOptionalCord;
  1735. private string optionalCord_ = "";
  1736. public bool HasOptionalCord {
  1737. get { return hasOptionalCord; }
  1738. }
  1739. public string OptionalCord {
  1740. get { return optionalCord_; }
  1741. }
  1742. // repeated int32 repeated_int32 = 31;
  1743. private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
  1744. public scg::IList<int> RepeatedInt32List {
  1745. get { return repeatedInt32_; }
  1746. }
  1747. public int RepeatedInt32Count {
  1748. get { return repeatedInt32_.Count; }
  1749. }
  1750. public int GetRepeatedInt32(int index) {
  1751. return repeatedInt32_[index];
  1752. }
  1753. // repeated int64 repeated_int64 = 32;
  1754. private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
  1755. public scg::IList<long> RepeatedInt64List {
  1756. get { return repeatedInt64_; }
  1757. }
  1758. public int RepeatedInt64Count {
  1759. get { return repeatedInt64_.Count; }
  1760. }
  1761. public long GetRepeatedInt64(int index) {
  1762. return repeatedInt64_[index];
  1763. }
  1764. // repeated uint32 repeated_uint32 = 33;
  1765. private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
  1766. public scg::IList<uint> RepeatedUint32List {
  1767. get { return repeatedUint32_; }
  1768. }
  1769. public int RepeatedUint32Count {
  1770. get { return repeatedUint32_.Count; }
  1771. }
  1772. public uint GetRepeatedUint32(int index) {
  1773. return repeatedUint32_[index];
  1774. }
  1775. // repeated uint64 repeated_uint64 = 34;
  1776. private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
  1777. public scg::IList<ulong> RepeatedUint64List {
  1778. get { return repeatedUint64_; }
  1779. }
  1780. public int RepeatedUint64Count {
  1781. get { return repeatedUint64_.Count; }
  1782. }
  1783. public ulong GetRepeatedUint64(int index) {
  1784. return repeatedUint64_[index];
  1785. }
  1786. // repeated sint32 repeated_sint32 = 35;
  1787. private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
  1788. public scg::IList<int> RepeatedSint32List {
  1789. get { return repeatedSint32_; }
  1790. }
  1791. public int RepeatedSint32Count {
  1792. get { return repeatedSint32_.Count; }
  1793. }
  1794. public int GetRepeatedSint32(int index) {
  1795. return repeatedSint32_[index];
  1796. }
  1797. // repeated sint64 repeated_sint64 = 36;
  1798. private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
  1799. public scg::IList<long> RepeatedSint64List {
  1800. get { return repeatedSint64_; }
  1801. }
  1802. public int RepeatedSint64Count {
  1803. get { return repeatedSint64_.Count; }
  1804. }
  1805. public long GetRepeatedSint64(int index) {
  1806. return repeatedSint64_[index];
  1807. }
  1808. // repeated fixed32 repeated_fixed32 = 37;
  1809. private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
  1810. public scg::IList<uint> RepeatedFixed32List {
  1811. get { return repeatedFixed32_; }
  1812. }
  1813. public int RepeatedFixed32Count {
  1814. get { return repeatedFixed32_.Count; }
  1815. }
  1816. public uint GetRepeatedFixed32(int index) {
  1817. return repeatedFixed32_[index];
  1818. }
  1819. // repeated fixed64 repeated_fixed64 = 38;
  1820. private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
  1821. public scg::IList<ulong> RepeatedFixed64List {
  1822. get { return repeatedFixed64_; }
  1823. }
  1824. public int RepeatedFixed64Count {
  1825. get { return repeatedFixed64_.Count; }
  1826. }
  1827. public ulong GetRepeatedFixed64(int index) {
  1828. return repeatedFixed64_[index];
  1829. }
  1830. // repeated sfixed32 repeated_sfixed32 = 39;
  1831. private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
  1832. public scg::IList<int> RepeatedSfixed32List {
  1833. get { return repeatedSfixed32_; }
  1834. }
  1835. public int RepeatedSfixed32Count {
  1836. get { return repeatedSfixed32_.Count; }
  1837. }
  1838. public int GetRepeatedSfixed32(int index) {
  1839. return repeatedSfixed32_[index];
  1840. }
  1841. // repeated sfixed64 repeated_sfixed64 = 40;
  1842. private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
  1843. public scg::IList<long> RepeatedSfixed64List {
  1844. get { return repeatedSfixed64_; }
  1845. }
  1846. public int RepeatedSfixed64Count {
  1847. get { return repeatedSfixed64_.Count; }
  1848. }
  1849. public long GetRepeatedSfixed64(int index) {
  1850. return repeatedSfixed64_[index];
  1851. }
  1852. // repeated float repeated_float = 41;
  1853. private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
  1854. public scg::IList<float> RepeatedFloatList {
  1855. get { return repeatedFloat_; }
  1856. }
  1857. public int RepeatedFloatCount {
  1858. get { return repeatedFloat_.Count; }
  1859. }
  1860. public float GetRepeatedFloat(int index) {
  1861. return repeatedFloat_[index];
  1862. }
  1863. // repeated double repeated_double = 42;
  1864. private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
  1865. public scg::IList<double> RepeatedDoubleList {
  1866. get { return repeatedDouble_; }
  1867. }
  1868. public int RepeatedDoubleCount {
  1869. get { return repeatedDouble_.Count; }
  1870. }
  1871. public double GetRepeatedDouble(int index) {
  1872. return repeatedDouble_[index];
  1873. }
  1874. // repeated bool repeated_bool = 43;
  1875. private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
  1876. public scg::IList<bool> RepeatedBoolList {
  1877. get { return repeatedBool_; }
  1878. }
  1879. public int RepeatedBoolCount {
  1880. get { return repeatedBool_.Count; }
  1881. }
  1882. public bool GetRepeatedBool(int index) {
  1883. return repeatedBool_[index];
  1884. }
  1885. // repeated string repeated_string = 44;
  1886. private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
  1887. public scg::IList<string> RepeatedStringList {
  1888. get { return repeatedString_; }
  1889. }
  1890. public int RepeatedStringCount {
  1891. get { return repeatedString_.Count; }
  1892. }
  1893. public string GetRepeatedString(int index) {
  1894. return repeatedString_[index];
  1895. }
  1896. // repeated bytes repeated_bytes = 45;
  1897. private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
  1898. public scg::IList<pb::ByteString> RepeatedBytesList {
  1899. get { return repeatedBytes_; }
  1900. }
  1901. public int RepeatedBytesCount {
  1902. get { return repeatedBytes_.Count; }
  1903. }
  1904. public pb::ByteString GetRepeatedBytes(int index) {
  1905. return repeatedBytes_[index];
  1906. }
  1907. // repeated group RepeatedGroup = 46 {
  1908. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  1909. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1910. get { return repeatedGroup_; }
  1911. }
  1912. public int RepeatedGroupCount
  1913. { get { return repeatedGroup_.Count; }
  1914. }
  1915. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1916. return repeatedGroup_ [index];
  1917. }
  1918. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1919. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  1920. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1921. get { return repeatedNestedMessage_; }
  1922. }
  1923. public int RepeatedNestedMessageCount
  1924. { get { return repeatedNestedMessage_.Count; }
  1925. }
  1926. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1927. return repeatedNestedMessage_ [index];
  1928. }
  1929. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1930. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  1931. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  1932. get { return repeatedForeignMessage_; }
  1933. }
  1934. public int RepeatedForeignMessageCount
  1935. { get { return repeatedForeignMessage_.Count; }
  1936. }
  1937. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  1938. return repeatedForeignMessage_ [index];
  1939. }
  1940. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1941. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  1942. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  1943. get { return repeatedImportMessage_; }
  1944. }
  1945. public int RepeatedImportMessageCount
  1946. { get { return repeatedImportMessage_.Count; }
  1947. }
  1948. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  1949. return repeatedImportMessage_ [index];
  1950. }
  1951. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1952. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> ();
  1953. public scg.IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1954. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  1955. }
  1956. public int RepeatedNestedEnumCount {
  1957. get { return repeatedNestedEnum_.Count; }
  1958. }
  1959. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  1960. return repeatedNestedEnum_[index];
  1961. }
  1962. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  1963. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  1964. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  1965. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  1966. }
  1967. public int RepeatedForeignEnumCount {
  1968. get { return repeatedForeignEnum_.Count; }
  1969. }
  1970. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  1971. return repeatedForeignEnum_[index];
  1972. }
  1973. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  1974. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum> ();
  1975. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  1976. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  1977. }
  1978. public int RepeatedImportEnumCount {
  1979. get { return repeatedImportEnum_.Count; }
  1980. }
  1981. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  1982. return repeatedImportEnum_[index];
  1983. }
  1984. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  1985. private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
  1986. public scg::IList<string> RepeatedStringPieceList {
  1987. get { return repeatedStringPiece_; }
  1988. }
  1989. public int RepeatedStringPieceCount {
  1990. get { return repeatedStringPiece_.Count; }
  1991. }
  1992. public string GetRepeatedStringPiece(int index) {
  1993. return repeatedStringPiece_[index];
  1994. }
  1995. // repeated string repeated_cord = 55 [ctype = CORD];
  1996. private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
  1997. public scg::IList<string> RepeatedCordList {
  1998. get { return repeatedCord_; }
  1999. }
  2000. public int RepeatedCordCount {
  2001. get { return repeatedCord_.Count; }
  2002. }
  2003. public string GetRepeatedCord(int index) {
  2004. return repeatedCord_[index];
  2005. }
  2006. // optional int32 default_int32 = 61 [default = 41];
  2007. private bool hasDefaultInt32;
  2008. private int defaultInt32_ = 41;
  2009. public bool HasDefaultInt32 {
  2010. get { return hasDefaultInt32; }
  2011. }
  2012. public int DefaultInt32 {
  2013. get { return defaultInt32_; }
  2014. }
  2015. // optional int64 default_int64 = 62 [default = 42];
  2016. private bool hasDefaultInt64;
  2017. private long defaultInt64_ = 42L;
  2018. public bool HasDefaultInt64 {
  2019. get { return hasDefaultInt64; }
  2020. }
  2021. public long DefaultInt64 {
  2022. get { return defaultInt64_; }
  2023. }
  2024. // optional uint32 default_uint32 = 63 [default = 43];
  2025. private bool hasDefaultUint32;
  2026. private uint defaultUint32_ = 43;
  2027. public bool HasDefaultUint32 {
  2028. get { return hasDefaultUint32; }
  2029. }
  2030. public uint DefaultUint32 {
  2031. get { return defaultUint32_; }
  2032. }
  2033. // optional uint64 default_uint64 = 64 [default = 44];
  2034. private bool hasDefaultUint64;
  2035. private ulong defaultUint64_ = 44UL;
  2036. public bool HasDefaultUint64 {
  2037. get { return hasDefaultUint64; }
  2038. }
  2039. public ulong DefaultUint64 {
  2040. get { return defaultUint64_; }
  2041. }
  2042. // optional sint32 default_sint32 = 65 [default = -45];
  2043. private bool hasDefaultSint32;
  2044. private int defaultSint32_ = -45;
  2045. public bool HasDefaultSint32 {
  2046. get { return hasDefaultSint32; }
  2047. }
  2048. public int DefaultSint32 {
  2049. get { return defaultSint32_; }
  2050. }
  2051. // optional sint64 default_sint64 = 66 [default = 46];
  2052. private bool hasDefaultSint64;
  2053. private long defaultSint64_ = 46L;
  2054. public bool HasDefaultSint64 {
  2055. get { return hasDefaultSint64; }
  2056. }
  2057. public long DefaultSint64 {
  2058. get { return defaultSint64_; }
  2059. }
  2060. // optional fixed32 default_fixed32 = 67 [default = 47];
  2061. private bool hasDefaultFixed32;
  2062. private uint defaultFixed32_ = 47;
  2063. public bool HasDefaultFixed32 {
  2064. get { return hasDefaultFixed32; }
  2065. }
  2066. public uint DefaultFixed32 {
  2067. get { return defaultFixed32_; }
  2068. }
  2069. // optional fixed64 default_fixed64 = 68 [default = 48];
  2070. private bool hasDefaultFixed64;
  2071. private ulong defaultFixed64_ = 48UL;
  2072. public bool HasDefaultFixed64 {
  2073. get { return hasDefaultFixed64; }
  2074. }
  2075. public ulong DefaultFixed64 {
  2076. get { return defaultFixed64_; }
  2077. }
  2078. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2079. private bool hasDefaultSfixed32;
  2080. private int defaultSfixed32_ = 49;
  2081. public bool HasDefaultSfixed32 {
  2082. get { return hasDefaultSfixed32; }
  2083. }
  2084. public int DefaultSfixed32 {
  2085. get { return defaultSfixed32_; }
  2086. }
  2087. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2088. private bool hasDefaultSfixed64;
  2089. private long defaultSfixed64_ = -50L;
  2090. public bool HasDefaultSfixed64 {
  2091. get { return hasDefaultSfixed64; }
  2092. }
  2093. public long DefaultSfixed64 {
  2094. get { return defaultSfixed64_; }
  2095. }
  2096. // optional float default_float = 71 [default = 51.5];
  2097. private bool hasDefaultFloat;
  2098. private float defaultFloat_ = 51.5F;
  2099. public bool HasDefaultFloat {
  2100. get { return hasDefaultFloat; }
  2101. }
  2102. public float DefaultFloat {
  2103. get { return defaultFloat_; }
  2104. }
  2105. // optional double default_double = 72 [default = 52000];
  2106. private bool hasDefaultDouble;
  2107. private double defaultDouble_ = 52000D;
  2108. public bool HasDefaultDouble {
  2109. get { return hasDefaultDouble; }
  2110. }
  2111. public double DefaultDouble {
  2112. get { return defaultDouble_; }
  2113. }
  2114. // optional bool default_bool = 73 [default = true];
  2115. private bool hasDefaultBool;
  2116. private bool defaultBool_ = true;
  2117. public bool HasDefaultBool {
  2118. get { return hasDefaultBool; }
  2119. }
  2120. public bool DefaultBool {
  2121. get { return defaultBool_; }
  2122. }
  2123. // optional string default_string = 74 [default = "hello"];
  2124. private bool hasDefaultString;
  2125. private string defaultString_ = "hello";
  2126. public bool HasDefaultString {
  2127. get { return hasDefaultString; }
  2128. }
  2129. public string DefaultString {
  2130. get { return defaultString_; }
  2131. }
  2132. // optional bytes default_bytes = 75 [default = "world"];
  2133. private bool hasDefaultBytes;
  2134. private pb::ByteString defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2135. public bool HasDefaultBytes {
  2136. get { return hasDefaultBytes; }
  2137. }
  2138. public pb::ByteString DefaultBytes {
  2139. get { return defaultBytes_; }
  2140. }
  2141. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2142. private bool hasDefaultNestedEnum;
  2143. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  2144. public bool HasDefaultNestedEnum {
  2145. get { return hasDefaultNestedEnum; }
  2146. }
  2147. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2148. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2149. private bool hasDefaultForeignEnum;
  2150. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  2151. public bool HasDefaultForeignEnum {
  2152. get { return hasDefaultForeignEnum; }
  2153. }
  2154. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2155. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2156. private bool hasDefaultImportEnum;
  2157. private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  2158. public bool HasDefaultImportEnum {
  2159. get { return hasDefaultImportEnum; }
  2160. }
  2161. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2162. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2163. private bool hasDefaultStringPiece;
  2164. private string defaultStringPiece_ = "abc";
  2165. public bool HasDefaultStringPiece {
  2166. get { return hasDefaultStringPiece; }
  2167. }
  2168. public string DefaultStringPiece {
  2169. get { return defaultStringPiece_; }
  2170. }
  2171. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2172. private bool hasDefaultCord;
  2173. private string defaultCord_ = "123";
  2174. public bool HasDefaultCord {
  2175. get { return hasDefaultCord; }
  2176. }
  2177. public string DefaultCord {
  2178. get { return defaultCord_; }
  2179. }
  2180. public override bool IsInitialized {
  2181. get {
  2182. return true;
  2183. }
  2184. }
  2185. public override void WriteTo(pb::CodedOutputStream output) {
  2186. if (HasOptionalInt32) {
  2187. output.WriteInt32(1, OptionalInt32);
  2188. }
  2189. if (HasOptionalInt64) {
  2190. output.WriteInt64(2, OptionalInt64);
  2191. }
  2192. if (HasOptionalUint32) {
  2193. output.WriteUInt32(3, OptionalUint32);
  2194. }
  2195. if (HasOptionalUint64) {
  2196. output.WriteUInt64(4, OptionalUint64);
  2197. }
  2198. if (HasOptionalSint32) {
  2199. output.WriteSInt32(5, OptionalSint32);
  2200. }
  2201. if (HasOptionalSint64) {
  2202. output.WriteSInt64(6, OptionalSint64);
  2203. }
  2204. if (HasOptionalFixed32) {
  2205. output.WriteFixed32(7, OptionalFixed32);
  2206. }
  2207. if (HasOptionalFixed64) {
  2208. output.WriteFixed64(8, OptionalFixed64);
  2209. }
  2210. if (HasOptionalSfixed32) {
  2211. output.WriteSFixed32(9, OptionalSfixed32);
  2212. }
  2213. if (HasOptionalSfixed64) {
  2214. output.WriteSFixed64(10, OptionalSfixed64);
  2215. }
  2216. if (HasOptionalFloat) {
  2217. output.WriteFloat(11, OptionalFloat);
  2218. }
  2219. if (HasOptionalDouble) {
  2220. output.WriteDouble(12, OptionalDouble);
  2221. }
  2222. if (HasOptionalBool) {
  2223. output.WriteBool(13, OptionalBool);
  2224. }
  2225. if (HasOptionalString) {
  2226. output.WriteString(14, OptionalString);
  2227. }
  2228. if (HasOptionalBytes) {
  2229. output.WriteBytes(15, OptionalBytes);
  2230. }
  2231. if (HasOptionalGroup) {
  2232. output.WriteGroup(16, OptionalGroup);
  2233. }
  2234. if (HasOptionalNestedMessage) {
  2235. output.WriteMessage(18, OptionalNestedMessage);
  2236. }
  2237. if (HasOptionalForeignMessage) {
  2238. output.WriteMessage(19, OptionalForeignMessage);
  2239. }
  2240. if (HasOptionalImportMessage) {
  2241. output.WriteMessage(20, OptionalImportMessage);
  2242. }
  2243. if (HasOptionalNestedEnum) {
  2244. output.WriteEnum(21, (int) OptionalNestedEnum);
  2245. }
  2246. if (HasOptionalForeignEnum) {
  2247. output.WriteEnum(22, (int) OptionalForeignEnum);
  2248. }
  2249. if (HasOptionalImportEnum) {
  2250. output.WriteEnum(23, (int) OptionalImportEnum);
  2251. }
  2252. if (HasOptionalStringPiece) {
  2253. output.WriteString(24, OptionalStringPiece);
  2254. }
  2255. if (HasOptionalCord) {
  2256. output.WriteString(25, OptionalCord);
  2257. }
  2258. foreach (int element in RepeatedInt32List) {
  2259. output.WriteInt32(31, element);
  2260. }
  2261. foreach (long element in RepeatedInt64List) {
  2262. output.WriteInt64(32, element);
  2263. }
  2264. foreach (uint element in RepeatedUint32List) {
  2265. output.WriteUInt32(33, element);
  2266. }
  2267. foreach (ulong element in RepeatedUint64List) {
  2268. output.WriteUInt64(34, element);
  2269. }
  2270. foreach (int element in RepeatedSint32List) {
  2271. output.WriteSInt32(35, element);
  2272. }
  2273. foreach (long element in RepeatedSint64List) {
  2274. output.WriteSInt64(36, element);
  2275. }
  2276. foreach (uint element in RepeatedFixed32List) {
  2277. output.WriteFixed32(37, element);
  2278. }
  2279. foreach (ulong element in RepeatedFixed64List) {
  2280. output.WriteFixed64(38, element);
  2281. }
  2282. foreach (int element in RepeatedSfixed32List) {
  2283. output.WriteSFixed32(39, element);
  2284. }
  2285. foreach (long element in RepeatedSfixed64List) {
  2286. output.WriteSFixed64(40, element);
  2287. }
  2288. foreach (float element in RepeatedFloatList) {
  2289. output.WriteFloat(41, element);
  2290. }
  2291. foreach (double element in RepeatedDoubleList) {
  2292. output.WriteDouble(42, element);
  2293. }
  2294. foreach (bool element in RepeatedBoolList) {
  2295. output.WriteBool(43, element);
  2296. }
  2297. foreach (string element in RepeatedStringList) {
  2298. output.WriteString(44, element);
  2299. }
  2300. foreach (pb::ByteString element in RepeatedBytesList) {
  2301. output.WriteBytes(45, element);
  2302. }
  2303. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2304. output.WriteGroup(46, element);
  2305. }
  2306. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2307. output.WriteMessage(48, element);
  2308. }
  2309. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2310. output.WriteMessage(49, element);
  2311. }
  2312. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2313. output.WriteMessage(50, element);
  2314. }
  2315. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2316. output.WriteEnum(51, (int) element);
  2317. }
  2318. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2319. output.WriteEnum(52, (int) element);
  2320. }
  2321. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2322. output.WriteEnum(53, (int) element);
  2323. }
  2324. foreach (string element in RepeatedStringPieceList) {
  2325. output.WriteString(54, element);
  2326. }
  2327. foreach (string element in RepeatedCordList) {
  2328. output.WriteString(55, element);
  2329. }
  2330. if (HasDefaultInt32) {
  2331. output.WriteInt32(61, DefaultInt32);
  2332. }
  2333. if (HasDefaultInt64) {
  2334. output.WriteInt64(62, DefaultInt64);
  2335. }
  2336. if (HasDefaultUint32) {
  2337. output.WriteUInt32(63, DefaultUint32);
  2338. }
  2339. if (HasDefaultUint64) {
  2340. output.WriteUInt64(64, DefaultUint64);
  2341. }
  2342. if (HasDefaultSint32) {
  2343. output.WriteSInt32(65, DefaultSint32);
  2344. }
  2345. if (HasDefaultSint64) {
  2346. output.WriteSInt64(66, DefaultSint64);
  2347. }
  2348. if (HasDefaultFixed32) {
  2349. output.WriteFixed32(67, DefaultFixed32);
  2350. }
  2351. if (HasDefaultFixed64) {
  2352. output.WriteFixed64(68, DefaultFixed64);
  2353. }
  2354. if (HasDefaultSfixed32) {
  2355. output.WriteSFixed32(69, DefaultSfixed32);
  2356. }
  2357. if (HasDefaultSfixed64) {
  2358. output.WriteSFixed64(70, DefaultSfixed64);
  2359. }
  2360. if (HasDefaultFloat) {
  2361. output.WriteFloat(71, DefaultFloat);
  2362. }
  2363. if (HasDefaultDouble) {
  2364. output.WriteDouble(72, DefaultDouble);
  2365. }
  2366. if (HasDefaultBool) {
  2367. output.WriteBool(73, DefaultBool);
  2368. }
  2369. if (HasDefaultString) {
  2370. output.WriteString(74, DefaultString);
  2371. }
  2372. if (HasDefaultBytes) {
  2373. output.WriteBytes(75, DefaultBytes);
  2374. }
  2375. if (HasDefaultNestedEnum) {
  2376. output.WriteEnum(81, (int) DefaultNestedEnum);
  2377. }
  2378. if (HasDefaultForeignEnum) {
  2379. output.WriteEnum(82, (int) DefaultForeignEnum);
  2380. }
  2381. if (HasDefaultImportEnum) {
  2382. output.WriteEnum(83, (int) DefaultImportEnum);
  2383. }
  2384. if (HasDefaultStringPiece) {
  2385. output.WriteString(84, DefaultStringPiece);
  2386. }
  2387. if (HasDefaultCord) {
  2388. output.WriteString(85, DefaultCord);
  2389. }
  2390. UnknownFields.WriteTo(output);
  2391. }
  2392. private int memoizedSerializedSize = -1;
  2393. public override int SerializedSize {
  2394. get {
  2395. int size = memoizedSerializedSize;
  2396. if (size != -1) return size;
  2397. size = 0;
  2398. if (HasOptionalInt32) {
  2399. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2400. }
  2401. if (HasOptionalInt64) {
  2402. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2403. }
  2404. if (HasOptionalUint32) {
  2405. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2406. }
  2407. if (HasOptionalUint64) {
  2408. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2409. }
  2410. if (HasOptionalSint32) {
  2411. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2412. }
  2413. if (HasOptionalSint64) {
  2414. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2415. }
  2416. if (HasOptionalFixed32) {
  2417. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2418. }
  2419. if (HasOptionalFixed64) {
  2420. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2421. }
  2422. if (HasOptionalSfixed32) {
  2423. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2424. }
  2425. if (HasOptionalSfixed64) {
  2426. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2427. }
  2428. if (HasOptionalFloat) {
  2429. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2430. }
  2431. if (HasOptionalDouble) {
  2432. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2433. }
  2434. if (HasOptionalBool) {
  2435. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2436. }
  2437. if (HasOptionalString) {
  2438. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2439. }
  2440. if (HasOptionalBytes) {
  2441. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2442. }
  2443. if (HasOptionalGroup) {
  2444. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2445. }
  2446. if (HasOptionalNestedMessage) {
  2447. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2448. }
  2449. if (HasOptionalForeignMessage) {
  2450. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2451. }
  2452. if (HasOptionalImportMessage) {
  2453. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2454. }
  2455. if (HasOptionalNestedEnum) {
  2456. size += pb::CodedOutputStream
  2457. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2458. }
  2459. if (HasOptionalForeignEnum) {
  2460. size += pb::CodedOutputStream
  2461. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2462. }
  2463. if (HasOptionalImportEnum) {
  2464. size += pb::CodedOutputStream
  2465. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2466. }
  2467. if (HasOptionalStringPiece) {
  2468. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2469. }
  2470. if (HasOptionalCord) {
  2471. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2472. }
  2473. foreach (int element in RepeatedInt32List) {
  2474. size += pb::CodedOutputStream
  2475. .ComputeInt32Size(31, element);
  2476. }
  2477. foreach (long element in RepeatedInt64List) {
  2478. size += pb::CodedOutputStream
  2479. .ComputeInt64Size(32, element);
  2480. }
  2481. foreach (uint element in RepeatedUint32List) {
  2482. size += pb::CodedOutputStream
  2483. .ComputeUInt32Size(33, element);
  2484. }
  2485. foreach (ulong element in RepeatedUint64List) {
  2486. size += pb::CodedOutputStream
  2487. .ComputeUInt64Size(34, element);
  2488. }
  2489. foreach (int element in RepeatedSint32List) {
  2490. size += pb::CodedOutputStream
  2491. .ComputeSInt32Size(35, element);
  2492. }
  2493. foreach (long element in RepeatedSint64List) {
  2494. size += pb::CodedOutputStream
  2495. .ComputeSInt64Size(36, element);
  2496. }
  2497. foreach (uint element in RepeatedFixed32List) {
  2498. size += pb::CodedOutputStream
  2499. .ComputeFixed32Size(37, element);
  2500. }
  2501. foreach (ulong element in RepeatedFixed64List) {
  2502. size += pb::CodedOutputStream
  2503. .ComputeFixed64Size(38, element);
  2504. }
  2505. foreach (int element in RepeatedSfixed32List) {
  2506. size += pb::CodedOutputStream
  2507. .ComputeSFixed32Size(39, element);
  2508. }
  2509. foreach (long element in RepeatedSfixed64List) {
  2510. size += pb::CodedOutputStream
  2511. .ComputeSFixed64Size(40, element);
  2512. }
  2513. foreach (float element in RepeatedFloatList) {
  2514. size += pb::CodedOutputStream
  2515. .ComputeFloatSize(41, element);
  2516. }
  2517. foreach (double element in RepeatedDoubleList) {
  2518. size += pb::CodedOutputStream
  2519. .ComputeDoubleSize(42, element);
  2520. }
  2521. foreach (bool element in RepeatedBoolList) {
  2522. size += pb::CodedOutputStream
  2523. .ComputeBoolSize(43, element);
  2524. }
  2525. foreach (string element in RepeatedStringList) {
  2526. size += pb::CodedOutputStream
  2527. .ComputeStringSize(44, element);
  2528. }
  2529. foreach (pb::ByteString element in RepeatedBytesList) {
  2530. size += pb::CodedOutputStream
  2531. .ComputeBytesSize(45, element);
  2532. }
  2533. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2534. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2535. }
  2536. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2537. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2538. }
  2539. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2540. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2541. }
  2542. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2543. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2544. }
  2545. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2546. size += pb::CodedOutputStream
  2547. .ComputeEnumSize(51, (int) element);
  2548. }
  2549. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2550. size += pb::CodedOutputStream
  2551. .ComputeEnumSize(52, (int) element);
  2552. }
  2553. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2554. size += pb::CodedOutputStream
  2555. .ComputeEnumSize(53, (int) element);
  2556. }
  2557. foreach (string element in RepeatedStringPieceList) {
  2558. size += pb::CodedOutputStream
  2559. .ComputeStringSize(54, element);
  2560. }
  2561. foreach (string element in RepeatedCordList) {
  2562. size += pb::CodedOutputStream
  2563. .ComputeStringSize(55, element);
  2564. }
  2565. if (HasDefaultInt32) {
  2566. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2567. }
  2568. if (HasDefaultInt64) {
  2569. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2570. }
  2571. if (HasDefaultUint32) {
  2572. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2573. }
  2574. if (HasDefaultUint64) {
  2575. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2576. }
  2577. if (HasDefaultSint32) {
  2578. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2579. }
  2580. if (HasDefaultSint64) {
  2581. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2582. }
  2583. if (HasDefaultFixed32) {
  2584. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2585. }
  2586. if (HasDefaultFixed64) {
  2587. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2588. }
  2589. if (HasDefaultSfixed32) {
  2590. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2591. }
  2592. if (HasDefaultSfixed64) {
  2593. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2594. }
  2595. if (HasDefaultFloat) {
  2596. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2597. }
  2598. if (HasDefaultDouble) {
  2599. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2600. }
  2601. if (HasDefaultBool) {
  2602. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2603. }
  2604. if (HasDefaultString) {
  2605. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2606. }
  2607. if (HasDefaultBytes) {
  2608. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2609. }
  2610. if (HasDefaultNestedEnum) {
  2611. size += pb::CodedOutputStream
  2612. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2613. }
  2614. if (HasDefaultForeignEnum) {
  2615. size += pb::CodedOutputStream
  2616. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2617. }
  2618. if (HasDefaultImportEnum) {
  2619. size += pb::CodedOutputStream
  2620. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2621. }
  2622. if (HasDefaultStringPiece) {
  2623. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2624. }
  2625. if (HasDefaultCord) {
  2626. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2627. }
  2628. size += UnknownFields.SerializedSize;
  2629. memoizedSerializedSize = size;
  2630. return size;
  2631. }
  2632. }
  2633. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data) {
  2634. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2635. }
  2636. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data,
  2637. pb::ExtensionRegistry extensionRegistry) {
  2638. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2639. .BuildParsed();
  2640. }
  2641. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data) {
  2642. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2643. }
  2644. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data,
  2645. pb::ExtensionRegistry extensionRegistry) {
  2646. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2647. .BuildParsed();
  2648. }
  2649. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2650. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2651. }
  2652. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(
  2653. global::System.IO.Stream input,
  2654. pb::ExtensionRegistry extensionRegistry) {
  2655. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2656. .BuildParsed();
  2657. }
  2658. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2659. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2660. }
  2661. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input,
  2662. pb::ExtensionRegistry extensionRegistry) {
  2663. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2664. .BuildParsed();
  2665. }
  2666. public static Builder CreateBuilder() { return new Builder(); }
  2667. public override Builder CreateBuilderForType() { return new Builder(); }
  2668. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes prototype) {
  2669. return (Builder) new Builder().MergeFrom(prototype);
  2670. }
  2671. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, Builder> {
  2672. protected override Builder ThisBuilder {
  2673. get { return this; }
  2674. }
  2675. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder()
  2676. public Builder() {}
  2677. global::Google.ProtocolBuffers.TestProtos.TestAllTypes result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2678. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes MessageBeingBuilt {
  2679. get { return result; }
  2680. }
  2681. public override Builder Clear() {
  2682. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2683. return this;
  2684. }
  2685. public override Builder Clone() {
  2686. return new Builder().MergeFrom(result);
  2687. }
  2688. public override pbd::MessageDescriptor DescriptorForType {
  2689. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
  2690. }
  2691. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes DefaultInstanceForType {
  2692. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  2693. }
  2694. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes BuildPartial() {
  2695. result.repeatedInt32_.MakeReadOnly();
  2696. result.repeatedInt64_.MakeReadOnly();
  2697. result.repeatedUint32_.MakeReadOnly();
  2698. result.repeatedUint64_.MakeReadOnly();
  2699. result.repeatedSint32_.MakeReadOnly();
  2700. result.repeatedSint64_.MakeReadOnly();
  2701. result.repeatedFixed32_.MakeReadOnly();
  2702. result.repeatedFixed64_.MakeReadOnly();
  2703. result.repeatedSfixed32_.MakeReadOnly();
  2704. result.repeatedSfixed64_.MakeReadOnly();
  2705. result.repeatedFloat_.MakeReadOnly();
  2706. result.repeatedDouble_.MakeReadOnly();
  2707. result.repeatedBool_.MakeReadOnly();
  2708. result.repeatedString_.MakeReadOnly();
  2709. result.repeatedBytes_.MakeReadOnly();
  2710. result.repeatedGroup_.MakeReadOnly();
  2711. result.repeatedNestedMessage_.MakeReadOnly();
  2712. result.repeatedForeignMessage_.MakeReadOnly();
  2713. result.repeatedImportMessage_.MakeReadOnly();
  2714. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2715. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2716. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2717. result.repeatedStringPiece_.MakeReadOnly();
  2718. result.repeatedCord_.MakeReadOnly();
  2719. global::Google.ProtocolBuffers.TestProtos.TestAllTypes returnMe = result;
  2720. result = null;
  2721. return returnMe;
  2722. }
  2723. public override Builder MergeFrom(pb::IMessage other) {
  2724. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes) {
  2725. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes) other);
  2726. } else {
  2727. base.MergeFrom(other);
  2728. return this;
  2729. }
  2730. }
  2731. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes other) {
  2732. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
  2733. if (other.HasOptionalInt32) {
  2734. OptionalInt32 = other.OptionalInt32;
  2735. }
  2736. if (other.HasOptionalInt64) {
  2737. OptionalInt64 = other.OptionalInt64;
  2738. }
  2739. if (other.HasOptionalUint32) {
  2740. OptionalUint32 = other.OptionalUint32;
  2741. }
  2742. if (other.HasOptionalUint64) {
  2743. OptionalUint64 = other.OptionalUint64;
  2744. }
  2745. if (other.HasOptionalSint32) {
  2746. OptionalSint32 = other.OptionalSint32;
  2747. }
  2748. if (other.HasOptionalSint64) {
  2749. OptionalSint64 = other.OptionalSint64;
  2750. }
  2751. if (other.HasOptionalFixed32) {
  2752. OptionalFixed32 = other.OptionalFixed32;
  2753. }
  2754. if (other.HasOptionalFixed64) {
  2755. OptionalFixed64 = other.OptionalFixed64;
  2756. }
  2757. if (other.HasOptionalSfixed32) {
  2758. OptionalSfixed32 = other.OptionalSfixed32;
  2759. }
  2760. if (other.HasOptionalSfixed64) {
  2761. OptionalSfixed64 = other.OptionalSfixed64;
  2762. }
  2763. if (other.HasOptionalFloat) {
  2764. OptionalFloat = other.OptionalFloat;
  2765. }
  2766. if (other.HasOptionalDouble) {
  2767. OptionalDouble = other.OptionalDouble;
  2768. }
  2769. if (other.HasOptionalBool) {
  2770. OptionalBool = other.OptionalBool;
  2771. }
  2772. if (other.HasOptionalString) {
  2773. OptionalString = other.OptionalString;
  2774. }
  2775. if (other.HasOptionalBytes) {
  2776. OptionalBytes = other.OptionalBytes;
  2777. }
  2778. if (other.HasOptionalGroup) {
  2779. MergeOptionalGroup(other.OptionalGroup);
  2780. }
  2781. if (other.HasOptionalNestedMessage) {
  2782. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2783. }
  2784. if (other.HasOptionalForeignMessage) {
  2785. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2786. }
  2787. if (other.HasOptionalImportMessage) {
  2788. MergeOptionalImportMessage(other.OptionalImportMessage);
  2789. }
  2790. if (other.HasOptionalNestedEnum) {
  2791. OptionalNestedEnum = other.OptionalNestedEnum;
  2792. }
  2793. if (other.HasOptionalForeignEnum) {
  2794. OptionalForeignEnum = other.OptionalForeignEnum;
  2795. }
  2796. if (other.HasOptionalImportEnum) {
  2797. OptionalImportEnum = other.OptionalImportEnum;
  2798. }
  2799. if (other.HasOptionalStringPiece) {
  2800. OptionalStringPiece = other.OptionalStringPiece;
  2801. }
  2802. if (other.HasOptionalCord) {
  2803. OptionalCord = other.OptionalCord;
  2804. }
  2805. if (other.repeatedInt32_.Count != 0) {
  2806. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2807. }
  2808. if (other.repeatedInt64_.Count != 0) {
  2809. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2810. }
  2811. if (other.repeatedUint32_.Count != 0) {
  2812. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2813. }
  2814. if (other.repeatedUint64_.Count != 0) {
  2815. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2816. }
  2817. if (other.repeatedSint32_.Count != 0) {
  2818. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2819. }
  2820. if (other.repeatedSint64_.Count != 0) {
  2821. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2822. }
  2823. if (other.repeatedFixed32_.Count != 0) {
  2824. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2825. }
  2826. if (other.repeatedFixed64_.Count != 0) {
  2827. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2828. }
  2829. if (other.repeatedSfixed32_.Count != 0) {
  2830. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2831. }
  2832. if (other.repeatedSfixed64_.Count != 0) {
  2833. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2834. }
  2835. if (other.repeatedFloat_.Count != 0) {
  2836. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2837. }
  2838. if (other.repeatedDouble_.Count != 0) {
  2839. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2840. }
  2841. if (other.repeatedBool_.Count != 0) {
  2842. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2843. }
  2844. if (other.repeatedString_.Count != 0) {
  2845. base.AddRange(other.repeatedString_, result.repeatedString_);
  2846. }
  2847. if (other.repeatedBytes_.Count != 0) {
  2848. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2849. }
  2850. if (other.repeatedGroup_.Count != 0) {
  2851. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2852. }
  2853. if (other.repeatedNestedMessage_.Count != 0) {
  2854. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2855. }
  2856. if (other.repeatedForeignMessage_.Count != 0) {
  2857. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2858. }
  2859. if (other.repeatedImportMessage_.Count != 0) {
  2860. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2861. }
  2862. if (other.repeatedNestedEnum_.Count != 0) {
  2863. if (result.repeatedNestedEnum_.Count == 0) {
  2864. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  2865. }
  2866. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2867. }
  2868. if (other.repeatedForeignEnum_.Count != 0) {
  2869. if (result.repeatedForeignEnum_.Count == 0) {
  2870. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  2871. }
  2872. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2873. }
  2874. if (other.repeatedImportEnum_.Count != 0) {
  2875. if (result.repeatedImportEnum_.Count == 0) {
  2876. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  2877. }
  2878. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2879. }
  2880. if (other.repeatedStringPiece_.Count != 0) {
  2881. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2882. }
  2883. if (other.repeatedCord_.Count != 0) {
  2884. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  2885. }
  2886. if (other.HasDefaultInt32) {
  2887. DefaultInt32 = other.DefaultInt32;
  2888. }
  2889. if (other.HasDefaultInt64) {
  2890. DefaultInt64 = other.DefaultInt64;
  2891. }
  2892. if (other.HasDefaultUint32) {
  2893. DefaultUint32 = other.DefaultUint32;
  2894. }
  2895. if (other.HasDefaultUint64) {
  2896. DefaultUint64 = other.DefaultUint64;
  2897. }
  2898. if (other.HasDefaultSint32) {
  2899. DefaultSint32 = other.DefaultSint32;
  2900. }
  2901. if (other.HasDefaultSint64) {
  2902. DefaultSint64 = other.DefaultSint64;
  2903. }
  2904. if (other.HasDefaultFixed32) {
  2905. DefaultFixed32 = other.DefaultFixed32;
  2906. }
  2907. if (other.HasDefaultFixed64) {
  2908. DefaultFixed64 = other.DefaultFixed64;
  2909. }
  2910. if (other.HasDefaultSfixed32) {
  2911. DefaultSfixed32 = other.DefaultSfixed32;
  2912. }
  2913. if (other.HasDefaultSfixed64) {
  2914. DefaultSfixed64 = other.DefaultSfixed64;
  2915. }
  2916. if (other.HasDefaultFloat) {
  2917. DefaultFloat = other.DefaultFloat;
  2918. }
  2919. if (other.HasDefaultDouble) {
  2920. DefaultDouble = other.DefaultDouble;
  2921. }
  2922. if (other.HasDefaultBool) {
  2923. DefaultBool = other.DefaultBool;
  2924. }
  2925. if (other.HasDefaultString) {
  2926. DefaultString = other.DefaultString;
  2927. }
  2928. if (other.HasDefaultBytes) {
  2929. DefaultBytes = other.DefaultBytes;
  2930. }
  2931. if (other.HasDefaultNestedEnum) {
  2932. DefaultNestedEnum = other.DefaultNestedEnum;
  2933. }
  2934. if (other.HasDefaultForeignEnum) {
  2935. DefaultForeignEnum = other.DefaultForeignEnum;
  2936. }
  2937. if (other.HasDefaultImportEnum) {
  2938. DefaultImportEnum = other.DefaultImportEnum;
  2939. }
  2940. if (other.HasDefaultStringPiece) {
  2941. DefaultStringPiece = other.DefaultStringPiece;
  2942. }
  2943. if (other.HasDefaultCord) {
  2944. DefaultCord = other.DefaultCord;
  2945. }
  2946. this.MergeUnknownFields(other.UnknownFields);
  2947. return this;
  2948. }
  2949. public override Builder MergeFrom(pb::CodedInputStream input) {
  2950. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2951. }
  2952. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2953. pb::UnknownFieldSet.Builder unknownFields =
  2954. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2955. while (true) {
  2956. uint tag = input.ReadTag();
  2957. switch (tag) {
  2958. case 0:
  2959. this.UnknownFields = unknownFields.Build();
  2960. return this;
  2961. default: {
  2962. if (!ParseUnknownField(input, unknownFields,
  2963. extensionRegistry, tag)) {
  2964. this.UnknownFields = unknownFields.Build();
  2965. return this;
  2966. }
  2967. break;
  2968. }
  2969. case 8: {
  2970. OptionalInt32 = input.ReadInt32();
  2971. break;
  2972. }
  2973. case 16: {
  2974. OptionalInt64 = input.ReadInt64();
  2975. break;
  2976. }
  2977. case 24: {
  2978. OptionalUint32 = input.ReadUInt32();
  2979. break;
  2980. }
  2981. case 32: {
  2982. OptionalUint64 = input.ReadUInt64();
  2983. break;
  2984. }
  2985. case 40: {
  2986. OptionalSint32 = input.ReadSInt32();
  2987. break;
  2988. }
  2989. case 48: {
  2990. OptionalSint64 = input.ReadSInt64();
  2991. break;
  2992. }
  2993. case 61: {
  2994. OptionalFixed32 = input.ReadFixed32();
  2995. break;
  2996. }
  2997. case 65: {
  2998. OptionalFixed64 = input.ReadFixed64();
  2999. break;
  3000. }
  3001. case 77: {
  3002. OptionalSfixed32 = input.ReadSFixed32();
  3003. break;
  3004. }
  3005. case 81: {
  3006. OptionalSfixed64 = input.ReadSFixed64();
  3007. break;
  3008. }
  3009. case 93: {
  3010. OptionalFloat = input.ReadFloat();
  3011. break;
  3012. }
  3013. case 97: {
  3014. OptionalDouble = input.ReadDouble();
  3015. break;
  3016. }
  3017. case 104: {
  3018. OptionalBool = input.ReadBool();
  3019. break;
  3020. }
  3021. case 114: {
  3022. OptionalString = input.ReadString();
  3023. break;
  3024. }
  3025. case 122: {
  3026. OptionalBytes = input.ReadBytes();
  3027. break;
  3028. }
  3029. case 131: {
  3030. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3031. if (HasOptionalGroup) {
  3032. subBuilder.MergeFrom(OptionalGroup);
  3033. }
  3034. input.ReadGroup(16, subBuilder, extensionRegistry);
  3035. OptionalGroup = subBuilder.BuildPartial();
  3036. break;
  3037. }
  3038. case 146: {
  3039. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3040. if (HasOptionalNestedMessage) {
  3041. subBuilder.MergeFrom(OptionalNestedMessage);
  3042. }
  3043. input.ReadMessage(subBuilder, extensionRegistry);
  3044. OptionalNestedMessage = subBuilder.BuildPartial();
  3045. break;
  3046. }
  3047. case 154: {
  3048. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3049. if (HasOptionalForeignMessage) {
  3050. subBuilder.MergeFrom(OptionalForeignMessage);
  3051. }
  3052. input.ReadMessage(subBuilder, extensionRegistry);
  3053. OptionalForeignMessage = subBuilder.BuildPartial();
  3054. break;
  3055. }
  3056. case 162: {
  3057. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3058. if (HasOptionalImportMessage) {
  3059. subBuilder.MergeFrom(OptionalImportMessage);
  3060. }
  3061. input.ReadMessage(subBuilder, extensionRegistry);
  3062. OptionalImportMessage = subBuilder.BuildPartial();
  3063. break;
  3064. }
  3065. case 168: {
  3066. int rawValue = input.ReadEnum();
  3067. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3068. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3069. } else {
  3070. OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3071. }
  3072. break;
  3073. }
  3074. case 176: {
  3075. int rawValue = input.ReadEnum();
  3076. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3077. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3078. } else {
  3079. OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3080. }
  3081. break;
  3082. }
  3083. case 184: {
  3084. int rawValue = input.ReadEnum();
  3085. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3086. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3087. } else {
  3088. OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3089. }
  3090. break;
  3091. }
  3092. case 194: {
  3093. OptionalStringPiece = input.ReadString();
  3094. break;
  3095. }
  3096. case 202: {
  3097. OptionalCord = input.ReadString();
  3098. break;
  3099. }
  3100. case 248: {
  3101. AddRepeatedInt32(input.ReadInt32());
  3102. break;
  3103. }
  3104. case 256: {
  3105. AddRepeatedInt64(input.ReadInt64());
  3106. break;
  3107. }
  3108. case 264: {
  3109. AddRepeatedUint32(input.ReadUInt32());
  3110. break;
  3111. }
  3112. case 272: {
  3113. AddRepeatedUint64(input.ReadUInt64());
  3114. break;
  3115. }
  3116. case 280: {
  3117. AddRepeatedSint32(input.ReadSInt32());
  3118. break;
  3119. }
  3120. case 288: {
  3121. AddRepeatedSint64(input.ReadSInt64());
  3122. break;
  3123. }
  3124. case 301: {
  3125. AddRepeatedFixed32(input.ReadFixed32());
  3126. break;
  3127. }
  3128. case 305: {
  3129. AddRepeatedFixed64(input.ReadFixed64());
  3130. break;
  3131. }
  3132. case 317: {
  3133. AddRepeatedSfixed32(input.ReadSFixed32());
  3134. break;
  3135. }
  3136. case 321: {
  3137. AddRepeatedSfixed64(input.ReadSFixed64());
  3138. break;
  3139. }
  3140. case 333: {
  3141. AddRepeatedFloat(input.ReadFloat());
  3142. break;
  3143. }
  3144. case 337: {
  3145. AddRepeatedDouble(input.ReadDouble());
  3146. break;
  3147. }
  3148. case 344: {
  3149. AddRepeatedBool(input.ReadBool());
  3150. break;
  3151. }
  3152. case 354: {
  3153. AddRepeatedString(input.ReadString());
  3154. break;
  3155. }
  3156. case 362: {
  3157. AddRepeatedBytes(input.ReadBytes());
  3158. break;
  3159. }
  3160. case 371: {
  3161. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3162. input.ReadGroup(46, subBuilder, extensionRegistry);
  3163. AddRepeatedGroup(subBuilder.BuildPartial());
  3164. break;
  3165. }
  3166. case 386: {
  3167. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3168. input.ReadMessage(subBuilder, extensionRegistry);
  3169. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3170. break;
  3171. }
  3172. case 394: {
  3173. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3174. input.ReadMessage(subBuilder, extensionRegistry);
  3175. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3176. break;
  3177. }
  3178. case 402: {
  3179. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3180. input.ReadMessage(subBuilder, extensionRegistry);
  3181. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3182. break;
  3183. }
  3184. case 408: {
  3185. int rawValue = input.ReadEnum();
  3186. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3187. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), value)) {
  3188. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3189. } else {
  3190. AddRepeatedNestedEnum(value);
  3191. }
  3192. break;
  3193. }
  3194. case 416: {
  3195. int rawValue = input.ReadEnum();
  3196. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3197. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  3198. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3199. } else {
  3200. AddRepeatedForeignEnum(value);
  3201. }
  3202. break;
  3203. }
  3204. case 424: {
  3205. int rawValue = input.ReadEnum();
  3206. global::Google.ProtocolBuffers.TestProtos.ImportEnum value = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3207. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), value)) {
  3208. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3209. } else {
  3210. AddRepeatedImportEnum(value);
  3211. }
  3212. break;
  3213. }
  3214. case 434: {
  3215. AddRepeatedStringPiece(input.ReadString());
  3216. break;
  3217. }
  3218. case 442: {
  3219. AddRepeatedCord(input.ReadString());
  3220. break;
  3221. }
  3222. case 488: {
  3223. DefaultInt32 = input.ReadInt32();
  3224. break;
  3225. }
  3226. case 496: {
  3227. DefaultInt64 = input.ReadInt64();
  3228. break;
  3229. }
  3230. case 504: {
  3231. DefaultUint32 = input.ReadUInt32();
  3232. break;
  3233. }
  3234. case 512: {
  3235. DefaultUint64 = input.ReadUInt64();
  3236. break;
  3237. }
  3238. case 520: {
  3239. DefaultSint32 = input.ReadSInt32();
  3240. break;
  3241. }
  3242. case 528: {
  3243. DefaultSint64 = input.ReadSInt64();
  3244. break;
  3245. }
  3246. case 541: {
  3247. DefaultFixed32 = input.ReadFixed32();
  3248. break;
  3249. }
  3250. case 545: {
  3251. DefaultFixed64 = input.ReadFixed64();
  3252. break;
  3253. }
  3254. case 557: {
  3255. DefaultSfixed32 = input.ReadSFixed32();
  3256. break;
  3257. }
  3258. case 561: {
  3259. DefaultSfixed64 = input.ReadSFixed64();
  3260. break;
  3261. }
  3262. case 573: {
  3263. DefaultFloat = input.ReadFloat();
  3264. break;
  3265. }
  3266. case 577: {
  3267. DefaultDouble = input.ReadDouble();
  3268. break;
  3269. }
  3270. case 584: {
  3271. DefaultBool = input.ReadBool();
  3272. break;
  3273. }
  3274. case 594: {
  3275. DefaultString = input.ReadString();
  3276. break;
  3277. }
  3278. case 602: {
  3279. DefaultBytes = input.ReadBytes();
  3280. break;
  3281. }
  3282. case 648: {
  3283. int rawValue = input.ReadEnum();
  3284. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3285. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3286. } else {
  3287. DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3288. }
  3289. break;
  3290. }
  3291. case 656: {
  3292. int rawValue = input.ReadEnum();
  3293. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3294. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3295. } else {
  3296. DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3297. }
  3298. break;
  3299. }
  3300. case 664: {
  3301. int rawValue = input.ReadEnum();
  3302. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3303. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3304. } else {
  3305. DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3306. }
  3307. break;
  3308. }
  3309. case 674: {
  3310. DefaultStringPiece = input.ReadString();
  3311. break;
  3312. }
  3313. case 682: {
  3314. DefaultCord = input.ReadString();
  3315. break;
  3316. }
  3317. }
  3318. }
  3319. }
  3320. // optional int32 optional_int32 = 1;
  3321. public bool HasOptionalInt32 {
  3322. get { return result.HasOptionalInt32; }
  3323. }
  3324. public int OptionalInt32 {
  3325. get { return result.OptionalInt32; }
  3326. set { SetOptionalInt32(value); }
  3327. }
  3328. public Builder SetOptionalInt32(int value) {
  3329. result.hasOptionalInt32 = true;
  3330. result.optionalInt32_ = value;
  3331. return this;
  3332. }
  3333. public Builder ClearOptionalInt32() {
  3334. result.hasOptionalInt32 = false;
  3335. result.optionalInt32_ = 0;
  3336. return this;
  3337. }
  3338. // optional int64 optional_int64 = 2;
  3339. public bool HasOptionalInt64 {
  3340. get { return result.HasOptionalInt64; }
  3341. }
  3342. public long OptionalInt64 {
  3343. get { return result.OptionalInt64; }
  3344. set { SetOptionalInt64(value); }
  3345. }
  3346. public Builder SetOptionalInt64(long value) {
  3347. result.hasOptionalInt64 = true;
  3348. result.optionalInt64_ = value;
  3349. return this;
  3350. }
  3351. public Builder ClearOptionalInt64() {
  3352. result.hasOptionalInt64 = false;
  3353. result.optionalInt64_ = 0L;
  3354. return this;
  3355. }
  3356. // optional uint32 optional_uint32 = 3;
  3357. public bool HasOptionalUint32 {
  3358. get { return result.HasOptionalUint32; }
  3359. }
  3360. public uint OptionalUint32 {
  3361. get { return result.OptionalUint32; }
  3362. set { SetOptionalUint32(value); }
  3363. }
  3364. public Builder SetOptionalUint32(uint value) {
  3365. result.hasOptionalUint32 = true;
  3366. result.optionalUint32_ = value;
  3367. return this;
  3368. }
  3369. public Builder ClearOptionalUint32() {
  3370. result.hasOptionalUint32 = false;
  3371. result.optionalUint32_ = 0;
  3372. return this;
  3373. }
  3374. // optional uint64 optional_uint64 = 4;
  3375. public bool HasOptionalUint64 {
  3376. get { return result.HasOptionalUint64; }
  3377. }
  3378. public ulong OptionalUint64 {
  3379. get { return result.OptionalUint64; }
  3380. set { SetOptionalUint64(value); }
  3381. }
  3382. public Builder SetOptionalUint64(ulong value) {
  3383. result.hasOptionalUint64 = true;
  3384. result.optionalUint64_ = value;
  3385. return this;
  3386. }
  3387. public Builder ClearOptionalUint64() {
  3388. result.hasOptionalUint64 = false;
  3389. result.optionalUint64_ = 0UL;
  3390. return this;
  3391. }
  3392. // optional sint32 optional_sint32 = 5;
  3393. public bool HasOptionalSint32 {
  3394. get { return result.HasOptionalSint32; }
  3395. }
  3396. public int OptionalSint32 {
  3397. get { return result.OptionalSint32; }
  3398. set { SetOptionalSint32(value); }
  3399. }
  3400. public Builder SetOptionalSint32(int value) {
  3401. result.hasOptionalSint32 = true;
  3402. result.optionalSint32_ = value;
  3403. return this;
  3404. }
  3405. public Builder ClearOptionalSint32() {
  3406. result.hasOptionalSint32 = false;
  3407. result.optionalSint32_ = 0;
  3408. return this;
  3409. }
  3410. // optional sint64 optional_sint64 = 6;
  3411. public bool HasOptionalSint64 {
  3412. get { return result.HasOptionalSint64; }
  3413. }
  3414. public long OptionalSint64 {
  3415. get { return result.OptionalSint64; }
  3416. set { SetOptionalSint64(value); }
  3417. }
  3418. public Builder SetOptionalSint64(long value) {
  3419. result.hasOptionalSint64 = true;
  3420. result.optionalSint64_ = value;
  3421. return this;
  3422. }
  3423. public Builder ClearOptionalSint64() {
  3424. result.hasOptionalSint64 = false;
  3425. result.optionalSint64_ = 0L;
  3426. return this;
  3427. }
  3428. // optional fixed32 optional_fixed32 = 7;
  3429. public bool HasOptionalFixed32 {
  3430. get { return result.HasOptionalFixed32; }
  3431. }
  3432. public uint OptionalFixed32 {
  3433. get { return result.OptionalFixed32; }
  3434. set { SetOptionalFixed32(value); }
  3435. }
  3436. public Builder SetOptionalFixed32(uint value) {
  3437. result.hasOptionalFixed32 = true;
  3438. result.optionalFixed32_ = value;
  3439. return this;
  3440. }
  3441. public Builder ClearOptionalFixed32() {
  3442. result.hasOptionalFixed32 = false;
  3443. result.optionalFixed32_ = 0;
  3444. return this;
  3445. }
  3446. // optional fixed64 optional_fixed64 = 8;
  3447. public bool HasOptionalFixed64 {
  3448. get { return result.HasOptionalFixed64; }
  3449. }
  3450. public ulong OptionalFixed64 {
  3451. get { return result.OptionalFixed64; }
  3452. set { SetOptionalFixed64(value); }
  3453. }
  3454. public Builder SetOptionalFixed64(ulong value) {
  3455. result.hasOptionalFixed64 = true;
  3456. result.optionalFixed64_ = value;
  3457. return this;
  3458. }
  3459. public Builder ClearOptionalFixed64() {
  3460. result.hasOptionalFixed64 = false;
  3461. result.optionalFixed64_ = 0UL;
  3462. return this;
  3463. }
  3464. // optional sfixed32 optional_sfixed32 = 9;
  3465. public bool HasOptionalSfixed32 {
  3466. get { return result.HasOptionalSfixed32; }
  3467. }
  3468. public int OptionalSfixed32 {
  3469. get { return result.OptionalSfixed32; }
  3470. set { SetOptionalSfixed32(value); }
  3471. }
  3472. public Builder SetOptionalSfixed32(int value) {
  3473. result.hasOptionalSfixed32 = true;
  3474. result.optionalSfixed32_ = value;
  3475. return this;
  3476. }
  3477. public Builder ClearOptionalSfixed32() {
  3478. result.hasOptionalSfixed32 = false;
  3479. result.optionalSfixed32_ = 0;
  3480. return this;
  3481. }
  3482. // optional sfixed64 optional_sfixed64 = 10;
  3483. public bool HasOptionalSfixed64 {
  3484. get { return result.HasOptionalSfixed64; }
  3485. }
  3486. public long OptionalSfixed64 {
  3487. get { return result.OptionalSfixed64; }
  3488. set { SetOptionalSfixed64(value); }
  3489. }
  3490. public Builder SetOptionalSfixed64(long value) {
  3491. result.hasOptionalSfixed64 = true;
  3492. result.optionalSfixed64_ = value;
  3493. return this;
  3494. }
  3495. public Builder ClearOptionalSfixed64() {
  3496. result.hasOptionalSfixed64 = false;
  3497. result.optionalSfixed64_ = 0L;
  3498. return this;
  3499. }
  3500. // optional float optional_float = 11;
  3501. public bool HasOptionalFloat {
  3502. get { return result.HasOptionalFloat; }
  3503. }
  3504. public float OptionalFloat {
  3505. get { return result.OptionalFloat; }
  3506. set { SetOptionalFloat(value); }
  3507. }
  3508. public Builder SetOptionalFloat(float value) {
  3509. result.hasOptionalFloat = true;
  3510. result.optionalFloat_ = value;
  3511. return this;
  3512. }
  3513. public Builder ClearOptionalFloat() {
  3514. result.hasOptionalFloat = false;
  3515. result.optionalFloat_ = 0F;
  3516. return this;
  3517. }
  3518. // optional double optional_double = 12;
  3519. public bool HasOptionalDouble {
  3520. get { return result.HasOptionalDouble; }
  3521. }
  3522. public double OptionalDouble {
  3523. get { return result.OptionalDouble; }
  3524. set { SetOptionalDouble(value); }
  3525. }
  3526. public Builder SetOptionalDouble(double value) {
  3527. result.hasOptionalDouble = true;
  3528. result.optionalDouble_ = value;
  3529. return this;
  3530. }
  3531. public Builder ClearOptionalDouble() {
  3532. result.hasOptionalDouble = false;
  3533. result.optionalDouble_ = 0D;
  3534. return this;
  3535. }
  3536. // optional bool optional_bool = 13;
  3537. public bool HasOptionalBool {
  3538. get { return result.HasOptionalBool; }
  3539. }
  3540. public bool OptionalBool {
  3541. get { return result.OptionalBool; }
  3542. set { SetOptionalBool(value); }
  3543. }
  3544. public Builder SetOptionalBool(bool value) {
  3545. result.hasOptionalBool = true;
  3546. result.optionalBool_ = value;
  3547. return this;
  3548. }
  3549. public Builder ClearOptionalBool() {
  3550. result.hasOptionalBool = false;
  3551. result.optionalBool_ = false;
  3552. return this;
  3553. }
  3554. // optional string optional_string = 14;
  3555. public bool HasOptionalString {
  3556. get { return result.HasOptionalString; }
  3557. }
  3558. public string OptionalString {
  3559. get { return result.OptionalString; }
  3560. set { SetOptionalString(value); }
  3561. }
  3562. public Builder SetOptionalString(string value) {
  3563. result.hasOptionalString = true;
  3564. result.optionalString_ = value;
  3565. return this;
  3566. }
  3567. public Builder ClearOptionalString() {
  3568. result.hasOptionalString = false;
  3569. result.optionalString_ = "";
  3570. return this;
  3571. }
  3572. // optional bytes optional_bytes = 15;
  3573. public bool HasOptionalBytes {
  3574. get { return result.HasOptionalBytes; }
  3575. }
  3576. public pb::ByteString OptionalBytes {
  3577. get { return result.OptionalBytes; }
  3578. set { SetOptionalBytes(value); }
  3579. }
  3580. public Builder SetOptionalBytes(pb::ByteString value) {
  3581. result.hasOptionalBytes = true;
  3582. result.optionalBytes_ = value;
  3583. return this;
  3584. }
  3585. public Builder ClearOptionalBytes() {
  3586. result.hasOptionalBytes = false;
  3587. result.optionalBytes_ = pb::ByteString.Empty;
  3588. return this;
  3589. }
  3590. // optional group OptionalGroup = 16 {
  3591. public bool HasOptionalGroup {
  3592. get { return result.HasOptionalGroup; }
  3593. }
  3594. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  3595. get { return result.OptionalGroup; }
  3596. set { SetOptionalGroup(value); }
  3597. }
  3598. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3599. result.hasOptionalGroup = true;
  3600. result.optionalGroup_ = value;
  3601. return this;
  3602. }
  3603. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3604. result.hasOptionalGroup = true;
  3605. result.optionalGroup_ = builderForValue.Build();
  3606. return this;
  3607. }
  3608. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3609. if (result.HasOptionalGroup &&
  3610. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3611. result.optionalGroup_ =
  3612. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3613. } else {
  3614. result.optionalGroup_ = value;
  3615. }
  3616. result.hasOptionalGroup = true;
  3617. return this;
  3618. }
  3619. public Builder ClearOptionalGroup() {
  3620. result.hasOptionalGroup = false;
  3621. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3622. return this;
  3623. }
  3624. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3625. public bool HasOptionalNestedMessage {
  3626. get { return result.HasOptionalNestedMessage; }
  3627. }
  3628. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3629. get { return result.OptionalNestedMessage; }
  3630. set { SetOptionalNestedMessage(value); }
  3631. }
  3632. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3633. result.hasOptionalNestedMessage = true;
  3634. result.optionalNestedMessage_ = value;
  3635. return this;
  3636. }
  3637. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3638. result.hasOptionalNestedMessage = true;
  3639. result.optionalNestedMessage_ = builderForValue.Build();
  3640. return this;
  3641. }
  3642. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3643. if (result.HasOptionalNestedMessage &&
  3644. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3645. result.optionalNestedMessage_ =
  3646. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3647. } else {
  3648. result.optionalNestedMessage_ = value;
  3649. }
  3650. result.hasOptionalNestedMessage = true;
  3651. return this;
  3652. }
  3653. public Builder ClearOptionalNestedMessage() {
  3654. result.hasOptionalNestedMessage = false;
  3655. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  3656. return this;
  3657. }
  3658. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3659. public bool HasOptionalForeignMessage {
  3660. get { return result.HasOptionalForeignMessage; }
  3661. }
  3662. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  3663. get { return result.OptionalForeignMessage; }
  3664. set { SetOptionalForeignMessage(value); }
  3665. }
  3666. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3667. result.hasOptionalForeignMessage = true;
  3668. result.optionalForeignMessage_ = value;
  3669. return this;
  3670. }
  3671. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  3672. result.hasOptionalForeignMessage = true;
  3673. result.optionalForeignMessage_ = builderForValue.Build();
  3674. return this;
  3675. }
  3676. public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3677. if (result.HasOptionalForeignMessage &&
  3678. result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  3679. result.optionalForeignMessage_ =
  3680. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3681. } else {
  3682. result.optionalForeignMessage_ = value;
  3683. }
  3684. result.hasOptionalForeignMessage = true;
  3685. return this;
  3686. }
  3687. public Builder ClearOptionalForeignMessage() {
  3688. result.hasOptionalForeignMessage = false;
  3689. result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  3690. return this;
  3691. }
  3692. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3693. public bool HasOptionalImportMessage {
  3694. get { return result.HasOptionalImportMessage; }
  3695. }
  3696. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  3697. get { return result.OptionalImportMessage; }
  3698. set { SetOptionalImportMessage(value); }
  3699. }
  3700. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3701. result.hasOptionalImportMessage = true;
  3702. result.optionalImportMessage_ = value;
  3703. return this;
  3704. }
  3705. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  3706. result.hasOptionalImportMessage = true;
  3707. result.optionalImportMessage_ = builderForValue.Build();
  3708. return this;
  3709. }
  3710. public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3711. if (result.HasOptionalImportMessage &&
  3712. result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
  3713. result.optionalImportMessage_ =
  3714. global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3715. } else {
  3716. result.optionalImportMessage_ = value;
  3717. }
  3718. result.hasOptionalImportMessage = true;
  3719. return this;
  3720. }
  3721. public Builder ClearOptionalImportMessage() {
  3722. result.hasOptionalImportMessage = false;
  3723. result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  3724. return this;
  3725. }
  3726. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3727. public bool HasOptionalNestedEnum {
  3728. get { return result.HasOptionalNestedEnum; }
  3729. }
  3730. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3731. get { return result.OptionalNestedEnum; }
  3732. set { SetOptionalNestedEnum(value); }
  3733. }
  3734. public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  3735. result.hasOptionalNestedEnum = true;
  3736. result.optionalNestedEnum_ = value;
  3737. return this;
  3738. }
  3739. public Builder ClearOptionalNestedEnum() {
  3740. result.hasOptionalNestedEnum = false;
  3741. result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  3742. return this;
  3743. }
  3744. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3745. public bool HasOptionalForeignEnum {
  3746. get { return result.HasOptionalForeignEnum; }
  3747. }
  3748. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  3749. get { return result.OptionalForeignEnum; }
  3750. set { SetOptionalForeignEnum(value); }
  3751. }
  3752. public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  3753. result.hasOptionalForeignEnum = true;
  3754. result.optionalForeignEnum_ = value;
  3755. return this;
  3756. }
  3757. public Builder ClearOptionalForeignEnum() {
  3758. result.hasOptionalForeignEnum = false;
  3759. result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  3760. return this;
  3761. }
  3762. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3763. public bool HasOptionalImportEnum {
  3764. get { return result.HasOptionalImportEnum; }
  3765. }
  3766. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  3767. get { return result.OptionalImportEnum; }
  3768. set { SetOptionalImportEnum(value); }
  3769. }
  3770. public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  3771. result.hasOptionalImportEnum = true;
  3772. result.optionalImportEnum_ = value;
  3773. return this;
  3774. }
  3775. public Builder ClearOptionalImportEnum() {
  3776. result.hasOptionalImportEnum = false;
  3777. result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  3778. return this;
  3779. }
  3780. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3781. public bool HasOptionalStringPiece {
  3782. get { return result.HasOptionalStringPiece; }
  3783. }
  3784. public string OptionalStringPiece {
  3785. get { return result.OptionalStringPiece; }
  3786. set { SetOptionalStringPiece(value); }
  3787. }
  3788. public Builder SetOptionalStringPiece(string value) {
  3789. result.hasOptionalStringPiece = true;
  3790. result.optionalStringPiece_ = value;
  3791. return this;
  3792. }
  3793. public Builder ClearOptionalStringPiece() {
  3794. result.hasOptionalStringPiece = false;
  3795. result.optionalStringPiece_ = "";
  3796. return this;
  3797. }
  3798. // optional string optional_cord = 25 [ctype = CORD];
  3799. public bool HasOptionalCord {
  3800. get { return result.HasOptionalCord; }
  3801. }
  3802. public string OptionalCord {
  3803. get { return result.OptionalCord; }
  3804. set { SetOptionalCord(value); }
  3805. }
  3806. public Builder SetOptionalCord(string value) {
  3807. result.hasOptionalCord = true;
  3808. result.optionalCord_ = value;
  3809. return this;
  3810. }
  3811. public Builder ClearOptionalCord() {
  3812. result.hasOptionalCord = false;
  3813. result.optionalCord_ = "";
  3814. return this;
  3815. }
  3816. // repeated int32 repeated_int32 = 31;
  3817. public scg::IList<int> RepeatedInt32List {
  3818. get { return result.repeatedInt32_; }
  3819. }
  3820. public int RepeatedInt32Count {
  3821. get { return result.RepeatedInt32Count; }
  3822. }
  3823. public int GetRepeatedInt32(int index) {
  3824. return result.GetRepeatedInt32(index);
  3825. }
  3826. public Builder SetRepeatedInt32(int index, int value) {
  3827. result.repeatedInt32_[index] = value;
  3828. return this;
  3829. }
  3830. public Builder AddRepeatedInt32(int value) {
  3831. result.repeatedInt32_.Add(value);
  3832. return this;
  3833. }
  3834. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3835. base.AddRange(values, result.repeatedInt32_);
  3836. return this;
  3837. }
  3838. public Builder ClearRepeatedInt32() {
  3839. result.repeatedInt32_.Clear();
  3840. return this;
  3841. }
  3842. // repeated int64 repeated_int64 = 32;
  3843. public scg::IList<long> RepeatedInt64List {
  3844. get { return result.repeatedInt64_; }
  3845. }
  3846. public int RepeatedInt64Count {
  3847. get { return result.RepeatedInt64Count; }
  3848. }
  3849. public long GetRepeatedInt64(int index) {
  3850. return result.GetRepeatedInt64(index);
  3851. }
  3852. public Builder SetRepeatedInt64(int index, long value) {
  3853. result.repeatedInt64_[index] = value;
  3854. return this;
  3855. }
  3856. public Builder AddRepeatedInt64(long value) {
  3857. result.repeatedInt64_.Add(value);
  3858. return this;
  3859. }
  3860. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3861. base.AddRange(values, result.repeatedInt64_);
  3862. return this;
  3863. }
  3864. public Builder ClearRepeatedInt64() {
  3865. result.repeatedInt64_.Clear();
  3866. return this;
  3867. }
  3868. // repeated uint32 repeated_uint32 = 33;
  3869. public scg::IList<uint> RepeatedUint32List {
  3870. get { return result.repeatedUint32_; }
  3871. }
  3872. public int RepeatedUint32Count {
  3873. get { return result.RepeatedUint32Count; }
  3874. }
  3875. public uint GetRepeatedUint32(int index) {
  3876. return result.GetRepeatedUint32(index);
  3877. }
  3878. public Builder SetRepeatedUint32(int index, uint value) {
  3879. result.repeatedUint32_[index] = value;
  3880. return this;
  3881. }
  3882. public Builder AddRepeatedUint32(uint value) {
  3883. result.repeatedUint32_.Add(value);
  3884. return this;
  3885. }
  3886. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  3887. base.AddRange(values, result.repeatedUint32_);
  3888. return this;
  3889. }
  3890. public Builder ClearRepeatedUint32() {
  3891. result.repeatedUint32_.Clear();
  3892. return this;
  3893. }
  3894. // repeated uint64 repeated_uint64 = 34;
  3895. public scg::IList<ulong> RepeatedUint64List {
  3896. get { return result.repeatedUint64_; }
  3897. }
  3898. public int RepeatedUint64Count {
  3899. get { return result.RepeatedUint64Count; }
  3900. }
  3901. public ulong GetRepeatedUint64(int index) {
  3902. return result.GetRepeatedUint64(index);
  3903. }
  3904. public Builder SetRepeatedUint64(int index, ulong value) {
  3905. result.repeatedUint64_[index] = value;
  3906. return this;
  3907. }
  3908. public Builder AddRepeatedUint64(ulong value) {
  3909. result.repeatedUint64_.Add(value);
  3910. return this;
  3911. }
  3912. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  3913. base.AddRange(values, result.repeatedUint64_);
  3914. return this;
  3915. }
  3916. public Builder ClearRepeatedUint64() {
  3917. result.repeatedUint64_.Clear();
  3918. return this;
  3919. }
  3920. // repeated sint32 repeated_sint32 = 35;
  3921. public scg::IList<int> RepeatedSint32List {
  3922. get { return result.repeatedSint32_; }
  3923. }
  3924. public int RepeatedSint32Count {
  3925. get { return result.RepeatedSint32Count; }
  3926. }
  3927. public int GetRepeatedSint32(int index) {
  3928. return result.GetRepeatedSint32(index);
  3929. }
  3930. public Builder SetRepeatedSint32(int index, int value) {
  3931. result.repeatedSint32_[index] = value;
  3932. return this;
  3933. }
  3934. public Builder AddRepeatedSint32(int value) {
  3935. result.repeatedSint32_.Add(value);
  3936. return this;
  3937. }
  3938. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  3939. base.AddRange(values, result.repeatedSint32_);
  3940. return this;
  3941. }
  3942. public Builder ClearRepeatedSint32() {
  3943. result.repeatedSint32_.Clear();
  3944. return this;
  3945. }
  3946. // repeated sint64 repeated_sint64 = 36;
  3947. public scg::IList<long> RepeatedSint64List {
  3948. get { return result.repeatedSint64_; }
  3949. }
  3950. public int RepeatedSint64Count {
  3951. get { return result.RepeatedSint64Count; }
  3952. }
  3953. public long GetRepeatedSint64(int index) {
  3954. return result.GetRepeatedSint64(index);
  3955. }
  3956. public Builder SetRepeatedSint64(int index, long value) {
  3957. result.repeatedSint64_[index] = value;
  3958. return this;
  3959. }
  3960. public Builder AddRepeatedSint64(long value) {
  3961. result.repeatedSint64_.Add(value);
  3962. return this;
  3963. }
  3964. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  3965. base.AddRange(values, result.repeatedSint64_);
  3966. return this;
  3967. }
  3968. public Builder ClearRepeatedSint64() {
  3969. result.repeatedSint64_.Clear();
  3970. return this;
  3971. }
  3972. // repeated fixed32 repeated_fixed32 = 37;
  3973. public scg::IList<uint> RepeatedFixed32List {
  3974. get { return result.repeatedFixed32_; }
  3975. }
  3976. public int RepeatedFixed32Count {
  3977. get { return result.RepeatedFixed32Count; }
  3978. }
  3979. public uint GetRepeatedFixed32(int index) {
  3980. return result.GetRepeatedFixed32(index);
  3981. }
  3982. public Builder SetRepeatedFixed32(int index, uint value) {
  3983. result.repeatedFixed32_[index] = value;
  3984. return this;
  3985. }
  3986. public Builder AddRepeatedFixed32(uint value) {
  3987. result.repeatedFixed32_.Add(value);
  3988. return this;
  3989. }
  3990. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  3991. base.AddRange(values, result.repeatedFixed32_);
  3992. return this;
  3993. }
  3994. public Builder ClearRepeatedFixed32() {
  3995. result.repeatedFixed32_.Clear();
  3996. return this;
  3997. }
  3998. // repeated fixed64 repeated_fixed64 = 38;
  3999. public scg::IList<ulong> RepeatedFixed64List {
  4000. get { return result.repeatedFixed64_; }
  4001. }
  4002. public int RepeatedFixed64Count {
  4003. get { return result.RepeatedFixed64Count; }
  4004. }
  4005. public ulong GetRepeatedFixed64(int index) {
  4006. return result.GetRepeatedFixed64(index);
  4007. }
  4008. public Builder SetRepeatedFixed64(int index, ulong value) {
  4009. result.repeatedFixed64_[index] = value;
  4010. return this;
  4011. }
  4012. public Builder AddRepeatedFixed64(ulong value) {
  4013. result.repeatedFixed64_.Add(value);
  4014. return this;
  4015. }
  4016. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4017. base.AddRange(values, result.repeatedFixed64_);
  4018. return this;
  4019. }
  4020. public Builder ClearRepeatedFixed64() {
  4021. result.repeatedFixed64_.Clear();
  4022. return this;
  4023. }
  4024. // repeated sfixed32 repeated_sfixed32 = 39;
  4025. public scg::IList<int> RepeatedSfixed32List {
  4026. get { return result.repeatedSfixed32_; }
  4027. }
  4028. public int RepeatedSfixed32Count {
  4029. get { return result.RepeatedSfixed32Count; }
  4030. }
  4031. public int GetRepeatedSfixed32(int index) {
  4032. return result.GetRepeatedSfixed32(index);
  4033. }
  4034. public Builder SetRepeatedSfixed32(int index, int value) {
  4035. result.repeatedSfixed32_[index] = value;
  4036. return this;
  4037. }
  4038. public Builder AddRepeatedSfixed32(int value) {
  4039. result.repeatedSfixed32_.Add(value);
  4040. return this;
  4041. }
  4042. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4043. base.AddRange(values, result.repeatedSfixed32_);
  4044. return this;
  4045. }
  4046. public Builder ClearRepeatedSfixed32() {
  4047. result.repeatedSfixed32_.Clear();
  4048. return this;
  4049. }
  4050. // repeated sfixed64 repeated_sfixed64 = 40;
  4051. public scg::IList<long> RepeatedSfixed64List {
  4052. get { return result.repeatedSfixed64_; }
  4053. }
  4054. public int RepeatedSfixed64Count {
  4055. get { return result.RepeatedSfixed64Count; }
  4056. }
  4057. public long GetRepeatedSfixed64(int index) {
  4058. return result.GetRepeatedSfixed64(index);
  4059. }
  4060. public Builder SetRepeatedSfixed64(int index, long value) {
  4061. result.repeatedSfixed64_[index] = value;
  4062. return this;
  4063. }
  4064. public Builder AddRepeatedSfixed64(long value) {
  4065. result.repeatedSfixed64_.Add(value);
  4066. return this;
  4067. }
  4068. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4069. base.AddRange(values, result.repeatedSfixed64_);
  4070. return this;
  4071. }
  4072. public Builder ClearRepeatedSfixed64() {
  4073. result.repeatedSfixed64_.Clear();
  4074. return this;
  4075. }
  4076. // repeated float repeated_float = 41;
  4077. public scg::IList<float> RepeatedFloatList {
  4078. get { return result.repeatedFloat_; }
  4079. }
  4080. public int RepeatedFloatCount {
  4081. get { return result.RepeatedFloatCount; }
  4082. }
  4083. public float GetRepeatedFloat(int index) {
  4084. return result.GetRepeatedFloat(index);
  4085. }
  4086. public Builder SetRepeatedFloat(int index, float value) {
  4087. result.repeatedFloat_[index] = value;
  4088. return this;
  4089. }
  4090. public Builder AddRepeatedFloat(float value) {
  4091. result.repeatedFloat_.Add(value);
  4092. return this;
  4093. }
  4094. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4095. base.AddRange(values, result.repeatedFloat_);
  4096. return this;
  4097. }
  4098. public Builder ClearRepeatedFloat() {
  4099. result.repeatedFloat_.Clear();
  4100. return this;
  4101. }
  4102. // repeated double repeated_double = 42;
  4103. public scg::IList<double> RepeatedDoubleList {
  4104. get { return result.repeatedDouble_; }
  4105. }
  4106. public int RepeatedDoubleCount {
  4107. get { return result.RepeatedDoubleCount; }
  4108. }
  4109. public double GetRepeatedDouble(int index) {
  4110. return result.GetRepeatedDouble(index);
  4111. }
  4112. public Builder SetRepeatedDouble(int index, double value) {
  4113. result.repeatedDouble_[index] = value;
  4114. return this;
  4115. }
  4116. public Builder AddRepeatedDouble(double value) {
  4117. result.repeatedDouble_.Add(value);
  4118. return this;
  4119. }
  4120. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4121. base.AddRange(values, result.repeatedDouble_);
  4122. return this;
  4123. }
  4124. public Builder ClearRepeatedDouble() {
  4125. result.repeatedDouble_.Clear();
  4126. return this;
  4127. }
  4128. // repeated bool repeated_bool = 43;
  4129. public scg::IList<bool> RepeatedBoolList {
  4130. get { return result.repeatedBool_; }
  4131. }
  4132. public int RepeatedBoolCount {
  4133. get { return result.RepeatedBoolCount; }
  4134. }
  4135. public bool GetRepeatedBool(int index) {
  4136. return result.GetRepeatedBool(index);
  4137. }
  4138. public Builder SetRepeatedBool(int index, bool value) {
  4139. result.repeatedBool_[index] = value;
  4140. return this;
  4141. }
  4142. public Builder AddRepeatedBool(bool value) {
  4143. result.repeatedBool_.Add(value);
  4144. return this;
  4145. }
  4146. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4147. base.AddRange(values, result.repeatedBool_);
  4148. return this;
  4149. }
  4150. public Builder ClearRepeatedBool() {
  4151. result.repeatedBool_.Clear();
  4152. return this;
  4153. }
  4154. // repeated string repeated_string = 44;
  4155. public scg::IList<string> RepeatedStringList {
  4156. get { return result.repeatedString_; }
  4157. }
  4158. public int RepeatedStringCount {
  4159. get { return result.RepeatedStringCount; }
  4160. }
  4161. public string GetRepeatedString(int index) {
  4162. return result.GetRepeatedString(index);
  4163. }
  4164. public Builder SetRepeatedString(int index, string value) {
  4165. result.repeatedString_[index] = value;
  4166. return this;
  4167. }
  4168. public Builder AddRepeatedString(string value) {
  4169. result.repeatedString_.Add(value);
  4170. return this;
  4171. }
  4172. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4173. base.AddRange(values, result.repeatedString_);
  4174. return this;
  4175. }
  4176. public Builder ClearRepeatedString() {
  4177. result.repeatedString_.Clear();
  4178. return this;
  4179. }
  4180. // repeated bytes repeated_bytes = 45;
  4181. public scg::IList<pb::ByteString> RepeatedBytesList {
  4182. get { return result.repeatedBytes_; }
  4183. }
  4184. public int RepeatedBytesCount {
  4185. get { return result.RepeatedBytesCount; }
  4186. }
  4187. public pb::ByteString GetRepeatedBytes(int index) {
  4188. return result.GetRepeatedBytes(index);
  4189. }
  4190. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4191. result.repeatedBytes_[index] = value;
  4192. return this;
  4193. }
  4194. public Builder AddRepeatedBytes(pb::ByteString value) {
  4195. result.repeatedBytes_.Add(value);
  4196. return this;
  4197. }
  4198. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4199. base.AddRange(values, result.repeatedBytes_);
  4200. return this;
  4201. }
  4202. public Builder ClearRepeatedBytes() {
  4203. result.repeatedBytes_.Clear();
  4204. return this;
  4205. }
  4206. // repeated group RepeatedGroup = 46 {
  4207. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4208. get { return result.repeatedGroup_; }
  4209. }
  4210. public int RepeatedGroupCount {
  4211. get { return result.RepeatedGroupCount; }
  4212. }
  4213. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4214. return result.GetRepeatedGroup(index);
  4215. }
  4216. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4217. result.repeatedGroup_[index] = value;
  4218. return this;
  4219. }
  4220. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4221. result.repeatedGroup_[index] = builderForValue.Build();
  4222. return this;
  4223. }
  4224. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4225. result.repeatedGroup_.Add(value);
  4226. return this;
  4227. }
  4228. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4229. result.repeatedGroup_.Add(builderForValue.Build());
  4230. return this;
  4231. }
  4232. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
  4233. base.AddRange(values, result.repeatedGroup_);
  4234. return this;
  4235. }
  4236. public Builder ClearRepeatedGroup() {
  4237. result.repeatedGroup_.Clear();
  4238. return this;
  4239. }
  4240. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4241. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4242. get { return result.repeatedNestedMessage_; }
  4243. }
  4244. public int RepeatedNestedMessageCount {
  4245. get { return result.RepeatedNestedMessageCount; }
  4246. }
  4247. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4248. return result.GetRepeatedNestedMessage(index);
  4249. }
  4250. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4251. result.repeatedNestedMessage_[index] = value;
  4252. return this;
  4253. }
  4254. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4255. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4256. return this;
  4257. }
  4258. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4259. result.repeatedNestedMessage_.Add(value);
  4260. return this;
  4261. }
  4262. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4263. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4264. return this;
  4265. }
  4266. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  4267. base.AddRange(values, result.repeatedNestedMessage_);
  4268. return this;
  4269. }
  4270. public Builder ClearRepeatedNestedMessage() {
  4271. result.repeatedNestedMessage_.Clear();
  4272. return this;
  4273. }
  4274. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4275. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  4276. get { return result.repeatedForeignMessage_; }
  4277. }
  4278. public int RepeatedForeignMessageCount {
  4279. get { return result.RepeatedForeignMessageCount; }
  4280. }
  4281. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  4282. return result.GetRepeatedForeignMessage(index);
  4283. }
  4284. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4285. result.repeatedForeignMessage_[index] = value;
  4286. return this;
  4287. }
  4288. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4289. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4290. return this;
  4291. }
  4292. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4293. result.repeatedForeignMessage_.Add(value);
  4294. return this;
  4295. }
  4296. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4297. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4298. return this;
  4299. }
  4300. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  4301. base.AddRange(values, result.repeatedForeignMessage_);
  4302. return this;
  4303. }
  4304. public Builder ClearRepeatedForeignMessage() {
  4305. result.repeatedForeignMessage_.Clear();
  4306. return this;
  4307. }
  4308. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4309. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  4310. get { return result.repeatedImportMessage_; }
  4311. }
  4312. public int RepeatedImportMessageCount {
  4313. get { return result.RepeatedImportMessageCount; }
  4314. }
  4315. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  4316. return result.GetRepeatedImportMessage(index);
  4317. }
  4318. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4319. result.repeatedImportMessage_[index] = value;
  4320. return this;
  4321. }
  4322. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4323. result.repeatedImportMessage_[index] = builderForValue.Build();
  4324. return this;
  4325. }
  4326. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4327. result.repeatedImportMessage_.Add(value);
  4328. return this;
  4329. }
  4330. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4331. result.repeatedImportMessage_.Add(builderForValue.Build());
  4332. return this;
  4333. }
  4334. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
  4335. base.AddRange(values, result.repeatedImportMessage_);
  4336. return this;
  4337. }
  4338. public Builder ClearRepeatedImportMessage() {
  4339. result.repeatedImportMessage_.Clear();
  4340. return this;
  4341. }
  4342. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4343. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4344. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4345. }
  4346. public int RepeatedNestedEnumCount {
  4347. get { return result.RepeatedNestedEnumCount; }
  4348. }
  4349. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4350. return result.GetRepeatedNestedEnum(index);
  4351. }
  4352. public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4353. result.repeatedNestedEnum_[index] = value;
  4354. return this;
  4355. }
  4356. public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4357. if (result.repeatedNestedEnum_.Count == 0) {
  4358. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4359. }
  4360. result.repeatedNestedEnum_.Add(value);
  4361. return this;
  4362. }
  4363. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
  4364. if (result.repeatedNestedEnum_.Count == 0) {
  4365. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4366. }
  4367. base.AddRange(values, result.repeatedNestedEnum_);
  4368. return this;
  4369. }
  4370. public Builder ClearRepeatedNestedEnum() {
  4371. result.repeatedNestedEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.Empty;
  4372. return this;
  4373. }
  4374. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4375. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  4376. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4377. }
  4378. public int RepeatedForeignEnumCount {
  4379. get { return result.RepeatedForeignEnumCount; }
  4380. }
  4381. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  4382. return result.GetRepeatedForeignEnum(index);
  4383. }
  4384. public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4385. result.repeatedForeignEnum_[index] = value;
  4386. return this;
  4387. }
  4388. public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4389. if (result.repeatedForeignEnum_.Count == 0) {
  4390. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4391. }
  4392. result.repeatedForeignEnum_.Add(value);
  4393. return this;
  4394. }
  4395. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  4396. if (result.repeatedForeignEnum_.Count == 0) {
  4397. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4398. }
  4399. base.AddRange(values, result.repeatedForeignEnum_);
  4400. return this;
  4401. }
  4402. public Builder ClearRepeatedForeignEnum() {
  4403. result.repeatedForeignEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  4404. return this;
  4405. }
  4406. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4407. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  4408. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4409. }
  4410. public int RepeatedImportEnumCount {
  4411. get { return result.RepeatedImportEnumCount; }
  4412. }
  4413. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  4414. return result.GetRepeatedImportEnum(index);
  4415. }
  4416. public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4417. result.repeatedImportEnum_[index] = value;
  4418. return this;
  4419. }
  4420. public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4421. if (result.repeatedImportEnum_.Count == 0) {
  4422. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4423. }
  4424. result.repeatedImportEnum_.Add(value);
  4425. return this;
  4426. }
  4427. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
  4428. if (result.repeatedImportEnum_.Count == 0) {
  4429. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4430. }
  4431. base.AddRange(values, result.repeatedImportEnum_);
  4432. return this;
  4433. }
  4434. public Builder ClearRepeatedImportEnum() {
  4435. result.repeatedImportEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.Empty;
  4436. return this;
  4437. }
  4438. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4439. public scg::IList<string> RepeatedStringPieceList {
  4440. get { return result.repeatedStringPiece_; }
  4441. }
  4442. public int RepeatedStringPieceCount {
  4443. get { return result.RepeatedStringPieceCount; }
  4444. }
  4445. public string GetRepeatedStringPiece(int index) {
  4446. return result.GetRepeatedStringPiece(index);
  4447. }
  4448. public Builder SetRepeatedStringPiece(int index, string value) {
  4449. result.repeatedStringPiece_[index] = value;
  4450. return this;
  4451. }
  4452. public Builder AddRepeatedStringPiece(string value) {
  4453. result.repeatedStringPiece_.Add(value);
  4454. return this;
  4455. }
  4456. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4457. base.AddRange(values, result.repeatedStringPiece_);
  4458. return this;
  4459. }
  4460. public Builder ClearRepeatedStringPiece() {
  4461. result.repeatedStringPiece_.Clear();
  4462. return this;
  4463. }
  4464. // repeated string repeated_cord = 55 [ctype = CORD];
  4465. public scg::IList<string> RepeatedCordList {
  4466. get { return result.repeatedCord_; }
  4467. }
  4468. public int RepeatedCordCount {
  4469. get { return result.RepeatedCordCount; }
  4470. }
  4471. public string GetRepeatedCord(int index) {
  4472. return result.GetRepeatedCord(index);
  4473. }
  4474. public Builder SetRepeatedCord(int index, string value) {
  4475. result.repeatedCord_[index] = value;
  4476. return this;
  4477. }
  4478. public Builder AddRepeatedCord(string value) {
  4479. result.repeatedCord_.Add(value);
  4480. return this;
  4481. }
  4482. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4483. base.AddRange(values, result.repeatedCord_);
  4484. return this;
  4485. }
  4486. public Builder ClearRepeatedCord() {
  4487. result.repeatedCord_.Clear();
  4488. return this;
  4489. }
  4490. // optional int32 default_int32 = 61 [default = 41];
  4491. public bool HasDefaultInt32 {
  4492. get { return result.HasDefaultInt32; }
  4493. }
  4494. public int DefaultInt32 {
  4495. get { return result.DefaultInt32; }
  4496. set { SetDefaultInt32(value); }
  4497. }
  4498. public Builder SetDefaultInt32(int value) {
  4499. result.hasDefaultInt32 = true;
  4500. result.defaultInt32_ = value;
  4501. return this;
  4502. }
  4503. public Builder ClearDefaultInt32() {
  4504. result.hasDefaultInt32 = false;
  4505. result.defaultInt32_ = 41;
  4506. return this;
  4507. }
  4508. // optional int64 default_int64 = 62 [default = 42];
  4509. public bool HasDefaultInt64 {
  4510. get { return result.HasDefaultInt64; }
  4511. }
  4512. public long DefaultInt64 {
  4513. get { return result.DefaultInt64; }
  4514. set { SetDefaultInt64(value); }
  4515. }
  4516. public Builder SetDefaultInt64(long value) {
  4517. result.hasDefaultInt64 = true;
  4518. result.defaultInt64_ = value;
  4519. return this;
  4520. }
  4521. public Builder ClearDefaultInt64() {
  4522. result.hasDefaultInt64 = false;
  4523. result.defaultInt64_ = 42L;
  4524. return this;
  4525. }
  4526. // optional uint32 default_uint32 = 63 [default = 43];
  4527. public bool HasDefaultUint32 {
  4528. get { return result.HasDefaultUint32; }
  4529. }
  4530. public uint DefaultUint32 {
  4531. get { return result.DefaultUint32; }
  4532. set { SetDefaultUint32(value); }
  4533. }
  4534. public Builder SetDefaultUint32(uint value) {
  4535. result.hasDefaultUint32 = true;
  4536. result.defaultUint32_ = value;
  4537. return this;
  4538. }
  4539. public Builder ClearDefaultUint32() {
  4540. result.hasDefaultUint32 = false;
  4541. result.defaultUint32_ = 43;
  4542. return this;
  4543. }
  4544. // optional uint64 default_uint64 = 64 [default = 44];
  4545. public bool HasDefaultUint64 {
  4546. get { return result.HasDefaultUint64; }
  4547. }
  4548. public ulong DefaultUint64 {
  4549. get { return result.DefaultUint64; }
  4550. set { SetDefaultUint64(value); }
  4551. }
  4552. public Builder SetDefaultUint64(ulong value) {
  4553. result.hasDefaultUint64 = true;
  4554. result.defaultUint64_ = value;
  4555. return this;
  4556. }
  4557. public Builder ClearDefaultUint64() {
  4558. result.hasDefaultUint64 = false;
  4559. result.defaultUint64_ = 44UL;
  4560. return this;
  4561. }
  4562. // optional sint32 default_sint32 = 65 [default = -45];
  4563. public bool HasDefaultSint32 {
  4564. get { return result.HasDefaultSint32; }
  4565. }
  4566. public int DefaultSint32 {
  4567. get { return result.DefaultSint32; }
  4568. set { SetDefaultSint32(value); }
  4569. }
  4570. public Builder SetDefaultSint32(int value) {
  4571. result.hasDefaultSint32 = true;
  4572. result.defaultSint32_ = value;
  4573. return this;
  4574. }
  4575. public Builder ClearDefaultSint32() {
  4576. result.hasDefaultSint32 = false;
  4577. result.defaultSint32_ = -45;
  4578. return this;
  4579. }
  4580. // optional sint64 default_sint64 = 66 [default = 46];
  4581. public bool HasDefaultSint64 {
  4582. get { return result.HasDefaultSint64; }
  4583. }
  4584. public long DefaultSint64 {
  4585. get { return result.DefaultSint64; }
  4586. set { SetDefaultSint64(value); }
  4587. }
  4588. public Builder SetDefaultSint64(long value) {
  4589. result.hasDefaultSint64 = true;
  4590. result.defaultSint64_ = value;
  4591. return this;
  4592. }
  4593. public Builder ClearDefaultSint64() {
  4594. result.hasDefaultSint64 = false;
  4595. result.defaultSint64_ = 46L;
  4596. return this;
  4597. }
  4598. // optional fixed32 default_fixed32 = 67 [default = 47];
  4599. public bool HasDefaultFixed32 {
  4600. get { return result.HasDefaultFixed32; }
  4601. }
  4602. public uint DefaultFixed32 {
  4603. get { return result.DefaultFixed32; }
  4604. set { SetDefaultFixed32(value); }
  4605. }
  4606. public Builder SetDefaultFixed32(uint value) {
  4607. result.hasDefaultFixed32 = true;
  4608. result.defaultFixed32_ = value;
  4609. return this;
  4610. }
  4611. public Builder ClearDefaultFixed32() {
  4612. result.hasDefaultFixed32 = false;
  4613. result.defaultFixed32_ = 47;
  4614. return this;
  4615. }
  4616. // optional fixed64 default_fixed64 = 68 [default = 48];
  4617. public bool HasDefaultFixed64 {
  4618. get { return result.HasDefaultFixed64; }
  4619. }
  4620. public ulong DefaultFixed64 {
  4621. get { return result.DefaultFixed64; }
  4622. set { SetDefaultFixed64(value); }
  4623. }
  4624. public Builder SetDefaultFixed64(ulong value) {
  4625. result.hasDefaultFixed64 = true;
  4626. result.defaultFixed64_ = value;
  4627. return this;
  4628. }
  4629. public Builder ClearDefaultFixed64() {
  4630. result.hasDefaultFixed64 = false;
  4631. result.defaultFixed64_ = 48UL;
  4632. return this;
  4633. }
  4634. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4635. public bool HasDefaultSfixed32 {
  4636. get { return result.HasDefaultSfixed32; }
  4637. }
  4638. public int DefaultSfixed32 {
  4639. get { return result.DefaultSfixed32; }
  4640. set { SetDefaultSfixed32(value); }
  4641. }
  4642. public Builder SetDefaultSfixed32(int value) {
  4643. result.hasDefaultSfixed32 = true;
  4644. result.defaultSfixed32_ = value;
  4645. return this;
  4646. }
  4647. public Builder ClearDefaultSfixed32() {
  4648. result.hasDefaultSfixed32 = false;
  4649. result.defaultSfixed32_ = 49;
  4650. return this;
  4651. }
  4652. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4653. public bool HasDefaultSfixed64 {
  4654. get { return result.HasDefaultSfixed64; }
  4655. }
  4656. public long DefaultSfixed64 {
  4657. get { return result.DefaultSfixed64; }
  4658. set { SetDefaultSfixed64(value); }
  4659. }
  4660. public Builder SetDefaultSfixed64(long value) {
  4661. result.hasDefaultSfixed64 = true;
  4662. result.defaultSfixed64_ = value;
  4663. return this;
  4664. }
  4665. public Builder ClearDefaultSfixed64() {
  4666. result.hasDefaultSfixed64 = false;
  4667. result.defaultSfixed64_ = -50L;
  4668. return this;
  4669. }
  4670. // optional float default_float = 71 [default = 51.5];
  4671. public bool HasDefaultFloat {
  4672. get { return result.HasDefaultFloat; }
  4673. }
  4674. public float DefaultFloat {
  4675. get { return result.DefaultFloat; }
  4676. set { SetDefaultFloat(value); }
  4677. }
  4678. public Builder SetDefaultFloat(float value) {
  4679. result.hasDefaultFloat = true;
  4680. result.defaultFloat_ = value;
  4681. return this;
  4682. }
  4683. public Builder ClearDefaultFloat() {
  4684. result.hasDefaultFloat = false;
  4685. result.defaultFloat_ = 51.5F;
  4686. return this;
  4687. }
  4688. // optional double default_double = 72 [default = 52000];
  4689. public bool HasDefaultDouble {
  4690. get { return result.HasDefaultDouble; }
  4691. }
  4692. public double DefaultDouble {
  4693. get { return result.DefaultDouble; }
  4694. set { SetDefaultDouble(value); }
  4695. }
  4696. public Builder SetDefaultDouble(double value) {
  4697. result.hasDefaultDouble = true;
  4698. result.defaultDouble_ = value;
  4699. return this;
  4700. }
  4701. public Builder ClearDefaultDouble() {
  4702. result.hasDefaultDouble = false;
  4703. result.defaultDouble_ = 52000D;
  4704. return this;
  4705. }
  4706. // optional bool default_bool = 73 [default = true];
  4707. public bool HasDefaultBool {
  4708. get { return result.HasDefaultBool; }
  4709. }
  4710. public bool DefaultBool {
  4711. get { return result.DefaultBool; }
  4712. set { SetDefaultBool(value); }
  4713. }
  4714. public Builder SetDefaultBool(bool value) {
  4715. result.hasDefaultBool = true;
  4716. result.defaultBool_ = value;
  4717. return this;
  4718. }
  4719. public Builder ClearDefaultBool() {
  4720. result.hasDefaultBool = false;
  4721. result.defaultBool_ = true;
  4722. return this;
  4723. }
  4724. // optional string default_string = 74 [default = "hello"];
  4725. public bool HasDefaultString {
  4726. get { return result.HasDefaultString; }
  4727. }
  4728. public string DefaultString {
  4729. get { return result.DefaultString; }
  4730. set { SetDefaultString(value); }
  4731. }
  4732. public Builder SetDefaultString(string value) {
  4733. result.hasDefaultString = true;
  4734. result.defaultString_ = value;
  4735. return this;
  4736. }
  4737. public Builder ClearDefaultString() {
  4738. result.hasDefaultString = false;
  4739. result.defaultString_ = "hello";
  4740. return this;
  4741. }
  4742. // optional bytes default_bytes = 75 [default = "world"];
  4743. public bool HasDefaultBytes {
  4744. get { return result.HasDefaultBytes; }
  4745. }
  4746. public pb::ByteString DefaultBytes {
  4747. get { return result.DefaultBytes; }
  4748. set { SetDefaultBytes(value); }
  4749. }
  4750. public Builder SetDefaultBytes(pb::ByteString value) {
  4751. result.hasDefaultBytes = true;
  4752. result.defaultBytes_ = value;
  4753. return this;
  4754. }
  4755. public Builder ClearDefaultBytes() {
  4756. result.hasDefaultBytes = false;
  4757. result.defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  4758. return this;
  4759. }
  4760. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  4761. public bool HasDefaultNestedEnum {
  4762. get { return result.HasDefaultNestedEnum; }
  4763. }
  4764. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  4765. get { return result.DefaultNestedEnum; }
  4766. set { SetDefaultNestedEnum(value); }
  4767. }
  4768. public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4769. result.hasDefaultNestedEnum = true;
  4770. result.defaultNestedEnum_ = value;
  4771. return this;
  4772. }
  4773. public Builder ClearDefaultNestedEnum() {
  4774. result.hasDefaultNestedEnum = false;
  4775. result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  4776. return this;
  4777. }
  4778. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  4779. public bool HasDefaultForeignEnum {
  4780. get { return result.HasDefaultForeignEnum; }
  4781. }
  4782. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  4783. get { return result.DefaultForeignEnum; }
  4784. set { SetDefaultForeignEnum(value); }
  4785. }
  4786. public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4787. result.hasDefaultForeignEnum = true;
  4788. result.defaultForeignEnum_ = value;
  4789. return this;
  4790. }
  4791. public Builder ClearDefaultForeignEnum() {
  4792. result.hasDefaultForeignEnum = false;
  4793. result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  4794. return this;
  4795. }
  4796. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  4797. public bool HasDefaultImportEnum {
  4798. get { return result.HasDefaultImportEnum; }
  4799. }
  4800. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  4801. get { return result.DefaultImportEnum; }
  4802. set { SetDefaultImportEnum(value); }
  4803. }
  4804. public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4805. result.hasDefaultImportEnum = true;
  4806. result.defaultImportEnum_ = value;
  4807. return this;
  4808. }
  4809. public Builder ClearDefaultImportEnum() {
  4810. result.hasDefaultImportEnum = false;
  4811. result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  4812. return this;
  4813. }
  4814. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  4815. public bool HasDefaultStringPiece {
  4816. get { return result.HasDefaultStringPiece; }
  4817. }
  4818. public string DefaultStringPiece {
  4819. get { return result.DefaultStringPiece; }
  4820. set { SetDefaultStringPiece(value); }
  4821. }
  4822. public Builder SetDefaultStringPiece(string value) {
  4823. result.hasDefaultStringPiece = true;
  4824. result.defaultStringPiece_ = value;
  4825. return this;
  4826. }
  4827. public Builder ClearDefaultStringPiece() {
  4828. result.hasDefaultStringPiece = false;
  4829. result.defaultStringPiece_ = "abc";
  4830. return this;
  4831. }
  4832. // optional string default_cord = 85 [default = "123", ctype = CORD];
  4833. public bool HasDefaultCord {
  4834. get { return result.HasDefaultCord; }
  4835. }
  4836. public string DefaultCord {
  4837. get { return result.DefaultCord; }
  4838. set { SetDefaultCord(value); }
  4839. }
  4840. public Builder SetDefaultCord(string value) {
  4841. result.hasDefaultCord = true;
  4842. result.defaultCord_ = value;
  4843. return this;
  4844. }
  4845. public Builder ClearDefaultCord() {
  4846. result.hasDefaultCord = false;
  4847. result.defaultCord_ = "123";
  4848. return this;
  4849. }
  4850. }
  4851. }
  4852. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  4853. private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial();
  4854. public static ForeignMessage DefaultInstance {
  4855. get { return defaultInstance; }
  4856. }
  4857. public override ForeignMessage DefaultInstanceForType {
  4858. get { return defaultInstance; }
  4859. }
  4860. protected override ForeignMessage ThisMessage {
  4861. get { return this; }
  4862. }
  4863. public static pbd::MessageDescriptor Descriptor {
  4864. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  4865. }
  4866. protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
  4867. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  4868. }
  4869. // optional int32 c = 1;
  4870. private bool hasC;
  4871. private int c_ = 0;
  4872. public bool HasC {
  4873. get { return hasC; }
  4874. }
  4875. public int C {
  4876. get { return c_; }
  4877. }
  4878. public override bool IsInitialized {
  4879. get {
  4880. return true;
  4881. }
  4882. }
  4883. public override void WriteTo(pb::CodedOutputStream output) {
  4884. if (HasC) {
  4885. output.WriteInt32(1, C);
  4886. }
  4887. UnknownFields.WriteTo(output);
  4888. }
  4889. private int memoizedSerializedSize = -1;
  4890. public override int SerializedSize {
  4891. get {
  4892. int size = memoizedSerializedSize;
  4893. if (size != -1) return size;
  4894. size = 0;
  4895. if (HasC) {
  4896. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  4897. }
  4898. size += UnknownFields.SerializedSize;
  4899. memoizedSerializedSize = size;
  4900. return size;
  4901. }
  4902. }
  4903. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data) {
  4904. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4905. }
  4906. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data,
  4907. pb::ExtensionRegistry extensionRegistry) {
  4908. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4909. .BuildParsed();
  4910. }
  4911. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data) {
  4912. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4913. }
  4914. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data,
  4915. pb::ExtensionRegistry extensionRegistry) {
  4916. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4917. .BuildParsed();
  4918. }
  4919. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(global::System.IO.Stream input) {
  4920. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4921. }
  4922. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(
  4923. global::System.IO.Stream input,
  4924. pb::ExtensionRegistry extensionRegistry) {
  4925. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4926. .BuildParsed();
  4927. }
  4928. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input) {
  4929. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4930. }
  4931. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input,
  4932. pb::ExtensionRegistry extensionRegistry) {
  4933. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4934. .BuildParsed();
  4935. }
  4936. public static Builder CreateBuilder() { return new Builder(); }
  4937. public override Builder CreateBuilderForType() { return new Builder(); }
  4938. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.ForeignMessage prototype) {
  4939. return (Builder) new Builder().MergeFrom(prototype);
  4940. }
  4941. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, Builder> {
  4942. protected override Builder ThisBuilder {
  4943. get { return this; }
  4944. }
  4945. // Construct using global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder()
  4946. public Builder() {}
  4947. global::Google.ProtocolBuffers.TestProtos.ForeignMessage result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  4948. protected override global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageBeingBuilt {
  4949. get { return result; }
  4950. }
  4951. public override Builder Clear() {
  4952. result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  4953. return this;
  4954. }
  4955. public override Builder Clone() {
  4956. return new Builder().MergeFrom(result);
  4957. }
  4958. public override pbd::MessageDescriptor DescriptorForType {
  4959. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
  4960. }
  4961. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage DefaultInstanceForType {
  4962. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  4963. }
  4964. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage BuildPartial() {
  4965. global::Google.ProtocolBuffers.TestProtos.ForeignMessage returnMe = result;
  4966. result = null;
  4967. return returnMe;
  4968. }
  4969. public override Builder MergeFrom(pb::IMessage other) {
  4970. if (other is global::Google.ProtocolBuffers.TestProtos.ForeignMessage) {
  4971. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.ForeignMessage) other);
  4972. } else {
  4973. base.MergeFrom(other);
  4974. return this;
  4975. }
  4976. }
  4977. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.ForeignMessage other) {
  4978. if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
  4979. if (other.HasC) {
  4980. C = other.C;
  4981. }
  4982. this.MergeUnknownFields(other.UnknownFields);
  4983. return this;
  4984. }
  4985. public override Builder MergeFrom(pb::CodedInputStream input) {
  4986. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4987. }
  4988. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4989. pb::UnknownFieldSet.Builder unknownFields =
  4990. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4991. while (true) {
  4992. uint tag = input.ReadTag();
  4993. switch (tag) {
  4994. case 0:
  4995. this.UnknownFields = unknownFields.Build();
  4996. return this;
  4997. default: {
  4998. if (!ParseUnknownField(input, unknownFields,
  4999. extensionRegistry, tag)) {
  5000. this.UnknownFields = unknownFields.Build();
  5001. return this;
  5002. }
  5003. break;
  5004. }
  5005. case 8: {
  5006. C = input.ReadInt32();
  5007. break;
  5008. }
  5009. }
  5010. }
  5011. }
  5012. // optional int32 c = 1;
  5013. public bool HasC {
  5014. get { return result.HasC; }
  5015. }
  5016. public int C {
  5017. get { return result.C; }
  5018. set { SetC(value); }
  5019. }
  5020. public Builder SetC(int value) {
  5021. result.hasC = true;
  5022. result.c_ = value;
  5023. return this;
  5024. }
  5025. public Builder ClearC() {
  5026. result.hasC = false;
  5027. result.c_ = 0;
  5028. return this;
  5029. }
  5030. }
  5031. }
  5032. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5033. private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial();
  5034. public static TestAllExtensions DefaultInstance {
  5035. get { return defaultInstance; }
  5036. }
  5037. public override TestAllExtensions DefaultInstanceForType {
  5038. get { return defaultInstance; }
  5039. }
  5040. protected override TestAllExtensions ThisMessage {
  5041. get { return this; }
  5042. }
  5043. public static pbd::MessageDescriptor Descriptor {
  5044. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5045. }
  5046. protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
  5047. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5048. }
  5049. public override bool IsInitialized {
  5050. get {
  5051. if (!ExtensionsAreInitialized) return false;
  5052. return true;
  5053. }
  5054. }
  5055. public override void WriteTo(pb::CodedOutputStream output) {
  5056. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5057. extensionWriter.WriteUntil(536870912, output);
  5058. UnknownFields.WriteTo(output);
  5059. }
  5060. private int memoizedSerializedSize = -1;
  5061. public override int SerializedSize {
  5062. get {
  5063. int size = memoizedSerializedSize;
  5064. if (size != -1) return size;
  5065. size = 0;
  5066. size += ExtensionsSerializedSize;
  5067. size += UnknownFields.SerializedSize;
  5068. memoizedSerializedSize = size;
  5069. return size;
  5070. }
  5071. }
  5072. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data) {
  5073. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5074. }
  5075. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data,
  5076. pb::ExtensionRegistry extensionRegistry) {
  5077. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5078. .BuildParsed();
  5079. }
  5080. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data) {
  5081. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5082. }
  5083. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data,
  5084. pb::ExtensionRegistry extensionRegistry) {
  5085. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5086. .BuildParsed();
  5087. }
  5088. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5089. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5090. }
  5091. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(
  5092. global::System.IO.Stream input,
  5093. pb::ExtensionRegistry extensionRegistry) {
  5094. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5095. .BuildParsed();
  5096. }
  5097. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5098. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5099. }
  5100. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5101. pb::ExtensionRegistry extensionRegistry) {
  5102. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5103. .BuildParsed();
  5104. }
  5105. public static Builder CreateBuilder() { return new Builder(); }
  5106. public override Builder CreateBuilderForType() { return new Builder(); }
  5107. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions prototype) {
  5108. return (Builder) new Builder().MergeFrom(prototype);
  5109. }
  5110. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> {
  5111. protected override Builder ThisBuilder {
  5112. get { return this; }
  5113. }
  5114. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.CreateBuilder()
  5115. public Builder() {}
  5116. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5117. protected override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions MessageBeingBuilt {
  5118. get { return result; }
  5119. }
  5120. public override Builder Clear() {
  5121. result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5122. return this;
  5123. }
  5124. public override Builder Clone() {
  5125. return new Builder().MergeFrom(result);
  5126. }
  5127. public override pbd::MessageDescriptor DescriptorForType {
  5128. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
  5129. }
  5130. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions DefaultInstanceForType {
  5131. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
  5132. }
  5133. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions BuildPartial() {
  5134. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions returnMe = result;
  5135. result = null;
  5136. return returnMe;
  5137. }
  5138. public override Builder MergeFrom(pb::IMessage other) {
  5139. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) {
  5140. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) other);
  5141. } else {
  5142. base.MergeFrom(other);
  5143. return this;
  5144. }
  5145. }
  5146. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions other) {
  5147. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
  5148. this.MergeUnknownFields(other.UnknownFields);
  5149. return this;
  5150. }
  5151. public override Builder MergeFrom(pb::CodedInputStream input) {
  5152. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5153. }
  5154. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5155. pb::UnknownFieldSet.Builder unknownFields =
  5156. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5157. while (true) {
  5158. uint tag = input.ReadTag();
  5159. switch (tag) {
  5160. case 0:
  5161. this.UnknownFields = unknownFields.Build();
  5162. return this;
  5163. default: {
  5164. if (!ParseUnknownField(input, unknownFields,
  5165. extensionRegistry, tag)) {
  5166. this.UnknownFields = unknownFields.Build();
  5167. return this;
  5168. }
  5169. break;
  5170. }
  5171. }
  5172. }
  5173. }
  5174. }
  5175. }
  5176. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5177. private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial();
  5178. public static OptionalGroup_extension DefaultInstance {
  5179. get { return defaultInstance; }
  5180. }
  5181. public override OptionalGroup_extension DefaultInstanceForType {
  5182. get { return defaultInstance; }
  5183. }
  5184. protected override OptionalGroup_extension ThisMessage {
  5185. get { return this; }
  5186. }
  5187. public static pbd::MessageDescriptor Descriptor {
  5188. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5189. }
  5190. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
  5191. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5192. }
  5193. // optional int32 a = 17;
  5194. private bool hasA;
  5195. private int a_ = 0;
  5196. public bool HasA {
  5197. get { return hasA; }
  5198. }
  5199. public int A {
  5200. get { return a_; }
  5201. }
  5202. public override bool IsInitialized {
  5203. get {
  5204. return true;
  5205. }
  5206. }
  5207. public override void WriteTo(pb::CodedOutputStream output) {
  5208. if (HasA) {
  5209. output.WriteInt32(17, A);
  5210. }
  5211. UnknownFields.WriteTo(output);
  5212. }
  5213. private int memoizedSerializedSize = -1;
  5214. public override int SerializedSize {
  5215. get {
  5216. int size = memoizedSerializedSize;
  5217. if (size != -1) return size;
  5218. size = 0;
  5219. if (HasA) {
  5220. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5221. }
  5222. size += UnknownFields.SerializedSize;
  5223. memoizedSerializedSize = size;
  5224. return size;
  5225. }
  5226. }
  5227. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5228. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5229. }
  5230. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data,
  5231. pb::ExtensionRegistry extensionRegistry) {
  5232. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5233. .BuildParsed();
  5234. }
  5235. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data) {
  5236. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5237. }
  5238. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data,
  5239. pb::ExtensionRegistry extensionRegistry) {
  5240. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5241. .BuildParsed();
  5242. }
  5243. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5244. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5245. }
  5246. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(
  5247. global::System.IO.Stream input,
  5248. pb::ExtensionRegistry extensionRegistry) {
  5249. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5250. .BuildParsed();
  5251. }
  5252. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5253. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5254. }
  5255. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5256. pb::ExtensionRegistry extensionRegistry) {
  5257. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5258. .BuildParsed();
  5259. }
  5260. public static Builder CreateBuilder() { return new Builder(); }
  5261. public override Builder CreateBuilderForType() { return new Builder(); }
  5262. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension prototype) {
  5263. return (Builder) new Builder().MergeFrom(prototype);
  5264. }
  5265. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, Builder> {
  5266. protected override Builder ThisBuilder {
  5267. get { return this; }
  5268. }
  5269. // Construct using global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.CreateBuilder()
  5270. public Builder() {}
  5271. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5272. protected override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension MessageBeingBuilt {
  5273. get { return result; }
  5274. }
  5275. public override Builder Clear() {
  5276. result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5277. return this;
  5278. }
  5279. public override Builder Clone() {
  5280. return new Builder().MergeFrom(result);
  5281. }
  5282. public override pbd::MessageDescriptor DescriptorForType {
  5283. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
  5284. }
  5285. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension DefaultInstanceForType {
  5286. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
  5287. }
  5288. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension BuildPartial() {
  5289. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension returnMe = result;
  5290. result = null;
  5291. return returnMe;
  5292. }
  5293. public override Builder MergeFrom(pb::IMessage other) {
  5294. if (other is global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) {
  5295. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) other);
  5296. } else {
  5297. base.MergeFrom(other);
  5298. return this;
  5299. }
  5300. }
  5301. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension other) {
  5302. if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
  5303. if (other.HasA) {
  5304. A = other.A;
  5305. }
  5306. this.MergeUnknownFields(other.UnknownFields);
  5307. return this;
  5308. }
  5309. public override Builder MergeFrom(pb::CodedInputStream input) {
  5310. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5311. }
  5312. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5313. pb::UnknownFieldSet.Builder unknownFields =
  5314. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5315. while (true) {
  5316. uint tag = input.ReadTag();
  5317. switch (tag) {
  5318. case 0:
  5319. this.UnknownFields = unknownFields.Build();
  5320. return this;
  5321. default: {
  5322. if (!ParseUnknownField(input, unknownFields,
  5323. extensionRegistry, tag)) {
  5324. this.UnknownFields = unknownFields.Build();
  5325. return this;
  5326. }
  5327. break;
  5328. }
  5329. case 136: {
  5330. A = input.ReadInt32();
  5331. break;
  5332. }
  5333. }
  5334. }
  5335. }
  5336. // optional int32 a = 17;
  5337. public bool HasA {
  5338. get { return result.HasA; }
  5339. }
  5340. public int A {
  5341. get { return result.A; }
  5342. set { SetA(value); }
  5343. }
  5344. public Builder SetA(int value) {
  5345. result.hasA = true;
  5346. result.a_ = value;
  5347. return this;
  5348. }
  5349. public Builder ClearA() {
  5350. result.hasA = false;
  5351. result.a_ = 0;
  5352. return this;
  5353. }
  5354. }
  5355. }
  5356. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5357. private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial();
  5358. public static RepeatedGroup_extension DefaultInstance {
  5359. get { return defaultInstance; }
  5360. }
  5361. public override RepeatedGroup_extension DefaultInstanceForType {
  5362. get { return defaultInstance; }
  5363. }
  5364. protected override RepeatedGroup_extension ThisMessage {
  5365. get { return this; }
  5366. }
  5367. public static pbd::MessageDescriptor Descriptor {
  5368. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5369. }
  5370. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
  5371. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5372. }
  5373. // optional int32 a = 47;
  5374. private bool hasA;
  5375. private int a_ = 0;
  5376. public bool HasA {
  5377. get { return hasA; }
  5378. }
  5379. public int A {
  5380. get { return a_; }
  5381. }
  5382. public override bool IsInitialized {
  5383. get {
  5384. return true;
  5385. }
  5386. }
  5387. public override void WriteTo(pb::CodedOutputStream output) {
  5388. if (HasA) {
  5389. output.WriteInt32(47, A);
  5390. }
  5391. UnknownFields.WriteTo(output);
  5392. }
  5393. private int memoizedSerializedSize = -1;
  5394. public override int SerializedSize {
  5395. get {
  5396. int size = memoizedSerializedSize;
  5397. if (size != -1) return size;
  5398. size = 0;
  5399. if (HasA) {
  5400. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5401. }
  5402. size += UnknownFields.SerializedSize;
  5403. memoizedSerializedSize = size;
  5404. return size;
  5405. }
  5406. }
  5407. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5408. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5409. }
  5410. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5411. pb::ExtensionRegistry extensionRegistry) {
  5412. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5413. .BuildParsed();
  5414. }
  5415. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data) {
  5416. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5417. }
  5418. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data,
  5419. pb::ExtensionRegistry extensionRegistry) {
  5420. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5421. .BuildParsed();
  5422. }
  5423. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5424. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5425. }
  5426. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(
  5427. global::System.IO.Stream input,
  5428. pb::ExtensionRegistry extensionRegistry) {
  5429. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5430. .BuildParsed();
  5431. }
  5432. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5433. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5434. }
  5435. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5436. pb::ExtensionRegistry extensionRegistry) {
  5437. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5438. .BuildParsed();
  5439. }
  5440. public static Builder CreateBuilder() { return new Builder(); }
  5441. public override Builder CreateBuilderForType() { return new Builder(); }
  5442. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension prototype) {
  5443. return (Builder) new Builder().MergeFrom(prototype);
  5444. }
  5445. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, Builder> {
  5446. protected override Builder ThisBuilder {
  5447. get { return this; }
  5448. }
  5449. // Construct using global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.CreateBuilder()
  5450. public Builder() {}
  5451. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5452. protected override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension MessageBeingBuilt {
  5453. get { return result; }
  5454. }
  5455. public override Builder Clear() {
  5456. result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5457. return this;
  5458. }
  5459. public override Builder Clone() {
  5460. return new Builder().MergeFrom(result);
  5461. }
  5462. public override pbd::MessageDescriptor DescriptorForType {
  5463. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
  5464. }
  5465. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension DefaultInstanceForType {
  5466. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
  5467. }
  5468. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension BuildPartial() {
  5469. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension returnMe = result;
  5470. result = null;
  5471. return returnMe;
  5472. }
  5473. public override Builder MergeFrom(pb::IMessage other) {
  5474. if (other is global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) {
  5475. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) other);
  5476. } else {
  5477. base.MergeFrom(other);
  5478. return this;
  5479. }
  5480. }
  5481. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension other) {
  5482. if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
  5483. if (other.HasA) {
  5484. A = other.A;
  5485. }
  5486. this.MergeUnknownFields(other.UnknownFields);
  5487. return this;
  5488. }
  5489. public override Builder MergeFrom(pb::CodedInputStream input) {
  5490. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5491. }
  5492. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5493. pb::UnknownFieldSet.Builder unknownFields =
  5494. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5495. while (true) {
  5496. uint tag = input.ReadTag();
  5497. switch (tag) {
  5498. case 0:
  5499. this.UnknownFields = unknownFields.Build();
  5500. return this;
  5501. default: {
  5502. if (!ParseUnknownField(input, unknownFields,
  5503. extensionRegistry, tag)) {
  5504. this.UnknownFields = unknownFields.Build();
  5505. return this;
  5506. }
  5507. break;
  5508. }
  5509. case 376: {
  5510. A = input.ReadInt32();
  5511. break;
  5512. }
  5513. }
  5514. }
  5515. }
  5516. // optional int32 a = 47;
  5517. public bool HasA {
  5518. get { return result.HasA; }
  5519. }
  5520. public int A {
  5521. get { return result.A; }
  5522. set { SetA(value); }
  5523. }
  5524. public Builder SetA(int value) {
  5525. result.hasA = true;
  5526. result.a_ = value;
  5527. return this;
  5528. }
  5529. public Builder ClearA() {
  5530. result.hasA = false;
  5531. result.a_ = 0;
  5532. return this;
  5533. }
  5534. }
  5535. }
  5536. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5537. private static readonly TestRequired defaultInstance = new Builder().BuildPartial();
  5538. public static TestRequired DefaultInstance {
  5539. get { return defaultInstance; }
  5540. }
  5541. public override TestRequired DefaultInstanceForType {
  5542. get { return defaultInstance; }
  5543. }
  5544. protected override TestRequired ThisMessage {
  5545. get { return this; }
  5546. }
  5547. public static pbd::MessageDescriptor Descriptor {
  5548. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5549. }
  5550. protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
  5551. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5552. }
  5553. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single =
  5554. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5555. public static readonly
  5556. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi =
  5557. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5558. #region Nested types
  5559. public static class Types {
  5560. }
  5561. #endregion
  5562. // required int32 a = 1;
  5563. private bool hasA;
  5564. private int a_ = 0;
  5565. public bool HasA {
  5566. get { return hasA; }
  5567. }
  5568. public int A {
  5569. get { return a_; }
  5570. }
  5571. // optional int32 dummy2 = 2;
  5572. private bool hasDummy2;
  5573. private int dummy2_ = 0;
  5574. public bool HasDummy2 {
  5575. get { return hasDummy2; }
  5576. }
  5577. public int Dummy2 {
  5578. get { return dummy2_; }
  5579. }
  5580. // required int32 b = 3;
  5581. private bool hasB;
  5582. private int b_ = 0;
  5583. public bool HasB {
  5584. get { return hasB; }
  5585. }
  5586. public int B {
  5587. get { return b_; }
  5588. }
  5589. // optional int32 dummy4 = 4;
  5590. private bool hasDummy4;
  5591. private int dummy4_ = 0;
  5592. public bool HasDummy4 {
  5593. get { return hasDummy4; }
  5594. }
  5595. public int Dummy4 {
  5596. get { return dummy4_; }
  5597. }
  5598. // optional int32 dummy5 = 5;
  5599. private bool hasDummy5;
  5600. private int dummy5_ = 0;
  5601. public bool HasDummy5 {
  5602. get { return hasDummy5; }
  5603. }
  5604. public int Dummy5 {
  5605. get { return dummy5_; }
  5606. }
  5607. // optional int32 dummy6 = 6;
  5608. private bool hasDummy6;
  5609. private int dummy6_ = 0;
  5610. public bool HasDummy6 {
  5611. get { return hasDummy6; }
  5612. }
  5613. public int Dummy6 {
  5614. get { return dummy6_; }
  5615. }
  5616. // optional int32 dummy7 = 7;
  5617. private bool hasDummy7;
  5618. private int dummy7_ = 0;
  5619. public bool HasDummy7 {
  5620. get { return hasDummy7; }
  5621. }
  5622. public int Dummy7 {
  5623. get { return dummy7_; }
  5624. }
  5625. // optional int32 dummy8 = 8;
  5626. private bool hasDummy8;
  5627. private int dummy8_ = 0;
  5628. public bool HasDummy8 {
  5629. get { return hasDummy8; }
  5630. }
  5631. public int Dummy8 {
  5632. get { return dummy8_; }
  5633. }
  5634. // optional int32 dummy9 = 9;
  5635. private bool hasDummy9;
  5636. private int dummy9_ = 0;
  5637. public bool HasDummy9 {
  5638. get { return hasDummy9; }
  5639. }
  5640. public int Dummy9 {
  5641. get { return dummy9_; }
  5642. }
  5643. // optional int32 dummy10 = 10;
  5644. private bool hasDummy10;
  5645. private int dummy10_ = 0;
  5646. public bool HasDummy10 {
  5647. get { return hasDummy10; }
  5648. }
  5649. public int Dummy10 {
  5650. get { return dummy10_; }
  5651. }
  5652. // optional int32 dummy11 = 11;
  5653. private bool hasDummy11;
  5654. private int dummy11_ = 0;
  5655. public bool HasDummy11 {
  5656. get { return hasDummy11; }
  5657. }
  5658. public int Dummy11 {
  5659. get { return dummy11_; }
  5660. }
  5661. // optional int32 dummy12 = 12;
  5662. private bool hasDummy12;
  5663. private int dummy12_ = 0;
  5664. public bool HasDummy12 {
  5665. get { return hasDummy12; }
  5666. }
  5667. public int Dummy12 {
  5668. get { return dummy12_; }
  5669. }
  5670. // optional int32 dummy13 = 13;
  5671. private bool hasDummy13;
  5672. private int dummy13_ = 0;
  5673. public bool HasDummy13 {
  5674. get { return hasDummy13; }
  5675. }
  5676. public int Dummy13 {
  5677. get { return dummy13_; }
  5678. }
  5679. // optional int32 dummy14 = 14;
  5680. private bool hasDummy14;
  5681. private int dummy14_ = 0;
  5682. public bool HasDummy14 {
  5683. get { return hasDummy14; }
  5684. }
  5685. public int Dummy14 {
  5686. get { return dummy14_; }
  5687. }
  5688. // optional int32 dummy15 = 15;
  5689. private bool hasDummy15;
  5690. private int dummy15_ = 0;
  5691. public bool HasDummy15 {
  5692. get { return hasDummy15; }
  5693. }
  5694. public int Dummy15 {
  5695. get { return dummy15_; }
  5696. }
  5697. // optional int32 dummy16 = 16;
  5698. private bool hasDummy16;
  5699. private int dummy16_ = 0;
  5700. public bool HasDummy16 {
  5701. get { return hasDummy16; }
  5702. }
  5703. public int Dummy16 {
  5704. get { return dummy16_; }
  5705. }
  5706. // optional int32 dummy17 = 17;
  5707. private bool hasDummy17;
  5708. private int dummy17_ = 0;
  5709. public bool HasDummy17 {
  5710. get { return hasDummy17; }
  5711. }
  5712. public int Dummy17 {
  5713. get { return dummy17_; }
  5714. }
  5715. // optional int32 dummy18 = 18;
  5716. private bool hasDummy18;
  5717. private int dummy18_ = 0;
  5718. public bool HasDummy18 {
  5719. get { return hasDummy18; }
  5720. }
  5721. public int Dummy18 {
  5722. get { return dummy18_; }
  5723. }
  5724. // optional int32 dummy19 = 19;
  5725. private bool hasDummy19;
  5726. private int dummy19_ = 0;
  5727. public bool HasDummy19 {
  5728. get { return hasDummy19; }
  5729. }
  5730. public int Dummy19 {
  5731. get { return dummy19_; }
  5732. }
  5733. // optional int32 dummy20 = 20;
  5734. private bool hasDummy20;
  5735. private int dummy20_ = 0;
  5736. public bool HasDummy20 {
  5737. get { return hasDummy20; }
  5738. }
  5739. public int Dummy20 {
  5740. get { return dummy20_; }
  5741. }
  5742. // optional int32 dummy21 = 21;
  5743. private bool hasDummy21;
  5744. private int dummy21_ = 0;
  5745. public bool HasDummy21 {
  5746. get { return hasDummy21; }
  5747. }
  5748. public int Dummy21 {
  5749. get { return dummy21_; }
  5750. }
  5751. // optional int32 dummy22 = 22;
  5752. private bool hasDummy22;
  5753. private int dummy22_ = 0;
  5754. public bool HasDummy22 {
  5755. get { return hasDummy22; }
  5756. }
  5757. public int Dummy22 {
  5758. get { return dummy22_; }
  5759. }
  5760. // optional int32 dummy23 = 23;
  5761. private bool hasDummy23;
  5762. private int dummy23_ = 0;
  5763. public bool HasDummy23 {
  5764. get { return hasDummy23; }
  5765. }
  5766. public int Dummy23 {
  5767. get { return dummy23_; }
  5768. }
  5769. // optional int32 dummy24 = 24;
  5770. private bool hasDummy24;
  5771. private int dummy24_ = 0;
  5772. public bool HasDummy24 {
  5773. get { return hasDummy24; }
  5774. }
  5775. public int Dummy24 {
  5776. get { return dummy24_; }
  5777. }
  5778. // optional int32 dummy25 = 25;
  5779. private bool hasDummy25;
  5780. private int dummy25_ = 0;
  5781. public bool HasDummy25 {
  5782. get { return hasDummy25; }
  5783. }
  5784. public int Dummy25 {
  5785. get { return dummy25_; }
  5786. }
  5787. // optional int32 dummy26 = 26;
  5788. private bool hasDummy26;
  5789. private int dummy26_ = 0;
  5790. public bool HasDummy26 {
  5791. get { return hasDummy26; }
  5792. }
  5793. public int Dummy26 {
  5794. get { return dummy26_; }
  5795. }
  5796. // optional int32 dummy27 = 27;
  5797. private bool hasDummy27;
  5798. private int dummy27_ = 0;
  5799. public bool HasDummy27 {
  5800. get { return hasDummy27; }
  5801. }
  5802. public int Dummy27 {
  5803. get { return dummy27_; }
  5804. }
  5805. // optional int32 dummy28 = 28;
  5806. private bool hasDummy28;
  5807. private int dummy28_ = 0;
  5808. public bool HasDummy28 {
  5809. get { return hasDummy28; }
  5810. }
  5811. public int Dummy28 {
  5812. get { return dummy28_; }
  5813. }
  5814. // optional int32 dummy29 = 29;
  5815. private bool hasDummy29;
  5816. private int dummy29_ = 0;
  5817. public bool HasDummy29 {
  5818. get { return hasDummy29; }
  5819. }
  5820. public int Dummy29 {
  5821. get { return dummy29_; }
  5822. }
  5823. // optional int32 dummy30 = 30;
  5824. private bool hasDummy30;
  5825. private int dummy30_ = 0;
  5826. public bool HasDummy30 {
  5827. get { return hasDummy30; }
  5828. }
  5829. public int Dummy30 {
  5830. get { return dummy30_; }
  5831. }
  5832. // optional int32 dummy31 = 31;
  5833. private bool hasDummy31;
  5834. private int dummy31_ = 0;
  5835. public bool HasDummy31 {
  5836. get { return hasDummy31; }
  5837. }
  5838. public int Dummy31 {
  5839. get { return dummy31_; }
  5840. }
  5841. // optional int32 dummy32 = 32;
  5842. private bool hasDummy32;
  5843. private int dummy32_ = 0;
  5844. public bool HasDummy32 {
  5845. get { return hasDummy32; }
  5846. }
  5847. public int Dummy32 {
  5848. get { return dummy32_; }
  5849. }
  5850. // required int32 c = 33;
  5851. private bool hasC;
  5852. private int c_ = 0;
  5853. public bool HasC {
  5854. get { return hasC; }
  5855. }
  5856. public int C {
  5857. get { return c_; }
  5858. }
  5859. public override bool IsInitialized {
  5860. get {
  5861. if (!hasA) return false;
  5862. if (!hasB) return false;
  5863. if (!hasC) return false;
  5864. return true;
  5865. }
  5866. }
  5867. public override void WriteTo(pb::CodedOutputStream output) {
  5868. if (HasA) {
  5869. output.WriteInt32(1, A);
  5870. }
  5871. if (HasDummy2) {
  5872. output.WriteInt32(2, Dummy2);
  5873. }
  5874. if (HasB) {
  5875. output.WriteInt32(3, B);
  5876. }
  5877. if (HasDummy4) {
  5878. output.WriteInt32(4, Dummy4);
  5879. }
  5880. if (HasDummy5) {
  5881. output.WriteInt32(5, Dummy5);
  5882. }
  5883. if (HasDummy6) {
  5884. output.WriteInt32(6, Dummy6);
  5885. }
  5886. if (HasDummy7) {
  5887. output.WriteInt32(7, Dummy7);
  5888. }
  5889. if (HasDummy8) {
  5890. output.WriteInt32(8, Dummy8);
  5891. }
  5892. if (HasDummy9) {
  5893. output.WriteInt32(9, Dummy9);
  5894. }
  5895. if (HasDummy10) {
  5896. output.WriteInt32(10, Dummy10);
  5897. }
  5898. if (HasDummy11) {
  5899. output.WriteInt32(11, Dummy11);
  5900. }
  5901. if (HasDummy12) {
  5902. output.WriteInt32(12, Dummy12);
  5903. }
  5904. if (HasDummy13) {
  5905. output.WriteInt32(13, Dummy13);
  5906. }
  5907. if (HasDummy14) {
  5908. output.WriteInt32(14, Dummy14);
  5909. }
  5910. if (HasDummy15) {
  5911. output.WriteInt32(15, Dummy15);
  5912. }
  5913. if (HasDummy16) {
  5914. output.WriteInt32(16, Dummy16);
  5915. }
  5916. if (HasDummy17) {
  5917. output.WriteInt32(17, Dummy17);
  5918. }
  5919. if (HasDummy18) {
  5920. output.WriteInt32(18, Dummy18);
  5921. }
  5922. if (HasDummy19) {
  5923. output.WriteInt32(19, Dummy19);
  5924. }
  5925. if (HasDummy20) {
  5926. output.WriteInt32(20, Dummy20);
  5927. }
  5928. if (HasDummy21) {
  5929. output.WriteInt32(21, Dummy21);
  5930. }
  5931. if (HasDummy22) {
  5932. output.WriteInt32(22, Dummy22);
  5933. }
  5934. if (HasDummy23) {
  5935. output.WriteInt32(23, Dummy23);
  5936. }
  5937. if (HasDummy24) {
  5938. output.WriteInt32(24, Dummy24);
  5939. }
  5940. if (HasDummy25) {
  5941. output.WriteInt32(25, Dummy25);
  5942. }
  5943. if (HasDummy26) {
  5944. output.WriteInt32(26, Dummy26);
  5945. }
  5946. if (HasDummy27) {
  5947. output.WriteInt32(27, Dummy27);
  5948. }
  5949. if (HasDummy28) {
  5950. output.WriteInt32(28, Dummy28);
  5951. }
  5952. if (HasDummy29) {
  5953. output.WriteInt32(29, Dummy29);
  5954. }
  5955. if (HasDummy30) {
  5956. output.WriteInt32(30, Dummy30);
  5957. }
  5958. if (HasDummy31) {
  5959. output.WriteInt32(31, Dummy31);
  5960. }
  5961. if (HasDummy32) {
  5962. output.WriteInt32(32, Dummy32);
  5963. }
  5964. if (HasC) {
  5965. output.WriteInt32(33, C);
  5966. }
  5967. UnknownFields.WriteTo(output);
  5968. }
  5969. private int memoizedSerializedSize = -1;
  5970. public override int SerializedSize {
  5971. get {
  5972. int size = memoizedSerializedSize;
  5973. if (size != -1) return size;
  5974. size = 0;
  5975. if (HasA) {
  5976. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  5977. }
  5978. if (HasDummy2) {
  5979. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  5980. }
  5981. if (HasB) {
  5982. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  5983. }
  5984. if (HasDummy4) {
  5985. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  5986. }
  5987. if (HasDummy5) {
  5988. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  5989. }
  5990. if (HasDummy6) {
  5991. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  5992. }
  5993. if (HasDummy7) {
  5994. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  5995. }
  5996. if (HasDummy8) {
  5997. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  5998. }
  5999. if (HasDummy9) {
  6000. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6001. }
  6002. if (HasDummy10) {
  6003. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6004. }
  6005. if (HasDummy11) {
  6006. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6007. }
  6008. if (HasDummy12) {
  6009. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6010. }
  6011. if (HasDummy13) {
  6012. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6013. }
  6014. if (HasDummy14) {
  6015. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6016. }
  6017. if (HasDummy15) {
  6018. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6019. }
  6020. if (HasDummy16) {
  6021. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6022. }
  6023. if (HasDummy17) {
  6024. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6025. }
  6026. if (HasDummy18) {
  6027. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6028. }
  6029. if (HasDummy19) {
  6030. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6031. }
  6032. if (HasDummy20) {
  6033. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6034. }
  6035. if (HasDummy21) {
  6036. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6037. }
  6038. if (HasDummy22) {
  6039. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6040. }
  6041. if (HasDummy23) {
  6042. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6043. }
  6044. if (HasDummy24) {
  6045. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6046. }
  6047. if (HasDummy25) {
  6048. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6049. }
  6050. if (HasDummy26) {
  6051. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6052. }
  6053. if (HasDummy27) {
  6054. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6055. }
  6056. if (HasDummy28) {
  6057. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6058. }
  6059. if (HasDummy29) {
  6060. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6061. }
  6062. if (HasDummy30) {
  6063. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6064. }
  6065. if (HasDummy31) {
  6066. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6067. }
  6068. if (HasDummy32) {
  6069. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6070. }
  6071. if (HasC) {
  6072. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6073. }
  6074. size += UnknownFields.SerializedSize;
  6075. memoizedSerializedSize = size;
  6076. return size;
  6077. }
  6078. }
  6079. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data) {
  6080. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6081. }
  6082. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data,
  6083. pb::ExtensionRegistry extensionRegistry) {
  6084. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6085. .BuildParsed();
  6086. }
  6087. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data) {
  6088. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6089. }
  6090. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data,
  6091. pb::ExtensionRegistry extensionRegistry) {
  6092. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6093. .BuildParsed();
  6094. }
  6095. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(global::System.IO.Stream input) {
  6096. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6097. }
  6098. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(
  6099. global::System.IO.Stream input,
  6100. pb::ExtensionRegistry extensionRegistry) {
  6101. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6102. .BuildParsed();
  6103. }
  6104. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input) {
  6105. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6106. }
  6107. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input,
  6108. pb::ExtensionRegistry extensionRegistry) {
  6109. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6110. .BuildParsed();
  6111. }
  6112. public static Builder CreateBuilder() { return new Builder(); }
  6113. public override Builder CreateBuilderForType() { return new Builder(); }
  6114. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequired prototype) {
  6115. return (Builder) new Builder().MergeFrom(prototype);
  6116. }
  6117. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequired, Builder> {
  6118. protected override Builder ThisBuilder {
  6119. get { return this; }
  6120. }
  6121. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder()
  6122. public Builder() {}
  6123. global::Google.ProtocolBuffers.TestProtos.TestRequired result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6124. protected override global::Google.ProtocolBuffers.TestProtos.TestRequired MessageBeingBuilt {
  6125. get { return result; }
  6126. }
  6127. public override Builder Clear() {
  6128. result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6129. return this;
  6130. }
  6131. public override Builder Clone() {
  6132. return new Builder().MergeFrom(result);
  6133. }
  6134. public override pbd::MessageDescriptor DescriptorForType {
  6135. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
  6136. }
  6137. public override global::Google.ProtocolBuffers.TestProtos.TestRequired DefaultInstanceForType {
  6138. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  6139. }
  6140. public override global::Google.ProtocolBuffers.TestProtos.TestRequired BuildPartial() {
  6141. global::Google.ProtocolBuffers.TestProtos.TestRequired returnMe = result;
  6142. result = null;
  6143. return returnMe;
  6144. }
  6145. public override Builder MergeFrom(pb::IMessage other) {
  6146. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequired) {
  6147. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequired) other);
  6148. } else {
  6149. base.MergeFrom(other);
  6150. return this;
  6151. }
  6152. }
  6153. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequired other) {
  6154. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
  6155. if (other.HasA) {
  6156. A = other.A;
  6157. }
  6158. if (other.HasDummy2) {
  6159. Dummy2 = other.Dummy2;
  6160. }
  6161. if (other.HasB) {
  6162. B = other.B;
  6163. }
  6164. if (other.HasDummy4) {
  6165. Dummy4 = other.Dummy4;
  6166. }
  6167. if (other.HasDummy5) {
  6168. Dummy5 = other.Dummy5;
  6169. }
  6170. if (other.HasDummy6) {
  6171. Dummy6 = other.Dummy6;
  6172. }
  6173. if (other.HasDummy7) {
  6174. Dummy7 = other.Dummy7;
  6175. }
  6176. if (other.HasDummy8) {
  6177. Dummy8 = other.Dummy8;
  6178. }
  6179. if (other.HasDummy9) {
  6180. Dummy9 = other.Dummy9;
  6181. }
  6182. if (other.HasDummy10) {
  6183. Dummy10 = other.Dummy10;
  6184. }
  6185. if (other.HasDummy11) {
  6186. Dummy11 = other.Dummy11;
  6187. }
  6188. if (other.HasDummy12) {
  6189. Dummy12 = other.Dummy12;
  6190. }
  6191. if (other.HasDummy13) {
  6192. Dummy13 = other.Dummy13;
  6193. }
  6194. if (other.HasDummy14) {
  6195. Dummy14 = other.Dummy14;
  6196. }
  6197. if (other.HasDummy15) {
  6198. Dummy15 = other.Dummy15;
  6199. }
  6200. if (other.HasDummy16) {
  6201. Dummy16 = other.Dummy16;
  6202. }
  6203. if (other.HasDummy17) {
  6204. Dummy17 = other.Dummy17;
  6205. }
  6206. if (other.HasDummy18) {
  6207. Dummy18 = other.Dummy18;
  6208. }
  6209. if (other.HasDummy19) {
  6210. Dummy19 = other.Dummy19;
  6211. }
  6212. if (other.HasDummy20) {
  6213. Dummy20 = other.Dummy20;
  6214. }
  6215. if (other.HasDummy21) {
  6216. Dummy21 = other.Dummy21;
  6217. }
  6218. if (other.HasDummy22) {
  6219. Dummy22 = other.Dummy22;
  6220. }
  6221. if (other.HasDummy23) {
  6222. Dummy23 = other.Dummy23;
  6223. }
  6224. if (other.HasDummy24) {
  6225. Dummy24 = other.Dummy24;
  6226. }
  6227. if (other.HasDummy25) {
  6228. Dummy25 = other.Dummy25;
  6229. }
  6230. if (other.HasDummy26) {
  6231. Dummy26 = other.Dummy26;
  6232. }
  6233. if (other.HasDummy27) {
  6234. Dummy27 = other.Dummy27;
  6235. }
  6236. if (other.HasDummy28) {
  6237. Dummy28 = other.Dummy28;
  6238. }
  6239. if (other.HasDummy29) {
  6240. Dummy29 = other.Dummy29;
  6241. }
  6242. if (other.HasDummy30) {
  6243. Dummy30 = other.Dummy30;
  6244. }
  6245. if (other.HasDummy31) {
  6246. Dummy31 = other.Dummy31;
  6247. }
  6248. if (other.HasDummy32) {
  6249. Dummy32 = other.Dummy32;
  6250. }
  6251. if (other.HasC) {
  6252. C = other.C;
  6253. }
  6254. this.MergeUnknownFields(other.UnknownFields);
  6255. return this;
  6256. }
  6257. public override Builder MergeFrom(pb::CodedInputStream input) {
  6258. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6259. }
  6260. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6261. pb::UnknownFieldSet.Builder unknownFields =
  6262. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6263. while (true) {
  6264. uint tag = input.ReadTag();
  6265. switch (tag) {
  6266. case 0:
  6267. this.UnknownFields = unknownFields.Build();
  6268. return this;
  6269. default: {
  6270. if (!ParseUnknownField(input, unknownFields,
  6271. extensionRegistry, tag)) {
  6272. this.UnknownFields = unknownFields.Build();
  6273. return this;
  6274. }
  6275. break;
  6276. }
  6277. case 8: {
  6278. A = input.ReadInt32();
  6279. break;
  6280. }
  6281. case 16: {
  6282. Dummy2 = input.ReadInt32();
  6283. break;
  6284. }
  6285. case 24: {
  6286. B = input.ReadInt32();
  6287. break;
  6288. }
  6289. case 32: {
  6290. Dummy4 = input.ReadInt32();
  6291. break;
  6292. }
  6293. case 40: {
  6294. Dummy5 = input.ReadInt32();
  6295. break;
  6296. }
  6297. case 48: {
  6298. Dummy6 = input.ReadInt32();
  6299. break;
  6300. }
  6301. case 56: {
  6302. Dummy7 = input.ReadInt32();
  6303. break;
  6304. }
  6305. case 64: {
  6306. Dummy8 = input.ReadInt32();
  6307. break;
  6308. }
  6309. case 72: {
  6310. Dummy9 = input.ReadInt32();
  6311. break;
  6312. }
  6313. case 80: {
  6314. Dummy10 = input.ReadInt32();
  6315. break;
  6316. }
  6317. case 88: {
  6318. Dummy11 = input.ReadInt32();
  6319. break;
  6320. }
  6321. case 96: {
  6322. Dummy12 = input.ReadInt32();
  6323. break;
  6324. }
  6325. case 104: {
  6326. Dummy13 = input.ReadInt32();
  6327. break;
  6328. }
  6329. case 112: {
  6330. Dummy14 = input.ReadInt32();
  6331. break;
  6332. }
  6333. case 120: {
  6334. Dummy15 = input.ReadInt32();
  6335. break;
  6336. }
  6337. case 128: {
  6338. Dummy16 = input.ReadInt32();
  6339. break;
  6340. }
  6341. case 136: {
  6342. Dummy17 = input.ReadInt32();
  6343. break;
  6344. }
  6345. case 144: {
  6346. Dummy18 = input.ReadInt32();
  6347. break;
  6348. }
  6349. case 152: {
  6350. Dummy19 = input.ReadInt32();
  6351. break;
  6352. }
  6353. case 160: {
  6354. Dummy20 = input.ReadInt32();
  6355. break;
  6356. }
  6357. case 168: {
  6358. Dummy21 = input.ReadInt32();
  6359. break;
  6360. }
  6361. case 176: {
  6362. Dummy22 = input.ReadInt32();
  6363. break;
  6364. }
  6365. case 184: {
  6366. Dummy23 = input.ReadInt32();
  6367. break;
  6368. }
  6369. case 192: {
  6370. Dummy24 = input.ReadInt32();
  6371. break;
  6372. }
  6373. case 200: {
  6374. Dummy25 = input.ReadInt32();
  6375. break;
  6376. }
  6377. case 208: {
  6378. Dummy26 = input.ReadInt32();
  6379. break;
  6380. }
  6381. case 216: {
  6382. Dummy27 = input.ReadInt32();
  6383. break;
  6384. }
  6385. case 224: {
  6386. Dummy28 = input.ReadInt32();
  6387. break;
  6388. }
  6389. case 232: {
  6390. Dummy29 = input.ReadInt32();
  6391. break;
  6392. }
  6393. case 240: {
  6394. Dummy30 = input.ReadInt32();
  6395. break;
  6396. }
  6397. case 248: {
  6398. Dummy31 = input.ReadInt32();
  6399. break;
  6400. }
  6401. case 256: {
  6402. Dummy32 = input.ReadInt32();
  6403. break;
  6404. }
  6405. case 264: {
  6406. C = input.ReadInt32();
  6407. break;
  6408. }
  6409. }
  6410. }
  6411. }
  6412. // required int32 a = 1;
  6413. public bool HasA {
  6414. get { return result.HasA; }
  6415. }
  6416. public int A {
  6417. get { return result.A; }
  6418. set { SetA(value); }
  6419. }
  6420. public Builder SetA(int value) {
  6421. result.hasA = true;
  6422. result.a_ = value;
  6423. return this;
  6424. }
  6425. public Builder ClearA() {
  6426. result.hasA = false;
  6427. result.a_ = 0;
  6428. return this;
  6429. }
  6430. // optional int32 dummy2 = 2;
  6431. public bool HasDummy2 {
  6432. get { return result.HasDummy2; }
  6433. }
  6434. public int Dummy2 {
  6435. get { return result.Dummy2; }
  6436. set { SetDummy2(value); }
  6437. }
  6438. public Builder SetDummy2(int value) {
  6439. result.hasDummy2 = true;
  6440. result.dummy2_ = value;
  6441. return this;
  6442. }
  6443. public Builder ClearDummy2() {
  6444. result.hasDummy2 = false;
  6445. result.dummy2_ = 0;
  6446. return this;
  6447. }
  6448. // required int32 b = 3;
  6449. public bool HasB {
  6450. get { return result.HasB; }
  6451. }
  6452. public int B {
  6453. get { return result.B; }
  6454. set { SetB(value); }
  6455. }
  6456. public Builder SetB(int value) {
  6457. result.hasB = true;
  6458. result.b_ = value;
  6459. return this;
  6460. }
  6461. public Builder ClearB() {
  6462. result.hasB = false;
  6463. result.b_ = 0;
  6464. return this;
  6465. }
  6466. // optional int32 dummy4 = 4;
  6467. public bool HasDummy4 {
  6468. get { return result.HasDummy4; }
  6469. }
  6470. public int Dummy4 {
  6471. get { return result.Dummy4; }
  6472. set { SetDummy4(value); }
  6473. }
  6474. public Builder SetDummy4(int value) {
  6475. result.hasDummy4 = true;
  6476. result.dummy4_ = value;
  6477. return this;
  6478. }
  6479. public Builder ClearDummy4() {
  6480. result.hasDummy4 = false;
  6481. result.dummy4_ = 0;
  6482. return this;
  6483. }
  6484. // optional int32 dummy5 = 5;
  6485. public bool HasDummy5 {
  6486. get { return result.HasDummy5; }
  6487. }
  6488. public int Dummy5 {
  6489. get { return result.Dummy5; }
  6490. set { SetDummy5(value); }
  6491. }
  6492. public Builder SetDummy5(int value) {
  6493. result.hasDummy5 = true;
  6494. result.dummy5_ = value;
  6495. return this;
  6496. }
  6497. public Builder ClearDummy5() {
  6498. result.hasDummy5 = false;
  6499. result.dummy5_ = 0;
  6500. return this;
  6501. }
  6502. // optional int32 dummy6 = 6;
  6503. public bool HasDummy6 {
  6504. get { return result.HasDummy6; }
  6505. }
  6506. public int Dummy6 {
  6507. get { return result.Dummy6; }
  6508. set { SetDummy6(value); }
  6509. }
  6510. public Builder SetDummy6(int value) {
  6511. result.hasDummy6 = true;
  6512. result.dummy6_ = value;
  6513. return this;
  6514. }
  6515. public Builder ClearDummy6() {
  6516. result.hasDummy6 = false;
  6517. result.dummy6_ = 0;
  6518. return this;
  6519. }
  6520. // optional int32 dummy7 = 7;
  6521. public bool HasDummy7 {
  6522. get { return result.HasDummy7; }
  6523. }
  6524. public int Dummy7 {
  6525. get { return result.Dummy7; }
  6526. set { SetDummy7(value); }
  6527. }
  6528. public Builder SetDummy7(int value) {
  6529. result.hasDummy7 = true;
  6530. result.dummy7_ = value;
  6531. return this;
  6532. }
  6533. public Builder ClearDummy7() {
  6534. result.hasDummy7 = false;
  6535. result.dummy7_ = 0;
  6536. return this;
  6537. }
  6538. // optional int32 dummy8 = 8;
  6539. public bool HasDummy8 {
  6540. get { return result.HasDummy8; }
  6541. }
  6542. public int Dummy8 {
  6543. get { return result.Dummy8; }
  6544. set { SetDummy8(value); }
  6545. }
  6546. public Builder SetDummy8(int value) {
  6547. result.hasDummy8 = true;
  6548. result.dummy8_ = value;
  6549. return this;
  6550. }
  6551. public Builder ClearDummy8() {
  6552. result.hasDummy8 = false;
  6553. result.dummy8_ = 0;
  6554. return this;
  6555. }
  6556. // optional int32 dummy9 = 9;
  6557. public bool HasDummy9 {
  6558. get { return result.HasDummy9; }
  6559. }
  6560. public int Dummy9 {
  6561. get { return result.Dummy9; }
  6562. set { SetDummy9(value); }
  6563. }
  6564. public Builder SetDummy9(int value) {
  6565. result.hasDummy9 = true;
  6566. result.dummy9_ = value;
  6567. return this;
  6568. }
  6569. public Builder ClearDummy9() {
  6570. result.hasDummy9 = false;
  6571. result.dummy9_ = 0;
  6572. return this;
  6573. }
  6574. // optional int32 dummy10 = 10;
  6575. public bool HasDummy10 {
  6576. get { return result.HasDummy10; }
  6577. }
  6578. public int Dummy10 {
  6579. get { return result.Dummy10; }
  6580. set { SetDummy10(value); }
  6581. }
  6582. public Builder SetDummy10(int value) {
  6583. result.hasDummy10 = true;
  6584. result.dummy10_ = value;
  6585. return this;
  6586. }
  6587. public Builder ClearDummy10() {
  6588. result.hasDummy10 = false;
  6589. result.dummy10_ = 0;
  6590. return this;
  6591. }
  6592. // optional int32 dummy11 = 11;
  6593. public bool HasDummy11 {
  6594. get { return result.HasDummy11; }
  6595. }
  6596. public int Dummy11 {
  6597. get { return result.Dummy11; }
  6598. set { SetDummy11(value); }
  6599. }
  6600. public Builder SetDummy11(int value) {
  6601. result.hasDummy11 = true;
  6602. result.dummy11_ = value;
  6603. return this;
  6604. }
  6605. public Builder ClearDummy11() {
  6606. result.hasDummy11 = false;
  6607. result.dummy11_ = 0;
  6608. return this;
  6609. }
  6610. // optional int32 dummy12 = 12;
  6611. public bool HasDummy12 {
  6612. get { return result.HasDummy12; }
  6613. }
  6614. public int Dummy12 {
  6615. get { return result.Dummy12; }
  6616. set { SetDummy12(value); }
  6617. }
  6618. public Builder SetDummy12(int value) {
  6619. result.hasDummy12 = true;
  6620. result.dummy12_ = value;
  6621. return this;
  6622. }
  6623. public Builder ClearDummy12() {
  6624. result.hasDummy12 = false;
  6625. result.dummy12_ = 0;
  6626. return this;
  6627. }
  6628. // optional int32 dummy13 = 13;
  6629. public bool HasDummy13 {
  6630. get { return result.HasDummy13; }
  6631. }
  6632. public int Dummy13 {
  6633. get { return result.Dummy13; }
  6634. set { SetDummy13(value); }
  6635. }
  6636. public Builder SetDummy13(int value) {
  6637. result.hasDummy13 = true;
  6638. result.dummy13_ = value;
  6639. return this;
  6640. }
  6641. public Builder ClearDummy13() {
  6642. result.hasDummy13 = false;
  6643. result.dummy13_ = 0;
  6644. return this;
  6645. }
  6646. // optional int32 dummy14 = 14;
  6647. public bool HasDummy14 {
  6648. get { return result.HasDummy14; }
  6649. }
  6650. public int Dummy14 {
  6651. get { return result.Dummy14; }
  6652. set { SetDummy14(value); }
  6653. }
  6654. public Builder SetDummy14(int value) {
  6655. result.hasDummy14 = true;
  6656. result.dummy14_ = value;
  6657. return this;
  6658. }
  6659. public Builder ClearDummy14() {
  6660. result.hasDummy14 = false;
  6661. result.dummy14_ = 0;
  6662. return this;
  6663. }
  6664. // optional int32 dummy15 = 15;
  6665. public bool HasDummy15 {
  6666. get { return result.HasDummy15; }
  6667. }
  6668. public int Dummy15 {
  6669. get { return result.Dummy15; }
  6670. set { SetDummy15(value); }
  6671. }
  6672. public Builder SetDummy15(int value) {
  6673. result.hasDummy15 = true;
  6674. result.dummy15_ = value;
  6675. return this;
  6676. }
  6677. public Builder ClearDummy15() {
  6678. result.hasDummy15 = false;
  6679. result.dummy15_ = 0;
  6680. return this;
  6681. }
  6682. // optional int32 dummy16 = 16;
  6683. public bool HasDummy16 {
  6684. get { return result.HasDummy16; }
  6685. }
  6686. public int Dummy16 {
  6687. get { return result.Dummy16; }
  6688. set { SetDummy16(value); }
  6689. }
  6690. public Builder SetDummy16(int value) {
  6691. result.hasDummy16 = true;
  6692. result.dummy16_ = value;
  6693. return this;
  6694. }
  6695. public Builder ClearDummy16() {
  6696. result.hasDummy16 = false;
  6697. result.dummy16_ = 0;
  6698. return this;
  6699. }
  6700. // optional int32 dummy17 = 17;
  6701. public bool HasDummy17 {
  6702. get { return result.HasDummy17; }
  6703. }
  6704. public int Dummy17 {
  6705. get { return result.Dummy17; }
  6706. set { SetDummy17(value); }
  6707. }
  6708. public Builder SetDummy17(int value) {
  6709. result.hasDummy17 = true;
  6710. result.dummy17_ = value;
  6711. return this;
  6712. }
  6713. public Builder ClearDummy17() {
  6714. result.hasDummy17 = false;
  6715. result.dummy17_ = 0;
  6716. return this;
  6717. }
  6718. // optional int32 dummy18 = 18;
  6719. public bool HasDummy18 {
  6720. get { return result.HasDummy18; }
  6721. }
  6722. public int Dummy18 {
  6723. get { return result.Dummy18; }
  6724. set { SetDummy18(value); }
  6725. }
  6726. public Builder SetDummy18(int value) {
  6727. result.hasDummy18 = true;
  6728. result.dummy18_ = value;
  6729. return this;
  6730. }
  6731. public Builder ClearDummy18() {
  6732. result.hasDummy18 = false;
  6733. result.dummy18_ = 0;
  6734. return this;
  6735. }
  6736. // optional int32 dummy19 = 19;
  6737. public bool HasDummy19 {
  6738. get { return result.HasDummy19; }
  6739. }
  6740. public int Dummy19 {
  6741. get { return result.Dummy19; }
  6742. set { SetDummy19(value); }
  6743. }
  6744. public Builder SetDummy19(int value) {
  6745. result.hasDummy19 = true;
  6746. result.dummy19_ = value;
  6747. return this;
  6748. }
  6749. public Builder ClearDummy19() {
  6750. result.hasDummy19 = false;
  6751. result.dummy19_ = 0;
  6752. return this;
  6753. }
  6754. // optional int32 dummy20 = 20;
  6755. public bool HasDummy20 {
  6756. get { return result.HasDummy20; }
  6757. }
  6758. public int Dummy20 {
  6759. get { return result.Dummy20; }
  6760. set { SetDummy20(value); }
  6761. }
  6762. public Builder SetDummy20(int value) {
  6763. result.hasDummy20 = true;
  6764. result.dummy20_ = value;
  6765. return this;
  6766. }
  6767. public Builder ClearDummy20() {
  6768. result.hasDummy20 = false;
  6769. result.dummy20_ = 0;
  6770. return this;
  6771. }
  6772. // optional int32 dummy21 = 21;
  6773. public bool HasDummy21 {
  6774. get { return result.HasDummy21; }
  6775. }
  6776. public int Dummy21 {
  6777. get { return result.Dummy21; }
  6778. set { SetDummy21(value); }
  6779. }
  6780. public Builder SetDummy21(int value) {
  6781. result.hasDummy21 = true;
  6782. result.dummy21_ = value;
  6783. return this;
  6784. }
  6785. public Builder ClearDummy21() {
  6786. result.hasDummy21 = false;
  6787. result.dummy21_ = 0;
  6788. return this;
  6789. }
  6790. // optional int32 dummy22 = 22;
  6791. public bool HasDummy22 {
  6792. get { return result.HasDummy22; }
  6793. }
  6794. public int Dummy22 {
  6795. get { return result.Dummy22; }
  6796. set { SetDummy22(value); }
  6797. }
  6798. public Builder SetDummy22(int value) {
  6799. result.hasDummy22 = true;
  6800. result.dummy22_ = value;
  6801. return this;
  6802. }
  6803. public Builder ClearDummy22() {
  6804. result.hasDummy22 = false;
  6805. result.dummy22_ = 0;
  6806. return this;
  6807. }
  6808. // optional int32 dummy23 = 23;
  6809. public bool HasDummy23 {
  6810. get { return result.HasDummy23; }
  6811. }
  6812. public int Dummy23 {
  6813. get { return result.Dummy23; }
  6814. set { SetDummy23(value); }
  6815. }
  6816. public Builder SetDummy23(int value) {
  6817. result.hasDummy23 = true;
  6818. result.dummy23_ = value;
  6819. return this;
  6820. }
  6821. public Builder ClearDummy23() {
  6822. result.hasDummy23 = false;
  6823. result.dummy23_ = 0;
  6824. return this;
  6825. }
  6826. // optional int32 dummy24 = 24;
  6827. public bool HasDummy24 {
  6828. get { return result.HasDummy24; }
  6829. }
  6830. public int Dummy24 {
  6831. get { return result.Dummy24; }
  6832. set { SetDummy24(value); }
  6833. }
  6834. public Builder SetDummy24(int value) {
  6835. result.hasDummy24 = true;
  6836. result.dummy24_ = value;
  6837. return this;
  6838. }
  6839. public Builder ClearDummy24() {
  6840. result.hasDummy24 = false;
  6841. result.dummy24_ = 0;
  6842. return this;
  6843. }
  6844. // optional int32 dummy25 = 25;
  6845. public bool HasDummy25 {
  6846. get { return result.HasDummy25; }
  6847. }
  6848. public int Dummy25 {
  6849. get { return result.Dummy25; }
  6850. set { SetDummy25(value); }
  6851. }
  6852. public Builder SetDummy25(int value) {
  6853. result.hasDummy25 = true;
  6854. result.dummy25_ = value;
  6855. return this;
  6856. }
  6857. public Builder ClearDummy25() {
  6858. result.hasDummy25 = false;
  6859. result.dummy25_ = 0;
  6860. return this;
  6861. }
  6862. // optional int32 dummy26 = 26;
  6863. public bool HasDummy26 {
  6864. get { return result.HasDummy26; }
  6865. }
  6866. public int Dummy26 {
  6867. get { return result.Dummy26; }
  6868. set { SetDummy26(value); }
  6869. }
  6870. public Builder SetDummy26(int value) {
  6871. result.hasDummy26 = true;
  6872. result.dummy26_ = value;
  6873. return this;
  6874. }
  6875. public Builder ClearDummy26() {
  6876. result.hasDummy26 = false;
  6877. result.dummy26_ = 0;
  6878. return this;
  6879. }
  6880. // optional int32 dummy27 = 27;
  6881. public bool HasDummy27 {
  6882. get { return result.HasDummy27; }
  6883. }
  6884. public int Dummy27 {
  6885. get { return result.Dummy27; }
  6886. set { SetDummy27(value); }
  6887. }
  6888. public Builder SetDummy27(int value) {
  6889. result.hasDummy27 = true;
  6890. result.dummy27_ = value;
  6891. return this;
  6892. }
  6893. public Builder ClearDummy27() {
  6894. result.hasDummy27 = false;
  6895. result.dummy27_ = 0;
  6896. return this;
  6897. }
  6898. // optional int32 dummy28 = 28;
  6899. public bool HasDummy28 {
  6900. get { return result.HasDummy28; }
  6901. }
  6902. public int Dummy28 {
  6903. get { return result.Dummy28; }
  6904. set { SetDummy28(value); }
  6905. }
  6906. public Builder SetDummy28(int value) {
  6907. result.hasDummy28 = true;
  6908. result.dummy28_ = value;
  6909. return this;
  6910. }
  6911. public Builder ClearDummy28() {
  6912. result.hasDummy28 = false;
  6913. result.dummy28_ = 0;
  6914. return this;
  6915. }
  6916. // optional int32 dummy29 = 29;
  6917. public bool HasDummy29 {
  6918. get { return result.HasDummy29; }
  6919. }
  6920. public int Dummy29 {
  6921. get { return result.Dummy29; }
  6922. set { SetDummy29(value); }
  6923. }
  6924. public Builder SetDummy29(int value) {
  6925. result.hasDummy29 = true;
  6926. result.dummy29_ = value;
  6927. return this;
  6928. }
  6929. public Builder ClearDummy29() {
  6930. result.hasDummy29 = false;
  6931. result.dummy29_ = 0;
  6932. return this;
  6933. }
  6934. // optional int32 dummy30 = 30;
  6935. public bool HasDummy30 {
  6936. get { return result.HasDummy30; }
  6937. }
  6938. public int Dummy30 {
  6939. get { return result.Dummy30; }
  6940. set { SetDummy30(value); }
  6941. }
  6942. public Builder SetDummy30(int value) {
  6943. result.hasDummy30 = true;
  6944. result.dummy30_ = value;
  6945. return this;
  6946. }
  6947. public Builder ClearDummy30() {
  6948. result.hasDummy30 = false;
  6949. result.dummy30_ = 0;
  6950. return this;
  6951. }
  6952. // optional int32 dummy31 = 31;
  6953. public bool HasDummy31 {
  6954. get { return result.HasDummy31; }
  6955. }
  6956. public int Dummy31 {
  6957. get { return result.Dummy31; }
  6958. set { SetDummy31(value); }
  6959. }
  6960. public Builder SetDummy31(int value) {
  6961. result.hasDummy31 = true;
  6962. result.dummy31_ = value;
  6963. return this;
  6964. }
  6965. public Builder ClearDummy31() {
  6966. result.hasDummy31 = false;
  6967. result.dummy31_ = 0;
  6968. return this;
  6969. }
  6970. // optional int32 dummy32 = 32;
  6971. public bool HasDummy32 {
  6972. get { return result.HasDummy32; }
  6973. }
  6974. public int Dummy32 {
  6975. get { return result.Dummy32; }
  6976. set { SetDummy32(value); }
  6977. }
  6978. public Builder SetDummy32(int value) {
  6979. result.hasDummy32 = true;
  6980. result.dummy32_ = value;
  6981. return this;
  6982. }
  6983. public Builder ClearDummy32() {
  6984. result.hasDummy32 = false;
  6985. result.dummy32_ = 0;
  6986. return this;
  6987. }
  6988. // required int32 c = 33;
  6989. public bool HasC {
  6990. get { return result.HasC; }
  6991. }
  6992. public int C {
  6993. get { return result.C; }
  6994. set { SetC(value); }
  6995. }
  6996. public Builder SetC(int value) {
  6997. result.hasC = true;
  6998. result.c_ = value;
  6999. return this;
  7000. }
  7001. public Builder ClearC() {
  7002. result.hasC = false;
  7003. result.c_ = 0;
  7004. return this;
  7005. }
  7006. }
  7007. }
  7008. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7009. private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial();
  7010. public static TestRequiredForeign DefaultInstance {
  7011. get { return defaultInstance; }
  7012. }
  7013. public override TestRequiredForeign DefaultInstanceForType {
  7014. get { return defaultInstance; }
  7015. }
  7016. protected override TestRequiredForeign ThisMessage {
  7017. get { return this; }
  7018. }
  7019. public static pbd::MessageDescriptor Descriptor {
  7020. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7021. }
  7022. protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
  7023. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7024. }
  7025. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7026. private bool hasOptionalMessage;
  7027. private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7028. public bool HasOptionalMessage {
  7029. get { return hasOptionalMessage; }
  7030. }
  7031. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7032. get { return optionalMessage_; }
  7033. }
  7034. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7035. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7036. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7037. get { return repeatedMessage_; }
  7038. }
  7039. public int RepeatedMessageCount
  7040. { get { return repeatedMessage_.Count; }
  7041. }
  7042. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7043. return repeatedMessage_ [index];
  7044. }
  7045. // optional int32 dummy = 3;
  7046. private bool hasDummy;
  7047. private int dummy_ = 0;
  7048. public bool HasDummy {
  7049. get { return hasDummy; }
  7050. }
  7051. public int Dummy {
  7052. get { return dummy_; }
  7053. }
  7054. public override bool IsInitialized {
  7055. get {
  7056. if (HasOptionalMessage) {
  7057. if (!OptionalMessage.IsInitialized) return false;
  7058. }
  7059. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7060. if (!element.IsInitialized) return false;
  7061. }
  7062. return true;
  7063. }
  7064. }
  7065. public override void WriteTo(pb::CodedOutputStream output) {
  7066. if (HasOptionalMessage) {
  7067. output.WriteMessage(1, OptionalMessage);
  7068. }
  7069. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7070. output.WriteMessage(2, element);
  7071. }
  7072. if (HasDummy) {
  7073. output.WriteInt32(3, Dummy);
  7074. }
  7075. UnknownFields.WriteTo(output);
  7076. }
  7077. private int memoizedSerializedSize = -1;
  7078. public override int SerializedSize {
  7079. get {
  7080. int size = memoizedSerializedSize;
  7081. if (size != -1) return size;
  7082. size = 0;
  7083. if (HasOptionalMessage) {
  7084. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7085. }
  7086. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7087. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7088. }
  7089. if (HasDummy) {
  7090. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7091. }
  7092. size += UnknownFields.SerializedSize;
  7093. memoizedSerializedSize = size;
  7094. return size;
  7095. }
  7096. }
  7097. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data) {
  7098. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7099. }
  7100. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data,
  7101. pb::ExtensionRegistry extensionRegistry) {
  7102. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7103. .BuildParsed();
  7104. }
  7105. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data) {
  7106. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7107. }
  7108. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data,
  7109. pb::ExtensionRegistry extensionRegistry) {
  7110. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7111. .BuildParsed();
  7112. }
  7113. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7114. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7115. }
  7116. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(
  7117. global::System.IO.Stream input,
  7118. pb::ExtensionRegistry extensionRegistry) {
  7119. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7120. .BuildParsed();
  7121. }
  7122. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7123. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7124. }
  7125. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7126. pb::ExtensionRegistry extensionRegistry) {
  7127. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7128. .BuildParsed();
  7129. }
  7130. public static Builder CreateBuilder() { return new Builder(); }
  7131. public override Builder CreateBuilderForType() { return new Builder(); }
  7132. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign prototype) {
  7133. return (Builder) new Builder().MergeFrom(prototype);
  7134. }
  7135. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, Builder> {
  7136. protected override Builder ThisBuilder {
  7137. get { return this; }
  7138. }
  7139. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.CreateBuilder()
  7140. public Builder() {}
  7141. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7142. protected override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign MessageBeingBuilt {
  7143. get { return result; }
  7144. }
  7145. public override Builder Clear() {
  7146. result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7147. return this;
  7148. }
  7149. public override Builder Clone() {
  7150. return new Builder().MergeFrom(result);
  7151. }
  7152. public override pbd::MessageDescriptor DescriptorForType {
  7153. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
  7154. }
  7155. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign DefaultInstanceForType {
  7156. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
  7157. }
  7158. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign BuildPartial() {
  7159. result.repeatedMessage_.MakeReadOnly();
  7160. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign returnMe = result;
  7161. result = null;
  7162. return returnMe;
  7163. }
  7164. public override Builder MergeFrom(pb::IMessage other) {
  7165. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) {
  7166. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) other);
  7167. } else {
  7168. base.MergeFrom(other);
  7169. return this;
  7170. }
  7171. }
  7172. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign other) {
  7173. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
  7174. if (other.HasOptionalMessage) {
  7175. MergeOptionalMessage(other.OptionalMessage);
  7176. }
  7177. if (other.repeatedMessage_.Count != 0) {
  7178. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7179. }
  7180. if (other.HasDummy) {
  7181. Dummy = other.Dummy;
  7182. }
  7183. this.MergeUnknownFields(other.UnknownFields);
  7184. return this;
  7185. }
  7186. public override Builder MergeFrom(pb::CodedInputStream input) {
  7187. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7188. }
  7189. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7190. pb::UnknownFieldSet.Builder unknownFields =
  7191. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7192. while (true) {
  7193. uint tag = input.ReadTag();
  7194. switch (tag) {
  7195. case 0:
  7196. this.UnknownFields = unknownFields.Build();
  7197. return this;
  7198. default: {
  7199. if (!ParseUnknownField(input, unknownFields,
  7200. extensionRegistry, tag)) {
  7201. this.UnknownFields = unknownFields.Build();
  7202. return this;
  7203. }
  7204. break;
  7205. }
  7206. case 10: {
  7207. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7208. if (HasOptionalMessage) {
  7209. subBuilder.MergeFrom(OptionalMessage);
  7210. }
  7211. input.ReadMessage(subBuilder, extensionRegistry);
  7212. OptionalMessage = subBuilder.BuildPartial();
  7213. break;
  7214. }
  7215. case 18: {
  7216. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7217. input.ReadMessage(subBuilder, extensionRegistry);
  7218. AddRepeatedMessage(subBuilder.BuildPartial());
  7219. break;
  7220. }
  7221. case 24: {
  7222. Dummy = input.ReadInt32();
  7223. break;
  7224. }
  7225. }
  7226. }
  7227. }
  7228. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7229. public bool HasOptionalMessage {
  7230. get { return result.HasOptionalMessage; }
  7231. }
  7232. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7233. get { return result.OptionalMessage; }
  7234. set { SetOptionalMessage(value); }
  7235. }
  7236. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7237. result.hasOptionalMessage = true;
  7238. result.optionalMessage_ = value;
  7239. return this;
  7240. }
  7241. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7242. result.hasOptionalMessage = true;
  7243. result.optionalMessage_ = builderForValue.Build();
  7244. return this;
  7245. }
  7246. public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7247. if (result.HasOptionalMessage &&
  7248. result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
  7249. result.optionalMessage_ =
  7250. global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7251. } else {
  7252. result.optionalMessage_ = value;
  7253. }
  7254. result.hasOptionalMessage = true;
  7255. return this;
  7256. }
  7257. public Builder ClearOptionalMessage() {
  7258. result.hasOptionalMessage = false;
  7259. result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7260. return this;
  7261. }
  7262. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7263. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7264. get { return result.repeatedMessage_; }
  7265. }
  7266. public int RepeatedMessageCount {
  7267. get { return result.RepeatedMessageCount; }
  7268. }
  7269. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7270. return result.GetRepeatedMessage(index);
  7271. }
  7272. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7273. result.repeatedMessage_[index] = value;
  7274. return this;
  7275. }
  7276. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7277. result.repeatedMessage_[index] = builderForValue.Build();
  7278. return this;
  7279. }
  7280. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7281. result.repeatedMessage_.Add(value);
  7282. return this;
  7283. }
  7284. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7285. result.repeatedMessage_.Add(builderForValue.Build());
  7286. return this;
  7287. }
  7288. public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
  7289. base.AddRange(values, result.repeatedMessage_);
  7290. return this;
  7291. }
  7292. public Builder ClearRepeatedMessage() {
  7293. result.repeatedMessage_.Clear();
  7294. return this;
  7295. }
  7296. // optional int32 dummy = 3;
  7297. public bool HasDummy {
  7298. get { return result.HasDummy; }
  7299. }
  7300. public int Dummy {
  7301. get { return result.Dummy; }
  7302. set { SetDummy(value); }
  7303. }
  7304. public Builder SetDummy(int value) {
  7305. result.hasDummy = true;
  7306. result.dummy_ = value;
  7307. return this;
  7308. }
  7309. public Builder ClearDummy() {
  7310. result.hasDummy = false;
  7311. result.dummy_ = 0;
  7312. return this;
  7313. }
  7314. }
  7315. }
  7316. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7317. private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial();
  7318. public static TestForeignNested DefaultInstance {
  7319. get { return defaultInstance; }
  7320. }
  7321. public override TestForeignNested DefaultInstanceForType {
  7322. get { return defaultInstance; }
  7323. }
  7324. protected override TestForeignNested ThisMessage {
  7325. get { return this; }
  7326. }
  7327. public static pbd::MessageDescriptor Descriptor {
  7328. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7329. }
  7330. protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
  7331. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7332. }
  7333. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7334. private bool hasForeignNested;
  7335. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7336. public bool HasForeignNested {
  7337. get { return hasForeignNested; }
  7338. }
  7339. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7340. get { return foreignNested_; }
  7341. }
  7342. public override bool IsInitialized {
  7343. get {
  7344. return true;
  7345. }
  7346. }
  7347. public override void WriteTo(pb::CodedOutputStream output) {
  7348. if (HasForeignNested) {
  7349. output.WriteMessage(1, ForeignNested);
  7350. }
  7351. UnknownFields.WriteTo(output);
  7352. }
  7353. private int memoizedSerializedSize = -1;
  7354. public override int SerializedSize {
  7355. get {
  7356. int size = memoizedSerializedSize;
  7357. if (size != -1) return size;
  7358. size = 0;
  7359. if (HasForeignNested) {
  7360. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7361. }
  7362. size += UnknownFields.SerializedSize;
  7363. memoizedSerializedSize = size;
  7364. return size;
  7365. }
  7366. }
  7367. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data) {
  7368. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7369. }
  7370. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data,
  7371. pb::ExtensionRegistry extensionRegistry) {
  7372. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7373. .BuildParsed();
  7374. }
  7375. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data) {
  7376. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7377. }
  7378. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data,
  7379. pb::ExtensionRegistry extensionRegistry) {
  7380. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7381. .BuildParsed();
  7382. }
  7383. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7384. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7385. }
  7386. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(
  7387. global::System.IO.Stream input,
  7388. pb::ExtensionRegistry extensionRegistry) {
  7389. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7390. .BuildParsed();
  7391. }
  7392. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7393. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7394. }
  7395. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input,
  7396. pb::ExtensionRegistry extensionRegistry) {
  7397. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7398. .BuildParsed();
  7399. }
  7400. public static Builder CreateBuilder() { return new Builder(); }
  7401. public override Builder CreateBuilderForType() { return new Builder(); }
  7402. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestForeignNested prototype) {
  7403. return (Builder) new Builder().MergeFrom(prototype);
  7404. }
  7405. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, Builder> {
  7406. protected override Builder ThisBuilder {
  7407. get { return this; }
  7408. }
  7409. // Construct using global::Google.ProtocolBuffers.TestProtos.TestForeignNested.CreateBuilder()
  7410. public Builder() {}
  7411. global::Google.ProtocolBuffers.TestProtos.TestForeignNested result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7412. protected override global::Google.ProtocolBuffers.TestProtos.TestForeignNested MessageBeingBuilt {
  7413. get { return result; }
  7414. }
  7415. public override Builder Clear() {
  7416. result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7417. return this;
  7418. }
  7419. public override Builder Clone() {
  7420. return new Builder().MergeFrom(result);
  7421. }
  7422. public override pbd::MessageDescriptor DescriptorForType {
  7423. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
  7424. }
  7425. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested DefaultInstanceForType {
  7426. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
  7427. }
  7428. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested BuildPartial() {
  7429. global::Google.ProtocolBuffers.TestProtos.TestForeignNested returnMe = result;
  7430. result = null;
  7431. return returnMe;
  7432. }
  7433. public override Builder MergeFrom(pb::IMessage other) {
  7434. if (other is global::Google.ProtocolBuffers.TestProtos.TestForeignNested) {
  7435. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestForeignNested) other);
  7436. } else {
  7437. base.MergeFrom(other);
  7438. return this;
  7439. }
  7440. }
  7441. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestForeignNested other) {
  7442. if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
  7443. if (other.HasForeignNested) {
  7444. MergeForeignNested(other.ForeignNested);
  7445. }
  7446. this.MergeUnknownFields(other.UnknownFields);
  7447. return this;
  7448. }
  7449. public override Builder MergeFrom(pb::CodedInputStream input) {
  7450. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7451. }
  7452. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7453. pb::UnknownFieldSet.Builder unknownFields =
  7454. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7455. while (true) {
  7456. uint tag = input.ReadTag();
  7457. switch (tag) {
  7458. case 0:
  7459. this.UnknownFields = unknownFields.Build();
  7460. return this;
  7461. default: {
  7462. if (!ParseUnknownField(input, unknownFields,
  7463. extensionRegistry, tag)) {
  7464. this.UnknownFields = unknownFields.Build();
  7465. return this;
  7466. }
  7467. break;
  7468. }
  7469. case 10: {
  7470. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  7471. if (HasForeignNested) {
  7472. subBuilder.MergeFrom(ForeignNested);
  7473. }
  7474. input.ReadMessage(subBuilder, extensionRegistry);
  7475. ForeignNested = subBuilder.BuildPartial();
  7476. break;
  7477. }
  7478. }
  7479. }
  7480. }
  7481. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7482. public bool HasForeignNested {
  7483. get { return result.HasForeignNested; }
  7484. }
  7485. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7486. get { return result.ForeignNested; }
  7487. set { SetForeignNested(value); }
  7488. }
  7489. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7490. result.hasForeignNested = true;
  7491. result.foreignNested_ = value;
  7492. return this;
  7493. }
  7494. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7495. result.hasForeignNested = true;
  7496. result.foreignNested_ = builderForValue.Build();
  7497. return this;
  7498. }
  7499. public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7500. if (result.HasForeignNested &&
  7501. result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7502. result.foreignNested_ =
  7503. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7504. } else {
  7505. result.foreignNested_ = value;
  7506. }
  7507. result.hasForeignNested = true;
  7508. return this;
  7509. }
  7510. public Builder ClearForeignNested() {
  7511. result.hasForeignNested = false;
  7512. result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7513. return this;
  7514. }
  7515. }
  7516. }
  7517. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7518. private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial();
  7519. public static TestEmptyMessage DefaultInstance {
  7520. get { return defaultInstance; }
  7521. }
  7522. public override TestEmptyMessage DefaultInstanceForType {
  7523. get { return defaultInstance; }
  7524. }
  7525. protected override TestEmptyMessage ThisMessage {
  7526. get { return this; }
  7527. }
  7528. public static pbd::MessageDescriptor Descriptor {
  7529. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7530. }
  7531. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
  7532. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7533. }
  7534. public override bool IsInitialized {
  7535. get {
  7536. return true;
  7537. }
  7538. }
  7539. public override void WriteTo(pb::CodedOutputStream output) {
  7540. UnknownFields.WriteTo(output);
  7541. }
  7542. private int memoizedSerializedSize = -1;
  7543. public override int SerializedSize {
  7544. get {
  7545. int size = memoizedSerializedSize;
  7546. if (size != -1) return size;
  7547. size = 0;
  7548. size += UnknownFields.SerializedSize;
  7549. memoizedSerializedSize = size;
  7550. return size;
  7551. }
  7552. }
  7553. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data) {
  7554. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7555. }
  7556. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data,
  7557. pb::ExtensionRegistry extensionRegistry) {
  7558. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7559. .BuildParsed();
  7560. }
  7561. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data) {
  7562. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7563. }
  7564. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data,
  7565. pb::ExtensionRegistry extensionRegistry) {
  7566. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7567. .BuildParsed();
  7568. }
  7569. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7570. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7571. }
  7572. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(
  7573. global::System.IO.Stream input,
  7574. pb::ExtensionRegistry extensionRegistry) {
  7575. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7576. .BuildParsed();
  7577. }
  7578. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7579. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7580. }
  7581. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7582. pb::ExtensionRegistry extensionRegistry) {
  7583. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7584. .BuildParsed();
  7585. }
  7586. public static Builder CreateBuilder() { return new Builder(); }
  7587. public override Builder CreateBuilderForType() { return new Builder(); }
  7588. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage prototype) {
  7589. return (Builder) new Builder().MergeFrom(prototype);
  7590. }
  7591. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, Builder> {
  7592. protected override Builder ThisBuilder {
  7593. get { return this; }
  7594. }
  7595. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.CreateBuilder()
  7596. public Builder() {}
  7597. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7598. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage MessageBeingBuilt {
  7599. get { return result; }
  7600. }
  7601. public override Builder Clear() {
  7602. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7603. return this;
  7604. }
  7605. public override Builder Clone() {
  7606. return new Builder().MergeFrom(result);
  7607. }
  7608. public override pbd::MessageDescriptor DescriptorForType {
  7609. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
  7610. }
  7611. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage DefaultInstanceForType {
  7612. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
  7613. }
  7614. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage BuildPartial() {
  7615. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage returnMe = result;
  7616. result = null;
  7617. return returnMe;
  7618. }
  7619. public override Builder MergeFrom(pb::IMessage other) {
  7620. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) {
  7621. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) other);
  7622. } else {
  7623. base.MergeFrom(other);
  7624. return this;
  7625. }
  7626. }
  7627. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage other) {
  7628. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
  7629. this.MergeUnknownFields(other.UnknownFields);
  7630. return this;
  7631. }
  7632. public override Builder MergeFrom(pb::CodedInputStream input) {
  7633. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7634. }
  7635. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7636. pb::UnknownFieldSet.Builder unknownFields =
  7637. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7638. while (true) {
  7639. uint tag = input.ReadTag();
  7640. switch (tag) {
  7641. case 0:
  7642. this.UnknownFields = unknownFields.Build();
  7643. return this;
  7644. default: {
  7645. if (!ParseUnknownField(input, unknownFields,
  7646. extensionRegistry, tag)) {
  7647. this.UnknownFields = unknownFields.Build();
  7648. return this;
  7649. }
  7650. break;
  7651. }
  7652. }
  7653. }
  7654. }
  7655. }
  7656. }
  7657. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7658. private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial();
  7659. public static TestEmptyMessageWithExtensions DefaultInstance {
  7660. get { return defaultInstance; }
  7661. }
  7662. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7663. get { return defaultInstance; }
  7664. }
  7665. protected override TestEmptyMessageWithExtensions ThisMessage {
  7666. get { return this; }
  7667. }
  7668. public static pbd::MessageDescriptor Descriptor {
  7669. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7670. }
  7671. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
  7672. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7673. }
  7674. public override bool IsInitialized {
  7675. get {
  7676. if (!ExtensionsAreInitialized) return false;
  7677. return true;
  7678. }
  7679. }
  7680. public override void WriteTo(pb::CodedOutputStream output) {
  7681. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7682. extensionWriter.WriteUntil(536870912, output);
  7683. UnknownFields.WriteTo(output);
  7684. }
  7685. private int memoizedSerializedSize = -1;
  7686. public override int SerializedSize {
  7687. get {
  7688. int size = memoizedSerializedSize;
  7689. if (size != -1) return size;
  7690. size = 0;
  7691. size += ExtensionsSerializedSize;
  7692. size += UnknownFields.SerializedSize;
  7693. memoizedSerializedSize = size;
  7694. return size;
  7695. }
  7696. }
  7697. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7698. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7699. }
  7700. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7701. pb::ExtensionRegistry extensionRegistry) {
  7702. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7703. .BuildParsed();
  7704. }
  7705. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7706. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7707. }
  7708. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data,
  7709. pb::ExtensionRegistry extensionRegistry) {
  7710. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7711. .BuildParsed();
  7712. }
  7713. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7714. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7715. }
  7716. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(
  7717. global::System.IO.Stream input,
  7718. pb::ExtensionRegistry extensionRegistry) {
  7719. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7720. .BuildParsed();
  7721. }
  7722. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7723. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7724. }
  7725. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7726. pb::ExtensionRegistry extensionRegistry) {
  7727. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7728. .BuildParsed();
  7729. }
  7730. public static Builder CreateBuilder() { return new Builder(); }
  7731. public override Builder CreateBuilderForType() { return new Builder(); }
  7732. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions prototype) {
  7733. return (Builder) new Builder().MergeFrom(prototype);
  7734. }
  7735. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> {
  7736. protected override Builder ThisBuilder {
  7737. get { return this; }
  7738. }
  7739. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.CreateBuilder()
  7740. public Builder() {}
  7741. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7742. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions MessageBeingBuilt {
  7743. get { return result; }
  7744. }
  7745. public override Builder Clear() {
  7746. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7747. return this;
  7748. }
  7749. public override Builder Clone() {
  7750. return new Builder().MergeFrom(result);
  7751. }
  7752. public override pbd::MessageDescriptor DescriptorForType {
  7753. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
  7754. }
  7755. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions DefaultInstanceForType {
  7756. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
  7757. }
  7758. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions BuildPartial() {
  7759. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions returnMe = result;
  7760. result = null;
  7761. return returnMe;
  7762. }
  7763. public override Builder MergeFrom(pb::IMessage other) {
  7764. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) {
  7765. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) other);
  7766. } else {
  7767. base.MergeFrom(other);
  7768. return this;
  7769. }
  7770. }
  7771. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions other) {
  7772. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
  7773. this.MergeUnknownFields(other.UnknownFields);
  7774. return this;
  7775. }
  7776. public override Builder MergeFrom(pb::CodedInputStream input) {
  7777. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7778. }
  7779. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7780. pb::UnknownFieldSet.Builder unknownFields =
  7781. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7782. while (true) {
  7783. uint tag = input.ReadTag();
  7784. switch (tag) {
  7785. case 0:
  7786. this.UnknownFields = unknownFields.Build();
  7787. return this;
  7788. default: {
  7789. if (!ParseUnknownField(input, unknownFields,
  7790. extensionRegistry, tag)) {
  7791. this.UnknownFields = unknownFields.Build();
  7792. return this;
  7793. }
  7794. break;
  7795. }
  7796. }
  7797. }
  7798. }
  7799. }
  7800. }
  7801. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  7802. private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial();
  7803. public static TestReallyLargeTagNumber DefaultInstance {
  7804. get { return defaultInstance; }
  7805. }
  7806. public override TestReallyLargeTagNumber DefaultInstanceForType {
  7807. get { return defaultInstance; }
  7808. }
  7809. protected override TestReallyLargeTagNumber ThisMessage {
  7810. get { return this; }
  7811. }
  7812. public static pbd::MessageDescriptor Descriptor {
  7813. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  7814. }
  7815. protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
  7816. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  7817. }
  7818. // optional int32 a = 1;
  7819. private bool hasA;
  7820. private int a_ = 0;
  7821. public bool HasA {
  7822. get { return hasA; }
  7823. }
  7824. public int A {
  7825. get { return a_; }
  7826. }
  7827. // optional int32 bb = 268435455;
  7828. private bool hasBb;
  7829. private int bb_ = 0;
  7830. public bool HasBb {
  7831. get { return hasBb; }
  7832. }
  7833. public int Bb {
  7834. get { return bb_; }
  7835. }
  7836. public override bool IsInitialized {
  7837. get {
  7838. return true;
  7839. }
  7840. }
  7841. public override void WriteTo(pb::CodedOutputStream output) {
  7842. if (HasA) {
  7843. output.WriteInt32(1, A);
  7844. }
  7845. if (HasBb) {
  7846. output.WriteInt32(268435455, Bb);
  7847. }
  7848. UnknownFields.WriteTo(output);
  7849. }
  7850. private int memoizedSerializedSize = -1;
  7851. public override int SerializedSize {
  7852. get {
  7853. int size = memoizedSerializedSize;
  7854. if (size != -1) return size;
  7855. size = 0;
  7856. if (HasA) {
  7857. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  7858. }
  7859. if (HasBb) {
  7860. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  7861. }
  7862. size += UnknownFields.SerializedSize;
  7863. memoizedSerializedSize = size;
  7864. return size;
  7865. }
  7866. }
  7867. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  7868. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7869. }
  7870. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  7871. pb::ExtensionRegistry extensionRegistry) {
  7872. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7873. .BuildParsed();
  7874. }
  7875. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data) {
  7876. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7877. }
  7878. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data,
  7879. pb::ExtensionRegistry extensionRegistry) {
  7880. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7881. .BuildParsed();
  7882. }
  7883. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  7884. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7885. }
  7886. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(
  7887. global::System.IO.Stream input,
  7888. pb::ExtensionRegistry extensionRegistry) {
  7889. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7890. .BuildParsed();
  7891. }
  7892. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  7893. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7894. }
  7895. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  7896. pb::ExtensionRegistry extensionRegistry) {
  7897. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7898. .BuildParsed();
  7899. }
  7900. public static Builder CreateBuilder() { return new Builder(); }
  7901. public override Builder CreateBuilderForType() { return new Builder(); }
  7902. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber prototype) {
  7903. return (Builder) new Builder().MergeFrom(prototype);
  7904. }
  7905. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, Builder> {
  7906. protected override Builder ThisBuilder {
  7907. get { return this; }
  7908. }
  7909. // Construct using global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.CreateBuilder()
  7910. public Builder() {}
  7911. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  7912. protected override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber MessageBeingBuilt {
  7913. get { return result; }
  7914. }
  7915. public override Builder Clear() {
  7916. result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  7917. return this;
  7918. }
  7919. public override Builder Clone() {
  7920. return new Builder().MergeFrom(result);
  7921. }
  7922. public override pbd::MessageDescriptor DescriptorForType {
  7923. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
  7924. }
  7925. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber DefaultInstanceForType {
  7926. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
  7927. }
  7928. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber BuildPartial() {
  7929. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber returnMe = result;
  7930. result = null;
  7931. return returnMe;
  7932. }
  7933. public override Builder MergeFrom(pb::IMessage other) {
  7934. if (other is global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) {
  7935. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) other);
  7936. } else {
  7937. base.MergeFrom(other);
  7938. return this;
  7939. }
  7940. }
  7941. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber other) {
  7942. if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
  7943. if (other.HasA) {
  7944. A = other.A;
  7945. }
  7946. if (other.HasBb) {
  7947. Bb = other.Bb;
  7948. }
  7949. this.MergeUnknownFields(other.UnknownFields);
  7950. return this;
  7951. }
  7952. public override Builder MergeFrom(pb::CodedInputStream input) {
  7953. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7954. }
  7955. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7956. pb::UnknownFieldSet.Builder unknownFields =
  7957. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7958. while (true) {
  7959. uint tag = input.ReadTag();
  7960. switch (tag) {
  7961. case 0:
  7962. this.UnknownFields = unknownFields.Build();
  7963. return this;
  7964. default: {
  7965. if (!ParseUnknownField(input, unknownFields,
  7966. extensionRegistry, tag)) {
  7967. this.UnknownFields = unknownFields.Build();
  7968. return this;
  7969. }
  7970. break;
  7971. }
  7972. case 8: {
  7973. A = input.ReadInt32();
  7974. break;
  7975. }
  7976. case 2147483640: {
  7977. Bb = input.ReadInt32();
  7978. break;
  7979. }
  7980. }
  7981. }
  7982. }
  7983. // optional int32 a = 1;
  7984. public bool HasA {
  7985. get { return result.HasA; }
  7986. }
  7987. public int A {
  7988. get { return result.A; }
  7989. set { SetA(value); }
  7990. }
  7991. public Builder SetA(int value) {
  7992. result.hasA = true;
  7993. result.a_ = value;
  7994. return this;
  7995. }
  7996. public Builder ClearA() {
  7997. result.hasA = false;
  7998. result.a_ = 0;
  7999. return this;
  8000. }
  8001. // optional int32 bb = 268435455;
  8002. public bool HasBb {
  8003. get { return result.HasBb; }
  8004. }
  8005. public int Bb {
  8006. get { return result.Bb; }
  8007. set { SetBb(value); }
  8008. }
  8009. public Builder SetBb(int value) {
  8010. result.hasBb = true;
  8011. result.bb_ = value;
  8012. return this;
  8013. }
  8014. public Builder ClearBb() {
  8015. result.hasBb = false;
  8016. result.bb_ = 0;
  8017. return this;
  8018. }
  8019. }
  8020. }
  8021. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8022. private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial();
  8023. public static TestRecursiveMessage DefaultInstance {
  8024. get { return defaultInstance; }
  8025. }
  8026. public override TestRecursiveMessage DefaultInstanceForType {
  8027. get { return defaultInstance; }
  8028. }
  8029. protected override TestRecursiveMessage ThisMessage {
  8030. get { return this; }
  8031. }
  8032. public static pbd::MessageDescriptor Descriptor {
  8033. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8034. }
  8035. protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
  8036. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8037. }
  8038. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8039. private bool hasA;
  8040. private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8041. public bool HasA {
  8042. get { return hasA; }
  8043. }
  8044. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8045. get { return a_; }
  8046. }
  8047. // optional int32 i = 2;
  8048. private bool hasI;
  8049. private int i_ = 0;
  8050. public bool HasI {
  8051. get { return hasI; }
  8052. }
  8053. public int I {
  8054. get { return i_; }
  8055. }
  8056. public override bool IsInitialized {
  8057. get {
  8058. return true;
  8059. }
  8060. }
  8061. public override void WriteTo(pb::CodedOutputStream output) {
  8062. if (HasA) {
  8063. output.WriteMessage(1, A);
  8064. }
  8065. if (HasI) {
  8066. output.WriteInt32(2, I);
  8067. }
  8068. UnknownFields.WriteTo(output);
  8069. }
  8070. private int memoizedSerializedSize = -1;
  8071. public override int SerializedSize {
  8072. get {
  8073. int size = memoizedSerializedSize;
  8074. if (size != -1) return size;
  8075. size = 0;
  8076. if (HasA) {
  8077. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8078. }
  8079. if (HasI) {
  8080. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8081. }
  8082. size += UnknownFields.SerializedSize;
  8083. memoizedSerializedSize = size;
  8084. return size;
  8085. }
  8086. }
  8087. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8088. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8089. }
  8090. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data,
  8091. pb::ExtensionRegistry extensionRegistry) {
  8092. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8093. .BuildParsed();
  8094. }
  8095. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data) {
  8096. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8097. }
  8098. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data,
  8099. pb::ExtensionRegistry extensionRegistry) {
  8100. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8101. .BuildParsed();
  8102. }
  8103. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8104. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8105. }
  8106. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(
  8107. global::System.IO.Stream input,
  8108. pb::ExtensionRegistry extensionRegistry) {
  8109. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8110. .BuildParsed();
  8111. }
  8112. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8113. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8114. }
  8115. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8116. pb::ExtensionRegistry extensionRegistry) {
  8117. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8118. .BuildParsed();
  8119. }
  8120. public static Builder CreateBuilder() { return new Builder(); }
  8121. public override Builder CreateBuilderForType() { return new Builder(); }
  8122. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage prototype) {
  8123. return (Builder) new Builder().MergeFrom(prototype);
  8124. }
  8125. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, Builder> {
  8126. protected override Builder ThisBuilder {
  8127. get { return this; }
  8128. }
  8129. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder()
  8130. public Builder() {}
  8131. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8132. protected override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage MessageBeingBuilt {
  8133. get { return result; }
  8134. }
  8135. public override Builder Clear() {
  8136. result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8137. return this;
  8138. }
  8139. public override Builder Clone() {
  8140. return new Builder().MergeFrom(result);
  8141. }
  8142. public override pbd::MessageDescriptor DescriptorForType {
  8143. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
  8144. }
  8145. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage DefaultInstanceForType {
  8146. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  8147. }
  8148. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage BuildPartial() {
  8149. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage returnMe = result;
  8150. result = null;
  8151. return returnMe;
  8152. }
  8153. public override Builder MergeFrom(pb::IMessage other) {
  8154. if (other is global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) {
  8155. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) other);
  8156. } else {
  8157. base.MergeFrom(other);
  8158. return this;
  8159. }
  8160. }
  8161. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage other) {
  8162. if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
  8163. if (other.HasA) {
  8164. MergeA(other.A);
  8165. }
  8166. if (other.HasI) {
  8167. I = other.I;
  8168. }
  8169. this.MergeUnknownFields(other.UnknownFields);
  8170. return this;
  8171. }
  8172. public override Builder MergeFrom(pb::CodedInputStream input) {
  8173. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8174. }
  8175. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8176. pb::UnknownFieldSet.Builder unknownFields =
  8177. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8178. while (true) {
  8179. uint tag = input.ReadTag();
  8180. switch (tag) {
  8181. case 0:
  8182. this.UnknownFields = unknownFields.Build();
  8183. return this;
  8184. default: {
  8185. if (!ParseUnknownField(input, unknownFields,
  8186. extensionRegistry, tag)) {
  8187. this.UnknownFields = unknownFields.Build();
  8188. return this;
  8189. }
  8190. break;
  8191. }
  8192. case 10: {
  8193. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
  8194. if (HasA) {
  8195. subBuilder.MergeFrom(A);
  8196. }
  8197. input.ReadMessage(subBuilder, extensionRegistry);
  8198. A = subBuilder.BuildPartial();
  8199. break;
  8200. }
  8201. case 16: {
  8202. I = input.ReadInt32();
  8203. break;
  8204. }
  8205. }
  8206. }
  8207. }
  8208. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8209. public bool HasA {
  8210. get { return result.HasA; }
  8211. }
  8212. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8213. get { return result.A; }
  8214. set { SetA(value); }
  8215. }
  8216. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8217. result.hasA = true;
  8218. result.a_ = value;
  8219. return this;
  8220. }
  8221. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
  8222. result.hasA = true;
  8223. result.a_ = builderForValue.Build();
  8224. return this;
  8225. }
  8226. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8227. if (result.HasA &&
  8228. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
  8229. result.a_ =
  8230. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8231. } else {
  8232. result.a_ = value;
  8233. }
  8234. result.hasA = true;
  8235. return this;
  8236. }
  8237. public Builder ClearA() {
  8238. result.hasA = false;
  8239. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8240. return this;
  8241. }
  8242. // optional int32 i = 2;
  8243. public bool HasI {
  8244. get { return result.HasI; }
  8245. }
  8246. public int I {
  8247. get { return result.I; }
  8248. set { SetI(value); }
  8249. }
  8250. public Builder SetI(int value) {
  8251. result.hasI = true;
  8252. result.i_ = value;
  8253. return this;
  8254. }
  8255. public Builder ClearI() {
  8256. result.hasI = false;
  8257. result.i_ = 0;
  8258. return this;
  8259. }
  8260. }
  8261. }
  8262. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8263. private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial();
  8264. public static TestMutualRecursionA DefaultInstance {
  8265. get { return defaultInstance; }
  8266. }
  8267. public override TestMutualRecursionA DefaultInstanceForType {
  8268. get { return defaultInstance; }
  8269. }
  8270. protected override TestMutualRecursionA ThisMessage {
  8271. get { return this; }
  8272. }
  8273. public static pbd::MessageDescriptor Descriptor {
  8274. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8275. }
  8276. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
  8277. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8278. }
  8279. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8280. private bool hasBb;
  8281. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8282. public bool HasBb {
  8283. get { return hasBb; }
  8284. }
  8285. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8286. get { return bb_; }
  8287. }
  8288. public override bool IsInitialized {
  8289. get {
  8290. return true;
  8291. }
  8292. }
  8293. public override void WriteTo(pb::CodedOutputStream output) {
  8294. if (HasBb) {
  8295. output.WriteMessage(1, Bb);
  8296. }
  8297. UnknownFields.WriteTo(output);
  8298. }
  8299. private int memoizedSerializedSize = -1;
  8300. public override int SerializedSize {
  8301. get {
  8302. int size = memoizedSerializedSize;
  8303. if (size != -1) return size;
  8304. size = 0;
  8305. if (HasBb) {
  8306. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8307. }
  8308. size += UnknownFields.SerializedSize;
  8309. memoizedSerializedSize = size;
  8310. return size;
  8311. }
  8312. }
  8313. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8314. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8315. }
  8316. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data,
  8317. pb::ExtensionRegistry extensionRegistry) {
  8318. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8319. .BuildParsed();
  8320. }
  8321. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data) {
  8322. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8323. }
  8324. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data,
  8325. pb::ExtensionRegistry extensionRegistry) {
  8326. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8327. .BuildParsed();
  8328. }
  8329. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8330. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8331. }
  8332. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(
  8333. global::System.IO.Stream input,
  8334. pb::ExtensionRegistry extensionRegistry) {
  8335. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8336. .BuildParsed();
  8337. }
  8338. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8339. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8340. }
  8341. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8342. pb::ExtensionRegistry extensionRegistry) {
  8343. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8344. .BuildParsed();
  8345. }
  8346. public static Builder CreateBuilder() { return new Builder(); }
  8347. public override Builder CreateBuilderForType() { return new Builder(); }
  8348. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA prototype) {
  8349. return (Builder) new Builder().MergeFrom(prototype);
  8350. }
  8351. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, Builder> {
  8352. protected override Builder ThisBuilder {
  8353. get { return this; }
  8354. }
  8355. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder()
  8356. public Builder() {}
  8357. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8358. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA MessageBeingBuilt {
  8359. get { return result; }
  8360. }
  8361. public override Builder Clear() {
  8362. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8363. return this;
  8364. }
  8365. public override Builder Clone() {
  8366. return new Builder().MergeFrom(result);
  8367. }
  8368. public override pbd::MessageDescriptor DescriptorForType {
  8369. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
  8370. }
  8371. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA DefaultInstanceForType {
  8372. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  8373. }
  8374. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA BuildPartial() {
  8375. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA returnMe = result;
  8376. result = null;
  8377. return returnMe;
  8378. }
  8379. public override Builder MergeFrom(pb::IMessage other) {
  8380. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) {
  8381. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) other);
  8382. } else {
  8383. base.MergeFrom(other);
  8384. return this;
  8385. }
  8386. }
  8387. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA other) {
  8388. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
  8389. if (other.HasBb) {
  8390. MergeBb(other.Bb);
  8391. }
  8392. this.MergeUnknownFields(other.UnknownFields);
  8393. return this;
  8394. }
  8395. public override Builder MergeFrom(pb::CodedInputStream input) {
  8396. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8397. }
  8398. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8399. pb::UnknownFieldSet.Builder unknownFields =
  8400. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8401. while (true) {
  8402. uint tag = input.ReadTag();
  8403. switch (tag) {
  8404. case 0:
  8405. this.UnknownFields = unknownFields.Build();
  8406. return this;
  8407. default: {
  8408. if (!ParseUnknownField(input, unknownFields,
  8409. extensionRegistry, tag)) {
  8410. this.UnknownFields = unknownFields.Build();
  8411. return this;
  8412. }
  8413. break;
  8414. }
  8415. case 10: {
  8416. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
  8417. if (HasBb) {
  8418. subBuilder.MergeFrom(Bb);
  8419. }
  8420. input.ReadMessage(subBuilder, extensionRegistry);
  8421. Bb = subBuilder.BuildPartial();
  8422. break;
  8423. }
  8424. }
  8425. }
  8426. }
  8427. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8428. public bool HasBb {
  8429. get { return result.HasBb; }
  8430. }
  8431. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8432. get { return result.Bb; }
  8433. set { SetBb(value); }
  8434. }
  8435. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8436. result.hasBb = true;
  8437. result.bb_ = value;
  8438. return this;
  8439. }
  8440. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
  8441. result.hasBb = true;
  8442. result.bb_ = builderForValue.Build();
  8443. return this;
  8444. }
  8445. public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8446. if (result.HasBb &&
  8447. result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
  8448. result.bb_ =
  8449. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8450. } else {
  8451. result.bb_ = value;
  8452. }
  8453. result.hasBb = true;
  8454. return this;
  8455. }
  8456. public Builder ClearBb() {
  8457. result.hasBb = false;
  8458. result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8459. return this;
  8460. }
  8461. }
  8462. }
  8463. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8464. private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial();
  8465. public static TestMutualRecursionB DefaultInstance {
  8466. get { return defaultInstance; }
  8467. }
  8468. public override TestMutualRecursionB DefaultInstanceForType {
  8469. get { return defaultInstance; }
  8470. }
  8471. protected override TestMutualRecursionB ThisMessage {
  8472. get { return this; }
  8473. }
  8474. public static pbd::MessageDescriptor Descriptor {
  8475. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8476. }
  8477. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
  8478. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8479. }
  8480. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8481. private bool hasA;
  8482. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8483. public bool HasA {
  8484. get { return hasA; }
  8485. }
  8486. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8487. get { return a_; }
  8488. }
  8489. // optional int32 optional_int32 = 2;
  8490. private bool hasOptionalInt32;
  8491. private int optionalInt32_ = 0;
  8492. public bool HasOptionalInt32 {
  8493. get { return hasOptionalInt32; }
  8494. }
  8495. public int OptionalInt32 {
  8496. get { return optionalInt32_; }
  8497. }
  8498. public override bool IsInitialized {
  8499. get {
  8500. return true;
  8501. }
  8502. }
  8503. public override void WriteTo(pb::CodedOutputStream output) {
  8504. if (HasA) {
  8505. output.WriteMessage(1, A);
  8506. }
  8507. if (HasOptionalInt32) {
  8508. output.WriteInt32(2, OptionalInt32);
  8509. }
  8510. UnknownFields.WriteTo(output);
  8511. }
  8512. private int memoizedSerializedSize = -1;
  8513. public override int SerializedSize {
  8514. get {
  8515. int size = memoizedSerializedSize;
  8516. if (size != -1) return size;
  8517. size = 0;
  8518. if (HasA) {
  8519. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8520. }
  8521. if (HasOptionalInt32) {
  8522. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8523. }
  8524. size += UnknownFields.SerializedSize;
  8525. memoizedSerializedSize = size;
  8526. return size;
  8527. }
  8528. }
  8529. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8530. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8531. }
  8532. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data,
  8533. pb::ExtensionRegistry extensionRegistry) {
  8534. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8535. .BuildParsed();
  8536. }
  8537. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data) {
  8538. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8539. }
  8540. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data,
  8541. pb::ExtensionRegistry extensionRegistry) {
  8542. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8543. .BuildParsed();
  8544. }
  8545. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8546. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8547. }
  8548. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(
  8549. global::System.IO.Stream input,
  8550. pb::ExtensionRegistry extensionRegistry) {
  8551. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8552. .BuildParsed();
  8553. }
  8554. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8555. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8556. }
  8557. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8558. pb::ExtensionRegistry extensionRegistry) {
  8559. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8560. .BuildParsed();
  8561. }
  8562. public static Builder CreateBuilder() { return new Builder(); }
  8563. public override Builder CreateBuilderForType() { return new Builder(); }
  8564. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB prototype) {
  8565. return (Builder) new Builder().MergeFrom(prototype);
  8566. }
  8567. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, Builder> {
  8568. protected override Builder ThisBuilder {
  8569. get { return this; }
  8570. }
  8571. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder()
  8572. public Builder() {}
  8573. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8574. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB MessageBeingBuilt {
  8575. get { return result; }
  8576. }
  8577. public override Builder Clear() {
  8578. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8579. return this;
  8580. }
  8581. public override Builder Clone() {
  8582. return new Builder().MergeFrom(result);
  8583. }
  8584. public override pbd::MessageDescriptor DescriptorForType {
  8585. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
  8586. }
  8587. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB DefaultInstanceForType {
  8588. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  8589. }
  8590. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB BuildPartial() {
  8591. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB returnMe = result;
  8592. result = null;
  8593. return returnMe;
  8594. }
  8595. public override Builder MergeFrom(pb::IMessage other) {
  8596. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) {
  8597. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) other);
  8598. } else {
  8599. base.MergeFrom(other);
  8600. return this;
  8601. }
  8602. }
  8603. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB other) {
  8604. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
  8605. if (other.HasA) {
  8606. MergeA(other.A);
  8607. }
  8608. if (other.HasOptionalInt32) {
  8609. OptionalInt32 = other.OptionalInt32;
  8610. }
  8611. this.MergeUnknownFields(other.UnknownFields);
  8612. return this;
  8613. }
  8614. public override Builder MergeFrom(pb::CodedInputStream input) {
  8615. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8616. }
  8617. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8618. pb::UnknownFieldSet.Builder unknownFields =
  8619. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8620. while (true) {
  8621. uint tag = input.ReadTag();
  8622. switch (tag) {
  8623. case 0:
  8624. this.UnknownFields = unknownFields.Build();
  8625. return this;
  8626. default: {
  8627. if (!ParseUnknownField(input, unknownFields,
  8628. extensionRegistry, tag)) {
  8629. this.UnknownFields = unknownFields.Build();
  8630. return this;
  8631. }
  8632. break;
  8633. }
  8634. case 10: {
  8635. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
  8636. if (HasA) {
  8637. subBuilder.MergeFrom(A);
  8638. }
  8639. input.ReadMessage(subBuilder, extensionRegistry);
  8640. A = subBuilder.BuildPartial();
  8641. break;
  8642. }
  8643. case 16: {
  8644. OptionalInt32 = input.ReadInt32();
  8645. break;
  8646. }
  8647. }
  8648. }
  8649. }
  8650. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8651. public bool HasA {
  8652. get { return result.HasA; }
  8653. }
  8654. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8655. get { return result.A; }
  8656. set { SetA(value); }
  8657. }
  8658. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8659. result.hasA = true;
  8660. result.a_ = value;
  8661. return this;
  8662. }
  8663. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
  8664. result.hasA = true;
  8665. result.a_ = builderForValue.Build();
  8666. return this;
  8667. }
  8668. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8669. if (result.HasA &&
  8670. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
  8671. result.a_ =
  8672. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8673. } else {
  8674. result.a_ = value;
  8675. }
  8676. result.hasA = true;
  8677. return this;
  8678. }
  8679. public Builder ClearA() {
  8680. result.hasA = false;
  8681. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8682. return this;
  8683. }
  8684. // optional int32 optional_int32 = 2;
  8685. public bool HasOptionalInt32 {
  8686. get { return result.HasOptionalInt32; }
  8687. }
  8688. public int OptionalInt32 {
  8689. get { return result.OptionalInt32; }
  8690. set { SetOptionalInt32(value); }
  8691. }
  8692. public Builder SetOptionalInt32(int value) {
  8693. result.hasOptionalInt32 = true;
  8694. result.optionalInt32_ = value;
  8695. return this;
  8696. }
  8697. public Builder ClearOptionalInt32() {
  8698. result.hasOptionalInt32 = false;
  8699. result.optionalInt32_ = 0;
  8700. return this;
  8701. }
  8702. }
  8703. }
  8704. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8705. private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial();
  8706. public static TestDupFieldNumber DefaultInstance {
  8707. get { return defaultInstance; }
  8708. }
  8709. public override TestDupFieldNumber DefaultInstanceForType {
  8710. get { return defaultInstance; }
  8711. }
  8712. protected override TestDupFieldNumber ThisMessage {
  8713. get { return this; }
  8714. }
  8715. public static pbd::MessageDescriptor Descriptor {
  8716. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8717. }
  8718. protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
  8719. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8720. }
  8721. #region Nested types
  8722. public static class Types {
  8723. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8724. private static readonly Foo defaultInstance = new Builder().BuildPartial();
  8725. public static Foo DefaultInstance {
  8726. get { return defaultInstance; }
  8727. }
  8728. public override Foo DefaultInstanceForType {
  8729. get { return defaultInstance; }
  8730. }
  8731. protected override Foo ThisMessage {
  8732. get { return this; }
  8733. }
  8734. public static pbd::MessageDescriptor Descriptor {
  8735. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8736. }
  8737. protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
  8738. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8739. }
  8740. // optional int32 a = 1;
  8741. private bool hasA;
  8742. private int a_ = 0;
  8743. public bool HasA {
  8744. get { return hasA; }
  8745. }
  8746. public int A {
  8747. get { return a_; }
  8748. }
  8749. public override bool IsInitialized {
  8750. get {
  8751. return true;
  8752. }
  8753. }
  8754. public override void WriteTo(pb::CodedOutputStream output) {
  8755. if (HasA) {
  8756. output.WriteInt32(1, A);
  8757. }
  8758. UnknownFields.WriteTo(output);
  8759. }
  8760. private int memoizedSerializedSize = -1;
  8761. public override int SerializedSize {
  8762. get {
  8763. int size = memoizedSerializedSize;
  8764. if (size != -1) return size;
  8765. size = 0;
  8766. if (HasA) {
  8767. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8768. }
  8769. size += UnknownFields.SerializedSize;
  8770. memoizedSerializedSize = size;
  8771. return size;
  8772. }
  8773. }
  8774. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8775. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8776. }
  8777. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  8778. pb::ExtensionRegistry extensionRegistry) {
  8779. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8780. .BuildParsed();
  8781. }
  8782. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  8783. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8784. }
  8785. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data,
  8786. pb::ExtensionRegistry extensionRegistry) {
  8787. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8788. .BuildParsed();
  8789. }
  8790. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  8791. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8792. }
  8793. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(
  8794. global::System.IO.Stream input,
  8795. pb::ExtensionRegistry extensionRegistry) {
  8796. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8797. .BuildParsed();
  8798. }
  8799. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  8800. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8801. }
  8802. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  8803. pb::ExtensionRegistry extensionRegistry) {
  8804. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8805. .BuildParsed();
  8806. }
  8807. public static Builder CreateBuilder() { return new Builder(); }
  8808. public override Builder CreateBuilderForType() { return new Builder(); }
  8809. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo prototype) {
  8810. return (Builder) new Builder().MergeFrom(prototype);
  8811. }
  8812. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, Builder> {
  8813. protected override Builder ThisBuilder {
  8814. get { return this; }
  8815. }
  8816. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder()
  8817. public Builder() {}
  8818. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  8819. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  8820. get { return result; }
  8821. }
  8822. public override Builder Clear() {
  8823. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  8824. return this;
  8825. }
  8826. public override Builder Clone() {
  8827. return new Builder().MergeFrom(result);
  8828. }
  8829. public override pbd::MessageDescriptor DescriptorForType {
  8830. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
  8831. }
  8832. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  8833. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  8834. }
  8835. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo BuildPartial() {
  8836. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo returnMe = result;
  8837. result = null;
  8838. return returnMe;
  8839. }
  8840. public override Builder MergeFrom(pb::IMessage other) {
  8841. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) {
  8842. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) other);
  8843. } else {
  8844. base.MergeFrom(other);
  8845. return this;
  8846. }
  8847. }
  8848. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo other) {
  8849. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  8850. if (other.HasA) {
  8851. A = other.A;
  8852. }
  8853. this.MergeUnknownFields(other.UnknownFields);
  8854. return this;
  8855. }
  8856. public override Builder MergeFrom(pb::CodedInputStream input) {
  8857. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8858. }
  8859. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8860. pb::UnknownFieldSet.Builder unknownFields =
  8861. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8862. while (true) {
  8863. uint tag = input.ReadTag();
  8864. switch (tag) {
  8865. case 0:
  8866. this.UnknownFields = unknownFields.Build();
  8867. return this;
  8868. default: {
  8869. if (!ParseUnknownField(input, unknownFields,
  8870. extensionRegistry, tag)) {
  8871. this.UnknownFields = unknownFields.Build();
  8872. return this;
  8873. }
  8874. break;
  8875. }
  8876. case 8: {
  8877. A = input.ReadInt32();
  8878. break;
  8879. }
  8880. }
  8881. }
  8882. }
  8883. // optional int32 a = 1;
  8884. public bool HasA {
  8885. get { return result.HasA; }
  8886. }
  8887. public int A {
  8888. get { return result.A; }
  8889. set { SetA(value); }
  8890. }
  8891. public Builder SetA(int value) {
  8892. result.hasA = true;
  8893. result.a_ = value;
  8894. return this;
  8895. }
  8896. public Builder ClearA() {
  8897. result.hasA = false;
  8898. result.a_ = 0;
  8899. return this;
  8900. }
  8901. }
  8902. }
  8903. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  8904. private static readonly Bar defaultInstance = new Builder().BuildPartial();
  8905. public static Bar DefaultInstance {
  8906. get { return defaultInstance; }
  8907. }
  8908. public override Bar DefaultInstanceForType {
  8909. get { return defaultInstance; }
  8910. }
  8911. protected override Bar ThisMessage {
  8912. get { return this; }
  8913. }
  8914. public static pbd::MessageDescriptor Descriptor {
  8915. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  8916. }
  8917. protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
  8918. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  8919. }
  8920. // optional int32 a = 1;
  8921. private bool hasA;
  8922. private int a_ = 0;
  8923. public bool HasA {
  8924. get { return hasA; }
  8925. }
  8926. public int A {
  8927. get { return a_; }
  8928. }
  8929. public override bool IsInitialized {
  8930. get {
  8931. return true;
  8932. }
  8933. }
  8934. public override void WriteTo(pb::CodedOutputStream output) {
  8935. if (HasA) {
  8936. output.WriteInt32(1, A);
  8937. }
  8938. UnknownFields.WriteTo(output);
  8939. }
  8940. private int memoizedSerializedSize = -1;
  8941. public override int SerializedSize {
  8942. get {
  8943. int size = memoizedSerializedSize;
  8944. if (size != -1) return size;
  8945. size = 0;
  8946. if (HasA) {
  8947. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8948. }
  8949. size += UnknownFields.SerializedSize;
  8950. memoizedSerializedSize = size;
  8951. return size;
  8952. }
  8953. }
  8954. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  8955. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8956. }
  8957. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  8958. pb::ExtensionRegistry extensionRegistry) {
  8959. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8960. .BuildParsed();
  8961. }
  8962. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  8963. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8964. }
  8965. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data,
  8966. pb::ExtensionRegistry extensionRegistry) {
  8967. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8968. .BuildParsed();
  8969. }
  8970. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  8971. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8972. }
  8973. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(
  8974. global::System.IO.Stream input,
  8975. pb::ExtensionRegistry extensionRegistry) {
  8976. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8977. .BuildParsed();
  8978. }
  8979. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  8980. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8981. }
  8982. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  8983. pb::ExtensionRegistry extensionRegistry) {
  8984. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8985. .BuildParsed();
  8986. }
  8987. public static Builder CreateBuilder() { return new Builder(); }
  8988. public override Builder CreateBuilderForType() { return new Builder(); }
  8989. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar prototype) {
  8990. return (Builder) new Builder().MergeFrom(prototype);
  8991. }
  8992. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, Builder> {
  8993. protected override Builder ThisBuilder {
  8994. get { return this; }
  8995. }
  8996. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder()
  8997. public Builder() {}
  8998. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  8999. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9000. get { return result; }
  9001. }
  9002. public override Builder Clear() {
  9003. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9004. return this;
  9005. }
  9006. public override Builder Clone() {
  9007. return new Builder().MergeFrom(result);
  9008. }
  9009. public override pbd::MessageDescriptor DescriptorForType {
  9010. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
  9011. }
  9012. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9013. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9014. }
  9015. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar BuildPartial() {
  9016. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar returnMe = result;
  9017. result = null;
  9018. return returnMe;
  9019. }
  9020. public override Builder MergeFrom(pb::IMessage other) {
  9021. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) {
  9022. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) other);
  9023. } else {
  9024. base.MergeFrom(other);
  9025. return this;
  9026. }
  9027. }
  9028. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar other) {
  9029. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9030. if (other.HasA) {
  9031. A = other.A;
  9032. }
  9033. this.MergeUnknownFields(other.UnknownFields);
  9034. return this;
  9035. }
  9036. public override Builder MergeFrom(pb::CodedInputStream input) {
  9037. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9038. }
  9039. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9040. pb::UnknownFieldSet.Builder unknownFields =
  9041. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9042. while (true) {
  9043. uint tag = input.ReadTag();
  9044. switch (tag) {
  9045. case 0:
  9046. this.UnknownFields = unknownFields.Build();
  9047. return this;
  9048. default: {
  9049. if (!ParseUnknownField(input, unknownFields,
  9050. extensionRegistry, tag)) {
  9051. this.UnknownFields = unknownFields.Build();
  9052. return this;
  9053. }
  9054. break;
  9055. }
  9056. case 8: {
  9057. A = input.ReadInt32();
  9058. break;
  9059. }
  9060. }
  9061. }
  9062. }
  9063. // optional int32 a = 1;
  9064. public bool HasA {
  9065. get { return result.HasA; }
  9066. }
  9067. public int A {
  9068. get { return result.A; }
  9069. set { SetA(value); }
  9070. }
  9071. public Builder SetA(int value) {
  9072. result.hasA = true;
  9073. result.a_ = value;
  9074. return this;
  9075. }
  9076. public Builder ClearA() {
  9077. result.hasA = false;
  9078. result.a_ = 0;
  9079. return this;
  9080. }
  9081. }
  9082. }
  9083. }
  9084. #endregion
  9085. // optional int32 a = 1;
  9086. private bool hasA;
  9087. private int a_ = 0;
  9088. public bool HasA {
  9089. get { return hasA; }
  9090. }
  9091. public int A {
  9092. get { return a_; }
  9093. }
  9094. // optional group Foo = 2 {
  9095. private bool hasFoo;
  9096. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9097. public bool HasFoo {
  9098. get { return hasFoo; }
  9099. }
  9100. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9101. get { return foo_; }
  9102. }
  9103. // optional group Bar = 3 {
  9104. private bool hasBar;
  9105. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9106. public bool HasBar {
  9107. get { return hasBar; }
  9108. }
  9109. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9110. get { return bar_; }
  9111. }
  9112. public override bool IsInitialized {
  9113. get {
  9114. return true;
  9115. }
  9116. }
  9117. public override void WriteTo(pb::CodedOutputStream output) {
  9118. if (HasA) {
  9119. output.WriteInt32(1, A);
  9120. }
  9121. if (HasFoo) {
  9122. output.WriteGroup(2, Foo);
  9123. }
  9124. if (HasBar) {
  9125. output.WriteGroup(3, Bar);
  9126. }
  9127. UnknownFields.WriteTo(output);
  9128. }
  9129. private int memoizedSerializedSize = -1;
  9130. public override int SerializedSize {
  9131. get {
  9132. int size = memoizedSerializedSize;
  9133. if (size != -1) return size;
  9134. size = 0;
  9135. if (HasA) {
  9136. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9137. }
  9138. if (HasFoo) {
  9139. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9140. }
  9141. if (HasBar) {
  9142. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9143. }
  9144. size += UnknownFields.SerializedSize;
  9145. memoizedSerializedSize = size;
  9146. return size;
  9147. }
  9148. }
  9149. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9150. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9151. }
  9152. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data,
  9153. pb::ExtensionRegistry extensionRegistry) {
  9154. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9155. .BuildParsed();
  9156. }
  9157. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data) {
  9158. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9159. }
  9160. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data,
  9161. pb::ExtensionRegistry extensionRegistry) {
  9162. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9163. .BuildParsed();
  9164. }
  9165. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9166. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9167. }
  9168. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(
  9169. global::System.IO.Stream input,
  9170. pb::ExtensionRegistry extensionRegistry) {
  9171. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9172. .BuildParsed();
  9173. }
  9174. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9175. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9176. }
  9177. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9178. pb::ExtensionRegistry extensionRegistry) {
  9179. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9180. .BuildParsed();
  9181. }
  9182. public static Builder CreateBuilder() { return new Builder(); }
  9183. public override Builder CreateBuilderForType() { return new Builder(); }
  9184. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber prototype) {
  9185. return (Builder) new Builder().MergeFrom(prototype);
  9186. }
  9187. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, Builder> {
  9188. protected override Builder ThisBuilder {
  9189. get { return this; }
  9190. }
  9191. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.CreateBuilder()
  9192. public Builder() {}
  9193. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9194. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber MessageBeingBuilt {
  9195. get { return result; }
  9196. }
  9197. public override Builder Clear() {
  9198. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9199. return this;
  9200. }
  9201. public override Builder Clone() {
  9202. return new Builder().MergeFrom(result);
  9203. }
  9204. public override pbd::MessageDescriptor DescriptorForType {
  9205. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
  9206. }
  9207. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber DefaultInstanceForType {
  9208. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
  9209. }
  9210. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber BuildPartial() {
  9211. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber returnMe = result;
  9212. result = null;
  9213. return returnMe;
  9214. }
  9215. public override Builder MergeFrom(pb::IMessage other) {
  9216. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) {
  9217. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) other);
  9218. } else {
  9219. base.MergeFrom(other);
  9220. return this;
  9221. }
  9222. }
  9223. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber other) {
  9224. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
  9225. if (other.HasA) {
  9226. A = other.A;
  9227. }
  9228. if (other.HasFoo) {
  9229. MergeFoo(other.Foo);
  9230. }
  9231. if (other.HasBar) {
  9232. MergeBar(other.Bar);
  9233. }
  9234. this.MergeUnknownFields(other.UnknownFields);
  9235. return this;
  9236. }
  9237. public override Builder MergeFrom(pb::CodedInputStream input) {
  9238. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9239. }
  9240. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9241. pb::UnknownFieldSet.Builder unknownFields =
  9242. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9243. while (true) {
  9244. uint tag = input.ReadTag();
  9245. switch (tag) {
  9246. case 0:
  9247. this.UnknownFields = unknownFields.Build();
  9248. return this;
  9249. default: {
  9250. if (!ParseUnknownField(input, unknownFields,
  9251. extensionRegistry, tag)) {
  9252. this.UnknownFields = unknownFields.Build();
  9253. return this;
  9254. }
  9255. break;
  9256. }
  9257. case 8: {
  9258. A = input.ReadInt32();
  9259. break;
  9260. }
  9261. case 19: {
  9262. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
  9263. if (HasFoo) {
  9264. subBuilder.MergeFrom(Foo);
  9265. }
  9266. input.ReadGroup(2, subBuilder, extensionRegistry);
  9267. Foo = subBuilder.BuildPartial();
  9268. break;
  9269. }
  9270. case 27: {
  9271. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
  9272. if (HasBar) {
  9273. subBuilder.MergeFrom(Bar);
  9274. }
  9275. input.ReadGroup(3, subBuilder, extensionRegistry);
  9276. Bar = subBuilder.BuildPartial();
  9277. break;
  9278. }
  9279. }
  9280. }
  9281. }
  9282. // optional int32 a = 1;
  9283. public bool HasA {
  9284. get { return result.HasA; }
  9285. }
  9286. public int A {
  9287. get { return result.A; }
  9288. set { SetA(value); }
  9289. }
  9290. public Builder SetA(int value) {
  9291. result.hasA = true;
  9292. result.a_ = value;
  9293. return this;
  9294. }
  9295. public Builder ClearA() {
  9296. result.hasA = false;
  9297. result.a_ = 0;
  9298. return this;
  9299. }
  9300. // optional group Foo = 2 {
  9301. public bool HasFoo {
  9302. get { return result.HasFoo; }
  9303. }
  9304. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9305. get { return result.Foo; }
  9306. set { SetFoo(value); }
  9307. }
  9308. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9309. result.hasFoo = true;
  9310. result.foo_ = value;
  9311. return this;
  9312. }
  9313. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9314. result.hasFoo = true;
  9315. result.foo_ = builderForValue.Build();
  9316. return this;
  9317. }
  9318. public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9319. if (result.HasFoo &&
  9320. result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9321. result.foo_ =
  9322. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9323. } else {
  9324. result.foo_ = value;
  9325. }
  9326. result.hasFoo = true;
  9327. return this;
  9328. }
  9329. public Builder ClearFoo() {
  9330. result.hasFoo = false;
  9331. result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9332. return this;
  9333. }
  9334. // optional group Bar = 3 {
  9335. public bool HasBar {
  9336. get { return result.HasBar; }
  9337. }
  9338. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9339. get { return result.Bar; }
  9340. set { SetBar(value); }
  9341. }
  9342. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9343. result.hasBar = true;
  9344. result.bar_ = value;
  9345. return this;
  9346. }
  9347. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9348. result.hasBar = true;
  9349. result.bar_ = builderForValue.Build();
  9350. return this;
  9351. }
  9352. public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9353. if (result.HasBar &&
  9354. result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9355. result.bar_ =
  9356. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9357. } else {
  9358. result.bar_ = value;
  9359. }
  9360. result.hasBar = true;
  9361. return this;
  9362. }
  9363. public Builder ClearBar() {
  9364. result.hasBar = false;
  9365. result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9366. return this;
  9367. }
  9368. }
  9369. }
  9370. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9371. private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial();
  9372. public static TestNestedMessageHasBits DefaultInstance {
  9373. get { return defaultInstance; }
  9374. }
  9375. public override TestNestedMessageHasBits DefaultInstanceForType {
  9376. get { return defaultInstance; }
  9377. }
  9378. protected override TestNestedMessageHasBits ThisMessage {
  9379. get { return this; }
  9380. }
  9381. public static pbd::MessageDescriptor Descriptor {
  9382. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9383. }
  9384. protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
  9385. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9386. }
  9387. #region Nested types
  9388. public static class Types {
  9389. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9390. private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
  9391. public static NestedMessage DefaultInstance {
  9392. get { return defaultInstance; }
  9393. }
  9394. public override NestedMessage DefaultInstanceForType {
  9395. get { return defaultInstance; }
  9396. }
  9397. protected override NestedMessage ThisMessage {
  9398. get { return this; }
  9399. }
  9400. public static pbd::MessageDescriptor Descriptor {
  9401. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9402. }
  9403. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  9404. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9405. }
  9406. // repeated int32 nestedmessage_repeated_int32 = 1;
  9407. private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>();
  9408. public scg::IList<int> NestedmessageRepeatedInt32List {
  9409. get { return nestedmessageRepeatedInt32_; }
  9410. }
  9411. public int NestedmessageRepeatedInt32Count {
  9412. get { return nestedmessageRepeatedInt32_.Count; }
  9413. }
  9414. public int GetNestedmessageRepeatedInt32(int index) {
  9415. return nestedmessageRepeatedInt32_[index];
  9416. }
  9417. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9418. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9419. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9420. get { return nestedmessageRepeatedForeignmessage_; }
  9421. }
  9422. public int NestedmessageRepeatedForeignmessageCount
  9423. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9424. }
  9425. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9426. return nestedmessageRepeatedForeignmessage_ [index];
  9427. }
  9428. public override bool IsInitialized {
  9429. get {
  9430. return true;
  9431. }
  9432. }
  9433. public override void WriteTo(pb::CodedOutputStream output) {
  9434. foreach (int element in NestedmessageRepeatedInt32List) {
  9435. output.WriteInt32(1, element);
  9436. }
  9437. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9438. output.WriteMessage(2, element);
  9439. }
  9440. UnknownFields.WriteTo(output);
  9441. }
  9442. private int memoizedSerializedSize = -1;
  9443. public override int SerializedSize {
  9444. get {
  9445. int size = memoizedSerializedSize;
  9446. if (size != -1) return size;
  9447. size = 0;
  9448. foreach (int element in NestedmessageRepeatedInt32List) {
  9449. size += pb::CodedOutputStream
  9450. .ComputeInt32Size(1, element);
  9451. }
  9452. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9453. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9454. }
  9455. size += UnknownFields.SerializedSize;
  9456. memoizedSerializedSize = size;
  9457. return size;
  9458. }
  9459. }
  9460. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9461. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9462. }
  9463. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9464. pb::ExtensionRegistry extensionRegistry) {
  9465. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9466. .BuildParsed();
  9467. }
  9468. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9469. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9470. }
  9471. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data,
  9472. pb::ExtensionRegistry extensionRegistry) {
  9473. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9474. .BuildParsed();
  9475. }
  9476. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9477. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9478. }
  9479. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9480. global::System.IO.Stream input,
  9481. pb::ExtensionRegistry extensionRegistry) {
  9482. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9483. .BuildParsed();
  9484. }
  9485. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9486. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9487. }
  9488. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9489. pb::ExtensionRegistry extensionRegistry) {
  9490. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9491. .BuildParsed();
  9492. }
  9493. public static Builder CreateBuilder() { return new Builder(); }
  9494. public override Builder CreateBuilderForType() { return new Builder(); }
  9495. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9496. return (Builder) new Builder().MergeFrom(prototype);
  9497. }
  9498. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9499. protected override Builder ThisBuilder {
  9500. get { return this; }
  9501. }
  9502. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9503. public Builder() {}
  9504. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9505. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9506. get { return result; }
  9507. }
  9508. public override Builder Clear() {
  9509. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9510. return this;
  9511. }
  9512. public override Builder Clone() {
  9513. return new Builder().MergeFrom(result);
  9514. }
  9515. public override pbd::MessageDescriptor DescriptorForType {
  9516. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9517. }
  9518. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9519. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9520. }
  9521. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9522. result.nestedmessageRepeatedInt32_.MakeReadOnly();
  9523. result.nestedmessageRepeatedForeignmessage_.MakeReadOnly();
  9524. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9525. result = null;
  9526. return returnMe;
  9527. }
  9528. public override Builder MergeFrom(pb::IMessage other) {
  9529. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) {
  9530. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) other);
  9531. } else {
  9532. base.MergeFrom(other);
  9533. return this;
  9534. }
  9535. }
  9536. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage other) {
  9537. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9538. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9539. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9540. }
  9541. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9542. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9543. }
  9544. this.MergeUnknownFields(other.UnknownFields);
  9545. return this;
  9546. }
  9547. public override Builder MergeFrom(pb::CodedInputStream input) {
  9548. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9549. }
  9550. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9551. pb::UnknownFieldSet.Builder unknownFields =
  9552. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9553. while (true) {
  9554. uint tag = input.ReadTag();
  9555. switch (tag) {
  9556. case 0:
  9557. this.UnknownFields = unknownFields.Build();
  9558. return this;
  9559. default: {
  9560. if (!ParseUnknownField(input, unknownFields,
  9561. extensionRegistry, tag)) {
  9562. this.UnknownFields = unknownFields.Build();
  9563. return this;
  9564. }
  9565. break;
  9566. }
  9567. case 8: {
  9568. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9569. break;
  9570. }
  9571. case 18: {
  9572. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  9573. input.ReadMessage(subBuilder, extensionRegistry);
  9574. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9575. break;
  9576. }
  9577. }
  9578. }
  9579. }
  9580. // repeated int32 nestedmessage_repeated_int32 = 1;
  9581. public scg::IList<int> NestedmessageRepeatedInt32List {
  9582. get { return result.nestedmessageRepeatedInt32_; }
  9583. }
  9584. public int NestedmessageRepeatedInt32Count {
  9585. get { return result.NestedmessageRepeatedInt32Count; }
  9586. }
  9587. public int GetNestedmessageRepeatedInt32(int index) {
  9588. return result.GetNestedmessageRepeatedInt32(index);
  9589. }
  9590. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9591. result.nestedmessageRepeatedInt32_[index] = value;
  9592. return this;
  9593. }
  9594. public Builder AddNestedmessageRepeatedInt32(int value) {
  9595. result.nestedmessageRepeatedInt32_.Add(value);
  9596. return this;
  9597. }
  9598. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9599. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9600. return this;
  9601. }
  9602. public Builder ClearNestedmessageRepeatedInt32() {
  9603. result.nestedmessageRepeatedInt32_.Clear();
  9604. return this;
  9605. }
  9606. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9607. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9608. get { return result.nestedmessageRepeatedForeignmessage_; }
  9609. }
  9610. public int NestedmessageRepeatedForeignmessageCount {
  9611. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9612. }
  9613. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9614. return result.GetNestedmessageRepeatedForeignmessage(index);
  9615. }
  9616. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9617. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9618. return this;
  9619. }
  9620. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9621. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9622. return this;
  9623. }
  9624. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9625. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9626. return this;
  9627. }
  9628. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9629. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9630. return this;
  9631. }
  9632. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  9633. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9634. return this;
  9635. }
  9636. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9637. result.nestedmessageRepeatedForeignmessage_.Clear();
  9638. return this;
  9639. }
  9640. }
  9641. }
  9642. }
  9643. #endregion
  9644. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9645. private bool hasOptionalNestedMessage;
  9646. private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9647. public bool HasOptionalNestedMessage {
  9648. get { return hasOptionalNestedMessage; }
  9649. }
  9650. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9651. get { return optionalNestedMessage_; }
  9652. }
  9653. public override bool IsInitialized {
  9654. get {
  9655. return true;
  9656. }
  9657. }
  9658. public override void WriteTo(pb::CodedOutputStream output) {
  9659. if (HasOptionalNestedMessage) {
  9660. output.WriteMessage(1, OptionalNestedMessage);
  9661. }
  9662. UnknownFields.WriteTo(output);
  9663. }
  9664. private int memoizedSerializedSize = -1;
  9665. public override int SerializedSize {
  9666. get {
  9667. int size = memoizedSerializedSize;
  9668. if (size != -1) return size;
  9669. size = 0;
  9670. if (HasOptionalNestedMessage) {
  9671. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9672. }
  9673. size += UnknownFields.SerializedSize;
  9674. memoizedSerializedSize = size;
  9675. return size;
  9676. }
  9677. }
  9678. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9679. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9680. }
  9681. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9682. pb::ExtensionRegistry extensionRegistry) {
  9683. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9684. .BuildParsed();
  9685. }
  9686. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data) {
  9687. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9688. }
  9689. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data,
  9690. pb::ExtensionRegistry extensionRegistry) {
  9691. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9692. .BuildParsed();
  9693. }
  9694. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9695. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9696. }
  9697. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(
  9698. global::System.IO.Stream input,
  9699. pb::ExtensionRegistry extensionRegistry) {
  9700. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9701. .BuildParsed();
  9702. }
  9703. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9704. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9705. }
  9706. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9707. pb::ExtensionRegistry extensionRegistry) {
  9708. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9709. .BuildParsed();
  9710. }
  9711. public static Builder CreateBuilder() { return new Builder(); }
  9712. public override Builder CreateBuilderForType() { return new Builder(); }
  9713. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits prototype) {
  9714. return (Builder) new Builder().MergeFrom(prototype);
  9715. }
  9716. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, Builder> {
  9717. protected override Builder ThisBuilder {
  9718. get { return this; }
  9719. }
  9720. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.CreateBuilder()
  9721. public Builder() {}
  9722. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9723. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits MessageBeingBuilt {
  9724. get { return result; }
  9725. }
  9726. public override Builder Clear() {
  9727. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9728. return this;
  9729. }
  9730. public override Builder Clone() {
  9731. return new Builder().MergeFrom(result);
  9732. }
  9733. public override pbd::MessageDescriptor DescriptorForType {
  9734. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
  9735. }
  9736. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits DefaultInstanceForType {
  9737. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
  9738. }
  9739. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits BuildPartial() {
  9740. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits returnMe = result;
  9741. result = null;
  9742. return returnMe;
  9743. }
  9744. public override Builder MergeFrom(pb::IMessage other) {
  9745. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) {
  9746. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) other);
  9747. } else {
  9748. base.MergeFrom(other);
  9749. return this;
  9750. }
  9751. }
  9752. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits other) {
  9753. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
  9754. if (other.HasOptionalNestedMessage) {
  9755. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  9756. }
  9757. this.MergeUnknownFields(other.UnknownFields);
  9758. return this;
  9759. }
  9760. public override Builder MergeFrom(pb::CodedInputStream input) {
  9761. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9762. }
  9763. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9764. pb::UnknownFieldSet.Builder unknownFields =
  9765. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9766. while (true) {
  9767. uint tag = input.ReadTag();
  9768. switch (tag) {
  9769. case 0:
  9770. this.UnknownFields = unknownFields.Build();
  9771. return this;
  9772. default: {
  9773. if (!ParseUnknownField(input, unknownFields,
  9774. extensionRegistry, tag)) {
  9775. this.UnknownFields = unknownFields.Build();
  9776. return this;
  9777. }
  9778. break;
  9779. }
  9780. case 10: {
  9781. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  9782. if (HasOptionalNestedMessage) {
  9783. subBuilder.MergeFrom(OptionalNestedMessage);
  9784. }
  9785. input.ReadMessage(subBuilder, extensionRegistry);
  9786. OptionalNestedMessage = subBuilder.BuildPartial();
  9787. break;
  9788. }
  9789. }
  9790. }
  9791. }
  9792. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9793. public bool HasOptionalNestedMessage {
  9794. get { return result.HasOptionalNestedMessage; }
  9795. }
  9796. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9797. get { return result.OptionalNestedMessage; }
  9798. set { SetOptionalNestedMessage(value); }
  9799. }
  9800. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  9801. result.hasOptionalNestedMessage = true;
  9802. result.optionalNestedMessage_ = value;
  9803. return this;
  9804. }
  9805. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  9806. result.hasOptionalNestedMessage = true;
  9807. result.optionalNestedMessage_ = builderForValue.Build();
  9808. return this;
  9809. }
  9810. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  9811. if (result.HasOptionalNestedMessage &&
  9812. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  9813. result.optionalNestedMessage_ =
  9814. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  9815. } else {
  9816. result.optionalNestedMessage_ = value;
  9817. }
  9818. result.hasOptionalNestedMessage = true;
  9819. return this;
  9820. }
  9821. public Builder ClearOptionalNestedMessage() {
  9822. result.hasOptionalNestedMessage = false;
  9823. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9824. return this;
  9825. }
  9826. }
  9827. }
  9828. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  9829. private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial();
  9830. public static TestCamelCaseFieldNames DefaultInstance {
  9831. get { return defaultInstance; }
  9832. }
  9833. public override TestCamelCaseFieldNames DefaultInstanceForType {
  9834. get { return defaultInstance; }
  9835. }
  9836. protected override TestCamelCaseFieldNames ThisMessage {
  9837. get { return this; }
  9838. }
  9839. public static pbd::MessageDescriptor Descriptor {
  9840. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  9841. }
  9842. protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
  9843. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  9844. }
  9845. // optional int32 PrimitiveField = 1;
  9846. private bool hasPrimitiveField;
  9847. private int primitiveField_ = 0;
  9848. public bool HasPrimitiveField {
  9849. get { return hasPrimitiveField; }
  9850. }
  9851. public int PrimitiveField {
  9852. get { return primitiveField_; }
  9853. }
  9854. // optional string StringField = 2;
  9855. private bool hasStringField;
  9856. private string stringField_ = "";
  9857. public bool HasStringField {
  9858. get { return hasStringField; }
  9859. }
  9860. public string StringField {
  9861. get { return stringField_; }
  9862. }
  9863. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  9864. private bool hasEnumField;
  9865. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  9866. public bool HasEnumField {
  9867. get { return hasEnumField; }
  9868. }
  9869. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { get { return enumField_; }}
  9870. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  9871. private bool hasMessageField;
  9872. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  9873. public bool HasMessageField {
  9874. get { return hasMessageField; }
  9875. }
  9876. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  9877. get { return messageField_; }
  9878. }
  9879. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  9880. private bool hasStringPieceField;
  9881. private string stringPieceField_ = "";
  9882. public bool HasStringPieceField {
  9883. get { return hasStringPieceField; }
  9884. }
  9885. public string StringPieceField {
  9886. get { return stringPieceField_; }
  9887. }
  9888. // optional string CordField = 6 [ctype = CORD];
  9889. private bool hasCordField;
  9890. private string cordField_ = "";
  9891. public bool HasCordField {
  9892. get { return hasCordField; }
  9893. }
  9894. public string CordField {
  9895. get { return cordField_; }
  9896. }
  9897. // repeated int32 RepeatedPrimitiveField = 7;
  9898. private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>();
  9899. public scg::IList<int> RepeatedPrimitiveFieldList {
  9900. get { return repeatedPrimitiveField_; }
  9901. }
  9902. public int RepeatedPrimitiveFieldCount {
  9903. get { return repeatedPrimitiveField_.Count; }
  9904. }
  9905. public int GetRepeatedPrimitiveField(int index) {
  9906. return repeatedPrimitiveField_[index];
  9907. }
  9908. // repeated string RepeatedStringField = 8;
  9909. private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>();
  9910. public scg::IList<string> RepeatedStringFieldList {
  9911. get { return repeatedStringField_; }
  9912. }
  9913. public int RepeatedStringFieldCount {
  9914. get { return repeatedStringField_.Count; }
  9915. }
  9916. public string GetRepeatedStringField(int index) {
  9917. return repeatedStringField_[index];
  9918. }
  9919. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  9920. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  9921. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  9922. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  9923. }
  9924. public int RepeatedEnumFieldCount {
  9925. get { return repeatedEnumField_.Count; }
  9926. }
  9927. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  9928. return repeatedEnumField_[index];
  9929. }
  9930. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  9931. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9932. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  9933. get { return repeatedMessageField_; }
  9934. }
  9935. public int RepeatedMessageFieldCount
  9936. { get { return repeatedMessageField_.Count; }
  9937. }
  9938. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  9939. return repeatedMessageField_ [index];
  9940. }
  9941. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  9942. private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>();
  9943. public scg::IList<string> RepeatedStringPieceFieldList {
  9944. get { return repeatedStringPieceField_; }
  9945. }
  9946. public int RepeatedStringPieceFieldCount {
  9947. get { return repeatedStringPieceField_.Count; }
  9948. }
  9949. public string GetRepeatedStringPieceField(int index) {
  9950. return repeatedStringPieceField_[index];
  9951. }
  9952. // repeated string RepeatedCordField = 12 [ctype = CORD];
  9953. private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>();
  9954. public scg::IList<string> RepeatedCordFieldList {
  9955. get { return repeatedCordField_; }
  9956. }
  9957. public int RepeatedCordFieldCount {
  9958. get { return repeatedCordField_.Count; }
  9959. }
  9960. public string GetRepeatedCordField(int index) {
  9961. return repeatedCordField_[index];
  9962. }
  9963. public override bool IsInitialized {
  9964. get {
  9965. return true;
  9966. }
  9967. }
  9968. public override void WriteTo(pb::CodedOutputStream output) {
  9969. if (HasPrimitiveField) {
  9970. output.WriteInt32(1, PrimitiveField);
  9971. }
  9972. if (HasStringField) {
  9973. output.WriteString(2, StringField);
  9974. }
  9975. if (HasEnumField) {
  9976. output.WriteEnum(3, (int) EnumField);
  9977. }
  9978. if (HasMessageField) {
  9979. output.WriteMessage(4, MessageField);
  9980. }
  9981. if (HasStringPieceField) {
  9982. output.WriteString(5, StringPieceField);
  9983. }
  9984. if (HasCordField) {
  9985. output.WriteString(6, CordField);
  9986. }
  9987. foreach (int element in RepeatedPrimitiveFieldList) {
  9988. output.WriteInt32(7, element);
  9989. }
  9990. foreach (string element in RepeatedStringFieldList) {
  9991. output.WriteString(8, element);
  9992. }
  9993. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  9994. output.WriteEnum(9, (int) element);
  9995. }
  9996. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  9997. output.WriteMessage(10, element);
  9998. }
  9999. foreach (string element in RepeatedStringPieceFieldList) {
  10000. output.WriteString(11, element);
  10001. }
  10002. foreach (string element in RepeatedCordFieldList) {
  10003. output.WriteString(12, element);
  10004. }
  10005. UnknownFields.WriteTo(output);
  10006. }
  10007. private int memoizedSerializedSize = -1;
  10008. public override int SerializedSize {
  10009. get {
  10010. int size = memoizedSerializedSize;
  10011. if (size != -1) return size;
  10012. size = 0;
  10013. if (HasPrimitiveField) {
  10014. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10015. }
  10016. if (HasStringField) {
  10017. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10018. }
  10019. if (HasEnumField) {
  10020. size += pb::CodedOutputStream
  10021. .ComputeEnumSize(3, (int) EnumField);
  10022. }
  10023. if (HasMessageField) {
  10024. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10025. }
  10026. if (HasStringPieceField) {
  10027. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10028. }
  10029. if (HasCordField) {
  10030. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10031. }
  10032. foreach (int element in RepeatedPrimitiveFieldList) {
  10033. size += pb::CodedOutputStream
  10034. .ComputeInt32Size(7, element);
  10035. }
  10036. foreach (string element in RepeatedStringFieldList) {
  10037. size += pb::CodedOutputStream
  10038. .ComputeStringSize(8, element);
  10039. }
  10040. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10041. size += pb::CodedOutputStream
  10042. .ComputeEnumSize(9, (int) element);
  10043. }
  10044. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10045. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10046. }
  10047. foreach (string element in RepeatedStringPieceFieldList) {
  10048. size += pb::CodedOutputStream
  10049. .ComputeStringSize(11, element);
  10050. }
  10051. foreach (string element in RepeatedCordFieldList) {
  10052. size += pb::CodedOutputStream
  10053. .ComputeStringSize(12, element);
  10054. }
  10055. size += UnknownFields.SerializedSize;
  10056. memoizedSerializedSize = size;
  10057. return size;
  10058. }
  10059. }
  10060. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10061. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10062. }
  10063. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10064. pb::ExtensionRegistry extensionRegistry) {
  10065. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10066. .BuildParsed();
  10067. }
  10068. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10069. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10070. }
  10071. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data,
  10072. pb::ExtensionRegistry extensionRegistry) {
  10073. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10074. .BuildParsed();
  10075. }
  10076. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10077. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10078. }
  10079. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(
  10080. global::System.IO.Stream input,
  10081. pb::ExtensionRegistry extensionRegistry) {
  10082. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10083. .BuildParsed();
  10084. }
  10085. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10086. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10087. }
  10088. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10089. pb::ExtensionRegistry extensionRegistry) {
  10090. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10091. .BuildParsed();
  10092. }
  10093. public static Builder CreateBuilder() { return new Builder(); }
  10094. public override Builder CreateBuilderForType() { return new Builder(); }
  10095. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames prototype) {
  10096. return (Builder) new Builder().MergeFrom(prototype);
  10097. }
  10098. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, Builder> {
  10099. protected override Builder ThisBuilder {
  10100. get { return this; }
  10101. }
  10102. // Construct using global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.CreateBuilder()
  10103. public Builder() {}
  10104. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10105. protected override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames MessageBeingBuilt {
  10106. get { return result; }
  10107. }
  10108. public override Builder Clear() {
  10109. result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10110. return this;
  10111. }
  10112. public override Builder Clone() {
  10113. return new Builder().MergeFrom(result);
  10114. }
  10115. public override pbd::MessageDescriptor DescriptorForType {
  10116. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
  10117. }
  10118. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames DefaultInstanceForType {
  10119. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
  10120. }
  10121. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames BuildPartial() {
  10122. result.repeatedPrimitiveField_.MakeReadOnly();
  10123. result.repeatedStringField_.MakeReadOnly();
  10124. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10125. result.repeatedMessageField_.MakeReadOnly();
  10126. result.repeatedStringPieceField_.MakeReadOnly();
  10127. result.repeatedCordField_.MakeReadOnly();
  10128. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames returnMe = result;
  10129. result = null;
  10130. return returnMe;
  10131. }
  10132. public override Builder MergeFrom(pb::IMessage other) {
  10133. if (other is global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) {
  10134. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) other);
  10135. } else {
  10136. base.MergeFrom(other);
  10137. return this;
  10138. }
  10139. }
  10140. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames other) {
  10141. if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
  10142. if (other.HasPrimitiveField) {
  10143. PrimitiveField = other.PrimitiveField;
  10144. }
  10145. if (other.HasStringField) {
  10146. StringField = other.StringField;
  10147. }
  10148. if (other.HasEnumField) {
  10149. EnumField = other.EnumField;
  10150. }
  10151. if (other.HasMessageField) {
  10152. MergeMessageField(other.MessageField);
  10153. }
  10154. if (other.HasStringPieceField) {
  10155. StringPieceField = other.StringPieceField;
  10156. }
  10157. if (other.HasCordField) {
  10158. CordField = other.CordField;
  10159. }
  10160. if (other.repeatedPrimitiveField_.Count != 0) {
  10161. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10162. }
  10163. if (other.repeatedStringField_.Count != 0) {
  10164. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10165. }
  10166. if (other.repeatedEnumField_.Count != 0) {
  10167. if (result.repeatedEnumField_.Count == 0) {
  10168. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10169. }
  10170. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10171. }
  10172. if (other.repeatedMessageField_.Count != 0) {
  10173. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10174. }
  10175. if (other.repeatedStringPieceField_.Count != 0) {
  10176. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10177. }
  10178. if (other.repeatedCordField_.Count != 0) {
  10179. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10180. }
  10181. this.MergeUnknownFields(other.UnknownFields);
  10182. return this;
  10183. }
  10184. public override Builder MergeFrom(pb::CodedInputStream input) {
  10185. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10186. }
  10187. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10188. pb::UnknownFieldSet.Builder unknownFields =
  10189. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10190. while (true) {
  10191. uint tag = input.ReadTag();
  10192. switch (tag) {
  10193. case 0:
  10194. this.UnknownFields = unknownFields.Build();
  10195. return this;
  10196. default: {
  10197. if (!ParseUnknownField(input, unknownFields,
  10198. extensionRegistry, tag)) {
  10199. this.UnknownFields = unknownFields.Build();
  10200. return this;
  10201. }
  10202. break;
  10203. }
  10204. case 8: {
  10205. PrimitiveField = input.ReadInt32();
  10206. break;
  10207. }
  10208. case 18: {
  10209. StringField = input.ReadString();
  10210. break;
  10211. }
  10212. case 24: {
  10213. int rawValue = input.ReadEnum();
  10214. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  10215. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10216. } else {
  10217. EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10218. }
  10219. break;
  10220. }
  10221. case 34: {
  10222. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10223. if (HasMessageField) {
  10224. subBuilder.MergeFrom(MessageField);
  10225. }
  10226. input.ReadMessage(subBuilder, extensionRegistry);
  10227. MessageField = subBuilder.BuildPartial();
  10228. break;
  10229. }
  10230. case 42: {
  10231. StringPieceField = input.ReadString();
  10232. break;
  10233. }
  10234. case 50: {
  10235. CordField = input.ReadString();
  10236. break;
  10237. }
  10238. case 56: {
  10239. AddRepeatedPrimitiveField(input.ReadInt32());
  10240. break;
  10241. }
  10242. case 66: {
  10243. AddRepeatedStringField(input.ReadString());
  10244. break;
  10245. }
  10246. case 72: {
  10247. int rawValue = input.ReadEnum();
  10248. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10249. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  10250. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10251. } else {
  10252. AddRepeatedEnumField(value);
  10253. }
  10254. break;
  10255. }
  10256. case 82: {
  10257. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10258. input.ReadMessage(subBuilder, extensionRegistry);
  10259. AddRepeatedMessageField(subBuilder.BuildPartial());
  10260. break;
  10261. }
  10262. case 90: {
  10263. AddRepeatedStringPieceField(input.ReadString());
  10264. break;
  10265. }
  10266. case 98: {
  10267. AddRepeatedCordField(input.ReadString());
  10268. break;
  10269. }
  10270. }
  10271. }
  10272. }
  10273. // optional int32 PrimitiveField = 1;
  10274. public bool HasPrimitiveField {
  10275. get { return result.HasPrimitiveField; }
  10276. }
  10277. public int PrimitiveField {
  10278. get { return result.PrimitiveField; }
  10279. set { SetPrimitiveField(value); }
  10280. }
  10281. public Builder SetPrimitiveField(int value) {
  10282. result.hasPrimitiveField = true;
  10283. result.primitiveField_ = value;
  10284. return this;
  10285. }
  10286. public Builder ClearPrimitiveField() {
  10287. result.hasPrimitiveField = false;
  10288. result.primitiveField_ = 0;
  10289. return this;
  10290. }
  10291. // optional string StringField = 2;
  10292. public bool HasStringField {
  10293. get { return result.HasStringField; }
  10294. }
  10295. public string StringField {
  10296. get { return result.StringField; }
  10297. set { SetStringField(value); }
  10298. }
  10299. public Builder SetStringField(string value) {
  10300. result.hasStringField = true;
  10301. result.stringField_ = value;
  10302. return this;
  10303. }
  10304. public Builder ClearStringField() {
  10305. result.hasStringField = false;
  10306. result.stringField_ = "";
  10307. return this;
  10308. }
  10309. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10310. public bool HasEnumField {
  10311. get { return result.HasEnumField; }
  10312. }
  10313. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  10314. get { return result.EnumField; }
  10315. set { SetEnumField(value); }
  10316. }
  10317. public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10318. result.hasEnumField = true;
  10319. result.enumField_ = value;
  10320. return this;
  10321. }
  10322. public Builder ClearEnumField() {
  10323. result.hasEnumField = false;
  10324. result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10325. return this;
  10326. }
  10327. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10328. public bool HasMessageField {
  10329. get { return result.HasMessageField; }
  10330. }
  10331. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10332. get { return result.MessageField; }
  10333. set { SetMessageField(value); }
  10334. }
  10335. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10336. result.hasMessageField = true;
  10337. result.messageField_ = value;
  10338. return this;
  10339. }
  10340. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10341. result.hasMessageField = true;
  10342. result.messageField_ = builderForValue.Build();
  10343. return this;
  10344. }
  10345. public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10346. if (result.HasMessageField &&
  10347. result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  10348. result.messageField_ =
  10349. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10350. } else {
  10351. result.messageField_ = value;
  10352. }
  10353. result.hasMessageField = true;
  10354. return this;
  10355. }
  10356. public Builder ClearMessageField() {
  10357. result.hasMessageField = false;
  10358. result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10359. return this;
  10360. }
  10361. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10362. public bool HasStringPieceField {
  10363. get { return result.HasStringPieceField; }
  10364. }
  10365. public string StringPieceField {
  10366. get { return result.StringPieceField; }
  10367. set { SetStringPieceField(value); }
  10368. }
  10369. public Builder SetStringPieceField(string value) {
  10370. result.hasStringPieceField = true;
  10371. result.stringPieceField_ = value;
  10372. return this;
  10373. }
  10374. public Builder ClearStringPieceField() {
  10375. result.hasStringPieceField = false;
  10376. result.stringPieceField_ = "";
  10377. return this;
  10378. }
  10379. // optional string CordField = 6 [ctype = CORD];
  10380. public bool HasCordField {
  10381. get { return result.HasCordField; }
  10382. }
  10383. public string CordField {
  10384. get { return result.CordField; }
  10385. set { SetCordField(value); }
  10386. }
  10387. public Builder SetCordField(string value) {
  10388. result.hasCordField = true;
  10389. result.cordField_ = value;
  10390. return this;
  10391. }
  10392. public Builder ClearCordField() {
  10393. result.hasCordField = false;
  10394. result.cordField_ = "";
  10395. return this;
  10396. }
  10397. // repeated int32 RepeatedPrimitiveField = 7;
  10398. public scg::IList<int> RepeatedPrimitiveFieldList {
  10399. get { return result.repeatedPrimitiveField_; }
  10400. }
  10401. public int RepeatedPrimitiveFieldCount {
  10402. get { return result.RepeatedPrimitiveFieldCount; }
  10403. }
  10404. public int GetRepeatedPrimitiveField(int index) {
  10405. return result.GetRepeatedPrimitiveField(index);
  10406. }
  10407. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10408. result.repeatedPrimitiveField_[index] = value;
  10409. return this;
  10410. }
  10411. public Builder AddRepeatedPrimitiveField(int value) {
  10412. result.repeatedPrimitiveField_.Add(value);
  10413. return this;
  10414. }
  10415. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10416. base.AddRange(values, result.repeatedPrimitiveField_);
  10417. return this;
  10418. }
  10419. public Builder ClearRepeatedPrimitiveField() {
  10420. result.repeatedPrimitiveField_.Clear();
  10421. return this;
  10422. }
  10423. // repeated string RepeatedStringField = 8;
  10424. public scg::IList<string> RepeatedStringFieldList {
  10425. get { return result.repeatedStringField_; }
  10426. }
  10427. public int RepeatedStringFieldCount {
  10428. get { return result.RepeatedStringFieldCount; }
  10429. }
  10430. public string GetRepeatedStringField(int index) {
  10431. return result.GetRepeatedStringField(index);
  10432. }
  10433. public Builder SetRepeatedStringField(int index, string value) {
  10434. result.repeatedStringField_[index] = value;
  10435. return this;
  10436. }
  10437. public Builder AddRepeatedStringField(string value) {
  10438. result.repeatedStringField_.Add(value);
  10439. return this;
  10440. }
  10441. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10442. base.AddRange(values, result.repeatedStringField_);
  10443. return this;
  10444. }
  10445. public Builder ClearRepeatedStringField() {
  10446. result.repeatedStringField_.Clear();
  10447. return this;
  10448. }
  10449. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10450. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10451. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10452. }
  10453. public int RepeatedEnumFieldCount {
  10454. get { return result.RepeatedEnumFieldCount; }
  10455. }
  10456. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10457. return result.GetRepeatedEnumField(index);
  10458. }
  10459. public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10460. result.repeatedEnumField_[index] = value;
  10461. return this;
  10462. }
  10463. public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10464. if (result.repeatedEnumField_.Count == 0) {
  10465. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10466. }
  10467. result.repeatedEnumField_.Add(value);
  10468. return this;
  10469. }
  10470. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  10471. if (result.repeatedEnumField_.Count == 0) {
  10472. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10473. }
  10474. base.AddRange(values, result.repeatedEnumField_);
  10475. return this;
  10476. }
  10477. public Builder ClearRepeatedEnumField() {
  10478. result.repeatedEnumField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  10479. return this;
  10480. }
  10481. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10482. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10483. get { return result.repeatedMessageField_; }
  10484. }
  10485. public int RepeatedMessageFieldCount {
  10486. get { return result.RepeatedMessageFieldCount; }
  10487. }
  10488. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10489. return result.GetRepeatedMessageField(index);
  10490. }
  10491. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10492. result.repeatedMessageField_[index] = value;
  10493. return this;
  10494. }
  10495. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10496. result.repeatedMessageField_[index] = builderForValue.Build();
  10497. return this;
  10498. }
  10499. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10500. result.repeatedMessageField_.Add(value);
  10501. return this;
  10502. }
  10503. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10504. result.repeatedMessageField_.Add(builderForValue.Build());
  10505. return this;
  10506. }
  10507. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  10508. base.AddRange(values, result.repeatedMessageField_);
  10509. return this;
  10510. }
  10511. public Builder ClearRepeatedMessageField() {
  10512. result.repeatedMessageField_.Clear();
  10513. return this;
  10514. }
  10515. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10516. public scg::IList<string> RepeatedStringPieceFieldList {
  10517. get { return result.repeatedStringPieceField_; }
  10518. }
  10519. public int RepeatedStringPieceFieldCount {
  10520. get { return result.RepeatedStringPieceFieldCount; }
  10521. }
  10522. public string GetRepeatedStringPieceField(int index) {
  10523. return result.GetRepeatedStringPieceField(index);
  10524. }
  10525. public Builder SetRepeatedStringPieceField(int index, string value) {
  10526. result.repeatedStringPieceField_[index] = value;
  10527. return this;
  10528. }
  10529. public Builder AddRepeatedStringPieceField(string value) {
  10530. result.repeatedStringPieceField_.Add(value);
  10531. return this;
  10532. }
  10533. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10534. base.AddRange(values, result.repeatedStringPieceField_);
  10535. return this;
  10536. }
  10537. public Builder ClearRepeatedStringPieceField() {
  10538. result.repeatedStringPieceField_.Clear();
  10539. return this;
  10540. }
  10541. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10542. public scg::IList<string> RepeatedCordFieldList {
  10543. get { return result.repeatedCordField_; }
  10544. }
  10545. public int RepeatedCordFieldCount {
  10546. get { return result.RepeatedCordFieldCount; }
  10547. }
  10548. public string GetRepeatedCordField(int index) {
  10549. return result.GetRepeatedCordField(index);
  10550. }
  10551. public Builder SetRepeatedCordField(int index, string value) {
  10552. result.repeatedCordField_[index] = value;
  10553. return this;
  10554. }
  10555. public Builder AddRepeatedCordField(string value) {
  10556. result.repeatedCordField_.Add(value);
  10557. return this;
  10558. }
  10559. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10560. base.AddRange(values, result.repeatedCordField_);
  10561. return this;
  10562. }
  10563. public Builder ClearRepeatedCordField() {
  10564. result.repeatedCordField_.Clear();
  10565. return this;
  10566. }
  10567. }
  10568. }
  10569. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10570. private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial();
  10571. public static TestFieldOrderings DefaultInstance {
  10572. get { return defaultInstance; }
  10573. }
  10574. public override TestFieldOrderings DefaultInstanceForType {
  10575. get { return defaultInstance; }
  10576. }
  10577. protected override TestFieldOrderings ThisMessage {
  10578. get { return this; }
  10579. }
  10580. public static pbd::MessageDescriptor Descriptor {
  10581. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10582. }
  10583. protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
  10584. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10585. }
  10586. // optional string my_string = 11;
  10587. private bool hasMyString;
  10588. private string myString_ = "";
  10589. public bool HasMyString {
  10590. get { return hasMyString; }
  10591. }
  10592. public string MyString {
  10593. get { return myString_; }
  10594. }
  10595. // optional int64 my_int = 1;
  10596. private bool hasMyInt;
  10597. private long myInt_ = 0L;
  10598. public bool HasMyInt {
  10599. get { return hasMyInt; }
  10600. }
  10601. public long MyInt {
  10602. get { return myInt_; }
  10603. }
  10604. // optional float my_float = 101;
  10605. private bool hasMyFloat;
  10606. private float myFloat_ = 0F;
  10607. public bool HasMyFloat {
  10608. get { return hasMyFloat; }
  10609. }
  10610. public float MyFloat {
  10611. get { return myFloat_; }
  10612. }
  10613. public override bool IsInitialized {
  10614. get {
  10615. if (!ExtensionsAreInitialized) return false;
  10616. return true;
  10617. }
  10618. }
  10619. public override void WriteTo(pb::CodedOutputStream output) {
  10620. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10621. if (HasMyInt) {
  10622. output.WriteInt64(1, MyInt);
  10623. }
  10624. extensionWriter.WriteUntil(11, output);
  10625. if (HasMyString) {
  10626. output.WriteString(11, MyString);
  10627. }
  10628. extensionWriter.WriteUntil(101, output);
  10629. if (HasMyFloat) {
  10630. output.WriteFloat(101, MyFloat);
  10631. }
  10632. UnknownFields.WriteTo(output);
  10633. }
  10634. private int memoizedSerializedSize = -1;
  10635. public override int SerializedSize {
  10636. get {
  10637. int size = memoizedSerializedSize;
  10638. if (size != -1) return size;
  10639. size = 0;
  10640. if (HasMyInt) {
  10641. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10642. }
  10643. if (HasMyString) {
  10644. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10645. }
  10646. if (HasMyFloat) {
  10647. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10648. }
  10649. size += ExtensionsSerializedSize;
  10650. size += UnknownFields.SerializedSize;
  10651. memoizedSerializedSize = size;
  10652. return size;
  10653. }
  10654. }
  10655. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data) {
  10656. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10657. }
  10658. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data,
  10659. pb::ExtensionRegistry extensionRegistry) {
  10660. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10661. .BuildParsed();
  10662. }
  10663. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data) {
  10664. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10665. }
  10666. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data,
  10667. pb::ExtensionRegistry extensionRegistry) {
  10668. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10669. .BuildParsed();
  10670. }
  10671. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10672. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10673. }
  10674. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(
  10675. global::System.IO.Stream input,
  10676. pb::ExtensionRegistry extensionRegistry) {
  10677. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10678. .BuildParsed();
  10679. }
  10680. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10681. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10682. }
  10683. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10684. pb::ExtensionRegistry extensionRegistry) {
  10685. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10686. .BuildParsed();
  10687. }
  10688. public static Builder CreateBuilder() { return new Builder(); }
  10689. public override Builder CreateBuilderForType() { return new Builder(); }
  10690. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings prototype) {
  10691. return (Builder) new Builder().MergeFrom(prototype);
  10692. }
  10693. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> {
  10694. protected override Builder ThisBuilder {
  10695. get { return this; }
  10696. }
  10697. // Construct using global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.CreateBuilder()
  10698. public Builder() {}
  10699. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10700. protected override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings MessageBeingBuilt {
  10701. get { return result; }
  10702. }
  10703. public override Builder Clear() {
  10704. result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10705. return this;
  10706. }
  10707. public override Builder Clone() {
  10708. return new Builder().MergeFrom(result);
  10709. }
  10710. public override pbd::MessageDescriptor DescriptorForType {
  10711. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
  10712. }
  10713. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings DefaultInstanceForType {
  10714. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
  10715. }
  10716. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings BuildPartial() {
  10717. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings returnMe = result;
  10718. result = null;
  10719. return returnMe;
  10720. }
  10721. public override Builder MergeFrom(pb::IMessage other) {
  10722. if (other is global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) {
  10723. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) other);
  10724. } else {
  10725. base.MergeFrom(other);
  10726. return this;
  10727. }
  10728. }
  10729. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings other) {
  10730. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
  10731. if (other.HasMyString) {
  10732. MyString = other.MyString;
  10733. }
  10734. if (other.HasMyInt) {
  10735. MyInt = other.MyInt;
  10736. }
  10737. if (other.HasMyFloat) {
  10738. MyFloat = other.MyFloat;
  10739. }
  10740. this.MergeUnknownFields(other.UnknownFields);
  10741. return this;
  10742. }
  10743. public override Builder MergeFrom(pb::CodedInputStream input) {
  10744. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10745. }
  10746. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10747. pb::UnknownFieldSet.Builder unknownFields =
  10748. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10749. while (true) {
  10750. uint tag = input.ReadTag();
  10751. switch (tag) {
  10752. case 0:
  10753. this.UnknownFields = unknownFields.Build();
  10754. return this;
  10755. default: {
  10756. if (!ParseUnknownField(input, unknownFields,
  10757. extensionRegistry, tag)) {
  10758. this.UnknownFields = unknownFields.Build();
  10759. return this;
  10760. }
  10761. break;
  10762. }
  10763. case 8: {
  10764. MyInt = input.ReadInt64();
  10765. break;
  10766. }
  10767. case 90: {
  10768. MyString = input.ReadString();
  10769. break;
  10770. }
  10771. case 813: {
  10772. MyFloat = input.ReadFloat();
  10773. break;
  10774. }
  10775. }
  10776. }
  10777. }
  10778. // optional string my_string = 11;
  10779. public bool HasMyString {
  10780. get { return result.HasMyString; }
  10781. }
  10782. public string MyString {
  10783. get { return result.MyString; }
  10784. set { SetMyString(value); }
  10785. }
  10786. public Builder SetMyString(string value) {
  10787. result.hasMyString = true;
  10788. result.myString_ = value;
  10789. return this;
  10790. }
  10791. public Builder ClearMyString() {
  10792. result.hasMyString = false;
  10793. result.myString_ = "";
  10794. return this;
  10795. }
  10796. // optional int64 my_int = 1;
  10797. public bool HasMyInt {
  10798. get { return result.HasMyInt; }
  10799. }
  10800. public long MyInt {
  10801. get { return result.MyInt; }
  10802. set { SetMyInt(value); }
  10803. }
  10804. public Builder SetMyInt(long value) {
  10805. result.hasMyInt = true;
  10806. result.myInt_ = value;
  10807. return this;
  10808. }
  10809. public Builder ClearMyInt() {
  10810. result.hasMyInt = false;
  10811. result.myInt_ = 0L;
  10812. return this;
  10813. }
  10814. // optional float my_float = 101;
  10815. public bool HasMyFloat {
  10816. get { return result.HasMyFloat; }
  10817. }
  10818. public float MyFloat {
  10819. get { return result.MyFloat; }
  10820. set { SetMyFloat(value); }
  10821. }
  10822. public Builder SetMyFloat(float value) {
  10823. result.hasMyFloat = true;
  10824. result.myFloat_ = value;
  10825. return this;
  10826. }
  10827. public Builder ClearMyFloat() {
  10828. result.hasMyFloat = false;
  10829. result.myFloat_ = 0F;
  10830. return this;
  10831. }
  10832. }
  10833. }
  10834. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  10835. private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial();
  10836. public static TestExtremeDefaultValues DefaultInstance {
  10837. get { return defaultInstance; }
  10838. }
  10839. public override TestExtremeDefaultValues DefaultInstanceForType {
  10840. get { return defaultInstance; }
  10841. }
  10842. protected override TestExtremeDefaultValues ThisMessage {
  10843. get { return this; }
  10844. }
  10845. public static pbd::MessageDescriptor Descriptor {
  10846. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  10847. }
  10848. protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
  10849. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  10850. }
  10851. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  10852. private bool hasEscapedBytes;
  10853. private pb::ByteString escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  10854. public bool HasEscapedBytes {
  10855. get { return hasEscapedBytes; }
  10856. }
  10857. public pb::ByteString EscapedBytes {
  10858. get { return escapedBytes_; }
  10859. }
  10860. // optional uint32 large_uint32 = 2 [default = 4294967295];
  10861. private bool hasLargeUint32;
  10862. private uint largeUint32_ = 4294967295;
  10863. public bool HasLargeUint32 {
  10864. get { return hasLargeUint32; }
  10865. }
  10866. public uint LargeUint32 {
  10867. get { return largeUint32_; }
  10868. }
  10869. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  10870. private bool hasLargeUint64;
  10871. private ulong largeUint64_ = 18446744073709551615UL;
  10872. public bool HasLargeUint64 {
  10873. get { return hasLargeUint64; }
  10874. }
  10875. public ulong LargeUint64 {
  10876. get { return largeUint64_; }
  10877. }
  10878. // optional int32 small_int32 = 4 [default = -2147483647];
  10879. private bool hasSmallInt32;
  10880. private int smallInt32_ = -2147483647;
  10881. public bool HasSmallInt32 {
  10882. get { return hasSmallInt32; }
  10883. }
  10884. public int SmallInt32 {
  10885. get { return smallInt32_; }
  10886. }
  10887. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  10888. private bool hasSmallInt64;
  10889. private long smallInt64_ = -9223372036854775807L;
  10890. public bool HasSmallInt64 {
  10891. get { return hasSmallInt64; }
  10892. }
  10893. public long SmallInt64 {
  10894. get { return smallInt64_; }
  10895. }
  10896. // optional string utf8_string = 6 [default = "\341\210\264"];
  10897. private bool hasUtf8String;
  10898. private string utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  10899. public bool HasUtf8String {
  10900. get { return hasUtf8String; }
  10901. }
  10902. public string Utf8String {
  10903. get { return utf8String_; }
  10904. }
  10905. public override bool IsInitialized {
  10906. get {
  10907. return true;
  10908. }
  10909. }
  10910. public override void WriteTo(pb::CodedOutputStream output) {
  10911. if (HasEscapedBytes) {
  10912. output.WriteBytes(1, EscapedBytes);
  10913. }
  10914. if (HasLargeUint32) {
  10915. output.WriteUInt32(2, LargeUint32);
  10916. }
  10917. if (HasLargeUint64) {
  10918. output.WriteUInt64(3, LargeUint64);
  10919. }
  10920. if (HasSmallInt32) {
  10921. output.WriteInt32(4, SmallInt32);
  10922. }
  10923. if (HasSmallInt64) {
  10924. output.WriteInt64(5, SmallInt64);
  10925. }
  10926. if (HasUtf8String) {
  10927. output.WriteString(6, Utf8String);
  10928. }
  10929. UnknownFields.WriteTo(output);
  10930. }
  10931. private int memoizedSerializedSize = -1;
  10932. public override int SerializedSize {
  10933. get {
  10934. int size = memoizedSerializedSize;
  10935. if (size != -1) return size;
  10936. size = 0;
  10937. if (HasEscapedBytes) {
  10938. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  10939. }
  10940. if (HasLargeUint32) {
  10941. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  10942. }
  10943. if (HasLargeUint64) {
  10944. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  10945. }
  10946. if (HasSmallInt32) {
  10947. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  10948. }
  10949. if (HasSmallInt64) {
  10950. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  10951. }
  10952. if (HasUtf8String) {
  10953. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  10954. }
  10955. size += UnknownFields.SerializedSize;
  10956. memoizedSerializedSize = size;
  10957. return size;
  10958. }
  10959. }
  10960. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  10961. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10962. }
  10963. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  10964. pb::ExtensionRegistry extensionRegistry) {
  10965. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10966. .BuildParsed();
  10967. }
  10968. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data) {
  10969. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10970. }
  10971. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data,
  10972. pb::ExtensionRegistry extensionRegistry) {
  10973. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10974. .BuildParsed();
  10975. }
  10976. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  10977. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10978. }
  10979. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(
  10980. global::System.IO.Stream input,
  10981. pb::ExtensionRegistry extensionRegistry) {
  10982. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10983. .BuildParsed();
  10984. }
  10985. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  10986. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10987. }
  10988. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  10989. pb::ExtensionRegistry extensionRegistry) {
  10990. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10991. .BuildParsed();
  10992. }
  10993. public static Builder CreateBuilder() { return new Builder(); }
  10994. public override Builder CreateBuilderForType() { return new Builder(); }
  10995. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues prototype) {
  10996. return (Builder) new Builder().MergeFrom(prototype);
  10997. }
  10998. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, Builder> {
  10999. protected override Builder ThisBuilder {
  11000. get { return this; }
  11001. }
  11002. // Construct using global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.CreateBuilder()
  11003. public Builder() {}
  11004. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11005. protected override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues MessageBeingBuilt {
  11006. get { return result; }
  11007. }
  11008. public override Builder Clear() {
  11009. result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11010. return this;
  11011. }
  11012. public override Builder Clone() {
  11013. return new Builder().MergeFrom(result);
  11014. }
  11015. public override pbd::MessageDescriptor DescriptorForType {
  11016. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
  11017. }
  11018. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues DefaultInstanceForType {
  11019. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
  11020. }
  11021. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues BuildPartial() {
  11022. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues returnMe = result;
  11023. result = null;
  11024. return returnMe;
  11025. }
  11026. public override Builder MergeFrom(pb::IMessage other) {
  11027. if (other is global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) {
  11028. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) other);
  11029. } else {
  11030. base.MergeFrom(other);
  11031. return this;
  11032. }
  11033. }
  11034. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues other) {
  11035. if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
  11036. if (other.HasEscapedBytes) {
  11037. EscapedBytes = other.EscapedBytes;
  11038. }
  11039. if (other.HasLargeUint32) {
  11040. LargeUint32 = other.LargeUint32;
  11041. }
  11042. if (other.HasLargeUint64) {
  11043. LargeUint64 = other.LargeUint64;
  11044. }
  11045. if (other.HasSmallInt32) {
  11046. SmallInt32 = other.SmallInt32;
  11047. }
  11048. if (other.HasSmallInt64) {
  11049. SmallInt64 = other.SmallInt64;
  11050. }
  11051. if (other.HasUtf8String) {
  11052. Utf8String = other.Utf8String;
  11053. }
  11054. this.MergeUnknownFields(other.UnknownFields);
  11055. return this;
  11056. }
  11057. public override Builder MergeFrom(pb::CodedInputStream input) {
  11058. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11059. }
  11060. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11061. pb::UnknownFieldSet.Builder unknownFields =
  11062. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11063. while (true) {
  11064. uint tag = input.ReadTag();
  11065. switch (tag) {
  11066. case 0:
  11067. this.UnknownFields = unknownFields.Build();
  11068. return this;
  11069. default: {
  11070. if (!ParseUnknownField(input, unknownFields,
  11071. extensionRegistry, tag)) {
  11072. this.UnknownFields = unknownFields.Build();
  11073. return this;
  11074. }
  11075. break;
  11076. }
  11077. case 10: {
  11078. EscapedBytes = input.ReadBytes();
  11079. break;
  11080. }
  11081. case 16: {
  11082. LargeUint32 = input.ReadUInt32();
  11083. break;
  11084. }
  11085. case 24: {
  11086. LargeUint64 = input.ReadUInt64();
  11087. break;
  11088. }
  11089. case 32: {
  11090. SmallInt32 = input.ReadInt32();
  11091. break;
  11092. }
  11093. case 40: {
  11094. SmallInt64 = input.ReadInt64();
  11095. break;
  11096. }
  11097. case 50: {
  11098. Utf8String = input.ReadString();
  11099. break;
  11100. }
  11101. }
  11102. }
  11103. }
  11104. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11105. public bool HasEscapedBytes {
  11106. get { return result.HasEscapedBytes; }
  11107. }
  11108. public pb::ByteString EscapedBytes {
  11109. get { return result.EscapedBytes; }
  11110. set { SetEscapedBytes(value); }
  11111. }
  11112. public Builder SetEscapedBytes(pb::ByteString value) {
  11113. result.hasEscapedBytes = true;
  11114. result.escapedBytes_ = value;
  11115. return this;
  11116. }
  11117. public Builder ClearEscapedBytes() {
  11118. result.hasEscapedBytes = false;
  11119. result.escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11120. return this;
  11121. }
  11122. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11123. public bool HasLargeUint32 {
  11124. get { return result.HasLargeUint32; }
  11125. }
  11126. public uint LargeUint32 {
  11127. get { return result.LargeUint32; }
  11128. set { SetLargeUint32(value); }
  11129. }
  11130. public Builder SetLargeUint32(uint value) {
  11131. result.hasLargeUint32 = true;
  11132. result.largeUint32_ = value;
  11133. return this;
  11134. }
  11135. public Builder ClearLargeUint32() {
  11136. result.hasLargeUint32 = false;
  11137. result.largeUint32_ = 4294967295;
  11138. return this;
  11139. }
  11140. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11141. public bool HasLargeUint64 {
  11142. get { return result.HasLargeUint64; }
  11143. }
  11144. public ulong LargeUint64 {
  11145. get { return result.LargeUint64; }
  11146. set { SetLargeUint64(value); }
  11147. }
  11148. public Builder SetLargeUint64(ulong value) {
  11149. result.hasLargeUint64 = true;
  11150. result.largeUint64_ = value;
  11151. return this;
  11152. }
  11153. public Builder ClearLargeUint64() {
  11154. result.hasLargeUint64 = false;
  11155. result.largeUint64_ = 18446744073709551615UL;
  11156. return this;
  11157. }
  11158. // optional int32 small_int32 = 4 [default = -2147483647];
  11159. public bool HasSmallInt32 {
  11160. get { return result.HasSmallInt32; }
  11161. }
  11162. public int SmallInt32 {
  11163. get { return result.SmallInt32; }
  11164. set { SetSmallInt32(value); }
  11165. }
  11166. public Builder SetSmallInt32(int value) {
  11167. result.hasSmallInt32 = true;
  11168. result.smallInt32_ = value;
  11169. return this;
  11170. }
  11171. public Builder ClearSmallInt32() {
  11172. result.hasSmallInt32 = false;
  11173. result.smallInt32_ = -2147483647;
  11174. return this;
  11175. }
  11176. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11177. public bool HasSmallInt64 {
  11178. get { return result.HasSmallInt64; }
  11179. }
  11180. public long SmallInt64 {
  11181. get { return result.SmallInt64; }
  11182. set { SetSmallInt64(value); }
  11183. }
  11184. public Builder SetSmallInt64(long value) {
  11185. result.hasSmallInt64 = true;
  11186. result.smallInt64_ = value;
  11187. return this;
  11188. }
  11189. public Builder ClearSmallInt64() {
  11190. result.hasSmallInt64 = false;
  11191. result.smallInt64_ = -9223372036854775807L;
  11192. return this;
  11193. }
  11194. // optional string utf8_string = 6 [default = "\341\210\264"];
  11195. public bool HasUtf8String {
  11196. get { return result.HasUtf8String; }
  11197. }
  11198. public string Utf8String {
  11199. get { return result.Utf8String; }
  11200. set { SetUtf8String(value); }
  11201. }
  11202. public Builder SetUtf8String(string value) {
  11203. result.hasUtf8String = true;
  11204. result.utf8String_ = value;
  11205. return this;
  11206. }
  11207. public Builder ClearUtf8String() {
  11208. result.hasUtf8String = false;
  11209. result.utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11210. return this;
  11211. }
  11212. }
  11213. }
  11214. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11215. private static readonly FooRequest defaultInstance = new Builder().BuildPartial();
  11216. public static FooRequest DefaultInstance {
  11217. get { return defaultInstance; }
  11218. }
  11219. public override FooRequest DefaultInstanceForType {
  11220. get { return defaultInstance; }
  11221. }
  11222. protected override FooRequest ThisMessage {
  11223. get { return this; }
  11224. }
  11225. public static pbd::MessageDescriptor Descriptor {
  11226. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11227. }
  11228. protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
  11229. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11230. }
  11231. public override bool IsInitialized {
  11232. get {
  11233. return true;
  11234. }
  11235. }
  11236. public override void WriteTo(pb::CodedOutputStream output) {
  11237. UnknownFields.WriteTo(output);
  11238. }
  11239. private int memoizedSerializedSize = -1;
  11240. public override int SerializedSize {
  11241. get {
  11242. int size = memoizedSerializedSize;
  11243. if (size != -1) return size;
  11244. size = 0;
  11245. size += UnknownFields.SerializedSize;
  11246. memoizedSerializedSize = size;
  11247. return size;
  11248. }
  11249. }
  11250. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data) {
  11251. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11252. }
  11253. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data,
  11254. pb::ExtensionRegistry extensionRegistry) {
  11255. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11256. .BuildParsed();
  11257. }
  11258. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data) {
  11259. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11260. }
  11261. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data,
  11262. pb::ExtensionRegistry extensionRegistry) {
  11263. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11264. .BuildParsed();
  11265. }
  11266. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(global::System.IO.Stream input) {
  11267. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11268. }
  11269. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(
  11270. global::System.IO.Stream input,
  11271. pb::ExtensionRegistry extensionRegistry) {
  11272. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11273. .BuildParsed();
  11274. }
  11275. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input) {
  11276. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11277. }
  11278. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input,
  11279. pb::ExtensionRegistry extensionRegistry) {
  11280. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11281. .BuildParsed();
  11282. }
  11283. public static Builder CreateBuilder() { return new Builder(); }
  11284. public override Builder CreateBuilderForType() { return new Builder(); }
  11285. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooRequest prototype) {
  11286. return (Builder) new Builder().MergeFrom(prototype);
  11287. }
  11288. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooRequest, Builder> {
  11289. protected override Builder ThisBuilder {
  11290. get { return this; }
  11291. }
  11292. // Construct using global::Google.ProtocolBuffers.TestProtos.FooRequest.CreateBuilder()
  11293. public Builder() {}
  11294. global::Google.ProtocolBuffers.TestProtos.FooRequest result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11295. protected override global::Google.ProtocolBuffers.TestProtos.FooRequest MessageBeingBuilt {
  11296. get { return result; }
  11297. }
  11298. public override Builder Clear() {
  11299. result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11300. return this;
  11301. }
  11302. public override Builder Clone() {
  11303. return new Builder().MergeFrom(result);
  11304. }
  11305. public override pbd::MessageDescriptor DescriptorForType {
  11306. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
  11307. }
  11308. public override global::Google.ProtocolBuffers.TestProtos.FooRequest DefaultInstanceForType {
  11309. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
  11310. }
  11311. public override global::Google.ProtocolBuffers.TestProtos.FooRequest BuildPartial() {
  11312. global::Google.ProtocolBuffers.TestProtos.FooRequest returnMe = result;
  11313. result = null;
  11314. return returnMe;
  11315. }
  11316. public override Builder MergeFrom(pb::IMessage other) {
  11317. if (other is global::Google.ProtocolBuffers.TestProtos.FooRequest) {
  11318. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooRequest) other);
  11319. } else {
  11320. base.MergeFrom(other);
  11321. return this;
  11322. }
  11323. }
  11324. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooRequest other) {
  11325. if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
  11326. this.MergeUnknownFields(other.UnknownFields);
  11327. return this;
  11328. }
  11329. public override Builder MergeFrom(pb::CodedInputStream input) {
  11330. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11331. }
  11332. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11333. pb::UnknownFieldSet.Builder unknownFields =
  11334. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11335. while (true) {
  11336. uint tag = input.ReadTag();
  11337. switch (tag) {
  11338. case 0:
  11339. this.UnknownFields = unknownFields.Build();
  11340. return this;
  11341. default: {
  11342. if (!ParseUnknownField(input, unknownFields,
  11343. extensionRegistry, tag)) {
  11344. this.UnknownFields = unknownFields.Build();
  11345. return this;
  11346. }
  11347. break;
  11348. }
  11349. }
  11350. }
  11351. }
  11352. }
  11353. }
  11354. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11355. private static readonly FooResponse defaultInstance = new Builder().BuildPartial();
  11356. public static FooResponse DefaultInstance {
  11357. get { return defaultInstance; }
  11358. }
  11359. public override FooResponse DefaultInstanceForType {
  11360. get { return defaultInstance; }
  11361. }
  11362. protected override FooResponse ThisMessage {
  11363. get { return this; }
  11364. }
  11365. public static pbd::MessageDescriptor Descriptor {
  11366. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11367. }
  11368. protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
  11369. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11370. }
  11371. public override bool IsInitialized {
  11372. get {
  11373. return true;
  11374. }
  11375. }
  11376. public override void WriteTo(pb::CodedOutputStream output) {
  11377. UnknownFields.WriteTo(output);
  11378. }
  11379. private int memoizedSerializedSize = -1;
  11380. public override int SerializedSize {
  11381. get {
  11382. int size = memoizedSerializedSize;
  11383. if (size != -1) return size;
  11384. size = 0;
  11385. size += UnknownFields.SerializedSize;
  11386. memoizedSerializedSize = size;
  11387. return size;
  11388. }
  11389. }
  11390. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data) {
  11391. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11392. }
  11393. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data,
  11394. pb::ExtensionRegistry extensionRegistry) {
  11395. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11396. .BuildParsed();
  11397. }
  11398. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data) {
  11399. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11400. }
  11401. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data,
  11402. pb::ExtensionRegistry extensionRegistry) {
  11403. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11404. .BuildParsed();
  11405. }
  11406. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(global::System.IO.Stream input) {
  11407. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11408. }
  11409. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(
  11410. global::System.IO.Stream input,
  11411. pb::ExtensionRegistry extensionRegistry) {
  11412. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11413. .BuildParsed();
  11414. }
  11415. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input) {
  11416. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11417. }
  11418. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input,
  11419. pb::ExtensionRegistry extensionRegistry) {
  11420. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11421. .BuildParsed();
  11422. }
  11423. public static Builder CreateBuilder() { return new Builder(); }
  11424. public override Builder CreateBuilderForType() { return new Builder(); }
  11425. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooResponse prototype) {
  11426. return (Builder) new Builder().MergeFrom(prototype);
  11427. }
  11428. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooResponse, Builder> {
  11429. protected override Builder ThisBuilder {
  11430. get { return this; }
  11431. }
  11432. // Construct using global::Google.ProtocolBuffers.TestProtos.FooResponse.CreateBuilder()
  11433. public Builder() {}
  11434. global::Google.ProtocolBuffers.TestProtos.FooResponse result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11435. protected override global::Google.ProtocolBuffers.TestProtos.FooResponse MessageBeingBuilt {
  11436. get { return result; }
  11437. }
  11438. public override Builder Clear() {
  11439. result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11440. return this;
  11441. }
  11442. public override Builder Clone() {
  11443. return new Builder().MergeFrom(result);
  11444. }
  11445. public override pbd::MessageDescriptor DescriptorForType {
  11446. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
  11447. }
  11448. public override global::Google.ProtocolBuffers.TestProtos.FooResponse DefaultInstanceForType {
  11449. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
  11450. }
  11451. public override global::Google.ProtocolBuffers.TestProtos.FooResponse BuildPartial() {
  11452. global::Google.ProtocolBuffers.TestProtos.FooResponse returnMe = result;
  11453. result = null;
  11454. return returnMe;
  11455. }
  11456. public override Builder MergeFrom(pb::IMessage other) {
  11457. if (other is global::Google.ProtocolBuffers.TestProtos.FooResponse) {
  11458. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooResponse) other);
  11459. } else {
  11460. base.MergeFrom(other);
  11461. return this;
  11462. }
  11463. }
  11464. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooResponse other) {
  11465. if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
  11466. this.MergeUnknownFields(other.UnknownFields);
  11467. return this;
  11468. }
  11469. public override Builder MergeFrom(pb::CodedInputStream input) {
  11470. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11471. }
  11472. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11473. pb::UnknownFieldSet.Builder unknownFields =
  11474. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11475. while (true) {
  11476. uint tag = input.ReadTag();
  11477. switch (tag) {
  11478. case 0:
  11479. this.UnknownFields = unknownFields.Build();
  11480. return this;
  11481. default: {
  11482. if (!ParseUnknownField(input, unknownFields,
  11483. extensionRegistry, tag)) {
  11484. this.UnknownFields = unknownFields.Build();
  11485. return this;
  11486. }
  11487. break;
  11488. }
  11489. }
  11490. }
  11491. }
  11492. }
  11493. }
  11494. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11495. private static readonly BarRequest defaultInstance = new Builder().BuildPartial();
  11496. public static BarRequest DefaultInstance {
  11497. get { return defaultInstance; }
  11498. }
  11499. public override BarRequest DefaultInstanceForType {
  11500. get { return defaultInstance; }
  11501. }
  11502. protected override BarRequest ThisMessage {
  11503. get { return this; }
  11504. }
  11505. public static pbd::MessageDescriptor Descriptor {
  11506. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11507. }
  11508. protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
  11509. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11510. }
  11511. public override bool IsInitialized {
  11512. get {
  11513. return true;
  11514. }
  11515. }
  11516. public override void WriteTo(pb::CodedOutputStream output) {
  11517. UnknownFields.WriteTo(output);
  11518. }
  11519. private int memoizedSerializedSize = -1;
  11520. public override int SerializedSize {
  11521. get {
  11522. int size = memoizedSerializedSize;
  11523. if (size != -1) return size;
  11524. size = 0;
  11525. size += UnknownFields.SerializedSize;
  11526. memoizedSerializedSize = size;
  11527. return size;
  11528. }
  11529. }
  11530. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data) {
  11531. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11532. }
  11533. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data,
  11534. pb::ExtensionRegistry extensionRegistry) {
  11535. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11536. .BuildParsed();
  11537. }
  11538. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data) {
  11539. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11540. }
  11541. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data,
  11542. pb::ExtensionRegistry extensionRegistry) {
  11543. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11544. .BuildParsed();
  11545. }
  11546. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(global::System.IO.Stream input) {
  11547. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11548. }
  11549. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(
  11550. global::System.IO.Stream input,
  11551. pb::ExtensionRegistry extensionRegistry) {
  11552. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11553. .BuildParsed();
  11554. }
  11555. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input) {
  11556. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11557. }
  11558. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input,
  11559. pb::ExtensionRegistry extensionRegistry) {
  11560. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11561. .BuildParsed();
  11562. }
  11563. public static Builder CreateBuilder() { return new Builder(); }
  11564. public override Builder CreateBuilderForType() { return new Builder(); }
  11565. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarRequest prototype) {
  11566. return (Builder) new Builder().MergeFrom(prototype);
  11567. }
  11568. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarRequest, Builder> {
  11569. protected override Builder ThisBuilder {
  11570. get { return this; }
  11571. }
  11572. // Construct using global::Google.ProtocolBuffers.TestProtos.BarRequest.CreateBuilder()
  11573. public Builder() {}
  11574. global::Google.ProtocolBuffers.TestProtos.BarRequest result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11575. protected override global::Google.ProtocolBuffers.TestProtos.BarRequest MessageBeingBuilt {
  11576. get { return result; }
  11577. }
  11578. public override Builder Clear() {
  11579. result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11580. return this;
  11581. }
  11582. public override Builder Clone() {
  11583. return new Builder().MergeFrom(result);
  11584. }
  11585. public override pbd::MessageDescriptor DescriptorForType {
  11586. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
  11587. }
  11588. public override global::Google.ProtocolBuffers.TestProtos.BarRequest DefaultInstanceForType {
  11589. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
  11590. }
  11591. public override global::Google.ProtocolBuffers.TestProtos.BarRequest BuildPartial() {
  11592. global::Google.ProtocolBuffers.TestProtos.BarRequest returnMe = result;
  11593. result = null;
  11594. return returnMe;
  11595. }
  11596. public override Builder MergeFrom(pb::IMessage other) {
  11597. if (other is global::Google.ProtocolBuffers.TestProtos.BarRequest) {
  11598. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarRequest) other);
  11599. } else {
  11600. base.MergeFrom(other);
  11601. return this;
  11602. }
  11603. }
  11604. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarRequest other) {
  11605. if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
  11606. this.MergeUnknownFields(other.UnknownFields);
  11607. return this;
  11608. }
  11609. public override Builder MergeFrom(pb::CodedInputStream input) {
  11610. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11611. }
  11612. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11613. pb::UnknownFieldSet.Builder unknownFields =
  11614. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11615. while (true) {
  11616. uint tag = input.ReadTag();
  11617. switch (tag) {
  11618. case 0:
  11619. this.UnknownFields = unknownFields.Build();
  11620. return this;
  11621. default: {
  11622. if (!ParseUnknownField(input, unknownFields,
  11623. extensionRegistry, tag)) {
  11624. this.UnknownFields = unknownFields.Build();
  11625. return this;
  11626. }
  11627. break;
  11628. }
  11629. }
  11630. }
  11631. }
  11632. }
  11633. }
  11634. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11635. private static readonly BarResponse defaultInstance = new Builder().BuildPartial();
  11636. public static BarResponse DefaultInstance {
  11637. get { return defaultInstance; }
  11638. }
  11639. public override BarResponse DefaultInstanceForType {
  11640. get { return defaultInstance; }
  11641. }
  11642. protected override BarResponse ThisMessage {
  11643. get { return this; }
  11644. }
  11645. public static pbd::MessageDescriptor Descriptor {
  11646. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11647. }
  11648. protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
  11649. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11650. }
  11651. public override bool IsInitialized {
  11652. get {
  11653. return true;
  11654. }
  11655. }
  11656. public override void WriteTo(pb::CodedOutputStream output) {
  11657. UnknownFields.WriteTo(output);
  11658. }
  11659. private int memoizedSerializedSize = -1;
  11660. public override int SerializedSize {
  11661. get {
  11662. int size = memoizedSerializedSize;
  11663. if (size != -1) return size;
  11664. size = 0;
  11665. size += UnknownFields.SerializedSize;
  11666. memoizedSerializedSize = size;
  11667. return size;
  11668. }
  11669. }
  11670. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data) {
  11671. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11672. }
  11673. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data,
  11674. pb::ExtensionRegistry extensionRegistry) {
  11675. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11676. .BuildParsed();
  11677. }
  11678. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data) {
  11679. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11680. }
  11681. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data,
  11682. pb::ExtensionRegistry extensionRegistry) {
  11683. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11684. .BuildParsed();
  11685. }
  11686. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(global::System.IO.Stream input) {
  11687. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11688. }
  11689. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(
  11690. global::System.IO.Stream input,
  11691. pb::ExtensionRegistry extensionRegistry) {
  11692. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11693. .BuildParsed();
  11694. }
  11695. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input) {
  11696. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11697. }
  11698. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input,
  11699. pb::ExtensionRegistry extensionRegistry) {
  11700. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11701. .BuildParsed();
  11702. }
  11703. public static Builder CreateBuilder() { return new Builder(); }
  11704. public override Builder CreateBuilderForType() { return new Builder(); }
  11705. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarResponse prototype) {
  11706. return (Builder) new Builder().MergeFrom(prototype);
  11707. }
  11708. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarResponse, Builder> {
  11709. protected override Builder ThisBuilder {
  11710. get { return this; }
  11711. }
  11712. // Construct using global::Google.ProtocolBuffers.TestProtos.BarResponse.CreateBuilder()
  11713. public Builder() {}
  11714. global::Google.ProtocolBuffers.TestProtos.BarResponse result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  11715. protected override global::Google.ProtocolBuffers.TestProtos.BarResponse MessageBeingBuilt {
  11716. get { return result; }
  11717. }
  11718. public override Builder Clear() {
  11719. result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  11720. return this;
  11721. }
  11722. public override Builder Clone() {
  11723. return new Builder().MergeFrom(result);
  11724. }
  11725. public override pbd::MessageDescriptor DescriptorForType {
  11726. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
  11727. }
  11728. public override global::Google.ProtocolBuffers.TestProtos.BarResponse DefaultInstanceForType {
  11729. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
  11730. }
  11731. public override global::Google.ProtocolBuffers.TestProtos.BarResponse BuildPartial() {
  11732. global::Google.ProtocolBuffers.TestProtos.BarResponse returnMe = result;
  11733. result = null;
  11734. return returnMe;
  11735. }
  11736. public override Builder MergeFrom(pb::IMessage other) {
  11737. if (other is global::Google.ProtocolBuffers.TestProtos.BarResponse) {
  11738. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarResponse) other);
  11739. } else {
  11740. base.MergeFrom(other);
  11741. return this;
  11742. }
  11743. }
  11744. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarResponse other) {
  11745. if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
  11746. this.MergeUnknownFields(other.UnknownFields);
  11747. return this;
  11748. }
  11749. public override Builder MergeFrom(pb::CodedInputStream input) {
  11750. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11751. }
  11752. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11753. pb::UnknownFieldSet.Builder unknownFields =
  11754. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11755. while (true) {
  11756. uint tag = input.ReadTag();
  11757. switch (tag) {
  11758. case 0:
  11759. this.UnknownFields = unknownFields.Build();
  11760. return this;
  11761. default: {
  11762. if (!ParseUnknownField(input, unknownFields,
  11763. extensionRegistry, tag)) {
  11764. this.UnknownFields = unknownFields.Build();
  11765. return this;
  11766. }
  11767. break;
  11768. }
  11769. }
  11770. }
  11771. }
  11772. }
  11773. }
  11774. #endregion
  11775. #region Services
  11776. public abstract class TestService : pb::IService {
  11777. public abstract void Foo(
  11778. pb::IRpcController controller,
  11779. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  11780. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done);
  11781. public abstract void Bar(
  11782. pb::IRpcController controller,
  11783. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  11784. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done);
  11785. public static pbd::ServiceDescriptor Descriptor {
  11786. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Services[0]; }
  11787. }
  11788. public pbd::ServiceDescriptor DescriptorForType {
  11789. get { return Descriptor; }
  11790. }
  11791. public void CallMethod(
  11792. pbd::MethodDescriptor method,
  11793. pb::IRpcController controller,
  11794. pb::IMessage request,
  11795. global::System.Action<pb::IMessage> done) {
  11796. if (method.Service != Descriptor) {
  11797. throw new global::System.ArgumentException(
  11798. "Service.CallMethod() given method descriptor for wrong " +
  11799. "service type.");
  11800. }
  11801. switch(method.Index) {
  11802. case 0:
  11803. this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest)request,
  11804. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>(
  11805. done));
  11806. return;
  11807. case 1:
  11808. this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest)request,
  11809. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>(
  11810. done));
  11811. return;
  11812. default:
  11813. throw new global::System.InvalidOperationException("Can't get here.");
  11814. }
  11815. }
  11816. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  11817. if (method.Service != Descriptor) {
  11818. throw new global::System.ArgumentException(
  11819. "Service.GetRequestPrototype() given method " +
  11820. "descriptor for wrong service type.");
  11821. }
  11822. switch(method.Index) {
  11823. case 0:
  11824. return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance;
  11825. case 1:
  11826. return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance;
  11827. default:
  11828. throw new global::System.ArgumentException("Can't get here.");
  11829. }
  11830. }
  11831. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  11832. if (method.Service != Descriptor) {
  11833. throw new global::System.ArgumentException(
  11834. "Service.GetResponsePrototype() given method " +
  11835. "descriptor for wrong service type.");
  11836. }
  11837. switch(method.Index) {
  11838. case 0:
  11839. return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance;
  11840. case 1:
  11841. return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance;
  11842. default:
  11843. throw new global::System.ArgumentException("Can't get here.");
  11844. }
  11845. }
  11846. public static Stub CreateStub(
  11847. pb::IRpcChannel channel) {
  11848. return new Stub(channel);
  11849. }
  11850. public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService {
  11851. internal Stub(pb::IRpcChannel channel) {
  11852. this.channel = channel;
  11853. }
  11854. private readonly pb::IRpcChannel channel;
  11855. public pb::IRpcChannel Channel {
  11856. get { return channel; }
  11857. }
  11858. public override void Foo(
  11859. pb::IRpcController controller,
  11860. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  11861. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) {
  11862. channel.CallMethod(
  11863. Descriptor.Methods[0],
  11864. controller,
  11865. request,
  11866. global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance,
  11867. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance));
  11868. }
  11869. public override void Bar(
  11870. pb::IRpcController controller,
  11871. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  11872. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) {
  11873. channel.CallMethod(
  11874. Descriptor.Methods[1],
  11875. controller,
  11876. request,
  11877. global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance,
  11878. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance));
  11879. }
  11880. }
  11881. }
  11882. #endregion
  11883. }