UnitTestProtoFile.cs 585 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224
  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. }
  953. public enum TestSparseEnum {
  954. SPARSE_A = 123,
  955. SPARSE_B = 62374,
  956. SPARSE_C = 12589234,
  957. SPARSE_D = -15,
  958. SPARSE_E = -53452,
  959. SPARSE_F = 0,
  960. SPARSE_G = 2,
  961. }
  962. #endregion
  963. #region Messages
  964. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  965. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  966. public static TestAllTypes DefaultInstance {
  967. get { return defaultInstance; }
  968. }
  969. public override TestAllTypes DefaultInstanceForType {
  970. get { return defaultInstance; }
  971. }
  972. protected override TestAllTypes ThisMessage {
  973. get { return this; }
  974. }
  975. public static pbd::MessageDescriptor Descriptor {
  976. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  977. }
  978. protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
  979. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  980. }
  981. #region Nested types
  982. public static class Types {
  983. public enum NestedEnum {
  984. FOO = 1,
  985. BAR = 2,
  986. BAZ = 3,
  987. }
  988. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  989. private static readonly NestedMessage defaultInstance = new NestedMessage();
  990. public static NestedMessage DefaultInstance {
  991. get { return defaultInstance; }
  992. }
  993. public override NestedMessage DefaultInstanceForType {
  994. get { return defaultInstance; }
  995. }
  996. protected override NestedMessage ThisMessage {
  997. get { return this; }
  998. }
  999. public static pbd::MessageDescriptor Descriptor {
  1000. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1001. }
  1002. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  1003. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1004. }
  1005. // optional int32 bb = 1;
  1006. private bool hasBb;
  1007. private int bb_ = 0;
  1008. public bool HasBb {
  1009. get { return hasBb; }
  1010. }
  1011. public int Bb {
  1012. get { return bb_; }
  1013. }
  1014. public override bool IsInitialized {
  1015. get {
  1016. return true;
  1017. }
  1018. }
  1019. public override void WriteTo(pb::CodedOutputStream output) {
  1020. if (HasBb) {
  1021. output.WriteInt32(1, Bb);
  1022. }
  1023. UnknownFields.WriteTo(output);
  1024. }
  1025. private int memoizedSerializedSize = -1;
  1026. public override int SerializedSize {
  1027. get {
  1028. int size = memoizedSerializedSize;
  1029. if (size != -1) return size;
  1030. size = 0;
  1031. if (HasBb) {
  1032. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1033. }
  1034. size += UnknownFields.SerializedSize;
  1035. memoizedSerializedSize = size;
  1036. return size;
  1037. }
  1038. }
  1039. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1040. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1041. }
  1042. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1043. pb::ExtensionRegistry extensionRegistry) {
  1044. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1045. .BuildParsed();
  1046. }
  1047. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1048. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1049. }
  1050. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data,
  1051. pb::ExtensionRegistry extensionRegistry) {
  1052. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1053. .BuildParsed();
  1054. }
  1055. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1056. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1057. }
  1058. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(
  1059. global::System.IO.Stream input,
  1060. pb::ExtensionRegistry extensionRegistry) {
  1061. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1062. .BuildParsed();
  1063. }
  1064. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1065. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1066. }
  1067. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1068. pb::ExtensionRegistry extensionRegistry) {
  1069. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1070. .BuildParsed();
  1071. }
  1072. public static Builder CreateBuilder() { return new Builder(); }
  1073. public override Builder CreateBuilderForType() { return new Builder(); }
  1074. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage prototype) {
  1075. return (Builder) new Builder().MergeFrom(prototype);
  1076. }
  1077. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, Builder> {
  1078. protected override Builder ThisBuilder {
  1079. get { return this; }
  1080. }
  1081. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder()
  1082. internal Builder() {}
  1083. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1084. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1085. get { return result; }
  1086. }
  1087. public override Builder Clear() {
  1088. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1089. return this;
  1090. }
  1091. public override Builder Clone() {
  1092. return new Builder().MergeFrom(result);
  1093. }
  1094. public override pbd::MessageDescriptor DescriptorForType {
  1095. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
  1096. }
  1097. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1098. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1099. }
  1100. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage BuildPartial() {
  1101. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage returnMe = result;
  1102. result = null;
  1103. return returnMe;
  1104. }
  1105. public override Builder MergeFrom(pb::IMessage other) {
  1106. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) {
  1107. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) other);
  1108. } else {
  1109. base.MergeFrom(other);
  1110. return this;
  1111. }
  1112. }
  1113. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage other) {
  1114. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1115. if (other.HasBb) {
  1116. Bb = other.Bb;
  1117. }
  1118. this.MergeUnknownFields(other.UnknownFields);
  1119. return this;
  1120. }
  1121. public override Builder MergeFrom(pb::CodedInputStream input) {
  1122. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1123. }
  1124. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1125. pb::UnknownFieldSet.Builder unknownFields =
  1126. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1127. while (true) {
  1128. uint tag = input.ReadTag();
  1129. switch (tag) {
  1130. case 0:
  1131. this.UnknownFields = unknownFields.Build();
  1132. return this;
  1133. default: {
  1134. if (!ParseUnknownField(input, unknownFields,
  1135. extensionRegistry, tag)) {
  1136. this.UnknownFields = unknownFields.Build();
  1137. return this;
  1138. }
  1139. break;
  1140. }
  1141. case 8: {
  1142. Bb = input.ReadInt32();
  1143. break;
  1144. }
  1145. }
  1146. }
  1147. }
  1148. // optional int32 bb = 1;
  1149. public bool HasBb {
  1150. get { return result.HasBb; }
  1151. }
  1152. public int Bb {
  1153. get { return result.Bb; }
  1154. set { SetBb(value); }
  1155. }
  1156. public Builder SetBb(int value) {
  1157. result.hasBb = true;
  1158. result.bb_ = value;
  1159. return this;
  1160. }
  1161. public Builder ClearBb() {
  1162. result.hasBb = false;
  1163. result.bb_ = 0;
  1164. return this;
  1165. }
  1166. }
  1167. }
  1168. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1169. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1170. public static OptionalGroup DefaultInstance {
  1171. get { return defaultInstance; }
  1172. }
  1173. public override OptionalGroup DefaultInstanceForType {
  1174. get { return defaultInstance; }
  1175. }
  1176. protected override OptionalGroup ThisMessage {
  1177. get { return this; }
  1178. }
  1179. public static pbd::MessageDescriptor Descriptor {
  1180. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1181. }
  1182. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
  1183. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1184. }
  1185. // optional int32 a = 17;
  1186. private bool hasA;
  1187. private int a_ = 0;
  1188. public bool HasA {
  1189. get { return hasA; }
  1190. }
  1191. public int A {
  1192. get { return a_; }
  1193. }
  1194. public override bool IsInitialized {
  1195. get {
  1196. return true;
  1197. }
  1198. }
  1199. public override void WriteTo(pb::CodedOutputStream output) {
  1200. if (HasA) {
  1201. output.WriteInt32(17, A);
  1202. }
  1203. UnknownFields.WriteTo(output);
  1204. }
  1205. private int memoizedSerializedSize = -1;
  1206. public override int SerializedSize {
  1207. get {
  1208. int size = memoizedSerializedSize;
  1209. if (size != -1) return size;
  1210. size = 0;
  1211. if (HasA) {
  1212. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1213. }
  1214. size += UnknownFields.SerializedSize;
  1215. memoizedSerializedSize = size;
  1216. return size;
  1217. }
  1218. }
  1219. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1220. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1221. }
  1222. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1223. pb::ExtensionRegistry extensionRegistry) {
  1224. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1225. .BuildParsed();
  1226. }
  1227. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1228. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1229. }
  1230. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data,
  1231. pb::ExtensionRegistry extensionRegistry) {
  1232. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1233. .BuildParsed();
  1234. }
  1235. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1236. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1237. }
  1238. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(
  1239. global::System.IO.Stream input,
  1240. pb::ExtensionRegistry extensionRegistry) {
  1241. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1242. .BuildParsed();
  1243. }
  1244. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1245. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1246. }
  1247. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1248. pb::ExtensionRegistry extensionRegistry) {
  1249. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1250. .BuildParsed();
  1251. }
  1252. public static Builder CreateBuilder() { return new Builder(); }
  1253. public override Builder CreateBuilderForType() { return new Builder(); }
  1254. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup prototype) {
  1255. return (Builder) new Builder().MergeFrom(prototype);
  1256. }
  1257. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, Builder> {
  1258. protected override Builder ThisBuilder {
  1259. get { return this; }
  1260. }
  1261. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1262. internal Builder() {}
  1263. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1264. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1265. get { return result; }
  1266. }
  1267. public override Builder Clear() {
  1268. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1269. return this;
  1270. }
  1271. public override Builder Clone() {
  1272. return new Builder().MergeFrom(result);
  1273. }
  1274. public override pbd::MessageDescriptor DescriptorForType {
  1275. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
  1276. }
  1277. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1278. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1279. }
  1280. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup BuildPartial() {
  1281. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup returnMe = result;
  1282. result = null;
  1283. return returnMe;
  1284. }
  1285. public override Builder MergeFrom(pb::IMessage other) {
  1286. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) {
  1287. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) other);
  1288. } else {
  1289. base.MergeFrom(other);
  1290. return this;
  1291. }
  1292. }
  1293. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup other) {
  1294. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1295. if (other.HasA) {
  1296. A = other.A;
  1297. }
  1298. this.MergeUnknownFields(other.UnknownFields);
  1299. return this;
  1300. }
  1301. public override Builder MergeFrom(pb::CodedInputStream input) {
  1302. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1303. }
  1304. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1305. pb::UnknownFieldSet.Builder unknownFields =
  1306. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1307. while (true) {
  1308. uint tag = input.ReadTag();
  1309. switch (tag) {
  1310. case 0:
  1311. this.UnknownFields = unknownFields.Build();
  1312. return this;
  1313. default: {
  1314. if (!ParseUnknownField(input, unknownFields,
  1315. extensionRegistry, tag)) {
  1316. this.UnknownFields = unknownFields.Build();
  1317. return this;
  1318. }
  1319. break;
  1320. }
  1321. case 136: {
  1322. A = input.ReadInt32();
  1323. break;
  1324. }
  1325. }
  1326. }
  1327. }
  1328. // optional int32 a = 17;
  1329. public bool HasA {
  1330. get { return result.HasA; }
  1331. }
  1332. public int A {
  1333. get { return result.A; }
  1334. set { SetA(value); }
  1335. }
  1336. public Builder SetA(int value) {
  1337. result.hasA = true;
  1338. result.a_ = value;
  1339. return this;
  1340. }
  1341. public Builder ClearA() {
  1342. result.hasA = false;
  1343. result.a_ = 0;
  1344. return this;
  1345. }
  1346. }
  1347. }
  1348. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1349. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1350. public static RepeatedGroup DefaultInstance {
  1351. get { return defaultInstance; }
  1352. }
  1353. public override RepeatedGroup DefaultInstanceForType {
  1354. get { return defaultInstance; }
  1355. }
  1356. protected override RepeatedGroup ThisMessage {
  1357. get { return this; }
  1358. }
  1359. public static pbd::MessageDescriptor Descriptor {
  1360. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1361. }
  1362. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
  1363. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1364. }
  1365. // optional int32 a = 47;
  1366. private bool hasA;
  1367. private int a_ = 0;
  1368. public bool HasA {
  1369. get { return hasA; }
  1370. }
  1371. public int A {
  1372. get { return a_; }
  1373. }
  1374. public override bool IsInitialized {
  1375. get {
  1376. return true;
  1377. }
  1378. }
  1379. public override void WriteTo(pb::CodedOutputStream output) {
  1380. if (HasA) {
  1381. output.WriteInt32(47, A);
  1382. }
  1383. UnknownFields.WriteTo(output);
  1384. }
  1385. private int memoizedSerializedSize = -1;
  1386. public override int SerializedSize {
  1387. get {
  1388. int size = memoizedSerializedSize;
  1389. if (size != -1) return size;
  1390. size = 0;
  1391. if (HasA) {
  1392. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1393. }
  1394. size += UnknownFields.SerializedSize;
  1395. memoizedSerializedSize = size;
  1396. return size;
  1397. }
  1398. }
  1399. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1400. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1401. }
  1402. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1403. pb::ExtensionRegistry extensionRegistry) {
  1404. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1405. .BuildParsed();
  1406. }
  1407. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1408. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1409. }
  1410. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data,
  1411. pb::ExtensionRegistry extensionRegistry) {
  1412. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1413. .BuildParsed();
  1414. }
  1415. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1416. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1417. }
  1418. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(
  1419. global::System.IO.Stream input,
  1420. pb::ExtensionRegistry extensionRegistry) {
  1421. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1422. .BuildParsed();
  1423. }
  1424. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1425. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1426. }
  1427. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1428. pb::ExtensionRegistry extensionRegistry) {
  1429. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1430. .BuildParsed();
  1431. }
  1432. public static Builder CreateBuilder() { return new Builder(); }
  1433. public override Builder CreateBuilderForType() { return new Builder(); }
  1434. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup prototype) {
  1435. return (Builder) new Builder().MergeFrom(prototype);
  1436. }
  1437. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, Builder> {
  1438. protected override Builder ThisBuilder {
  1439. get { return this; }
  1440. }
  1441. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1442. internal Builder() {}
  1443. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1444. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1445. get { return result; }
  1446. }
  1447. public override Builder Clear() {
  1448. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1449. return this;
  1450. }
  1451. public override Builder Clone() {
  1452. return new Builder().MergeFrom(result);
  1453. }
  1454. public override pbd::MessageDescriptor DescriptorForType {
  1455. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1456. }
  1457. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1458. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1459. }
  1460. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1461. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup returnMe = result;
  1462. result = null;
  1463. return returnMe;
  1464. }
  1465. public override Builder MergeFrom(pb::IMessage other) {
  1466. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) {
  1467. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) other);
  1468. } else {
  1469. base.MergeFrom(other);
  1470. return this;
  1471. }
  1472. }
  1473. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup other) {
  1474. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1475. if (other.HasA) {
  1476. A = other.A;
  1477. }
  1478. this.MergeUnknownFields(other.UnknownFields);
  1479. return this;
  1480. }
  1481. public override Builder MergeFrom(pb::CodedInputStream input) {
  1482. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1483. }
  1484. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1485. pb::UnknownFieldSet.Builder unknownFields =
  1486. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1487. while (true) {
  1488. uint tag = input.ReadTag();
  1489. switch (tag) {
  1490. case 0:
  1491. this.UnknownFields = unknownFields.Build();
  1492. return this;
  1493. default: {
  1494. if (!ParseUnknownField(input, unknownFields,
  1495. extensionRegistry, tag)) {
  1496. this.UnknownFields = unknownFields.Build();
  1497. return this;
  1498. }
  1499. break;
  1500. }
  1501. case 376: {
  1502. A = input.ReadInt32();
  1503. break;
  1504. }
  1505. }
  1506. }
  1507. }
  1508. // optional int32 a = 47;
  1509. public bool HasA {
  1510. get { return result.HasA; }
  1511. }
  1512. public int A {
  1513. get { return result.A; }
  1514. set { SetA(value); }
  1515. }
  1516. public Builder SetA(int value) {
  1517. result.hasA = true;
  1518. result.a_ = value;
  1519. return this;
  1520. }
  1521. public Builder ClearA() {
  1522. result.hasA = false;
  1523. result.a_ = 0;
  1524. return this;
  1525. }
  1526. }
  1527. }
  1528. }
  1529. #endregion
  1530. // optional int32 optional_int32 = 1;
  1531. private bool hasOptionalInt32;
  1532. private int optionalInt32_ = 0;
  1533. public bool HasOptionalInt32 {
  1534. get { return hasOptionalInt32; }
  1535. }
  1536. public int OptionalInt32 {
  1537. get { return optionalInt32_; }
  1538. }
  1539. // optional int64 optional_int64 = 2;
  1540. private bool hasOptionalInt64;
  1541. private long optionalInt64_ = 0L;
  1542. public bool HasOptionalInt64 {
  1543. get { return hasOptionalInt64; }
  1544. }
  1545. public long OptionalInt64 {
  1546. get { return optionalInt64_; }
  1547. }
  1548. // optional uint32 optional_uint32 = 3;
  1549. private bool hasOptionalUint32;
  1550. private uint optionalUint32_ = 0;
  1551. public bool HasOptionalUint32 {
  1552. get { return hasOptionalUint32; }
  1553. }
  1554. public uint OptionalUint32 {
  1555. get { return optionalUint32_; }
  1556. }
  1557. // optional uint64 optional_uint64 = 4;
  1558. private bool hasOptionalUint64;
  1559. private ulong optionalUint64_ = 0UL;
  1560. public bool HasOptionalUint64 {
  1561. get { return hasOptionalUint64; }
  1562. }
  1563. public ulong OptionalUint64 {
  1564. get { return optionalUint64_; }
  1565. }
  1566. // optional sint32 optional_sint32 = 5;
  1567. private bool hasOptionalSint32;
  1568. private int optionalSint32_ = 0;
  1569. public bool HasOptionalSint32 {
  1570. get { return hasOptionalSint32; }
  1571. }
  1572. public int OptionalSint32 {
  1573. get { return optionalSint32_; }
  1574. }
  1575. // optional sint64 optional_sint64 = 6;
  1576. private bool hasOptionalSint64;
  1577. private long optionalSint64_ = 0L;
  1578. public bool HasOptionalSint64 {
  1579. get { return hasOptionalSint64; }
  1580. }
  1581. public long OptionalSint64 {
  1582. get { return optionalSint64_; }
  1583. }
  1584. // optional fixed32 optional_fixed32 = 7;
  1585. private bool hasOptionalFixed32;
  1586. private uint optionalFixed32_ = 0;
  1587. public bool HasOptionalFixed32 {
  1588. get { return hasOptionalFixed32; }
  1589. }
  1590. public uint OptionalFixed32 {
  1591. get { return optionalFixed32_; }
  1592. }
  1593. // optional fixed64 optional_fixed64 = 8;
  1594. private bool hasOptionalFixed64;
  1595. private ulong optionalFixed64_ = 0UL;
  1596. public bool HasOptionalFixed64 {
  1597. get { return hasOptionalFixed64; }
  1598. }
  1599. public ulong OptionalFixed64 {
  1600. get { return optionalFixed64_; }
  1601. }
  1602. // optional sfixed32 optional_sfixed32 = 9;
  1603. private bool hasOptionalSfixed32;
  1604. private int optionalSfixed32_ = 0;
  1605. public bool HasOptionalSfixed32 {
  1606. get { return hasOptionalSfixed32; }
  1607. }
  1608. public int OptionalSfixed32 {
  1609. get { return optionalSfixed32_; }
  1610. }
  1611. // optional sfixed64 optional_sfixed64 = 10;
  1612. private bool hasOptionalSfixed64;
  1613. private long optionalSfixed64_ = 0L;
  1614. public bool HasOptionalSfixed64 {
  1615. get { return hasOptionalSfixed64; }
  1616. }
  1617. public long OptionalSfixed64 {
  1618. get { return optionalSfixed64_; }
  1619. }
  1620. // optional float optional_float = 11;
  1621. private bool hasOptionalFloat;
  1622. private float optionalFloat_ = 0F;
  1623. public bool HasOptionalFloat {
  1624. get { return hasOptionalFloat; }
  1625. }
  1626. public float OptionalFloat {
  1627. get { return optionalFloat_; }
  1628. }
  1629. // optional double optional_double = 12;
  1630. private bool hasOptionalDouble;
  1631. private double optionalDouble_ = 0D;
  1632. public bool HasOptionalDouble {
  1633. get { return hasOptionalDouble; }
  1634. }
  1635. public double OptionalDouble {
  1636. get { return optionalDouble_; }
  1637. }
  1638. // optional bool optional_bool = 13;
  1639. private bool hasOptionalBool;
  1640. private bool optionalBool_ = false;
  1641. public bool HasOptionalBool {
  1642. get { return hasOptionalBool; }
  1643. }
  1644. public bool OptionalBool {
  1645. get { return optionalBool_; }
  1646. }
  1647. // optional string optional_string = 14;
  1648. private bool hasOptionalString;
  1649. private string optionalString_ = "";
  1650. public bool HasOptionalString {
  1651. get { return hasOptionalString; }
  1652. }
  1653. public string OptionalString {
  1654. get { return optionalString_; }
  1655. }
  1656. // optional bytes optional_bytes = 15;
  1657. private bool hasOptionalBytes;
  1658. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1659. public bool HasOptionalBytes {
  1660. get { return hasOptionalBytes; }
  1661. }
  1662. public pb::ByteString OptionalBytes {
  1663. get { return optionalBytes_; }
  1664. }
  1665. // optional group OptionalGroup = 16 {
  1666. private bool hasOptionalGroup;
  1667. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1668. public bool HasOptionalGroup {
  1669. get { return hasOptionalGroup; }
  1670. }
  1671. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  1672. get { return optionalGroup_; }
  1673. }
  1674. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1675. private bool hasOptionalNestedMessage;
  1676. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  1677. public bool HasOptionalNestedMessage {
  1678. get { return hasOptionalNestedMessage; }
  1679. }
  1680. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1681. get { return optionalNestedMessage_; }
  1682. }
  1683. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1684. private bool hasOptionalForeignMessage;
  1685. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  1686. public bool HasOptionalForeignMessage {
  1687. get { return hasOptionalForeignMessage; }
  1688. }
  1689. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  1690. get { return optionalForeignMessage_; }
  1691. }
  1692. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1693. private bool hasOptionalImportMessage;
  1694. private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  1695. public bool HasOptionalImportMessage {
  1696. get { return hasOptionalImportMessage; }
  1697. }
  1698. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  1699. get { return optionalImportMessage_; }
  1700. }
  1701. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1702. private bool hasOptionalNestedEnum;
  1703. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  1704. public bool HasOptionalNestedEnum {
  1705. get { return hasOptionalNestedEnum; }
  1706. }
  1707. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1708. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1709. private bool hasOptionalForeignEnum;
  1710. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  1711. public bool HasOptionalForeignEnum {
  1712. get { return hasOptionalForeignEnum; }
  1713. }
  1714. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1715. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1716. private bool hasOptionalImportEnum;
  1717. private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  1718. public bool HasOptionalImportEnum {
  1719. get { return hasOptionalImportEnum; }
  1720. }
  1721. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1722. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1723. private bool hasOptionalStringPiece;
  1724. private string optionalStringPiece_ = "";
  1725. public bool HasOptionalStringPiece {
  1726. get { return hasOptionalStringPiece; }
  1727. }
  1728. public string OptionalStringPiece {
  1729. get { return optionalStringPiece_; }
  1730. }
  1731. // optional string optional_cord = 25 [ctype = CORD];
  1732. private bool hasOptionalCord;
  1733. private string optionalCord_ = "";
  1734. public bool HasOptionalCord {
  1735. get { return hasOptionalCord; }
  1736. }
  1737. public string OptionalCord {
  1738. get { return optionalCord_; }
  1739. }
  1740. // repeated int32 repeated_int32 = 31;
  1741. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1742. public scg::IList<int> RepeatedInt32List {
  1743. get { return repeatedInt32_; }
  1744. }
  1745. public int RepeatedInt32Count {
  1746. get { return repeatedInt32_.Count; }
  1747. }
  1748. public int GetRepeatedInt32(int index) {
  1749. return repeatedInt32_[index];
  1750. }
  1751. // repeated int64 repeated_int64 = 32;
  1752. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1753. public scg::IList<long> RepeatedInt64List {
  1754. get { return repeatedInt64_; }
  1755. }
  1756. public int RepeatedInt64Count {
  1757. get { return repeatedInt64_.Count; }
  1758. }
  1759. public long GetRepeatedInt64(int index) {
  1760. return repeatedInt64_[index];
  1761. }
  1762. // repeated uint32 repeated_uint32 = 33;
  1763. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1764. public scg::IList<uint> RepeatedUint32List {
  1765. get { return repeatedUint32_; }
  1766. }
  1767. public int RepeatedUint32Count {
  1768. get { return repeatedUint32_.Count; }
  1769. }
  1770. public uint GetRepeatedUint32(int index) {
  1771. return repeatedUint32_[index];
  1772. }
  1773. // repeated uint64 repeated_uint64 = 34;
  1774. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1775. public scg::IList<ulong> RepeatedUint64List {
  1776. get { return repeatedUint64_; }
  1777. }
  1778. public int RepeatedUint64Count {
  1779. get { return repeatedUint64_.Count; }
  1780. }
  1781. public ulong GetRepeatedUint64(int index) {
  1782. return repeatedUint64_[index];
  1783. }
  1784. // repeated sint32 repeated_sint32 = 35;
  1785. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1786. public scg::IList<int> RepeatedSint32List {
  1787. get { return repeatedSint32_; }
  1788. }
  1789. public int RepeatedSint32Count {
  1790. get { return repeatedSint32_.Count; }
  1791. }
  1792. public int GetRepeatedSint32(int index) {
  1793. return repeatedSint32_[index];
  1794. }
  1795. // repeated sint64 repeated_sint64 = 36;
  1796. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1797. public scg::IList<long> RepeatedSint64List {
  1798. get { return repeatedSint64_; }
  1799. }
  1800. public int RepeatedSint64Count {
  1801. get { return repeatedSint64_.Count; }
  1802. }
  1803. public long GetRepeatedSint64(int index) {
  1804. return repeatedSint64_[index];
  1805. }
  1806. // repeated fixed32 repeated_fixed32 = 37;
  1807. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1808. public scg::IList<uint> RepeatedFixed32List {
  1809. get { return repeatedFixed32_; }
  1810. }
  1811. public int RepeatedFixed32Count {
  1812. get { return repeatedFixed32_.Count; }
  1813. }
  1814. public uint GetRepeatedFixed32(int index) {
  1815. return repeatedFixed32_[index];
  1816. }
  1817. // repeated fixed64 repeated_fixed64 = 38;
  1818. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1819. public scg::IList<ulong> RepeatedFixed64List {
  1820. get { return repeatedFixed64_; }
  1821. }
  1822. public int RepeatedFixed64Count {
  1823. get { return repeatedFixed64_.Count; }
  1824. }
  1825. public ulong GetRepeatedFixed64(int index) {
  1826. return repeatedFixed64_[index];
  1827. }
  1828. // repeated sfixed32 repeated_sfixed32 = 39;
  1829. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1830. public scg::IList<int> RepeatedSfixed32List {
  1831. get { return repeatedSfixed32_; }
  1832. }
  1833. public int RepeatedSfixed32Count {
  1834. get { return repeatedSfixed32_.Count; }
  1835. }
  1836. public int GetRepeatedSfixed32(int index) {
  1837. return repeatedSfixed32_[index];
  1838. }
  1839. // repeated sfixed64 repeated_sfixed64 = 40;
  1840. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1841. public scg::IList<long> RepeatedSfixed64List {
  1842. get { return repeatedSfixed64_; }
  1843. }
  1844. public int RepeatedSfixed64Count {
  1845. get { return repeatedSfixed64_.Count; }
  1846. }
  1847. public long GetRepeatedSfixed64(int index) {
  1848. return repeatedSfixed64_[index];
  1849. }
  1850. // repeated float repeated_float = 41;
  1851. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1852. public scg::IList<float> RepeatedFloatList {
  1853. get { return repeatedFloat_; }
  1854. }
  1855. public int RepeatedFloatCount {
  1856. get { return repeatedFloat_.Count; }
  1857. }
  1858. public float GetRepeatedFloat(int index) {
  1859. return repeatedFloat_[index];
  1860. }
  1861. // repeated double repeated_double = 42;
  1862. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1863. public scg::IList<double> RepeatedDoubleList {
  1864. get { return repeatedDouble_; }
  1865. }
  1866. public int RepeatedDoubleCount {
  1867. get { return repeatedDouble_.Count; }
  1868. }
  1869. public double GetRepeatedDouble(int index) {
  1870. return repeatedDouble_[index];
  1871. }
  1872. // repeated bool repeated_bool = 43;
  1873. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1874. public scg::IList<bool> RepeatedBoolList {
  1875. get { return repeatedBool_; }
  1876. }
  1877. public int RepeatedBoolCount {
  1878. get { return repeatedBool_.Count; }
  1879. }
  1880. public bool GetRepeatedBool(int index) {
  1881. return repeatedBool_[index];
  1882. }
  1883. // repeated string repeated_string = 44;
  1884. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1885. public scg::IList<string> RepeatedStringList {
  1886. get { return repeatedString_; }
  1887. }
  1888. public int RepeatedStringCount {
  1889. get { return repeatedString_.Count; }
  1890. }
  1891. public string GetRepeatedString(int index) {
  1892. return repeatedString_[index];
  1893. }
  1894. // repeated bytes repeated_bytes = 45;
  1895. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1896. public scg::IList<pb::ByteString> RepeatedBytesList {
  1897. get { return repeatedBytes_; }
  1898. }
  1899. public int RepeatedBytesCount {
  1900. get { return repeatedBytes_.Count; }
  1901. }
  1902. public pb::ByteString GetRepeatedBytes(int index) {
  1903. return repeatedBytes_[index];
  1904. }
  1905. // repeated group RepeatedGroup = 46 {
  1906. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  1907. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1908. get { return repeatedGroup_; }
  1909. }
  1910. public int RepeatedGroupCount
  1911. { get { return repeatedGroup_.Count; }
  1912. }
  1913. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1914. return repeatedGroup_ [index];
  1915. }
  1916. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1917. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  1918. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1919. get { return repeatedNestedMessage_; }
  1920. }
  1921. public int RepeatedNestedMessageCount
  1922. { get { return repeatedNestedMessage_.Count; }
  1923. }
  1924. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1925. return repeatedNestedMessage_ [index];
  1926. }
  1927. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1928. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  1929. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  1930. get { return repeatedForeignMessage_; }
  1931. }
  1932. public int RepeatedForeignMessageCount
  1933. { get { return repeatedForeignMessage_.Count; }
  1934. }
  1935. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  1936. return repeatedForeignMessage_ [index];
  1937. }
  1938. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1939. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  1940. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  1941. get { return repeatedImportMessage_; }
  1942. }
  1943. public int RepeatedImportMessageCount
  1944. { get { return repeatedImportMessage_.Count; }
  1945. }
  1946. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  1947. return repeatedImportMessage_ [index];
  1948. }
  1949. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1950. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> ();
  1951. public scg.IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1952. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  1953. }
  1954. public int RepeatedNestedEnumCount {
  1955. get { return repeatedNestedEnum_.Count; }
  1956. }
  1957. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  1958. return repeatedNestedEnum_[index];
  1959. }
  1960. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  1961. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  1962. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  1963. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  1964. }
  1965. public int RepeatedForeignEnumCount {
  1966. get { return repeatedForeignEnum_.Count; }
  1967. }
  1968. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  1969. return repeatedForeignEnum_[index];
  1970. }
  1971. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  1972. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum> ();
  1973. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  1974. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  1975. }
  1976. public int RepeatedImportEnumCount {
  1977. get { return repeatedImportEnum_.Count; }
  1978. }
  1979. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  1980. return repeatedImportEnum_[index];
  1981. }
  1982. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  1983. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  1984. public scg::IList<string> RepeatedStringPieceList {
  1985. get { return repeatedStringPiece_; }
  1986. }
  1987. public int RepeatedStringPieceCount {
  1988. get { return repeatedStringPiece_.Count; }
  1989. }
  1990. public string GetRepeatedStringPiece(int index) {
  1991. return repeatedStringPiece_[index];
  1992. }
  1993. // repeated string repeated_cord = 55 [ctype = CORD];
  1994. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  1995. public scg::IList<string> RepeatedCordList {
  1996. get { return repeatedCord_; }
  1997. }
  1998. public int RepeatedCordCount {
  1999. get { return repeatedCord_.Count; }
  2000. }
  2001. public string GetRepeatedCord(int index) {
  2002. return repeatedCord_[index];
  2003. }
  2004. // optional int32 default_int32 = 61 [default = 41];
  2005. private bool hasDefaultInt32;
  2006. private int defaultInt32_ = 41;
  2007. public bool HasDefaultInt32 {
  2008. get { return hasDefaultInt32; }
  2009. }
  2010. public int DefaultInt32 {
  2011. get { return defaultInt32_; }
  2012. }
  2013. // optional int64 default_int64 = 62 [default = 42];
  2014. private bool hasDefaultInt64;
  2015. private long defaultInt64_ = 42L;
  2016. public bool HasDefaultInt64 {
  2017. get { return hasDefaultInt64; }
  2018. }
  2019. public long DefaultInt64 {
  2020. get { return defaultInt64_; }
  2021. }
  2022. // optional uint32 default_uint32 = 63 [default = 43];
  2023. private bool hasDefaultUint32;
  2024. private uint defaultUint32_ = 43;
  2025. public bool HasDefaultUint32 {
  2026. get { return hasDefaultUint32; }
  2027. }
  2028. public uint DefaultUint32 {
  2029. get { return defaultUint32_; }
  2030. }
  2031. // optional uint64 default_uint64 = 64 [default = 44];
  2032. private bool hasDefaultUint64;
  2033. private ulong defaultUint64_ = 44UL;
  2034. public bool HasDefaultUint64 {
  2035. get { return hasDefaultUint64; }
  2036. }
  2037. public ulong DefaultUint64 {
  2038. get { return defaultUint64_; }
  2039. }
  2040. // optional sint32 default_sint32 = 65 [default = -45];
  2041. private bool hasDefaultSint32;
  2042. private int defaultSint32_ = -45;
  2043. public bool HasDefaultSint32 {
  2044. get { return hasDefaultSint32; }
  2045. }
  2046. public int DefaultSint32 {
  2047. get { return defaultSint32_; }
  2048. }
  2049. // optional sint64 default_sint64 = 66 [default = 46];
  2050. private bool hasDefaultSint64;
  2051. private long defaultSint64_ = 46L;
  2052. public bool HasDefaultSint64 {
  2053. get { return hasDefaultSint64; }
  2054. }
  2055. public long DefaultSint64 {
  2056. get { return defaultSint64_; }
  2057. }
  2058. // optional fixed32 default_fixed32 = 67 [default = 47];
  2059. private bool hasDefaultFixed32;
  2060. private uint defaultFixed32_ = 47;
  2061. public bool HasDefaultFixed32 {
  2062. get { return hasDefaultFixed32; }
  2063. }
  2064. public uint DefaultFixed32 {
  2065. get { return defaultFixed32_; }
  2066. }
  2067. // optional fixed64 default_fixed64 = 68 [default = 48];
  2068. private bool hasDefaultFixed64;
  2069. private ulong defaultFixed64_ = 48UL;
  2070. public bool HasDefaultFixed64 {
  2071. get { return hasDefaultFixed64; }
  2072. }
  2073. public ulong DefaultFixed64 {
  2074. get { return defaultFixed64_; }
  2075. }
  2076. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2077. private bool hasDefaultSfixed32;
  2078. private int defaultSfixed32_ = 49;
  2079. public bool HasDefaultSfixed32 {
  2080. get { return hasDefaultSfixed32; }
  2081. }
  2082. public int DefaultSfixed32 {
  2083. get { return defaultSfixed32_; }
  2084. }
  2085. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2086. private bool hasDefaultSfixed64;
  2087. private long defaultSfixed64_ = -50L;
  2088. public bool HasDefaultSfixed64 {
  2089. get { return hasDefaultSfixed64; }
  2090. }
  2091. public long DefaultSfixed64 {
  2092. get { return defaultSfixed64_; }
  2093. }
  2094. // optional float default_float = 71 [default = 51.5];
  2095. private bool hasDefaultFloat;
  2096. private float defaultFloat_ = 51.5F;
  2097. public bool HasDefaultFloat {
  2098. get { return hasDefaultFloat; }
  2099. }
  2100. public float DefaultFloat {
  2101. get { return defaultFloat_; }
  2102. }
  2103. // optional double default_double = 72 [default = 52000];
  2104. private bool hasDefaultDouble;
  2105. private double defaultDouble_ = 52000D;
  2106. public bool HasDefaultDouble {
  2107. get { return hasDefaultDouble; }
  2108. }
  2109. public double DefaultDouble {
  2110. get { return defaultDouble_; }
  2111. }
  2112. // optional bool default_bool = 73 [default = true];
  2113. private bool hasDefaultBool;
  2114. private bool defaultBool_ = true;
  2115. public bool HasDefaultBool {
  2116. get { return hasDefaultBool; }
  2117. }
  2118. public bool DefaultBool {
  2119. get { return defaultBool_; }
  2120. }
  2121. // optional string default_string = 74 [default = "hello"];
  2122. private bool hasDefaultString;
  2123. private string defaultString_ = "hello";
  2124. public bool HasDefaultString {
  2125. get { return hasDefaultString; }
  2126. }
  2127. public string DefaultString {
  2128. get { return defaultString_; }
  2129. }
  2130. // optional bytes default_bytes = 75 [default = "world"];
  2131. private bool hasDefaultBytes;
  2132. private pb::ByteString defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2133. public bool HasDefaultBytes {
  2134. get { return hasDefaultBytes; }
  2135. }
  2136. public pb::ByteString DefaultBytes {
  2137. get { return defaultBytes_; }
  2138. }
  2139. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2140. private bool hasDefaultNestedEnum;
  2141. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  2142. public bool HasDefaultNestedEnum {
  2143. get { return hasDefaultNestedEnum; }
  2144. }
  2145. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2146. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2147. private bool hasDefaultForeignEnum;
  2148. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  2149. public bool HasDefaultForeignEnum {
  2150. get { return hasDefaultForeignEnum; }
  2151. }
  2152. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2153. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2154. private bool hasDefaultImportEnum;
  2155. private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  2156. public bool HasDefaultImportEnum {
  2157. get { return hasDefaultImportEnum; }
  2158. }
  2159. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2160. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2161. private bool hasDefaultStringPiece;
  2162. private string defaultStringPiece_ = "abc";
  2163. public bool HasDefaultStringPiece {
  2164. get { return hasDefaultStringPiece; }
  2165. }
  2166. public string DefaultStringPiece {
  2167. get { return defaultStringPiece_; }
  2168. }
  2169. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2170. private bool hasDefaultCord;
  2171. private string defaultCord_ = "123";
  2172. public bool HasDefaultCord {
  2173. get { return hasDefaultCord; }
  2174. }
  2175. public string DefaultCord {
  2176. get { return defaultCord_; }
  2177. }
  2178. public override bool IsInitialized {
  2179. get {
  2180. return true;
  2181. }
  2182. }
  2183. public override void WriteTo(pb::CodedOutputStream output) {
  2184. if (HasOptionalInt32) {
  2185. output.WriteInt32(1, OptionalInt32);
  2186. }
  2187. if (HasOptionalInt64) {
  2188. output.WriteInt64(2, OptionalInt64);
  2189. }
  2190. if (HasOptionalUint32) {
  2191. output.WriteUInt32(3, OptionalUint32);
  2192. }
  2193. if (HasOptionalUint64) {
  2194. output.WriteUInt64(4, OptionalUint64);
  2195. }
  2196. if (HasOptionalSint32) {
  2197. output.WriteSInt32(5, OptionalSint32);
  2198. }
  2199. if (HasOptionalSint64) {
  2200. output.WriteSInt64(6, OptionalSint64);
  2201. }
  2202. if (HasOptionalFixed32) {
  2203. output.WriteFixed32(7, OptionalFixed32);
  2204. }
  2205. if (HasOptionalFixed64) {
  2206. output.WriteFixed64(8, OptionalFixed64);
  2207. }
  2208. if (HasOptionalSfixed32) {
  2209. output.WriteSFixed32(9, OptionalSfixed32);
  2210. }
  2211. if (HasOptionalSfixed64) {
  2212. output.WriteSFixed64(10, OptionalSfixed64);
  2213. }
  2214. if (HasOptionalFloat) {
  2215. output.WriteFloat(11, OptionalFloat);
  2216. }
  2217. if (HasOptionalDouble) {
  2218. output.WriteDouble(12, OptionalDouble);
  2219. }
  2220. if (HasOptionalBool) {
  2221. output.WriteBool(13, OptionalBool);
  2222. }
  2223. if (HasOptionalString) {
  2224. output.WriteString(14, OptionalString);
  2225. }
  2226. if (HasOptionalBytes) {
  2227. output.WriteBytes(15, OptionalBytes);
  2228. }
  2229. if (HasOptionalGroup) {
  2230. output.WriteGroup(16, OptionalGroup);
  2231. }
  2232. if (HasOptionalNestedMessage) {
  2233. output.WriteMessage(18, OptionalNestedMessage);
  2234. }
  2235. if (HasOptionalForeignMessage) {
  2236. output.WriteMessage(19, OptionalForeignMessage);
  2237. }
  2238. if (HasOptionalImportMessage) {
  2239. output.WriteMessage(20, OptionalImportMessage);
  2240. }
  2241. if (HasOptionalNestedEnum) {
  2242. output.WriteEnum(21, (int) OptionalNestedEnum);
  2243. }
  2244. if (HasOptionalForeignEnum) {
  2245. output.WriteEnum(22, (int) OptionalForeignEnum);
  2246. }
  2247. if (HasOptionalImportEnum) {
  2248. output.WriteEnum(23, (int) OptionalImportEnum);
  2249. }
  2250. if (HasOptionalStringPiece) {
  2251. output.WriteString(24, OptionalStringPiece);
  2252. }
  2253. if (HasOptionalCord) {
  2254. output.WriteString(25, OptionalCord);
  2255. }
  2256. foreach (int element in RepeatedInt32List) {
  2257. output.WriteInt32(31, element);
  2258. }
  2259. foreach (long element in RepeatedInt64List) {
  2260. output.WriteInt64(32, element);
  2261. }
  2262. foreach (uint element in RepeatedUint32List) {
  2263. output.WriteUInt32(33, element);
  2264. }
  2265. foreach (ulong element in RepeatedUint64List) {
  2266. output.WriteUInt64(34, element);
  2267. }
  2268. foreach (int element in RepeatedSint32List) {
  2269. output.WriteSInt32(35, element);
  2270. }
  2271. foreach (long element in RepeatedSint64List) {
  2272. output.WriteSInt64(36, element);
  2273. }
  2274. foreach (uint element in RepeatedFixed32List) {
  2275. output.WriteFixed32(37, element);
  2276. }
  2277. foreach (ulong element in RepeatedFixed64List) {
  2278. output.WriteFixed64(38, element);
  2279. }
  2280. foreach (int element in RepeatedSfixed32List) {
  2281. output.WriteSFixed32(39, element);
  2282. }
  2283. foreach (long element in RepeatedSfixed64List) {
  2284. output.WriteSFixed64(40, element);
  2285. }
  2286. foreach (float element in RepeatedFloatList) {
  2287. output.WriteFloat(41, element);
  2288. }
  2289. foreach (double element in RepeatedDoubleList) {
  2290. output.WriteDouble(42, element);
  2291. }
  2292. foreach (bool element in RepeatedBoolList) {
  2293. output.WriteBool(43, element);
  2294. }
  2295. foreach (string element in RepeatedStringList) {
  2296. output.WriteString(44, element);
  2297. }
  2298. foreach (pb::ByteString element in RepeatedBytesList) {
  2299. output.WriteBytes(45, element);
  2300. }
  2301. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2302. output.WriteGroup(46, element);
  2303. }
  2304. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2305. output.WriteMessage(48, element);
  2306. }
  2307. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2308. output.WriteMessage(49, element);
  2309. }
  2310. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2311. output.WriteMessage(50, element);
  2312. }
  2313. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2314. output.WriteEnum(51, (int) element);
  2315. }
  2316. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2317. output.WriteEnum(52, (int) element);
  2318. }
  2319. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2320. output.WriteEnum(53, (int) element);
  2321. }
  2322. foreach (string element in RepeatedStringPieceList) {
  2323. output.WriteString(54, element);
  2324. }
  2325. foreach (string element in RepeatedCordList) {
  2326. output.WriteString(55, element);
  2327. }
  2328. if (HasDefaultInt32) {
  2329. output.WriteInt32(61, DefaultInt32);
  2330. }
  2331. if (HasDefaultInt64) {
  2332. output.WriteInt64(62, DefaultInt64);
  2333. }
  2334. if (HasDefaultUint32) {
  2335. output.WriteUInt32(63, DefaultUint32);
  2336. }
  2337. if (HasDefaultUint64) {
  2338. output.WriteUInt64(64, DefaultUint64);
  2339. }
  2340. if (HasDefaultSint32) {
  2341. output.WriteSInt32(65, DefaultSint32);
  2342. }
  2343. if (HasDefaultSint64) {
  2344. output.WriteSInt64(66, DefaultSint64);
  2345. }
  2346. if (HasDefaultFixed32) {
  2347. output.WriteFixed32(67, DefaultFixed32);
  2348. }
  2349. if (HasDefaultFixed64) {
  2350. output.WriteFixed64(68, DefaultFixed64);
  2351. }
  2352. if (HasDefaultSfixed32) {
  2353. output.WriteSFixed32(69, DefaultSfixed32);
  2354. }
  2355. if (HasDefaultSfixed64) {
  2356. output.WriteSFixed64(70, DefaultSfixed64);
  2357. }
  2358. if (HasDefaultFloat) {
  2359. output.WriteFloat(71, DefaultFloat);
  2360. }
  2361. if (HasDefaultDouble) {
  2362. output.WriteDouble(72, DefaultDouble);
  2363. }
  2364. if (HasDefaultBool) {
  2365. output.WriteBool(73, DefaultBool);
  2366. }
  2367. if (HasDefaultString) {
  2368. output.WriteString(74, DefaultString);
  2369. }
  2370. if (HasDefaultBytes) {
  2371. output.WriteBytes(75, DefaultBytes);
  2372. }
  2373. if (HasDefaultNestedEnum) {
  2374. output.WriteEnum(81, (int) DefaultNestedEnum);
  2375. }
  2376. if (HasDefaultForeignEnum) {
  2377. output.WriteEnum(82, (int) DefaultForeignEnum);
  2378. }
  2379. if (HasDefaultImportEnum) {
  2380. output.WriteEnum(83, (int) DefaultImportEnum);
  2381. }
  2382. if (HasDefaultStringPiece) {
  2383. output.WriteString(84, DefaultStringPiece);
  2384. }
  2385. if (HasDefaultCord) {
  2386. output.WriteString(85, DefaultCord);
  2387. }
  2388. UnknownFields.WriteTo(output);
  2389. }
  2390. private int memoizedSerializedSize = -1;
  2391. public override int SerializedSize {
  2392. get {
  2393. int size = memoizedSerializedSize;
  2394. if (size != -1) return size;
  2395. size = 0;
  2396. if (HasOptionalInt32) {
  2397. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2398. }
  2399. if (HasOptionalInt64) {
  2400. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2401. }
  2402. if (HasOptionalUint32) {
  2403. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2404. }
  2405. if (HasOptionalUint64) {
  2406. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2407. }
  2408. if (HasOptionalSint32) {
  2409. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2410. }
  2411. if (HasOptionalSint64) {
  2412. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2413. }
  2414. if (HasOptionalFixed32) {
  2415. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2416. }
  2417. if (HasOptionalFixed64) {
  2418. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2419. }
  2420. if (HasOptionalSfixed32) {
  2421. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2422. }
  2423. if (HasOptionalSfixed64) {
  2424. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2425. }
  2426. if (HasOptionalFloat) {
  2427. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2428. }
  2429. if (HasOptionalDouble) {
  2430. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2431. }
  2432. if (HasOptionalBool) {
  2433. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2434. }
  2435. if (HasOptionalString) {
  2436. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2437. }
  2438. if (HasOptionalBytes) {
  2439. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2440. }
  2441. if (HasOptionalGroup) {
  2442. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2443. }
  2444. if (HasOptionalNestedMessage) {
  2445. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2446. }
  2447. if (HasOptionalForeignMessage) {
  2448. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2449. }
  2450. if (HasOptionalImportMessage) {
  2451. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2452. }
  2453. if (HasOptionalNestedEnum) {
  2454. size += pb::CodedOutputStream
  2455. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2456. }
  2457. if (HasOptionalForeignEnum) {
  2458. size += pb::CodedOutputStream
  2459. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2460. }
  2461. if (HasOptionalImportEnum) {
  2462. size += pb::CodedOutputStream
  2463. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2464. }
  2465. if (HasOptionalStringPiece) {
  2466. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2467. }
  2468. if (HasOptionalCord) {
  2469. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2470. }
  2471. foreach (int element in RepeatedInt32List) {
  2472. size += pb::CodedOutputStream
  2473. .ComputeInt32Size(31, element);
  2474. }
  2475. foreach (long element in RepeatedInt64List) {
  2476. size += pb::CodedOutputStream
  2477. .ComputeInt64Size(32, element);
  2478. }
  2479. foreach (uint element in RepeatedUint32List) {
  2480. size += pb::CodedOutputStream
  2481. .ComputeUInt32Size(33, element);
  2482. }
  2483. foreach (ulong element in RepeatedUint64List) {
  2484. size += pb::CodedOutputStream
  2485. .ComputeUInt64Size(34, element);
  2486. }
  2487. foreach (int element in RepeatedSint32List) {
  2488. size += pb::CodedOutputStream
  2489. .ComputeSInt32Size(35, element);
  2490. }
  2491. foreach (long element in RepeatedSint64List) {
  2492. size += pb::CodedOutputStream
  2493. .ComputeSInt64Size(36, element);
  2494. }
  2495. foreach (uint element in RepeatedFixed32List) {
  2496. size += pb::CodedOutputStream
  2497. .ComputeFixed32Size(37, element);
  2498. }
  2499. foreach (ulong element in RepeatedFixed64List) {
  2500. size += pb::CodedOutputStream
  2501. .ComputeFixed64Size(38, element);
  2502. }
  2503. foreach (int element in RepeatedSfixed32List) {
  2504. size += pb::CodedOutputStream
  2505. .ComputeSFixed32Size(39, element);
  2506. }
  2507. foreach (long element in RepeatedSfixed64List) {
  2508. size += pb::CodedOutputStream
  2509. .ComputeSFixed64Size(40, element);
  2510. }
  2511. foreach (float element in RepeatedFloatList) {
  2512. size += pb::CodedOutputStream
  2513. .ComputeFloatSize(41, element);
  2514. }
  2515. foreach (double element in RepeatedDoubleList) {
  2516. size += pb::CodedOutputStream
  2517. .ComputeDoubleSize(42, element);
  2518. }
  2519. foreach (bool element in RepeatedBoolList) {
  2520. size += pb::CodedOutputStream
  2521. .ComputeBoolSize(43, element);
  2522. }
  2523. foreach (string element in RepeatedStringList) {
  2524. size += pb::CodedOutputStream
  2525. .ComputeStringSize(44, element);
  2526. }
  2527. foreach (pb::ByteString element in RepeatedBytesList) {
  2528. size += pb::CodedOutputStream
  2529. .ComputeBytesSize(45, element);
  2530. }
  2531. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2532. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2533. }
  2534. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2535. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2536. }
  2537. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2538. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2539. }
  2540. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2541. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2542. }
  2543. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2544. size += pb::CodedOutputStream
  2545. .ComputeEnumSize(51, (int) element);
  2546. }
  2547. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2548. size += pb::CodedOutputStream
  2549. .ComputeEnumSize(52, (int) element);
  2550. }
  2551. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2552. size += pb::CodedOutputStream
  2553. .ComputeEnumSize(53, (int) element);
  2554. }
  2555. foreach (string element in RepeatedStringPieceList) {
  2556. size += pb::CodedOutputStream
  2557. .ComputeStringSize(54, element);
  2558. }
  2559. foreach (string element in RepeatedCordList) {
  2560. size += pb::CodedOutputStream
  2561. .ComputeStringSize(55, element);
  2562. }
  2563. if (HasDefaultInt32) {
  2564. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2565. }
  2566. if (HasDefaultInt64) {
  2567. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2568. }
  2569. if (HasDefaultUint32) {
  2570. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2571. }
  2572. if (HasDefaultUint64) {
  2573. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2574. }
  2575. if (HasDefaultSint32) {
  2576. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2577. }
  2578. if (HasDefaultSint64) {
  2579. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2580. }
  2581. if (HasDefaultFixed32) {
  2582. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2583. }
  2584. if (HasDefaultFixed64) {
  2585. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2586. }
  2587. if (HasDefaultSfixed32) {
  2588. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2589. }
  2590. if (HasDefaultSfixed64) {
  2591. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2592. }
  2593. if (HasDefaultFloat) {
  2594. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2595. }
  2596. if (HasDefaultDouble) {
  2597. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2598. }
  2599. if (HasDefaultBool) {
  2600. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2601. }
  2602. if (HasDefaultString) {
  2603. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2604. }
  2605. if (HasDefaultBytes) {
  2606. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2607. }
  2608. if (HasDefaultNestedEnum) {
  2609. size += pb::CodedOutputStream
  2610. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2611. }
  2612. if (HasDefaultForeignEnum) {
  2613. size += pb::CodedOutputStream
  2614. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2615. }
  2616. if (HasDefaultImportEnum) {
  2617. size += pb::CodedOutputStream
  2618. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2619. }
  2620. if (HasDefaultStringPiece) {
  2621. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2622. }
  2623. if (HasDefaultCord) {
  2624. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2625. }
  2626. size += UnknownFields.SerializedSize;
  2627. memoizedSerializedSize = size;
  2628. return size;
  2629. }
  2630. }
  2631. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data) {
  2632. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2633. }
  2634. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data,
  2635. pb::ExtensionRegistry extensionRegistry) {
  2636. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2637. .BuildParsed();
  2638. }
  2639. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data) {
  2640. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2641. }
  2642. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data,
  2643. pb::ExtensionRegistry extensionRegistry) {
  2644. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2645. .BuildParsed();
  2646. }
  2647. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2648. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2649. }
  2650. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(
  2651. global::System.IO.Stream input,
  2652. pb::ExtensionRegistry extensionRegistry) {
  2653. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2654. .BuildParsed();
  2655. }
  2656. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2657. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2658. }
  2659. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input,
  2660. pb::ExtensionRegistry extensionRegistry) {
  2661. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2662. .BuildParsed();
  2663. }
  2664. public static Builder CreateBuilder() { return new Builder(); }
  2665. public override Builder CreateBuilderForType() { return new Builder(); }
  2666. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes prototype) {
  2667. return (Builder) new Builder().MergeFrom(prototype);
  2668. }
  2669. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, Builder> {
  2670. protected override Builder ThisBuilder {
  2671. get { return this; }
  2672. }
  2673. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder()
  2674. internal Builder() {}
  2675. global::Google.ProtocolBuffers.TestProtos.TestAllTypes result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2676. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes MessageBeingBuilt {
  2677. get { return result; }
  2678. }
  2679. public override Builder Clear() {
  2680. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2681. return this;
  2682. }
  2683. public override Builder Clone() {
  2684. return new Builder().MergeFrom(result);
  2685. }
  2686. public override pbd::MessageDescriptor DescriptorForType {
  2687. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
  2688. }
  2689. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes DefaultInstanceForType {
  2690. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  2691. }
  2692. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes BuildPartial() {
  2693. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2694. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2695. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2696. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2697. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2698. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2699. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2700. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2701. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2702. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2703. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2704. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2705. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2706. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2707. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2708. if (result.repeatedGroup_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  2709. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2710. }
  2711. if (result.repeatedNestedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  2712. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2713. }
  2714. if (result.repeatedForeignMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  2715. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2716. }
  2717. if (result.repeatedImportMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  2718. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2719. }
  2720. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2721. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2722. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2723. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2724. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2725. global::Google.ProtocolBuffers.TestProtos.TestAllTypes returnMe = result;
  2726. result = null;
  2727. return returnMe;
  2728. }
  2729. public override Builder MergeFrom(pb::IMessage other) {
  2730. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes) {
  2731. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes) other);
  2732. } else {
  2733. base.MergeFrom(other);
  2734. return this;
  2735. }
  2736. }
  2737. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes other) {
  2738. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
  2739. if (other.HasOptionalInt32) {
  2740. OptionalInt32 = other.OptionalInt32;
  2741. }
  2742. if (other.HasOptionalInt64) {
  2743. OptionalInt64 = other.OptionalInt64;
  2744. }
  2745. if (other.HasOptionalUint32) {
  2746. OptionalUint32 = other.OptionalUint32;
  2747. }
  2748. if (other.HasOptionalUint64) {
  2749. OptionalUint64 = other.OptionalUint64;
  2750. }
  2751. if (other.HasOptionalSint32) {
  2752. OptionalSint32 = other.OptionalSint32;
  2753. }
  2754. if (other.HasOptionalSint64) {
  2755. OptionalSint64 = other.OptionalSint64;
  2756. }
  2757. if (other.HasOptionalFixed32) {
  2758. OptionalFixed32 = other.OptionalFixed32;
  2759. }
  2760. if (other.HasOptionalFixed64) {
  2761. OptionalFixed64 = other.OptionalFixed64;
  2762. }
  2763. if (other.HasOptionalSfixed32) {
  2764. OptionalSfixed32 = other.OptionalSfixed32;
  2765. }
  2766. if (other.HasOptionalSfixed64) {
  2767. OptionalSfixed64 = other.OptionalSfixed64;
  2768. }
  2769. if (other.HasOptionalFloat) {
  2770. OptionalFloat = other.OptionalFloat;
  2771. }
  2772. if (other.HasOptionalDouble) {
  2773. OptionalDouble = other.OptionalDouble;
  2774. }
  2775. if (other.HasOptionalBool) {
  2776. OptionalBool = other.OptionalBool;
  2777. }
  2778. if (other.HasOptionalString) {
  2779. OptionalString = other.OptionalString;
  2780. }
  2781. if (other.HasOptionalBytes) {
  2782. OptionalBytes = other.OptionalBytes;
  2783. }
  2784. if (other.HasOptionalGroup) {
  2785. MergeOptionalGroup(other.OptionalGroup);
  2786. }
  2787. if (other.HasOptionalNestedMessage) {
  2788. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2789. }
  2790. if (other.HasOptionalForeignMessage) {
  2791. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2792. }
  2793. if (other.HasOptionalImportMessage) {
  2794. MergeOptionalImportMessage(other.OptionalImportMessage);
  2795. }
  2796. if (other.HasOptionalNestedEnum) {
  2797. OptionalNestedEnum = other.OptionalNestedEnum;
  2798. }
  2799. if (other.HasOptionalForeignEnum) {
  2800. OptionalForeignEnum = other.OptionalForeignEnum;
  2801. }
  2802. if (other.HasOptionalImportEnum) {
  2803. OptionalImportEnum = other.OptionalImportEnum;
  2804. }
  2805. if (other.HasOptionalStringPiece) {
  2806. OptionalStringPiece = other.OptionalStringPiece;
  2807. }
  2808. if (other.HasOptionalCord) {
  2809. OptionalCord = other.OptionalCord;
  2810. }
  2811. if (other.repeatedInt32_.Count != 0) {
  2812. if (result.repeatedInt32_.Count == 0) {
  2813. result.repeatedInt32_ = new scg::List<int>();
  2814. }
  2815. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2816. }
  2817. if (other.repeatedInt64_.Count != 0) {
  2818. if (result.repeatedInt64_.Count == 0) {
  2819. result.repeatedInt64_ = new scg::List<long>();
  2820. }
  2821. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2822. }
  2823. if (other.repeatedUint32_.Count != 0) {
  2824. if (result.repeatedUint32_.Count == 0) {
  2825. result.repeatedUint32_ = new scg::List<uint>();
  2826. }
  2827. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2828. }
  2829. if (other.repeatedUint64_.Count != 0) {
  2830. if (result.repeatedUint64_.Count == 0) {
  2831. result.repeatedUint64_ = new scg::List<ulong>();
  2832. }
  2833. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2834. }
  2835. if (other.repeatedSint32_.Count != 0) {
  2836. if (result.repeatedSint32_.Count == 0) {
  2837. result.repeatedSint32_ = new scg::List<int>();
  2838. }
  2839. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2840. }
  2841. if (other.repeatedSint64_.Count != 0) {
  2842. if (result.repeatedSint64_.Count == 0) {
  2843. result.repeatedSint64_ = new scg::List<long>();
  2844. }
  2845. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2846. }
  2847. if (other.repeatedFixed32_.Count != 0) {
  2848. if (result.repeatedFixed32_.Count == 0) {
  2849. result.repeatedFixed32_ = new scg::List<uint>();
  2850. }
  2851. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2852. }
  2853. if (other.repeatedFixed64_.Count != 0) {
  2854. if (result.repeatedFixed64_.Count == 0) {
  2855. result.repeatedFixed64_ = new scg::List<ulong>();
  2856. }
  2857. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2858. }
  2859. if (other.repeatedSfixed32_.Count != 0) {
  2860. if (result.repeatedSfixed32_.Count == 0) {
  2861. result.repeatedSfixed32_ = new scg::List<int>();
  2862. }
  2863. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2864. }
  2865. if (other.repeatedSfixed64_.Count != 0) {
  2866. if (result.repeatedSfixed64_.Count == 0) {
  2867. result.repeatedSfixed64_ = new scg::List<long>();
  2868. }
  2869. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2870. }
  2871. if (other.repeatedFloat_.Count != 0) {
  2872. if (result.repeatedFloat_.Count == 0) {
  2873. result.repeatedFloat_ = new scg::List<float>();
  2874. }
  2875. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2876. }
  2877. if (other.repeatedDouble_.Count != 0) {
  2878. if (result.repeatedDouble_.Count == 0) {
  2879. result.repeatedDouble_ = new scg::List<double>();
  2880. }
  2881. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2882. }
  2883. if (other.repeatedBool_.Count != 0) {
  2884. if (result.repeatedBool_.Count == 0) {
  2885. result.repeatedBool_ = new scg::List<bool>();
  2886. }
  2887. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2888. }
  2889. if (other.repeatedString_.Count != 0) {
  2890. if (result.repeatedString_.Count == 0) {
  2891. result.repeatedString_ = new scg::List<string>();
  2892. }
  2893. base.AddRange(other.repeatedString_, result.repeatedString_);
  2894. }
  2895. if (other.repeatedBytes_.Count != 0) {
  2896. if (result.repeatedBytes_.Count == 0) {
  2897. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2898. }
  2899. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2900. }
  2901. if (other.repeatedGroup_.Count != 0) {
  2902. if (result.repeatedGroup_.Count == 0) {
  2903. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  2904. }
  2905. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2906. }
  2907. if (other.repeatedNestedMessage_.Count != 0) {
  2908. if (result.repeatedNestedMessage_.Count == 0) {
  2909. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  2910. }
  2911. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2912. }
  2913. if (other.repeatedForeignMessage_.Count != 0) {
  2914. if (result.repeatedForeignMessage_.Count == 0) {
  2915. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  2916. }
  2917. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2918. }
  2919. if (other.repeatedImportMessage_.Count != 0) {
  2920. if (result.repeatedImportMessage_.Count == 0) {
  2921. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  2922. }
  2923. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2924. }
  2925. if (other.repeatedNestedEnum_.Count != 0) {
  2926. if (result.repeatedNestedEnum_.Count == 0) {
  2927. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  2928. }
  2929. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2930. }
  2931. if (other.repeatedForeignEnum_.Count != 0) {
  2932. if (result.repeatedForeignEnum_.Count == 0) {
  2933. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  2934. }
  2935. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2936. }
  2937. if (other.repeatedImportEnum_.Count != 0) {
  2938. if (result.repeatedImportEnum_.Count == 0) {
  2939. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  2940. }
  2941. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2942. }
  2943. if (other.repeatedStringPiece_.Count != 0) {
  2944. if (result.repeatedStringPiece_.Count == 0) {
  2945. result.repeatedStringPiece_ = new scg::List<string>();
  2946. }
  2947. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2948. }
  2949. if (other.repeatedCord_.Count != 0) {
  2950. if (result.repeatedCord_.Count == 0) {
  2951. result.repeatedCord_ = new scg::List<string>();
  2952. }
  2953. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  2954. }
  2955. if (other.HasDefaultInt32) {
  2956. DefaultInt32 = other.DefaultInt32;
  2957. }
  2958. if (other.HasDefaultInt64) {
  2959. DefaultInt64 = other.DefaultInt64;
  2960. }
  2961. if (other.HasDefaultUint32) {
  2962. DefaultUint32 = other.DefaultUint32;
  2963. }
  2964. if (other.HasDefaultUint64) {
  2965. DefaultUint64 = other.DefaultUint64;
  2966. }
  2967. if (other.HasDefaultSint32) {
  2968. DefaultSint32 = other.DefaultSint32;
  2969. }
  2970. if (other.HasDefaultSint64) {
  2971. DefaultSint64 = other.DefaultSint64;
  2972. }
  2973. if (other.HasDefaultFixed32) {
  2974. DefaultFixed32 = other.DefaultFixed32;
  2975. }
  2976. if (other.HasDefaultFixed64) {
  2977. DefaultFixed64 = other.DefaultFixed64;
  2978. }
  2979. if (other.HasDefaultSfixed32) {
  2980. DefaultSfixed32 = other.DefaultSfixed32;
  2981. }
  2982. if (other.HasDefaultSfixed64) {
  2983. DefaultSfixed64 = other.DefaultSfixed64;
  2984. }
  2985. if (other.HasDefaultFloat) {
  2986. DefaultFloat = other.DefaultFloat;
  2987. }
  2988. if (other.HasDefaultDouble) {
  2989. DefaultDouble = other.DefaultDouble;
  2990. }
  2991. if (other.HasDefaultBool) {
  2992. DefaultBool = other.DefaultBool;
  2993. }
  2994. if (other.HasDefaultString) {
  2995. DefaultString = other.DefaultString;
  2996. }
  2997. if (other.HasDefaultBytes) {
  2998. DefaultBytes = other.DefaultBytes;
  2999. }
  3000. if (other.HasDefaultNestedEnum) {
  3001. DefaultNestedEnum = other.DefaultNestedEnum;
  3002. }
  3003. if (other.HasDefaultForeignEnum) {
  3004. DefaultForeignEnum = other.DefaultForeignEnum;
  3005. }
  3006. if (other.HasDefaultImportEnum) {
  3007. DefaultImportEnum = other.DefaultImportEnum;
  3008. }
  3009. if (other.HasDefaultStringPiece) {
  3010. DefaultStringPiece = other.DefaultStringPiece;
  3011. }
  3012. if (other.HasDefaultCord) {
  3013. DefaultCord = other.DefaultCord;
  3014. }
  3015. this.MergeUnknownFields(other.UnknownFields);
  3016. return this;
  3017. }
  3018. public override Builder MergeFrom(pb::CodedInputStream input) {
  3019. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3020. }
  3021. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3022. pb::UnknownFieldSet.Builder unknownFields =
  3023. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3024. while (true) {
  3025. uint tag = input.ReadTag();
  3026. switch (tag) {
  3027. case 0:
  3028. this.UnknownFields = unknownFields.Build();
  3029. return this;
  3030. default: {
  3031. if (!ParseUnknownField(input, unknownFields,
  3032. extensionRegistry, tag)) {
  3033. this.UnknownFields = unknownFields.Build();
  3034. return this;
  3035. }
  3036. break;
  3037. }
  3038. case 8: {
  3039. OptionalInt32 = input.ReadInt32();
  3040. break;
  3041. }
  3042. case 16: {
  3043. OptionalInt64 = input.ReadInt64();
  3044. break;
  3045. }
  3046. case 24: {
  3047. OptionalUint32 = input.ReadUInt32();
  3048. break;
  3049. }
  3050. case 32: {
  3051. OptionalUint64 = input.ReadUInt64();
  3052. break;
  3053. }
  3054. case 40: {
  3055. OptionalSint32 = input.ReadSInt32();
  3056. break;
  3057. }
  3058. case 48: {
  3059. OptionalSint64 = input.ReadSInt64();
  3060. break;
  3061. }
  3062. case 61: {
  3063. OptionalFixed32 = input.ReadFixed32();
  3064. break;
  3065. }
  3066. case 65: {
  3067. OptionalFixed64 = input.ReadFixed64();
  3068. break;
  3069. }
  3070. case 77: {
  3071. OptionalSfixed32 = input.ReadSFixed32();
  3072. break;
  3073. }
  3074. case 81: {
  3075. OptionalSfixed64 = input.ReadSFixed64();
  3076. break;
  3077. }
  3078. case 93: {
  3079. OptionalFloat = input.ReadFloat();
  3080. break;
  3081. }
  3082. case 97: {
  3083. OptionalDouble = input.ReadDouble();
  3084. break;
  3085. }
  3086. case 104: {
  3087. OptionalBool = input.ReadBool();
  3088. break;
  3089. }
  3090. case 114: {
  3091. OptionalString = input.ReadString();
  3092. break;
  3093. }
  3094. case 122: {
  3095. OptionalBytes = input.ReadBytes();
  3096. break;
  3097. }
  3098. case 131: {
  3099. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3100. if (HasOptionalGroup) {
  3101. subBuilder.MergeFrom(OptionalGroup);
  3102. }
  3103. input.ReadGroup(16, subBuilder, extensionRegistry);
  3104. OptionalGroup = subBuilder.BuildPartial();
  3105. break;
  3106. }
  3107. case 146: {
  3108. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3109. if (HasOptionalNestedMessage) {
  3110. subBuilder.MergeFrom(OptionalNestedMessage);
  3111. }
  3112. input.ReadMessage(subBuilder, extensionRegistry);
  3113. OptionalNestedMessage = subBuilder.BuildPartial();
  3114. break;
  3115. }
  3116. case 154: {
  3117. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3118. if (HasOptionalForeignMessage) {
  3119. subBuilder.MergeFrom(OptionalForeignMessage);
  3120. }
  3121. input.ReadMessage(subBuilder, extensionRegistry);
  3122. OptionalForeignMessage = subBuilder.BuildPartial();
  3123. break;
  3124. }
  3125. case 162: {
  3126. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3127. if (HasOptionalImportMessage) {
  3128. subBuilder.MergeFrom(OptionalImportMessage);
  3129. }
  3130. input.ReadMessage(subBuilder, extensionRegistry);
  3131. OptionalImportMessage = subBuilder.BuildPartial();
  3132. break;
  3133. }
  3134. case 168: {
  3135. int rawValue = input.ReadEnum();
  3136. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3137. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3138. } else {
  3139. OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3140. }
  3141. break;
  3142. }
  3143. case 176: {
  3144. int rawValue = input.ReadEnum();
  3145. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3146. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3147. } else {
  3148. OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3149. }
  3150. break;
  3151. }
  3152. case 184: {
  3153. int rawValue = input.ReadEnum();
  3154. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3155. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3156. } else {
  3157. OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3158. }
  3159. break;
  3160. }
  3161. case 194: {
  3162. OptionalStringPiece = input.ReadString();
  3163. break;
  3164. }
  3165. case 202: {
  3166. OptionalCord = input.ReadString();
  3167. break;
  3168. }
  3169. case 248: {
  3170. AddRepeatedInt32(input.ReadInt32());
  3171. break;
  3172. }
  3173. case 256: {
  3174. AddRepeatedInt64(input.ReadInt64());
  3175. break;
  3176. }
  3177. case 264: {
  3178. AddRepeatedUint32(input.ReadUInt32());
  3179. break;
  3180. }
  3181. case 272: {
  3182. AddRepeatedUint64(input.ReadUInt64());
  3183. break;
  3184. }
  3185. case 280: {
  3186. AddRepeatedSint32(input.ReadSInt32());
  3187. break;
  3188. }
  3189. case 288: {
  3190. AddRepeatedSint64(input.ReadSInt64());
  3191. break;
  3192. }
  3193. case 301: {
  3194. AddRepeatedFixed32(input.ReadFixed32());
  3195. break;
  3196. }
  3197. case 305: {
  3198. AddRepeatedFixed64(input.ReadFixed64());
  3199. break;
  3200. }
  3201. case 317: {
  3202. AddRepeatedSfixed32(input.ReadSFixed32());
  3203. break;
  3204. }
  3205. case 321: {
  3206. AddRepeatedSfixed64(input.ReadSFixed64());
  3207. break;
  3208. }
  3209. case 333: {
  3210. AddRepeatedFloat(input.ReadFloat());
  3211. break;
  3212. }
  3213. case 337: {
  3214. AddRepeatedDouble(input.ReadDouble());
  3215. break;
  3216. }
  3217. case 344: {
  3218. AddRepeatedBool(input.ReadBool());
  3219. break;
  3220. }
  3221. case 354: {
  3222. AddRepeatedString(input.ReadString());
  3223. break;
  3224. }
  3225. case 362: {
  3226. AddRepeatedBytes(input.ReadBytes());
  3227. break;
  3228. }
  3229. case 371: {
  3230. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3231. input.ReadGroup(46, subBuilder, extensionRegistry);
  3232. AddRepeatedGroup(subBuilder.BuildPartial());
  3233. break;
  3234. }
  3235. case 386: {
  3236. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3237. input.ReadMessage(subBuilder, extensionRegistry);
  3238. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3239. break;
  3240. }
  3241. case 394: {
  3242. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3243. input.ReadMessage(subBuilder, extensionRegistry);
  3244. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3245. break;
  3246. }
  3247. case 402: {
  3248. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3249. input.ReadMessage(subBuilder, extensionRegistry);
  3250. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3251. break;
  3252. }
  3253. case 408: {
  3254. int rawValue = input.ReadEnum();
  3255. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3256. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), value)) {
  3257. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3258. } else {
  3259. AddRepeatedNestedEnum(value);
  3260. }
  3261. break;
  3262. }
  3263. case 416: {
  3264. int rawValue = input.ReadEnum();
  3265. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3266. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  3267. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3268. } else {
  3269. AddRepeatedForeignEnum(value);
  3270. }
  3271. break;
  3272. }
  3273. case 424: {
  3274. int rawValue = input.ReadEnum();
  3275. global::Google.ProtocolBuffers.TestProtos.ImportEnum value = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3276. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), value)) {
  3277. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3278. } else {
  3279. AddRepeatedImportEnum(value);
  3280. }
  3281. break;
  3282. }
  3283. case 434: {
  3284. AddRepeatedStringPiece(input.ReadString());
  3285. break;
  3286. }
  3287. case 442: {
  3288. AddRepeatedCord(input.ReadString());
  3289. break;
  3290. }
  3291. case 488: {
  3292. DefaultInt32 = input.ReadInt32();
  3293. break;
  3294. }
  3295. case 496: {
  3296. DefaultInt64 = input.ReadInt64();
  3297. break;
  3298. }
  3299. case 504: {
  3300. DefaultUint32 = input.ReadUInt32();
  3301. break;
  3302. }
  3303. case 512: {
  3304. DefaultUint64 = input.ReadUInt64();
  3305. break;
  3306. }
  3307. case 520: {
  3308. DefaultSint32 = input.ReadSInt32();
  3309. break;
  3310. }
  3311. case 528: {
  3312. DefaultSint64 = input.ReadSInt64();
  3313. break;
  3314. }
  3315. case 541: {
  3316. DefaultFixed32 = input.ReadFixed32();
  3317. break;
  3318. }
  3319. case 545: {
  3320. DefaultFixed64 = input.ReadFixed64();
  3321. break;
  3322. }
  3323. case 557: {
  3324. DefaultSfixed32 = input.ReadSFixed32();
  3325. break;
  3326. }
  3327. case 561: {
  3328. DefaultSfixed64 = input.ReadSFixed64();
  3329. break;
  3330. }
  3331. case 573: {
  3332. DefaultFloat = input.ReadFloat();
  3333. break;
  3334. }
  3335. case 577: {
  3336. DefaultDouble = input.ReadDouble();
  3337. break;
  3338. }
  3339. case 584: {
  3340. DefaultBool = input.ReadBool();
  3341. break;
  3342. }
  3343. case 594: {
  3344. DefaultString = input.ReadString();
  3345. break;
  3346. }
  3347. case 602: {
  3348. DefaultBytes = input.ReadBytes();
  3349. break;
  3350. }
  3351. case 648: {
  3352. int rawValue = input.ReadEnum();
  3353. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3354. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3355. } else {
  3356. DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3357. }
  3358. break;
  3359. }
  3360. case 656: {
  3361. int rawValue = input.ReadEnum();
  3362. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3363. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3364. } else {
  3365. DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3366. }
  3367. break;
  3368. }
  3369. case 664: {
  3370. int rawValue = input.ReadEnum();
  3371. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3372. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3373. } else {
  3374. DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3375. }
  3376. break;
  3377. }
  3378. case 674: {
  3379. DefaultStringPiece = input.ReadString();
  3380. break;
  3381. }
  3382. case 682: {
  3383. DefaultCord = input.ReadString();
  3384. break;
  3385. }
  3386. }
  3387. }
  3388. }
  3389. // optional int32 optional_int32 = 1;
  3390. public bool HasOptionalInt32 {
  3391. get { return result.HasOptionalInt32; }
  3392. }
  3393. public int OptionalInt32 {
  3394. get { return result.OptionalInt32; }
  3395. set { SetOptionalInt32(value); }
  3396. }
  3397. public Builder SetOptionalInt32(int value) {
  3398. result.hasOptionalInt32 = true;
  3399. result.optionalInt32_ = value;
  3400. return this;
  3401. }
  3402. public Builder ClearOptionalInt32() {
  3403. result.hasOptionalInt32 = false;
  3404. result.optionalInt32_ = 0;
  3405. return this;
  3406. }
  3407. // optional int64 optional_int64 = 2;
  3408. public bool HasOptionalInt64 {
  3409. get { return result.HasOptionalInt64; }
  3410. }
  3411. public long OptionalInt64 {
  3412. get { return result.OptionalInt64; }
  3413. set { SetOptionalInt64(value); }
  3414. }
  3415. public Builder SetOptionalInt64(long value) {
  3416. result.hasOptionalInt64 = true;
  3417. result.optionalInt64_ = value;
  3418. return this;
  3419. }
  3420. public Builder ClearOptionalInt64() {
  3421. result.hasOptionalInt64 = false;
  3422. result.optionalInt64_ = 0L;
  3423. return this;
  3424. }
  3425. // optional uint32 optional_uint32 = 3;
  3426. public bool HasOptionalUint32 {
  3427. get { return result.HasOptionalUint32; }
  3428. }
  3429. public uint OptionalUint32 {
  3430. get { return result.OptionalUint32; }
  3431. set { SetOptionalUint32(value); }
  3432. }
  3433. public Builder SetOptionalUint32(uint value) {
  3434. result.hasOptionalUint32 = true;
  3435. result.optionalUint32_ = value;
  3436. return this;
  3437. }
  3438. public Builder ClearOptionalUint32() {
  3439. result.hasOptionalUint32 = false;
  3440. result.optionalUint32_ = 0;
  3441. return this;
  3442. }
  3443. // optional uint64 optional_uint64 = 4;
  3444. public bool HasOptionalUint64 {
  3445. get { return result.HasOptionalUint64; }
  3446. }
  3447. public ulong OptionalUint64 {
  3448. get { return result.OptionalUint64; }
  3449. set { SetOptionalUint64(value); }
  3450. }
  3451. public Builder SetOptionalUint64(ulong value) {
  3452. result.hasOptionalUint64 = true;
  3453. result.optionalUint64_ = value;
  3454. return this;
  3455. }
  3456. public Builder ClearOptionalUint64() {
  3457. result.hasOptionalUint64 = false;
  3458. result.optionalUint64_ = 0UL;
  3459. return this;
  3460. }
  3461. // optional sint32 optional_sint32 = 5;
  3462. public bool HasOptionalSint32 {
  3463. get { return result.HasOptionalSint32; }
  3464. }
  3465. public int OptionalSint32 {
  3466. get { return result.OptionalSint32; }
  3467. set { SetOptionalSint32(value); }
  3468. }
  3469. public Builder SetOptionalSint32(int value) {
  3470. result.hasOptionalSint32 = true;
  3471. result.optionalSint32_ = value;
  3472. return this;
  3473. }
  3474. public Builder ClearOptionalSint32() {
  3475. result.hasOptionalSint32 = false;
  3476. result.optionalSint32_ = 0;
  3477. return this;
  3478. }
  3479. // optional sint64 optional_sint64 = 6;
  3480. public bool HasOptionalSint64 {
  3481. get { return result.HasOptionalSint64; }
  3482. }
  3483. public long OptionalSint64 {
  3484. get { return result.OptionalSint64; }
  3485. set { SetOptionalSint64(value); }
  3486. }
  3487. public Builder SetOptionalSint64(long value) {
  3488. result.hasOptionalSint64 = true;
  3489. result.optionalSint64_ = value;
  3490. return this;
  3491. }
  3492. public Builder ClearOptionalSint64() {
  3493. result.hasOptionalSint64 = false;
  3494. result.optionalSint64_ = 0L;
  3495. return this;
  3496. }
  3497. // optional fixed32 optional_fixed32 = 7;
  3498. public bool HasOptionalFixed32 {
  3499. get { return result.HasOptionalFixed32; }
  3500. }
  3501. public uint OptionalFixed32 {
  3502. get { return result.OptionalFixed32; }
  3503. set { SetOptionalFixed32(value); }
  3504. }
  3505. public Builder SetOptionalFixed32(uint value) {
  3506. result.hasOptionalFixed32 = true;
  3507. result.optionalFixed32_ = value;
  3508. return this;
  3509. }
  3510. public Builder ClearOptionalFixed32() {
  3511. result.hasOptionalFixed32 = false;
  3512. result.optionalFixed32_ = 0;
  3513. return this;
  3514. }
  3515. // optional fixed64 optional_fixed64 = 8;
  3516. public bool HasOptionalFixed64 {
  3517. get { return result.HasOptionalFixed64; }
  3518. }
  3519. public ulong OptionalFixed64 {
  3520. get { return result.OptionalFixed64; }
  3521. set { SetOptionalFixed64(value); }
  3522. }
  3523. public Builder SetOptionalFixed64(ulong value) {
  3524. result.hasOptionalFixed64 = true;
  3525. result.optionalFixed64_ = value;
  3526. return this;
  3527. }
  3528. public Builder ClearOptionalFixed64() {
  3529. result.hasOptionalFixed64 = false;
  3530. result.optionalFixed64_ = 0UL;
  3531. return this;
  3532. }
  3533. // optional sfixed32 optional_sfixed32 = 9;
  3534. public bool HasOptionalSfixed32 {
  3535. get { return result.HasOptionalSfixed32; }
  3536. }
  3537. public int OptionalSfixed32 {
  3538. get { return result.OptionalSfixed32; }
  3539. set { SetOptionalSfixed32(value); }
  3540. }
  3541. public Builder SetOptionalSfixed32(int value) {
  3542. result.hasOptionalSfixed32 = true;
  3543. result.optionalSfixed32_ = value;
  3544. return this;
  3545. }
  3546. public Builder ClearOptionalSfixed32() {
  3547. result.hasOptionalSfixed32 = false;
  3548. result.optionalSfixed32_ = 0;
  3549. return this;
  3550. }
  3551. // optional sfixed64 optional_sfixed64 = 10;
  3552. public bool HasOptionalSfixed64 {
  3553. get { return result.HasOptionalSfixed64; }
  3554. }
  3555. public long OptionalSfixed64 {
  3556. get { return result.OptionalSfixed64; }
  3557. set { SetOptionalSfixed64(value); }
  3558. }
  3559. public Builder SetOptionalSfixed64(long value) {
  3560. result.hasOptionalSfixed64 = true;
  3561. result.optionalSfixed64_ = value;
  3562. return this;
  3563. }
  3564. public Builder ClearOptionalSfixed64() {
  3565. result.hasOptionalSfixed64 = false;
  3566. result.optionalSfixed64_ = 0L;
  3567. return this;
  3568. }
  3569. // optional float optional_float = 11;
  3570. public bool HasOptionalFloat {
  3571. get { return result.HasOptionalFloat; }
  3572. }
  3573. public float OptionalFloat {
  3574. get { return result.OptionalFloat; }
  3575. set { SetOptionalFloat(value); }
  3576. }
  3577. public Builder SetOptionalFloat(float value) {
  3578. result.hasOptionalFloat = true;
  3579. result.optionalFloat_ = value;
  3580. return this;
  3581. }
  3582. public Builder ClearOptionalFloat() {
  3583. result.hasOptionalFloat = false;
  3584. result.optionalFloat_ = 0F;
  3585. return this;
  3586. }
  3587. // optional double optional_double = 12;
  3588. public bool HasOptionalDouble {
  3589. get { return result.HasOptionalDouble; }
  3590. }
  3591. public double OptionalDouble {
  3592. get { return result.OptionalDouble; }
  3593. set { SetOptionalDouble(value); }
  3594. }
  3595. public Builder SetOptionalDouble(double value) {
  3596. result.hasOptionalDouble = true;
  3597. result.optionalDouble_ = value;
  3598. return this;
  3599. }
  3600. public Builder ClearOptionalDouble() {
  3601. result.hasOptionalDouble = false;
  3602. result.optionalDouble_ = 0D;
  3603. return this;
  3604. }
  3605. // optional bool optional_bool = 13;
  3606. public bool HasOptionalBool {
  3607. get { return result.HasOptionalBool; }
  3608. }
  3609. public bool OptionalBool {
  3610. get { return result.OptionalBool; }
  3611. set { SetOptionalBool(value); }
  3612. }
  3613. public Builder SetOptionalBool(bool value) {
  3614. result.hasOptionalBool = true;
  3615. result.optionalBool_ = value;
  3616. return this;
  3617. }
  3618. public Builder ClearOptionalBool() {
  3619. result.hasOptionalBool = false;
  3620. result.optionalBool_ = false;
  3621. return this;
  3622. }
  3623. // optional string optional_string = 14;
  3624. public bool HasOptionalString {
  3625. get { return result.HasOptionalString; }
  3626. }
  3627. public string OptionalString {
  3628. get { return result.OptionalString; }
  3629. set { SetOptionalString(value); }
  3630. }
  3631. public Builder SetOptionalString(string value) {
  3632. result.hasOptionalString = true;
  3633. result.optionalString_ = value;
  3634. return this;
  3635. }
  3636. public Builder ClearOptionalString() {
  3637. result.hasOptionalString = false;
  3638. result.optionalString_ = "";
  3639. return this;
  3640. }
  3641. // optional bytes optional_bytes = 15;
  3642. public bool HasOptionalBytes {
  3643. get { return result.HasOptionalBytes; }
  3644. }
  3645. public pb::ByteString OptionalBytes {
  3646. get { return result.OptionalBytes; }
  3647. set { SetOptionalBytes(value); }
  3648. }
  3649. public Builder SetOptionalBytes(pb::ByteString value) {
  3650. result.hasOptionalBytes = true;
  3651. result.optionalBytes_ = value;
  3652. return this;
  3653. }
  3654. public Builder ClearOptionalBytes() {
  3655. result.hasOptionalBytes = false;
  3656. result.optionalBytes_ = pb::ByteString.Empty;
  3657. return this;
  3658. }
  3659. // optional group OptionalGroup = 16 {
  3660. public bool HasOptionalGroup {
  3661. get { return result.HasOptionalGroup; }
  3662. }
  3663. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  3664. get { return result.OptionalGroup; }
  3665. set { SetOptionalGroup(value); }
  3666. }
  3667. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3668. result.hasOptionalGroup = true;
  3669. result.optionalGroup_ = value;
  3670. return this;
  3671. }
  3672. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3673. result.hasOptionalGroup = true;
  3674. result.optionalGroup_ = builderForValue.Build();
  3675. return this;
  3676. }
  3677. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3678. if (result.HasOptionalGroup &&
  3679. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3680. result.optionalGroup_ =
  3681. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3682. } else {
  3683. result.optionalGroup_ = value;
  3684. }
  3685. result.hasOptionalGroup = true;
  3686. return this;
  3687. }
  3688. public Builder ClearOptionalGroup() {
  3689. result.hasOptionalGroup = false;
  3690. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3691. return this;
  3692. }
  3693. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3694. public bool HasOptionalNestedMessage {
  3695. get { return result.HasOptionalNestedMessage; }
  3696. }
  3697. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3698. get { return result.OptionalNestedMessage; }
  3699. set { SetOptionalNestedMessage(value); }
  3700. }
  3701. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3702. result.hasOptionalNestedMessage = true;
  3703. result.optionalNestedMessage_ = value;
  3704. return this;
  3705. }
  3706. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3707. result.hasOptionalNestedMessage = true;
  3708. result.optionalNestedMessage_ = builderForValue.Build();
  3709. return this;
  3710. }
  3711. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3712. if (result.HasOptionalNestedMessage &&
  3713. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3714. result.optionalNestedMessage_ =
  3715. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3716. } else {
  3717. result.optionalNestedMessage_ = value;
  3718. }
  3719. result.hasOptionalNestedMessage = true;
  3720. return this;
  3721. }
  3722. public Builder ClearOptionalNestedMessage() {
  3723. result.hasOptionalNestedMessage = false;
  3724. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  3725. return this;
  3726. }
  3727. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3728. public bool HasOptionalForeignMessage {
  3729. get { return result.HasOptionalForeignMessage; }
  3730. }
  3731. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  3732. get { return result.OptionalForeignMessage; }
  3733. set { SetOptionalForeignMessage(value); }
  3734. }
  3735. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3736. result.hasOptionalForeignMessage = true;
  3737. result.optionalForeignMessage_ = value;
  3738. return this;
  3739. }
  3740. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  3741. result.hasOptionalForeignMessage = true;
  3742. result.optionalForeignMessage_ = builderForValue.Build();
  3743. return this;
  3744. }
  3745. public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3746. if (result.HasOptionalForeignMessage &&
  3747. result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  3748. result.optionalForeignMessage_ =
  3749. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3750. } else {
  3751. result.optionalForeignMessage_ = value;
  3752. }
  3753. result.hasOptionalForeignMessage = true;
  3754. return this;
  3755. }
  3756. public Builder ClearOptionalForeignMessage() {
  3757. result.hasOptionalForeignMessage = false;
  3758. result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  3759. return this;
  3760. }
  3761. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3762. public bool HasOptionalImportMessage {
  3763. get { return result.HasOptionalImportMessage; }
  3764. }
  3765. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  3766. get { return result.OptionalImportMessage; }
  3767. set { SetOptionalImportMessage(value); }
  3768. }
  3769. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3770. result.hasOptionalImportMessage = true;
  3771. result.optionalImportMessage_ = value;
  3772. return this;
  3773. }
  3774. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  3775. result.hasOptionalImportMessage = true;
  3776. result.optionalImportMessage_ = builderForValue.Build();
  3777. return this;
  3778. }
  3779. public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3780. if (result.HasOptionalImportMessage &&
  3781. result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
  3782. result.optionalImportMessage_ =
  3783. global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3784. } else {
  3785. result.optionalImportMessage_ = value;
  3786. }
  3787. result.hasOptionalImportMessage = true;
  3788. return this;
  3789. }
  3790. public Builder ClearOptionalImportMessage() {
  3791. result.hasOptionalImportMessage = false;
  3792. result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  3793. return this;
  3794. }
  3795. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3796. public bool HasOptionalNestedEnum {
  3797. get { return result.HasOptionalNestedEnum; }
  3798. }
  3799. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3800. get { return result.OptionalNestedEnum; }
  3801. set { SetOptionalNestedEnum(value); }
  3802. }
  3803. public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  3804. result.hasOptionalNestedEnum = true;
  3805. result.optionalNestedEnum_ = value;
  3806. return this;
  3807. }
  3808. public Builder ClearOptionalNestedEnum() {
  3809. result.hasOptionalNestedEnum = false;
  3810. result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  3811. return this;
  3812. }
  3813. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3814. public bool HasOptionalForeignEnum {
  3815. get { return result.HasOptionalForeignEnum; }
  3816. }
  3817. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  3818. get { return result.OptionalForeignEnum; }
  3819. set { SetOptionalForeignEnum(value); }
  3820. }
  3821. public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  3822. result.hasOptionalForeignEnum = true;
  3823. result.optionalForeignEnum_ = value;
  3824. return this;
  3825. }
  3826. public Builder ClearOptionalForeignEnum() {
  3827. result.hasOptionalForeignEnum = false;
  3828. result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  3829. return this;
  3830. }
  3831. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3832. public bool HasOptionalImportEnum {
  3833. get { return result.HasOptionalImportEnum; }
  3834. }
  3835. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  3836. get { return result.OptionalImportEnum; }
  3837. set { SetOptionalImportEnum(value); }
  3838. }
  3839. public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  3840. result.hasOptionalImportEnum = true;
  3841. result.optionalImportEnum_ = value;
  3842. return this;
  3843. }
  3844. public Builder ClearOptionalImportEnum() {
  3845. result.hasOptionalImportEnum = false;
  3846. result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  3847. return this;
  3848. }
  3849. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3850. public bool HasOptionalStringPiece {
  3851. get { return result.HasOptionalStringPiece; }
  3852. }
  3853. public string OptionalStringPiece {
  3854. get { return result.OptionalStringPiece; }
  3855. set { SetOptionalStringPiece(value); }
  3856. }
  3857. public Builder SetOptionalStringPiece(string value) {
  3858. result.hasOptionalStringPiece = true;
  3859. result.optionalStringPiece_ = value;
  3860. return this;
  3861. }
  3862. public Builder ClearOptionalStringPiece() {
  3863. result.hasOptionalStringPiece = false;
  3864. result.optionalStringPiece_ = "";
  3865. return this;
  3866. }
  3867. // optional string optional_cord = 25 [ctype = CORD];
  3868. public bool HasOptionalCord {
  3869. get { return result.HasOptionalCord; }
  3870. }
  3871. public string OptionalCord {
  3872. get { return result.OptionalCord; }
  3873. set { SetOptionalCord(value); }
  3874. }
  3875. public Builder SetOptionalCord(string value) {
  3876. result.hasOptionalCord = true;
  3877. result.optionalCord_ = value;
  3878. return this;
  3879. }
  3880. public Builder ClearOptionalCord() {
  3881. result.hasOptionalCord = false;
  3882. result.optionalCord_ = "";
  3883. return this;
  3884. }
  3885. // repeated int32 repeated_int32 = 31;
  3886. public scg::IList<int> RepeatedInt32List {
  3887. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3888. }
  3889. public int RepeatedInt32Count {
  3890. get { return result.RepeatedInt32Count; }
  3891. }
  3892. public int GetRepeatedInt32(int index) {
  3893. return result.GetRepeatedInt32(index);
  3894. }
  3895. public Builder SetRepeatedInt32(int index, int value) {
  3896. result.repeatedInt32_[index] = value;
  3897. return this;
  3898. }
  3899. public Builder AddRepeatedInt32(int value) {
  3900. if (result.repeatedInt32_.Count == 0) {
  3901. result.repeatedInt32_ = new scg::List<int>();
  3902. }
  3903. result.repeatedInt32_.Add(value);
  3904. return this;
  3905. }
  3906. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3907. if (result.repeatedInt32_.Count == 0) {
  3908. result.repeatedInt32_ = new scg::List<int>();
  3909. }
  3910. base.AddRange(values, result.repeatedInt32_);
  3911. return this;
  3912. }
  3913. public Builder ClearRepeatedInt32() {
  3914. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3915. return this;
  3916. }
  3917. // repeated int64 repeated_int64 = 32;
  3918. public scg::IList<long> RepeatedInt64List {
  3919. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3920. }
  3921. public int RepeatedInt64Count {
  3922. get { return result.RepeatedInt64Count; }
  3923. }
  3924. public long GetRepeatedInt64(int index) {
  3925. return result.GetRepeatedInt64(index);
  3926. }
  3927. public Builder SetRepeatedInt64(int index, long value) {
  3928. result.repeatedInt64_[index] = value;
  3929. return this;
  3930. }
  3931. public Builder AddRepeatedInt64(long value) {
  3932. if (result.repeatedInt64_.Count == 0) {
  3933. result.repeatedInt64_ = new scg::List<long>();
  3934. }
  3935. result.repeatedInt64_.Add(value);
  3936. return this;
  3937. }
  3938. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3939. if (result.repeatedInt64_.Count == 0) {
  3940. result.repeatedInt64_ = new scg::List<long>();
  3941. }
  3942. base.AddRange(values, result.repeatedInt64_);
  3943. return this;
  3944. }
  3945. public Builder ClearRepeatedInt64() {
  3946. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  3947. return this;
  3948. }
  3949. // repeated uint32 repeated_uint32 = 33;
  3950. public scg::IList<uint> RepeatedUint32List {
  3951. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  3952. }
  3953. public int RepeatedUint32Count {
  3954. get { return result.RepeatedUint32Count; }
  3955. }
  3956. public uint GetRepeatedUint32(int index) {
  3957. return result.GetRepeatedUint32(index);
  3958. }
  3959. public Builder SetRepeatedUint32(int index, uint value) {
  3960. result.repeatedUint32_[index] = value;
  3961. return this;
  3962. }
  3963. public Builder AddRepeatedUint32(uint value) {
  3964. if (result.repeatedUint32_.Count == 0) {
  3965. result.repeatedUint32_ = new scg::List<uint>();
  3966. }
  3967. result.repeatedUint32_.Add(value);
  3968. return this;
  3969. }
  3970. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  3971. if (result.repeatedUint32_.Count == 0) {
  3972. result.repeatedUint32_ = new scg::List<uint>();
  3973. }
  3974. base.AddRange(values, result.repeatedUint32_);
  3975. return this;
  3976. }
  3977. public Builder ClearRepeatedUint32() {
  3978. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  3979. return this;
  3980. }
  3981. // repeated uint64 repeated_uint64 = 34;
  3982. public scg::IList<ulong> RepeatedUint64List {
  3983. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  3984. }
  3985. public int RepeatedUint64Count {
  3986. get { return result.RepeatedUint64Count; }
  3987. }
  3988. public ulong GetRepeatedUint64(int index) {
  3989. return result.GetRepeatedUint64(index);
  3990. }
  3991. public Builder SetRepeatedUint64(int index, ulong value) {
  3992. result.repeatedUint64_[index] = value;
  3993. return this;
  3994. }
  3995. public Builder AddRepeatedUint64(ulong value) {
  3996. if (result.repeatedUint64_.Count == 0) {
  3997. result.repeatedUint64_ = new scg::List<ulong>();
  3998. }
  3999. result.repeatedUint64_.Add(value);
  4000. return this;
  4001. }
  4002. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4003. if (result.repeatedUint64_.Count == 0) {
  4004. result.repeatedUint64_ = new scg::List<ulong>();
  4005. }
  4006. base.AddRange(values, result.repeatedUint64_);
  4007. return this;
  4008. }
  4009. public Builder ClearRepeatedUint64() {
  4010. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4011. return this;
  4012. }
  4013. // repeated sint32 repeated_sint32 = 35;
  4014. public scg::IList<int> RepeatedSint32List {
  4015. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4016. }
  4017. public int RepeatedSint32Count {
  4018. get { return result.RepeatedSint32Count; }
  4019. }
  4020. public int GetRepeatedSint32(int index) {
  4021. return result.GetRepeatedSint32(index);
  4022. }
  4023. public Builder SetRepeatedSint32(int index, int value) {
  4024. result.repeatedSint32_[index] = value;
  4025. return this;
  4026. }
  4027. public Builder AddRepeatedSint32(int value) {
  4028. if (result.repeatedSint32_.Count == 0) {
  4029. result.repeatedSint32_ = new scg::List<int>();
  4030. }
  4031. result.repeatedSint32_.Add(value);
  4032. return this;
  4033. }
  4034. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4035. if (result.repeatedSint32_.Count == 0) {
  4036. result.repeatedSint32_ = new scg::List<int>();
  4037. }
  4038. base.AddRange(values, result.repeatedSint32_);
  4039. return this;
  4040. }
  4041. public Builder ClearRepeatedSint32() {
  4042. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4043. return this;
  4044. }
  4045. // repeated sint64 repeated_sint64 = 36;
  4046. public scg::IList<long> RepeatedSint64List {
  4047. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4048. }
  4049. public int RepeatedSint64Count {
  4050. get { return result.RepeatedSint64Count; }
  4051. }
  4052. public long GetRepeatedSint64(int index) {
  4053. return result.GetRepeatedSint64(index);
  4054. }
  4055. public Builder SetRepeatedSint64(int index, long value) {
  4056. result.repeatedSint64_[index] = value;
  4057. return this;
  4058. }
  4059. public Builder AddRepeatedSint64(long value) {
  4060. if (result.repeatedSint64_.Count == 0) {
  4061. result.repeatedSint64_ = new scg::List<long>();
  4062. }
  4063. result.repeatedSint64_.Add(value);
  4064. return this;
  4065. }
  4066. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4067. if (result.repeatedSint64_.Count == 0) {
  4068. result.repeatedSint64_ = new scg::List<long>();
  4069. }
  4070. base.AddRange(values, result.repeatedSint64_);
  4071. return this;
  4072. }
  4073. public Builder ClearRepeatedSint64() {
  4074. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4075. return this;
  4076. }
  4077. // repeated fixed32 repeated_fixed32 = 37;
  4078. public scg::IList<uint> RepeatedFixed32List {
  4079. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4080. }
  4081. public int RepeatedFixed32Count {
  4082. get { return result.RepeatedFixed32Count; }
  4083. }
  4084. public uint GetRepeatedFixed32(int index) {
  4085. return result.GetRepeatedFixed32(index);
  4086. }
  4087. public Builder SetRepeatedFixed32(int index, uint value) {
  4088. result.repeatedFixed32_[index] = value;
  4089. return this;
  4090. }
  4091. public Builder AddRepeatedFixed32(uint value) {
  4092. if (result.repeatedFixed32_.Count == 0) {
  4093. result.repeatedFixed32_ = new scg::List<uint>();
  4094. }
  4095. result.repeatedFixed32_.Add(value);
  4096. return this;
  4097. }
  4098. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4099. if (result.repeatedFixed32_.Count == 0) {
  4100. result.repeatedFixed32_ = new scg::List<uint>();
  4101. }
  4102. base.AddRange(values, result.repeatedFixed32_);
  4103. return this;
  4104. }
  4105. public Builder ClearRepeatedFixed32() {
  4106. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4107. return this;
  4108. }
  4109. // repeated fixed64 repeated_fixed64 = 38;
  4110. public scg::IList<ulong> RepeatedFixed64List {
  4111. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4112. }
  4113. public int RepeatedFixed64Count {
  4114. get { return result.RepeatedFixed64Count; }
  4115. }
  4116. public ulong GetRepeatedFixed64(int index) {
  4117. return result.GetRepeatedFixed64(index);
  4118. }
  4119. public Builder SetRepeatedFixed64(int index, ulong value) {
  4120. result.repeatedFixed64_[index] = value;
  4121. return this;
  4122. }
  4123. public Builder AddRepeatedFixed64(ulong value) {
  4124. if (result.repeatedFixed64_.Count == 0) {
  4125. result.repeatedFixed64_ = new scg::List<ulong>();
  4126. }
  4127. result.repeatedFixed64_.Add(value);
  4128. return this;
  4129. }
  4130. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4131. if (result.repeatedFixed64_.Count == 0) {
  4132. result.repeatedFixed64_ = new scg::List<ulong>();
  4133. }
  4134. base.AddRange(values, result.repeatedFixed64_);
  4135. return this;
  4136. }
  4137. public Builder ClearRepeatedFixed64() {
  4138. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4139. return this;
  4140. }
  4141. // repeated sfixed32 repeated_sfixed32 = 39;
  4142. public scg::IList<int> RepeatedSfixed32List {
  4143. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4144. }
  4145. public int RepeatedSfixed32Count {
  4146. get { return result.RepeatedSfixed32Count; }
  4147. }
  4148. public int GetRepeatedSfixed32(int index) {
  4149. return result.GetRepeatedSfixed32(index);
  4150. }
  4151. public Builder SetRepeatedSfixed32(int index, int value) {
  4152. result.repeatedSfixed32_[index] = value;
  4153. return this;
  4154. }
  4155. public Builder AddRepeatedSfixed32(int value) {
  4156. if (result.repeatedSfixed32_.Count == 0) {
  4157. result.repeatedSfixed32_ = new scg::List<int>();
  4158. }
  4159. result.repeatedSfixed32_.Add(value);
  4160. return this;
  4161. }
  4162. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4163. if (result.repeatedSfixed32_.Count == 0) {
  4164. result.repeatedSfixed32_ = new scg::List<int>();
  4165. }
  4166. base.AddRange(values, result.repeatedSfixed32_);
  4167. return this;
  4168. }
  4169. public Builder ClearRepeatedSfixed32() {
  4170. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4171. return this;
  4172. }
  4173. // repeated sfixed64 repeated_sfixed64 = 40;
  4174. public scg::IList<long> RepeatedSfixed64List {
  4175. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4176. }
  4177. public int RepeatedSfixed64Count {
  4178. get { return result.RepeatedSfixed64Count; }
  4179. }
  4180. public long GetRepeatedSfixed64(int index) {
  4181. return result.GetRepeatedSfixed64(index);
  4182. }
  4183. public Builder SetRepeatedSfixed64(int index, long value) {
  4184. result.repeatedSfixed64_[index] = value;
  4185. return this;
  4186. }
  4187. public Builder AddRepeatedSfixed64(long value) {
  4188. if (result.repeatedSfixed64_.Count == 0) {
  4189. result.repeatedSfixed64_ = new scg::List<long>();
  4190. }
  4191. result.repeatedSfixed64_.Add(value);
  4192. return this;
  4193. }
  4194. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4195. if (result.repeatedSfixed64_.Count == 0) {
  4196. result.repeatedSfixed64_ = new scg::List<long>();
  4197. }
  4198. base.AddRange(values, result.repeatedSfixed64_);
  4199. return this;
  4200. }
  4201. public Builder ClearRepeatedSfixed64() {
  4202. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4203. return this;
  4204. }
  4205. // repeated float repeated_float = 41;
  4206. public scg::IList<float> RepeatedFloatList {
  4207. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4208. }
  4209. public int RepeatedFloatCount {
  4210. get { return result.RepeatedFloatCount; }
  4211. }
  4212. public float GetRepeatedFloat(int index) {
  4213. return result.GetRepeatedFloat(index);
  4214. }
  4215. public Builder SetRepeatedFloat(int index, float value) {
  4216. result.repeatedFloat_[index] = value;
  4217. return this;
  4218. }
  4219. public Builder AddRepeatedFloat(float value) {
  4220. if (result.repeatedFloat_.Count == 0) {
  4221. result.repeatedFloat_ = new scg::List<float>();
  4222. }
  4223. result.repeatedFloat_.Add(value);
  4224. return this;
  4225. }
  4226. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4227. if (result.repeatedFloat_.Count == 0) {
  4228. result.repeatedFloat_ = new scg::List<float>();
  4229. }
  4230. base.AddRange(values, result.repeatedFloat_);
  4231. return this;
  4232. }
  4233. public Builder ClearRepeatedFloat() {
  4234. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4235. return this;
  4236. }
  4237. // repeated double repeated_double = 42;
  4238. public scg::IList<double> RepeatedDoubleList {
  4239. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4240. }
  4241. public int RepeatedDoubleCount {
  4242. get { return result.RepeatedDoubleCount; }
  4243. }
  4244. public double GetRepeatedDouble(int index) {
  4245. return result.GetRepeatedDouble(index);
  4246. }
  4247. public Builder SetRepeatedDouble(int index, double value) {
  4248. result.repeatedDouble_[index] = value;
  4249. return this;
  4250. }
  4251. public Builder AddRepeatedDouble(double value) {
  4252. if (result.repeatedDouble_.Count == 0) {
  4253. result.repeatedDouble_ = new scg::List<double>();
  4254. }
  4255. result.repeatedDouble_.Add(value);
  4256. return this;
  4257. }
  4258. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4259. if (result.repeatedDouble_.Count == 0) {
  4260. result.repeatedDouble_ = new scg::List<double>();
  4261. }
  4262. base.AddRange(values, result.repeatedDouble_);
  4263. return this;
  4264. }
  4265. public Builder ClearRepeatedDouble() {
  4266. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4267. return this;
  4268. }
  4269. // repeated bool repeated_bool = 43;
  4270. public scg::IList<bool> RepeatedBoolList {
  4271. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4272. }
  4273. public int RepeatedBoolCount {
  4274. get { return result.RepeatedBoolCount; }
  4275. }
  4276. public bool GetRepeatedBool(int index) {
  4277. return result.GetRepeatedBool(index);
  4278. }
  4279. public Builder SetRepeatedBool(int index, bool value) {
  4280. result.repeatedBool_[index] = value;
  4281. return this;
  4282. }
  4283. public Builder AddRepeatedBool(bool value) {
  4284. if (result.repeatedBool_.Count == 0) {
  4285. result.repeatedBool_ = new scg::List<bool>();
  4286. }
  4287. result.repeatedBool_.Add(value);
  4288. return this;
  4289. }
  4290. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4291. if (result.repeatedBool_.Count == 0) {
  4292. result.repeatedBool_ = new scg::List<bool>();
  4293. }
  4294. base.AddRange(values, result.repeatedBool_);
  4295. return this;
  4296. }
  4297. public Builder ClearRepeatedBool() {
  4298. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4299. return this;
  4300. }
  4301. // repeated string repeated_string = 44;
  4302. public scg::IList<string> RepeatedStringList {
  4303. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4304. }
  4305. public int RepeatedStringCount {
  4306. get { return result.RepeatedStringCount; }
  4307. }
  4308. public string GetRepeatedString(int index) {
  4309. return result.GetRepeatedString(index);
  4310. }
  4311. public Builder SetRepeatedString(int index, string value) {
  4312. result.repeatedString_[index] = value;
  4313. return this;
  4314. }
  4315. public Builder AddRepeatedString(string value) {
  4316. if (result.repeatedString_.Count == 0) {
  4317. result.repeatedString_ = new scg::List<string>();
  4318. }
  4319. result.repeatedString_.Add(value);
  4320. return this;
  4321. }
  4322. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4323. if (result.repeatedString_.Count == 0) {
  4324. result.repeatedString_ = new scg::List<string>();
  4325. }
  4326. base.AddRange(values, result.repeatedString_);
  4327. return this;
  4328. }
  4329. public Builder ClearRepeatedString() {
  4330. result.repeatedString_ = pbc::Lists<string>.Empty;
  4331. return this;
  4332. }
  4333. // repeated bytes repeated_bytes = 45;
  4334. public scg::IList<pb::ByteString> RepeatedBytesList {
  4335. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4336. }
  4337. public int RepeatedBytesCount {
  4338. get { return result.RepeatedBytesCount; }
  4339. }
  4340. public pb::ByteString GetRepeatedBytes(int index) {
  4341. return result.GetRepeatedBytes(index);
  4342. }
  4343. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4344. result.repeatedBytes_[index] = value;
  4345. return this;
  4346. }
  4347. public Builder AddRepeatedBytes(pb::ByteString value) {
  4348. if (result.repeatedBytes_.Count == 0) {
  4349. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4350. }
  4351. result.repeatedBytes_.Add(value);
  4352. return this;
  4353. }
  4354. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4355. if (result.repeatedBytes_.Count == 0) {
  4356. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4357. }
  4358. base.AddRange(values, result.repeatedBytes_);
  4359. return this;
  4360. }
  4361. public Builder ClearRepeatedBytes() {
  4362. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4363. return this;
  4364. }
  4365. // repeated group RepeatedGroup = 46 {
  4366. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4367. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4368. }
  4369. public int RepeatedGroupCount {
  4370. get { return result.RepeatedGroupCount; }
  4371. }
  4372. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4373. return result.GetRepeatedGroup(index);
  4374. }
  4375. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4376. result.repeatedGroup_[index] = value;
  4377. return this;
  4378. }
  4379. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4380. result.repeatedGroup_[index] = builderForValue.Build();
  4381. return this;
  4382. }
  4383. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4384. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4385. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4386. }
  4387. result.repeatedGroup_.Add(value);
  4388. return this;
  4389. }
  4390. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4391. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4392. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4393. }
  4394. result.repeatedGroup_.Add(builderForValue.Build());
  4395. return this;
  4396. }
  4397. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
  4398. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4399. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4400. }
  4401. base.AddRange(values, result.repeatedGroup_);
  4402. return this;
  4403. }
  4404. public Builder ClearRepeatedGroup() {
  4405. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  4406. return this;
  4407. }
  4408. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4409. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4410. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4411. }
  4412. public int RepeatedNestedMessageCount {
  4413. get { return result.RepeatedNestedMessageCount; }
  4414. }
  4415. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4416. return result.GetRepeatedNestedMessage(index);
  4417. }
  4418. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4419. result.repeatedNestedMessage_[index] = value;
  4420. return this;
  4421. }
  4422. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4423. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4424. return this;
  4425. }
  4426. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4427. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4428. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4429. }
  4430. result.repeatedNestedMessage_.Add(value);
  4431. return this;
  4432. }
  4433. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4434. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4435. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4436. }
  4437. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4438. return this;
  4439. }
  4440. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  4441. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4442. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4443. }
  4444. base.AddRange(values, result.repeatedNestedMessage_);
  4445. return this;
  4446. }
  4447. public Builder ClearRepeatedNestedMessage() {
  4448. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  4449. return this;
  4450. }
  4451. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4452. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  4453. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4454. }
  4455. public int RepeatedForeignMessageCount {
  4456. get { return result.RepeatedForeignMessageCount; }
  4457. }
  4458. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  4459. return result.GetRepeatedForeignMessage(index);
  4460. }
  4461. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4462. result.repeatedForeignMessage_[index] = value;
  4463. return this;
  4464. }
  4465. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4466. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4467. return this;
  4468. }
  4469. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4470. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4471. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4472. }
  4473. result.repeatedForeignMessage_.Add(value);
  4474. return this;
  4475. }
  4476. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4477. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4478. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4479. }
  4480. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4481. return this;
  4482. }
  4483. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  4484. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4485. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4486. }
  4487. base.AddRange(values, result.repeatedForeignMessage_);
  4488. return this;
  4489. }
  4490. public Builder ClearRepeatedForeignMessage() {
  4491. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  4492. return this;
  4493. }
  4494. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4495. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  4496. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4497. }
  4498. public int RepeatedImportMessageCount {
  4499. get { return result.RepeatedImportMessageCount; }
  4500. }
  4501. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  4502. return result.GetRepeatedImportMessage(index);
  4503. }
  4504. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4505. result.repeatedImportMessage_[index] = value;
  4506. return this;
  4507. }
  4508. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4509. result.repeatedImportMessage_[index] = builderForValue.Build();
  4510. return this;
  4511. }
  4512. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4513. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4514. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4515. }
  4516. result.repeatedImportMessage_.Add(value);
  4517. return this;
  4518. }
  4519. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4520. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4521. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4522. }
  4523. result.repeatedImportMessage_.Add(builderForValue.Build());
  4524. return this;
  4525. }
  4526. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
  4527. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4528. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4529. }
  4530. base.AddRange(values, result.repeatedImportMessage_);
  4531. return this;
  4532. }
  4533. public Builder ClearRepeatedImportMessage() {
  4534. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  4535. return this;
  4536. }
  4537. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4538. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4539. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4540. }
  4541. public int RepeatedNestedEnumCount {
  4542. get { return result.RepeatedNestedEnumCount; }
  4543. }
  4544. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4545. return result.GetRepeatedNestedEnum(index);
  4546. }
  4547. public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4548. result.repeatedNestedEnum_[index] = value;
  4549. return this;
  4550. }
  4551. public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4552. if (result.repeatedNestedEnum_.Count == 0) {
  4553. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4554. }
  4555. result.repeatedNestedEnum_.Add(value);
  4556. return this;
  4557. }
  4558. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
  4559. if (result.repeatedNestedEnum_.Count == 0) {
  4560. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4561. }
  4562. base.AddRange(values, result.repeatedNestedEnum_);
  4563. return this;
  4564. }
  4565. public Builder ClearRepeatedNestedEnum() {
  4566. result.repeatedNestedEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.Empty;
  4567. return this;
  4568. }
  4569. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4570. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  4571. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4572. }
  4573. public int RepeatedForeignEnumCount {
  4574. get { return result.RepeatedForeignEnumCount; }
  4575. }
  4576. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  4577. return result.GetRepeatedForeignEnum(index);
  4578. }
  4579. public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4580. result.repeatedForeignEnum_[index] = value;
  4581. return this;
  4582. }
  4583. public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4584. if (result.repeatedForeignEnum_.Count == 0) {
  4585. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4586. }
  4587. result.repeatedForeignEnum_.Add(value);
  4588. return this;
  4589. }
  4590. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  4591. if (result.repeatedForeignEnum_.Count == 0) {
  4592. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4593. }
  4594. base.AddRange(values, result.repeatedForeignEnum_);
  4595. return this;
  4596. }
  4597. public Builder ClearRepeatedForeignEnum() {
  4598. result.repeatedForeignEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  4599. return this;
  4600. }
  4601. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4602. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  4603. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4604. }
  4605. public int RepeatedImportEnumCount {
  4606. get { return result.RepeatedImportEnumCount; }
  4607. }
  4608. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  4609. return result.GetRepeatedImportEnum(index);
  4610. }
  4611. public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4612. result.repeatedImportEnum_[index] = value;
  4613. return this;
  4614. }
  4615. public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4616. if (result.repeatedImportEnum_.Count == 0) {
  4617. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4618. }
  4619. result.repeatedImportEnum_.Add(value);
  4620. return this;
  4621. }
  4622. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
  4623. if (result.repeatedImportEnum_.Count == 0) {
  4624. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4625. }
  4626. base.AddRange(values, result.repeatedImportEnum_);
  4627. return this;
  4628. }
  4629. public Builder ClearRepeatedImportEnum() {
  4630. result.repeatedImportEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.Empty;
  4631. return this;
  4632. }
  4633. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4634. public scg::IList<string> RepeatedStringPieceList {
  4635. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4636. }
  4637. public int RepeatedStringPieceCount {
  4638. get { return result.RepeatedStringPieceCount; }
  4639. }
  4640. public string GetRepeatedStringPiece(int index) {
  4641. return result.GetRepeatedStringPiece(index);
  4642. }
  4643. public Builder SetRepeatedStringPiece(int index, string value) {
  4644. result.repeatedStringPiece_[index] = value;
  4645. return this;
  4646. }
  4647. public Builder AddRepeatedStringPiece(string value) {
  4648. if (result.repeatedStringPiece_.Count == 0) {
  4649. result.repeatedStringPiece_ = new scg::List<string>();
  4650. }
  4651. result.repeatedStringPiece_.Add(value);
  4652. return this;
  4653. }
  4654. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4655. if (result.repeatedStringPiece_.Count == 0) {
  4656. result.repeatedStringPiece_ = new scg::List<string>();
  4657. }
  4658. base.AddRange(values, result.repeatedStringPiece_);
  4659. return this;
  4660. }
  4661. public Builder ClearRepeatedStringPiece() {
  4662. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4663. return this;
  4664. }
  4665. // repeated string repeated_cord = 55 [ctype = CORD];
  4666. public scg::IList<string> RepeatedCordList {
  4667. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4668. }
  4669. public int RepeatedCordCount {
  4670. get { return result.RepeatedCordCount; }
  4671. }
  4672. public string GetRepeatedCord(int index) {
  4673. return result.GetRepeatedCord(index);
  4674. }
  4675. public Builder SetRepeatedCord(int index, string value) {
  4676. result.repeatedCord_[index] = value;
  4677. return this;
  4678. }
  4679. public Builder AddRepeatedCord(string value) {
  4680. if (result.repeatedCord_.Count == 0) {
  4681. result.repeatedCord_ = new scg::List<string>();
  4682. }
  4683. result.repeatedCord_.Add(value);
  4684. return this;
  4685. }
  4686. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4687. if (result.repeatedCord_.Count == 0) {
  4688. result.repeatedCord_ = new scg::List<string>();
  4689. }
  4690. base.AddRange(values, result.repeatedCord_);
  4691. return this;
  4692. }
  4693. public Builder ClearRepeatedCord() {
  4694. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4695. return this;
  4696. }
  4697. // optional int32 default_int32 = 61 [default = 41];
  4698. public bool HasDefaultInt32 {
  4699. get { return result.HasDefaultInt32; }
  4700. }
  4701. public int DefaultInt32 {
  4702. get { return result.DefaultInt32; }
  4703. set { SetDefaultInt32(value); }
  4704. }
  4705. public Builder SetDefaultInt32(int value) {
  4706. result.hasDefaultInt32 = true;
  4707. result.defaultInt32_ = value;
  4708. return this;
  4709. }
  4710. public Builder ClearDefaultInt32() {
  4711. result.hasDefaultInt32 = false;
  4712. result.defaultInt32_ = 41;
  4713. return this;
  4714. }
  4715. // optional int64 default_int64 = 62 [default = 42];
  4716. public bool HasDefaultInt64 {
  4717. get { return result.HasDefaultInt64; }
  4718. }
  4719. public long DefaultInt64 {
  4720. get { return result.DefaultInt64; }
  4721. set { SetDefaultInt64(value); }
  4722. }
  4723. public Builder SetDefaultInt64(long value) {
  4724. result.hasDefaultInt64 = true;
  4725. result.defaultInt64_ = value;
  4726. return this;
  4727. }
  4728. public Builder ClearDefaultInt64() {
  4729. result.hasDefaultInt64 = false;
  4730. result.defaultInt64_ = 42L;
  4731. return this;
  4732. }
  4733. // optional uint32 default_uint32 = 63 [default = 43];
  4734. public bool HasDefaultUint32 {
  4735. get { return result.HasDefaultUint32; }
  4736. }
  4737. public uint DefaultUint32 {
  4738. get { return result.DefaultUint32; }
  4739. set { SetDefaultUint32(value); }
  4740. }
  4741. public Builder SetDefaultUint32(uint value) {
  4742. result.hasDefaultUint32 = true;
  4743. result.defaultUint32_ = value;
  4744. return this;
  4745. }
  4746. public Builder ClearDefaultUint32() {
  4747. result.hasDefaultUint32 = false;
  4748. result.defaultUint32_ = 43;
  4749. return this;
  4750. }
  4751. // optional uint64 default_uint64 = 64 [default = 44];
  4752. public bool HasDefaultUint64 {
  4753. get { return result.HasDefaultUint64; }
  4754. }
  4755. public ulong DefaultUint64 {
  4756. get { return result.DefaultUint64; }
  4757. set { SetDefaultUint64(value); }
  4758. }
  4759. public Builder SetDefaultUint64(ulong value) {
  4760. result.hasDefaultUint64 = true;
  4761. result.defaultUint64_ = value;
  4762. return this;
  4763. }
  4764. public Builder ClearDefaultUint64() {
  4765. result.hasDefaultUint64 = false;
  4766. result.defaultUint64_ = 44UL;
  4767. return this;
  4768. }
  4769. // optional sint32 default_sint32 = 65 [default = -45];
  4770. public bool HasDefaultSint32 {
  4771. get { return result.HasDefaultSint32; }
  4772. }
  4773. public int DefaultSint32 {
  4774. get { return result.DefaultSint32; }
  4775. set { SetDefaultSint32(value); }
  4776. }
  4777. public Builder SetDefaultSint32(int value) {
  4778. result.hasDefaultSint32 = true;
  4779. result.defaultSint32_ = value;
  4780. return this;
  4781. }
  4782. public Builder ClearDefaultSint32() {
  4783. result.hasDefaultSint32 = false;
  4784. result.defaultSint32_ = -45;
  4785. return this;
  4786. }
  4787. // optional sint64 default_sint64 = 66 [default = 46];
  4788. public bool HasDefaultSint64 {
  4789. get { return result.HasDefaultSint64; }
  4790. }
  4791. public long DefaultSint64 {
  4792. get { return result.DefaultSint64; }
  4793. set { SetDefaultSint64(value); }
  4794. }
  4795. public Builder SetDefaultSint64(long value) {
  4796. result.hasDefaultSint64 = true;
  4797. result.defaultSint64_ = value;
  4798. return this;
  4799. }
  4800. public Builder ClearDefaultSint64() {
  4801. result.hasDefaultSint64 = false;
  4802. result.defaultSint64_ = 46L;
  4803. return this;
  4804. }
  4805. // optional fixed32 default_fixed32 = 67 [default = 47];
  4806. public bool HasDefaultFixed32 {
  4807. get { return result.HasDefaultFixed32; }
  4808. }
  4809. public uint DefaultFixed32 {
  4810. get { return result.DefaultFixed32; }
  4811. set { SetDefaultFixed32(value); }
  4812. }
  4813. public Builder SetDefaultFixed32(uint value) {
  4814. result.hasDefaultFixed32 = true;
  4815. result.defaultFixed32_ = value;
  4816. return this;
  4817. }
  4818. public Builder ClearDefaultFixed32() {
  4819. result.hasDefaultFixed32 = false;
  4820. result.defaultFixed32_ = 47;
  4821. return this;
  4822. }
  4823. // optional fixed64 default_fixed64 = 68 [default = 48];
  4824. public bool HasDefaultFixed64 {
  4825. get { return result.HasDefaultFixed64; }
  4826. }
  4827. public ulong DefaultFixed64 {
  4828. get { return result.DefaultFixed64; }
  4829. set { SetDefaultFixed64(value); }
  4830. }
  4831. public Builder SetDefaultFixed64(ulong value) {
  4832. result.hasDefaultFixed64 = true;
  4833. result.defaultFixed64_ = value;
  4834. return this;
  4835. }
  4836. public Builder ClearDefaultFixed64() {
  4837. result.hasDefaultFixed64 = false;
  4838. result.defaultFixed64_ = 48UL;
  4839. return this;
  4840. }
  4841. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4842. public bool HasDefaultSfixed32 {
  4843. get { return result.HasDefaultSfixed32; }
  4844. }
  4845. public int DefaultSfixed32 {
  4846. get { return result.DefaultSfixed32; }
  4847. set { SetDefaultSfixed32(value); }
  4848. }
  4849. public Builder SetDefaultSfixed32(int value) {
  4850. result.hasDefaultSfixed32 = true;
  4851. result.defaultSfixed32_ = value;
  4852. return this;
  4853. }
  4854. public Builder ClearDefaultSfixed32() {
  4855. result.hasDefaultSfixed32 = false;
  4856. result.defaultSfixed32_ = 49;
  4857. return this;
  4858. }
  4859. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4860. public bool HasDefaultSfixed64 {
  4861. get { return result.HasDefaultSfixed64; }
  4862. }
  4863. public long DefaultSfixed64 {
  4864. get { return result.DefaultSfixed64; }
  4865. set { SetDefaultSfixed64(value); }
  4866. }
  4867. public Builder SetDefaultSfixed64(long value) {
  4868. result.hasDefaultSfixed64 = true;
  4869. result.defaultSfixed64_ = value;
  4870. return this;
  4871. }
  4872. public Builder ClearDefaultSfixed64() {
  4873. result.hasDefaultSfixed64 = false;
  4874. result.defaultSfixed64_ = -50L;
  4875. return this;
  4876. }
  4877. // optional float default_float = 71 [default = 51.5];
  4878. public bool HasDefaultFloat {
  4879. get { return result.HasDefaultFloat; }
  4880. }
  4881. public float DefaultFloat {
  4882. get { return result.DefaultFloat; }
  4883. set { SetDefaultFloat(value); }
  4884. }
  4885. public Builder SetDefaultFloat(float value) {
  4886. result.hasDefaultFloat = true;
  4887. result.defaultFloat_ = value;
  4888. return this;
  4889. }
  4890. public Builder ClearDefaultFloat() {
  4891. result.hasDefaultFloat = false;
  4892. result.defaultFloat_ = 51.5F;
  4893. return this;
  4894. }
  4895. // optional double default_double = 72 [default = 52000];
  4896. public bool HasDefaultDouble {
  4897. get { return result.HasDefaultDouble; }
  4898. }
  4899. public double DefaultDouble {
  4900. get { return result.DefaultDouble; }
  4901. set { SetDefaultDouble(value); }
  4902. }
  4903. public Builder SetDefaultDouble(double value) {
  4904. result.hasDefaultDouble = true;
  4905. result.defaultDouble_ = value;
  4906. return this;
  4907. }
  4908. public Builder ClearDefaultDouble() {
  4909. result.hasDefaultDouble = false;
  4910. result.defaultDouble_ = 52000D;
  4911. return this;
  4912. }
  4913. // optional bool default_bool = 73 [default = true];
  4914. public bool HasDefaultBool {
  4915. get { return result.HasDefaultBool; }
  4916. }
  4917. public bool DefaultBool {
  4918. get { return result.DefaultBool; }
  4919. set { SetDefaultBool(value); }
  4920. }
  4921. public Builder SetDefaultBool(bool value) {
  4922. result.hasDefaultBool = true;
  4923. result.defaultBool_ = value;
  4924. return this;
  4925. }
  4926. public Builder ClearDefaultBool() {
  4927. result.hasDefaultBool = false;
  4928. result.defaultBool_ = true;
  4929. return this;
  4930. }
  4931. // optional string default_string = 74 [default = "hello"];
  4932. public bool HasDefaultString {
  4933. get { return result.HasDefaultString; }
  4934. }
  4935. public string DefaultString {
  4936. get { return result.DefaultString; }
  4937. set { SetDefaultString(value); }
  4938. }
  4939. public Builder SetDefaultString(string value) {
  4940. result.hasDefaultString = true;
  4941. result.defaultString_ = value;
  4942. return this;
  4943. }
  4944. public Builder ClearDefaultString() {
  4945. result.hasDefaultString = false;
  4946. result.defaultString_ = "hello";
  4947. return this;
  4948. }
  4949. // optional bytes default_bytes = 75 [default = "world"];
  4950. public bool HasDefaultBytes {
  4951. get { return result.HasDefaultBytes; }
  4952. }
  4953. public pb::ByteString DefaultBytes {
  4954. get { return result.DefaultBytes; }
  4955. set { SetDefaultBytes(value); }
  4956. }
  4957. public Builder SetDefaultBytes(pb::ByteString value) {
  4958. result.hasDefaultBytes = true;
  4959. result.defaultBytes_ = value;
  4960. return this;
  4961. }
  4962. public Builder ClearDefaultBytes() {
  4963. result.hasDefaultBytes = false;
  4964. result.defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  4965. return this;
  4966. }
  4967. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  4968. public bool HasDefaultNestedEnum {
  4969. get { return result.HasDefaultNestedEnum; }
  4970. }
  4971. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  4972. get { return result.DefaultNestedEnum; }
  4973. set { SetDefaultNestedEnum(value); }
  4974. }
  4975. public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4976. result.hasDefaultNestedEnum = true;
  4977. result.defaultNestedEnum_ = value;
  4978. return this;
  4979. }
  4980. public Builder ClearDefaultNestedEnum() {
  4981. result.hasDefaultNestedEnum = false;
  4982. result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  4983. return this;
  4984. }
  4985. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  4986. public bool HasDefaultForeignEnum {
  4987. get { return result.HasDefaultForeignEnum; }
  4988. }
  4989. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  4990. get { return result.DefaultForeignEnum; }
  4991. set { SetDefaultForeignEnum(value); }
  4992. }
  4993. public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4994. result.hasDefaultForeignEnum = true;
  4995. result.defaultForeignEnum_ = value;
  4996. return this;
  4997. }
  4998. public Builder ClearDefaultForeignEnum() {
  4999. result.hasDefaultForeignEnum = false;
  5000. result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  5001. return this;
  5002. }
  5003. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5004. public bool HasDefaultImportEnum {
  5005. get { return result.HasDefaultImportEnum; }
  5006. }
  5007. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  5008. get { return result.DefaultImportEnum; }
  5009. set { SetDefaultImportEnum(value); }
  5010. }
  5011. public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  5012. result.hasDefaultImportEnum = true;
  5013. result.defaultImportEnum_ = value;
  5014. return this;
  5015. }
  5016. public Builder ClearDefaultImportEnum() {
  5017. result.hasDefaultImportEnum = false;
  5018. result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  5019. return this;
  5020. }
  5021. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5022. public bool HasDefaultStringPiece {
  5023. get { return result.HasDefaultStringPiece; }
  5024. }
  5025. public string DefaultStringPiece {
  5026. get { return result.DefaultStringPiece; }
  5027. set { SetDefaultStringPiece(value); }
  5028. }
  5029. public Builder SetDefaultStringPiece(string value) {
  5030. result.hasDefaultStringPiece = true;
  5031. result.defaultStringPiece_ = value;
  5032. return this;
  5033. }
  5034. public Builder ClearDefaultStringPiece() {
  5035. result.hasDefaultStringPiece = false;
  5036. result.defaultStringPiece_ = "abc";
  5037. return this;
  5038. }
  5039. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5040. public bool HasDefaultCord {
  5041. get { return result.HasDefaultCord; }
  5042. }
  5043. public string DefaultCord {
  5044. get { return result.DefaultCord; }
  5045. set { SetDefaultCord(value); }
  5046. }
  5047. public Builder SetDefaultCord(string value) {
  5048. result.hasDefaultCord = true;
  5049. result.defaultCord_ = value;
  5050. return this;
  5051. }
  5052. public Builder ClearDefaultCord() {
  5053. result.hasDefaultCord = false;
  5054. result.defaultCord_ = "123";
  5055. return this;
  5056. }
  5057. }
  5058. }
  5059. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5060. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5061. public static ForeignMessage DefaultInstance {
  5062. get { return defaultInstance; }
  5063. }
  5064. public override ForeignMessage DefaultInstanceForType {
  5065. get { return defaultInstance; }
  5066. }
  5067. protected override ForeignMessage ThisMessage {
  5068. get { return this; }
  5069. }
  5070. public static pbd::MessageDescriptor Descriptor {
  5071. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5072. }
  5073. protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
  5074. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5075. }
  5076. // optional int32 c = 1;
  5077. private bool hasC;
  5078. private int c_ = 0;
  5079. public bool HasC {
  5080. get { return hasC; }
  5081. }
  5082. public int C {
  5083. get { return c_; }
  5084. }
  5085. public override bool IsInitialized {
  5086. get {
  5087. return true;
  5088. }
  5089. }
  5090. public override void WriteTo(pb::CodedOutputStream output) {
  5091. if (HasC) {
  5092. output.WriteInt32(1, C);
  5093. }
  5094. UnknownFields.WriteTo(output);
  5095. }
  5096. private int memoizedSerializedSize = -1;
  5097. public override int SerializedSize {
  5098. get {
  5099. int size = memoizedSerializedSize;
  5100. if (size != -1) return size;
  5101. size = 0;
  5102. if (HasC) {
  5103. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5104. }
  5105. size += UnknownFields.SerializedSize;
  5106. memoizedSerializedSize = size;
  5107. return size;
  5108. }
  5109. }
  5110. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data) {
  5111. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5112. }
  5113. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data,
  5114. pb::ExtensionRegistry extensionRegistry) {
  5115. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5116. .BuildParsed();
  5117. }
  5118. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data) {
  5119. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5120. }
  5121. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data,
  5122. pb::ExtensionRegistry extensionRegistry) {
  5123. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5124. .BuildParsed();
  5125. }
  5126. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5127. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5128. }
  5129. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(
  5130. global::System.IO.Stream input,
  5131. pb::ExtensionRegistry extensionRegistry) {
  5132. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5133. .BuildParsed();
  5134. }
  5135. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5136. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5137. }
  5138. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input,
  5139. pb::ExtensionRegistry extensionRegistry) {
  5140. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5141. .BuildParsed();
  5142. }
  5143. public static Builder CreateBuilder() { return new Builder(); }
  5144. public override Builder CreateBuilderForType() { return new Builder(); }
  5145. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.ForeignMessage prototype) {
  5146. return (Builder) new Builder().MergeFrom(prototype);
  5147. }
  5148. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, Builder> {
  5149. protected override Builder ThisBuilder {
  5150. get { return this; }
  5151. }
  5152. // Construct using global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder()
  5153. internal Builder() {}
  5154. global::Google.ProtocolBuffers.TestProtos.ForeignMessage result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5155. protected override global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageBeingBuilt {
  5156. get { return result; }
  5157. }
  5158. public override Builder Clear() {
  5159. result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5160. return this;
  5161. }
  5162. public override Builder Clone() {
  5163. return new Builder().MergeFrom(result);
  5164. }
  5165. public override pbd::MessageDescriptor DescriptorForType {
  5166. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
  5167. }
  5168. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage DefaultInstanceForType {
  5169. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  5170. }
  5171. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage BuildPartial() {
  5172. global::Google.ProtocolBuffers.TestProtos.ForeignMessage returnMe = result;
  5173. result = null;
  5174. return returnMe;
  5175. }
  5176. public override Builder MergeFrom(pb::IMessage other) {
  5177. if (other is global::Google.ProtocolBuffers.TestProtos.ForeignMessage) {
  5178. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.ForeignMessage) other);
  5179. } else {
  5180. base.MergeFrom(other);
  5181. return this;
  5182. }
  5183. }
  5184. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.ForeignMessage other) {
  5185. if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
  5186. if (other.HasC) {
  5187. C = other.C;
  5188. }
  5189. this.MergeUnknownFields(other.UnknownFields);
  5190. return this;
  5191. }
  5192. public override Builder MergeFrom(pb::CodedInputStream input) {
  5193. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5194. }
  5195. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5196. pb::UnknownFieldSet.Builder unknownFields =
  5197. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5198. while (true) {
  5199. uint tag = input.ReadTag();
  5200. switch (tag) {
  5201. case 0:
  5202. this.UnknownFields = unknownFields.Build();
  5203. return this;
  5204. default: {
  5205. if (!ParseUnknownField(input, unknownFields,
  5206. extensionRegistry, tag)) {
  5207. this.UnknownFields = unknownFields.Build();
  5208. return this;
  5209. }
  5210. break;
  5211. }
  5212. case 8: {
  5213. C = input.ReadInt32();
  5214. break;
  5215. }
  5216. }
  5217. }
  5218. }
  5219. // optional int32 c = 1;
  5220. public bool HasC {
  5221. get { return result.HasC; }
  5222. }
  5223. public int C {
  5224. get { return result.C; }
  5225. set { SetC(value); }
  5226. }
  5227. public Builder SetC(int value) {
  5228. result.hasC = true;
  5229. result.c_ = value;
  5230. return this;
  5231. }
  5232. public Builder ClearC() {
  5233. result.hasC = false;
  5234. result.c_ = 0;
  5235. return this;
  5236. }
  5237. }
  5238. }
  5239. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5240. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5241. public static TestAllExtensions DefaultInstance {
  5242. get { return defaultInstance; }
  5243. }
  5244. public override TestAllExtensions DefaultInstanceForType {
  5245. get { return defaultInstance; }
  5246. }
  5247. protected override TestAllExtensions ThisMessage {
  5248. get { return this; }
  5249. }
  5250. public static pbd::MessageDescriptor Descriptor {
  5251. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5252. }
  5253. protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
  5254. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5255. }
  5256. public override bool IsInitialized {
  5257. get {
  5258. if (!ExtensionsAreInitialized) return false;
  5259. return true;
  5260. }
  5261. }
  5262. public override void WriteTo(pb::CodedOutputStream output) {
  5263. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5264. extensionWriter.WriteUntil(536870912, output);
  5265. UnknownFields.WriteTo(output);
  5266. }
  5267. private int memoizedSerializedSize = -1;
  5268. public override int SerializedSize {
  5269. get {
  5270. int size = memoizedSerializedSize;
  5271. if (size != -1) return size;
  5272. size = 0;
  5273. size += ExtensionsSerializedSize;
  5274. size += UnknownFields.SerializedSize;
  5275. memoizedSerializedSize = size;
  5276. return size;
  5277. }
  5278. }
  5279. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data) {
  5280. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5281. }
  5282. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data,
  5283. pb::ExtensionRegistry extensionRegistry) {
  5284. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5285. .BuildParsed();
  5286. }
  5287. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data) {
  5288. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5289. }
  5290. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data,
  5291. pb::ExtensionRegistry extensionRegistry) {
  5292. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5293. .BuildParsed();
  5294. }
  5295. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5296. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5297. }
  5298. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(
  5299. global::System.IO.Stream input,
  5300. pb::ExtensionRegistry extensionRegistry) {
  5301. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5302. .BuildParsed();
  5303. }
  5304. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5305. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5306. }
  5307. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5308. pb::ExtensionRegistry extensionRegistry) {
  5309. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5310. .BuildParsed();
  5311. }
  5312. public static Builder CreateBuilder() { return new Builder(); }
  5313. public override Builder CreateBuilderForType() { return new Builder(); }
  5314. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions prototype) {
  5315. return (Builder) new Builder().MergeFrom(prototype);
  5316. }
  5317. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> {
  5318. protected override Builder ThisBuilder {
  5319. get { return this; }
  5320. }
  5321. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.CreateBuilder()
  5322. internal Builder() {}
  5323. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5324. protected override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions MessageBeingBuilt {
  5325. get { return result; }
  5326. }
  5327. public override Builder Clear() {
  5328. result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5329. return this;
  5330. }
  5331. public override Builder Clone() {
  5332. return new Builder().MergeFrom(result);
  5333. }
  5334. public override pbd::MessageDescriptor DescriptorForType {
  5335. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
  5336. }
  5337. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions DefaultInstanceForType {
  5338. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
  5339. }
  5340. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions BuildPartial() {
  5341. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions returnMe = result;
  5342. result = null;
  5343. return returnMe;
  5344. }
  5345. public override Builder MergeFrom(pb::IMessage other) {
  5346. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) {
  5347. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) other);
  5348. } else {
  5349. base.MergeFrom(other);
  5350. return this;
  5351. }
  5352. }
  5353. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions other) {
  5354. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
  5355. this.MergeUnknownFields(other.UnknownFields);
  5356. return this;
  5357. }
  5358. public override Builder MergeFrom(pb::CodedInputStream input) {
  5359. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5360. }
  5361. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5362. pb::UnknownFieldSet.Builder unknownFields =
  5363. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5364. while (true) {
  5365. uint tag = input.ReadTag();
  5366. switch (tag) {
  5367. case 0:
  5368. this.UnknownFields = unknownFields.Build();
  5369. return this;
  5370. default: {
  5371. if (!ParseUnknownField(input, unknownFields,
  5372. extensionRegistry, tag)) {
  5373. this.UnknownFields = unknownFields.Build();
  5374. return this;
  5375. }
  5376. break;
  5377. }
  5378. }
  5379. }
  5380. }
  5381. }
  5382. }
  5383. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5384. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5385. public static OptionalGroup_extension DefaultInstance {
  5386. get { return defaultInstance; }
  5387. }
  5388. public override OptionalGroup_extension DefaultInstanceForType {
  5389. get { return defaultInstance; }
  5390. }
  5391. protected override OptionalGroup_extension ThisMessage {
  5392. get { return this; }
  5393. }
  5394. public static pbd::MessageDescriptor Descriptor {
  5395. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5396. }
  5397. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
  5398. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5399. }
  5400. // optional int32 a = 17;
  5401. private bool hasA;
  5402. private int a_ = 0;
  5403. public bool HasA {
  5404. get { return hasA; }
  5405. }
  5406. public int A {
  5407. get { return a_; }
  5408. }
  5409. public override bool IsInitialized {
  5410. get {
  5411. return true;
  5412. }
  5413. }
  5414. public override void WriteTo(pb::CodedOutputStream output) {
  5415. if (HasA) {
  5416. output.WriteInt32(17, A);
  5417. }
  5418. UnknownFields.WriteTo(output);
  5419. }
  5420. private int memoizedSerializedSize = -1;
  5421. public override int SerializedSize {
  5422. get {
  5423. int size = memoizedSerializedSize;
  5424. if (size != -1) return size;
  5425. size = 0;
  5426. if (HasA) {
  5427. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5428. }
  5429. size += UnknownFields.SerializedSize;
  5430. memoizedSerializedSize = size;
  5431. return size;
  5432. }
  5433. }
  5434. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5435. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5436. }
  5437. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data,
  5438. pb::ExtensionRegistry extensionRegistry) {
  5439. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5440. .BuildParsed();
  5441. }
  5442. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data) {
  5443. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5444. }
  5445. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data,
  5446. pb::ExtensionRegistry extensionRegistry) {
  5447. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5448. .BuildParsed();
  5449. }
  5450. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5451. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5452. }
  5453. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(
  5454. global::System.IO.Stream input,
  5455. pb::ExtensionRegistry extensionRegistry) {
  5456. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5457. .BuildParsed();
  5458. }
  5459. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5460. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5461. }
  5462. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5463. pb::ExtensionRegistry extensionRegistry) {
  5464. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5465. .BuildParsed();
  5466. }
  5467. public static Builder CreateBuilder() { return new Builder(); }
  5468. public override Builder CreateBuilderForType() { return new Builder(); }
  5469. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension prototype) {
  5470. return (Builder) new Builder().MergeFrom(prototype);
  5471. }
  5472. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, Builder> {
  5473. protected override Builder ThisBuilder {
  5474. get { return this; }
  5475. }
  5476. // Construct using global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.CreateBuilder()
  5477. internal Builder() {}
  5478. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5479. protected override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension MessageBeingBuilt {
  5480. get { return result; }
  5481. }
  5482. public override Builder Clear() {
  5483. result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5484. return this;
  5485. }
  5486. public override Builder Clone() {
  5487. return new Builder().MergeFrom(result);
  5488. }
  5489. public override pbd::MessageDescriptor DescriptorForType {
  5490. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
  5491. }
  5492. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension DefaultInstanceForType {
  5493. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
  5494. }
  5495. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension BuildPartial() {
  5496. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension returnMe = result;
  5497. result = null;
  5498. return returnMe;
  5499. }
  5500. public override Builder MergeFrom(pb::IMessage other) {
  5501. if (other is global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) {
  5502. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) other);
  5503. } else {
  5504. base.MergeFrom(other);
  5505. return this;
  5506. }
  5507. }
  5508. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension other) {
  5509. if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
  5510. if (other.HasA) {
  5511. A = other.A;
  5512. }
  5513. this.MergeUnknownFields(other.UnknownFields);
  5514. return this;
  5515. }
  5516. public override Builder MergeFrom(pb::CodedInputStream input) {
  5517. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5518. }
  5519. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5520. pb::UnknownFieldSet.Builder unknownFields =
  5521. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5522. while (true) {
  5523. uint tag = input.ReadTag();
  5524. switch (tag) {
  5525. case 0:
  5526. this.UnknownFields = unknownFields.Build();
  5527. return this;
  5528. default: {
  5529. if (!ParseUnknownField(input, unknownFields,
  5530. extensionRegistry, tag)) {
  5531. this.UnknownFields = unknownFields.Build();
  5532. return this;
  5533. }
  5534. break;
  5535. }
  5536. case 136: {
  5537. A = input.ReadInt32();
  5538. break;
  5539. }
  5540. }
  5541. }
  5542. }
  5543. // optional int32 a = 17;
  5544. public bool HasA {
  5545. get { return result.HasA; }
  5546. }
  5547. public int A {
  5548. get { return result.A; }
  5549. set { SetA(value); }
  5550. }
  5551. public Builder SetA(int value) {
  5552. result.hasA = true;
  5553. result.a_ = value;
  5554. return this;
  5555. }
  5556. public Builder ClearA() {
  5557. result.hasA = false;
  5558. result.a_ = 0;
  5559. return this;
  5560. }
  5561. }
  5562. }
  5563. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5564. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5565. public static RepeatedGroup_extension DefaultInstance {
  5566. get { return defaultInstance; }
  5567. }
  5568. public override RepeatedGroup_extension DefaultInstanceForType {
  5569. get { return defaultInstance; }
  5570. }
  5571. protected override RepeatedGroup_extension ThisMessage {
  5572. get { return this; }
  5573. }
  5574. public static pbd::MessageDescriptor Descriptor {
  5575. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5576. }
  5577. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
  5578. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5579. }
  5580. // optional int32 a = 47;
  5581. private bool hasA;
  5582. private int a_ = 0;
  5583. public bool HasA {
  5584. get { return hasA; }
  5585. }
  5586. public int A {
  5587. get { return a_; }
  5588. }
  5589. public override bool IsInitialized {
  5590. get {
  5591. return true;
  5592. }
  5593. }
  5594. public override void WriteTo(pb::CodedOutputStream output) {
  5595. if (HasA) {
  5596. output.WriteInt32(47, A);
  5597. }
  5598. UnknownFields.WriteTo(output);
  5599. }
  5600. private int memoizedSerializedSize = -1;
  5601. public override int SerializedSize {
  5602. get {
  5603. int size = memoizedSerializedSize;
  5604. if (size != -1) return size;
  5605. size = 0;
  5606. if (HasA) {
  5607. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5608. }
  5609. size += UnknownFields.SerializedSize;
  5610. memoizedSerializedSize = size;
  5611. return size;
  5612. }
  5613. }
  5614. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5615. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5616. }
  5617. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5618. pb::ExtensionRegistry extensionRegistry) {
  5619. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5620. .BuildParsed();
  5621. }
  5622. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data) {
  5623. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5624. }
  5625. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data,
  5626. pb::ExtensionRegistry extensionRegistry) {
  5627. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5628. .BuildParsed();
  5629. }
  5630. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5631. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5632. }
  5633. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(
  5634. global::System.IO.Stream input,
  5635. pb::ExtensionRegistry extensionRegistry) {
  5636. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5637. .BuildParsed();
  5638. }
  5639. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5640. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5641. }
  5642. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5643. pb::ExtensionRegistry extensionRegistry) {
  5644. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5645. .BuildParsed();
  5646. }
  5647. public static Builder CreateBuilder() { return new Builder(); }
  5648. public override Builder CreateBuilderForType() { return new Builder(); }
  5649. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension prototype) {
  5650. return (Builder) new Builder().MergeFrom(prototype);
  5651. }
  5652. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, Builder> {
  5653. protected override Builder ThisBuilder {
  5654. get { return this; }
  5655. }
  5656. // Construct using global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.CreateBuilder()
  5657. internal Builder() {}
  5658. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5659. protected override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension MessageBeingBuilt {
  5660. get { return result; }
  5661. }
  5662. public override Builder Clear() {
  5663. result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5664. return this;
  5665. }
  5666. public override Builder Clone() {
  5667. return new Builder().MergeFrom(result);
  5668. }
  5669. public override pbd::MessageDescriptor DescriptorForType {
  5670. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
  5671. }
  5672. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension DefaultInstanceForType {
  5673. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
  5674. }
  5675. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension BuildPartial() {
  5676. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension returnMe = result;
  5677. result = null;
  5678. return returnMe;
  5679. }
  5680. public override Builder MergeFrom(pb::IMessage other) {
  5681. if (other is global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) {
  5682. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) other);
  5683. } else {
  5684. base.MergeFrom(other);
  5685. return this;
  5686. }
  5687. }
  5688. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension other) {
  5689. if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
  5690. if (other.HasA) {
  5691. A = other.A;
  5692. }
  5693. this.MergeUnknownFields(other.UnknownFields);
  5694. return this;
  5695. }
  5696. public override Builder MergeFrom(pb::CodedInputStream input) {
  5697. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5698. }
  5699. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5700. pb::UnknownFieldSet.Builder unknownFields =
  5701. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5702. while (true) {
  5703. uint tag = input.ReadTag();
  5704. switch (tag) {
  5705. case 0:
  5706. this.UnknownFields = unknownFields.Build();
  5707. return this;
  5708. default: {
  5709. if (!ParseUnknownField(input, unknownFields,
  5710. extensionRegistry, tag)) {
  5711. this.UnknownFields = unknownFields.Build();
  5712. return this;
  5713. }
  5714. break;
  5715. }
  5716. case 376: {
  5717. A = input.ReadInt32();
  5718. break;
  5719. }
  5720. }
  5721. }
  5722. }
  5723. // optional int32 a = 47;
  5724. public bool HasA {
  5725. get { return result.HasA; }
  5726. }
  5727. public int A {
  5728. get { return result.A; }
  5729. set { SetA(value); }
  5730. }
  5731. public Builder SetA(int value) {
  5732. result.hasA = true;
  5733. result.a_ = value;
  5734. return this;
  5735. }
  5736. public Builder ClearA() {
  5737. result.hasA = false;
  5738. result.a_ = 0;
  5739. return this;
  5740. }
  5741. }
  5742. }
  5743. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5744. private static readonly TestRequired defaultInstance = new TestRequired();
  5745. public static TestRequired DefaultInstance {
  5746. get { return defaultInstance; }
  5747. }
  5748. public override TestRequired DefaultInstanceForType {
  5749. get { return defaultInstance; }
  5750. }
  5751. protected override TestRequired ThisMessage {
  5752. get { return this; }
  5753. }
  5754. public static pbd::MessageDescriptor Descriptor {
  5755. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5756. }
  5757. protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
  5758. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5759. }
  5760. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single =
  5761. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5762. public static readonly
  5763. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi =
  5764. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5765. #region Nested types
  5766. public static class Types {
  5767. }
  5768. #endregion
  5769. // required int32 a = 1;
  5770. private bool hasA;
  5771. private int a_ = 0;
  5772. public bool HasA {
  5773. get { return hasA; }
  5774. }
  5775. public int A {
  5776. get { return a_; }
  5777. }
  5778. // optional int32 dummy2 = 2;
  5779. private bool hasDummy2;
  5780. private int dummy2_ = 0;
  5781. public bool HasDummy2 {
  5782. get { return hasDummy2; }
  5783. }
  5784. public int Dummy2 {
  5785. get { return dummy2_; }
  5786. }
  5787. // required int32 b = 3;
  5788. private bool hasB;
  5789. private int b_ = 0;
  5790. public bool HasB {
  5791. get { return hasB; }
  5792. }
  5793. public int B {
  5794. get { return b_; }
  5795. }
  5796. // optional int32 dummy4 = 4;
  5797. private bool hasDummy4;
  5798. private int dummy4_ = 0;
  5799. public bool HasDummy4 {
  5800. get { return hasDummy4; }
  5801. }
  5802. public int Dummy4 {
  5803. get { return dummy4_; }
  5804. }
  5805. // optional int32 dummy5 = 5;
  5806. private bool hasDummy5;
  5807. private int dummy5_ = 0;
  5808. public bool HasDummy5 {
  5809. get { return hasDummy5; }
  5810. }
  5811. public int Dummy5 {
  5812. get { return dummy5_; }
  5813. }
  5814. // optional int32 dummy6 = 6;
  5815. private bool hasDummy6;
  5816. private int dummy6_ = 0;
  5817. public bool HasDummy6 {
  5818. get { return hasDummy6; }
  5819. }
  5820. public int Dummy6 {
  5821. get { return dummy6_; }
  5822. }
  5823. // optional int32 dummy7 = 7;
  5824. private bool hasDummy7;
  5825. private int dummy7_ = 0;
  5826. public bool HasDummy7 {
  5827. get { return hasDummy7; }
  5828. }
  5829. public int Dummy7 {
  5830. get { return dummy7_; }
  5831. }
  5832. // optional int32 dummy8 = 8;
  5833. private bool hasDummy8;
  5834. private int dummy8_ = 0;
  5835. public bool HasDummy8 {
  5836. get { return hasDummy8; }
  5837. }
  5838. public int Dummy8 {
  5839. get { return dummy8_; }
  5840. }
  5841. // optional int32 dummy9 = 9;
  5842. private bool hasDummy9;
  5843. private int dummy9_ = 0;
  5844. public bool HasDummy9 {
  5845. get { return hasDummy9; }
  5846. }
  5847. public int Dummy9 {
  5848. get { return dummy9_; }
  5849. }
  5850. // optional int32 dummy10 = 10;
  5851. private bool hasDummy10;
  5852. private int dummy10_ = 0;
  5853. public bool HasDummy10 {
  5854. get { return hasDummy10; }
  5855. }
  5856. public int Dummy10 {
  5857. get { return dummy10_; }
  5858. }
  5859. // optional int32 dummy11 = 11;
  5860. private bool hasDummy11;
  5861. private int dummy11_ = 0;
  5862. public bool HasDummy11 {
  5863. get { return hasDummy11; }
  5864. }
  5865. public int Dummy11 {
  5866. get { return dummy11_; }
  5867. }
  5868. // optional int32 dummy12 = 12;
  5869. private bool hasDummy12;
  5870. private int dummy12_ = 0;
  5871. public bool HasDummy12 {
  5872. get { return hasDummy12; }
  5873. }
  5874. public int Dummy12 {
  5875. get { return dummy12_; }
  5876. }
  5877. // optional int32 dummy13 = 13;
  5878. private bool hasDummy13;
  5879. private int dummy13_ = 0;
  5880. public bool HasDummy13 {
  5881. get { return hasDummy13; }
  5882. }
  5883. public int Dummy13 {
  5884. get { return dummy13_; }
  5885. }
  5886. // optional int32 dummy14 = 14;
  5887. private bool hasDummy14;
  5888. private int dummy14_ = 0;
  5889. public bool HasDummy14 {
  5890. get { return hasDummy14; }
  5891. }
  5892. public int Dummy14 {
  5893. get { return dummy14_; }
  5894. }
  5895. // optional int32 dummy15 = 15;
  5896. private bool hasDummy15;
  5897. private int dummy15_ = 0;
  5898. public bool HasDummy15 {
  5899. get { return hasDummy15; }
  5900. }
  5901. public int Dummy15 {
  5902. get { return dummy15_; }
  5903. }
  5904. // optional int32 dummy16 = 16;
  5905. private bool hasDummy16;
  5906. private int dummy16_ = 0;
  5907. public bool HasDummy16 {
  5908. get { return hasDummy16; }
  5909. }
  5910. public int Dummy16 {
  5911. get { return dummy16_; }
  5912. }
  5913. // optional int32 dummy17 = 17;
  5914. private bool hasDummy17;
  5915. private int dummy17_ = 0;
  5916. public bool HasDummy17 {
  5917. get { return hasDummy17; }
  5918. }
  5919. public int Dummy17 {
  5920. get { return dummy17_; }
  5921. }
  5922. // optional int32 dummy18 = 18;
  5923. private bool hasDummy18;
  5924. private int dummy18_ = 0;
  5925. public bool HasDummy18 {
  5926. get { return hasDummy18; }
  5927. }
  5928. public int Dummy18 {
  5929. get { return dummy18_; }
  5930. }
  5931. // optional int32 dummy19 = 19;
  5932. private bool hasDummy19;
  5933. private int dummy19_ = 0;
  5934. public bool HasDummy19 {
  5935. get { return hasDummy19; }
  5936. }
  5937. public int Dummy19 {
  5938. get { return dummy19_; }
  5939. }
  5940. // optional int32 dummy20 = 20;
  5941. private bool hasDummy20;
  5942. private int dummy20_ = 0;
  5943. public bool HasDummy20 {
  5944. get { return hasDummy20; }
  5945. }
  5946. public int Dummy20 {
  5947. get { return dummy20_; }
  5948. }
  5949. // optional int32 dummy21 = 21;
  5950. private bool hasDummy21;
  5951. private int dummy21_ = 0;
  5952. public bool HasDummy21 {
  5953. get { return hasDummy21; }
  5954. }
  5955. public int Dummy21 {
  5956. get { return dummy21_; }
  5957. }
  5958. // optional int32 dummy22 = 22;
  5959. private bool hasDummy22;
  5960. private int dummy22_ = 0;
  5961. public bool HasDummy22 {
  5962. get { return hasDummy22; }
  5963. }
  5964. public int Dummy22 {
  5965. get { return dummy22_; }
  5966. }
  5967. // optional int32 dummy23 = 23;
  5968. private bool hasDummy23;
  5969. private int dummy23_ = 0;
  5970. public bool HasDummy23 {
  5971. get { return hasDummy23; }
  5972. }
  5973. public int Dummy23 {
  5974. get { return dummy23_; }
  5975. }
  5976. // optional int32 dummy24 = 24;
  5977. private bool hasDummy24;
  5978. private int dummy24_ = 0;
  5979. public bool HasDummy24 {
  5980. get { return hasDummy24; }
  5981. }
  5982. public int Dummy24 {
  5983. get { return dummy24_; }
  5984. }
  5985. // optional int32 dummy25 = 25;
  5986. private bool hasDummy25;
  5987. private int dummy25_ = 0;
  5988. public bool HasDummy25 {
  5989. get { return hasDummy25; }
  5990. }
  5991. public int Dummy25 {
  5992. get { return dummy25_; }
  5993. }
  5994. // optional int32 dummy26 = 26;
  5995. private bool hasDummy26;
  5996. private int dummy26_ = 0;
  5997. public bool HasDummy26 {
  5998. get { return hasDummy26; }
  5999. }
  6000. public int Dummy26 {
  6001. get { return dummy26_; }
  6002. }
  6003. // optional int32 dummy27 = 27;
  6004. private bool hasDummy27;
  6005. private int dummy27_ = 0;
  6006. public bool HasDummy27 {
  6007. get { return hasDummy27; }
  6008. }
  6009. public int Dummy27 {
  6010. get { return dummy27_; }
  6011. }
  6012. // optional int32 dummy28 = 28;
  6013. private bool hasDummy28;
  6014. private int dummy28_ = 0;
  6015. public bool HasDummy28 {
  6016. get { return hasDummy28; }
  6017. }
  6018. public int Dummy28 {
  6019. get { return dummy28_; }
  6020. }
  6021. // optional int32 dummy29 = 29;
  6022. private bool hasDummy29;
  6023. private int dummy29_ = 0;
  6024. public bool HasDummy29 {
  6025. get { return hasDummy29; }
  6026. }
  6027. public int Dummy29 {
  6028. get { return dummy29_; }
  6029. }
  6030. // optional int32 dummy30 = 30;
  6031. private bool hasDummy30;
  6032. private int dummy30_ = 0;
  6033. public bool HasDummy30 {
  6034. get { return hasDummy30; }
  6035. }
  6036. public int Dummy30 {
  6037. get { return dummy30_; }
  6038. }
  6039. // optional int32 dummy31 = 31;
  6040. private bool hasDummy31;
  6041. private int dummy31_ = 0;
  6042. public bool HasDummy31 {
  6043. get { return hasDummy31; }
  6044. }
  6045. public int Dummy31 {
  6046. get { return dummy31_; }
  6047. }
  6048. // optional int32 dummy32 = 32;
  6049. private bool hasDummy32;
  6050. private int dummy32_ = 0;
  6051. public bool HasDummy32 {
  6052. get { return hasDummy32; }
  6053. }
  6054. public int Dummy32 {
  6055. get { return dummy32_; }
  6056. }
  6057. // required int32 c = 33;
  6058. private bool hasC;
  6059. private int c_ = 0;
  6060. public bool HasC {
  6061. get { return hasC; }
  6062. }
  6063. public int C {
  6064. get { return c_; }
  6065. }
  6066. public override bool IsInitialized {
  6067. get {
  6068. if (!hasA) return false;
  6069. if (!hasB) return false;
  6070. if (!hasC) return false;
  6071. return true;
  6072. }
  6073. }
  6074. public override void WriteTo(pb::CodedOutputStream output) {
  6075. if (HasA) {
  6076. output.WriteInt32(1, A);
  6077. }
  6078. if (HasDummy2) {
  6079. output.WriteInt32(2, Dummy2);
  6080. }
  6081. if (HasB) {
  6082. output.WriteInt32(3, B);
  6083. }
  6084. if (HasDummy4) {
  6085. output.WriteInt32(4, Dummy4);
  6086. }
  6087. if (HasDummy5) {
  6088. output.WriteInt32(5, Dummy5);
  6089. }
  6090. if (HasDummy6) {
  6091. output.WriteInt32(6, Dummy6);
  6092. }
  6093. if (HasDummy7) {
  6094. output.WriteInt32(7, Dummy7);
  6095. }
  6096. if (HasDummy8) {
  6097. output.WriteInt32(8, Dummy8);
  6098. }
  6099. if (HasDummy9) {
  6100. output.WriteInt32(9, Dummy9);
  6101. }
  6102. if (HasDummy10) {
  6103. output.WriteInt32(10, Dummy10);
  6104. }
  6105. if (HasDummy11) {
  6106. output.WriteInt32(11, Dummy11);
  6107. }
  6108. if (HasDummy12) {
  6109. output.WriteInt32(12, Dummy12);
  6110. }
  6111. if (HasDummy13) {
  6112. output.WriteInt32(13, Dummy13);
  6113. }
  6114. if (HasDummy14) {
  6115. output.WriteInt32(14, Dummy14);
  6116. }
  6117. if (HasDummy15) {
  6118. output.WriteInt32(15, Dummy15);
  6119. }
  6120. if (HasDummy16) {
  6121. output.WriteInt32(16, Dummy16);
  6122. }
  6123. if (HasDummy17) {
  6124. output.WriteInt32(17, Dummy17);
  6125. }
  6126. if (HasDummy18) {
  6127. output.WriteInt32(18, Dummy18);
  6128. }
  6129. if (HasDummy19) {
  6130. output.WriteInt32(19, Dummy19);
  6131. }
  6132. if (HasDummy20) {
  6133. output.WriteInt32(20, Dummy20);
  6134. }
  6135. if (HasDummy21) {
  6136. output.WriteInt32(21, Dummy21);
  6137. }
  6138. if (HasDummy22) {
  6139. output.WriteInt32(22, Dummy22);
  6140. }
  6141. if (HasDummy23) {
  6142. output.WriteInt32(23, Dummy23);
  6143. }
  6144. if (HasDummy24) {
  6145. output.WriteInt32(24, Dummy24);
  6146. }
  6147. if (HasDummy25) {
  6148. output.WriteInt32(25, Dummy25);
  6149. }
  6150. if (HasDummy26) {
  6151. output.WriteInt32(26, Dummy26);
  6152. }
  6153. if (HasDummy27) {
  6154. output.WriteInt32(27, Dummy27);
  6155. }
  6156. if (HasDummy28) {
  6157. output.WriteInt32(28, Dummy28);
  6158. }
  6159. if (HasDummy29) {
  6160. output.WriteInt32(29, Dummy29);
  6161. }
  6162. if (HasDummy30) {
  6163. output.WriteInt32(30, Dummy30);
  6164. }
  6165. if (HasDummy31) {
  6166. output.WriteInt32(31, Dummy31);
  6167. }
  6168. if (HasDummy32) {
  6169. output.WriteInt32(32, Dummy32);
  6170. }
  6171. if (HasC) {
  6172. output.WriteInt32(33, C);
  6173. }
  6174. UnknownFields.WriteTo(output);
  6175. }
  6176. private int memoizedSerializedSize = -1;
  6177. public override int SerializedSize {
  6178. get {
  6179. int size = memoizedSerializedSize;
  6180. if (size != -1) return size;
  6181. size = 0;
  6182. if (HasA) {
  6183. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6184. }
  6185. if (HasDummy2) {
  6186. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6187. }
  6188. if (HasB) {
  6189. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6190. }
  6191. if (HasDummy4) {
  6192. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6193. }
  6194. if (HasDummy5) {
  6195. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6196. }
  6197. if (HasDummy6) {
  6198. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6199. }
  6200. if (HasDummy7) {
  6201. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6202. }
  6203. if (HasDummy8) {
  6204. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6205. }
  6206. if (HasDummy9) {
  6207. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6208. }
  6209. if (HasDummy10) {
  6210. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6211. }
  6212. if (HasDummy11) {
  6213. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6214. }
  6215. if (HasDummy12) {
  6216. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6217. }
  6218. if (HasDummy13) {
  6219. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6220. }
  6221. if (HasDummy14) {
  6222. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6223. }
  6224. if (HasDummy15) {
  6225. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6226. }
  6227. if (HasDummy16) {
  6228. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6229. }
  6230. if (HasDummy17) {
  6231. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6232. }
  6233. if (HasDummy18) {
  6234. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6235. }
  6236. if (HasDummy19) {
  6237. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6238. }
  6239. if (HasDummy20) {
  6240. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6241. }
  6242. if (HasDummy21) {
  6243. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6244. }
  6245. if (HasDummy22) {
  6246. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6247. }
  6248. if (HasDummy23) {
  6249. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6250. }
  6251. if (HasDummy24) {
  6252. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6253. }
  6254. if (HasDummy25) {
  6255. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6256. }
  6257. if (HasDummy26) {
  6258. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6259. }
  6260. if (HasDummy27) {
  6261. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6262. }
  6263. if (HasDummy28) {
  6264. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6265. }
  6266. if (HasDummy29) {
  6267. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6268. }
  6269. if (HasDummy30) {
  6270. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6271. }
  6272. if (HasDummy31) {
  6273. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6274. }
  6275. if (HasDummy32) {
  6276. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6277. }
  6278. if (HasC) {
  6279. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6280. }
  6281. size += UnknownFields.SerializedSize;
  6282. memoizedSerializedSize = size;
  6283. return size;
  6284. }
  6285. }
  6286. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data) {
  6287. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6288. }
  6289. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data,
  6290. pb::ExtensionRegistry extensionRegistry) {
  6291. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6292. .BuildParsed();
  6293. }
  6294. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data) {
  6295. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6296. }
  6297. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data,
  6298. pb::ExtensionRegistry extensionRegistry) {
  6299. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6300. .BuildParsed();
  6301. }
  6302. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(global::System.IO.Stream input) {
  6303. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6304. }
  6305. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(
  6306. global::System.IO.Stream input,
  6307. pb::ExtensionRegistry extensionRegistry) {
  6308. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6309. .BuildParsed();
  6310. }
  6311. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input) {
  6312. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6313. }
  6314. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input,
  6315. pb::ExtensionRegistry extensionRegistry) {
  6316. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6317. .BuildParsed();
  6318. }
  6319. public static Builder CreateBuilder() { return new Builder(); }
  6320. public override Builder CreateBuilderForType() { return new Builder(); }
  6321. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequired prototype) {
  6322. return (Builder) new Builder().MergeFrom(prototype);
  6323. }
  6324. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequired, Builder> {
  6325. protected override Builder ThisBuilder {
  6326. get { return this; }
  6327. }
  6328. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder()
  6329. internal Builder() {}
  6330. global::Google.ProtocolBuffers.TestProtos.TestRequired result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6331. protected override global::Google.ProtocolBuffers.TestProtos.TestRequired MessageBeingBuilt {
  6332. get { return result; }
  6333. }
  6334. public override Builder Clear() {
  6335. result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6336. return this;
  6337. }
  6338. public override Builder Clone() {
  6339. return new Builder().MergeFrom(result);
  6340. }
  6341. public override pbd::MessageDescriptor DescriptorForType {
  6342. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
  6343. }
  6344. public override global::Google.ProtocolBuffers.TestProtos.TestRequired DefaultInstanceForType {
  6345. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  6346. }
  6347. public override global::Google.ProtocolBuffers.TestProtos.TestRequired BuildPartial() {
  6348. global::Google.ProtocolBuffers.TestProtos.TestRequired returnMe = result;
  6349. result = null;
  6350. return returnMe;
  6351. }
  6352. public override Builder MergeFrom(pb::IMessage other) {
  6353. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequired) {
  6354. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequired) other);
  6355. } else {
  6356. base.MergeFrom(other);
  6357. return this;
  6358. }
  6359. }
  6360. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequired other) {
  6361. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
  6362. if (other.HasA) {
  6363. A = other.A;
  6364. }
  6365. if (other.HasDummy2) {
  6366. Dummy2 = other.Dummy2;
  6367. }
  6368. if (other.HasB) {
  6369. B = other.B;
  6370. }
  6371. if (other.HasDummy4) {
  6372. Dummy4 = other.Dummy4;
  6373. }
  6374. if (other.HasDummy5) {
  6375. Dummy5 = other.Dummy5;
  6376. }
  6377. if (other.HasDummy6) {
  6378. Dummy6 = other.Dummy6;
  6379. }
  6380. if (other.HasDummy7) {
  6381. Dummy7 = other.Dummy7;
  6382. }
  6383. if (other.HasDummy8) {
  6384. Dummy8 = other.Dummy8;
  6385. }
  6386. if (other.HasDummy9) {
  6387. Dummy9 = other.Dummy9;
  6388. }
  6389. if (other.HasDummy10) {
  6390. Dummy10 = other.Dummy10;
  6391. }
  6392. if (other.HasDummy11) {
  6393. Dummy11 = other.Dummy11;
  6394. }
  6395. if (other.HasDummy12) {
  6396. Dummy12 = other.Dummy12;
  6397. }
  6398. if (other.HasDummy13) {
  6399. Dummy13 = other.Dummy13;
  6400. }
  6401. if (other.HasDummy14) {
  6402. Dummy14 = other.Dummy14;
  6403. }
  6404. if (other.HasDummy15) {
  6405. Dummy15 = other.Dummy15;
  6406. }
  6407. if (other.HasDummy16) {
  6408. Dummy16 = other.Dummy16;
  6409. }
  6410. if (other.HasDummy17) {
  6411. Dummy17 = other.Dummy17;
  6412. }
  6413. if (other.HasDummy18) {
  6414. Dummy18 = other.Dummy18;
  6415. }
  6416. if (other.HasDummy19) {
  6417. Dummy19 = other.Dummy19;
  6418. }
  6419. if (other.HasDummy20) {
  6420. Dummy20 = other.Dummy20;
  6421. }
  6422. if (other.HasDummy21) {
  6423. Dummy21 = other.Dummy21;
  6424. }
  6425. if (other.HasDummy22) {
  6426. Dummy22 = other.Dummy22;
  6427. }
  6428. if (other.HasDummy23) {
  6429. Dummy23 = other.Dummy23;
  6430. }
  6431. if (other.HasDummy24) {
  6432. Dummy24 = other.Dummy24;
  6433. }
  6434. if (other.HasDummy25) {
  6435. Dummy25 = other.Dummy25;
  6436. }
  6437. if (other.HasDummy26) {
  6438. Dummy26 = other.Dummy26;
  6439. }
  6440. if (other.HasDummy27) {
  6441. Dummy27 = other.Dummy27;
  6442. }
  6443. if (other.HasDummy28) {
  6444. Dummy28 = other.Dummy28;
  6445. }
  6446. if (other.HasDummy29) {
  6447. Dummy29 = other.Dummy29;
  6448. }
  6449. if (other.HasDummy30) {
  6450. Dummy30 = other.Dummy30;
  6451. }
  6452. if (other.HasDummy31) {
  6453. Dummy31 = other.Dummy31;
  6454. }
  6455. if (other.HasDummy32) {
  6456. Dummy32 = other.Dummy32;
  6457. }
  6458. if (other.HasC) {
  6459. C = other.C;
  6460. }
  6461. this.MergeUnknownFields(other.UnknownFields);
  6462. return this;
  6463. }
  6464. public override Builder MergeFrom(pb::CodedInputStream input) {
  6465. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6466. }
  6467. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6468. pb::UnknownFieldSet.Builder unknownFields =
  6469. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6470. while (true) {
  6471. uint tag = input.ReadTag();
  6472. switch (tag) {
  6473. case 0:
  6474. this.UnknownFields = unknownFields.Build();
  6475. return this;
  6476. default: {
  6477. if (!ParseUnknownField(input, unknownFields,
  6478. extensionRegistry, tag)) {
  6479. this.UnknownFields = unknownFields.Build();
  6480. return this;
  6481. }
  6482. break;
  6483. }
  6484. case 8: {
  6485. A = input.ReadInt32();
  6486. break;
  6487. }
  6488. case 16: {
  6489. Dummy2 = input.ReadInt32();
  6490. break;
  6491. }
  6492. case 24: {
  6493. B = input.ReadInt32();
  6494. break;
  6495. }
  6496. case 32: {
  6497. Dummy4 = input.ReadInt32();
  6498. break;
  6499. }
  6500. case 40: {
  6501. Dummy5 = input.ReadInt32();
  6502. break;
  6503. }
  6504. case 48: {
  6505. Dummy6 = input.ReadInt32();
  6506. break;
  6507. }
  6508. case 56: {
  6509. Dummy7 = input.ReadInt32();
  6510. break;
  6511. }
  6512. case 64: {
  6513. Dummy8 = input.ReadInt32();
  6514. break;
  6515. }
  6516. case 72: {
  6517. Dummy9 = input.ReadInt32();
  6518. break;
  6519. }
  6520. case 80: {
  6521. Dummy10 = input.ReadInt32();
  6522. break;
  6523. }
  6524. case 88: {
  6525. Dummy11 = input.ReadInt32();
  6526. break;
  6527. }
  6528. case 96: {
  6529. Dummy12 = input.ReadInt32();
  6530. break;
  6531. }
  6532. case 104: {
  6533. Dummy13 = input.ReadInt32();
  6534. break;
  6535. }
  6536. case 112: {
  6537. Dummy14 = input.ReadInt32();
  6538. break;
  6539. }
  6540. case 120: {
  6541. Dummy15 = input.ReadInt32();
  6542. break;
  6543. }
  6544. case 128: {
  6545. Dummy16 = input.ReadInt32();
  6546. break;
  6547. }
  6548. case 136: {
  6549. Dummy17 = input.ReadInt32();
  6550. break;
  6551. }
  6552. case 144: {
  6553. Dummy18 = input.ReadInt32();
  6554. break;
  6555. }
  6556. case 152: {
  6557. Dummy19 = input.ReadInt32();
  6558. break;
  6559. }
  6560. case 160: {
  6561. Dummy20 = input.ReadInt32();
  6562. break;
  6563. }
  6564. case 168: {
  6565. Dummy21 = input.ReadInt32();
  6566. break;
  6567. }
  6568. case 176: {
  6569. Dummy22 = input.ReadInt32();
  6570. break;
  6571. }
  6572. case 184: {
  6573. Dummy23 = input.ReadInt32();
  6574. break;
  6575. }
  6576. case 192: {
  6577. Dummy24 = input.ReadInt32();
  6578. break;
  6579. }
  6580. case 200: {
  6581. Dummy25 = input.ReadInt32();
  6582. break;
  6583. }
  6584. case 208: {
  6585. Dummy26 = input.ReadInt32();
  6586. break;
  6587. }
  6588. case 216: {
  6589. Dummy27 = input.ReadInt32();
  6590. break;
  6591. }
  6592. case 224: {
  6593. Dummy28 = input.ReadInt32();
  6594. break;
  6595. }
  6596. case 232: {
  6597. Dummy29 = input.ReadInt32();
  6598. break;
  6599. }
  6600. case 240: {
  6601. Dummy30 = input.ReadInt32();
  6602. break;
  6603. }
  6604. case 248: {
  6605. Dummy31 = input.ReadInt32();
  6606. break;
  6607. }
  6608. case 256: {
  6609. Dummy32 = input.ReadInt32();
  6610. break;
  6611. }
  6612. case 264: {
  6613. C = input.ReadInt32();
  6614. break;
  6615. }
  6616. }
  6617. }
  6618. }
  6619. // required int32 a = 1;
  6620. public bool HasA {
  6621. get { return result.HasA; }
  6622. }
  6623. public int A {
  6624. get { return result.A; }
  6625. set { SetA(value); }
  6626. }
  6627. public Builder SetA(int value) {
  6628. result.hasA = true;
  6629. result.a_ = value;
  6630. return this;
  6631. }
  6632. public Builder ClearA() {
  6633. result.hasA = false;
  6634. result.a_ = 0;
  6635. return this;
  6636. }
  6637. // optional int32 dummy2 = 2;
  6638. public bool HasDummy2 {
  6639. get { return result.HasDummy2; }
  6640. }
  6641. public int Dummy2 {
  6642. get { return result.Dummy2; }
  6643. set { SetDummy2(value); }
  6644. }
  6645. public Builder SetDummy2(int value) {
  6646. result.hasDummy2 = true;
  6647. result.dummy2_ = value;
  6648. return this;
  6649. }
  6650. public Builder ClearDummy2() {
  6651. result.hasDummy2 = false;
  6652. result.dummy2_ = 0;
  6653. return this;
  6654. }
  6655. // required int32 b = 3;
  6656. public bool HasB {
  6657. get { return result.HasB; }
  6658. }
  6659. public int B {
  6660. get { return result.B; }
  6661. set { SetB(value); }
  6662. }
  6663. public Builder SetB(int value) {
  6664. result.hasB = true;
  6665. result.b_ = value;
  6666. return this;
  6667. }
  6668. public Builder ClearB() {
  6669. result.hasB = false;
  6670. result.b_ = 0;
  6671. return this;
  6672. }
  6673. // optional int32 dummy4 = 4;
  6674. public bool HasDummy4 {
  6675. get { return result.HasDummy4; }
  6676. }
  6677. public int Dummy4 {
  6678. get { return result.Dummy4; }
  6679. set { SetDummy4(value); }
  6680. }
  6681. public Builder SetDummy4(int value) {
  6682. result.hasDummy4 = true;
  6683. result.dummy4_ = value;
  6684. return this;
  6685. }
  6686. public Builder ClearDummy4() {
  6687. result.hasDummy4 = false;
  6688. result.dummy4_ = 0;
  6689. return this;
  6690. }
  6691. // optional int32 dummy5 = 5;
  6692. public bool HasDummy5 {
  6693. get { return result.HasDummy5; }
  6694. }
  6695. public int Dummy5 {
  6696. get { return result.Dummy5; }
  6697. set { SetDummy5(value); }
  6698. }
  6699. public Builder SetDummy5(int value) {
  6700. result.hasDummy5 = true;
  6701. result.dummy5_ = value;
  6702. return this;
  6703. }
  6704. public Builder ClearDummy5() {
  6705. result.hasDummy5 = false;
  6706. result.dummy5_ = 0;
  6707. return this;
  6708. }
  6709. // optional int32 dummy6 = 6;
  6710. public bool HasDummy6 {
  6711. get { return result.HasDummy6; }
  6712. }
  6713. public int Dummy6 {
  6714. get { return result.Dummy6; }
  6715. set { SetDummy6(value); }
  6716. }
  6717. public Builder SetDummy6(int value) {
  6718. result.hasDummy6 = true;
  6719. result.dummy6_ = value;
  6720. return this;
  6721. }
  6722. public Builder ClearDummy6() {
  6723. result.hasDummy6 = false;
  6724. result.dummy6_ = 0;
  6725. return this;
  6726. }
  6727. // optional int32 dummy7 = 7;
  6728. public bool HasDummy7 {
  6729. get { return result.HasDummy7; }
  6730. }
  6731. public int Dummy7 {
  6732. get { return result.Dummy7; }
  6733. set { SetDummy7(value); }
  6734. }
  6735. public Builder SetDummy7(int value) {
  6736. result.hasDummy7 = true;
  6737. result.dummy7_ = value;
  6738. return this;
  6739. }
  6740. public Builder ClearDummy7() {
  6741. result.hasDummy7 = false;
  6742. result.dummy7_ = 0;
  6743. return this;
  6744. }
  6745. // optional int32 dummy8 = 8;
  6746. public bool HasDummy8 {
  6747. get { return result.HasDummy8; }
  6748. }
  6749. public int Dummy8 {
  6750. get { return result.Dummy8; }
  6751. set { SetDummy8(value); }
  6752. }
  6753. public Builder SetDummy8(int value) {
  6754. result.hasDummy8 = true;
  6755. result.dummy8_ = value;
  6756. return this;
  6757. }
  6758. public Builder ClearDummy8() {
  6759. result.hasDummy8 = false;
  6760. result.dummy8_ = 0;
  6761. return this;
  6762. }
  6763. // optional int32 dummy9 = 9;
  6764. public bool HasDummy9 {
  6765. get { return result.HasDummy9; }
  6766. }
  6767. public int Dummy9 {
  6768. get { return result.Dummy9; }
  6769. set { SetDummy9(value); }
  6770. }
  6771. public Builder SetDummy9(int value) {
  6772. result.hasDummy9 = true;
  6773. result.dummy9_ = value;
  6774. return this;
  6775. }
  6776. public Builder ClearDummy9() {
  6777. result.hasDummy9 = false;
  6778. result.dummy9_ = 0;
  6779. return this;
  6780. }
  6781. // optional int32 dummy10 = 10;
  6782. public bool HasDummy10 {
  6783. get { return result.HasDummy10; }
  6784. }
  6785. public int Dummy10 {
  6786. get { return result.Dummy10; }
  6787. set { SetDummy10(value); }
  6788. }
  6789. public Builder SetDummy10(int value) {
  6790. result.hasDummy10 = true;
  6791. result.dummy10_ = value;
  6792. return this;
  6793. }
  6794. public Builder ClearDummy10() {
  6795. result.hasDummy10 = false;
  6796. result.dummy10_ = 0;
  6797. return this;
  6798. }
  6799. // optional int32 dummy11 = 11;
  6800. public bool HasDummy11 {
  6801. get { return result.HasDummy11; }
  6802. }
  6803. public int Dummy11 {
  6804. get { return result.Dummy11; }
  6805. set { SetDummy11(value); }
  6806. }
  6807. public Builder SetDummy11(int value) {
  6808. result.hasDummy11 = true;
  6809. result.dummy11_ = value;
  6810. return this;
  6811. }
  6812. public Builder ClearDummy11() {
  6813. result.hasDummy11 = false;
  6814. result.dummy11_ = 0;
  6815. return this;
  6816. }
  6817. // optional int32 dummy12 = 12;
  6818. public bool HasDummy12 {
  6819. get { return result.HasDummy12; }
  6820. }
  6821. public int Dummy12 {
  6822. get { return result.Dummy12; }
  6823. set { SetDummy12(value); }
  6824. }
  6825. public Builder SetDummy12(int value) {
  6826. result.hasDummy12 = true;
  6827. result.dummy12_ = value;
  6828. return this;
  6829. }
  6830. public Builder ClearDummy12() {
  6831. result.hasDummy12 = false;
  6832. result.dummy12_ = 0;
  6833. return this;
  6834. }
  6835. // optional int32 dummy13 = 13;
  6836. public bool HasDummy13 {
  6837. get { return result.HasDummy13; }
  6838. }
  6839. public int Dummy13 {
  6840. get { return result.Dummy13; }
  6841. set { SetDummy13(value); }
  6842. }
  6843. public Builder SetDummy13(int value) {
  6844. result.hasDummy13 = true;
  6845. result.dummy13_ = value;
  6846. return this;
  6847. }
  6848. public Builder ClearDummy13() {
  6849. result.hasDummy13 = false;
  6850. result.dummy13_ = 0;
  6851. return this;
  6852. }
  6853. // optional int32 dummy14 = 14;
  6854. public bool HasDummy14 {
  6855. get { return result.HasDummy14; }
  6856. }
  6857. public int Dummy14 {
  6858. get { return result.Dummy14; }
  6859. set { SetDummy14(value); }
  6860. }
  6861. public Builder SetDummy14(int value) {
  6862. result.hasDummy14 = true;
  6863. result.dummy14_ = value;
  6864. return this;
  6865. }
  6866. public Builder ClearDummy14() {
  6867. result.hasDummy14 = false;
  6868. result.dummy14_ = 0;
  6869. return this;
  6870. }
  6871. // optional int32 dummy15 = 15;
  6872. public bool HasDummy15 {
  6873. get { return result.HasDummy15; }
  6874. }
  6875. public int Dummy15 {
  6876. get { return result.Dummy15; }
  6877. set { SetDummy15(value); }
  6878. }
  6879. public Builder SetDummy15(int value) {
  6880. result.hasDummy15 = true;
  6881. result.dummy15_ = value;
  6882. return this;
  6883. }
  6884. public Builder ClearDummy15() {
  6885. result.hasDummy15 = false;
  6886. result.dummy15_ = 0;
  6887. return this;
  6888. }
  6889. // optional int32 dummy16 = 16;
  6890. public bool HasDummy16 {
  6891. get { return result.HasDummy16; }
  6892. }
  6893. public int Dummy16 {
  6894. get { return result.Dummy16; }
  6895. set { SetDummy16(value); }
  6896. }
  6897. public Builder SetDummy16(int value) {
  6898. result.hasDummy16 = true;
  6899. result.dummy16_ = value;
  6900. return this;
  6901. }
  6902. public Builder ClearDummy16() {
  6903. result.hasDummy16 = false;
  6904. result.dummy16_ = 0;
  6905. return this;
  6906. }
  6907. // optional int32 dummy17 = 17;
  6908. public bool HasDummy17 {
  6909. get { return result.HasDummy17; }
  6910. }
  6911. public int Dummy17 {
  6912. get { return result.Dummy17; }
  6913. set { SetDummy17(value); }
  6914. }
  6915. public Builder SetDummy17(int value) {
  6916. result.hasDummy17 = true;
  6917. result.dummy17_ = value;
  6918. return this;
  6919. }
  6920. public Builder ClearDummy17() {
  6921. result.hasDummy17 = false;
  6922. result.dummy17_ = 0;
  6923. return this;
  6924. }
  6925. // optional int32 dummy18 = 18;
  6926. public bool HasDummy18 {
  6927. get { return result.HasDummy18; }
  6928. }
  6929. public int Dummy18 {
  6930. get { return result.Dummy18; }
  6931. set { SetDummy18(value); }
  6932. }
  6933. public Builder SetDummy18(int value) {
  6934. result.hasDummy18 = true;
  6935. result.dummy18_ = value;
  6936. return this;
  6937. }
  6938. public Builder ClearDummy18() {
  6939. result.hasDummy18 = false;
  6940. result.dummy18_ = 0;
  6941. return this;
  6942. }
  6943. // optional int32 dummy19 = 19;
  6944. public bool HasDummy19 {
  6945. get { return result.HasDummy19; }
  6946. }
  6947. public int Dummy19 {
  6948. get { return result.Dummy19; }
  6949. set { SetDummy19(value); }
  6950. }
  6951. public Builder SetDummy19(int value) {
  6952. result.hasDummy19 = true;
  6953. result.dummy19_ = value;
  6954. return this;
  6955. }
  6956. public Builder ClearDummy19() {
  6957. result.hasDummy19 = false;
  6958. result.dummy19_ = 0;
  6959. return this;
  6960. }
  6961. // optional int32 dummy20 = 20;
  6962. public bool HasDummy20 {
  6963. get { return result.HasDummy20; }
  6964. }
  6965. public int Dummy20 {
  6966. get { return result.Dummy20; }
  6967. set { SetDummy20(value); }
  6968. }
  6969. public Builder SetDummy20(int value) {
  6970. result.hasDummy20 = true;
  6971. result.dummy20_ = value;
  6972. return this;
  6973. }
  6974. public Builder ClearDummy20() {
  6975. result.hasDummy20 = false;
  6976. result.dummy20_ = 0;
  6977. return this;
  6978. }
  6979. // optional int32 dummy21 = 21;
  6980. public bool HasDummy21 {
  6981. get { return result.HasDummy21; }
  6982. }
  6983. public int Dummy21 {
  6984. get { return result.Dummy21; }
  6985. set { SetDummy21(value); }
  6986. }
  6987. public Builder SetDummy21(int value) {
  6988. result.hasDummy21 = true;
  6989. result.dummy21_ = value;
  6990. return this;
  6991. }
  6992. public Builder ClearDummy21() {
  6993. result.hasDummy21 = false;
  6994. result.dummy21_ = 0;
  6995. return this;
  6996. }
  6997. // optional int32 dummy22 = 22;
  6998. public bool HasDummy22 {
  6999. get { return result.HasDummy22; }
  7000. }
  7001. public int Dummy22 {
  7002. get { return result.Dummy22; }
  7003. set { SetDummy22(value); }
  7004. }
  7005. public Builder SetDummy22(int value) {
  7006. result.hasDummy22 = true;
  7007. result.dummy22_ = value;
  7008. return this;
  7009. }
  7010. public Builder ClearDummy22() {
  7011. result.hasDummy22 = false;
  7012. result.dummy22_ = 0;
  7013. return this;
  7014. }
  7015. // optional int32 dummy23 = 23;
  7016. public bool HasDummy23 {
  7017. get { return result.HasDummy23; }
  7018. }
  7019. public int Dummy23 {
  7020. get { return result.Dummy23; }
  7021. set { SetDummy23(value); }
  7022. }
  7023. public Builder SetDummy23(int value) {
  7024. result.hasDummy23 = true;
  7025. result.dummy23_ = value;
  7026. return this;
  7027. }
  7028. public Builder ClearDummy23() {
  7029. result.hasDummy23 = false;
  7030. result.dummy23_ = 0;
  7031. return this;
  7032. }
  7033. // optional int32 dummy24 = 24;
  7034. public bool HasDummy24 {
  7035. get { return result.HasDummy24; }
  7036. }
  7037. public int Dummy24 {
  7038. get { return result.Dummy24; }
  7039. set { SetDummy24(value); }
  7040. }
  7041. public Builder SetDummy24(int value) {
  7042. result.hasDummy24 = true;
  7043. result.dummy24_ = value;
  7044. return this;
  7045. }
  7046. public Builder ClearDummy24() {
  7047. result.hasDummy24 = false;
  7048. result.dummy24_ = 0;
  7049. return this;
  7050. }
  7051. // optional int32 dummy25 = 25;
  7052. public bool HasDummy25 {
  7053. get { return result.HasDummy25; }
  7054. }
  7055. public int Dummy25 {
  7056. get { return result.Dummy25; }
  7057. set { SetDummy25(value); }
  7058. }
  7059. public Builder SetDummy25(int value) {
  7060. result.hasDummy25 = true;
  7061. result.dummy25_ = value;
  7062. return this;
  7063. }
  7064. public Builder ClearDummy25() {
  7065. result.hasDummy25 = false;
  7066. result.dummy25_ = 0;
  7067. return this;
  7068. }
  7069. // optional int32 dummy26 = 26;
  7070. public bool HasDummy26 {
  7071. get { return result.HasDummy26; }
  7072. }
  7073. public int Dummy26 {
  7074. get { return result.Dummy26; }
  7075. set { SetDummy26(value); }
  7076. }
  7077. public Builder SetDummy26(int value) {
  7078. result.hasDummy26 = true;
  7079. result.dummy26_ = value;
  7080. return this;
  7081. }
  7082. public Builder ClearDummy26() {
  7083. result.hasDummy26 = false;
  7084. result.dummy26_ = 0;
  7085. return this;
  7086. }
  7087. // optional int32 dummy27 = 27;
  7088. public bool HasDummy27 {
  7089. get { return result.HasDummy27; }
  7090. }
  7091. public int Dummy27 {
  7092. get { return result.Dummy27; }
  7093. set { SetDummy27(value); }
  7094. }
  7095. public Builder SetDummy27(int value) {
  7096. result.hasDummy27 = true;
  7097. result.dummy27_ = value;
  7098. return this;
  7099. }
  7100. public Builder ClearDummy27() {
  7101. result.hasDummy27 = false;
  7102. result.dummy27_ = 0;
  7103. return this;
  7104. }
  7105. // optional int32 dummy28 = 28;
  7106. public bool HasDummy28 {
  7107. get { return result.HasDummy28; }
  7108. }
  7109. public int Dummy28 {
  7110. get { return result.Dummy28; }
  7111. set { SetDummy28(value); }
  7112. }
  7113. public Builder SetDummy28(int value) {
  7114. result.hasDummy28 = true;
  7115. result.dummy28_ = value;
  7116. return this;
  7117. }
  7118. public Builder ClearDummy28() {
  7119. result.hasDummy28 = false;
  7120. result.dummy28_ = 0;
  7121. return this;
  7122. }
  7123. // optional int32 dummy29 = 29;
  7124. public bool HasDummy29 {
  7125. get { return result.HasDummy29; }
  7126. }
  7127. public int Dummy29 {
  7128. get { return result.Dummy29; }
  7129. set { SetDummy29(value); }
  7130. }
  7131. public Builder SetDummy29(int value) {
  7132. result.hasDummy29 = true;
  7133. result.dummy29_ = value;
  7134. return this;
  7135. }
  7136. public Builder ClearDummy29() {
  7137. result.hasDummy29 = false;
  7138. result.dummy29_ = 0;
  7139. return this;
  7140. }
  7141. // optional int32 dummy30 = 30;
  7142. public bool HasDummy30 {
  7143. get { return result.HasDummy30; }
  7144. }
  7145. public int Dummy30 {
  7146. get { return result.Dummy30; }
  7147. set { SetDummy30(value); }
  7148. }
  7149. public Builder SetDummy30(int value) {
  7150. result.hasDummy30 = true;
  7151. result.dummy30_ = value;
  7152. return this;
  7153. }
  7154. public Builder ClearDummy30() {
  7155. result.hasDummy30 = false;
  7156. result.dummy30_ = 0;
  7157. return this;
  7158. }
  7159. // optional int32 dummy31 = 31;
  7160. public bool HasDummy31 {
  7161. get { return result.HasDummy31; }
  7162. }
  7163. public int Dummy31 {
  7164. get { return result.Dummy31; }
  7165. set { SetDummy31(value); }
  7166. }
  7167. public Builder SetDummy31(int value) {
  7168. result.hasDummy31 = true;
  7169. result.dummy31_ = value;
  7170. return this;
  7171. }
  7172. public Builder ClearDummy31() {
  7173. result.hasDummy31 = false;
  7174. result.dummy31_ = 0;
  7175. return this;
  7176. }
  7177. // optional int32 dummy32 = 32;
  7178. public bool HasDummy32 {
  7179. get { return result.HasDummy32; }
  7180. }
  7181. public int Dummy32 {
  7182. get { return result.Dummy32; }
  7183. set { SetDummy32(value); }
  7184. }
  7185. public Builder SetDummy32(int value) {
  7186. result.hasDummy32 = true;
  7187. result.dummy32_ = value;
  7188. return this;
  7189. }
  7190. public Builder ClearDummy32() {
  7191. result.hasDummy32 = false;
  7192. result.dummy32_ = 0;
  7193. return this;
  7194. }
  7195. // required int32 c = 33;
  7196. public bool HasC {
  7197. get { return result.HasC; }
  7198. }
  7199. public int C {
  7200. get { return result.C; }
  7201. set { SetC(value); }
  7202. }
  7203. public Builder SetC(int value) {
  7204. result.hasC = true;
  7205. result.c_ = value;
  7206. return this;
  7207. }
  7208. public Builder ClearC() {
  7209. result.hasC = false;
  7210. result.c_ = 0;
  7211. return this;
  7212. }
  7213. }
  7214. }
  7215. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7216. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7217. public static TestRequiredForeign DefaultInstance {
  7218. get { return defaultInstance; }
  7219. }
  7220. public override TestRequiredForeign DefaultInstanceForType {
  7221. get { return defaultInstance; }
  7222. }
  7223. protected override TestRequiredForeign ThisMessage {
  7224. get { return this; }
  7225. }
  7226. public static pbd::MessageDescriptor Descriptor {
  7227. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7228. }
  7229. protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
  7230. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7231. }
  7232. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7233. private bool hasOptionalMessage;
  7234. private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7235. public bool HasOptionalMessage {
  7236. get { return hasOptionalMessage; }
  7237. }
  7238. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7239. get { return optionalMessage_; }
  7240. }
  7241. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7242. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7243. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7244. get { return repeatedMessage_; }
  7245. }
  7246. public int RepeatedMessageCount
  7247. { get { return repeatedMessage_.Count; }
  7248. }
  7249. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7250. return repeatedMessage_ [index];
  7251. }
  7252. // optional int32 dummy = 3;
  7253. private bool hasDummy;
  7254. private int dummy_ = 0;
  7255. public bool HasDummy {
  7256. get { return hasDummy; }
  7257. }
  7258. public int Dummy {
  7259. get { return dummy_; }
  7260. }
  7261. public override bool IsInitialized {
  7262. get {
  7263. if (HasOptionalMessage) {
  7264. if (!OptionalMessage.IsInitialized) return false;
  7265. }
  7266. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7267. if (!element.IsInitialized) return false;
  7268. }
  7269. return true;
  7270. }
  7271. }
  7272. public override void WriteTo(pb::CodedOutputStream output) {
  7273. if (HasOptionalMessage) {
  7274. output.WriteMessage(1, OptionalMessage);
  7275. }
  7276. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7277. output.WriteMessage(2, element);
  7278. }
  7279. if (HasDummy) {
  7280. output.WriteInt32(3, Dummy);
  7281. }
  7282. UnknownFields.WriteTo(output);
  7283. }
  7284. private int memoizedSerializedSize = -1;
  7285. public override int SerializedSize {
  7286. get {
  7287. int size = memoizedSerializedSize;
  7288. if (size != -1) return size;
  7289. size = 0;
  7290. if (HasOptionalMessage) {
  7291. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7292. }
  7293. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7294. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7295. }
  7296. if (HasDummy) {
  7297. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7298. }
  7299. size += UnknownFields.SerializedSize;
  7300. memoizedSerializedSize = size;
  7301. return size;
  7302. }
  7303. }
  7304. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data) {
  7305. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7306. }
  7307. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data,
  7308. pb::ExtensionRegistry extensionRegistry) {
  7309. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7310. .BuildParsed();
  7311. }
  7312. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data) {
  7313. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7314. }
  7315. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data,
  7316. pb::ExtensionRegistry extensionRegistry) {
  7317. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7318. .BuildParsed();
  7319. }
  7320. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7321. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7322. }
  7323. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(
  7324. global::System.IO.Stream input,
  7325. pb::ExtensionRegistry extensionRegistry) {
  7326. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7327. .BuildParsed();
  7328. }
  7329. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7330. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7331. }
  7332. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7333. pb::ExtensionRegistry extensionRegistry) {
  7334. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7335. .BuildParsed();
  7336. }
  7337. public static Builder CreateBuilder() { return new Builder(); }
  7338. public override Builder CreateBuilderForType() { return new Builder(); }
  7339. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign prototype) {
  7340. return (Builder) new Builder().MergeFrom(prototype);
  7341. }
  7342. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, Builder> {
  7343. protected override Builder ThisBuilder {
  7344. get { return this; }
  7345. }
  7346. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.CreateBuilder()
  7347. internal Builder() {}
  7348. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7349. protected override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign MessageBeingBuilt {
  7350. get { return result; }
  7351. }
  7352. public override Builder Clear() {
  7353. result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7354. return this;
  7355. }
  7356. public override Builder Clone() {
  7357. return new Builder().MergeFrom(result);
  7358. }
  7359. public override pbd::MessageDescriptor DescriptorForType {
  7360. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
  7361. }
  7362. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign DefaultInstanceForType {
  7363. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
  7364. }
  7365. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign BuildPartial() {
  7366. if (result.repeatedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7367. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.AsReadOnly(result.repeatedMessage_);
  7368. }
  7369. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign returnMe = result;
  7370. result = null;
  7371. return returnMe;
  7372. }
  7373. public override Builder MergeFrom(pb::IMessage other) {
  7374. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) {
  7375. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) other);
  7376. } else {
  7377. base.MergeFrom(other);
  7378. return this;
  7379. }
  7380. }
  7381. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign other) {
  7382. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
  7383. if (other.HasOptionalMessage) {
  7384. MergeOptionalMessage(other.OptionalMessage);
  7385. }
  7386. if (other.repeatedMessage_.Count != 0) {
  7387. if (result.repeatedMessage_.Count == 0) {
  7388. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7389. }
  7390. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7391. }
  7392. if (other.HasDummy) {
  7393. Dummy = other.Dummy;
  7394. }
  7395. this.MergeUnknownFields(other.UnknownFields);
  7396. return this;
  7397. }
  7398. public override Builder MergeFrom(pb::CodedInputStream input) {
  7399. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7400. }
  7401. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7402. pb::UnknownFieldSet.Builder unknownFields =
  7403. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7404. while (true) {
  7405. uint tag = input.ReadTag();
  7406. switch (tag) {
  7407. case 0:
  7408. this.UnknownFields = unknownFields.Build();
  7409. return this;
  7410. default: {
  7411. if (!ParseUnknownField(input, unknownFields,
  7412. extensionRegistry, tag)) {
  7413. this.UnknownFields = unknownFields.Build();
  7414. return this;
  7415. }
  7416. break;
  7417. }
  7418. case 10: {
  7419. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7420. if (HasOptionalMessage) {
  7421. subBuilder.MergeFrom(OptionalMessage);
  7422. }
  7423. input.ReadMessage(subBuilder, extensionRegistry);
  7424. OptionalMessage = subBuilder.BuildPartial();
  7425. break;
  7426. }
  7427. case 18: {
  7428. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7429. input.ReadMessage(subBuilder, extensionRegistry);
  7430. AddRepeatedMessage(subBuilder.BuildPartial());
  7431. break;
  7432. }
  7433. case 24: {
  7434. Dummy = input.ReadInt32();
  7435. break;
  7436. }
  7437. }
  7438. }
  7439. }
  7440. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7441. public bool HasOptionalMessage {
  7442. get { return result.HasOptionalMessage; }
  7443. }
  7444. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7445. get { return result.OptionalMessage; }
  7446. set { SetOptionalMessage(value); }
  7447. }
  7448. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7449. result.hasOptionalMessage = true;
  7450. result.optionalMessage_ = value;
  7451. return this;
  7452. }
  7453. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7454. result.hasOptionalMessage = true;
  7455. result.optionalMessage_ = builderForValue.Build();
  7456. return this;
  7457. }
  7458. public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7459. if (result.HasOptionalMessage &&
  7460. result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
  7461. result.optionalMessage_ =
  7462. global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7463. } else {
  7464. result.optionalMessage_ = value;
  7465. }
  7466. result.hasOptionalMessage = true;
  7467. return this;
  7468. }
  7469. public Builder ClearOptionalMessage() {
  7470. result.hasOptionalMessage = false;
  7471. result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7472. return this;
  7473. }
  7474. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7475. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7476. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7477. }
  7478. public int RepeatedMessageCount {
  7479. get { return result.RepeatedMessageCount; }
  7480. }
  7481. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7482. return result.GetRepeatedMessage(index);
  7483. }
  7484. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7485. result.repeatedMessage_[index] = value;
  7486. return this;
  7487. }
  7488. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7489. result.repeatedMessage_[index] = builderForValue.Build();
  7490. return this;
  7491. }
  7492. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7493. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7494. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7495. }
  7496. result.repeatedMessage_.Add(value);
  7497. return this;
  7498. }
  7499. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7500. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7501. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7502. }
  7503. result.repeatedMessage_.Add(builderForValue.Build());
  7504. return this;
  7505. }
  7506. public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
  7507. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7508. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7509. }
  7510. base.AddRange(values, result.repeatedMessage_);
  7511. return this;
  7512. }
  7513. public Builder ClearRepeatedMessage() {
  7514. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7515. return this;
  7516. }
  7517. // optional int32 dummy = 3;
  7518. public bool HasDummy {
  7519. get { return result.HasDummy; }
  7520. }
  7521. public int Dummy {
  7522. get { return result.Dummy; }
  7523. set { SetDummy(value); }
  7524. }
  7525. public Builder SetDummy(int value) {
  7526. result.hasDummy = true;
  7527. result.dummy_ = value;
  7528. return this;
  7529. }
  7530. public Builder ClearDummy() {
  7531. result.hasDummy = false;
  7532. result.dummy_ = 0;
  7533. return this;
  7534. }
  7535. }
  7536. }
  7537. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7538. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7539. public static TestForeignNested DefaultInstance {
  7540. get { return defaultInstance; }
  7541. }
  7542. public override TestForeignNested DefaultInstanceForType {
  7543. get { return defaultInstance; }
  7544. }
  7545. protected override TestForeignNested ThisMessage {
  7546. get { return this; }
  7547. }
  7548. public static pbd::MessageDescriptor Descriptor {
  7549. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7550. }
  7551. protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
  7552. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7553. }
  7554. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7555. private bool hasForeignNested;
  7556. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7557. public bool HasForeignNested {
  7558. get { return hasForeignNested; }
  7559. }
  7560. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7561. get { return foreignNested_; }
  7562. }
  7563. public override bool IsInitialized {
  7564. get {
  7565. return true;
  7566. }
  7567. }
  7568. public override void WriteTo(pb::CodedOutputStream output) {
  7569. if (HasForeignNested) {
  7570. output.WriteMessage(1, ForeignNested);
  7571. }
  7572. UnknownFields.WriteTo(output);
  7573. }
  7574. private int memoizedSerializedSize = -1;
  7575. public override int SerializedSize {
  7576. get {
  7577. int size = memoizedSerializedSize;
  7578. if (size != -1) return size;
  7579. size = 0;
  7580. if (HasForeignNested) {
  7581. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7582. }
  7583. size += UnknownFields.SerializedSize;
  7584. memoizedSerializedSize = size;
  7585. return size;
  7586. }
  7587. }
  7588. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data) {
  7589. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7590. }
  7591. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data,
  7592. pb::ExtensionRegistry extensionRegistry) {
  7593. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7594. .BuildParsed();
  7595. }
  7596. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data) {
  7597. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7598. }
  7599. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data,
  7600. pb::ExtensionRegistry extensionRegistry) {
  7601. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7602. .BuildParsed();
  7603. }
  7604. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7605. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7606. }
  7607. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(
  7608. global::System.IO.Stream input,
  7609. pb::ExtensionRegistry extensionRegistry) {
  7610. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7611. .BuildParsed();
  7612. }
  7613. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7614. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7615. }
  7616. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input,
  7617. pb::ExtensionRegistry extensionRegistry) {
  7618. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7619. .BuildParsed();
  7620. }
  7621. public static Builder CreateBuilder() { return new Builder(); }
  7622. public override Builder CreateBuilderForType() { return new Builder(); }
  7623. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestForeignNested prototype) {
  7624. return (Builder) new Builder().MergeFrom(prototype);
  7625. }
  7626. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, Builder> {
  7627. protected override Builder ThisBuilder {
  7628. get { return this; }
  7629. }
  7630. // Construct using global::Google.ProtocolBuffers.TestProtos.TestForeignNested.CreateBuilder()
  7631. internal Builder() {}
  7632. global::Google.ProtocolBuffers.TestProtos.TestForeignNested result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7633. protected override global::Google.ProtocolBuffers.TestProtos.TestForeignNested MessageBeingBuilt {
  7634. get { return result; }
  7635. }
  7636. public override Builder Clear() {
  7637. result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7638. return this;
  7639. }
  7640. public override Builder Clone() {
  7641. return new Builder().MergeFrom(result);
  7642. }
  7643. public override pbd::MessageDescriptor DescriptorForType {
  7644. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
  7645. }
  7646. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested DefaultInstanceForType {
  7647. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
  7648. }
  7649. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested BuildPartial() {
  7650. global::Google.ProtocolBuffers.TestProtos.TestForeignNested returnMe = result;
  7651. result = null;
  7652. return returnMe;
  7653. }
  7654. public override Builder MergeFrom(pb::IMessage other) {
  7655. if (other is global::Google.ProtocolBuffers.TestProtos.TestForeignNested) {
  7656. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestForeignNested) other);
  7657. } else {
  7658. base.MergeFrom(other);
  7659. return this;
  7660. }
  7661. }
  7662. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestForeignNested other) {
  7663. if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
  7664. if (other.HasForeignNested) {
  7665. MergeForeignNested(other.ForeignNested);
  7666. }
  7667. this.MergeUnknownFields(other.UnknownFields);
  7668. return this;
  7669. }
  7670. public override Builder MergeFrom(pb::CodedInputStream input) {
  7671. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7672. }
  7673. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7674. pb::UnknownFieldSet.Builder unknownFields =
  7675. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7676. while (true) {
  7677. uint tag = input.ReadTag();
  7678. switch (tag) {
  7679. case 0:
  7680. this.UnknownFields = unknownFields.Build();
  7681. return this;
  7682. default: {
  7683. if (!ParseUnknownField(input, unknownFields,
  7684. extensionRegistry, tag)) {
  7685. this.UnknownFields = unknownFields.Build();
  7686. return this;
  7687. }
  7688. break;
  7689. }
  7690. case 10: {
  7691. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  7692. if (HasForeignNested) {
  7693. subBuilder.MergeFrom(ForeignNested);
  7694. }
  7695. input.ReadMessage(subBuilder, extensionRegistry);
  7696. ForeignNested = subBuilder.BuildPartial();
  7697. break;
  7698. }
  7699. }
  7700. }
  7701. }
  7702. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7703. public bool HasForeignNested {
  7704. get { return result.HasForeignNested; }
  7705. }
  7706. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7707. get { return result.ForeignNested; }
  7708. set { SetForeignNested(value); }
  7709. }
  7710. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7711. result.hasForeignNested = true;
  7712. result.foreignNested_ = value;
  7713. return this;
  7714. }
  7715. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7716. result.hasForeignNested = true;
  7717. result.foreignNested_ = builderForValue.Build();
  7718. return this;
  7719. }
  7720. public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7721. if (result.HasForeignNested &&
  7722. result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7723. result.foreignNested_ =
  7724. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7725. } else {
  7726. result.foreignNested_ = value;
  7727. }
  7728. result.hasForeignNested = true;
  7729. return this;
  7730. }
  7731. public Builder ClearForeignNested() {
  7732. result.hasForeignNested = false;
  7733. result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7734. return this;
  7735. }
  7736. }
  7737. }
  7738. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7739. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7740. public static TestEmptyMessage DefaultInstance {
  7741. get { return defaultInstance; }
  7742. }
  7743. public override TestEmptyMessage DefaultInstanceForType {
  7744. get { return defaultInstance; }
  7745. }
  7746. protected override TestEmptyMessage ThisMessage {
  7747. get { return this; }
  7748. }
  7749. public static pbd::MessageDescriptor Descriptor {
  7750. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7751. }
  7752. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
  7753. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7754. }
  7755. public override bool IsInitialized {
  7756. get {
  7757. return true;
  7758. }
  7759. }
  7760. public override void WriteTo(pb::CodedOutputStream output) {
  7761. UnknownFields.WriteTo(output);
  7762. }
  7763. private int memoizedSerializedSize = -1;
  7764. public override int SerializedSize {
  7765. get {
  7766. int size = memoizedSerializedSize;
  7767. if (size != -1) return size;
  7768. size = 0;
  7769. size += UnknownFields.SerializedSize;
  7770. memoizedSerializedSize = size;
  7771. return size;
  7772. }
  7773. }
  7774. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data) {
  7775. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7776. }
  7777. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data,
  7778. pb::ExtensionRegistry extensionRegistry) {
  7779. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7780. .BuildParsed();
  7781. }
  7782. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data) {
  7783. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7784. }
  7785. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data,
  7786. pb::ExtensionRegistry extensionRegistry) {
  7787. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7788. .BuildParsed();
  7789. }
  7790. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7791. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7792. }
  7793. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(
  7794. global::System.IO.Stream input,
  7795. pb::ExtensionRegistry extensionRegistry) {
  7796. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7797. .BuildParsed();
  7798. }
  7799. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7800. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7801. }
  7802. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7803. pb::ExtensionRegistry extensionRegistry) {
  7804. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7805. .BuildParsed();
  7806. }
  7807. public static Builder CreateBuilder() { return new Builder(); }
  7808. public override Builder CreateBuilderForType() { return new Builder(); }
  7809. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage prototype) {
  7810. return (Builder) new Builder().MergeFrom(prototype);
  7811. }
  7812. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, Builder> {
  7813. protected override Builder ThisBuilder {
  7814. get { return this; }
  7815. }
  7816. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.CreateBuilder()
  7817. internal Builder() {}
  7818. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7819. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage MessageBeingBuilt {
  7820. get { return result; }
  7821. }
  7822. public override Builder Clear() {
  7823. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7824. return this;
  7825. }
  7826. public override Builder Clone() {
  7827. return new Builder().MergeFrom(result);
  7828. }
  7829. public override pbd::MessageDescriptor DescriptorForType {
  7830. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
  7831. }
  7832. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage DefaultInstanceForType {
  7833. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
  7834. }
  7835. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage BuildPartial() {
  7836. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage returnMe = result;
  7837. result = null;
  7838. return returnMe;
  7839. }
  7840. public override Builder MergeFrom(pb::IMessage other) {
  7841. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) {
  7842. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) other);
  7843. } else {
  7844. base.MergeFrom(other);
  7845. return this;
  7846. }
  7847. }
  7848. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage other) {
  7849. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
  7850. this.MergeUnknownFields(other.UnknownFields);
  7851. return this;
  7852. }
  7853. public override Builder MergeFrom(pb::CodedInputStream input) {
  7854. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7855. }
  7856. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7857. pb::UnknownFieldSet.Builder unknownFields =
  7858. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7859. while (true) {
  7860. uint tag = input.ReadTag();
  7861. switch (tag) {
  7862. case 0:
  7863. this.UnknownFields = unknownFields.Build();
  7864. return this;
  7865. default: {
  7866. if (!ParseUnknownField(input, unknownFields,
  7867. extensionRegistry, tag)) {
  7868. this.UnknownFields = unknownFields.Build();
  7869. return this;
  7870. }
  7871. break;
  7872. }
  7873. }
  7874. }
  7875. }
  7876. }
  7877. }
  7878. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7879. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7880. public static TestEmptyMessageWithExtensions DefaultInstance {
  7881. get { return defaultInstance; }
  7882. }
  7883. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7884. get { return defaultInstance; }
  7885. }
  7886. protected override TestEmptyMessageWithExtensions ThisMessage {
  7887. get { return this; }
  7888. }
  7889. public static pbd::MessageDescriptor Descriptor {
  7890. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7891. }
  7892. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
  7893. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7894. }
  7895. public override bool IsInitialized {
  7896. get {
  7897. if (!ExtensionsAreInitialized) return false;
  7898. return true;
  7899. }
  7900. }
  7901. public override void WriteTo(pb::CodedOutputStream output) {
  7902. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7903. extensionWriter.WriteUntil(536870912, output);
  7904. UnknownFields.WriteTo(output);
  7905. }
  7906. private int memoizedSerializedSize = -1;
  7907. public override int SerializedSize {
  7908. get {
  7909. int size = memoizedSerializedSize;
  7910. if (size != -1) return size;
  7911. size = 0;
  7912. size += ExtensionsSerializedSize;
  7913. size += UnknownFields.SerializedSize;
  7914. memoizedSerializedSize = size;
  7915. return size;
  7916. }
  7917. }
  7918. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7919. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7920. }
  7921. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7922. pb::ExtensionRegistry extensionRegistry) {
  7923. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7924. .BuildParsed();
  7925. }
  7926. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7927. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7928. }
  7929. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data,
  7930. pb::ExtensionRegistry extensionRegistry) {
  7931. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7932. .BuildParsed();
  7933. }
  7934. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7935. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7936. }
  7937. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(
  7938. global::System.IO.Stream input,
  7939. pb::ExtensionRegistry extensionRegistry) {
  7940. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7941. .BuildParsed();
  7942. }
  7943. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7944. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7945. }
  7946. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7947. pb::ExtensionRegistry extensionRegistry) {
  7948. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7949. .BuildParsed();
  7950. }
  7951. public static Builder CreateBuilder() { return new Builder(); }
  7952. public override Builder CreateBuilderForType() { return new Builder(); }
  7953. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions prototype) {
  7954. return (Builder) new Builder().MergeFrom(prototype);
  7955. }
  7956. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> {
  7957. protected override Builder ThisBuilder {
  7958. get { return this; }
  7959. }
  7960. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.CreateBuilder()
  7961. internal Builder() {}
  7962. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7963. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions MessageBeingBuilt {
  7964. get { return result; }
  7965. }
  7966. public override Builder Clear() {
  7967. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7968. return this;
  7969. }
  7970. public override Builder Clone() {
  7971. return new Builder().MergeFrom(result);
  7972. }
  7973. public override pbd::MessageDescriptor DescriptorForType {
  7974. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
  7975. }
  7976. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions DefaultInstanceForType {
  7977. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
  7978. }
  7979. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions BuildPartial() {
  7980. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions returnMe = result;
  7981. result = null;
  7982. return returnMe;
  7983. }
  7984. public override Builder MergeFrom(pb::IMessage other) {
  7985. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) {
  7986. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) other);
  7987. } else {
  7988. base.MergeFrom(other);
  7989. return this;
  7990. }
  7991. }
  7992. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions other) {
  7993. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
  7994. this.MergeUnknownFields(other.UnknownFields);
  7995. return this;
  7996. }
  7997. public override Builder MergeFrom(pb::CodedInputStream input) {
  7998. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7999. }
  8000. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8001. pb::UnknownFieldSet.Builder unknownFields =
  8002. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8003. while (true) {
  8004. uint tag = input.ReadTag();
  8005. switch (tag) {
  8006. case 0:
  8007. this.UnknownFields = unknownFields.Build();
  8008. return this;
  8009. default: {
  8010. if (!ParseUnknownField(input, unknownFields,
  8011. extensionRegistry, tag)) {
  8012. this.UnknownFields = unknownFields.Build();
  8013. return this;
  8014. }
  8015. break;
  8016. }
  8017. }
  8018. }
  8019. }
  8020. }
  8021. }
  8022. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8023. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8024. public static TestReallyLargeTagNumber DefaultInstance {
  8025. get { return defaultInstance; }
  8026. }
  8027. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8028. get { return defaultInstance; }
  8029. }
  8030. protected override TestReallyLargeTagNumber ThisMessage {
  8031. get { return this; }
  8032. }
  8033. public static pbd::MessageDescriptor Descriptor {
  8034. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8035. }
  8036. protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
  8037. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8038. }
  8039. // optional int32 a = 1;
  8040. private bool hasA;
  8041. private int a_ = 0;
  8042. public bool HasA {
  8043. get { return hasA; }
  8044. }
  8045. public int A {
  8046. get { return a_; }
  8047. }
  8048. // optional int32 bb = 268435455;
  8049. private bool hasBb;
  8050. private int bb_ = 0;
  8051. public bool HasBb {
  8052. get { return hasBb; }
  8053. }
  8054. public int Bb {
  8055. get { return bb_; }
  8056. }
  8057. public override bool IsInitialized {
  8058. get {
  8059. return true;
  8060. }
  8061. }
  8062. public override void WriteTo(pb::CodedOutputStream output) {
  8063. if (HasA) {
  8064. output.WriteInt32(1, A);
  8065. }
  8066. if (HasBb) {
  8067. output.WriteInt32(268435455, Bb);
  8068. }
  8069. UnknownFields.WriteTo(output);
  8070. }
  8071. private int memoizedSerializedSize = -1;
  8072. public override int SerializedSize {
  8073. get {
  8074. int size = memoizedSerializedSize;
  8075. if (size != -1) return size;
  8076. size = 0;
  8077. if (HasA) {
  8078. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8079. }
  8080. if (HasBb) {
  8081. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8082. }
  8083. size += UnknownFields.SerializedSize;
  8084. memoizedSerializedSize = size;
  8085. return size;
  8086. }
  8087. }
  8088. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8089. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8090. }
  8091. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8092. pb::ExtensionRegistry extensionRegistry) {
  8093. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8094. .BuildParsed();
  8095. }
  8096. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8097. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8098. }
  8099. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data,
  8100. pb::ExtensionRegistry extensionRegistry) {
  8101. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8102. .BuildParsed();
  8103. }
  8104. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8105. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8106. }
  8107. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(
  8108. global::System.IO.Stream input,
  8109. pb::ExtensionRegistry extensionRegistry) {
  8110. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8111. .BuildParsed();
  8112. }
  8113. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8114. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8115. }
  8116. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8117. pb::ExtensionRegistry extensionRegistry) {
  8118. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8119. .BuildParsed();
  8120. }
  8121. public static Builder CreateBuilder() { return new Builder(); }
  8122. public override Builder CreateBuilderForType() { return new Builder(); }
  8123. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber prototype) {
  8124. return (Builder) new Builder().MergeFrom(prototype);
  8125. }
  8126. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, Builder> {
  8127. protected override Builder ThisBuilder {
  8128. get { return this; }
  8129. }
  8130. // Construct using global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.CreateBuilder()
  8131. internal Builder() {}
  8132. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8133. protected override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber MessageBeingBuilt {
  8134. get { return result; }
  8135. }
  8136. public override Builder Clear() {
  8137. result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8138. return this;
  8139. }
  8140. public override Builder Clone() {
  8141. return new Builder().MergeFrom(result);
  8142. }
  8143. public override pbd::MessageDescriptor DescriptorForType {
  8144. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
  8145. }
  8146. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber DefaultInstanceForType {
  8147. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
  8148. }
  8149. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber BuildPartial() {
  8150. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber returnMe = result;
  8151. result = null;
  8152. return returnMe;
  8153. }
  8154. public override Builder MergeFrom(pb::IMessage other) {
  8155. if (other is global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) {
  8156. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) other);
  8157. } else {
  8158. base.MergeFrom(other);
  8159. return this;
  8160. }
  8161. }
  8162. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber other) {
  8163. if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
  8164. if (other.HasA) {
  8165. A = other.A;
  8166. }
  8167. if (other.HasBb) {
  8168. Bb = other.Bb;
  8169. }
  8170. this.MergeUnknownFields(other.UnknownFields);
  8171. return this;
  8172. }
  8173. public override Builder MergeFrom(pb::CodedInputStream input) {
  8174. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8175. }
  8176. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8177. pb::UnknownFieldSet.Builder unknownFields =
  8178. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8179. while (true) {
  8180. uint tag = input.ReadTag();
  8181. switch (tag) {
  8182. case 0:
  8183. this.UnknownFields = unknownFields.Build();
  8184. return this;
  8185. default: {
  8186. if (!ParseUnknownField(input, unknownFields,
  8187. extensionRegistry, tag)) {
  8188. this.UnknownFields = unknownFields.Build();
  8189. return this;
  8190. }
  8191. break;
  8192. }
  8193. case 8: {
  8194. A = input.ReadInt32();
  8195. break;
  8196. }
  8197. case 2147483640: {
  8198. Bb = input.ReadInt32();
  8199. break;
  8200. }
  8201. }
  8202. }
  8203. }
  8204. // optional int32 a = 1;
  8205. public bool HasA {
  8206. get { return result.HasA; }
  8207. }
  8208. public int A {
  8209. get { return result.A; }
  8210. set { SetA(value); }
  8211. }
  8212. public Builder SetA(int value) {
  8213. result.hasA = true;
  8214. result.a_ = value;
  8215. return this;
  8216. }
  8217. public Builder ClearA() {
  8218. result.hasA = false;
  8219. result.a_ = 0;
  8220. return this;
  8221. }
  8222. // optional int32 bb = 268435455;
  8223. public bool HasBb {
  8224. get { return result.HasBb; }
  8225. }
  8226. public int Bb {
  8227. get { return result.Bb; }
  8228. set { SetBb(value); }
  8229. }
  8230. public Builder SetBb(int value) {
  8231. result.hasBb = true;
  8232. result.bb_ = value;
  8233. return this;
  8234. }
  8235. public Builder ClearBb() {
  8236. result.hasBb = false;
  8237. result.bb_ = 0;
  8238. return this;
  8239. }
  8240. }
  8241. }
  8242. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8243. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8244. public static TestRecursiveMessage DefaultInstance {
  8245. get { return defaultInstance; }
  8246. }
  8247. public override TestRecursiveMessage DefaultInstanceForType {
  8248. get { return defaultInstance; }
  8249. }
  8250. protected override TestRecursiveMessage ThisMessage {
  8251. get { return this; }
  8252. }
  8253. public static pbd::MessageDescriptor Descriptor {
  8254. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8255. }
  8256. protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
  8257. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8258. }
  8259. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8260. private bool hasA;
  8261. private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8262. public bool HasA {
  8263. get { return hasA; }
  8264. }
  8265. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8266. get { return a_; }
  8267. }
  8268. // optional int32 i = 2;
  8269. private bool hasI;
  8270. private int i_ = 0;
  8271. public bool HasI {
  8272. get { return hasI; }
  8273. }
  8274. public int I {
  8275. get { return i_; }
  8276. }
  8277. public override bool IsInitialized {
  8278. get {
  8279. return true;
  8280. }
  8281. }
  8282. public override void WriteTo(pb::CodedOutputStream output) {
  8283. if (HasA) {
  8284. output.WriteMessage(1, A);
  8285. }
  8286. if (HasI) {
  8287. output.WriteInt32(2, I);
  8288. }
  8289. UnknownFields.WriteTo(output);
  8290. }
  8291. private int memoizedSerializedSize = -1;
  8292. public override int SerializedSize {
  8293. get {
  8294. int size = memoizedSerializedSize;
  8295. if (size != -1) return size;
  8296. size = 0;
  8297. if (HasA) {
  8298. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8299. }
  8300. if (HasI) {
  8301. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8302. }
  8303. size += UnknownFields.SerializedSize;
  8304. memoizedSerializedSize = size;
  8305. return size;
  8306. }
  8307. }
  8308. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8309. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8310. }
  8311. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data,
  8312. pb::ExtensionRegistry extensionRegistry) {
  8313. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8314. .BuildParsed();
  8315. }
  8316. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data) {
  8317. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8318. }
  8319. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data,
  8320. pb::ExtensionRegistry extensionRegistry) {
  8321. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8322. .BuildParsed();
  8323. }
  8324. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8325. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8326. }
  8327. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(
  8328. global::System.IO.Stream input,
  8329. pb::ExtensionRegistry extensionRegistry) {
  8330. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8331. .BuildParsed();
  8332. }
  8333. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8334. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8335. }
  8336. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8337. pb::ExtensionRegistry extensionRegistry) {
  8338. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8339. .BuildParsed();
  8340. }
  8341. public static Builder CreateBuilder() { return new Builder(); }
  8342. public override Builder CreateBuilderForType() { return new Builder(); }
  8343. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage prototype) {
  8344. return (Builder) new Builder().MergeFrom(prototype);
  8345. }
  8346. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, Builder> {
  8347. protected override Builder ThisBuilder {
  8348. get { return this; }
  8349. }
  8350. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder()
  8351. internal Builder() {}
  8352. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8353. protected override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage MessageBeingBuilt {
  8354. get { return result; }
  8355. }
  8356. public override Builder Clear() {
  8357. result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8358. return this;
  8359. }
  8360. public override Builder Clone() {
  8361. return new Builder().MergeFrom(result);
  8362. }
  8363. public override pbd::MessageDescriptor DescriptorForType {
  8364. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
  8365. }
  8366. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage DefaultInstanceForType {
  8367. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  8368. }
  8369. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage BuildPartial() {
  8370. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage returnMe = result;
  8371. result = null;
  8372. return returnMe;
  8373. }
  8374. public override Builder MergeFrom(pb::IMessage other) {
  8375. if (other is global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) {
  8376. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) other);
  8377. } else {
  8378. base.MergeFrom(other);
  8379. return this;
  8380. }
  8381. }
  8382. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage other) {
  8383. if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
  8384. if (other.HasA) {
  8385. MergeA(other.A);
  8386. }
  8387. if (other.HasI) {
  8388. I = other.I;
  8389. }
  8390. this.MergeUnknownFields(other.UnknownFields);
  8391. return this;
  8392. }
  8393. public override Builder MergeFrom(pb::CodedInputStream input) {
  8394. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8395. }
  8396. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8397. pb::UnknownFieldSet.Builder unknownFields =
  8398. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8399. while (true) {
  8400. uint tag = input.ReadTag();
  8401. switch (tag) {
  8402. case 0:
  8403. this.UnknownFields = unknownFields.Build();
  8404. return this;
  8405. default: {
  8406. if (!ParseUnknownField(input, unknownFields,
  8407. extensionRegistry, tag)) {
  8408. this.UnknownFields = unknownFields.Build();
  8409. return this;
  8410. }
  8411. break;
  8412. }
  8413. case 10: {
  8414. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
  8415. if (HasA) {
  8416. subBuilder.MergeFrom(A);
  8417. }
  8418. input.ReadMessage(subBuilder, extensionRegistry);
  8419. A = subBuilder.BuildPartial();
  8420. break;
  8421. }
  8422. case 16: {
  8423. I = input.ReadInt32();
  8424. break;
  8425. }
  8426. }
  8427. }
  8428. }
  8429. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8430. public bool HasA {
  8431. get { return result.HasA; }
  8432. }
  8433. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8434. get { return result.A; }
  8435. set { SetA(value); }
  8436. }
  8437. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8438. result.hasA = true;
  8439. result.a_ = value;
  8440. return this;
  8441. }
  8442. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
  8443. result.hasA = true;
  8444. result.a_ = builderForValue.Build();
  8445. return this;
  8446. }
  8447. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8448. if (result.HasA &&
  8449. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
  8450. result.a_ =
  8451. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8452. } else {
  8453. result.a_ = value;
  8454. }
  8455. result.hasA = true;
  8456. return this;
  8457. }
  8458. public Builder ClearA() {
  8459. result.hasA = false;
  8460. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8461. return this;
  8462. }
  8463. // optional int32 i = 2;
  8464. public bool HasI {
  8465. get { return result.HasI; }
  8466. }
  8467. public int I {
  8468. get { return result.I; }
  8469. set { SetI(value); }
  8470. }
  8471. public Builder SetI(int value) {
  8472. result.hasI = true;
  8473. result.i_ = value;
  8474. return this;
  8475. }
  8476. public Builder ClearI() {
  8477. result.hasI = false;
  8478. result.i_ = 0;
  8479. return this;
  8480. }
  8481. }
  8482. }
  8483. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8484. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8485. public static TestMutualRecursionA DefaultInstance {
  8486. get { return defaultInstance; }
  8487. }
  8488. public override TestMutualRecursionA DefaultInstanceForType {
  8489. get { return defaultInstance; }
  8490. }
  8491. protected override TestMutualRecursionA ThisMessage {
  8492. get { return this; }
  8493. }
  8494. public static pbd::MessageDescriptor Descriptor {
  8495. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8496. }
  8497. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
  8498. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8499. }
  8500. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8501. private bool hasBb;
  8502. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8503. public bool HasBb {
  8504. get { return hasBb; }
  8505. }
  8506. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8507. get { return bb_; }
  8508. }
  8509. public override bool IsInitialized {
  8510. get {
  8511. return true;
  8512. }
  8513. }
  8514. public override void WriteTo(pb::CodedOutputStream output) {
  8515. if (HasBb) {
  8516. output.WriteMessage(1, Bb);
  8517. }
  8518. UnknownFields.WriteTo(output);
  8519. }
  8520. private int memoizedSerializedSize = -1;
  8521. public override int SerializedSize {
  8522. get {
  8523. int size = memoizedSerializedSize;
  8524. if (size != -1) return size;
  8525. size = 0;
  8526. if (HasBb) {
  8527. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8528. }
  8529. size += UnknownFields.SerializedSize;
  8530. memoizedSerializedSize = size;
  8531. return size;
  8532. }
  8533. }
  8534. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8535. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8536. }
  8537. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data,
  8538. pb::ExtensionRegistry extensionRegistry) {
  8539. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8540. .BuildParsed();
  8541. }
  8542. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data) {
  8543. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8544. }
  8545. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data,
  8546. pb::ExtensionRegistry extensionRegistry) {
  8547. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8548. .BuildParsed();
  8549. }
  8550. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8551. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8552. }
  8553. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(
  8554. global::System.IO.Stream input,
  8555. pb::ExtensionRegistry extensionRegistry) {
  8556. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8557. .BuildParsed();
  8558. }
  8559. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8560. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8561. }
  8562. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8563. pb::ExtensionRegistry extensionRegistry) {
  8564. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8565. .BuildParsed();
  8566. }
  8567. public static Builder CreateBuilder() { return new Builder(); }
  8568. public override Builder CreateBuilderForType() { return new Builder(); }
  8569. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA prototype) {
  8570. return (Builder) new Builder().MergeFrom(prototype);
  8571. }
  8572. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, Builder> {
  8573. protected override Builder ThisBuilder {
  8574. get { return this; }
  8575. }
  8576. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder()
  8577. internal Builder() {}
  8578. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8579. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA MessageBeingBuilt {
  8580. get { return result; }
  8581. }
  8582. public override Builder Clear() {
  8583. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8584. return this;
  8585. }
  8586. public override Builder Clone() {
  8587. return new Builder().MergeFrom(result);
  8588. }
  8589. public override pbd::MessageDescriptor DescriptorForType {
  8590. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
  8591. }
  8592. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA DefaultInstanceForType {
  8593. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  8594. }
  8595. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA BuildPartial() {
  8596. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA returnMe = result;
  8597. result = null;
  8598. return returnMe;
  8599. }
  8600. public override Builder MergeFrom(pb::IMessage other) {
  8601. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) {
  8602. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) other);
  8603. } else {
  8604. base.MergeFrom(other);
  8605. return this;
  8606. }
  8607. }
  8608. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA other) {
  8609. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
  8610. if (other.HasBb) {
  8611. MergeBb(other.Bb);
  8612. }
  8613. this.MergeUnknownFields(other.UnknownFields);
  8614. return this;
  8615. }
  8616. public override Builder MergeFrom(pb::CodedInputStream input) {
  8617. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8618. }
  8619. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8620. pb::UnknownFieldSet.Builder unknownFields =
  8621. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8622. while (true) {
  8623. uint tag = input.ReadTag();
  8624. switch (tag) {
  8625. case 0:
  8626. this.UnknownFields = unknownFields.Build();
  8627. return this;
  8628. default: {
  8629. if (!ParseUnknownField(input, unknownFields,
  8630. extensionRegistry, tag)) {
  8631. this.UnknownFields = unknownFields.Build();
  8632. return this;
  8633. }
  8634. break;
  8635. }
  8636. case 10: {
  8637. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
  8638. if (HasBb) {
  8639. subBuilder.MergeFrom(Bb);
  8640. }
  8641. input.ReadMessage(subBuilder, extensionRegistry);
  8642. Bb = subBuilder.BuildPartial();
  8643. break;
  8644. }
  8645. }
  8646. }
  8647. }
  8648. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8649. public bool HasBb {
  8650. get { return result.HasBb; }
  8651. }
  8652. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8653. get { return result.Bb; }
  8654. set { SetBb(value); }
  8655. }
  8656. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8657. result.hasBb = true;
  8658. result.bb_ = value;
  8659. return this;
  8660. }
  8661. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
  8662. result.hasBb = true;
  8663. result.bb_ = builderForValue.Build();
  8664. return this;
  8665. }
  8666. public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8667. if (result.HasBb &&
  8668. result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
  8669. result.bb_ =
  8670. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8671. } else {
  8672. result.bb_ = value;
  8673. }
  8674. result.hasBb = true;
  8675. return this;
  8676. }
  8677. public Builder ClearBb() {
  8678. result.hasBb = false;
  8679. result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8680. return this;
  8681. }
  8682. }
  8683. }
  8684. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8685. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8686. public static TestMutualRecursionB DefaultInstance {
  8687. get { return defaultInstance; }
  8688. }
  8689. public override TestMutualRecursionB DefaultInstanceForType {
  8690. get { return defaultInstance; }
  8691. }
  8692. protected override TestMutualRecursionB ThisMessage {
  8693. get { return this; }
  8694. }
  8695. public static pbd::MessageDescriptor Descriptor {
  8696. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8697. }
  8698. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
  8699. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8700. }
  8701. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8702. private bool hasA;
  8703. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8704. public bool HasA {
  8705. get { return hasA; }
  8706. }
  8707. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8708. get { return a_; }
  8709. }
  8710. // optional int32 optional_int32 = 2;
  8711. private bool hasOptionalInt32;
  8712. private int optionalInt32_ = 0;
  8713. public bool HasOptionalInt32 {
  8714. get { return hasOptionalInt32; }
  8715. }
  8716. public int OptionalInt32 {
  8717. get { return optionalInt32_; }
  8718. }
  8719. public override bool IsInitialized {
  8720. get {
  8721. return true;
  8722. }
  8723. }
  8724. public override void WriteTo(pb::CodedOutputStream output) {
  8725. if (HasA) {
  8726. output.WriteMessage(1, A);
  8727. }
  8728. if (HasOptionalInt32) {
  8729. output.WriteInt32(2, OptionalInt32);
  8730. }
  8731. UnknownFields.WriteTo(output);
  8732. }
  8733. private int memoizedSerializedSize = -1;
  8734. public override int SerializedSize {
  8735. get {
  8736. int size = memoizedSerializedSize;
  8737. if (size != -1) return size;
  8738. size = 0;
  8739. if (HasA) {
  8740. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8741. }
  8742. if (HasOptionalInt32) {
  8743. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8744. }
  8745. size += UnknownFields.SerializedSize;
  8746. memoizedSerializedSize = size;
  8747. return size;
  8748. }
  8749. }
  8750. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8751. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8752. }
  8753. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data,
  8754. pb::ExtensionRegistry extensionRegistry) {
  8755. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8756. .BuildParsed();
  8757. }
  8758. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data) {
  8759. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8760. }
  8761. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data,
  8762. pb::ExtensionRegistry extensionRegistry) {
  8763. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8764. .BuildParsed();
  8765. }
  8766. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8767. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8768. }
  8769. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(
  8770. global::System.IO.Stream input,
  8771. pb::ExtensionRegistry extensionRegistry) {
  8772. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8773. .BuildParsed();
  8774. }
  8775. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8776. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8777. }
  8778. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8779. pb::ExtensionRegistry extensionRegistry) {
  8780. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8781. .BuildParsed();
  8782. }
  8783. public static Builder CreateBuilder() { return new Builder(); }
  8784. public override Builder CreateBuilderForType() { return new Builder(); }
  8785. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB prototype) {
  8786. return (Builder) new Builder().MergeFrom(prototype);
  8787. }
  8788. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, Builder> {
  8789. protected override Builder ThisBuilder {
  8790. get { return this; }
  8791. }
  8792. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder()
  8793. internal Builder() {}
  8794. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8795. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB MessageBeingBuilt {
  8796. get { return result; }
  8797. }
  8798. public override Builder Clear() {
  8799. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8800. return this;
  8801. }
  8802. public override Builder Clone() {
  8803. return new Builder().MergeFrom(result);
  8804. }
  8805. public override pbd::MessageDescriptor DescriptorForType {
  8806. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
  8807. }
  8808. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB DefaultInstanceForType {
  8809. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  8810. }
  8811. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB BuildPartial() {
  8812. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB returnMe = result;
  8813. result = null;
  8814. return returnMe;
  8815. }
  8816. public override Builder MergeFrom(pb::IMessage other) {
  8817. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) {
  8818. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) other);
  8819. } else {
  8820. base.MergeFrom(other);
  8821. return this;
  8822. }
  8823. }
  8824. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB other) {
  8825. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
  8826. if (other.HasA) {
  8827. MergeA(other.A);
  8828. }
  8829. if (other.HasOptionalInt32) {
  8830. OptionalInt32 = other.OptionalInt32;
  8831. }
  8832. this.MergeUnknownFields(other.UnknownFields);
  8833. return this;
  8834. }
  8835. public override Builder MergeFrom(pb::CodedInputStream input) {
  8836. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8837. }
  8838. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8839. pb::UnknownFieldSet.Builder unknownFields =
  8840. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8841. while (true) {
  8842. uint tag = input.ReadTag();
  8843. switch (tag) {
  8844. case 0:
  8845. this.UnknownFields = unknownFields.Build();
  8846. return this;
  8847. default: {
  8848. if (!ParseUnknownField(input, unknownFields,
  8849. extensionRegistry, tag)) {
  8850. this.UnknownFields = unknownFields.Build();
  8851. return this;
  8852. }
  8853. break;
  8854. }
  8855. case 10: {
  8856. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
  8857. if (HasA) {
  8858. subBuilder.MergeFrom(A);
  8859. }
  8860. input.ReadMessage(subBuilder, extensionRegistry);
  8861. A = subBuilder.BuildPartial();
  8862. break;
  8863. }
  8864. case 16: {
  8865. OptionalInt32 = input.ReadInt32();
  8866. break;
  8867. }
  8868. }
  8869. }
  8870. }
  8871. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8872. public bool HasA {
  8873. get { return result.HasA; }
  8874. }
  8875. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8876. get { return result.A; }
  8877. set { SetA(value); }
  8878. }
  8879. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8880. result.hasA = true;
  8881. result.a_ = value;
  8882. return this;
  8883. }
  8884. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
  8885. result.hasA = true;
  8886. result.a_ = builderForValue.Build();
  8887. return this;
  8888. }
  8889. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8890. if (result.HasA &&
  8891. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
  8892. result.a_ =
  8893. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8894. } else {
  8895. result.a_ = value;
  8896. }
  8897. result.hasA = true;
  8898. return this;
  8899. }
  8900. public Builder ClearA() {
  8901. result.hasA = false;
  8902. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8903. return this;
  8904. }
  8905. // optional int32 optional_int32 = 2;
  8906. public bool HasOptionalInt32 {
  8907. get { return result.HasOptionalInt32; }
  8908. }
  8909. public int OptionalInt32 {
  8910. get { return result.OptionalInt32; }
  8911. set { SetOptionalInt32(value); }
  8912. }
  8913. public Builder SetOptionalInt32(int value) {
  8914. result.hasOptionalInt32 = true;
  8915. result.optionalInt32_ = value;
  8916. return this;
  8917. }
  8918. public Builder ClearOptionalInt32() {
  8919. result.hasOptionalInt32 = false;
  8920. result.optionalInt32_ = 0;
  8921. return this;
  8922. }
  8923. }
  8924. }
  8925. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8926. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8927. public static TestDupFieldNumber DefaultInstance {
  8928. get { return defaultInstance; }
  8929. }
  8930. public override TestDupFieldNumber DefaultInstanceForType {
  8931. get { return defaultInstance; }
  8932. }
  8933. protected override TestDupFieldNumber ThisMessage {
  8934. get { return this; }
  8935. }
  8936. public static pbd::MessageDescriptor Descriptor {
  8937. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8938. }
  8939. protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
  8940. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8941. }
  8942. #region Nested types
  8943. public static class Types {
  8944. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8945. private static readonly Foo defaultInstance = new Foo();
  8946. public static Foo DefaultInstance {
  8947. get { return defaultInstance; }
  8948. }
  8949. public override Foo DefaultInstanceForType {
  8950. get { return defaultInstance; }
  8951. }
  8952. protected override Foo ThisMessage {
  8953. get { return this; }
  8954. }
  8955. public static pbd::MessageDescriptor Descriptor {
  8956. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8957. }
  8958. protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
  8959. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8960. }
  8961. // optional int32 a = 1;
  8962. private bool hasA;
  8963. private int a_ = 0;
  8964. public bool HasA {
  8965. get { return hasA; }
  8966. }
  8967. public int A {
  8968. get { return a_; }
  8969. }
  8970. public override bool IsInitialized {
  8971. get {
  8972. return true;
  8973. }
  8974. }
  8975. public override void WriteTo(pb::CodedOutputStream output) {
  8976. if (HasA) {
  8977. output.WriteInt32(1, A);
  8978. }
  8979. UnknownFields.WriteTo(output);
  8980. }
  8981. private int memoizedSerializedSize = -1;
  8982. public override int SerializedSize {
  8983. get {
  8984. int size = memoizedSerializedSize;
  8985. if (size != -1) return size;
  8986. size = 0;
  8987. if (HasA) {
  8988. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8989. }
  8990. size += UnknownFields.SerializedSize;
  8991. memoizedSerializedSize = size;
  8992. return size;
  8993. }
  8994. }
  8995. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8996. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8997. }
  8998. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  8999. pb::ExtensionRegistry extensionRegistry) {
  9000. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9001. .BuildParsed();
  9002. }
  9003. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  9004. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9005. }
  9006. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data,
  9007. pb::ExtensionRegistry extensionRegistry) {
  9008. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9009. .BuildParsed();
  9010. }
  9011. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9012. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9013. }
  9014. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(
  9015. global::System.IO.Stream input,
  9016. pb::ExtensionRegistry extensionRegistry) {
  9017. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9018. .BuildParsed();
  9019. }
  9020. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9021. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9022. }
  9023. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9024. pb::ExtensionRegistry extensionRegistry) {
  9025. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9026. .BuildParsed();
  9027. }
  9028. public static Builder CreateBuilder() { return new Builder(); }
  9029. public override Builder CreateBuilderForType() { return new Builder(); }
  9030. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo prototype) {
  9031. return (Builder) new Builder().MergeFrom(prototype);
  9032. }
  9033. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, Builder> {
  9034. protected override Builder ThisBuilder {
  9035. get { return this; }
  9036. }
  9037. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder()
  9038. internal Builder() {}
  9039. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9040. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9041. get { return result; }
  9042. }
  9043. public override Builder Clear() {
  9044. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9045. return this;
  9046. }
  9047. public override Builder Clone() {
  9048. return new Builder().MergeFrom(result);
  9049. }
  9050. public override pbd::MessageDescriptor DescriptorForType {
  9051. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
  9052. }
  9053. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9054. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9055. }
  9056. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo BuildPartial() {
  9057. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo returnMe = result;
  9058. result = null;
  9059. return returnMe;
  9060. }
  9061. public override Builder MergeFrom(pb::IMessage other) {
  9062. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) {
  9063. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) other);
  9064. } else {
  9065. base.MergeFrom(other);
  9066. return this;
  9067. }
  9068. }
  9069. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo other) {
  9070. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9071. if (other.HasA) {
  9072. A = other.A;
  9073. }
  9074. this.MergeUnknownFields(other.UnknownFields);
  9075. return this;
  9076. }
  9077. public override Builder MergeFrom(pb::CodedInputStream input) {
  9078. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9079. }
  9080. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9081. pb::UnknownFieldSet.Builder unknownFields =
  9082. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9083. while (true) {
  9084. uint tag = input.ReadTag();
  9085. switch (tag) {
  9086. case 0:
  9087. this.UnknownFields = unknownFields.Build();
  9088. return this;
  9089. default: {
  9090. if (!ParseUnknownField(input, unknownFields,
  9091. extensionRegistry, tag)) {
  9092. this.UnknownFields = unknownFields.Build();
  9093. return this;
  9094. }
  9095. break;
  9096. }
  9097. case 8: {
  9098. A = input.ReadInt32();
  9099. break;
  9100. }
  9101. }
  9102. }
  9103. }
  9104. // optional int32 a = 1;
  9105. public bool HasA {
  9106. get { return result.HasA; }
  9107. }
  9108. public int A {
  9109. get { return result.A; }
  9110. set { SetA(value); }
  9111. }
  9112. public Builder SetA(int value) {
  9113. result.hasA = true;
  9114. result.a_ = value;
  9115. return this;
  9116. }
  9117. public Builder ClearA() {
  9118. result.hasA = false;
  9119. result.a_ = 0;
  9120. return this;
  9121. }
  9122. }
  9123. }
  9124. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9125. private static readonly Bar defaultInstance = new Bar();
  9126. public static Bar DefaultInstance {
  9127. get { return defaultInstance; }
  9128. }
  9129. public override Bar DefaultInstanceForType {
  9130. get { return defaultInstance; }
  9131. }
  9132. protected override Bar ThisMessage {
  9133. get { return this; }
  9134. }
  9135. public static pbd::MessageDescriptor Descriptor {
  9136. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9137. }
  9138. protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
  9139. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9140. }
  9141. // optional int32 a = 1;
  9142. private bool hasA;
  9143. private int a_ = 0;
  9144. public bool HasA {
  9145. get { return hasA; }
  9146. }
  9147. public int A {
  9148. get { return a_; }
  9149. }
  9150. public override bool IsInitialized {
  9151. get {
  9152. return true;
  9153. }
  9154. }
  9155. public override void WriteTo(pb::CodedOutputStream output) {
  9156. if (HasA) {
  9157. output.WriteInt32(1, A);
  9158. }
  9159. UnknownFields.WriteTo(output);
  9160. }
  9161. private int memoizedSerializedSize = -1;
  9162. public override int SerializedSize {
  9163. get {
  9164. int size = memoizedSerializedSize;
  9165. if (size != -1) return size;
  9166. size = 0;
  9167. if (HasA) {
  9168. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9169. }
  9170. size += UnknownFields.SerializedSize;
  9171. memoizedSerializedSize = size;
  9172. return size;
  9173. }
  9174. }
  9175. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9176. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9177. }
  9178. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9179. pb::ExtensionRegistry extensionRegistry) {
  9180. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9181. .BuildParsed();
  9182. }
  9183. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9184. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9185. }
  9186. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data,
  9187. pb::ExtensionRegistry extensionRegistry) {
  9188. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9189. .BuildParsed();
  9190. }
  9191. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9192. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9193. }
  9194. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(
  9195. global::System.IO.Stream input,
  9196. pb::ExtensionRegistry extensionRegistry) {
  9197. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9198. .BuildParsed();
  9199. }
  9200. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9201. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9202. }
  9203. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9204. pb::ExtensionRegistry extensionRegistry) {
  9205. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9206. .BuildParsed();
  9207. }
  9208. public static Builder CreateBuilder() { return new Builder(); }
  9209. public override Builder CreateBuilderForType() { return new Builder(); }
  9210. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar prototype) {
  9211. return (Builder) new Builder().MergeFrom(prototype);
  9212. }
  9213. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, Builder> {
  9214. protected override Builder ThisBuilder {
  9215. get { return this; }
  9216. }
  9217. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder()
  9218. internal Builder() {}
  9219. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9220. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9221. get { return result; }
  9222. }
  9223. public override Builder Clear() {
  9224. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9225. return this;
  9226. }
  9227. public override Builder Clone() {
  9228. return new Builder().MergeFrom(result);
  9229. }
  9230. public override pbd::MessageDescriptor DescriptorForType {
  9231. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
  9232. }
  9233. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9234. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9235. }
  9236. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar BuildPartial() {
  9237. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar returnMe = result;
  9238. result = null;
  9239. return returnMe;
  9240. }
  9241. public override Builder MergeFrom(pb::IMessage other) {
  9242. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) {
  9243. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) other);
  9244. } else {
  9245. base.MergeFrom(other);
  9246. return this;
  9247. }
  9248. }
  9249. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar other) {
  9250. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9251. if (other.HasA) {
  9252. A = other.A;
  9253. }
  9254. this.MergeUnknownFields(other.UnknownFields);
  9255. return this;
  9256. }
  9257. public override Builder MergeFrom(pb::CodedInputStream input) {
  9258. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9259. }
  9260. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9261. pb::UnknownFieldSet.Builder unknownFields =
  9262. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9263. while (true) {
  9264. uint tag = input.ReadTag();
  9265. switch (tag) {
  9266. case 0:
  9267. this.UnknownFields = unknownFields.Build();
  9268. return this;
  9269. default: {
  9270. if (!ParseUnknownField(input, unknownFields,
  9271. extensionRegistry, tag)) {
  9272. this.UnknownFields = unknownFields.Build();
  9273. return this;
  9274. }
  9275. break;
  9276. }
  9277. case 8: {
  9278. A = input.ReadInt32();
  9279. break;
  9280. }
  9281. }
  9282. }
  9283. }
  9284. // optional int32 a = 1;
  9285. public bool HasA {
  9286. get { return result.HasA; }
  9287. }
  9288. public int A {
  9289. get { return result.A; }
  9290. set { SetA(value); }
  9291. }
  9292. public Builder SetA(int value) {
  9293. result.hasA = true;
  9294. result.a_ = value;
  9295. return this;
  9296. }
  9297. public Builder ClearA() {
  9298. result.hasA = false;
  9299. result.a_ = 0;
  9300. return this;
  9301. }
  9302. }
  9303. }
  9304. }
  9305. #endregion
  9306. // optional int32 a = 1;
  9307. private bool hasA;
  9308. private int a_ = 0;
  9309. public bool HasA {
  9310. get { return hasA; }
  9311. }
  9312. public int A {
  9313. get { return a_; }
  9314. }
  9315. // optional group Foo = 2 {
  9316. private bool hasFoo;
  9317. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9318. public bool HasFoo {
  9319. get { return hasFoo; }
  9320. }
  9321. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9322. get { return foo_; }
  9323. }
  9324. // optional group Bar = 3 {
  9325. private bool hasBar;
  9326. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9327. public bool HasBar {
  9328. get { return hasBar; }
  9329. }
  9330. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9331. get { return bar_; }
  9332. }
  9333. public override bool IsInitialized {
  9334. get {
  9335. return true;
  9336. }
  9337. }
  9338. public override void WriteTo(pb::CodedOutputStream output) {
  9339. if (HasA) {
  9340. output.WriteInt32(1, A);
  9341. }
  9342. if (HasFoo) {
  9343. output.WriteGroup(2, Foo);
  9344. }
  9345. if (HasBar) {
  9346. output.WriteGroup(3, Bar);
  9347. }
  9348. UnknownFields.WriteTo(output);
  9349. }
  9350. private int memoizedSerializedSize = -1;
  9351. public override int SerializedSize {
  9352. get {
  9353. int size = memoizedSerializedSize;
  9354. if (size != -1) return size;
  9355. size = 0;
  9356. if (HasA) {
  9357. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9358. }
  9359. if (HasFoo) {
  9360. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9361. }
  9362. if (HasBar) {
  9363. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9364. }
  9365. size += UnknownFields.SerializedSize;
  9366. memoizedSerializedSize = size;
  9367. return size;
  9368. }
  9369. }
  9370. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9371. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9372. }
  9373. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data,
  9374. pb::ExtensionRegistry extensionRegistry) {
  9375. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9376. .BuildParsed();
  9377. }
  9378. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data) {
  9379. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9380. }
  9381. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data,
  9382. pb::ExtensionRegistry extensionRegistry) {
  9383. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9384. .BuildParsed();
  9385. }
  9386. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9387. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9388. }
  9389. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(
  9390. global::System.IO.Stream input,
  9391. pb::ExtensionRegistry extensionRegistry) {
  9392. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9393. .BuildParsed();
  9394. }
  9395. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9396. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9397. }
  9398. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9399. pb::ExtensionRegistry extensionRegistry) {
  9400. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9401. .BuildParsed();
  9402. }
  9403. public static Builder CreateBuilder() { return new Builder(); }
  9404. public override Builder CreateBuilderForType() { return new Builder(); }
  9405. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber prototype) {
  9406. return (Builder) new Builder().MergeFrom(prototype);
  9407. }
  9408. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, Builder> {
  9409. protected override Builder ThisBuilder {
  9410. get { return this; }
  9411. }
  9412. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.CreateBuilder()
  9413. internal Builder() {}
  9414. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9415. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber MessageBeingBuilt {
  9416. get { return result; }
  9417. }
  9418. public override Builder Clear() {
  9419. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9420. return this;
  9421. }
  9422. public override Builder Clone() {
  9423. return new Builder().MergeFrom(result);
  9424. }
  9425. public override pbd::MessageDescriptor DescriptorForType {
  9426. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
  9427. }
  9428. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber DefaultInstanceForType {
  9429. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
  9430. }
  9431. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber BuildPartial() {
  9432. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber returnMe = result;
  9433. result = null;
  9434. return returnMe;
  9435. }
  9436. public override Builder MergeFrom(pb::IMessage other) {
  9437. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) {
  9438. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) other);
  9439. } else {
  9440. base.MergeFrom(other);
  9441. return this;
  9442. }
  9443. }
  9444. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber other) {
  9445. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
  9446. if (other.HasA) {
  9447. A = other.A;
  9448. }
  9449. if (other.HasFoo) {
  9450. MergeFoo(other.Foo);
  9451. }
  9452. if (other.HasBar) {
  9453. MergeBar(other.Bar);
  9454. }
  9455. this.MergeUnknownFields(other.UnknownFields);
  9456. return this;
  9457. }
  9458. public override Builder MergeFrom(pb::CodedInputStream input) {
  9459. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9460. }
  9461. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9462. pb::UnknownFieldSet.Builder unknownFields =
  9463. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9464. while (true) {
  9465. uint tag = input.ReadTag();
  9466. switch (tag) {
  9467. case 0:
  9468. this.UnknownFields = unknownFields.Build();
  9469. return this;
  9470. default: {
  9471. if (!ParseUnknownField(input, unknownFields,
  9472. extensionRegistry, tag)) {
  9473. this.UnknownFields = unknownFields.Build();
  9474. return this;
  9475. }
  9476. break;
  9477. }
  9478. case 8: {
  9479. A = input.ReadInt32();
  9480. break;
  9481. }
  9482. case 19: {
  9483. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
  9484. if (HasFoo) {
  9485. subBuilder.MergeFrom(Foo);
  9486. }
  9487. input.ReadGroup(2, subBuilder, extensionRegistry);
  9488. Foo = subBuilder.BuildPartial();
  9489. break;
  9490. }
  9491. case 27: {
  9492. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
  9493. if (HasBar) {
  9494. subBuilder.MergeFrom(Bar);
  9495. }
  9496. input.ReadGroup(3, subBuilder, extensionRegistry);
  9497. Bar = subBuilder.BuildPartial();
  9498. break;
  9499. }
  9500. }
  9501. }
  9502. }
  9503. // optional int32 a = 1;
  9504. public bool HasA {
  9505. get { return result.HasA; }
  9506. }
  9507. public int A {
  9508. get { return result.A; }
  9509. set { SetA(value); }
  9510. }
  9511. public Builder SetA(int value) {
  9512. result.hasA = true;
  9513. result.a_ = value;
  9514. return this;
  9515. }
  9516. public Builder ClearA() {
  9517. result.hasA = false;
  9518. result.a_ = 0;
  9519. return this;
  9520. }
  9521. // optional group Foo = 2 {
  9522. public bool HasFoo {
  9523. get { return result.HasFoo; }
  9524. }
  9525. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9526. get { return result.Foo; }
  9527. set { SetFoo(value); }
  9528. }
  9529. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9530. result.hasFoo = true;
  9531. result.foo_ = value;
  9532. return this;
  9533. }
  9534. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9535. result.hasFoo = true;
  9536. result.foo_ = builderForValue.Build();
  9537. return this;
  9538. }
  9539. public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9540. if (result.HasFoo &&
  9541. result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9542. result.foo_ =
  9543. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9544. } else {
  9545. result.foo_ = value;
  9546. }
  9547. result.hasFoo = true;
  9548. return this;
  9549. }
  9550. public Builder ClearFoo() {
  9551. result.hasFoo = false;
  9552. result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9553. return this;
  9554. }
  9555. // optional group Bar = 3 {
  9556. public bool HasBar {
  9557. get { return result.HasBar; }
  9558. }
  9559. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9560. get { return result.Bar; }
  9561. set { SetBar(value); }
  9562. }
  9563. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9564. result.hasBar = true;
  9565. result.bar_ = value;
  9566. return this;
  9567. }
  9568. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9569. result.hasBar = true;
  9570. result.bar_ = builderForValue.Build();
  9571. return this;
  9572. }
  9573. public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9574. if (result.HasBar &&
  9575. result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9576. result.bar_ =
  9577. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9578. } else {
  9579. result.bar_ = value;
  9580. }
  9581. result.hasBar = true;
  9582. return this;
  9583. }
  9584. public Builder ClearBar() {
  9585. result.hasBar = false;
  9586. result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9587. return this;
  9588. }
  9589. }
  9590. }
  9591. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9592. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9593. public static TestNestedMessageHasBits DefaultInstance {
  9594. get { return defaultInstance; }
  9595. }
  9596. public override TestNestedMessageHasBits DefaultInstanceForType {
  9597. get { return defaultInstance; }
  9598. }
  9599. protected override TestNestedMessageHasBits ThisMessage {
  9600. get { return this; }
  9601. }
  9602. public static pbd::MessageDescriptor Descriptor {
  9603. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9604. }
  9605. protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
  9606. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9607. }
  9608. #region Nested types
  9609. public static class Types {
  9610. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9611. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9612. public static NestedMessage DefaultInstance {
  9613. get { return defaultInstance; }
  9614. }
  9615. public override NestedMessage DefaultInstanceForType {
  9616. get { return defaultInstance; }
  9617. }
  9618. protected override NestedMessage ThisMessage {
  9619. get { return this; }
  9620. }
  9621. public static pbd::MessageDescriptor Descriptor {
  9622. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9623. }
  9624. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  9625. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9626. }
  9627. // repeated int32 nestedmessage_repeated_int32 = 1;
  9628. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9629. public scg::IList<int> NestedmessageRepeatedInt32List {
  9630. get { return nestedmessageRepeatedInt32_; }
  9631. }
  9632. public int NestedmessageRepeatedInt32Count {
  9633. get { return nestedmessageRepeatedInt32_.Count; }
  9634. }
  9635. public int GetNestedmessageRepeatedInt32(int index) {
  9636. return nestedmessageRepeatedInt32_[index];
  9637. }
  9638. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9639. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9640. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9641. get { return nestedmessageRepeatedForeignmessage_; }
  9642. }
  9643. public int NestedmessageRepeatedForeignmessageCount
  9644. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9645. }
  9646. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9647. return nestedmessageRepeatedForeignmessage_ [index];
  9648. }
  9649. public override bool IsInitialized {
  9650. get {
  9651. return true;
  9652. }
  9653. }
  9654. public override void WriteTo(pb::CodedOutputStream output) {
  9655. foreach (int element in NestedmessageRepeatedInt32List) {
  9656. output.WriteInt32(1, element);
  9657. }
  9658. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9659. output.WriteMessage(2, element);
  9660. }
  9661. UnknownFields.WriteTo(output);
  9662. }
  9663. private int memoizedSerializedSize = -1;
  9664. public override int SerializedSize {
  9665. get {
  9666. int size = memoizedSerializedSize;
  9667. if (size != -1) return size;
  9668. size = 0;
  9669. foreach (int element in NestedmessageRepeatedInt32List) {
  9670. size += pb::CodedOutputStream
  9671. .ComputeInt32Size(1, element);
  9672. }
  9673. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9674. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9675. }
  9676. size += UnknownFields.SerializedSize;
  9677. memoizedSerializedSize = size;
  9678. return size;
  9679. }
  9680. }
  9681. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9682. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9683. }
  9684. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9685. pb::ExtensionRegistry extensionRegistry) {
  9686. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9687. .BuildParsed();
  9688. }
  9689. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9690. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9691. }
  9692. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data,
  9693. pb::ExtensionRegistry extensionRegistry) {
  9694. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9695. .BuildParsed();
  9696. }
  9697. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9698. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9699. }
  9700. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9701. global::System.IO.Stream input,
  9702. pb::ExtensionRegistry extensionRegistry) {
  9703. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9704. .BuildParsed();
  9705. }
  9706. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9707. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9708. }
  9709. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9710. pb::ExtensionRegistry extensionRegistry) {
  9711. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9712. .BuildParsed();
  9713. }
  9714. public static Builder CreateBuilder() { return new Builder(); }
  9715. public override Builder CreateBuilderForType() { return new Builder(); }
  9716. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9717. return (Builder) new Builder().MergeFrom(prototype);
  9718. }
  9719. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9720. protected override Builder ThisBuilder {
  9721. get { return this; }
  9722. }
  9723. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9724. internal Builder() {}
  9725. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9726. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9727. get { return result; }
  9728. }
  9729. public override Builder Clear() {
  9730. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9731. return this;
  9732. }
  9733. public override Builder Clone() {
  9734. return new Builder().MergeFrom(result);
  9735. }
  9736. public override pbd::MessageDescriptor DescriptorForType {
  9737. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9738. }
  9739. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9740. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9741. }
  9742. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9743. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9744. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9745. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9746. }
  9747. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9748. result = null;
  9749. return returnMe;
  9750. }
  9751. public override Builder MergeFrom(pb::IMessage other) {
  9752. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) {
  9753. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) other);
  9754. } else {
  9755. base.MergeFrom(other);
  9756. return this;
  9757. }
  9758. }
  9759. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage other) {
  9760. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9761. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9762. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9763. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9764. }
  9765. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9766. }
  9767. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9768. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9769. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9770. }
  9771. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9772. }
  9773. this.MergeUnknownFields(other.UnknownFields);
  9774. return this;
  9775. }
  9776. public override Builder MergeFrom(pb::CodedInputStream input) {
  9777. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9778. }
  9779. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9780. pb::UnknownFieldSet.Builder unknownFields =
  9781. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9782. while (true) {
  9783. uint tag = input.ReadTag();
  9784. switch (tag) {
  9785. case 0:
  9786. this.UnknownFields = unknownFields.Build();
  9787. return this;
  9788. default: {
  9789. if (!ParseUnknownField(input, unknownFields,
  9790. extensionRegistry, tag)) {
  9791. this.UnknownFields = unknownFields.Build();
  9792. return this;
  9793. }
  9794. break;
  9795. }
  9796. case 8: {
  9797. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9798. break;
  9799. }
  9800. case 18: {
  9801. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  9802. input.ReadMessage(subBuilder, extensionRegistry);
  9803. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9804. break;
  9805. }
  9806. }
  9807. }
  9808. }
  9809. // repeated int32 nestedmessage_repeated_int32 = 1;
  9810. public scg::IList<int> NestedmessageRepeatedInt32List {
  9811. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9812. }
  9813. public int NestedmessageRepeatedInt32Count {
  9814. get { return result.NestedmessageRepeatedInt32Count; }
  9815. }
  9816. public int GetNestedmessageRepeatedInt32(int index) {
  9817. return result.GetNestedmessageRepeatedInt32(index);
  9818. }
  9819. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9820. result.nestedmessageRepeatedInt32_[index] = value;
  9821. return this;
  9822. }
  9823. public Builder AddNestedmessageRepeatedInt32(int value) {
  9824. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9825. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9826. }
  9827. result.nestedmessageRepeatedInt32_.Add(value);
  9828. return this;
  9829. }
  9830. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9831. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9832. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9833. }
  9834. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9835. return this;
  9836. }
  9837. public Builder ClearNestedmessageRepeatedInt32() {
  9838. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9839. return this;
  9840. }
  9841. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9842. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9843. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9844. }
  9845. public int NestedmessageRepeatedForeignmessageCount {
  9846. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9847. }
  9848. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9849. return result.GetNestedmessageRepeatedForeignmessage(index);
  9850. }
  9851. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9852. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9853. return this;
  9854. }
  9855. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9856. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9857. return this;
  9858. }
  9859. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9860. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9861. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9862. }
  9863. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9864. return this;
  9865. }
  9866. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9867. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9868. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9869. }
  9870. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9871. return this;
  9872. }
  9873. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  9874. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9875. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9876. }
  9877. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9878. return this;
  9879. }
  9880. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9881. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9882. return this;
  9883. }
  9884. }
  9885. }
  9886. }
  9887. #endregion
  9888. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9889. private bool hasOptionalNestedMessage;
  9890. private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9891. public bool HasOptionalNestedMessage {
  9892. get { return hasOptionalNestedMessage; }
  9893. }
  9894. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9895. get { return optionalNestedMessage_; }
  9896. }
  9897. public override bool IsInitialized {
  9898. get {
  9899. return true;
  9900. }
  9901. }
  9902. public override void WriteTo(pb::CodedOutputStream output) {
  9903. if (HasOptionalNestedMessage) {
  9904. output.WriteMessage(1, OptionalNestedMessage);
  9905. }
  9906. UnknownFields.WriteTo(output);
  9907. }
  9908. private int memoizedSerializedSize = -1;
  9909. public override int SerializedSize {
  9910. get {
  9911. int size = memoizedSerializedSize;
  9912. if (size != -1) return size;
  9913. size = 0;
  9914. if (HasOptionalNestedMessage) {
  9915. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9916. }
  9917. size += UnknownFields.SerializedSize;
  9918. memoizedSerializedSize = size;
  9919. return size;
  9920. }
  9921. }
  9922. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9923. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9924. }
  9925. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9926. pb::ExtensionRegistry extensionRegistry) {
  9927. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9928. .BuildParsed();
  9929. }
  9930. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data) {
  9931. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9932. }
  9933. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data,
  9934. pb::ExtensionRegistry extensionRegistry) {
  9935. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9936. .BuildParsed();
  9937. }
  9938. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9939. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9940. }
  9941. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(
  9942. global::System.IO.Stream input,
  9943. pb::ExtensionRegistry extensionRegistry) {
  9944. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9945. .BuildParsed();
  9946. }
  9947. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9948. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9949. }
  9950. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9951. pb::ExtensionRegistry extensionRegistry) {
  9952. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9953. .BuildParsed();
  9954. }
  9955. public static Builder CreateBuilder() { return new Builder(); }
  9956. public override Builder CreateBuilderForType() { return new Builder(); }
  9957. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits prototype) {
  9958. return (Builder) new Builder().MergeFrom(prototype);
  9959. }
  9960. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, Builder> {
  9961. protected override Builder ThisBuilder {
  9962. get { return this; }
  9963. }
  9964. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.CreateBuilder()
  9965. internal Builder() {}
  9966. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9967. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits MessageBeingBuilt {
  9968. get { return result; }
  9969. }
  9970. public override Builder Clear() {
  9971. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9972. return this;
  9973. }
  9974. public override Builder Clone() {
  9975. return new Builder().MergeFrom(result);
  9976. }
  9977. public override pbd::MessageDescriptor DescriptorForType {
  9978. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
  9979. }
  9980. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits DefaultInstanceForType {
  9981. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
  9982. }
  9983. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits BuildPartial() {
  9984. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits returnMe = result;
  9985. result = null;
  9986. return returnMe;
  9987. }
  9988. public override Builder MergeFrom(pb::IMessage other) {
  9989. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) {
  9990. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) other);
  9991. } else {
  9992. base.MergeFrom(other);
  9993. return this;
  9994. }
  9995. }
  9996. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits other) {
  9997. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
  9998. if (other.HasOptionalNestedMessage) {
  9999. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  10000. }
  10001. this.MergeUnknownFields(other.UnknownFields);
  10002. return this;
  10003. }
  10004. public override Builder MergeFrom(pb::CodedInputStream input) {
  10005. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10006. }
  10007. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10008. pb::UnknownFieldSet.Builder unknownFields =
  10009. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10010. while (true) {
  10011. uint tag = input.ReadTag();
  10012. switch (tag) {
  10013. case 0:
  10014. this.UnknownFields = unknownFields.Build();
  10015. return this;
  10016. default: {
  10017. if (!ParseUnknownField(input, unknownFields,
  10018. extensionRegistry, tag)) {
  10019. this.UnknownFields = unknownFields.Build();
  10020. return this;
  10021. }
  10022. break;
  10023. }
  10024. case 10: {
  10025. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  10026. if (HasOptionalNestedMessage) {
  10027. subBuilder.MergeFrom(OptionalNestedMessage);
  10028. }
  10029. input.ReadMessage(subBuilder, extensionRegistry);
  10030. OptionalNestedMessage = subBuilder.BuildPartial();
  10031. break;
  10032. }
  10033. }
  10034. }
  10035. }
  10036. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10037. public bool HasOptionalNestedMessage {
  10038. get { return result.HasOptionalNestedMessage; }
  10039. }
  10040. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10041. get { return result.OptionalNestedMessage; }
  10042. set { SetOptionalNestedMessage(value); }
  10043. }
  10044. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10045. result.hasOptionalNestedMessage = true;
  10046. result.optionalNestedMessage_ = value;
  10047. return this;
  10048. }
  10049. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10050. result.hasOptionalNestedMessage = true;
  10051. result.optionalNestedMessage_ = builderForValue.Build();
  10052. return this;
  10053. }
  10054. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10055. if (result.HasOptionalNestedMessage &&
  10056. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10057. result.optionalNestedMessage_ =
  10058. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10059. } else {
  10060. result.optionalNestedMessage_ = value;
  10061. }
  10062. result.hasOptionalNestedMessage = true;
  10063. return this;
  10064. }
  10065. public Builder ClearOptionalNestedMessage() {
  10066. result.hasOptionalNestedMessage = false;
  10067. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10068. return this;
  10069. }
  10070. }
  10071. }
  10072. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10073. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10074. public static TestCamelCaseFieldNames DefaultInstance {
  10075. get { return defaultInstance; }
  10076. }
  10077. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10078. get { return defaultInstance; }
  10079. }
  10080. protected override TestCamelCaseFieldNames ThisMessage {
  10081. get { return this; }
  10082. }
  10083. public static pbd::MessageDescriptor Descriptor {
  10084. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10085. }
  10086. protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
  10087. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10088. }
  10089. // optional int32 PrimitiveField = 1;
  10090. private bool hasPrimitiveField;
  10091. private int primitiveField_ = 0;
  10092. public bool HasPrimitiveField {
  10093. get { return hasPrimitiveField; }
  10094. }
  10095. public int PrimitiveField {
  10096. get { return primitiveField_; }
  10097. }
  10098. // optional string StringField = 2;
  10099. private bool hasStringField;
  10100. private string stringField_ = "";
  10101. public bool HasStringField {
  10102. get { return hasStringField; }
  10103. }
  10104. public string StringField {
  10105. get { return stringField_; }
  10106. }
  10107. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10108. private bool hasEnumField;
  10109. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10110. public bool HasEnumField {
  10111. get { return hasEnumField; }
  10112. }
  10113. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { get { return enumField_; }}
  10114. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10115. private bool hasMessageField;
  10116. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10117. public bool HasMessageField {
  10118. get { return hasMessageField; }
  10119. }
  10120. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10121. get { return messageField_; }
  10122. }
  10123. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10124. private bool hasStringPieceField;
  10125. private string stringPieceField_ = "";
  10126. public bool HasStringPieceField {
  10127. get { return hasStringPieceField; }
  10128. }
  10129. public string StringPieceField {
  10130. get { return stringPieceField_; }
  10131. }
  10132. // optional string CordField = 6 [ctype = CORD];
  10133. private bool hasCordField;
  10134. private string cordField_ = "";
  10135. public bool HasCordField {
  10136. get { return hasCordField; }
  10137. }
  10138. public string CordField {
  10139. get { return cordField_; }
  10140. }
  10141. // repeated int32 RepeatedPrimitiveField = 7;
  10142. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10143. public scg::IList<int> RepeatedPrimitiveFieldList {
  10144. get { return repeatedPrimitiveField_; }
  10145. }
  10146. public int RepeatedPrimitiveFieldCount {
  10147. get { return repeatedPrimitiveField_.Count; }
  10148. }
  10149. public int GetRepeatedPrimitiveField(int index) {
  10150. return repeatedPrimitiveField_[index];
  10151. }
  10152. // repeated string RepeatedStringField = 8;
  10153. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10154. public scg::IList<string> RepeatedStringFieldList {
  10155. get { return repeatedStringField_; }
  10156. }
  10157. public int RepeatedStringFieldCount {
  10158. get { return repeatedStringField_.Count; }
  10159. }
  10160. public string GetRepeatedStringField(int index) {
  10161. return repeatedStringField_[index];
  10162. }
  10163. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10164. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  10165. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10166. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10167. }
  10168. public int RepeatedEnumFieldCount {
  10169. get { return repeatedEnumField_.Count; }
  10170. }
  10171. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10172. return repeatedEnumField_[index];
  10173. }
  10174. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10175. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10176. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10177. get { return repeatedMessageField_; }
  10178. }
  10179. public int RepeatedMessageFieldCount
  10180. { get { return repeatedMessageField_.Count; }
  10181. }
  10182. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10183. return repeatedMessageField_ [index];
  10184. }
  10185. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10186. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10187. public scg::IList<string> RepeatedStringPieceFieldList {
  10188. get { return repeatedStringPieceField_; }
  10189. }
  10190. public int RepeatedStringPieceFieldCount {
  10191. get { return repeatedStringPieceField_.Count; }
  10192. }
  10193. public string GetRepeatedStringPieceField(int index) {
  10194. return repeatedStringPieceField_[index];
  10195. }
  10196. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10197. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10198. public scg::IList<string> RepeatedCordFieldList {
  10199. get { return repeatedCordField_; }
  10200. }
  10201. public int RepeatedCordFieldCount {
  10202. get { return repeatedCordField_.Count; }
  10203. }
  10204. public string GetRepeatedCordField(int index) {
  10205. return repeatedCordField_[index];
  10206. }
  10207. public override bool IsInitialized {
  10208. get {
  10209. return true;
  10210. }
  10211. }
  10212. public override void WriteTo(pb::CodedOutputStream output) {
  10213. if (HasPrimitiveField) {
  10214. output.WriteInt32(1, PrimitiveField);
  10215. }
  10216. if (HasStringField) {
  10217. output.WriteString(2, StringField);
  10218. }
  10219. if (HasEnumField) {
  10220. output.WriteEnum(3, (int) EnumField);
  10221. }
  10222. if (HasMessageField) {
  10223. output.WriteMessage(4, MessageField);
  10224. }
  10225. if (HasStringPieceField) {
  10226. output.WriteString(5, StringPieceField);
  10227. }
  10228. if (HasCordField) {
  10229. output.WriteString(6, CordField);
  10230. }
  10231. foreach (int element in RepeatedPrimitiveFieldList) {
  10232. output.WriteInt32(7, element);
  10233. }
  10234. foreach (string element in RepeatedStringFieldList) {
  10235. output.WriteString(8, element);
  10236. }
  10237. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10238. output.WriteEnum(9, (int) element);
  10239. }
  10240. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10241. output.WriteMessage(10, element);
  10242. }
  10243. foreach (string element in RepeatedStringPieceFieldList) {
  10244. output.WriteString(11, element);
  10245. }
  10246. foreach (string element in RepeatedCordFieldList) {
  10247. output.WriteString(12, element);
  10248. }
  10249. UnknownFields.WriteTo(output);
  10250. }
  10251. private int memoizedSerializedSize = -1;
  10252. public override int SerializedSize {
  10253. get {
  10254. int size = memoizedSerializedSize;
  10255. if (size != -1) return size;
  10256. size = 0;
  10257. if (HasPrimitiveField) {
  10258. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10259. }
  10260. if (HasStringField) {
  10261. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10262. }
  10263. if (HasEnumField) {
  10264. size += pb::CodedOutputStream
  10265. .ComputeEnumSize(3, (int) EnumField);
  10266. }
  10267. if (HasMessageField) {
  10268. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10269. }
  10270. if (HasStringPieceField) {
  10271. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10272. }
  10273. if (HasCordField) {
  10274. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10275. }
  10276. foreach (int element in RepeatedPrimitiveFieldList) {
  10277. size += pb::CodedOutputStream
  10278. .ComputeInt32Size(7, element);
  10279. }
  10280. foreach (string element in RepeatedStringFieldList) {
  10281. size += pb::CodedOutputStream
  10282. .ComputeStringSize(8, element);
  10283. }
  10284. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10285. size += pb::CodedOutputStream
  10286. .ComputeEnumSize(9, (int) element);
  10287. }
  10288. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10289. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10290. }
  10291. foreach (string element in RepeatedStringPieceFieldList) {
  10292. size += pb::CodedOutputStream
  10293. .ComputeStringSize(11, element);
  10294. }
  10295. foreach (string element in RepeatedCordFieldList) {
  10296. size += pb::CodedOutputStream
  10297. .ComputeStringSize(12, element);
  10298. }
  10299. size += UnknownFields.SerializedSize;
  10300. memoizedSerializedSize = size;
  10301. return size;
  10302. }
  10303. }
  10304. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10305. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10306. }
  10307. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10308. pb::ExtensionRegistry extensionRegistry) {
  10309. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10310. .BuildParsed();
  10311. }
  10312. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10313. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10314. }
  10315. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data,
  10316. pb::ExtensionRegistry extensionRegistry) {
  10317. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10318. .BuildParsed();
  10319. }
  10320. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10321. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10322. }
  10323. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(
  10324. global::System.IO.Stream input,
  10325. pb::ExtensionRegistry extensionRegistry) {
  10326. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10327. .BuildParsed();
  10328. }
  10329. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10330. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10331. }
  10332. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10333. pb::ExtensionRegistry extensionRegistry) {
  10334. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10335. .BuildParsed();
  10336. }
  10337. public static Builder CreateBuilder() { return new Builder(); }
  10338. public override Builder CreateBuilderForType() { return new Builder(); }
  10339. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames prototype) {
  10340. return (Builder) new Builder().MergeFrom(prototype);
  10341. }
  10342. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, Builder> {
  10343. protected override Builder ThisBuilder {
  10344. get { return this; }
  10345. }
  10346. // Construct using global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.CreateBuilder()
  10347. internal Builder() {}
  10348. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10349. protected override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames MessageBeingBuilt {
  10350. get { return result; }
  10351. }
  10352. public override Builder Clear() {
  10353. result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10354. return this;
  10355. }
  10356. public override Builder Clone() {
  10357. return new Builder().MergeFrom(result);
  10358. }
  10359. public override pbd::MessageDescriptor DescriptorForType {
  10360. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
  10361. }
  10362. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames DefaultInstanceForType {
  10363. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
  10364. }
  10365. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames BuildPartial() {
  10366. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10367. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10368. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10369. if (result.repeatedMessageField_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10370. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10371. }
  10372. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10373. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10374. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames returnMe = result;
  10375. result = null;
  10376. return returnMe;
  10377. }
  10378. public override Builder MergeFrom(pb::IMessage other) {
  10379. if (other is global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) {
  10380. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) other);
  10381. } else {
  10382. base.MergeFrom(other);
  10383. return this;
  10384. }
  10385. }
  10386. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames other) {
  10387. if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
  10388. if (other.HasPrimitiveField) {
  10389. PrimitiveField = other.PrimitiveField;
  10390. }
  10391. if (other.HasStringField) {
  10392. StringField = other.StringField;
  10393. }
  10394. if (other.HasEnumField) {
  10395. EnumField = other.EnumField;
  10396. }
  10397. if (other.HasMessageField) {
  10398. MergeMessageField(other.MessageField);
  10399. }
  10400. if (other.HasStringPieceField) {
  10401. StringPieceField = other.StringPieceField;
  10402. }
  10403. if (other.HasCordField) {
  10404. CordField = other.CordField;
  10405. }
  10406. if (other.repeatedPrimitiveField_.Count != 0) {
  10407. if (result.repeatedPrimitiveField_.Count == 0) {
  10408. result.repeatedPrimitiveField_ = new scg::List<int>();
  10409. }
  10410. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10411. }
  10412. if (other.repeatedStringField_.Count != 0) {
  10413. if (result.repeatedStringField_.Count == 0) {
  10414. result.repeatedStringField_ = new scg::List<string>();
  10415. }
  10416. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10417. }
  10418. if (other.repeatedEnumField_.Count != 0) {
  10419. if (result.repeatedEnumField_.Count == 0) {
  10420. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10421. }
  10422. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10423. }
  10424. if (other.repeatedMessageField_.Count != 0) {
  10425. if (result.repeatedMessageField_.Count == 0) {
  10426. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10427. }
  10428. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10429. }
  10430. if (other.repeatedStringPieceField_.Count != 0) {
  10431. if (result.repeatedStringPieceField_.Count == 0) {
  10432. result.repeatedStringPieceField_ = new scg::List<string>();
  10433. }
  10434. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10435. }
  10436. if (other.repeatedCordField_.Count != 0) {
  10437. if (result.repeatedCordField_.Count == 0) {
  10438. result.repeatedCordField_ = new scg::List<string>();
  10439. }
  10440. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10441. }
  10442. this.MergeUnknownFields(other.UnknownFields);
  10443. return this;
  10444. }
  10445. public override Builder MergeFrom(pb::CodedInputStream input) {
  10446. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10447. }
  10448. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10449. pb::UnknownFieldSet.Builder unknownFields =
  10450. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10451. while (true) {
  10452. uint tag = input.ReadTag();
  10453. switch (tag) {
  10454. case 0:
  10455. this.UnknownFields = unknownFields.Build();
  10456. return this;
  10457. default: {
  10458. if (!ParseUnknownField(input, unknownFields,
  10459. extensionRegistry, tag)) {
  10460. this.UnknownFields = unknownFields.Build();
  10461. return this;
  10462. }
  10463. break;
  10464. }
  10465. case 8: {
  10466. PrimitiveField = input.ReadInt32();
  10467. break;
  10468. }
  10469. case 18: {
  10470. StringField = input.ReadString();
  10471. break;
  10472. }
  10473. case 24: {
  10474. int rawValue = input.ReadEnum();
  10475. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  10476. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10477. } else {
  10478. EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10479. }
  10480. break;
  10481. }
  10482. case 34: {
  10483. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10484. if (HasMessageField) {
  10485. subBuilder.MergeFrom(MessageField);
  10486. }
  10487. input.ReadMessage(subBuilder, extensionRegistry);
  10488. MessageField = subBuilder.BuildPartial();
  10489. break;
  10490. }
  10491. case 42: {
  10492. StringPieceField = input.ReadString();
  10493. break;
  10494. }
  10495. case 50: {
  10496. CordField = input.ReadString();
  10497. break;
  10498. }
  10499. case 56: {
  10500. AddRepeatedPrimitiveField(input.ReadInt32());
  10501. break;
  10502. }
  10503. case 66: {
  10504. AddRepeatedStringField(input.ReadString());
  10505. break;
  10506. }
  10507. case 72: {
  10508. int rawValue = input.ReadEnum();
  10509. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10510. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  10511. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10512. } else {
  10513. AddRepeatedEnumField(value);
  10514. }
  10515. break;
  10516. }
  10517. case 82: {
  10518. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10519. input.ReadMessage(subBuilder, extensionRegistry);
  10520. AddRepeatedMessageField(subBuilder.BuildPartial());
  10521. break;
  10522. }
  10523. case 90: {
  10524. AddRepeatedStringPieceField(input.ReadString());
  10525. break;
  10526. }
  10527. case 98: {
  10528. AddRepeatedCordField(input.ReadString());
  10529. break;
  10530. }
  10531. }
  10532. }
  10533. }
  10534. // optional int32 PrimitiveField = 1;
  10535. public bool HasPrimitiveField {
  10536. get { return result.HasPrimitiveField; }
  10537. }
  10538. public int PrimitiveField {
  10539. get { return result.PrimitiveField; }
  10540. set { SetPrimitiveField(value); }
  10541. }
  10542. public Builder SetPrimitiveField(int value) {
  10543. result.hasPrimitiveField = true;
  10544. result.primitiveField_ = value;
  10545. return this;
  10546. }
  10547. public Builder ClearPrimitiveField() {
  10548. result.hasPrimitiveField = false;
  10549. result.primitiveField_ = 0;
  10550. return this;
  10551. }
  10552. // optional string StringField = 2;
  10553. public bool HasStringField {
  10554. get { return result.HasStringField; }
  10555. }
  10556. public string StringField {
  10557. get { return result.StringField; }
  10558. set { SetStringField(value); }
  10559. }
  10560. public Builder SetStringField(string value) {
  10561. result.hasStringField = true;
  10562. result.stringField_ = value;
  10563. return this;
  10564. }
  10565. public Builder ClearStringField() {
  10566. result.hasStringField = false;
  10567. result.stringField_ = "";
  10568. return this;
  10569. }
  10570. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10571. public bool HasEnumField {
  10572. get { return result.HasEnumField; }
  10573. }
  10574. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  10575. get { return result.EnumField; }
  10576. set { SetEnumField(value); }
  10577. }
  10578. public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10579. result.hasEnumField = true;
  10580. result.enumField_ = value;
  10581. return this;
  10582. }
  10583. public Builder ClearEnumField() {
  10584. result.hasEnumField = false;
  10585. result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10586. return this;
  10587. }
  10588. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10589. public bool HasMessageField {
  10590. get { return result.HasMessageField; }
  10591. }
  10592. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10593. get { return result.MessageField; }
  10594. set { SetMessageField(value); }
  10595. }
  10596. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10597. result.hasMessageField = true;
  10598. result.messageField_ = value;
  10599. return this;
  10600. }
  10601. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10602. result.hasMessageField = true;
  10603. result.messageField_ = builderForValue.Build();
  10604. return this;
  10605. }
  10606. public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10607. if (result.HasMessageField &&
  10608. result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  10609. result.messageField_ =
  10610. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10611. } else {
  10612. result.messageField_ = value;
  10613. }
  10614. result.hasMessageField = true;
  10615. return this;
  10616. }
  10617. public Builder ClearMessageField() {
  10618. result.hasMessageField = false;
  10619. result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10620. return this;
  10621. }
  10622. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10623. public bool HasStringPieceField {
  10624. get { return result.HasStringPieceField; }
  10625. }
  10626. public string StringPieceField {
  10627. get { return result.StringPieceField; }
  10628. set { SetStringPieceField(value); }
  10629. }
  10630. public Builder SetStringPieceField(string value) {
  10631. result.hasStringPieceField = true;
  10632. result.stringPieceField_ = value;
  10633. return this;
  10634. }
  10635. public Builder ClearStringPieceField() {
  10636. result.hasStringPieceField = false;
  10637. result.stringPieceField_ = "";
  10638. return this;
  10639. }
  10640. // optional string CordField = 6 [ctype = CORD];
  10641. public bool HasCordField {
  10642. get { return result.HasCordField; }
  10643. }
  10644. public string CordField {
  10645. get { return result.CordField; }
  10646. set { SetCordField(value); }
  10647. }
  10648. public Builder SetCordField(string value) {
  10649. result.hasCordField = true;
  10650. result.cordField_ = value;
  10651. return this;
  10652. }
  10653. public Builder ClearCordField() {
  10654. result.hasCordField = false;
  10655. result.cordField_ = "";
  10656. return this;
  10657. }
  10658. // repeated int32 RepeatedPrimitiveField = 7;
  10659. public scg::IList<int> RepeatedPrimitiveFieldList {
  10660. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10661. }
  10662. public int RepeatedPrimitiveFieldCount {
  10663. get { return result.RepeatedPrimitiveFieldCount; }
  10664. }
  10665. public int GetRepeatedPrimitiveField(int index) {
  10666. return result.GetRepeatedPrimitiveField(index);
  10667. }
  10668. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10669. result.repeatedPrimitiveField_[index] = value;
  10670. return this;
  10671. }
  10672. public Builder AddRepeatedPrimitiveField(int value) {
  10673. if (result.repeatedPrimitiveField_.Count == 0) {
  10674. result.repeatedPrimitiveField_ = new scg::List<int>();
  10675. }
  10676. result.repeatedPrimitiveField_.Add(value);
  10677. return this;
  10678. }
  10679. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10680. if (result.repeatedPrimitiveField_.Count == 0) {
  10681. result.repeatedPrimitiveField_ = new scg::List<int>();
  10682. }
  10683. base.AddRange(values, result.repeatedPrimitiveField_);
  10684. return this;
  10685. }
  10686. public Builder ClearRepeatedPrimitiveField() {
  10687. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10688. return this;
  10689. }
  10690. // repeated string RepeatedStringField = 8;
  10691. public scg::IList<string> RepeatedStringFieldList {
  10692. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10693. }
  10694. public int RepeatedStringFieldCount {
  10695. get { return result.RepeatedStringFieldCount; }
  10696. }
  10697. public string GetRepeatedStringField(int index) {
  10698. return result.GetRepeatedStringField(index);
  10699. }
  10700. public Builder SetRepeatedStringField(int index, string value) {
  10701. result.repeatedStringField_[index] = value;
  10702. return this;
  10703. }
  10704. public Builder AddRepeatedStringField(string value) {
  10705. if (result.repeatedStringField_.Count == 0) {
  10706. result.repeatedStringField_ = new scg::List<string>();
  10707. }
  10708. result.repeatedStringField_.Add(value);
  10709. return this;
  10710. }
  10711. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10712. if (result.repeatedStringField_.Count == 0) {
  10713. result.repeatedStringField_ = new scg::List<string>();
  10714. }
  10715. base.AddRange(values, result.repeatedStringField_);
  10716. return this;
  10717. }
  10718. public Builder ClearRepeatedStringField() {
  10719. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10720. return this;
  10721. }
  10722. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10723. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10724. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10725. }
  10726. public int RepeatedEnumFieldCount {
  10727. get { return result.RepeatedEnumFieldCount; }
  10728. }
  10729. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10730. return result.GetRepeatedEnumField(index);
  10731. }
  10732. public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10733. result.repeatedEnumField_[index] = value;
  10734. return this;
  10735. }
  10736. public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10737. if (result.repeatedEnumField_.Count == 0) {
  10738. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10739. }
  10740. result.repeatedEnumField_.Add(value);
  10741. return this;
  10742. }
  10743. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  10744. if (result.repeatedEnumField_.Count == 0) {
  10745. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10746. }
  10747. base.AddRange(values, result.repeatedEnumField_);
  10748. return this;
  10749. }
  10750. public Builder ClearRepeatedEnumField() {
  10751. result.repeatedEnumField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  10752. return this;
  10753. }
  10754. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10755. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10756. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10757. }
  10758. public int RepeatedMessageFieldCount {
  10759. get { return result.RepeatedMessageFieldCount; }
  10760. }
  10761. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10762. return result.GetRepeatedMessageField(index);
  10763. }
  10764. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10765. result.repeatedMessageField_[index] = value;
  10766. return this;
  10767. }
  10768. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10769. result.repeatedMessageField_[index] = builderForValue.Build();
  10770. return this;
  10771. }
  10772. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10773. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10774. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10775. }
  10776. result.repeatedMessageField_.Add(value);
  10777. return this;
  10778. }
  10779. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10780. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10781. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10782. }
  10783. result.repeatedMessageField_.Add(builderForValue.Build());
  10784. return this;
  10785. }
  10786. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  10787. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10788. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10789. }
  10790. base.AddRange(values, result.repeatedMessageField_);
  10791. return this;
  10792. }
  10793. public Builder ClearRepeatedMessageField() {
  10794. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10795. return this;
  10796. }
  10797. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10798. public scg::IList<string> RepeatedStringPieceFieldList {
  10799. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10800. }
  10801. public int RepeatedStringPieceFieldCount {
  10802. get { return result.RepeatedStringPieceFieldCount; }
  10803. }
  10804. public string GetRepeatedStringPieceField(int index) {
  10805. return result.GetRepeatedStringPieceField(index);
  10806. }
  10807. public Builder SetRepeatedStringPieceField(int index, string value) {
  10808. result.repeatedStringPieceField_[index] = value;
  10809. return this;
  10810. }
  10811. public Builder AddRepeatedStringPieceField(string value) {
  10812. if (result.repeatedStringPieceField_.Count == 0) {
  10813. result.repeatedStringPieceField_ = new scg::List<string>();
  10814. }
  10815. result.repeatedStringPieceField_.Add(value);
  10816. return this;
  10817. }
  10818. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10819. if (result.repeatedStringPieceField_.Count == 0) {
  10820. result.repeatedStringPieceField_ = new scg::List<string>();
  10821. }
  10822. base.AddRange(values, result.repeatedStringPieceField_);
  10823. return this;
  10824. }
  10825. public Builder ClearRepeatedStringPieceField() {
  10826. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10827. return this;
  10828. }
  10829. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10830. public scg::IList<string> RepeatedCordFieldList {
  10831. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10832. }
  10833. public int RepeatedCordFieldCount {
  10834. get { return result.RepeatedCordFieldCount; }
  10835. }
  10836. public string GetRepeatedCordField(int index) {
  10837. return result.GetRepeatedCordField(index);
  10838. }
  10839. public Builder SetRepeatedCordField(int index, string value) {
  10840. result.repeatedCordField_[index] = value;
  10841. return this;
  10842. }
  10843. public Builder AddRepeatedCordField(string value) {
  10844. if (result.repeatedCordField_.Count == 0) {
  10845. result.repeatedCordField_ = new scg::List<string>();
  10846. }
  10847. result.repeatedCordField_.Add(value);
  10848. return this;
  10849. }
  10850. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10851. if (result.repeatedCordField_.Count == 0) {
  10852. result.repeatedCordField_ = new scg::List<string>();
  10853. }
  10854. base.AddRange(values, result.repeatedCordField_);
  10855. return this;
  10856. }
  10857. public Builder ClearRepeatedCordField() {
  10858. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10859. return this;
  10860. }
  10861. }
  10862. }
  10863. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10864. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10865. public static TestFieldOrderings DefaultInstance {
  10866. get { return defaultInstance; }
  10867. }
  10868. public override TestFieldOrderings DefaultInstanceForType {
  10869. get { return defaultInstance; }
  10870. }
  10871. protected override TestFieldOrderings ThisMessage {
  10872. get { return this; }
  10873. }
  10874. public static pbd::MessageDescriptor Descriptor {
  10875. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10876. }
  10877. protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
  10878. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10879. }
  10880. // optional string my_string = 11;
  10881. private bool hasMyString;
  10882. private string myString_ = "";
  10883. public bool HasMyString {
  10884. get { return hasMyString; }
  10885. }
  10886. public string MyString {
  10887. get { return myString_; }
  10888. }
  10889. // optional int64 my_int = 1;
  10890. private bool hasMyInt;
  10891. private long myInt_ = 0L;
  10892. public bool HasMyInt {
  10893. get { return hasMyInt; }
  10894. }
  10895. public long MyInt {
  10896. get { return myInt_; }
  10897. }
  10898. // optional float my_float = 101;
  10899. private bool hasMyFloat;
  10900. private float myFloat_ = 0F;
  10901. public bool HasMyFloat {
  10902. get { return hasMyFloat; }
  10903. }
  10904. public float MyFloat {
  10905. get { return myFloat_; }
  10906. }
  10907. public override bool IsInitialized {
  10908. get {
  10909. if (!ExtensionsAreInitialized) return false;
  10910. return true;
  10911. }
  10912. }
  10913. public override void WriteTo(pb::CodedOutputStream output) {
  10914. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10915. if (HasMyInt) {
  10916. output.WriteInt64(1, MyInt);
  10917. }
  10918. extensionWriter.WriteUntil(11, output);
  10919. if (HasMyString) {
  10920. output.WriteString(11, MyString);
  10921. }
  10922. extensionWriter.WriteUntil(101, output);
  10923. if (HasMyFloat) {
  10924. output.WriteFloat(101, MyFloat);
  10925. }
  10926. UnknownFields.WriteTo(output);
  10927. }
  10928. private int memoizedSerializedSize = -1;
  10929. public override int SerializedSize {
  10930. get {
  10931. int size = memoizedSerializedSize;
  10932. if (size != -1) return size;
  10933. size = 0;
  10934. if (HasMyInt) {
  10935. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10936. }
  10937. if (HasMyString) {
  10938. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10939. }
  10940. if (HasMyFloat) {
  10941. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10942. }
  10943. size += ExtensionsSerializedSize;
  10944. size += UnknownFields.SerializedSize;
  10945. memoizedSerializedSize = size;
  10946. return size;
  10947. }
  10948. }
  10949. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data) {
  10950. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10951. }
  10952. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data,
  10953. pb::ExtensionRegistry extensionRegistry) {
  10954. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10955. .BuildParsed();
  10956. }
  10957. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data) {
  10958. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10959. }
  10960. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data,
  10961. pb::ExtensionRegistry extensionRegistry) {
  10962. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10963. .BuildParsed();
  10964. }
  10965. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10966. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10967. }
  10968. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(
  10969. global::System.IO.Stream input,
  10970. pb::ExtensionRegistry extensionRegistry) {
  10971. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10972. .BuildParsed();
  10973. }
  10974. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10975. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10976. }
  10977. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10978. pb::ExtensionRegistry extensionRegistry) {
  10979. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10980. .BuildParsed();
  10981. }
  10982. public static Builder CreateBuilder() { return new Builder(); }
  10983. public override Builder CreateBuilderForType() { return new Builder(); }
  10984. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings prototype) {
  10985. return (Builder) new Builder().MergeFrom(prototype);
  10986. }
  10987. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> {
  10988. protected override Builder ThisBuilder {
  10989. get { return this; }
  10990. }
  10991. // Construct using global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.CreateBuilder()
  10992. internal Builder() {}
  10993. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10994. protected override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings MessageBeingBuilt {
  10995. get { return result; }
  10996. }
  10997. public override Builder Clear() {
  10998. result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10999. return this;
  11000. }
  11001. public override Builder Clone() {
  11002. return new Builder().MergeFrom(result);
  11003. }
  11004. public override pbd::MessageDescriptor DescriptorForType {
  11005. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
  11006. }
  11007. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings DefaultInstanceForType {
  11008. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
  11009. }
  11010. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings BuildPartial() {
  11011. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings returnMe = result;
  11012. result = null;
  11013. return returnMe;
  11014. }
  11015. public override Builder MergeFrom(pb::IMessage other) {
  11016. if (other is global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) {
  11017. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) other);
  11018. } else {
  11019. base.MergeFrom(other);
  11020. return this;
  11021. }
  11022. }
  11023. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings other) {
  11024. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
  11025. if (other.HasMyString) {
  11026. MyString = other.MyString;
  11027. }
  11028. if (other.HasMyInt) {
  11029. MyInt = other.MyInt;
  11030. }
  11031. if (other.HasMyFloat) {
  11032. MyFloat = other.MyFloat;
  11033. }
  11034. this.MergeUnknownFields(other.UnknownFields);
  11035. return this;
  11036. }
  11037. public override Builder MergeFrom(pb::CodedInputStream input) {
  11038. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11039. }
  11040. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11041. pb::UnknownFieldSet.Builder unknownFields =
  11042. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11043. while (true) {
  11044. uint tag = input.ReadTag();
  11045. switch (tag) {
  11046. case 0:
  11047. this.UnknownFields = unknownFields.Build();
  11048. return this;
  11049. default: {
  11050. if (!ParseUnknownField(input, unknownFields,
  11051. extensionRegistry, tag)) {
  11052. this.UnknownFields = unknownFields.Build();
  11053. return this;
  11054. }
  11055. break;
  11056. }
  11057. case 8: {
  11058. MyInt = input.ReadInt64();
  11059. break;
  11060. }
  11061. case 90: {
  11062. MyString = input.ReadString();
  11063. break;
  11064. }
  11065. case 813: {
  11066. MyFloat = input.ReadFloat();
  11067. break;
  11068. }
  11069. }
  11070. }
  11071. }
  11072. // optional string my_string = 11;
  11073. public bool HasMyString {
  11074. get { return result.HasMyString; }
  11075. }
  11076. public string MyString {
  11077. get { return result.MyString; }
  11078. set { SetMyString(value); }
  11079. }
  11080. public Builder SetMyString(string value) {
  11081. result.hasMyString = true;
  11082. result.myString_ = value;
  11083. return this;
  11084. }
  11085. public Builder ClearMyString() {
  11086. result.hasMyString = false;
  11087. result.myString_ = "";
  11088. return this;
  11089. }
  11090. // optional int64 my_int = 1;
  11091. public bool HasMyInt {
  11092. get { return result.HasMyInt; }
  11093. }
  11094. public long MyInt {
  11095. get { return result.MyInt; }
  11096. set { SetMyInt(value); }
  11097. }
  11098. public Builder SetMyInt(long value) {
  11099. result.hasMyInt = true;
  11100. result.myInt_ = value;
  11101. return this;
  11102. }
  11103. public Builder ClearMyInt() {
  11104. result.hasMyInt = false;
  11105. result.myInt_ = 0L;
  11106. return this;
  11107. }
  11108. // optional float my_float = 101;
  11109. public bool HasMyFloat {
  11110. get { return result.HasMyFloat; }
  11111. }
  11112. public float MyFloat {
  11113. get { return result.MyFloat; }
  11114. set { SetMyFloat(value); }
  11115. }
  11116. public Builder SetMyFloat(float value) {
  11117. result.hasMyFloat = true;
  11118. result.myFloat_ = value;
  11119. return this;
  11120. }
  11121. public Builder ClearMyFloat() {
  11122. result.hasMyFloat = false;
  11123. result.myFloat_ = 0F;
  11124. return this;
  11125. }
  11126. }
  11127. }
  11128. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11129. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11130. public static TestExtremeDefaultValues DefaultInstance {
  11131. get { return defaultInstance; }
  11132. }
  11133. public override TestExtremeDefaultValues DefaultInstanceForType {
  11134. get { return defaultInstance; }
  11135. }
  11136. protected override TestExtremeDefaultValues ThisMessage {
  11137. get { return this; }
  11138. }
  11139. public static pbd::MessageDescriptor Descriptor {
  11140. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11141. }
  11142. protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
  11143. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11144. }
  11145. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11146. private bool hasEscapedBytes;
  11147. private pb::ByteString escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11148. public bool HasEscapedBytes {
  11149. get { return hasEscapedBytes; }
  11150. }
  11151. public pb::ByteString EscapedBytes {
  11152. get { return escapedBytes_; }
  11153. }
  11154. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11155. private bool hasLargeUint32;
  11156. private uint largeUint32_ = 4294967295;
  11157. public bool HasLargeUint32 {
  11158. get { return hasLargeUint32; }
  11159. }
  11160. public uint LargeUint32 {
  11161. get { return largeUint32_; }
  11162. }
  11163. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11164. private bool hasLargeUint64;
  11165. private ulong largeUint64_ = 18446744073709551615UL;
  11166. public bool HasLargeUint64 {
  11167. get { return hasLargeUint64; }
  11168. }
  11169. public ulong LargeUint64 {
  11170. get { return largeUint64_; }
  11171. }
  11172. // optional int32 small_int32 = 4 [default = -2147483647];
  11173. private bool hasSmallInt32;
  11174. private int smallInt32_ = -2147483647;
  11175. public bool HasSmallInt32 {
  11176. get { return hasSmallInt32; }
  11177. }
  11178. public int SmallInt32 {
  11179. get { return smallInt32_; }
  11180. }
  11181. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11182. private bool hasSmallInt64;
  11183. private long smallInt64_ = -9223372036854775807L;
  11184. public bool HasSmallInt64 {
  11185. get { return hasSmallInt64; }
  11186. }
  11187. public long SmallInt64 {
  11188. get { return smallInt64_; }
  11189. }
  11190. // optional string utf8_string = 6 [default = "\341\210\264"];
  11191. private bool hasUtf8String;
  11192. private string utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11193. public bool HasUtf8String {
  11194. get { return hasUtf8String; }
  11195. }
  11196. public string Utf8String {
  11197. get { return utf8String_; }
  11198. }
  11199. public override bool IsInitialized {
  11200. get {
  11201. return true;
  11202. }
  11203. }
  11204. public override void WriteTo(pb::CodedOutputStream output) {
  11205. if (HasEscapedBytes) {
  11206. output.WriteBytes(1, EscapedBytes);
  11207. }
  11208. if (HasLargeUint32) {
  11209. output.WriteUInt32(2, LargeUint32);
  11210. }
  11211. if (HasLargeUint64) {
  11212. output.WriteUInt64(3, LargeUint64);
  11213. }
  11214. if (HasSmallInt32) {
  11215. output.WriteInt32(4, SmallInt32);
  11216. }
  11217. if (HasSmallInt64) {
  11218. output.WriteInt64(5, SmallInt64);
  11219. }
  11220. if (HasUtf8String) {
  11221. output.WriteString(6, Utf8String);
  11222. }
  11223. UnknownFields.WriteTo(output);
  11224. }
  11225. private int memoizedSerializedSize = -1;
  11226. public override int SerializedSize {
  11227. get {
  11228. int size = memoizedSerializedSize;
  11229. if (size != -1) return size;
  11230. size = 0;
  11231. if (HasEscapedBytes) {
  11232. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11233. }
  11234. if (HasLargeUint32) {
  11235. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11236. }
  11237. if (HasLargeUint64) {
  11238. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11239. }
  11240. if (HasSmallInt32) {
  11241. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11242. }
  11243. if (HasSmallInt64) {
  11244. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11245. }
  11246. if (HasUtf8String) {
  11247. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11248. }
  11249. size += UnknownFields.SerializedSize;
  11250. memoizedSerializedSize = size;
  11251. return size;
  11252. }
  11253. }
  11254. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11255. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11256. }
  11257. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11258. pb::ExtensionRegistry extensionRegistry) {
  11259. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11260. .BuildParsed();
  11261. }
  11262. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data) {
  11263. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11264. }
  11265. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data,
  11266. pb::ExtensionRegistry extensionRegistry) {
  11267. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11268. .BuildParsed();
  11269. }
  11270. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11271. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11272. }
  11273. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(
  11274. global::System.IO.Stream input,
  11275. pb::ExtensionRegistry extensionRegistry) {
  11276. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11277. .BuildParsed();
  11278. }
  11279. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11280. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11281. }
  11282. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11283. pb::ExtensionRegistry extensionRegistry) {
  11284. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11285. .BuildParsed();
  11286. }
  11287. public static Builder CreateBuilder() { return new Builder(); }
  11288. public override Builder CreateBuilderForType() { return new Builder(); }
  11289. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues prototype) {
  11290. return (Builder) new Builder().MergeFrom(prototype);
  11291. }
  11292. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, Builder> {
  11293. protected override Builder ThisBuilder {
  11294. get { return this; }
  11295. }
  11296. // Construct using global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.CreateBuilder()
  11297. internal Builder() {}
  11298. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11299. protected override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues MessageBeingBuilt {
  11300. get { return result; }
  11301. }
  11302. public override Builder Clear() {
  11303. result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11304. return this;
  11305. }
  11306. public override Builder Clone() {
  11307. return new Builder().MergeFrom(result);
  11308. }
  11309. public override pbd::MessageDescriptor DescriptorForType {
  11310. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
  11311. }
  11312. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues DefaultInstanceForType {
  11313. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
  11314. }
  11315. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues BuildPartial() {
  11316. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues returnMe = result;
  11317. result = null;
  11318. return returnMe;
  11319. }
  11320. public override Builder MergeFrom(pb::IMessage other) {
  11321. if (other is global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) {
  11322. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) other);
  11323. } else {
  11324. base.MergeFrom(other);
  11325. return this;
  11326. }
  11327. }
  11328. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues other) {
  11329. if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
  11330. if (other.HasEscapedBytes) {
  11331. EscapedBytes = other.EscapedBytes;
  11332. }
  11333. if (other.HasLargeUint32) {
  11334. LargeUint32 = other.LargeUint32;
  11335. }
  11336. if (other.HasLargeUint64) {
  11337. LargeUint64 = other.LargeUint64;
  11338. }
  11339. if (other.HasSmallInt32) {
  11340. SmallInt32 = other.SmallInt32;
  11341. }
  11342. if (other.HasSmallInt64) {
  11343. SmallInt64 = other.SmallInt64;
  11344. }
  11345. if (other.HasUtf8String) {
  11346. Utf8String = other.Utf8String;
  11347. }
  11348. this.MergeUnknownFields(other.UnknownFields);
  11349. return this;
  11350. }
  11351. public override Builder MergeFrom(pb::CodedInputStream input) {
  11352. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11353. }
  11354. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11355. pb::UnknownFieldSet.Builder unknownFields =
  11356. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11357. while (true) {
  11358. uint tag = input.ReadTag();
  11359. switch (tag) {
  11360. case 0:
  11361. this.UnknownFields = unknownFields.Build();
  11362. return this;
  11363. default: {
  11364. if (!ParseUnknownField(input, unknownFields,
  11365. extensionRegistry, tag)) {
  11366. this.UnknownFields = unknownFields.Build();
  11367. return this;
  11368. }
  11369. break;
  11370. }
  11371. case 10: {
  11372. EscapedBytes = input.ReadBytes();
  11373. break;
  11374. }
  11375. case 16: {
  11376. LargeUint32 = input.ReadUInt32();
  11377. break;
  11378. }
  11379. case 24: {
  11380. LargeUint64 = input.ReadUInt64();
  11381. break;
  11382. }
  11383. case 32: {
  11384. SmallInt32 = input.ReadInt32();
  11385. break;
  11386. }
  11387. case 40: {
  11388. SmallInt64 = input.ReadInt64();
  11389. break;
  11390. }
  11391. case 50: {
  11392. Utf8String = input.ReadString();
  11393. break;
  11394. }
  11395. }
  11396. }
  11397. }
  11398. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11399. public bool HasEscapedBytes {
  11400. get { return result.HasEscapedBytes; }
  11401. }
  11402. public pb::ByteString EscapedBytes {
  11403. get { return result.EscapedBytes; }
  11404. set { SetEscapedBytes(value); }
  11405. }
  11406. public Builder SetEscapedBytes(pb::ByteString value) {
  11407. result.hasEscapedBytes = true;
  11408. result.escapedBytes_ = value;
  11409. return this;
  11410. }
  11411. public Builder ClearEscapedBytes() {
  11412. result.hasEscapedBytes = false;
  11413. result.escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11414. return this;
  11415. }
  11416. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11417. public bool HasLargeUint32 {
  11418. get { return result.HasLargeUint32; }
  11419. }
  11420. public uint LargeUint32 {
  11421. get { return result.LargeUint32; }
  11422. set { SetLargeUint32(value); }
  11423. }
  11424. public Builder SetLargeUint32(uint value) {
  11425. result.hasLargeUint32 = true;
  11426. result.largeUint32_ = value;
  11427. return this;
  11428. }
  11429. public Builder ClearLargeUint32() {
  11430. result.hasLargeUint32 = false;
  11431. result.largeUint32_ = 4294967295;
  11432. return this;
  11433. }
  11434. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11435. public bool HasLargeUint64 {
  11436. get { return result.HasLargeUint64; }
  11437. }
  11438. public ulong LargeUint64 {
  11439. get { return result.LargeUint64; }
  11440. set { SetLargeUint64(value); }
  11441. }
  11442. public Builder SetLargeUint64(ulong value) {
  11443. result.hasLargeUint64 = true;
  11444. result.largeUint64_ = value;
  11445. return this;
  11446. }
  11447. public Builder ClearLargeUint64() {
  11448. result.hasLargeUint64 = false;
  11449. result.largeUint64_ = 18446744073709551615UL;
  11450. return this;
  11451. }
  11452. // optional int32 small_int32 = 4 [default = -2147483647];
  11453. public bool HasSmallInt32 {
  11454. get { return result.HasSmallInt32; }
  11455. }
  11456. public int SmallInt32 {
  11457. get { return result.SmallInt32; }
  11458. set { SetSmallInt32(value); }
  11459. }
  11460. public Builder SetSmallInt32(int value) {
  11461. result.hasSmallInt32 = true;
  11462. result.smallInt32_ = value;
  11463. return this;
  11464. }
  11465. public Builder ClearSmallInt32() {
  11466. result.hasSmallInt32 = false;
  11467. result.smallInt32_ = -2147483647;
  11468. return this;
  11469. }
  11470. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11471. public bool HasSmallInt64 {
  11472. get { return result.HasSmallInt64; }
  11473. }
  11474. public long SmallInt64 {
  11475. get { return result.SmallInt64; }
  11476. set { SetSmallInt64(value); }
  11477. }
  11478. public Builder SetSmallInt64(long value) {
  11479. result.hasSmallInt64 = true;
  11480. result.smallInt64_ = value;
  11481. return this;
  11482. }
  11483. public Builder ClearSmallInt64() {
  11484. result.hasSmallInt64 = false;
  11485. result.smallInt64_ = -9223372036854775807L;
  11486. return this;
  11487. }
  11488. // optional string utf8_string = 6 [default = "\341\210\264"];
  11489. public bool HasUtf8String {
  11490. get { return result.HasUtf8String; }
  11491. }
  11492. public string Utf8String {
  11493. get { return result.Utf8String; }
  11494. set { SetUtf8String(value); }
  11495. }
  11496. public Builder SetUtf8String(string value) {
  11497. result.hasUtf8String = true;
  11498. result.utf8String_ = value;
  11499. return this;
  11500. }
  11501. public Builder ClearUtf8String() {
  11502. result.hasUtf8String = false;
  11503. result.utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11504. return this;
  11505. }
  11506. }
  11507. }
  11508. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11509. private static readonly FooRequest defaultInstance = new FooRequest();
  11510. public static FooRequest DefaultInstance {
  11511. get { return defaultInstance; }
  11512. }
  11513. public override FooRequest DefaultInstanceForType {
  11514. get { return defaultInstance; }
  11515. }
  11516. protected override FooRequest ThisMessage {
  11517. get { return this; }
  11518. }
  11519. public static pbd::MessageDescriptor Descriptor {
  11520. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11521. }
  11522. protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
  11523. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11524. }
  11525. public override bool IsInitialized {
  11526. get {
  11527. return true;
  11528. }
  11529. }
  11530. public override void WriteTo(pb::CodedOutputStream output) {
  11531. UnknownFields.WriteTo(output);
  11532. }
  11533. private int memoizedSerializedSize = -1;
  11534. public override int SerializedSize {
  11535. get {
  11536. int size = memoizedSerializedSize;
  11537. if (size != -1) return size;
  11538. size = 0;
  11539. size += UnknownFields.SerializedSize;
  11540. memoizedSerializedSize = size;
  11541. return size;
  11542. }
  11543. }
  11544. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data) {
  11545. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11546. }
  11547. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data,
  11548. pb::ExtensionRegistry extensionRegistry) {
  11549. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11550. .BuildParsed();
  11551. }
  11552. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data) {
  11553. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11554. }
  11555. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data,
  11556. pb::ExtensionRegistry extensionRegistry) {
  11557. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11558. .BuildParsed();
  11559. }
  11560. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(global::System.IO.Stream input) {
  11561. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11562. }
  11563. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(
  11564. global::System.IO.Stream input,
  11565. pb::ExtensionRegistry extensionRegistry) {
  11566. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11567. .BuildParsed();
  11568. }
  11569. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input) {
  11570. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11571. }
  11572. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input,
  11573. pb::ExtensionRegistry extensionRegistry) {
  11574. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11575. .BuildParsed();
  11576. }
  11577. public static Builder CreateBuilder() { return new Builder(); }
  11578. public override Builder CreateBuilderForType() { return new Builder(); }
  11579. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooRequest prototype) {
  11580. return (Builder) new Builder().MergeFrom(prototype);
  11581. }
  11582. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooRequest, Builder> {
  11583. protected override Builder ThisBuilder {
  11584. get { return this; }
  11585. }
  11586. // Construct using global::Google.ProtocolBuffers.TestProtos.FooRequest.CreateBuilder()
  11587. internal Builder() {}
  11588. global::Google.ProtocolBuffers.TestProtos.FooRequest result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11589. protected override global::Google.ProtocolBuffers.TestProtos.FooRequest MessageBeingBuilt {
  11590. get { return result; }
  11591. }
  11592. public override Builder Clear() {
  11593. result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11594. return this;
  11595. }
  11596. public override Builder Clone() {
  11597. return new Builder().MergeFrom(result);
  11598. }
  11599. public override pbd::MessageDescriptor DescriptorForType {
  11600. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
  11601. }
  11602. public override global::Google.ProtocolBuffers.TestProtos.FooRequest DefaultInstanceForType {
  11603. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
  11604. }
  11605. public override global::Google.ProtocolBuffers.TestProtos.FooRequest BuildPartial() {
  11606. global::Google.ProtocolBuffers.TestProtos.FooRequest returnMe = result;
  11607. result = null;
  11608. return returnMe;
  11609. }
  11610. public override Builder MergeFrom(pb::IMessage other) {
  11611. if (other is global::Google.ProtocolBuffers.TestProtos.FooRequest) {
  11612. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooRequest) other);
  11613. } else {
  11614. base.MergeFrom(other);
  11615. return this;
  11616. }
  11617. }
  11618. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooRequest other) {
  11619. if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
  11620. this.MergeUnknownFields(other.UnknownFields);
  11621. return this;
  11622. }
  11623. public override Builder MergeFrom(pb::CodedInputStream input) {
  11624. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11625. }
  11626. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11627. pb::UnknownFieldSet.Builder unknownFields =
  11628. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11629. while (true) {
  11630. uint tag = input.ReadTag();
  11631. switch (tag) {
  11632. case 0:
  11633. this.UnknownFields = unknownFields.Build();
  11634. return this;
  11635. default: {
  11636. if (!ParseUnknownField(input, unknownFields,
  11637. extensionRegistry, tag)) {
  11638. this.UnknownFields = unknownFields.Build();
  11639. return this;
  11640. }
  11641. break;
  11642. }
  11643. }
  11644. }
  11645. }
  11646. }
  11647. }
  11648. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11649. private static readonly FooResponse defaultInstance = new FooResponse();
  11650. public static FooResponse DefaultInstance {
  11651. get { return defaultInstance; }
  11652. }
  11653. public override FooResponse DefaultInstanceForType {
  11654. get { return defaultInstance; }
  11655. }
  11656. protected override FooResponse ThisMessage {
  11657. get { return this; }
  11658. }
  11659. public static pbd::MessageDescriptor Descriptor {
  11660. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11661. }
  11662. protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
  11663. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11664. }
  11665. public override bool IsInitialized {
  11666. get {
  11667. return true;
  11668. }
  11669. }
  11670. public override void WriteTo(pb::CodedOutputStream output) {
  11671. UnknownFields.WriteTo(output);
  11672. }
  11673. private int memoizedSerializedSize = -1;
  11674. public override int SerializedSize {
  11675. get {
  11676. int size = memoizedSerializedSize;
  11677. if (size != -1) return size;
  11678. size = 0;
  11679. size += UnknownFields.SerializedSize;
  11680. memoizedSerializedSize = size;
  11681. return size;
  11682. }
  11683. }
  11684. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data) {
  11685. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11686. }
  11687. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data,
  11688. pb::ExtensionRegistry extensionRegistry) {
  11689. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11690. .BuildParsed();
  11691. }
  11692. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data) {
  11693. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11694. }
  11695. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data,
  11696. pb::ExtensionRegistry extensionRegistry) {
  11697. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11698. .BuildParsed();
  11699. }
  11700. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(global::System.IO.Stream input) {
  11701. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11702. }
  11703. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(
  11704. global::System.IO.Stream input,
  11705. pb::ExtensionRegistry extensionRegistry) {
  11706. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11707. .BuildParsed();
  11708. }
  11709. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input) {
  11710. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11711. }
  11712. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input,
  11713. pb::ExtensionRegistry extensionRegistry) {
  11714. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11715. .BuildParsed();
  11716. }
  11717. public static Builder CreateBuilder() { return new Builder(); }
  11718. public override Builder CreateBuilderForType() { return new Builder(); }
  11719. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooResponse prototype) {
  11720. return (Builder) new Builder().MergeFrom(prototype);
  11721. }
  11722. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooResponse, Builder> {
  11723. protected override Builder ThisBuilder {
  11724. get { return this; }
  11725. }
  11726. // Construct using global::Google.ProtocolBuffers.TestProtos.FooResponse.CreateBuilder()
  11727. internal Builder() {}
  11728. global::Google.ProtocolBuffers.TestProtos.FooResponse result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11729. protected override global::Google.ProtocolBuffers.TestProtos.FooResponse MessageBeingBuilt {
  11730. get { return result; }
  11731. }
  11732. public override Builder Clear() {
  11733. result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11734. return this;
  11735. }
  11736. public override Builder Clone() {
  11737. return new Builder().MergeFrom(result);
  11738. }
  11739. public override pbd::MessageDescriptor DescriptorForType {
  11740. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
  11741. }
  11742. public override global::Google.ProtocolBuffers.TestProtos.FooResponse DefaultInstanceForType {
  11743. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
  11744. }
  11745. public override global::Google.ProtocolBuffers.TestProtos.FooResponse BuildPartial() {
  11746. global::Google.ProtocolBuffers.TestProtos.FooResponse returnMe = result;
  11747. result = null;
  11748. return returnMe;
  11749. }
  11750. public override Builder MergeFrom(pb::IMessage other) {
  11751. if (other is global::Google.ProtocolBuffers.TestProtos.FooResponse) {
  11752. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooResponse) other);
  11753. } else {
  11754. base.MergeFrom(other);
  11755. return this;
  11756. }
  11757. }
  11758. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooResponse other) {
  11759. if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
  11760. this.MergeUnknownFields(other.UnknownFields);
  11761. return this;
  11762. }
  11763. public override Builder MergeFrom(pb::CodedInputStream input) {
  11764. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11765. }
  11766. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11767. pb::UnknownFieldSet.Builder unknownFields =
  11768. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11769. while (true) {
  11770. uint tag = input.ReadTag();
  11771. switch (tag) {
  11772. case 0:
  11773. this.UnknownFields = unknownFields.Build();
  11774. return this;
  11775. default: {
  11776. if (!ParseUnknownField(input, unknownFields,
  11777. extensionRegistry, tag)) {
  11778. this.UnknownFields = unknownFields.Build();
  11779. return this;
  11780. }
  11781. break;
  11782. }
  11783. }
  11784. }
  11785. }
  11786. }
  11787. }
  11788. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11789. private static readonly BarRequest defaultInstance = new BarRequest();
  11790. public static BarRequest DefaultInstance {
  11791. get { return defaultInstance; }
  11792. }
  11793. public override BarRequest DefaultInstanceForType {
  11794. get { return defaultInstance; }
  11795. }
  11796. protected override BarRequest ThisMessage {
  11797. get { return this; }
  11798. }
  11799. public static pbd::MessageDescriptor Descriptor {
  11800. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11801. }
  11802. protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
  11803. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11804. }
  11805. public override bool IsInitialized {
  11806. get {
  11807. return true;
  11808. }
  11809. }
  11810. public override void WriteTo(pb::CodedOutputStream output) {
  11811. UnknownFields.WriteTo(output);
  11812. }
  11813. private int memoizedSerializedSize = -1;
  11814. public override int SerializedSize {
  11815. get {
  11816. int size = memoizedSerializedSize;
  11817. if (size != -1) return size;
  11818. size = 0;
  11819. size += UnknownFields.SerializedSize;
  11820. memoizedSerializedSize = size;
  11821. return size;
  11822. }
  11823. }
  11824. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data) {
  11825. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11826. }
  11827. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data,
  11828. pb::ExtensionRegistry extensionRegistry) {
  11829. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11830. .BuildParsed();
  11831. }
  11832. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data) {
  11833. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11834. }
  11835. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data,
  11836. pb::ExtensionRegistry extensionRegistry) {
  11837. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11838. .BuildParsed();
  11839. }
  11840. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(global::System.IO.Stream input) {
  11841. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11842. }
  11843. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(
  11844. global::System.IO.Stream input,
  11845. pb::ExtensionRegistry extensionRegistry) {
  11846. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11847. .BuildParsed();
  11848. }
  11849. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input) {
  11850. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11851. }
  11852. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input,
  11853. pb::ExtensionRegistry extensionRegistry) {
  11854. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11855. .BuildParsed();
  11856. }
  11857. public static Builder CreateBuilder() { return new Builder(); }
  11858. public override Builder CreateBuilderForType() { return new Builder(); }
  11859. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarRequest prototype) {
  11860. return (Builder) new Builder().MergeFrom(prototype);
  11861. }
  11862. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarRequest, Builder> {
  11863. protected override Builder ThisBuilder {
  11864. get { return this; }
  11865. }
  11866. // Construct using global::Google.ProtocolBuffers.TestProtos.BarRequest.CreateBuilder()
  11867. internal Builder() {}
  11868. global::Google.ProtocolBuffers.TestProtos.BarRequest result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11869. protected override global::Google.ProtocolBuffers.TestProtos.BarRequest MessageBeingBuilt {
  11870. get { return result; }
  11871. }
  11872. public override Builder Clear() {
  11873. result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11874. return this;
  11875. }
  11876. public override Builder Clone() {
  11877. return new Builder().MergeFrom(result);
  11878. }
  11879. public override pbd::MessageDescriptor DescriptorForType {
  11880. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
  11881. }
  11882. public override global::Google.ProtocolBuffers.TestProtos.BarRequest DefaultInstanceForType {
  11883. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
  11884. }
  11885. public override global::Google.ProtocolBuffers.TestProtos.BarRequest BuildPartial() {
  11886. global::Google.ProtocolBuffers.TestProtos.BarRequest returnMe = result;
  11887. result = null;
  11888. return returnMe;
  11889. }
  11890. public override Builder MergeFrom(pb::IMessage other) {
  11891. if (other is global::Google.ProtocolBuffers.TestProtos.BarRequest) {
  11892. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarRequest) other);
  11893. } else {
  11894. base.MergeFrom(other);
  11895. return this;
  11896. }
  11897. }
  11898. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarRequest other) {
  11899. if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
  11900. this.MergeUnknownFields(other.UnknownFields);
  11901. return this;
  11902. }
  11903. public override Builder MergeFrom(pb::CodedInputStream input) {
  11904. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11905. }
  11906. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11907. pb::UnknownFieldSet.Builder unknownFields =
  11908. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11909. while (true) {
  11910. uint tag = input.ReadTag();
  11911. switch (tag) {
  11912. case 0:
  11913. this.UnknownFields = unknownFields.Build();
  11914. return this;
  11915. default: {
  11916. if (!ParseUnknownField(input, unknownFields,
  11917. extensionRegistry, tag)) {
  11918. this.UnknownFields = unknownFields.Build();
  11919. return this;
  11920. }
  11921. break;
  11922. }
  11923. }
  11924. }
  11925. }
  11926. }
  11927. }
  11928. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11929. private static readonly BarResponse defaultInstance = new BarResponse();
  11930. public static BarResponse DefaultInstance {
  11931. get { return defaultInstance; }
  11932. }
  11933. public override BarResponse DefaultInstanceForType {
  11934. get { return defaultInstance; }
  11935. }
  11936. protected override BarResponse ThisMessage {
  11937. get { return this; }
  11938. }
  11939. public static pbd::MessageDescriptor Descriptor {
  11940. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11941. }
  11942. protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
  11943. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11944. }
  11945. public override bool IsInitialized {
  11946. get {
  11947. return true;
  11948. }
  11949. }
  11950. public override void WriteTo(pb::CodedOutputStream output) {
  11951. UnknownFields.WriteTo(output);
  11952. }
  11953. private int memoizedSerializedSize = -1;
  11954. public override int SerializedSize {
  11955. get {
  11956. int size = memoizedSerializedSize;
  11957. if (size != -1) return size;
  11958. size = 0;
  11959. size += UnknownFields.SerializedSize;
  11960. memoizedSerializedSize = size;
  11961. return size;
  11962. }
  11963. }
  11964. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data) {
  11965. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11966. }
  11967. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data,
  11968. pb::ExtensionRegistry extensionRegistry) {
  11969. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11970. .BuildParsed();
  11971. }
  11972. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data) {
  11973. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11974. }
  11975. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data,
  11976. pb::ExtensionRegistry extensionRegistry) {
  11977. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11978. .BuildParsed();
  11979. }
  11980. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(global::System.IO.Stream input) {
  11981. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11982. }
  11983. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(
  11984. global::System.IO.Stream input,
  11985. pb::ExtensionRegistry extensionRegistry) {
  11986. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11987. .BuildParsed();
  11988. }
  11989. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input) {
  11990. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11991. }
  11992. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input,
  11993. pb::ExtensionRegistry extensionRegistry) {
  11994. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11995. .BuildParsed();
  11996. }
  11997. public static Builder CreateBuilder() { return new Builder(); }
  11998. public override Builder CreateBuilderForType() { return new Builder(); }
  11999. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarResponse prototype) {
  12000. return (Builder) new Builder().MergeFrom(prototype);
  12001. }
  12002. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarResponse, Builder> {
  12003. protected override Builder ThisBuilder {
  12004. get { return this; }
  12005. }
  12006. // Construct using global::Google.ProtocolBuffers.TestProtos.BarResponse.CreateBuilder()
  12007. internal Builder() {}
  12008. global::Google.ProtocolBuffers.TestProtos.BarResponse result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  12009. protected override global::Google.ProtocolBuffers.TestProtos.BarResponse MessageBeingBuilt {
  12010. get { return result; }
  12011. }
  12012. public override Builder Clear() {
  12013. result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  12014. return this;
  12015. }
  12016. public override Builder Clone() {
  12017. return new Builder().MergeFrom(result);
  12018. }
  12019. public override pbd::MessageDescriptor DescriptorForType {
  12020. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
  12021. }
  12022. public override global::Google.ProtocolBuffers.TestProtos.BarResponse DefaultInstanceForType {
  12023. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
  12024. }
  12025. public override global::Google.ProtocolBuffers.TestProtos.BarResponse BuildPartial() {
  12026. global::Google.ProtocolBuffers.TestProtos.BarResponse returnMe = result;
  12027. result = null;
  12028. return returnMe;
  12029. }
  12030. public override Builder MergeFrom(pb::IMessage other) {
  12031. if (other is global::Google.ProtocolBuffers.TestProtos.BarResponse) {
  12032. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarResponse) other);
  12033. } else {
  12034. base.MergeFrom(other);
  12035. return this;
  12036. }
  12037. }
  12038. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarResponse other) {
  12039. if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
  12040. this.MergeUnknownFields(other.UnknownFields);
  12041. return this;
  12042. }
  12043. public override Builder MergeFrom(pb::CodedInputStream input) {
  12044. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12045. }
  12046. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12047. pb::UnknownFieldSet.Builder unknownFields =
  12048. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12049. while (true) {
  12050. uint tag = input.ReadTag();
  12051. switch (tag) {
  12052. case 0:
  12053. this.UnknownFields = unknownFields.Build();
  12054. return this;
  12055. default: {
  12056. if (!ParseUnknownField(input, unknownFields,
  12057. extensionRegistry, tag)) {
  12058. this.UnknownFields = unknownFields.Build();
  12059. return this;
  12060. }
  12061. break;
  12062. }
  12063. }
  12064. }
  12065. }
  12066. }
  12067. }
  12068. #endregion
  12069. #region Services
  12070. public abstract class TestService : pb::IService {
  12071. public abstract void Foo(
  12072. pb::IRpcController controller,
  12073. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12074. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done);
  12075. public abstract void Bar(
  12076. pb::IRpcController controller,
  12077. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12078. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done);
  12079. public static pbd::ServiceDescriptor Descriptor {
  12080. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Services[0]; }
  12081. }
  12082. public pbd::ServiceDescriptor DescriptorForType {
  12083. get { return Descriptor; }
  12084. }
  12085. public void CallMethod(
  12086. pbd::MethodDescriptor method,
  12087. pb::IRpcController controller,
  12088. pb::IMessage request,
  12089. global::System.Action<pb::IMessage> done) {
  12090. if (method.Service != Descriptor) {
  12091. throw new global::System.ArgumentException(
  12092. "Service.CallMethod() given method descriptor for wrong " +
  12093. "service type.");
  12094. }
  12095. switch(method.Index) {
  12096. case 0:
  12097. this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest)request,
  12098. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>(
  12099. done));
  12100. return;
  12101. case 1:
  12102. this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest)request,
  12103. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>(
  12104. done));
  12105. return;
  12106. default:
  12107. throw new global::System.InvalidOperationException("Can't get here.");
  12108. }
  12109. }
  12110. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12111. if (method.Service != Descriptor) {
  12112. throw new global::System.ArgumentException(
  12113. "Service.GetRequestPrototype() given method " +
  12114. "descriptor for wrong service type.");
  12115. }
  12116. switch(method.Index) {
  12117. case 0:
  12118. return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance;
  12119. case 1:
  12120. return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance;
  12121. default:
  12122. throw new global::System.ArgumentException("Can't get here.");
  12123. }
  12124. }
  12125. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12126. if (method.Service != Descriptor) {
  12127. throw new global::System.ArgumentException(
  12128. "Service.GetResponsePrototype() given method " +
  12129. "descriptor for wrong service type.");
  12130. }
  12131. switch(method.Index) {
  12132. case 0:
  12133. return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance;
  12134. case 1:
  12135. return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance;
  12136. default:
  12137. throw new global::System.ArgumentException("Can't get here.");
  12138. }
  12139. }
  12140. public static Stub CreateStub(
  12141. pb::IRpcChannel channel) {
  12142. return new Stub(channel);
  12143. }
  12144. public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService {
  12145. internal Stub(pb::IRpcChannel channel) {
  12146. this.channel = channel;
  12147. }
  12148. private readonly pb::IRpcChannel channel;
  12149. public pb::IRpcChannel Channel {
  12150. get { return channel; }
  12151. }
  12152. public override void Foo(
  12153. pb::IRpcController controller,
  12154. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12155. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) {
  12156. channel.CallMethod(
  12157. Descriptor.Methods[0],
  12158. controller,
  12159. request,
  12160. global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance,
  12161. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance));
  12162. }
  12163. public override void Bar(
  12164. pb::IRpcController controller,
  12165. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12166. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) {
  12167. channel.CallMethod(
  12168. Descriptor.Methods[1],
  12169. controller,
  12170. request,
  12171. global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance,
  12172. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance));
  12173. }
  12174. }
  12175. }
  12176. #endregion
  12177. }